/* DIGITAL — the home page (index.html only; styles.css carries everything shared).
   01 The Index hero: the headline set edge to edge on a visible grid, the Signal chevron (one lit CSS-3D object that turns
   with the pointer), an image band of the sample screens across one line with the type knocked out over it, the copy set
   into the gap the last line leaves. 02 The showcase: the sample sites as an index of giant rows, the active screen in a
   bracket viewfinder. The night footer scene lives in styles.css (every page ends on it).
   Brand colors only (plus rgba and mixes of them), Inter, 4px corners, no gradient fills: light is blurred shapes. */



:root {
  --lh: .86; --lines: 4;
  --knock: var(--white);                                   /* the type over the band (white in every theme: the band is a Digital Blue print) */
  --ghost: var(--steel); --ghost-2: #5A606B;                 /* the showcase's resting rows: Steel (AA for large type), a step darker on hover */
  --band-c: var(--blue); --band-o: .58;
}
:root[data-theme="dark"] {
  --knock: var(--white);
  --ghost: var(--steel); --ghost-2: #A4AAB4;
  --band-c: var(--blue); --band-o: .5;
}
:root[data-art] {
  --ghost: #4C7ED6; --ghost-2: var(--luminous);
}
@media (max-width: 899px) { :root { --lines: 5; } }

/* ================= 01 — The Index hero ================= */
.hero.idx { padding: 0 0 clamp(52px, 4.4vw, 64px); min-height: calc(100svh - 76px); display: flex; flex-direction: column; overflow-x: clip; }
.hl-wrap {
  position: relative; isolation: isolate; margin: auto var(--pad) 0; padding-top: var(--ot);
  --fs: calc((100vw - 2 * var(--pad)) / 7.2);        /* close to the fitted size; the inline script fits it exactly before first paint */
  font-size: var(--fs);
  --ot: 0px;                                  /* phones: the object stands above the headline, this tall */
  --bt: calc(2 * var(--lh) * 1em + .40em);   /* the band: across line 3 "customers when", from mid x-height */
  --bh: .54em;
}
.hl-wrap:not(.is-fit) { visibility: hidden; }
.stencil { display: contents; }
.hl {
  position: relative; z-index: 2; display: block; width: 100%;
  font-size: 1em; font-weight: 600; letter-spacing: calc(-.058em + var(--trk-fb, -.014em)); line-height: var(--lh);   /* --trk-fb: the fallback's tighter tracking; 0 once Inter is in (html.inter) */
  white-space: nowrap; color: var(--text); text-wrap: nowrap;
  margin-left: -.03em;   /* optical: the W's side bearing sits on the grid line */
  transform: scaleX(var(--sx, 1)); transform-origin: 0 50%;   /* home.js: the last fraction of a percent when Inter arrives */
}
.hl br.m { display: none; }
.hl-knock {
  position: absolute; top: var(--ot); left: 0; right: 0; z-index: 3; color: var(--knock); pointer-events: none; user-select: none;
  clip-path: inset(var(--bt) -1em calc(100% - var(--bt) - var(--bh)) -1em);
}

/* The band: the sample screens printed in one ink. Light = a Digital Blue print with white type across it.
   Dark = a lit Ice Blue strip at night with Digital Black type across it. */
.band { position: absolute; z-index: 1; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); top: calc(var(--ot) + var(--bt)); height: var(--bh); overflow: hidden; background: var(--band-c); }
.band-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; height: 100%; width: 100%; mix-blend-mode: luminosity; opacity: var(--band-o); }   /* three crops of the samples' own headlines, one ink, cut by the band's edges */
/* Each screen is cropped to its own headline block, so the strip reads as sample sites printed in one ink, not fragments. */
.band-in img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; filter: grayscale(1) contrast(1.15) brightness(1.08); }
:root[data-theme="dark"] .band { box-shadow: 0 0 90px 10px rgba(20, 99, 255, .4), 0 0 24px rgba(60, 139, 255, .45); }
/* The honesty label sits on its own plate at the band's end, never over a screen. */
.band-cap { position: absolute; right: var(--pad); bottom: 6px; display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 2px; background: var(--blue); font-size: .6875rem; line-height: 1; font-weight: 600; letter-spacing: .01em; color: var(--white); }


/* The copy sits in the space the last line leaves. */
.copy-at { position: absolute; z-index: 4; top: calc(3 * var(--lh) * 1em); height: .79em; left: var(--cl, 64%); right: 0; display: flex; align-items: flex-end; }
/* The copy in the notch: the lede, then the button with the proof beside it, then the clarifier under the button. */
.copy { font-size: .9375rem; max-width: 36em; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center; }
.idx .lede { grid-column: 1 / -1; font-size: .9375rem; line-height: 1.35; max-width: 37em; text-wrap: pretty; }
.idx .lede .l1 { color: var(--text); font-weight: 500; }   /* the first sentence, a beat of its own (its own line where the copy flows) */
.idx .hero-actions { grid-column: 1; grid-row: 2; gap: 8px 18px; margin-top: 10px; }
.idx .btn { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.proof { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .875rem; color: var(--text); }
.proof .link { color: var(--accent); font-variant-numeric: tabular-nums; }
.clarifier { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; font-size: .75rem; color: var(--text-2); }
/* Short or narrow desktops: the copy drops under the headline as one row: the lede, the button with its clarifier, the proof. */
.hl-wrap.is-flow .copy-at { position: static; height: auto; display: block; margin-top: 30px; }
.hl-wrap.is-flow .copy { max-width: none; grid-template-columns: minmax(0, 28em) minmax(0, 16em) minmax(15em, 1fr); grid-template-rows: max-content 1fr; column-gap: 40px; align-items: start; padding-right: 80px; }   /* the Ask mark floats bottom-right; the proof keeps a floor of 15em; the first row is the button's own height (the lede and the proof span both rows), so the clarifier stays glued to the button */
.hl-wrap.is-flow .lede { grid-column: 1; grid-row: 1 / span 2; max-width: 28em; font-size: 1rem; }
.hl-wrap.is-flow .lede .l1 { display: block; }
.hl-wrap.is-flow .hero-actions { grid-column: 2; grid-row: 1; margin-top: 0; flex-wrap: nowrap; }
.hl-wrap.is-flow .clarifier { grid-column: 2; grid-row: 2; margin-top: 8px; }
.hl-wrap.is-flow .proof { grid-column: 3; grid-row: 1 / span 2; margin-top: 11px; font-size: .9375rem; }
.hl-wrap.is-flow .proof > span { text-wrap: balance; }
.hl-wrap.is-flow .proof { align-items: flex-start; }
.hl-wrap.is-flow .proof .live { margin-top: 7px; }
/* Small laptops and split screens: two columns, the proof under the button, so the lede keeps its measure. */
@media (min-width: 900px) and (max-width: 1199px) {
  .hl-wrap.is-flow .copy { grid-template-columns: minmax(0, 28em) minmax(16em, 1fr); grid-template-rows: max-content max-content 1fr; }
  .hl-wrap.is-flow .lede { grid-row: 1 / span 3; }
  .hl-wrap.is-flow .proof { grid-column: 2; grid-row: 3; margin-top: 14px; }
}
.proof .link { color: var(--text); font-weight: 600; white-space: nowrap; display: inline-block; padding-block: 10px; margin-block: -10px; background-position: 0 calc(100% - 10px); }   /* a 44px tap target; the underline stays under the glyphs */
.live { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--luminous); box-shadow: 0 0 10px var(--luminous); }
.live::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--luminous); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .live::after { animation: ping 2.4s var(--ease) 3; } }   /* three rings, then it rests */
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
/* Desktop: while the hero's button is on screen the header's copy of it steps back, so the first screen has one. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .site-header .nav-cta { transition: opacity var(--t) var(--ease), translate var(--t) var(--ease), max-width var(--t) var(--ease), padding var(--t) var(--ease), margin var(--t) var(--ease); } }
@media (min-width: 900px) { .site-header .nav-cta { max-width: 240px; overflow: hidden; white-space: nowrap; } html.hero-cta-on .site-header .nav-cta { opacity: 0; translate: 0 -6px; pointer-events: none; max-width: 0; padding-inline: 0; margin-left: calc(-1 * clamp(16px, 2.2vw, 32px)); } }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .dock .chat-fab { transition: opacity .3s var(--ease), translate .3s var(--ease); } }
@media (min-width: 900px) { html.hero-cta-on .dock .chat-fab { color: var(--steel); opacity: .55; } }

/* ---------- The object in the hero: in the space the first two lines leave (desktop), above the headline (phones). ---------- */
.hero .obj { --s: min(1.46em, calc(var(--ogap, 999px) / .9818)); position: absolute; z-index: 5; right: .14em; top: .1em; }
.hero .scene { pointer-events: auto; touch-action: pan-y; cursor: grab; }   /* a drag spins it; vertical swipes still scroll */
.hero .scene:active { cursor: grabbing; }
.hero .chev { transition: --dry .6s cubic-bezier(.2, .9, .2, 1.2); }
.hero .chev.is-held { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  html.intro-hold .hero .scene, html.intro-hold .hero .obj > * { animation-play-state: paused; }
  html.intro-fx .hero .obj .scene { opacity: 0; animation: none; }           /* the intro's particles bring it in */
  html.intro-fx.intro-landed .hero .obj .scene { opacity: 1; animation: land .9s var(--ease) both; }
}
/* Scroll: as the hero leaves, the object turns toward edge-on like a door closing and its light dims; it reopens on the
   way back up. A scroll timeline where there is one (home.js drives --sry from scroll elsewhere). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero.idx { view-timeline: --hero block; }
    html.has-scroll-tl .chev { animation: door linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    html.has-scroll-tl .obj { animation: dim linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
  }
}
@keyframes door { to { --sry: -56deg; } }
@keyframes dim { to { --dim: .2; } }
/* Touch screens: the sway (styles.css) and the door together. */
@media (prefers-reduced-motion: no-preference) and (hover: none), (prefers-reduced-motion: no-preference) and (pointer: coarse) {
  @supports (animation-timeline: view()) {
    html.has-scroll-tl .hero .chev { animation: sway 12s ease-in-out infinite alternate, door linear both; animation-timeline: auto, --hero; animation-range: normal, exit 0% exit 100%; }
  }
}
/* The readouts under the object: its real angles and the light it stands in (desktop). */

/* ---------- Art: the headline is a stencil; Luminous light moves behind the letters ----------
   The stencil group (light + headline) composites with "lighten" onto the page, so outside the letters the page (the fluid)
   shows through and inside them the light does. Nothing between the group and the page may isolate. */
.light { display: none; }
:root[data-art] .hero.idx, :root[data-art] .hl-wrap { isolation: auto; }
:root[data-art] .stencil { display: block; position: relative; isolation: isolate; mix-blend-mode: lighten; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
:root[data-art] .stencil .hl { color: #fff; background: var(--black); mix-blend-mode: darken; padding: 0 var(--pad) .24em; margin: 0 calc(-1 * var(--pad)) -.24em calc(-1 * var(--pad) - .03em); width: auto; }
/* One hue, one light: a deep Digital Blue plate and a single Luminous disc that follows the pointer (resting at the chevron's
   side under reduced motion), so the letters read as one colour with one moving highlight and the fluid shows in the counters. */
:root[data-art] .light { display: block; position: absolute; z-index: 1; inset: var(--ot) 0 auto 0; height: calc(var(--lines) * var(--lh) * 1em + .24em); overflow: hidden; background: color-mix(in srgb, var(--blue) 88%, var(--black)); container-type: size; }
.light i { display: none; }
.light i:nth-child(4) { display: block; position: absolute; width: 36%; aspect-ratio: 1; left: -18%; top: -36%; border-radius: 50%; background: var(--ice); opacity: .7; filter: blur(60px); will-change: transform; translate: calc(var(--mx, .22) * 100cqw) calc(var(--my, .18) * 100cqh); transition: translate 1.4s var(--ease); }
@media (max-width: 899px) { .light i:nth-child(4) { scale: 1.8; } }
/* The grid stays visible across the stencil */
:root[data-art] .hl-wrap::after {
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: var(--ot); height: calc(var(--lines) * var(--lh) * 1em + .24em); pointer-events: none;
  border-right: 1px solid var(--guide);
  background: linear-gradient(90deg, var(--guide) 1px, transparent 1px) 0 0 / calc((100% + var(--gut)) / var(--cols)) 100% repeat-x;
}

/* ---------- Scroll choreography (scroll timelines; the page is complete without them): the index rows rise one after
   another as the showcase enters, the viewfinder settles, the closing line comes up from under its baseline, the night
   scene's light brightens as you reach it. Opacity and transform only; none under reduced motion. ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .show { view-timeline: --show block; }
    .row { animation: row-in linear both; animation-timeline: --show; animation-range: entry 8% entry 40%; }
    .row:nth-child(2) { animation-range: entry 16% entry 48%; }
    .row:nth-child(3) { animation-range: entry 24% entry 56%; }
    .stage { animation: vf-in linear both; animation-timeline: --show; animation-range: entry 14% entry 52%; }
    .close-line { animation: line-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .rows li { animation: row-in linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .rows li:nth-child(2) { animation-range: entry 10% entry 55%; }
    .rows li:nth-child(3) { animation-range: entry 20% entry 65%; }
    .nightfall { view-timeline: --nf block; }
    .nf-source, .nf-haze { animation: src-in linear both; animation-timeline: --nf; animation-range: entry 0% entry 70%; }
  }
}
@keyframes row-in { from { opacity: 0; translate: 0 .3em; } }
@keyframes vf-in { from { opacity: 0; scale: .97; } }
@keyframes line-in { from { opacity: 0; translate: 0 .25em; } }
@keyframes src-in { from { opacity: 0; } }

/* ================= 02 — The showcase: the index of flagship samples, each shown as a real website ================= */
.show { position: relative; isolation: isolate; min-height: calc(100svh - 76px); display: flex; flex-direction: column; border-top: 1px solid var(--rule); overflow-x: clip; }
.show .idx-row .mi-d { color: var(--text); }
.show-body { position: relative; z-index: 1; flex: 1; min-height: 0; align-content: start; row-gap: clamp(24px, 3.6vh, 44px); padding-block: clamp(16px, 2.6vh, 30px) clamp(44px, 6vh, 76px); }
.idx-wrap { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.idx-h { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding-bottom: 10px; color: var(--text-2); }
.idx-h span:nth-child(2) { grid-column: 2; }
.idx-h span:nth-child(3) { grid-column: -4 / -1; justify-self: end; }
.idx-list { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border-bottom: 1px solid var(--rule); }
/* The row type is the index's display size, capped so the longest label (plus the selected state's slide) always fits its
   columns: home.js measures the labels and sets --row-fs on the list only when one would overflow. */
.row {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; overflow-x: clip;
  padding: clamp(14px, 2.4vh, 28px) 0 clamp(16px, 2.6vh, 30px); border: 0; border-top: 1px solid var(--rule); background: none; text-align: left; cursor: pointer;
  font: inherit; color: inherit; font-size: min(var(--row-fs, 999px), clamp(44px, 7.1vw, 116px));
}
.row-n { grid-column: 1; font-size: .75rem; font-weight: 600; line-height: 1; padding-top: .7em; color: var(--text-2); font-variant-numeric: tabular-nums; transition: color .3s; }
.row-chev, .row-t { grid-row: 1; grid-column: 2 / -1; }
.row-c { grid-row: 1; grid-column: -4 / -1; justify-self: end; font-size: .8125rem; font-weight: 500; line-height: 1; padding-top: .7em; color: var(--text-2); white-space: nowrap; transition: color .3s; }
.row-c::after { content: " · " attr(data-what); color: var(--text-2); }
.row[aria-selected="true"] .row-c { color: var(--text); }
.row-t { display: block; font-weight: 600; letter-spacing: -.045em; line-height: .92; white-space: nowrap; color: var(--ghost); transition: color var(--t), translate var(--t-settle) var(--ease); }
.row-chev { --h: .4em; height: .4em; margin-top: .27em; opacity: 0; translate: -.3em 0; transition: opacity var(--t), translate var(--t-settle) var(--ease); }
.row:hover .row-t { color: var(--ghost-2); }
.row[aria-selected="true"] .row-n { color: var(--accent); }
.row[aria-selected="true"] .row-t { color: var(--text); translate: .55em 0; }
.row[aria-selected="true"] .row-chev { opacity: 1; translate: 0 0; }
.row:focus-visible { outline-offset: -2px; }
:root[data-art] .row[aria-selected="true"] .row-t { color: var(--ice); text-shadow: 0 0 .5em rgba(60, 139, 255, .55); }

/* The stage: the sample's real page in a desktop browser window, the phone standing in front of its right edge. Both scroll
   slowly through the page: a transform on a lazy high-res capture, compositor only, running only while the stage is on
   screen, static under reduced motion. No live frames: the captures cost nothing until the stage is near. */
.stage { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: subgrid; align-items: end; }
.win { grid-column: 1 / span 10; grid-row: 1; margin: 0; min-width: 0; border: 1px solid var(--rule); border-radius: var(--r); background: var(--bg); overflow: hidden; box-shadow: 0 48px 90px -48px rgba(5, 6, 8, .45); }
.win-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--bg); }
.win-title { color: var(--text); font-weight: 600; }
.win-open { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.win-open:hover { color: var(--accent); }
.win-view { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--graphite); container-type: inline-size; }
.pan { display: block; width: 100%; height: auto; }
.phone { grid-column: 10 / -1; grid-row: 1; justify-self: end; align-self: end; width: clamp(216px, 18vw, 284px); margin: 0 clamp(40px, 3.4vw, 56px) -44px 0; padding: 7px; z-index: 2; border: 1.5px solid var(--rule); border-radius: 30px; background: var(--bg); box-shadow: 0 50px 90px -40px rgba(5, 6, 8, .5); }
.phone-view { display: block; aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: 23px; background: var(--graphite); container-type: inline-size; }
.stage-foot { grid-column: 1 / span 10; grid-row: 2; margin-top: 14px; color: var(--text-2); }
.stage-foot b { font-weight: 600; color: var(--text); }
.stage-foot i { font-style: normal; color: var(--text-2); padding-inline: 4px; }
:root[data-theme="dark"] .win, :root[data-theme="dark"] .phone { border-color: rgba(247, 248, 250, .14); }
:root[data-theme="dark"] .win { box-shadow: 0 48px 90px -40px rgba(60, 139, 255, .35); }
:root[data-theme="dark"] .phone { box-shadow: 0 50px 90px -40px rgba(60, 139, 255, .4); }
@media (prefers-reduced-motion: no-preference) {
  .win .pan { animation: pan-win 46s ease-in-out infinite alternate paused; }
  .phone .pan { animation: pan-phone 38s ease-in-out infinite alternate 1.4s paused; }
  .stage.is-live .pan { animation-play-state: running; }
}
/* The pan ends when the capture's bottom meets the view's bottom: the view's height in container units (16:10, 9:19.5). */
@keyframes pan-win { to { translate: 0 calc(-100% + 62.5cqw); } }
@keyframes pan-phone { to { translate: 0 calc(-100% + 216.67cqw); } }
@media (min-width: 1200px) {
  .win { grid-column: 1 / span 10; }
  .phone { grid-column: 10 / -1; }
  .stage-foot { grid-column: 1 / span 10; }
}

/* ================= Phones ================= */
@media (max-width: 899px) {
  .hero.idx { min-height: 0; padding-bottom: 36px; }
  .hero .idx-row .mi-d, .hero .idx-row .mi-b { display: none; }   /* one row: 01 Index · the number; the positioning line closes the page */
  .hero .idx-row { margin-bottom: 14px; }
  /* The object first: it stands above the headline, the one lit thing on the first screen. */
  .hl-wrap { --sm: clamp(150px, 22svh, 220px); --ot: calc(var(--sm) + 22px); margin-top: 0; --bh: .66em; --fs: calc((100vw - 2 * var(--pad)) / 7.1); --bt: calc(2 * var(--lh) * 1em + .40em); }
  .hero .obj { --s: var(--sm); right: auto; top: 0; left: 50%; translate: -50% 0; }
  .hl br.m { display: inline; }
  .hl br.d { display: none; }
  .band-cap { bottom: 4px; font-size: .6875rem; }
  .copy-at { position: static; height: auto; display: block; margin-top: 22px; }
  .idx .lede { font-size: .9375rem; }
  /* The band is a plain Digital Blue stripe on phones: the screens were illegible that small, and four fewer downloads. */
  .band-in, .band-cap { display: none; }
  /* The proof is the first thing under the headline on phones; the lede and the clarifier follow; the sticky bar is the button. */
  .copy { display: flex; flex-direction: column; max-width: none; }
  .proof { order: -1; margin: 0 0 16px; align-items: flex-start; font-size: 1rem; }
  .proof .live { margin-top: 7px; }
  .idx .hero-actions { display: none; }
  .idx .lede { font-size: 1rem; max-width: none; }
  .idx .lede .l1 { display: block; }

  .show { height: auto; min-height: 0; }
  .show-body { padding-block: 0 28px; row-gap: 0; }
  .idx-wrap { grid-column: 1 / -1; align-self: start; }
  .idx-h, .row-c { display: none; }
  .idx-list { border-bottom: 0; }
  .row { font-size: min(var(--row-fs, 999px), clamp(34px, 10.4vw, 64px)); padding: 9px 0 8px; }
  .row:first-child { border-top: 0; }
  .row-n { padding-top: .45em; }
  /* Phones show the phone: the window and its capture never load. */
  .stage { padding-top: 4px; border-top: 1px solid var(--rule); }
  .win { grid-column: 1 / -1; grid-row: 1; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .win-bar { padding: 12px 0; background: transparent; }
  .win-view { display: none; }   /* the desktop capture is never fetched on phones */
  .phone { grid-column: 1 / -1; grid-row: 2; justify-self: center; align-self: start; margin: 18px 0 0; width: min(300px, 74vw); }
  .stage-foot { grid-column: 1 / -1; grid-row: 3; justify-self: center; margin-top: 18px; }
}
@media (min-width: 900px) and (max-height: 760px) { .hero .obj { --s: min(1.5em, calc(var(--ogap, 999px) / .9818)); } }

@media (prefers-reduced-motion: reduce) {
  .light i { animation: none !important; }
  .row-t, .row-chev { transition: none; }
}
