/* ==========================================================================
   SCLERA DEVELOP
   Editorial studio system - brand navy #1F2042 + white, sharp geometry,
   Inter Tight / Instrument Serif, motion limited to transform + opacity.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
@view-transition { navigation: auto; }

:root {
  --f: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* brand is fixed in both themes - it is the identity, not a surface */
  --brand: #1f2042;
  --brand-hi: #2b2c56;
  --brand-lo: #14152f;
  --flare: #ff5a36;
  /* text that sits on a --flare fill. #1f2042 on #ff5a36 is 5.03:1, whereas
     white on #ff5a36 is only 3.10:1 and fails AA for body-size text. */
  --on-flare: #1f2042;

  --r: 2px;
  --r-lg: 4px;
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1320px;
  --nav-h: 74px;
  --bar-h: 38px;
  --head-h: calc(var(--nav-h) + var(--bar-h));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --sec: clamp(76px, 10vw, 156px);
}

:root,
html[data-theme="light"] {
  --paper: #ffffff;
  --paper-2: #f4f4f7;
  --paper-3: #eaeaef;
  --ink: #1f2042;
  --ink-2: #4d4e6d;
  --ink-3: #66677f;
  --flare-ink: #b9380f;
  --ok-ink: #12724a;
  --danger: #b3261e;
  --ring: #b9380f;
  --accent-ink: #1f2042;
  --line: rgba(31, 32, 66, 0.13);
  --line-2: rgba(31, 32, 66, 0.26);
  --wash: rgba(31, 32, 66, 0.035);
  --wash-2: rgba(31, 32, 66, 0.07);
  --glass: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 60px -24px rgba(31, 32, 66, 0.28);
  --on-brand: #ffffff;
  --on-brand-2: rgba(255, 255, 255, 0.66);
  --on-brand-3: rgba(255, 255, 255, 0.54);
  --on-brand-line: rgba(255, 255, 255, 0.16);
  --dot: rgba(255, 255, 255, 0.17);
}

html[data-theme="dark"] {
  --paper: #0b0c1b;
  --paper-2: #111228;
  --paper-3: #181934;
  --ink: #f3f3f6;
  --ink-2: #a5a6bd;
  --ink-3: #82839e;
  --flare-ink: #ff8a6b;
  --ok-ink: #4ede9f;
  --danger: #ff8b8b;
  --ring: #ff8a6b;
  --accent-ink: #9c9cf0;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.24);
  --wash: rgba(255, 255, 255, 0.03);
  --wash-2: rgba(255, 255, 255, 0.06);
  --glass: rgba(11, 12, 27, 0.8);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --on-brand: #ffffff;
  --on-brand-2: rgba(255, 255, 255, 0.66);
  --on-brand-3: rgba(255, 255, 255, 0.54);
  --on-brand-line: rgba(255, 255, 255, 0.15);
  --dot: rgba(255, 255, 255, 0.15);
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--f);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; font-size: 1rem; }
b, strong { font-weight: 600; }

/* Navy surfaces keep the brand navy in BOTH themes, so their muted text has to
   come from the on-brand ramp too. Without this, .lede / .small / .chip and
   friends resolve --ink-2 to a dark grey that is unreadable on navy in light
   mode, while dark mode happens to look fine - which is exactly the kind of
   inconsistency that only shows up on one theme.
   --ink and --line are deliberately NOT remapped: components inside these
   blocks use them as surfaces (buttons, inputs), not just as text. */
.hero,
.phero,
.brandblock,
.msheet,
.ticker,
.foot {
  --ink-2: var(--on-brand-2);
  --ink-3: var(--on-brand-3);
}

::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
/* navy surfaces need a light ring, --ring is tuned for paper */
.brandblock :focus-visible,
.hdr-bar :focus-visible,
.hdr-nav :focus-visible,
.msheet :focus-visible,
.hero-form :focus-visible { outline-color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 3px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-2); }

[id] { scroll-margin-top: calc(var(--head-h) + 24px); }

.grid > *, .hero-in > *, .foot-grid > *, .cap-row > *, .work-row > * { min-width: 0; }

/* ---------------------------------------------------------------- type -- */
.display {
  font-size: clamp(2.5rem, 7.4vw, 6.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  line-wrap: balance;
}
.h1 { font-size: clamp(2.1rem, 5.4vw, 4.1rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; }
.h2 { font-size: clamp(1.7rem, 3.5vw, 2.9rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }

.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lede { font-size: clamp(1.02rem, 1.35vw, 1.22rem); line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.small { font-size: 0.9rem; color: var(--ink-3); line-height: 1.65; max-width: 62ch; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.accent { color: var(--flare-ink); }
/* .accent is used inside .assure, which only ever sits on navy */
.brandblock .accent { color: var(--flare); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker::before { content: ""; width: 20px; height: 1px; background: currentColor; opacity: 0.5; }
.kicker--inv { color: var(--on-brand-3); }
.kicker--dot::before { display: none; }
.kicker--dot .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--flare);
  box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.55);
  animation: pip 2.6s var(--ease-io) infinite;
}
@keyframes pip {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(255, 90, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); }
}

/* --------------------------------------------------------------- layout -- */
.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: clamp(52px, 6vw, 92px); }
.sec--tint { background: var(--paper-2); }
.sec--line { border-top: 1px solid var(--line); }

/* full-bleed brand block */
.brandblock { background: var(--brand); color: var(--on-brand); position: relative; overflow: hidden; }
.brandblock .kicker { color: var(--on-brand-3); }
.brandblock .lede, .brandblock .small { color: var(--on-brand-2); }

.sec-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head > div:last-child:not(:only-child) { padding-bottom: 6px; }
.sec-head .h2 { margin-top: 18px; }
.sec-head--stack { display: block; }
.sec-head--stack .h2 { max-width: 18ch; }

/* -------------------------------------------------------------- buttons -- */
.btn {
  --bg: transparent;
  --fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.4s var(--ease); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn:hover { color: var(--paper); border-color: var(--ink); }
.btn:hover svg { transform: translateX(3px); }
.btn--fill { --bg: var(--ink); --fg: var(--paper); border-color: var(--ink); }
.btn--fill::before { background: var(--flare); }
.btn--fill:hover { color: var(--on-flare); border-color: var(--flare); }
.btn--sm { padding: 11px 18px; font-size: 0.86rem; }
.btn--lg { padding: 17px 30px; font-size: 1rem; }
.btn--inv { --bg: var(--on-brand); --fg: var(--brand); border-color: var(--on-brand); }
.btn--inv::before { background: var(--flare); }
.btn--inv:hover { color: var(--on-flare); border-color: var(--flare); }
.btn--ghostinv { --fg: var(--on-brand); border-color: var(--on-brand-line); }
.btn--ghostinv::before { background: var(--on-brand); }
.btn--ghostinv:hover { color: var(--brand); border-color: var(--on-brand); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
.tlink svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.tlink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.45s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }
.tlink:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.tlink--inv { color: var(--on-brand); }

/* =====================================================================
   HEADER
   ===================================================================== */
.hdr { position: fixed; inset: 0 0 auto; z-index: 120; }

.hdr-bar {
  background: var(--brand);
  color: var(--on-brand);
  border-bottom: 1px solid var(--on-brand-line);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.hdr-bar-in { display: flex; align-items: center; gap: 16px; min-height: var(--bar-h); padding-block: 6px; }
.hdr-bar p { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--on-brand-2); }
.hdr-bar p b { color: var(--on-brand); font-weight: 600; }
.hdr-bar .rename-short { display: none; }
.hdr-bar a { font-size: 12.5px; font-weight: 600; color: var(--on-brand); border-bottom: 1px solid var(--on-brand-line); padding-bottom: 1px; white-space: nowrap; transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.hdr-bar a:hover { border-color: var(--flare); color: var(--flare); }
.hdr-bar button { width: 24px; height: 24px; display: grid; place-items: center; color: var(--on-brand-3); border-radius: var(--r); flex-shrink: 0; transition: color 0.3s var(--ease), background 0.3s var(--ease); }
.hdr-bar button:hover { color: var(--on-brand); background: rgba(255, 255, 255, 0.1); }
.hdr-bar button svg { width: 12px; height: 12px; }
body.bar-off .hdr-bar { display: none; }
body.bar-off { --head-h: var(--nav-h); }

.hdr-nav {
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.hdr.is-stuck .hdr-nav {
  color: var(--ink);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
}
.hdr.is-stuck .hdr-bar { background: var(--glass); color: var(--ink); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.hdr.is-stuck .hdr-bar p { color: var(--ink-2); }
.hdr.is-stuck .hdr-bar p b { color: var(--ink); }
.hdr.is-stuck .hdr-bar a { color: var(--ink); }
.hdr.is-stuck .hdr-bar button { color: var(--ink-3); }
.hdr.is-stuck .hdr-bar button:hover { color: var(--ink); background: var(--wash-2); }

.hdr-in { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }

.logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
/* the mark is a navy disc, so it needs a white plate wherever it sits on navy */
.logo img,
.foot-note img {
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}
.logo img { width: 36px; height: 36px; }
.foot-note img { width: 30px; height: 30px; }
.logo span { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.025em; white-space: nowrap; }
.logo span i { font-style: normal; opacity: 0.55; }

.hdr-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-links a {
  position: relative;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.66;
  transition: opacity 0.3s var(--ease);
}
.hdr-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.hdr-links a:hover, .hdr-links a.on { opacity: 1; }
.hdr-links a:hover::after, .hdr-links a.on::after { transform: scaleX(1); }
.hdr-links .btn { margin-left: 14px; opacity: 1; }
.hdr-links .btn::after { display: none; }
/* the header CTA inverts with the header: white on navy at rest, navy on paper when stuck */
.hdr:not(.is-stuck) .hdr-links .btn { --bg: var(--on-brand); --fg: var(--brand); border-color: var(--on-brand); }
.hdr:not(.is-stuck) .hdr-links .btn::before { background: var(--flare); }
.hdr:not(.is-stuck) .hdr-links .btn:hover { color: var(--on-flare); border-color: var(--flare); }

/* the auto margin lives here, not on .hdr-links: the nav is display:none on
   mobile, and an auto margin on a hidden element pushes nothing, which left
   the theme toggle and burger sitting against the logo instead of the right edge */
.hdr-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: var(--r);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { opacity: 1; }
.icon-btn:hover { background: var(--wash-2); }
.hdr:not(.is-stuck) .icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.icon-btn .sun { display: none; }
html[data-theme="dark"] .icon-btn .moon { display: none; }
html[data-theme="dark"] .icon-btn .sun { display: block; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: var(--r); flex-direction: column; align-items: center; justify-content: center; gap: 4px; opacity: 0.7; }
.burger:hover { opacity: 1; }
.burger i { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), opacity 0.2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.hdr-prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--flare); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* full-screen mobile menu */
.msheet {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--brand);
  color: var(--on-brand);
  padding: calc(var(--head-h) + 28px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  visibility: hidden;
}
.msheet.open { clip-path: inset(0 0 0 0); visibility: visible; }
.msheet a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--on-brand-line);
  font-size: clamp(1.7rem, 8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.msheet.open a { opacity: 1; transform: none; }
.msheet a i { font-family: var(--f-mono); font-size: 11px; font-style: normal; letter-spacing: 0.16em; color: var(--on-brand-3); }
.msheet-foot { margin-top: auto; padding-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.msheet-foot a { font-size: 0.9rem; opacity: 1; padding: 0; border: 0; }
body.mopen { overflow: hidden; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; background: var(--brand); color: var(--on-brand); overflow: hidden; isolation: isolate; }
.hero-field { position: absolute; inset: -12% -4% 0; z-index: 0; will-change: transform; }
.hero-field canvas { width: 100%; height: 100%; }
.hero-light {
  position: absolute;
  top: 0; left: 0;
  width: 1100px; height: 1100px;
  margin: -550px 0 0 -550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.05) 32%, transparent 66%);
  mix-blend-mode: plus-lighter;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  will-change: transform;
  pointer-events: none;
}
.hero:hover .hero-light { opacity: 1; }
/* touch devices latch :hover after a tap, which would leave the light stuck on */
@media (hover: none) {
  .hero:hover .hero-light { opacity: 0; }
}
.hero-fade { position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(to bottom, transparent, var(--brand)); z-index: 1; pointer-events: none; }

.hero-in { position: relative; z-index: 2; padding-block: calc(var(--head-h) + clamp(44px, 6vw, 96px)) clamp(48px, 6vw, 84px); }

.hero-top { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; margin-bottom: clamp(34px, 5vw, 64px); }
.hero-top .kicker { color: var(--on-brand-2); }
.hero-loc { display: flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-brand-3); }

.hero h1 { max-width: 16ch; }
.hero h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; color: var(--on-brand); }

/* line-mask reveal */
.rl { display: block; overflow: hidden; }
.rl > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.in .rl > span, .rl.in > span { transform: none; }

.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 56px); align-items: end; margin-top: clamp(38px, 5vw, 66px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--on-brand-line); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 0.9rem; color: var(--on-brand-2); max-width: 44ch; }

/* =====================================================================
   TICKER
   ===================================================================== */
.ticker { border-block: 1px solid var(--on-brand-line); background: var(--brand); color: var(--on-brand); overflow: hidden; padding-block: 15px; }
.ticker-track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 42px; padding-inline: 21px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-brand-2); white-space: nowrap; }
.ticker-track span::after { content: ""; width: 4px; height: 4px; background: var(--flare); }
@keyframes slide { to { transform: translateX(-50%); } }

/* =====================================================================
   MANIFESTO
   ===================================================================== */
.manifesto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.manifesto .statement { font-size: clamp(1.35rem, 2.7vw, 2.35rem); font-weight: 500; line-height: 1.24; letter-spacing: -0.03em; max-width: 24ch; }
.manifesto .statement em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 26px 20px 26px 0; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact + .fact { padding-left: 20px; }
.fact b { display: block; font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.fact span { display: block; margin-top: 10px; font-size: 0.84rem; color: var(--ink-3); line-height: 1.5; }

/* =====================================================================
   CAPABILITIES LIST
   ===================================================================== */
.caps { border-top: 1px solid var(--line); }
.cap-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1.2fr) 300px 38px;
  gap: 0 28px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
.cap-row::before {
  content: "";
  position: absolute;
  inset: 0 -18px;
  background: var(--wash);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  z-index: -1;
}
.cap-row:hover::before, .cap-row:focus-within::before { opacity: 1; }
.cap-row:hover { padding-left: 18px; }
.cap-n { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); padding-top: 7px; transition: color 0.4s var(--ease); }
.cap-row:hover .cap-n { color: var(--flare-ink); }
.cap-row h3 { font-size: clamp(1.1rem, 1.9vw, 1.6rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.cap-row p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.6; padding-top: 5px; max-width: 48ch; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-content: flex-start; padding-top: 4px; }
/* fixed heights so a row of tags is optically even wherever it appears */
.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--f-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cap-row:hover .chip { color: var(--ink-2); border-color: var(--line-2); }
.cap-x { justify-self: end; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-3); transition: transform 0.5s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease); }
.cap-x svg { width: 14px; height: 14px; }
.cap-row:hover .cap-x { transform: translateX(4px); color: var(--paper); background: var(--ink); border-color: var(--ink); }
.cap-row a.cap-hit { position: absolute; inset: 0; z-index: 1; }

/* =====================================================================
   RENAME / SWAP  (the brand story block)
   ===================================================================== */
.swap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.swap-side .kicker { display: block; margin-bottom: 16px; }
.swap-name { font-size: clamp(1.6rem, 3.6vw, 3.1rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; }
.swap-old .swap-name { color: var(--on-brand-3); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.swap-old p { margin-top: 16px; font-size: 0.94rem; color: var(--on-brand-2); max-width: 42ch; }
.swap-new .swap-name { color: var(--on-brand); }
.swap-new p { margin-top: 16px; font-size: 0.94rem; color: var(--on-brand-2); max-width: 42ch; }
.swap-mid { display: grid; place-items: center; width: clamp(48px, 6vw, 76px); height: clamp(48px, 6vw, 76px); border: 1px solid var(--on-brand-line); border-radius: 50%; }
.swap-mid svg { width: 22px; height: 22px; color: var(--flare); }

.swap-old, .swap-mid, .swap-new { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.swap-old { transition-delay: 0.05s; }
.swap-mid { transition-delay: 0.2s; }
.swap-new { transition-delay: 0.35s; }
.swap.in .swap-old, .swap.in .swap-mid, .swap.in .swap-new { opacity: 1; transform: none; }

.assure { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(46px, 6vw, 82px); border-top: 1px solid var(--on-brand-line); }
.assure li { padding: clamp(24px, 3vw, 34px) clamp(20px, 2.5vw, 34px) clamp(24px, 3vw, 34px) 0; border-bottom: 1px solid var(--on-brand-line); }
.assure li:nth-child(odd) { border-right: 1px solid var(--on-brand-line); }
.assure li:nth-child(even) { padding-left: clamp(20px, 2.5vw, 34px); }
.assure li > i { display: flex; align-items: center; gap: 10px; font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-brand-3); margin-bottom: 14px; }
.assure li > i::before { content: ""; width: 16px; height: 1px; background: var(--flare); }
.assure p { font-size: 0.98rem; line-height: 1.62; color: var(--on-brand-2); max-width: 44ch; }
.assure b { color: var(--on-brand); font-weight: 600; }
.assure a { color: var(--on-brand); border-bottom: 1px solid var(--on-brand-line); }
.assure a:hover { border-color: var(--flare); color: var(--flare); }

.tline { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--on-brand-line); }
.tline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding: clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--on-brand-line); }
.tline .when { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-brand-3); padding-top: 4px; }
.tline p { font-size: 0.98rem; line-height: 1.62; color: var(--on-brand-2); max-width: 68ch; }
.tline b { color: var(--on-brand); font-weight: 600; }

/* =====================================================================
   WORK INDEX
   ===================================================================== */
.works { border-top: 1px solid var(--line); }
/* fixed-width side columns keep every row's text on the same vertical line;
   the chip column must NOT be `auto` or each row shifts the columns beside it */
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1.28fr) 280px 38px;
  gap: 0 28px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.55s var(--ease), background 0.4s var(--ease);
}
.work-row::before { content: ""; position: absolute; inset: 0 -18px; background: var(--wash); opacity: 0; transition: opacity 0.45s var(--ease); z-index: -1; }
.work-row:hover::before { opacity: 1; }
.work-row:hover { padding-left: 18px; }
.work-n { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); padding-top: 8px; transition: color 0.4s var(--ease); }
.work-row:hover .work-n { color: var(--flare-ink); }
.work-t { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.work-t h3 { font-size: clamp(1.15rem, 2.1vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.work-d { font-size: 0.93rem; color: var(--ink-2); line-height: 1.55; padding-top: 6px; max-width: 46ch; }
.work-m { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-content: flex-start; padding-top: 5px; }
.work-go { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-3); transition: transform 0.5s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.work-go svg { width: 15px; height: 15px; }
.work-row:hover .work-go { transform: translate(3px, -3px); background: var(--ink); border-color: var(--ink); color: var(--paper); }
.work-row a.hit { position: absolute; inset: 0; z-index: 1; }
.work-row.gone { display: none; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.badge--legacy { color: var(--flare-ink); border-color: rgba(255, 90, 54, 0.4); background: rgba(255, 90, 54, 0.06); }
.badge--live { color: var(--ok-ink); border-color: rgba(18, 114, 74, 0.4); background: rgba(18, 114, 74, 0.06); }
html[data-theme="dark"] .badge--live { color: var(--ok-ink); border-color: rgba(78, 222, 159, 0.35); background: rgba(78, 222, 159, 0.08); }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* =====================================================================
   STEPS
   ===================================================================== */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.6vw, 40px); padding-top: 34px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 100%; }
.steps::before { background: var(--line); }
.steps::after { background: var(--flare); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: transform 0.15s linear; }
.step .n { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--flare-ink); margin-bottom: 16px; }
.step h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 9px; }
.step p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.6; }

/* =====================================================================
   FORMS
   ===================================================================== */
.form { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(30px, 5vw, 84px); align-items: start; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.field label em { color: var(--flare-ink); font-style: normal; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  padding: 11px 0;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field select {
  appearance: none;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2366677f' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
html[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2382839e' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.field select option { background: var(--paper); color: var(--ink); }
.field.bad input, .field.bad select, .field.bad textarea { border-bottom-color: var(--danger); }
.field .err { font-size: 0.78rem; color: var(--danger); display: none; }
.field.bad .err { display: block; }
/* Chrome/Safari paint autofill with their own colours, which reads as a white
   block in dark mode. Pin the fill to the page surface and keep the caret. */
.field input:-webkit-autofill,
.field select:-webkit-autofill,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset;
  box-shadow: 0 0 0 1000px var(--paper) inset;
  transition: background-color 600000s 0s, color 600000s 0s;
}
.field input:-webkit-autofill:focus,
.field select:-webkit-autofill:focus,
.field textarea:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); }
.form-note { margin-top: 18px; font-size: 0.84rem; color: var(--ink-3); }
.form-ok {
  display: none;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--flare);
  background: var(--wash);
  font-size: 0.92rem;
  line-height: 1.6;
}
.form-ok.show { display: block; animation: rise 0.5s var(--ease) both; }
.form-ok a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); word-break: break-all; }
.form-ok a:hover { border-color: var(--flare); }

/* inbox routing */
.pick { margin-top: 34px; }
.pick > p { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.pick-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.pick-opt + .pick-opt { margin-top: 8px; }
.pick-opt:hover { border-color: var(--line-2); }
.pick-opt input { margin: 4px 0 0; accent-color: var(--accent-ink); width: 15px; height: 15px; flex-shrink: 0; }
.pick-opt .pm { display: block; font-size: 0.94rem; font-weight: 600; word-break: break-all; }
.pick-opt .pn { display: block; font-size: 0.82rem; color: var(--ink-3); margin-top: 2px; }
.pick-opt .pf { margin-left: auto; align-self: center; flex-shrink: 0; }
.pick-opt.on { border-color: var(--ink); background: var(--wash); }

/* contact rows */
.rows { border-top: 1px solid var(--line); }
.row-i { display: flex; align-items: flex-start; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.row-i .rl-l { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 5px; }
.row-i .rl-v { font-size: 1rem; font-weight: 500; word-break: break-word; }
.row-i a.rl-v:hover { color: var(--flare-ink); }
.row-i .rl-n { display: block; font-size: 0.83rem; color: var(--ink-3); margin-top: 3px; }
.copy { margin-left: auto; align-self: center; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-3); flex-shrink: 0; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.copy:hover { color: var(--ink); border-color: var(--line-2); }
.copy svg { width: 14px; height: 14px; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--flare); }
.faq summary .pm { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); transition: transform 0.45s var(--ease), border-color 0.3s var(--ease); }
.faq summary .pm svg { width: 12px; height: 12px; }
.faq details[open] summary .pm { transform: rotate(45deg); border-color: var(--line-2); }
.faq .ans { padding-bottom: 24px; }
.faq .ans p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.7; max-width: 68ch; }
.faq .ans a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.faq .ans a:hover { border-color: var(--flare); color: var(--flare); }
.faq .ans::after { content: ""; display: block; }

/* brand-block faq */
.brandblock .faq summary { color: var(--on-brand); }
.brandblock .faq summary:hover { color: var(--flare); }
.brandblock .faq summary .pm { border-color: var(--on-brand-line); color: var(--on-brand-2); }
.brandblock .faq details[open] summary .pm { border-color: var(--on-brand); }
.brandblock .faq .ans p { color: var(--on-brand-2); }
.brandblock .faq .ans a { color: var(--on-brand); border-color: var(--on-brand-line); }
.brandblock .faq details { border-color: var(--on-brand-line); }

/* =====================================================================
   CTA
   ===================================================================== */
.cta-in { text-align: center; }
.cta-in .display { max-width: 18ch; margin-inline: auto; }
.cta-in .lede { margin: 26px auto 0; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 38px; }
.mails { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--on-brand-line); }
.mail-i { display: flex; align-items: center; gap: 10px; }
.mail-i .ml { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-brand-3); }
.mail-i a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.94rem; font-weight: 500; border-bottom: 1px solid transparent; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.mail-i a:hover { color: var(--flare); border-color: var(--flare); }
.mail-i svg { width: 14px; height: 14px; color: var(--on-brand-3); }
.mail-i .copy { color: var(--on-brand-3); border-color: var(--on-brand-line); margin: 0; }
.mail-i .copy:hover { color: var(--on-brand); border-color: var(--on-brand); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.foot { background: var(--brand); color: var(--on-brand); overflow: hidden; }
.brandblock + .foot { border-top: 1px solid var(--on-brand-line); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); padding-block: clamp(52px, 6vw, 84px) clamp(40px, 5vw, 60px); }
.foot h5 { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-brand-3); margin-bottom: 18px; }
.foot-col { display: grid; gap: 11px; align-content: start; }
.foot-col a { font-size: 0.92rem; color: var(--on-brand-2); width: fit-content; transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.foot-col a:hover { color: var(--on-brand); transform: translateX(3px); }
.foot-brand .logo { margin-bottom: 18px; }
.foot-brand p { font-size: 0.94rem; color: var(--on-brand-2); max-width: 40ch; }
.foot-brand .logo span i { opacity: 0.5; }
.foot-mail { display: grid; gap: 9px; margin-top: 24px; }
.foot-mail a { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; width: fit-content; }
.foot-mail svg { width: 14px; height: 14px; color: var(--on-brand-3); flex-shrink: 0; }
.foot-mail em { font-style: normal; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-brand-3); border: 1px solid var(--on-brand-line); border-radius: var(--r); padding: 2px 6px; margin-left: 4px; }

.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--on-brand-line); border-radius: var(--r); font-size: 0.84rem; color: var(--on-brand-2); transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.socials a:hover { color: var(--on-brand); border-color: var(--on-brand); transform: translateY(-2px); }
.socials svg { width: 14px; height: 14px; }

.foot-note { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-block: 26px; border-top: 1px solid var(--on-brand-line); font-size: 0.9rem; color: var(--on-brand-2); }
.foot-note img { width: 26px; height: 26px; border-radius: var(--r); flex-shrink: 0; }
.foot-note p { flex: 1; min-width: 260px; max-width: 76ch; }
.foot-note b { color: var(--on-brand); font-weight: 600; }
.foot-note .tlink { flex-shrink: 0; }

.foot-mark { font-size: clamp(3.4rem, 15.5vw, 15rem); font-weight: 600; line-height: 0.84; letter-spacing: -0.055em; color: rgba(255, 255, 255, 0.07); text-align: center; padding-bottom: 6px; user-select: none; white-space: nowrap; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 22px 26px; border-top: 1px solid var(--on-brand-line); font-size: 0.82rem; color: var(--on-brand-3); }

/* =====================================================================
   PAGE HERO
   ===================================================================== */
.phero { position: relative; background: var(--brand); color: var(--on-brand); overflow: hidden; }
.phero-in { position: relative; z-index: 2; padding-block: calc(var(--head-h) + clamp(52px, 8vw, 116px)) clamp(40px, 5vw, 76px); }
.phero h1 { max-width: 20ch; }
.phero .lede { margin-top: 26px; }
.phero .rule { margin-top: 34px; border-color: var(--on-brand-line); }
.phero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.phero-meta .chip { border-color: var(--on-brand-line); color: var(--on-brand-2); }
.phero-glow { position: absolute; top: -30%; right: -10%; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 62%); z-index: 0; }

/* 404 */
.nf { min-height: 78svh; display: grid; place-items: center; text-align: center; padding-block: calc(var(--head-h) + 60px) 90px; }
.nf .code { font-size: clamp(6rem, 24vw, 17rem); font-weight: 600; line-height: 0.82; letter-spacing: -0.06em; color: var(--wash-2); }
.nf h1 { margin-top: -0.14em; }
.nf .btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }

/* =====================================================================
   GENERIC BLOCKS
   ===================================================================== */
.lines { border-top: 1px solid var(--line); }
.lines li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: clamp(14px, 2.5vw, 36px); padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); }
.lines .n { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); padding-top: 5px; }
.lines h3 { font-size: clamp(1.1rem, 1.9vw, 1.55rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.16; margin-bottom: 9px; }
.lines p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.65; max-width: 72ch; }
.brandblock .lines { border-color: var(--on-brand-line); }
.brandblock .lines li { border-color: var(--on-brand-line); }
.brandblock .lines .n { color: var(--flare); }
.brandblock .lines p { color: var(--on-brand-2); }
.brandblock .lines h3 { color: var(--on-brand); }

.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.split > * { padding: clamp(26px, 3.6vw, 56px); min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.split-l { background: var(--wash); border-right: 1px solid var(--line); }
.split-l img { width: 92px; height: 92px; border-radius: var(--r); margin-bottom: 26px; }
.split-l .kicker { margin-bottom: 16px; }
.split h2, .split h3 { margin-bottom: 14px; }
.split .flist { display: grid; gap: 11px; margin: 4px 0 28px; }
.split .flist li { display: flex; gap: 11px; font-size: 0.94rem; color: var(--ink-2); }
.split .flist svg { width: 15px; height: 15px; color: var(--flare); flex-shrink: 0; margin-top: 4px; }

/* itch.io game cards ------------------------------------------------------
   The itch widget hardcodes its own light theme and its own "view on itch"
   link inside a cross-origin frame, so it cannot be restyled or stripped.
   These native cards use itch's own cover art and give us full control. */
.games { display: grid; gap: 16px; }
@media (min-width: 1000px) { .games { grid-template-columns: 1fr 1fr; } }

.game {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.game:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.game-art {
  position: relative;
  background: var(--brand);
  overflow: hidden;
  /* matches the 360x286 itch source exactly, so the art is never cropped */
  aspect-ratio: 360 / 286;
  align-self: start;
}
.game-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.game-body { padding: 16px 18px; display: flex; flex-direction: column; min-width: 0; }
.game-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.game-body h3 { font-size: 1rem; letter-spacing: -0.02em; }
.game-body > p { font-size: 0.86rem; color: var(--ink-2); line-height: 1.55; }
.game-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.game-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}
.game-go svg { width: 13px; height: 13px; transition: transform 0.35s var(--ease); }
.game:hover .game-go { color: var(--ink); }
.game:hover .game-go svg { transform: translate(2px, -2px); }
.game-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }

@media (min-width: 560px) {
  .game { grid-template-columns: 160px minmax(0, 1fr); }
  .game-body { padding: 18px 20px; }
}
@media (min-width: 1000px) {
  .game { grid-template-columns: 214px minmax(0, 1fr); }
  .game-body { padding: 22px 24px; }
}

.note-block { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line); border-left: 2px solid var(--flare); background: var(--wash); font-size: 0.9rem; color: var(--ink-2); line-height: 1.65; max-width: 72ch; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.filters button:hover { color: var(--ink); border-color: var(--line-2); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* =====================================================================
   REVEALS
   ===================================================================== */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.85s var(--ease), transform 0.95s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.rv-s { opacity: 0; transform: scale(0.965); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv-s.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 130;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.to-top.on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.to-top svg { width: 17px; height: 17px; }

.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 200;
  transform: translate(-50%, 14px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--r);
  font-size: 0.88rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  max-width: min(90vw, 520px);
  text-align: center;
}
.toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.skip { position: absolute; left: 16px; top: -70px; z-index: 300; padding: 12px 20px; background: var(--ink); color: var(--paper); font-weight: 600; border-radius: var(--r); transition: top 0.3s var(--ease); }
.skip:focus { top: 16px; }

/* view transition between pages */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 0.28s var(--ease-io) both; }
  ::view-transition-new(root) { animation: vt-in 0.4s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .manifesto { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Below this the fixed side columns squeeze the description, so drop to a
   three-column header row and let the description span underneath it. */
@media (max-width: 1180px) {
  .cap-row { grid-template-columns: 46px minmax(0, 1fr) 38px; row-gap: 12px; }
  .cap-row .cap-n { grid-area: 1 / 1; }
  .cap-row h3 { grid-area: 1 / 2; }
  .cap-row .cap-x { grid-area: 1 / 3; }
  .cap-row p { grid-area: 2 / 2 / 3 / 4; max-width: none; }
  .cap-row .cap-tags { display: none; }

  .work-row { grid-template-columns: 46px minmax(0, 1fr) 38px; row-gap: 12px; }
  .work-row .work-n { grid-area: 1 / 1; }
  .work-row .work-t { grid-area: 1 / 2; }
  .work-row .work-go { grid-area: 1 / 3; }
  .work-row .work-d { grid-area: 2 / 2 / 3 / 4; max-width: none; }
  .work-row .work-m { display: none; }
}
@media (max-width: 900px) {
  .hdr-links, .hdr-links .btn { display: none; }
  /* .hdr-links is display:none here, so its margin-left:auto no longer pushes
     anything. Hand the job to .hdr-tools so the toggle and burger stay pinned
     to the right edge instead of sitting against the logo. */
  .hdr-tools { margin-left: auto; }
  .burger { display: flex; }
  .swap { grid-template-columns: 1fr; }
  .swap-mid { justify-self: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .assure { grid-template-columns: 1fr; }
  .assure li:nth-child(odd) { border-right: 0; }
  .assure li:nth-child(even) { padding-left: 0; }
}

/* ------------------------------------------------------------------------
   MOBILE DENSITY PASS
   The desktop layout is deliberately airy; on a phone that same rhythm turns
   into an endless scroll. This tier tightens spacing, type and component
   sizes without changing the design.
   ------------------------------------------------------------------------ */
@media (max-width: 720px) {
  :root { --sec: clamp(50px, 13vw, 78px); --nav-h: 62px; }

  .display { font-size: clamp(1.8rem, 8vw, 2.5rem); line-height: 1.04; letter-spacing: -0.035em; }
  .h1 { font-size: clamp(1.65rem, 7.2vw, 2.3rem); }
  .h2 { font-size: clamp(1.4rem, 5.4vw, 1.85rem); }
  .lede { font-size: 1rem; }
  .statement { font-size: clamp(1.2rem, 5.4vw, 1.6rem); }
  .eyebrow, .kicker { font-size: 10px; letter-spacing: 0.15em; }

  .sec-head { margin-bottom: 28px; }
  .sec-head .h2 { margin-top: 12px; }

  .fgrid { grid-template-columns: 1fr; }
  .hero-foot { grid-template-columns: 1fr; }

  .hero-in { padding-block: calc(var(--head-h) + 26px) 34px; }
  .hero-top { margin-bottom: 20px; }
  .hero-loc { display: none; }
  .hero-sub { margin-bottom: 22px; }
  .hero-foot { margin-top: 24px; padding-top: 20px; row-gap: 16px; }

  .manifesto { gap: 26px; }

  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact { border-right: 1px solid var(--line); border-bottom: 0; padding: 16px 12px 16px 0; }
  .fact + .fact { padding-left: 12px; }
  .fact:last-child { border-right: 0; }
  .fact b { font-size: 1.5rem; }
  .fact span { margin-top: 6px; font-size: 0.72rem; line-height: 1.35; }

  .cap-row, .work-row { padding: 18px 0; row-gap: 8px; }
  .cap-row p, .work-d { padding-top: 0; font-size: 0.9rem; }

  .steps { grid-template-columns: 1fr 1fr; gap: 22px 20px; padding-top: 24px; }
  .step h3 { font-size: 0.95rem; }
  .step p { font-size: 0.85rem; }

  .assure { margin-top: 30px; }
  .assure li { padding: 20px 0; }
  .assure li > i { margin-bottom: 10px; }
  .assure p { font-size: 0.92rem; }

  .swap { gap: 18px; }
  .swap-mid { width: 44px; height: 44px; }
  .swap-name { font-size: clamp(1.4rem, 7vw, 2rem); }
  .tline { margin-top: 28px; }
  .tline li { padding: 16px 0; }
  .tline p { font-size: 0.92rem; }

  .faq summary { padding: 17px 0; font-size: 0.98rem; }
  .faq .ans p { font-size: 0.9rem; }

  .game { grid-template-columns: 96px minmax(0, 1fr); }
  .game-body { padding: 13px 14px; }
  .game-body h3 { font-size: 0.94rem; }
  .game-body > p { font-size: 0.82rem; }
  .game-foot { padding-top: 11px; margin-top: 11px; }

  .foot-mark { display: none; }
  .foot-top { padding-block: 40px 28px; gap: 26px; }
  .socials { gap: 6px; }
  .socials a { padding: 7px 11px; font-size: 0.8rem; }
  .foot-note { padding-block: 20px; }

  .to-top { right: 14px; bottom: 14px; }
}

/* the full rename sentence wraps to three lines on a phone - swap the short one in */
@media (max-width: 560px) {
  .hdr-bar .rename-long { display: none; }
  .hdr-bar .rename-short { display: inline; }
}

/* very small phones: shed the last of the chrome */
@media (max-width: 400px) {
  .hdr-bar p { font-size: 11px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { border-top: 1px solid var(--line); padding-left: 0; }
  .game { grid-template-columns: 84px minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .hero-cta, .cta-btns { width: 100%; }
  .cap-row { grid-template-columns: 1fr 36px; }
  .cap-row .cap-n { display: none; }
  .cap-row h3 { grid-area: 1 / 1; }
  .cap-row .cap-x { grid-area: 1 / 2; }
  .cap-row p { grid-area: 2 / 1 / 3 / 3; }
  .mails { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv, .rv-s, .swap-old, .swap-mid, .swap-new { opacity: 1 !important; transform: none !important; }
  .rl > span { transform: none !important; }
  .ticker-track { animation: none; }
  .hero-light { display: none; }
}

/* ------------------------------------------------------------------ print -- */
@media print {
  :root { --paper: #fff; --ink: #000; --ink-2: #333; --ink-3: #555; --line: #ccc; --line-2: #999; --brand: #1f2042; }
  html { background: #fff; scrollbar-gutter: auto; }
  body { background: #fff; color: #000; font-size: 11pt; }

  .hdr-bar, .hdr-nav, .msheet, .to-top, .toast, .hero-field, .hero-light,
  .hero-fade, .hdr-prog, .ticker, .form, .pick,
  .socials, .foot-mark, .cap-x, .work-go, .cap-tags, .filters { display: none !important; }

  .sec { padding-block: 18pt; }
  .hero { background: #fff !important; color: #000 !important; padding: 0; }
  .hero-in { padding: 0; }
  .brandblock { background: #fff !important; color: #000 !important; }
  .brandblock * { color: #000 !important; }
  .brandblock .kicker, .brandblock .lede { color: #444 !important; }

  /* let a tapped or hovered row actually print its destination */
  a[href^="http"]::after, a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #555; word-break: break-all; }
  .foot-mail a::after, .hdr-bar a::after, .form-ok a::after { content: ""; }

  .rv, .rv-s, .swap-old, .swap-mid, .swap-new { opacity: 1 !important; transform: none !important; }
  .game, .work-row, .cap-row, .row-i, .fact, .step { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  img { max-width: 100% !important; }
}
