/* Sebastian Maamari - "Aim higher"
   Layout: a fixed WebGL canvas behind everything; six sticky beats drive one golden-hour ascent from the waterline to
   the crest of the Palm; then full-bleed chapters scroll over the parked crest on an espresso floor.
   One dark theme in his brand colours (espresso and rose-champagne). Copy over the scene sits on a soft dark floor
   (a gradient from the copy's side), never on a plate. html[data-phase="dusk"] cools the accent as the light goes.
   Type: Bodoni Moda (display, optical sizes, italic for emphasis), Manrope (text and labels). */
:root {
  --espresso: #14100e;
  --espresso-2: #1e1815;
  --espresso-3: #2a221d;
  --cream: #f7eee4;
  --champagne: #e9c6a2;
  --gold: #d8a578;
  --gold-ink: #1b120c;

  --bg: var(--espresso);
  --fg: var(--cream);
  --fg-2: rgba(247, 238, 228, 0.78);
  --fg-3: rgba(247, 238, 228, 0.56);
  --accent: var(--champagne);
  --line: rgba(233, 198, 162, 0.2);
  --line-2: rgba(233, 198, 162, 0.42);
  --floor: rgba(20, 16, 14, 0.9);
  --chapter: rgba(20, 16, 14, 0.9);
  --field: rgba(247, 238, 228, 0.05);
  --field-focus: rgba(247, 238, 228, 0.09);
  --pop: #221b17;
  --danger: #ffb4a2;
  --shadow: rgba(0, 0, 0, 0.6);

  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Times New Roman', serif;
  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --side: max(28px, calc((100vw - 1280px) / 2 + 28px));
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
html[data-phase="dusk"] { --accent: #f0d2b6; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; background: var(--espresso); overflow-x: hidden; overflow-x: clip; }   /* clip keeps the sticky story working; nothing may widen the page on a phone */
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(15px, 0.35vw + 13.4px, 17px);
  line-height: 1.62;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, dt, figure, ul, ol, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--champagne); color: var(--gold-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--champagne); color: var(--gold-ink); font-weight: 700; padding: 10px 16px; transition: top .3s; }
.skip:focus { top: max(12px, env(safe-area-inset-top, 0px)); }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: max(28px, var(--gutter-l)) max(28px, var(--gutter-r)); }

/* ---------- fixed layers ---------- */
.scene { position: fixed; inset: 0; width: 100%; height: 100%; height: 100lvh; z-index: 0; display: block; background: #1a1418; }
/* exactly the viewport: a fixed layer wider than the screen widens the page on iOS Safari; the noise moves by background position */
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; background-size: 160px 160px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(5) infinite; }
@keyframes grain { 0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 29px -41px; } 60% { background-position: -19px -13px; } 80% { background-position: 43px 31px; } 100% { background-position: 0 0; } }
/* a small gold ring that opens over anything clickable */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 14px; height: 14px; border: 1px solid var(--champagne); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), background-color .35s; }
.cursor.is-on { opacity: .9; }
.cursor.is-hover { width: 44px; height: 44px; background: rgba(233, 198, 162, 0.12); }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--espresso); padding-inline: var(--gutter-l) var(--gutter-r); transition: opacity 1.1s var(--ease), visibility 1.1s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { width: min(300px, 100%); display: grid; justify-items: center; text-align: center; }
.loader-mark { width: 64px; height: 64px; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.97); } }
.loader-eyebrow { margin-block: 20px 22px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg-3); }
.loader-bar { width: 100%; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--champagne); transition: width .35s var(--ease); }
.loader-hint { margin-top: 14px; font-family: var(--display); font-style: italic; font-size: 15px; color: var(--fg-2); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }
.nav::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(to bottom, rgba(20, 16, 14, 0.62), rgba(20, 16, 14, 0)); pointer-events: none; }
.nav-inner { position: relative; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--gutter-l) var(--gutter-r); padding-top: env(safe-area-inset-top, 0px); }
@media (min-width: 821px) { .nav-inner { padding-inline: var(--side); } }
.logo { display: inline-flex; align-items: center; }
.logo-img { width: 220px; height: auto; }
.nav-links { display: flex; gap: 30px; font-size: 13px; letter-spacing: .04em; color: var(--fg-2); }
.nav-links a { position: relative; padding-block: 6px; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(233, 198, 162, 0.1); }
.nav-progress span { display: block; height: 100%; background: var(--champagne); transform: scaleX(0); transform-origin: left; }
@media (max-width: 960px) { .nav-links { display: none; } }
@media (max-width: 820px) { .nav .logo-img { width: 168px; } }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 500; font-optical-sizing: auto; font-size: clamp(40px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -0.012em; text-wrap: balance; }
.display em, .hero-line em { font-style: italic; font-weight: 400; color: var(--accent); }
.display-xl { font-size: clamp(46px, 6vw, 96px); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.eyebrow::after { content: ""; width: 56px; height: 1px; background: var(--line-2); }
.eb-n { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--fg); }
.body { color: var(--fg-2); max-width: 46ch; }
.source { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--fg-3); max-width: 62ch; }
.inline-link { color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; display: inline-flex; align-items: center; gap: 6px; transition: background-size .5s var(--ease); }
.inline-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* line reveal: each line of a heading rises out of its own clip */
[data-lines] .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
[data-lines] .ln > span { display: block; transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-lines].is-in .ln > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- buttons: pill-shaped, gold or hairline ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding-inline: 26px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; transition: transform .5s var(--ease), background-color .4s, color .4s, border-color .4s; }
.btn-gold { background: linear-gradient(120deg, #f2d4b4, #d9a87c 55%, #c48d62); color: var(--gold-ink); box-shadow: 0 14px 40px -16px rgba(217, 168, 124, 0.7); }
.btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform 1s var(--ease); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--fg); background: rgba(20, 16, 14, 0.25); }
.btn-ghost:hover { border-color: var(--champagne); color: var(--champagne); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 42px; padding-inline: 18px; font-size: 13px; }
.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -4px; color: inherit; }
.ico-lead { width: 19px; height: 19px; }

/* ---------- story beats ---------- */
.story { position: relative; z-index: 2; }
.beat { position: relative; height: 165vh; }
.beat-hero { height: 175vh; }
.beat-last { height: 190vh; }
.beat-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
/* the dark floor under copy: from the left on wide screens */
.beat-sticky::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 16, 14, 0.78) 0%, rgba(20, 16, 14, 0.5) 32%, rgba(20, 16, 14, 0) 58%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); }   /* feathered: a floor never shows its edge as the next beat slides in */
.beat-copy { position: relative; display: grid; gap: 22px; width: min(560px, 44vw); margin-left: var(--side); will-change: transform, opacity; }
.beat-copy-wide { width: min(720px, 56vw); }
/* figures and deals sit over the brightest part of the scene: a deeper, wider floor */
.beat:has(.beat-copy-wide) .beat-sticky::before { background: linear-gradient(90deg, rgba(20, 16, 14, 0.9) 0%, rgba(20, 16, 14, 0.78) 40%, rgba(20, 16, 14, 0) 72%); }
.beat-copy .display { text-shadow: 0 2px 12px rgba(20, 16, 14, 0.4); }

/* hero: his name in tall didone capitals, the figure standing on the right over the sea */
.beat-hero .beat-sticky::before { -webkit-mask-image: none; mask-image: none; background: linear-gradient(90deg, rgba(20, 16, 14, 0.8) 0%, rgba(20, 16, 14, 0.46) 34%, rgba(20, 16, 14, 0) 56%), linear-gradient(to top, rgba(20, 16, 14, 0.6), rgba(20, 16, 14, 0) 30%); }
.hero-figure { position: absolute; right: max(2vw, calc((100vw - 1400px) / 2)); bottom: 0; height: min(94vh, 1020px); aspect-ratio: 903 / 1400; pointer-events: none;
  filter: drop-shadow(-18px 10px 40px rgba(20, 16, 14, 0.5)) drop-shadow(10px -4px 24px rgba(255, 176, 102, 0.18)); }   /* on the parent: a filter on the masked image paints a pale box in Chrome */
.hero-figure-img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; opacity: 0;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 16%); mask-image: linear-gradient(to top, transparent 0, #000 16%); }
.hero-copy { position: relative; display: grid; gap: 18px; margin-left: var(--side); width: min(720px, 54vw); padding-top: var(--nav-h); }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--champagne); opacity: 0; }
.hero-name { display: grid; font-family: var(--display); font-weight: 600; font-optical-sizing: auto; font-size: clamp(50px, 6.1vw, 112px); line-height: .9; letter-spacing: .01em; }
.hero-name .nm { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.hero-name .nm-2 { font-style: italic; font-weight: 400; color: var(--champagne); padding-left: .55em; }
.hero-name .ch { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * 55ms + 120ms); }
.hero-name .nm-2 .ch { transition-delay: calc(var(--i) * 55ms + 520ms); }
.is-intro .hero-name .ch { transform: none; }
.hero-line { font-family: var(--display); font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; opacity: 0; }
.hero-lede { color: var(--fg-2); max-width: 44ch; font-size: clamp(16px, .5vw + 13px, 18px); opacity: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-cta[data-intro] { opacity: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; font-size: 12px; letter-spacing: .08em; color: var(--fg-3); opacity: 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 22px; }
.hero-facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--champagne); margin-left: -13px; margin-right: -9px; }
.scroll-cue { position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--fg-3); }
.scroll-cue .ico { animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); opacity: .5; } 50% { transform: translateY(4px); opacity: 1; } }

/* the record: giant figures that roll like a departure board */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; margin-top: 6px; }
.stat { border-top: 1px solid var(--line-2); padding-top: 14px; display: grid; gap: 4px; }
.stat dt { order: 2; font-size: 12px; letter-spacing: .08em; color: var(--fg-3); }
.stat dd { order: 1; display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-weight: 500; font-size: clamp(48px, 5.2vw, 84px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat .unit { font-size: .36em; font-family: var(--font); font-weight: 600; letter-spacing: .06em; color: var(--champagne); }
[data-roll] { display: inline-flex; }
.roll-col { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.roll-strip { display: block; white-space: pre; line-height: 1; transform: translateY(0); transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i) * 110ms); }
[data-roll].is-in .roll-strip { transform: translateY(calc(var(--d) * -1em)); }
.roll-ch { line-height: 1; }

/* signature deals: a figure and a sentence per row, hairlines between */
.deals { display: grid; margin-top: 4px; counter-reset: deal; }
.deal { display: grid; grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr); align-items: baseline; gap: 24px; padding-block: 18px; border-top: 1px solid var(--line-2); }
.deal:last-child { border-bottom: 1px solid var(--line-2); }
.deal-fig { font-family: var(--display); font-style: italic; font-size: clamp(36px, 3.6vw, 58px); line-height: 1; color: var(--champagne); white-space: nowrap; }
.deal-txt { color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.deal-txt strong { color: var(--fg); font-weight: 600; }

/* ---------- chapters over the parked crest ---------- */
.chapter { position: relative; z-index: 2; padding-block: clamp(96px, 12vw, 170px); background: var(--chapter); }
.chapter + .chapter { border-top: 1px solid var(--line); }
#work { background: linear-gradient(to bottom, rgba(20, 16, 14, 0) 0, rgba(20, 16, 14, 0.55) 140px, var(--chapter) 360px); padding-top: clamp(160px, 18vw, 260px); }
.ch-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 820px; }
.ch-head-split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; }

.lines-list { border-top: 1px solid var(--line-2); }
.lines-list li { display: grid; grid-template-columns: 5rem minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: baseline; gap: 18px 32px; padding-block: clamp(24px, 3vw, 38px); border-bottom: 1px solid var(--line-2); transition: background-color .5s; }
.lines-list li:hover { background: rgba(233, 198, 162, 0.04); }
.ll-n { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--champagne); }
.ll-t { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.4vw, 54px); line-height: 1; }
.ll-d { color: var(--fg-2); max-width: 52ch; }

.mini-stats { display: flex; gap: 40px; }
.mini-stats div { display: grid; gap: 2px; text-align: right; }
.mini-stats dt { order: 2; font-size: 12px; letter-spacing: .06em; color: var(--fg-3); }
.mini-stats dd { order: 1; font-family: var(--display); font-size: clamp(34px, 3.4vw, 52px); line-height: 1; color: var(--champagne); }
.closings { width: 100%; border-collapse: collapse; font-size: 15px; }
.closings th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); padding: 0 16px 14px 0; border-bottom: 1px solid var(--line-2); }
.closings td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); vertical-align: baseline; }
.closings td:first-child { font-variant-numeric: tabular-nums; color: var(--fg-3); white-space: nowrap; }
.closings td:nth-child(2) { font-family: var(--display); font-size: clamp(19px, 1.5vw, 23px); color: var(--fg); }
.closings td:last-child { color: var(--champagne); font-weight: 600; }

/* reels: tall rounded cards, muted previews, a champagne play mark and his own words */
.reels-side { display: grid; gap: 18px; justify-items: start; max-width: 440px; }
.reels-nav { display: flex; gap: 10px; }
.rail-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--fg); transition: border-color .3s, color .3s; }
.rail-btn:hover { border-color: var(--champagne); color: var(--champagne); }
.ico-flip { transform: scaleX(-1); }
.reels-track { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-block: 8px 18px; padding-inline: max(28px, calc((100vw - 1280px) / 2 + 28px)); scroll-padding-inline-start: max(28px, calc((100vw - 1280px) / 2 + 28px)); scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.reels-track::-webkit-scrollbar { display: none; }
.reels-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel { position: relative; flex: none; width: clamp(220px, 19vw, 290px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--espresso-3); scroll-snap-align: start; display: block; isolation: isolate; transition: border-color .5s, transform .7s var(--ease); }
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.reel video { opacity: 0; }
.reel.is-playing video { opacity: 1; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 16, 14, 0.92), rgba(20, 16, 14, 0.15) 48%, rgba(20, 16, 14, 0) 70%); pointer-events: none; }
.reel:hover { border-color: var(--champagne); transform: translateY(-6px); }
.reel-meta { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: grid; gap: 6px; }
.reel-views { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--champagne); display: flex; align-items: center; gap: 8px; }
.reel-views::before { content: ""; width: 0; height: 0; border-left: 7px solid var(--champagne); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.reel-cap { font-family: var(--display); font-size: 20px; line-height: 1.15; color: var(--cream); }
.reel-ig { font-size: 11px; letter-spacing: .08em; color: var(--fg-3); margin-top: 2px; }
.reel-mute { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(247, 238, 228, 0.85); padding: 5px 10px; border-radius: 999px; background: rgba(20, 16, 14, 0.55); }
.reels-foot { padding-top: 14px; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
/* about: the cutout stands in an arch of the site's own colours; the arch sides meet the photo's own crop at his arms,
   the base fades into the page and his head rises above the top of the arch */
.about-figure { position: relative; width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 1530 / 1600; isolation: isolate; }
.about-arch { position: absolute; inset: 14% 0 0; z-index: -1; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: radial-gradient(120% 80% at 50% 18%, rgba(233, 198, 162, 0.2), rgba(233, 198, 162, 0) 60%), linear-gradient(to bottom, #2e241e, #1a1512);
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%); mask-image: linear-gradient(to top, transparent 0, #000 22%); }
.about-figure img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 20%); mask-image: linear-gradient(to top, transparent 0, #000 20%); }
.about-copy { display: grid; gap: 22px; }
.spec { display: grid; border-top: 1px solid var(--line-2); }
.spec div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--fg-3); }

.careers { display: grid; gap: 26px; justify-items: start; }
.chapter-careers { background: linear-gradient(120deg, rgba(42, 34, 29, 0.94), rgba(20, 16, 14, 0.94)); }
.careers .display-xl { max-width: 15ch; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-grid .ch-head { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; cursor: pointer; font-family: var(--display); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1px solid var(--champagne); border-bottom: 1px solid var(--champagne); transform: rotate(45deg) translate(-3px, -3px); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 24px; color: var(--fg-2); max-width: 60ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-copy { display: grid; gap: 22px; }
.contact-direct { margin-top: 4px; }
.contact-phone { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--fg-2); }
.contact-phone a { color: var(--fg); border-bottom: 1px solid var(--line-2); }
.contact-links { display: grid; gap: 12px; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-links-label { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-3); }
.link-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.link-pills a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fg); background: rgba(20, 16, 14, 0.25); transition: border-color .3s, color .3s, transform .5s var(--ease); }
.link-pills a:hover { border-color: var(--champagne); color: var(--champagne); transform: translateY(-2px); }
.link-pills .ico { color: var(--champagne); }
.lp-sub { font-weight: 400; font-size: 12px; color: var(--fg-3); }
.copy-btn { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; transition: border-color .3s; }
.copy-btn:hover { border-color: var(--accent); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: clamp(20px, 2.6vw, 34px); border: 1px solid var(--line-2); border-radius: 6px; background: rgba(30, 24, 21, 0.96); position: relative; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--fg); background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px; transition: border-color .3s, background-color .3s; min-width: 0; }
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--field-focus); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid .dd-btn { border-color: var(--danger); }
.form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.form-note { font-size: 13px; color: var(--fg-3); }
.form-legal { font-size: 12px; color: var(--fg-3); }
.form-success { grid-column: 1 / -1; display: grid; gap: 10px; text-align: center; padding-block: 24px; }
.form-success .display { font-size: clamp(42px, 5vw, 64px); font-style: italic; color: var(--champagne); }
.form.is-sent .field, .form.is-sent .form-foot, .form.is-sent .form-legal { display: none; }
.field-error { font-size: 12px; line-height: 1.4; color: var(--danger); }
.field label .opt { margin-left: 6px; font-size: 10px; letter-spacing: .1em; text-transform: none; color: var(--fg-3); font-weight: 400; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-count { font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.field-count.is-near { color: var(--accent); }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }   /* honeypot: inside the form box, never off-screen */
.form .btn[disabled] { opacity: .6; pointer-events: none; }

.phone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.dd { position: relative; min-width: 0; }
.dd-btn { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 9px; text-align: left; font: inherit; color: var(--fg); background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; transition: border-color .3s, background-color .3s; }
.dd-btn:hover, .dd-btn[aria-expanded="true"] { border-color: var(--accent); background: var(--field-focus); }
.dd-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-val.is-placeholder { color: var(--fg-3); }
.dd-iso { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; color: var(--gold-ink); background: var(--champagne); border-radius: 3px; padding: 1px 5px; }
.dd-chev { flex: none; width: 7px; height: 7px; margin-left: 2px; border-right: 1px solid var(--fg-2); border-bottom: 1px solid var(--fg-2); transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.dd-btn[aria-expanded="true"] .dd-chev { transform: translateY(1px) rotate(-135deg); }
.dd-pop { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); min-width: 100%; background: var(--pop); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 26px 60px -18px var(--shadow); overflow: hidden; }
.dd-country .dd-pop { width: min(320px, 84vw); }
.field .dd-search { width: 100%; font-size: 14px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: var(--field); padding: 12px 14px; }
.field .dd-search:focus { outline: none; background: var(--field-focus); }
.dd-list { position: relative; max-height: 248px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; outline: none; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.dd-opt { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 4px; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.dd-opt.is-active, .dd-opt:hover { background: var(--field-focus); color: var(--fg); }
.dd-opt[aria-selected="true"] { color: var(--accent); }
.dd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-dial { flex: none; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.dd-empty { padding: 12px 10px; font-size: 13px; color: var(--fg-3); }

/* footer */
.footer { position: relative; z-index: 2; background: var(--espresso); border-top: 1px solid var(--line); padding-block: 56px calc(36px + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-meta { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--fg-3); max-width: 60ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 32px; align-content: start; font-size: 14px; color: var(--fg-2); }
.footer-links a { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; transition: color .3s; }
.footer-links a:hover { color: var(--champagne); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 22px; }
.plain .footer-id { margin: 0 0 18px; }   /* legal and 404 pages: the identification line above the footer row */
.footer-legal { font-size: 12px; color: var(--fg-3); }
.footer-legal-links { display: flex; gap: 22px; }
.footer-legal-links a:hover { color: var(--fg); }
.footer-legal-links .credit { color: var(--fg-2); }
.footer-legal-links .credit:hover { color: var(--champagne); }

/* the portrait button: his face, a slow gold ring, a small menu above it */
.talk { position: fixed; z-index: 45; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); display: grid; justify-items: end; gap: 10px; opacity: 0; transform: translateY(20px) scale(.92); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.talk.is-on { opacity: 1; transform: none; pointer-events: auto; }
.talk-btn { position: relative; display: flex; align-items: center; gap: 0; height: 64px; padding: 0; border-radius: 999px; background: rgba(30, 24, 21, 0.94); border: 1px solid var(--line-2); box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.7); transition: gap .5s var(--ease), padding .5s var(--ease); }
.talk-btn img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 35%, #f3d8bb, #c99067 70%, #a8704c); }
.talk-btn::before { content: ""; position: absolute; right: 0; top: 0; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--champagne); animation: ring 2.8s var(--ease) infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.talk-label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--fg); transition: max-width .5s var(--ease); }
.talk-btn { flex-direction: row-reverse; }
.talk-btn:hover .talk-label, .talk.is-open .talk-label { max-width: 160px; padding-inline: 18px 6px; }
.talk-menu { display: grid; gap: 4px; padding: 8px; border-radius: 14px; background: rgba(30, 24, 21, 0.97); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7); }
.talk-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.talk-menu a:hover, .talk-menu a:focus-visible { background: var(--field-focus); color: var(--fg); }

/* ---------- legal and error pages (no scene) ---------- */
.plain { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--espresso); }
.plain-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.plain main { flex: 1; }
.legal { max-width: 760px; padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.legal-updated { font-size: 12px; letter-spacing: .08em; color: var(--fg-3); }
.legal h1 { margin-top: 10px; font-family: var(--display); font-weight: 500; line-height: 1.02; font-size: clamp(42px, 5.4vw, 68px); }
.legal-intro { margin-top: 18px; font-size: clamp(17px, 1.2vw + 10px, 20px); color: var(--fg-2); }
.legal section { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal h2 { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 1.8vw, 28px); }
.legal section p { margin-top: 12px; color: var(--fg-2); }
.legal section ul { margin-top: 12px; padding-left: 20px; list-style: disc; color: var(--fg-2); display: grid; gap: 8px; }
.legal section li::marker { color: var(--accent); }
.plain .footer { margin-top: auto; }
.notfound { display: grid; align-content: center; justify-items: start; gap: 22px; max-width: 760px; padding-block: clamp(56px, 12vh, 140px); }
.notfound h1 { font-family: var(--display); font-weight: 500; line-height: 1.0; font-size: clamp(46px, 7vw, 92px); text-wrap: balance; }
.notfound h1 em { font-style: italic; color: var(--accent); }
.notfound p { color: var(--fg-2); max-width: 44ch; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lines-list li { grid-template-columns: 4rem minmax(0, 1fr); }
  .ll-d { grid-column: 2; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .ch-head { position: static; margin-bottom: 8px; }
}
@media (max-width: 820px) {
  :root { --nav-h: 64px; }
  /* phones: the copy sits low on a dark floor rising from the bottom, the scene has the upper half */
  .beat-sticky { align-items: end; }
  .beat-sticky::before { background: linear-gradient(to top, rgba(20, 16, 14, 0.94) 0%, rgba(20, 16, 14, 0.78) 36%, rgba(20, 16, 14, 0) 68%); -webkit-mask-image: none; mask-image: none; }
  .beat-copy, .beat-copy-wide { width: auto; margin-inline: var(--gutter-l) var(--gutter-r); margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); gap: 14px; }
  .beat-copy .body { font-size: 15px; line-height: 1.5; }
  .display { font-size: clamp(32px, 9vw, 44px); }
  .display-xl { font-size: clamp(40px, 11.4vw, 56px); }
  .eyebrow { font-size: 10px; letter-spacing: .22em; }
  .eyebrow::after { width: 36px; }

  .beat-hero .beat-sticky { align-items: end; }
  .beat-hero .beat-sticky::before { background: linear-gradient(to top, rgba(20, 16, 14, 0.96) 0%, rgba(20, 16, 14, 0.82) 38%, rgba(20, 16, 14, 0) 64%); }
  .hero-figure { left: 0; right: 0; margin-inline: auto; height: min(70svh, 620px); width: calc(min(70svh, 620px) * 0.645); bottom: auto; top: calc(var(--nav-h) + 2svh); }
  .hero-figure-img { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 34%); mask-image: linear-gradient(to top, transparent 0, #000 34%); }
  .hero-copy { width: auto; min-width: 0; margin-inline: var(--gutter-l) var(--gutter-r); padding-top: 0; margin-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
  .hero-name { font-size: clamp(38px, 11.8vw, 76px); }
  .hero-name .nm-2 { padding-left: .4em; }
  .hero-line { font-size: 26px; }
  .hero-lede { font-size: 15px; line-height: 1.5; }
  .hero-cta { gap: 8px; }
  .beat-hero .hero-cta { flex-wrap: nowrap; }   /* only the hero row is short enough to stay on one line */
  .hero-cta .btn { height: 48px; padding-inline: 15px; font-size: 13.5px; gap: 8px; }
  .hero-facts { font-size: 11px; gap: 4px 14px; }
  .hero-facts li + li::before { display: none; }
  .kicker { font-size: 10px; letter-spacing: .2em; }
  .scroll-cue { display: none; }

  .stats { gap: 16px 18px; }
  .stat dd { font-size: clamp(40px, 12vw, 56px); }
  .stat dt { font-size: 11px; letter-spacing: .04em; }
  .deal { grid-template-columns: 1fr; gap: 4px; padding-block: 12px; }
  .deal-fig { font-size: 32px; }
  .deal-txt { font-size: 14px; }
  .source { margin-top: 8px; font-size: 11px; }

  .chapter { padding-block: clamp(76px, 18vw, 110px); }
  #work { padding-top: 130px; }
  .ch-head-split { grid-template-columns: 1fr; }
  .mini-stats { gap: 28px; }
  .mini-stats div { text-align: left; }
  .lines-list li { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 8px 14px; }
  .ll-t { font-size: 32px; }
  .closings thead { display: none; }
  .closings tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .closings td { padding: 0; border: 0; }
  .closings td:nth-child(2) { grid-column: 1; grid-row: 1; }
  .closings td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .closings td:nth-child(3) { grid-column: 1; grid-row: 2; font-size: 14px; }
  .closings td:nth-child(1) { grid-column: 2; grid-row: 2; text-align: right; font-size: 13px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 420px; }
  .reel { width: min(64vw, 250px); }
  .reels-track { padding-inline: var(--gutter-l) var(--gutter-r); scroll-padding-inline-start: var(--gutter-l); }
  .spec div { grid-template-columns: 7.5rem minmax(0, 1fr); font-size: 14px; }
  .form { grid-template-columns: 1fr; padding: 18px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .link-pills a { font-size: 13.5px; padding-inline: 14px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .talk-btn, .talk-btn img { height: 56px; }
  .talk-btn img { width: 54px; height: 54px; }
  .talk-btn::before { width: 56px; height: 56px; }
}
@media (max-width: 820px) and (max-height: 720px) {
  .hero-figure { height: 60svh; width: calc(60svh * 0.645); }
  .hero-name { font-size: clamp(42px, 13vw, 60px); }
  .hero-lede { display: none; }
  .stat dd { font-size: 40px; }
}
/* the narrowest phones: the two hero buttons stack rather than widen the copy */
@media (max-width: 374px) { .beat-hero .hero-cta { flex-wrap: wrap; } }
@media (min-width: 600px) and (max-width: 820px) {
  .hero-figure { height: min(64svh, 760px); width: calc(min(64svh, 760px) * 0.645); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue .ico, .loader-mark, .talk-btn::before { animation: none; }
  [data-lines] .ln > span, .hero-name .ch, .roll-strip { transform: none; transition: none; }
  [data-roll] .roll-strip { transform: translateY(calc(var(--d) * -1em)); }
  .kicker, .hero-line, .hero-lede, .hero-cta[data-intro], .hero-facts, [data-intro], .hero-figure-img, [data-reveal] { opacity: 1; transform: none; }
  .btn, .btn-gold::after { transition: none; }
}
