/* ============================================================
   ANTSFACTORY — SITE
   Component styles. Reads tokens.css and never hard-codes a
   colour, font, radius or duration.

   House rules, from the design language:
   · display type is serif at weight 400 and never bolder
   · no drop shadows anywhere — elevation is a colour step
   · chromatic colour appears only on full-bleed tiles
   · body copy sits at --ink-dim, headings at --ink-85
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:root[data-motion="none"] html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: var(--body-weight);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--accent-ink);
  padding: var(--btn-py) var(--btn-px); border-radius: var(--radius-pill);
}
.skip:focus { left: 1rem; top: 1rem; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- The ground -------------------------------------
   A photographic nest section behind the whole page: real soil,
   with the galleries cut out of it rather than drawn on top.

   Three layers do the work:
     .ground       the earth — a graded soil photograph, cross-faded
                   against itself so it repeats with no seam
     .ground__ants three residents, positioned on the gallery centrelines
     .ground__cut  the same photograph, darker and softened, masked to
                   the tunnel network — so the void has real texture
                   inside it instead of being a flat shape
     .ground__lit  the wrapper, carrying a pale drop-shadow cast UPWARD
                   (light from the surface catching the top of each
                   gallery) and a black one downward (depth below)

   It starts invisible so the hero photograph owns the first screen.
   `max()` keeps the galleries at a believable scale on phones rather
   than shrinking the whole nest into a mesh. */
.ground {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0;
  background-image: url("../assets/soil.jpg");
  background-repeat: repeat-y;
  background-size: max(100%, 900px) auto;
  background-position: 50% 0;
}
.ground__lit {
  position: absolute; inset: 0;
  filter: drop-shadow(0 -1px 2px rgb(186 200 216 / .3))
          drop-shadow(0 5px 11px rgb(0 0 0 / .6));
}
.ground__cut {
  position: absolute; inset: 0;
  background-image: url("../assets/soil.jpg");
  background-repeat: repeat-y;
  /* a different scale and offset from the earth above it, so the soil
     inside the gallery never lines up with the soil around it */
  background-size: max(118%, 1060px) auto;
  background-position: 38% 240px;
  filter: brightness(.52) contrast(1.05) blur(1.1px);
  -webkit-mask-image: url("../assets/tunnels-mask.svg");
          mask-image: url("../assets/tunnels-mask.svg");
  -webkit-mask-repeat: repeat-y;  mask-repeat: repeat-y;
  -webkit-mask-size: max(100%, 900px) auto; mask-size: max(100%, 900px) auto;
  -webkit-mask-position: 50% 0;   mask-position: 50% 0;
}
/* residents. Each one is a real element walking a real gallery path —
   js/site.js positions them, so this only carries the layer. */
.ground__ants { position: absolute; inset: 0; opacity: .3; }
.ground__ants .ant { position: absolute; left: 0; top: 0; margin: -9px 0 0 -16px; }
/* opacity, clip and tile origin are all set from js/site.js against the
   surface line's live position — see "Sky-to-ground" there */

/* ---------- The surface ------------------------------------
   The line the page crosses on its way underground: sky above,
   nest below. Full-bleed on purpose — a horizon that stopped at
   the 1200px container would read as a divider rule instead. */
.horizon {
  position: relative;
  height: 1px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(to right,
    transparent,
    rgb(var(--ink-rgb) / .1) 12%,
    rgb(var(--ink-rgb) / .1) 88%,
    transparent);
}
/* what grows on the surface and lies about on it */
.horizon::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background: url("../assets/verge.svg") repeat-x left bottom;
  background-size: 1400px 34px;
  pointer-events: none;
}
/* the loose soil immediately under it */
.horizon::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 3.5rem;
  background: linear-gradient(rgb(var(--ink-rgb) / .045), transparent);
  pointer-events: none;
}
.horizon__ant {
  /* -2px seats the feet on the line rather than hovering over it —
     the svg carries ~1.4 units of empty space below the legs */
  position: absolute; bottom: -2px; left: 0;
  color: rgb(var(--ink-rgb) / .3);
}

/* ---------- The gait ---------------------------------------
   Legs pivot at the thorax, front and back swinging against the
   middle one — an alternating tripod, which is what an ant
   actually does. The class is toggled from JS so the legs stop
   dead when the ant stops, instead of running on the spot. */
.ant__leg, .ant__feeler {
  transform-box: view-box;
  transform-origin: 18px 10.4px;
}
.ant__feeler { transform-origin: 25.6px 4.4px; }
.is-walking .ant__leg--a  { animation: legSwing .3s ease-in-out infinite alternate; }
.is-walking .ant__leg--b  { animation: legSwing .3s ease-in-out infinite alternate-reverse; }
.is-walking .ant__body    { animation: antBob .15s ease-in-out infinite alternate; }
.is-walking .ant__feeler  { animation: feeler 1.9s ease-in-out infinite; }
@keyframes legSwing { from { rotate: -11deg } to { rotate: 11deg } }
@keyframes antBob   { from { translate: 0 0 } to { translate: 0 -.55px } }
@keyframes feeler   { 0%, 100% { rotate: 0deg } 40% { rotate: -8deg } 70% { rotate: 5deg } }

/* ---------- Layout primitives ------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main { position: relative; z-index: 1; }
.section { padding-block: var(--section-y); position: relative; }
/* translucent, so the nest stays continuous behind the banding */
.section--alt { background: color-mix(in srgb, var(--bg-2) 80%, transparent); }
.section--tight { padding-block: calc(var(--section-y) * .5); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Type ------------------------------------------- */
.display, h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); color: var(--ink-85); }
h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  letter-spacing: calc(var(--display-tracking) * .7);
  line-height: 1;
}
h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--display-weight);
  letter-spacing: calc(var(--display-tracking) * .5);
  line-height: 1.15;
}
/* h3s that sit at h4 size: keeps the outline h2 → h3 without changing the look */
h3.h4 {
  font-size: var(--fs-h4);
  letter-spacing: calc(var(--display-tracking) * .5);
  line-height: 1.15;
}
em { font-style: italic; }
.lead {
  font-size: var(--fs-lead); font-weight: 300; line-height: 1.5;
  color: var(--ink-dim); max-width: var(--maxw-text);
}
.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1;
}
/* section eyebrow — a centred mono label, no rule, no numbering */
.marker { display: flex; justify-content: center; margin-bottom: 1.75rem; }
:root[data-marker="none"] .marker { display: none; }

/* ---------- Buttons ---------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius-pill);
  border: var(--border-w) solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
  background: transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { opacity: .88; }
.btn--ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--surface-hi); }
.btn--glass {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.btn--glass:hover { background: var(--surface-hi); }
.btn--block { width: 100%; }
.btn .arw { transition: transform var(--dur) var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* pill chip / eyebrow badge */
.chip {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .625rem 2rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--ink-rgb) / .15);
  background: rgb(var(--ink-rgb) / .12);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .02em; text-transform: uppercase; color: var(--ink-85);
}
@media (max-width: 480px) { .chip { padding-inline: 1.1rem; font-size: .6875rem; } }

.pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .55em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: calc(var(--label-tracking) * .55);
  text-transform: uppercase;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.pill:hover { color: var(--ink); border-color: var(--line-strong); }
.pill[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Cards ------------------------------------------ */
.card {
  border-radius: var(--radius-sm);
  padding: var(--card-pad);
  position: relative;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
:root[data-card="filled"]   .card { border: var(--border-w) solid transparent; background: var(--surface-graphite); }
:root[data-card="filled"]   .card:hover { background: var(--surface-steel); }
:root[data-card="bordered"] .card { border: var(--border-w) solid var(--line); background: transparent; }
:root[data-card="bordered"] .card:hover { border-color: var(--line-strong); }
:root[data-card="glass"]    .card { border: var(--border-w) solid var(--line); background: var(--surface); backdrop-filter: blur(18px); }
:root[data-card="glass"]    .card:hover { background: var(--surface-hi); }
:root[data-card="bare"]     .card { border: none; background: transparent; padding-inline: 0; }
:root[data-card="bare"]     .card + .card { border-top: 1px solid var(--line); }

/* ============================================================
   NAV — sticky, frosted over the canvas
   ============================================================ */
.nav {
  position: fixed; inset: .75rem var(--gutter) auto; z-index: 70;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(var(--blur-nav)) saturate(1.3);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__inner {
  display: flex; align-items: center; gap: 1rem;
  padding: .5625rem .75rem;
  max-width: var(--maxw); margin-inline: auto;
}
/* The lockup carries the page, so it is sized well above UI text. Both
   halves scale down on narrow screens — at full size the wordmark and the
   CTA together are wider than a 375px nav can hold. */
.nav__brand { display: inline-flex; align-items: center; gap: .55rem; }
.nav__mark {
  width: clamp(26px, 2.4vw, 32.5px); height: clamp(26px, 2.4vw, 32.5px);
  flex: none; color: var(--ink);
}
.nav__brand span {
  font-size: clamp(1.05rem, .6rem + 1.4vw, 1.75rem);
  letter-spacing: -.005em; line-height: 1;
}
.nav__links { list-style: none; padding: 0; display: flex; gap: .375rem; margin-left: auto; }
.nav__links a {
  display: inline-flex; padding: .5625rem .75rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-sm); color: var(--ink-85);
  transition: background var(--dur) var(--ease);
}
.nav__links a:hover { background: var(--surface-hi); }
.nav__cta { padding: .5625rem .9rem; font-size: var(--fs-sm); }
@media (max-width: 860px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } }

/* ============================================================
   HERO — atmospheric photograph, centred display
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: grid; isolation: isolate; overflow: hidden; }
.hero__sky { position: absolute; inset: 0; z-index: 0; background: var(--grad-sky); opacity: .55; }
.hero__media { position: absolute; inset: 0; z-index: 1; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
  opacity: .82;
}
/* scrim: white type must clear the cloud bank at every width */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--bg) 72%, transparent) 0%,
      color-mix(in srgb, var(--bg) 46%, transparent) 26%,
      color-mix(in srgb, var(--bg) 62%, transparent) 52%,
      color-mix(in srgb, var(--bg) 88%, transparent) 78%,
      var(--bg) 100%);
}
.hero__inner {
  position: relative; z-index: 4;
  display: grid; align-content: center; justify-items: center; text-align: center;
  min-height: 100svh;
  padding-block: clamp(7rem, 16vh, 10rem) clamp(3.5rem, 9vh, 6rem);
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
}
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: .5rem; }
.hero__meta { margin-top: 1rem; }

/* scroll cue */
.cue { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-faint); }
.cue__line { width: 1px; height: 34px; background: linear-gradient(var(--ink-faint), transparent); }
.cue__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); animation: cueDrop 2.6s var(--ease) infinite; }
@keyframes cueDrop { 0%,100% { transform: translateY(-6px); opacity: 0 } 50% { transform: translateY(6px); opacity: 1 } }
:root[data-motion="none"] .cue__dot { animation: none; opacity: 1 }

/* ============================================================
   REVEAL ANIMATIONS — long, flat, no overshoot
   ============================================================ */
/* the padding/margin pair keeps descenders inside the clip box —
   at line-height .9 a bare overflow:hidden shears the p's and y's */
.word {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .06em .04em .18em; margin: -.06em -.04em -.18em;
}
.word > span {
  display: inline-block;
  transform: translateY(102%);
  opacity: 0;
  transition: transform calc(1.1s * var(--motion)) var(--ease-expo),
              opacity calc(.9s * var(--motion)) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.is-in .word > span { transform: none; opacity: 1; }

[data-reveal] {
  opacity: 0;
  transform: translateY(calc(16px * var(--motion)));
  transition: opacity calc(1.2s * var(--motion)) var(--ease),
              transform calc(1.2s * var(--motion)) var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms * var(--motion));
}
[data-reveal].is-in { opacity: 1; transform: none; }
.hero [data-reveal] { transition-duration: var(--dur-slow); }

:root[data-motion="none"] .word > span,
:root[data-motion="none"] [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ============================================================
   STAT ROW
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stat {
  border-radius: var(--radius-sm); background: var(--surface-graphite);
  padding: var(--card-pad); display: grid; gap: .9rem; align-content: start;
}
.stat__n {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(2.4rem, 1.4rem + 3vw, 3.5rem); line-height: 1;
  letter-spacing: var(--display-tracking);
}
.stat__l { color: var(--ink-faint); }

/* ============================================================
   TWO-UP
   ============================================================ */
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); margin-top: 3.5rem; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.duo .h4 { margin-bottom: .7rem; }
.duo__ic { width: 34px; height: 34px; color: var(--ink); margin-bottom: 1.6rem; }

/* section head — headlines are centred, always */
.lib__head { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.lib__head h2 { max-width: 20ch; }
.lib__head .lead { max-width: 560px; }

/* ============================================================
   CHROMATIC CATEGORY TILES
   Colour is the only differentiator. No border, no shadow.
   ============================================================ */
.tiles { display: grid; grid-template-columns: repeat(var(--grid-cols), 1fr); gap: var(--grid-gap); margin-top: 3.5rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  border-radius: var(--radius); padding: var(--card-pad);
  min-height: 260px; display: grid; align-content: space-between; gap: 2.5rem;
  color: var(--ink-85);
  transition: transform var(--dur) var(--ease);
}
.tile:hover { transform: translateY(-3px); }
:root[data-motion="none"] .tile:hover { transform: none; }
.tile h3 { color: inherit; margin-bottom: .7rem; }
/* tiles that filter the index are buttons: strip the UA chrome */
button.tile { font: inherit; text-align: left; border: 0; cursor: pointer; width: 100%; }
button.tile:focus-visible { outline-offset: 4px; }
.tile__n {
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--label-tracking); text-transform: uppercase; opacity: .7;
}
.tile p { font-size: var(--fs-body); color: inherit; opacity: .86; }
.tile__ic { width: 26px; height: 26px; color: currentColor; }
/* Ink follows contrast, not habit. Deep Iris and Graphite are the only
   fills dark enough to carry white body copy at 4.5:1; the rest take
   black. Cyan Signal is deliberately absent — it is a data colour, and
   the design language reserves it for chart strokes, not large fills. */
.tile--deep-iris  { background: var(--tile-deep-iris); }
.tile--graphite   { background: var(--surface-graphite); }
.tile--iris       { background: var(--tile-iris);       color: var(--void); }
.tile--pale-iris  { background: var(--tile-pale-iris);  color: var(--void); }
.tile--orchid     { background: var(--tile-orchid);     color: var(--void); }
.tile--periwinkle { background: var(--tile-periwinkle); color: var(--void); }

/* ============================================================
   INVERTED SILVER CARD — used once, to break the dark rhythm
   ============================================================ */
.invert {
  background: var(--surface-silver); color: var(--void);
  border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.75rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: var(--grid-gap);
}
@media (max-width: 760px) { .invert { grid-template-columns: 1fr; } }
.invert__side { display: grid; gap: 1.5rem; justify-items: start; }
.invert h3 { color: var(--void); max-width: 18ch; margin-top: 1.25rem; }
.invert p { color: var(--void); opacity: .72; }
.invert .label { color: var(--void); opacity: .55; }
.invert .btn--primary { background: var(--void); color: var(--accent); }

/* ============================================================
   PORTFOLIO ROWS
   ============================================================ */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 3rem 0 1.75rem; }
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 2.4rem 1fr 1.2fr auto;
  align-items: baseline; gap: 1.25rem;
  padding: 1.4rem .75rem; border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.row:hover { background: var(--surface); }
a.row { color: inherit; }
.row__go { display: inline-block; margin-left: .5rem; color: var(--ink-dim); transition: transform var(--dur) var(--ease); }
.row:hover .row__go { transform: translate(2px, -2px); color: var(--ink); }
.row__n { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-ghost); letter-spacing: .1em; }
.row__t { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--display-weight); }
.row__d { color: var(--ink-dim); font-size: var(--fs-sm); }
.row__k { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: calc(var(--label-tracking) * .6);
          text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
@media (max-width: 700px) {
  .row { grid-template-columns: 2rem 1fr; row-gap: .35rem; column-gap: 1rem; }
  .row__n { grid-row: 1 / span 3; }
  .row__d, .row__k { grid-column: 2; }
}

/* ============================================================
   DEVICE BAND — the product is the hero
   ============================================================ */
.band {
  background: var(--surface-graphite); border-radius: var(--radius-sm);
  padding: clamp(2rem, 7vw, 5.625rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }
.band h2 { font-size: var(--fs-h3); margin-top: 1.4rem; }
.band .lead { margin-top: 1.4rem; }
.band__cta { margin-top: 2rem; }
.features { display: grid; gap: var(--grid-gap); margin-top: 3.5rem; }
/* desktop sites need more room than a phone does */
.band--browser { grid-template-columns: .82fr 1.18fr; }
/* alternate sides down the page; on a phone everything stacks copy-first */
@media (min-width: 861px) {
  .band--flip { grid-template-columns: 1.18fr .82fr; }
  .band--phone.band--flip { grid-template-columns: 1fr 1fr; }
  .band--flip > .band__copy { order: 2; }
}
@media (max-width: 860px) { .band--browser { grid-template-columns: 1fr; } }
/* grid items default to min-width:auto, so one unbreakable string (a long
   subdomain in tracked-out caps) can push the whole card off a phone */
.band > * { min-width: 0; }
.band__copy > .label { overflow-wrap: anywhere; line-height: 1.5; }
.label .host { text-transform: none; letter-spacing: .04em; }

/* spec rows under each card's blurb */
.sheet__rows { display: grid; margin-top: 1.75rem; max-width: 30rem; }
.sheet__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .65rem 0; border-top: 1px solid var(--line); font-size: var(--fs-sm);
}
.sheet__row:last-child { border-bottom: 1px solid var(--line); }
.sheet__row dt { color: var(--ink-dim); }
.sheet__row dd { color: var(--ink-85); text-align: right; font-family: var(--font-mono);
                 font-size: .78rem; letter-spacing: .02em; }

/* a browser window, in the same machined chrome as the phone */
.browser {
  width: 100%; justify-self: center;
  border-radius: 14px; padding: 0 8px 8px;
  background: var(--grad-chrome);
}
/* no tilt on either frame: both carry data-reveal, and the reveal's
   transform:none would override a rotate the moment it fires */
.browser__bar { display: flex; align-items: center; gap: .4rem; height: 32px; padding-inline: 4px; }
.browser__dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--ink-rgb) / .18); flex: none; }
.browser__url {
  margin-left: .6rem; flex: 1; min-width: 0;
  padding: .28rem .7rem; border-radius: 6px; background: rgb(0 0 0 / .35);
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em; color: var(--ink-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__screen {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  border-radius: 6px; background: var(--void);
  object-fit: cover; object-position: top center;
}
.phone {
  width: min(258px, 58vw); aspect-ratio: 258 / 540; justify-self: center;
  border-radius: 36px; padding: 10px;
  background: var(--grad-chrome);
}
@media (max-width: 560px) { .phone { width: min(210px, 54vw); } }
.phone__screen {
  display: block; width: 100%; height: 100%;
  border-radius: 27px; background: var(--void);
  object-fit: cover; object-position: top center;
}

/* ============================================================
   PROCESS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); margin-top: 3.5rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; display: grid; gap: .8rem; align-content: start; }
.step .h4 { margin-top: .4rem; }
.step p { color: var(--ink-dim); font-size: var(--fs-sm); }

/* ============================================================
   TEXT MARQUEE — the bench
   ============================================================ */
.marquee { overflow: hidden; padding-block: clamp(1.5rem, 4vw, 2.5rem); position: relative; --mq: 46s; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 16vw; z-index: 2; pointer-events: none; }
.marquee::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.section--alt .marquee::before { background: linear-gradient(to right, var(--bg-2), transparent); }
.section--alt .marquee::after  { background: linear-gradient(to left,  var(--bg-2), transparent); }
.marquee__track { display: flex; align-items: center; gap: 3rem; width: max-content; animation: slide var(--mq) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
:root[data-motion="none"] .marquee__track { animation: none; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; flex: none;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 3rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 1.25rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem) 0;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, .95rem + .7vw, 1.5rem);
  font-weight: var(--display-weight);
  letter-spacing: calc(var(--display-tracking) * .6);
  line-height: 1.2;
  color: var(--ink-85);
  transition: color var(--dur) var(--ease);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--ink); }
.faq__n { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .1em; color: var(--ink-ghost); flex: none; }
.faq__ic {
  margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  position: relative;
}
.faq__ic::before, .faq__ic::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq__ic::before { width: 11px; height: 1.5px; }
.faq__ic::after  { width: 1.5px; height: 11px; transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__ic::after { transform: scaleY(0); }
.faq__item[open] .faq__ic { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows calc(.45s * var(--motion)) var(--ease); }
.faq__item[open] .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { max-width: 62ch; color: var(--ink-dim); padding-bottom: 1.75rem; }

/* ============================================================
   FOOTER + STICKY BAR
   ============================================================ */
.foot { padding-block: var(--section-y) 8rem; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 1.4fr .6fr .6fr; gap: 2.5rem; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
.foot__ant { width: 58px; height: 58px; color: var(--ink); margin-bottom: 1.5rem; }
.foot__mark {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: var(--display-tracking); line-height: 1;
}
.foot__links { list-style: none; padding: 0; display: grid; gap: .7rem; font-size: var(--fs-sm); }
.foot__links a { color: var(--ink-dim); transition: color var(--dur) var(--ease); }
.foot__links a:hover { color: var(--ink); }
.foot__bar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.buybar {
  position: fixed; left: 50%; bottom: clamp(1rem, 3vw, 1.75rem); z-index: 50;
  transform: translate(-50%, 200%);
  display: flex; align-items: center; gap: 1.25rem;
  padding: .5rem .5rem .5rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(var(--blur-nav)) saturate(1.3);
  transition: transform calc(.6s * var(--motion)) var(--ease);
  max-width: calc(100vw - 2rem);
}
.buybar.is-up { transform: translate(-50%, 0); }
.buybar__t { font-size: var(--fs-sm); color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { white-space: nowrap; }
@media (max-width: 420px) { .buybar__t { display: none; } .buybar { padding-left: .5rem; } }

