/* Bennett H Enterprises — VARIANT B, "vanguard"
   Full switch to the high-end-visual-design language: Ethereal Glass vibe, asymmetrical
   bento layout, double-bezel nested architecture, magnetic CTAs, floating island nav.
   This deliberately contradicts Website/DESIGN.md — that is the point of the comparison. */

@font-face {
  font-family: 'Jakarta';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/jakarta.woff2') format('woff2');
}

:root {
  --void: #050505;
  --ink: #0b0b0d;
  --mist: rgba(255, 255, 255, 0.72);
  --whisper: rgba(255, 255, 255, 0.64);
  --hair: rgba(255, 255, 255, 0.09);
  --hair-strong: rgba(255, 255, 255, 0.16);
  --shell-fill: rgba(255, 255, 255, 0.035);
  --core-fill: rgba(255, 255, 255, 0.028);

  --emerald: 52, 211, 153;
  --violet: 139, 122, 255;

  --font: 'Jakarta', system-ui, sans-serif;

  --r-shell: 2rem;
  --r-core: calc(2rem - 0.375rem);
  --pad-shell: 0.375rem;

  --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --section: clamp(96px, 14vw, 180px);
  --wrap: 1240px;

  /* ponytail: one dial, two compromises. Jakarta's y only clears the `o` by 10px and its
     hook is the last 12px of that, so the hook IS the visible descender. 0 = full hook,
     0.10em = y no longer descends. Pick a point; there is no value that gives both. */
  --y-cut: 0.04em;

  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --glide: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--void);
  color: var(--mist);
  font-family: var(--font);
  font-size: clamp(15px, 1.05vw, 16.5px);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }

.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link { position: absolute; left: 0; top: 0; z-index: 90; background: #fff; color: #000; padding: var(--space-3) var(--space-6); }

:where(a, button):focus-visible { outline: 1px solid rgba(255,255,255,0.7); outline-offset: 4px; border-radius: 4px; }

/* ── Atmosphere: fixed, pointer-events-none, outside any scrolling container ── */

.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* No blur filter. These are already radial gradients, so the blur was softness on top of
   softness — and animating a blurred layer re-rasterises the whole surface every frame.
   Measured at 4x CPU throttle: with blur(90px) the page ran at 33.3ms/frame (30fps);
   without it, 16.7ms (60fps). The extra gradient stops below replace what the blur gave. */
.orb { position: absolute; border-radius: 50%; opacity: 0.55; will-change: transform; }
.orb-1 { width: 58vw; height: 58vw; top: -18vw; left: -14vw;
  background: radial-gradient(circle, rgba(var(--emerald), 0.26) 0%, rgba(var(--emerald), 0.13) 34%, rgba(var(--emerald), 0.04) 58%, transparent 76%); }
.orb-2 { width: 52vw; height: 52vw; top: 30vh; right: -18vw;
  background: radial-gradient(circle, rgba(var(--violet), 0.24) 0%, rgba(var(--violet), 0.11) 34%, rgba(var(--violet), 0.035) 58%, transparent 76%); }
.orb-3 { width: 46vw; height: 46vw; bottom: -16vw; left: 24vw;
  background: radial-gradient(circle, rgba(var(--emerald), 0.15) 0%, rgba(var(--emerald), 0.07) 36%, rgba(var(--emerald), 0.02) 60%, transparent 78%); }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .island, .menu, .foot { position: relative; z-index: 2; }

/* ── Motion ───────────────────────────────────────────────────────────────── */

.js [data-reveal] {
  opacity: 0; transform: translateY(40px); filter: blur(8px);
  transition: opacity 0.9s var(--spring), transform 0.9s var(--spring), filter 0.9s var(--spring);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js [data-reveal].instant { transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ── Intro choreography ───────────────────────────────────────────────────── */
/* One sequence, not four competing ones: the sweep crosses first, the headline rises
   through it line by line, then the gradient resolves on the final phrase. */

.hero { position: relative; }

.sweep {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(var(--emerald), 0.55), transparent);
  box-shadow: 0 0 40px 8px rgba(var(--emerald), 0.16);
  opacity: 0; transform: translate3d(-40px, 0, 0);
  pointer-events: none;
}

/* Masked line reveal. The mask needs room below the baseline or descenders get clipped. */
.display .ln {
  display: block; overflow: hidden;
  padding-bottom: 0.30em; margin-bottom: -0.30em;
}
.display .ln-i { display: inline-block; }
/* The headline is VISIBLE by default and hidden only once JS has committed to animating it
   (.arming). It used to be hidden from the first paint by `.js .display .ln-i`, which meant
   LCP could not fire until the sweep finished — measured 3.2s on the live site. Progressive
   enhancement: if the script is late, or never runs, the text was simply always there. */
.js .display.arming .ln-i {
  transform: translate3d(-0.14em, 0, 0);
  clip-path: inset(0 100% 0 0);
}
.js .display.arming.lit .ln-i { transform: none; clip-path: inset(0 -0.1em 0 0); }

/* Same reasoning: the gradient only starts off-position if we are actually going to animate. */
.js .display.arming #grad { background-position: 100% 0; }
.js .display.arming.lit #grad { background-position: 0 0; }

/* ── Drifting atmosphere ──────────────────────────────────────────────────── */
/* Transform only. Each orb is already its own composited layer because of the blur,
   so moving them is a composite step rather than a repaint. */
.js .orb-1 { animation: drift-a 48s ease-in-out infinite alternate; }
.js .orb-2 { animation: drift-b 63s ease-in-out infinite alternate; }
.js .orb-3 { animation: drift-c 77s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(7vw, 5vh, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.08); } to { transform: translate3d(-6vw, -7vh, 0) scale(1); } }
@keyframes drift-c { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(5vw, -6vh, 0) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  .js .sweep { animation: none; opacity: 0; }
  .js .display .ln-i, .js .display.lit .ln-i { transform: none; clip-path: none; transition: none; }
  .js .display #grad, .js .display.lit #grad { background-position: 0 0; transition: none; }
  .js .orb-1, .js .orb-2, .js .orb-3 { animation: none; }
}

/* ── Island nav ───────────────────────────────────────────────────────────── */

/* Scroll position is read from this, not from a scroll listener. Its height is the
   distance travelled before the bar condenses. */
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 110px; pointer-events: none; }

.island { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: var(--space-4); }

/* Two states on one element. Expanded: a full-width bar, wordmark hard left, links hard
   right, no glass. Condensed: a centred pill carrying the icon. Only `width` is
   layout-affecting, and it is one fixed-position element with nothing flowing around it. */
.island-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  width: min(100%, var(--wrap));
  padding: 0.5rem clamp(8px, 3vw, 36px);
  border-radius: 9999px;
  border: 1px solid transparent;
  background: rgba(10, 10, 12, 0);
  box-shadow: inset 0 0 0 rgba(255, 255, 255, 0);
  transition:
    width 0.85s var(--spring),
    padding 0.85s var(--spring),
    background-color 0.85s var(--spring),
    border-color 0.85s var(--spring),
    box-shadow 0.85s var(--spring),
    -webkit-backdrop-filter 0.85s var(--spring),
    backdrop-filter 0.85s var(--spring);
}

.island.condensed .island-inner {
  width: min(100%, 354px);
  padding: 0.4rem 0.4rem 0.4rem 0.8rem;
  border-color: var(--hair-strong);
  background: rgba(10, 10, 12, 0.6);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.11);
}

/* Wordmark ↔ icon crossfade. Both are absolutely positioned so neither drives layout;
   the container's own width is what animates. */
.island-mark {
  position: relative; flex: 0 0 auto; display: block;
  width: 178px; height: 74px;
  transition: width 0.85s var(--spring), height 0.85s var(--spring);
}
.island-mark img {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  transition: opacity 0.5s var(--spring);
}
.mark-full { width: 178px; opacity: 1; }
.mark-icon { width: 34px; opacity: 0; }

.island.condensed .island-mark { width: 34px; height: 39px; }
.island.condensed .mark-full { opacity: 0; }
.island.condensed .mark-icon { opacity: 1; }

.island-links { display: none; gap: var(--space-3); transition: gap 0.85s var(--spring); }
@media (min-width: 720px) { .island-links { display: flex; } }
.island.condensed .island-links { gap: 2px; }
@media (max-width: 719px) { .island.condensed .island-inner { width: min(100%, 140px); } }

.island-links a {
  position: relative;
  color: var(--mist); text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.5rem 0.95rem; border-radius: 9999px;
  border: 1px solid transparent;
  transition: background-color 0.5s var(--spring), color 0.5s var(--spring),
              border-color 0.5s var(--spring), padding 0.85s var(--spring);
}
.island.condensed .island-links a { padding: 0.45rem 0.8rem; }
.island-links a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Scroll spy — the section you are actually looking at. */
.island-links a[aria-current="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--hair-strong);
}

.burger {
  width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid var(--hair-strong); background: rgba(255, 255, 255, 0.05);
  display: grid; place-items: center; gap: 5px; cursor: pointer; padding: 0;
}
.burger-line {
  display: block; width: 15px; height: 1px; background: #fff; grid-area: 1 / 1;
  transition: transform 0.6s var(--spring);
}
.burger-line:nth-child(1) { transform: translateY(-3px); }
.burger-line:nth-child(2) { transform: translateY(3px); }
.burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-line:nth-child(2) { transform: rotate(-45deg); }

/* Declared after .burger so source order does not resurrect it on desktop. */
@media (min-width: 720px) { .burger { display: none; } }

/* ── Menu overlay ─────────────────────────────────────────────────────────── */

/* `display: grid` below outranks the [hidden] attribute's display:none, which left the
   closed menu rendered at opacity 0 — invisible, but focusable and in the tab order.
   Four phantom tab stops on every desktop visit, and a screen reader reading a menu that
   is not on screen. This rule is what makes `hidden` actually hide. */
.menu[hidden] { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(5, 5, 5, 0.82);
  -webkit-backdrop-filter: blur(34px); backdrop-filter: blur(34px);
  opacity: 0; transition: opacity 0.5s var(--spring);
  display: grid; place-items: center;
}
.menu.on { opacity: 1; }
.menu-inner { display: flex; flex-direction: column; gap: var(--space-4); text-align: center; padding: var(--space-8); }
.menu-inner a {
  color: #fff; text-decoration: none; font-size: clamp(30px, 8vw, 46px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1;
  opacity: 0; transform: translateY(48px);
  transition: opacity 0.7s var(--spring), transform 0.7s var(--spring);
}
.menu.on .menu-inner a { opacity: 1; transform: none; }
.menu.on .menu-inner a:nth-child(1) { transition-delay: 0.10s; }
.menu.on .menu-inner a:nth-child(2) { transition-delay: 0.16s; }
.menu.on .menu-inner a:nth-child(3) { transition-delay: 0.22s; }
.menu.on .menu-inner a:nth-child(4) { transition-delay: 0.30s; }
.menu-cta { font-size: 16px !important; font-weight: 500 !important; margin-top: var(--space-6); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); }

/* ── Type ─────────────────────────────────────────────────────────────────── */

.display {
  font-size: clamp(33px, 8.4vw, 116px); font-weight: 800; line-height: 0.98;
  letter-spacing: -0.045em; color: #fff; margin: 0 0 var(--space-8);
}
.display em {
  font-style: normal;
  background-image: linear-gradient(100deg,
    #fff 2%,
    rgb(var(--emerald)) 26%,
    rgb(var(--violet)) 46%,
    #fff 52%,
    #fff 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.heading {
  font-size: clamp(30px, 4.6vw, 62px); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.035em; color: #fff; margin: 0 0 var(--space-6);
}

.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; max-width: 46ch; margin: 0 0 var(--space-12); color: var(--mist); }
.prose { max-width: 58ch; margin: 0 0 var(--space-16); color: var(--whisper); }
.footnote { max-width: 66ch; font-size: 13.5px; line-height: 1.75; color: var(--whisper); margin: var(--space-16) 0 0; }
.footnote strong { color: var(--mist); font-weight: 500; }

/* ── Double-bezel: outer shell + inner core, concentric radii ─────────────── */

.shell {
  margin: 0;
  padding: var(--pad-shell);
  border-radius: var(--r-shell);
  border: 1px solid var(--hair);
  background: var(--shell-fill);
}
.core {
  border-radius: var(--r-core);
  border: 1px solid var(--hair);
  background: var(--core-fill);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.07);
  padding: clamp(22px, 2.6vw, 38px);
  height: 100%;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(140px, 22vw, 240px) clamp(56px, 7vw, 88px); }
/* The top padding is scaled off viewport WIDTH, so on a short laptop it spends 240px of a
   720px screen before the headline starts and pushes the device below the fold. Height is
   the binding constraint there, so trim against height. 130px still clears the nav island. */
@media (max-height: 820px) {
  .hero { padding-block: clamp(130px, 17vh, 170px) clamp(48px, 6vh, 72px); }
}


/* The portrait frame. object-fit does the 4:5 crop, so the source needs no pre-crop. */
.shell-portrait .core-photo { padding: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.shell-portrait .core-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ── CTA: magnetic, button-in-button ──────────────────────────────────────── */

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.cta {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.7rem 0.7rem 1.4rem;
  border-radius: 9999px;
  background: #fff; color: #050505;
  font-size: 14.5px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.7s var(--spring), background-color 0.7s var(--spring);
}
.cta:active { transform: scale(0.98); }

.cta-dot {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9999px;
  background: rgba(5, 5, 5, 0.08); font-size: 13px;
  transition: transform 0.7s var(--spring), background-color 0.7s var(--spring);
}
.cta:hover .cta-dot { transform: translate(3px, -1px) scale(1.06); background: rgba(5, 5, 5, 0.14); }

.cta-quiet {
  background: rgba(255, 255, 255, 0.05); color: var(--mist);
  border-color: var(--hair-strong); padding: 0.7rem 1.4rem;
}
.cta-quiet:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.menu-inner a.menu-cta { background: #fff; color: #050505; padding: 0.7rem 0.7rem 0.7rem 1.4rem; border-radius: 9999px; }

/* ── Bands ────────────────────────────────────────────────────────────────── */

.band { padding-block: var(--section); position: relative; z-index: 1; }
#meet { scroll-margin-top: 96px; }
.band-close { padding-bottom: clamp(96px, 12vw, 150px); }

/* ── Bento ────────────────────────────────────────────────────────────────── */

.bento { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 880px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento-lead { grid-column: span 7; }
  .bento > .shell:nth-child(2) { grid-column: span 5; }
  .bento > .shell:nth-child(3) { grid-column: span 12; }
  .bento > .shell:nth-child(3) .core { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 56px); align-items: start; }
  .bento > .shell:nth-child(3) .tick { grid-column: 1 / -1; }
}

.tick { font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--whisper); margin: 0 0 var(--space-6); }
.core h3 { font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: #fff; margin: 0 0 var(--space-4); }
.core p:last-child { margin: 0; }

/* ── Stats ────────────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(3, 1fr); } }

.stat-label { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--whisper); margin: 0 0 var(--space-4); }
.stat-pair {
  display: flex; align-items: baseline; gap: 0.6rem; margin: 0;
  font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-pair i { font-style: normal; font-size: 0.42em; font-weight: 500; }
.was { color: rgba(255, 255, 255, 0.52); }
.to { font-size: 0.45em; font-weight: 300; color: rgba(255, 255, 255, 0.3); }
.now {
  background: linear-gradient(100deg, #fff 10%, rgba(var(--emerald), 1) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Split ────────────────────────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 820px) { .split { grid-template-columns: repeat(2, 1fr); } }

.split-h { font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.02em; color: #fff; margin: 0 0 var(--space-6); }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--hair); line-height: 1.55; }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.list-quiet li { color: var(--whisper); }

/* ── Closing card ─────────────────────────────────────────────────────────── */

.shell-close { border-color: var(--hair-strong); }
.core-close { padding: clamp(32px, 5vw, 76px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.core-close .prose { margin-bottom: var(--space-8); }
.core-close .actions { justify-content: center; }



/* ── Section markers ──────────────────────────────────────────────────────── */
/* ponytail: `impeccable` flags numbered-section-labels. Kept deliberately — on a long
   single-page site of near-black bands, the number is the only thing telling a phone user
   where they are. Solving a reported navigation problem beats the generic rule. */

.marker {
  display: flex; align-items: center; gap: var(--space-4);
  margin: 0 0 var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hair-strong);
}
.marker-n {
  font-size: clamp(13px, 1.1vw, 15px); font-weight: 800; letter-spacing: -0.01em;
  color: rgb(var(--emerald)); font-variant-numeric: tabular-nums; flex: 0 0 auto;
}
.marker-rule { flex: 0 0 clamp(20px, 4vw, 48px); height: 1px; background: var(--hair-strong); }
.marker-t {
  font-size: clamp(12px, 1vw, 13px); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist);
}

/* Alternating ground. Barely perceptible side by side, but it gives a phone scroll a
   rhythm so one band is visibly not the next. */
.band:nth-of-type(even) { background: #0a0a0d; }

/* ── Facts: deliberately not the bento shape, so "why" and "method" do not read
   as the same section twice. Hairline columns, no card chrome. ─────────────── */

.facts { display: grid; gap: var(--space-12); border-top: 1px solid var(--hair-strong); padding-top: var(--space-12); }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .fact { padding-inline: clamp(20px, 2.6vw, 44px); border-left: 1px solid var(--hair); }
  .fact:first-child { padding-left: 0; border-left: 0; }
  .fact:last-child { padding-right: 0; }
}
.fact-key {
  margin: 0 0 var(--space-6);
  font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; color: #fff;
}
.fact-num {
  font-size: clamp(44px, 5.4vw, 72px); letter-spacing: -0.045em;
  background: linear-gradient(100deg, #fff 6%, rgb(var(--emerald)) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fact-say { margin: 0; color: var(--mist); }
.fact strong { color: #fff; font-weight: 600; }

/* Jakarta's y ends in a thin hook that curls left and reads as a stray sliver at display
   size. Cropping it per-glyph leaves every other letter's curve untouched. */
.display .yc { display: inline-block; clip-path: inset(0 0 var(--y-cut) 0); }

/* Parked a full viewport below the fold until the headline resolves, then slides up.
   Keyed off .lit — the class settle() adds the instant the sweep finishes — rather than a
   wall-clock delay, because the sequence starts after document.fonts.ready, so any fixed
   delay would drift against it by however long the webfont took.
   Transform only: no opacity means no contrast check can catch the caption mid-fade,
   which is the reason above-the-fold [data-reveal] elements are shown .instant. */
.js .device { transform: translate3d(0, 100vh, 0); transition: transform 1.2s var(--spring); }
.js .display.rise ~ .device { transform: none; }

/* ── Hero device ─────────────────────────────────────────────────────────── */
/* The frame is CSS, not a generated image: sharp at any DPI, costs no bytes, and the
   button inside it can be a real link. The screen must hold a real screenshot. */

.hero .wrap { position: relative; z-index: 1; }

/* Landscape iPad Pro. 1.43:1 is the 11-inch's real display ratio; the bezel is a
   percentage so it stays proportional at every width, and the screen radius is the body
   radius minus the bezel so the two curves are concentric rather than merely both round. */
/* Placed by the grid below, not absolutely positioned. A landscape iPad is wide enough
   that hand-tuned offsets collided with the headline, the buttons and the hero's own bottom
   edge at three different widths; letting the grid own the geometry ends that class of bug. */
.device { display: block; text-decoration: none; }

@media (min-width: 1100px) {
  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(32px, 4vw, 72px);
  }
  .hero .display { grid-column: 1 / -1; grid-row: 1; }
  /* The device spans both copy rows, so those rows are taller than their text. Without
     align-self the pills stretch to fill row 3 and become tall ovals. */
  .hero .lede    { grid-column: 1; grid-row: 2; align-self: start; }
  .hero .actions { grid-column: 1; grid-row: 3; align-self: start; }
  /* Spans the copy rows and centres against them, so it stays put as the copy reflows. */
  .device { grid-column: 2; grid-row: 2 / 4; align-self: center; width: min(38vw, 540px); }
}
/* The bezel, corner radius, camera and home indicator are all baked into the PNG Ollie
   supplied, so the CSS frame that used to draw them is gone. drop-shadow rather than
   box-shadow: it follows the alpha, so the shadow takes the device's rounded silhouette
   instead of its square bounding box. */
.device-img {
  display: block; width: 100%; height: auto;
  /* Kept as PNG. The alpha carries the exact silhouette — buttons and metal rim included —
     so no border-radius clip is needed. Flattening to a JPEG was tried and reverted: the
     black margin was plainly visible as (0,0,0) against a page measuring (10,16,14), and
     clipping tight enough to hide it shaved the left-edge buttons.
     drop-shadow rather than box-shadow: it follows the alpha, so the shadow takes the
     device's real outline instead of its bounding box. */
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.8));
}
/* Below 1100px it stops being a side element and becomes a block under the hero copy. */
@media (max-width: 1099px) {
  .device { position: static; width: 100%; max-width: 640px; margin-top: var(--space-16); }
}

/* ── Meet: portrait beside the personal copy ──────────────────────────────── */

.meet { margin-top: var(--space-6); display: grid; gap: var(--space-8); align-items: start; }

/* Base is the phone case: the portrait is a block the width of the copy above it.
   The desktop size is an override, so it must be declared after this, not before —
   equal specificity means source order decides, and a media query does not beat a
   later plain rule. */
.shell-portrait { width: 100%; max-width: 100%; margin-top: 0; }

@media (min-width: 820px) {
  /* The second track is 1fr, not auto, so the leftover width lands inside the portrait's
     column rather than after it. Right-aligning the frame in that column pins its right
     edge to the section's own hairline at every viewport — with `auto` the shortfall
     drifted between 52px and 179px, which is what read as "out of line". */
  .meet { grid-template-columns: minmax(0, 58ch) 1fr; gap: clamp(40px, 4vw, 64px); }
  /* 9px lifts the frame's top edge onto the cap-height of the first line of copy,
     which is where the eye reads the alignment, not the line box's top. */
  .shell-portrait { width: min(100%, 380px); margin-left: auto; margin-top: 9px; }
}
.meet-say > * { max-width: 58ch; }
.meet-say p { margin: 0 0 var(--space-4); color: var(--mist); }
.meet-meta { font-size: 13px; color: var(--whisper); margin: var(--space-6) 0 0 !important; }



/* ── Source lines ─────────────────────────────────────────────────────────── */

.cite {
  margin: var(--space-6) 0 0 !important;
  font-size: 12px; line-height: 1.6; color: var(--whisper);
}
.cite a { color: var(--whisper); text-underline-offset: 3px; }
.cite a:hover { color: #fff; }

/* ── Testimonial ──────────────────────────────────────────────────────────── */

.quote {
  margin: var(--space-16) 0 0;
  padding: clamp(28px, 4vw, 56px) 0 0;
  border-top: 1px solid var(--hair-strong);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 32px); font-weight: 300; line-height: 1.35;
  letter-spacing: -0.02em; color: #fff; max-width: 26ch;
  text-wrap: balance;
}
.quote blockquote p::before { content: '\201C'; }
.quote blockquote p::after  { content: '\201D'; }
.quote figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  margin-top: var(--space-6); font-size: 13px; color: var(--whisper);
}
.quote-who { color: var(--mist); font-weight: 500; }
.quote-org::before { content: '· '; }

/* ── Sticky mobile CTA ────────────────────────────────────────────────────── */
/* Desktop keeps the island's own links, so this is phones only. */

.dock { display: none; }
@media (max-width: 719px) {
  .dock {
    display: flex; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(5,5,5,0.94) 55%, rgba(5,5,5,0));
    transform: translate3d(0, 120%, 0);
    transition: transform 0.6s var(--spring);
    pointer-events: none;
  }
  .dock .cta { pointer-events: auto; grid-area: 1 / 1; transition: opacity 0.45s var(--spring), transform 0.45s var(--spring); }
  .dock { display: grid; place-items: center; transform: none; }
  .dock-scroll { padding: 0.7rem 0.7rem 0.7rem 1.4rem; }
  .dock-scroll .cta-dot { width: 30px; height: 30px; font-size: 14px; }
  body:not(.past-hero) .dock-book { opacity: 0; transform: translate3d(0, 10px, 0); pointer-events: none; }
  body.past-hero .dock-scroll { opacity: 0; transform: translate3d(0, -10px, 0); pointer-events: none; }
  /* Keep the last section clear of the bar. */
  body.past-hero .foot { padding-bottom: calc(var(--space-16) + 72px); }
}
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.foot { padding-block: var(--space-16); border-top: 1px solid var(--hair); }

.foot-brands {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap;
  padding-bottom: var(--space-8);
}
.foot-brands img { width: 158px; height: auto; }            /* ~42px tall */
.foot-brands .foot-bhe { width: 76px; opacity: 0.6; }       /* ~42px tall, quieter */
.foot-rule { width: 1px; height: 36px; background: var(--hair-strong); }
.foot-inner { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: 13.5px; line-height: 1.75; color: var(--whisper); }
.foot p { margin: 0; }
.foot-name { color: #fff; font-weight: 500; }
.foot a { color: var(--whisper); text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: #fff; }
