/* jaszberenyi.com — site styles.
   Same layout system as thesuitwhobuilds.com (sticky glass nav, live hero canvas, kinetic
   type, sticky story stage, odometer band, end card, thumb bar), turned to the daylight
   side: warm paper, charcoal ink, blueprint navy, and amber / coral / teal for play.
   The Suit Who Builds keeps its own charcoal + terminal green, and appears here only in
   the #channel band, in its own colours.

   Performance rules carried over from the TSWB site:
   - glows are radial-gradients, never filter: blur();
   - only transform/opacity animate;
   - sections below the fold use content-visibility;
   - every effect has a prefers-reduced-motion off-switch at the bottom. */

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --paper: #F3EFE6;      /* matches the illustrations' own paper */
  --paper-2: #EBE6DB;
  --card: #FBF9F4;
  --line: #DCD5C8;
  --ink: #1E2126;
  --text: #3A3F47;
  --muted: #676D75;
  --navy: #1B3A5B;
  --navy-2: #2C5A86;
  --amber: #F2A516;
  --amber-d: #9A6200;    /* amber for text on paper (AA) */
  --coral: #E5546A;
  --teal: #14A39A;
  --teal-d: #0B7A73;
  --green: #4ADE80;      /* TSWB terminal green, #channel only */
  --green-d: #15803D;
  --char: #1E2126;       /* TSWB charcoal */
  --char-2: #262A31;
  --char-line: #3A3F47;
  --chalk: #F4F1EA;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "Inconsolata", ui-monospace, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--paper);
  /* faint engineering graph paper */
  background-image:
    linear-gradient(to right, rgba(27, 58, 91, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 58, 91, .045) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.12; }
h2 { font: 700 clamp(32px, 5vw, 54px)/1.06 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
h3 { font: 600 19px/1.35 var(--sans); }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.mono { font-family: var(--mono); font-weight: 700; color: var(--navy); }
.c-teal { color: var(--teal); } .c-amber { color: var(--amber); } .c-coral { color: var(--coral); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* ── Page chrome ───────────────────────────────────────────────────────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--navy), var(--teal), var(--amber), var(--coral)); }
@supports (animation-timeline: scroll()) {
  .progress { transform: scaleX(0); animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { to { transform: scaleX(1); } }
.grain { position: fixed; inset: 0; z-index: 110; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(242, 165, 22, .12), transparent 62%); opacity: 0; transition: opacity .4s; will-change: transform; }
.has-pointer .cursor-glow.on { opacity: 1; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; isolation: isolate;
  transition: transform .35s var(--spring), translate .45s var(--spring), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn > span { pointer-events: none; }
.btn:active { transform: scale(.96); }
.btn-main { background: var(--navy); color: var(--paper); box-shadow: 0 12px 30px -12px rgba(27, 58, 91, .7); overflow: hidden; }
.btn-main::after, .btn-sub::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 48%, transparent 66%); transform: translateX(-120%);
  animation: sweep 4.2s 2s var(--ease) infinite; }
.btn-main:hover::after, .btn-sub:hover::after { animation-duration: 1.1s; animation-delay: 0s; }
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-main:hover { background: var(--navy-2); box-shadow: 0 18px 40px -12px rgba(27, 58, 91, .8); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); background: rgba(251, 249, 244, .7); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn .arrow { display: inline-block; transition: transform .35s var(--spring); }
.btn-ghost:hover .arrow { transform: translate(3px, 3px); }
.btn-sub { background: var(--green); color: #0F2418; box-shadow: 0 10px 34px -10px rgba(74, 222, 128, .6); overflow: hidden; }
.btn-sub:hover { background: #6BEA9B; }
.btn-ghost-dark { color: var(--chalk); border: 1.5px solid var(--char-line); background: rgba(38, 42, 49, .55); }
.btn-ghost-dark:hover { border-color: var(--green); color: var(--green); }
.btn-ghost-dark:hover .arrow { transform: translate(3px, -3px); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-lg { min-height: 56px; padding: 18px 28px; font-size: 17px; }
.btn-xl { min-height: 64px; padding: 20px 34px; font-size: 19px; }
.btn-xl svg { width: 24px; height: 24px; }
.spark { position: fixed; left: 0; top: 0; width: 9px; height: 9px; border-radius: 3px; pointer-events: none; z-index: 150; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); transition: transform .45s var(--ease), background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(243, 239, 230, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: rgba(220, 213, 200, .9); }
.nav.hide { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; transition: transform .5s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.1); }
.brand-text { font-size: 18px; }
.brand-text .mono { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; padding: 5px; border-radius: 999px; background: rgba(251, 249, 244, .7); border: 1px solid var(--line); }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14.5px; padding: 8px 14px; border-radius: 999px; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--ink); background: rgba(27, 58, 91, .07); }
.nav-links a.active { color: var(--navy); background: rgba(27, 58, 91, .1); }
.langs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(251, 249, 244, .7); }
.langs a, .menu-langs a, .flangs a { font: 700 12px var(--mono); letter-spacing: .08em; text-decoration: none; color: var(--muted); padding: 7px 9px; border-radius: 999px; transition: color .25s, background .25s; }
.langs a:hover { color: var(--navy); }
.langs a[aria-current="page"] { color: var(--paper); background: var(--navy); }
.burger { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 14px; background: rgba(251, 249, 244, .85); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--spring), top .3s; }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: calc(var(--nav-h) + 24px) 28px calc(32px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 80% at 100% 0%, rgba(20, 163, 154, .16), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(242, 165, 22, .16), transparent 60%), var(--paper);
  clip-path: circle(0 at calc(100% - 40px) 32px); visibility: hidden; transition: clip-path .6s var(--ease), visibility 0s .6s; }
.menu[hidden] { display: flex; }
.menu.open { clip-path: circle(150% at calc(100% - 40px) 32px); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font: 700 clamp(36px, 10vw, 52px)/1.15 var(--serif); color: var(--ink); text-decoration: none; }
.menu nav a:active { color: var(--navy); }
.menu > .menu-langs, .menu nav a { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(.12s + var(--i, 0) * .05s); }
.menu.open > .menu-langs, .menu.open nav a { opacity: 1; transform: none; }
.menu-langs { display: flex; gap: 8px; margin: 0; }
.menu-langs a { font-size: 15px; padding: 10px 14px; border: 1px solid var(--line); }
.menu-langs a[aria-current="page"], .flangs a[aria-current="page"] { color: var(--paper); background: var(--navy); border-color: var(--navy); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; padding: 40px 0 110px; overflow: hidden; }
.grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; animation: drift 20s ease-in-out infinite alternate; }
.aurora .a1 { width: 70vmax; height: 70vmax; right: -30vmax; top: -38vmax; background: radial-gradient(circle, rgba(20, 163, 154, .16), transparent 60%); }
.aurora .a2 { width: 60vmax; height: 60vmax; left: -30vmax; bottom: -36vmax; background: radial-gradient(circle, rgba(242, 165, 22, .18), transparent 60%); animation-duration: 24s; }
.aurora .a3 { width: 40vmax; height: 40vmax; left: 38%; top: 30%; background: radial-gradient(circle, rgba(229, 84, 106, .10), transparent 62%); animation-duration: 28s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-5vmax, 3vmax) scale(1.08); } 100% { transform: translate(3vmax, -2vmax) scale(.94); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; width: 100%; }
@supports (animation-timeline: view()) {
  .hero-grid { animation: recede linear both; animation-timeline: view(); animation-range: exit 0% exit 80%; }
}
@keyframes recede { to { opacity: .15; transform: translateY(-60px) scale(.96); } }
.hero-copy { min-width: 0; }

.pop { opacity: 0; transform: translateY(18px); animation: pop-in .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes pop-in { to { opacity: 1; transform: none; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
  background: rgba(27, 58, 91, .07); border: 1px solid rgba(27, 58, 91, .22); padding: 10px 15px; border-radius: 999px; margin-bottom: 26px; }
.dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: ping 1.8s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.lockup { margin: 0 0 26px; display: flex; flex-direction: column; }
.lockup .given, .lockup .family { font: 700 clamp(46px, 7.2vw, 96px)/.98 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.lockup .given { font-style: italic; font-weight: 500; color: var(--navy); }
.char { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(8deg); animation: char-in .8s var(--spring) forwards; animation-delay: calc(.15s + var(--i) * .035s); }
@keyframes char-in { to { opacity: 1; transform: none; } }
.lockup .rule { display: block; height: 2px; width: min(560px, 100%); margin: 22px 0 16px; transform-origin: left;
  background: linear-gradient(90deg, var(--amber), var(--coral) 30%, rgba(27, 58, 91, 0)); animation: grow 1.2s .55s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.lockup .verbs { font: 700 clamp(13px, 1.45vw, 18px)/1.5 var(--mono); letter-spacing: .16em; color: var(--teal-d); }
.caret { display: inline-block; width: .55em; height: .9em; background: var(--teal); vertical-align: -.1em; margin-left: .12em; animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.rotline { font: 600 clamp(19px, 2.2vw, 26px)/1.35 var(--sans); color: var(--ink); margin-bottom: 14px; min-height: 2.7em; }
.rotator { color: var(--coral); background: linear-gradient(transparent 62%, rgba(229, 84, 106, .16) 62%); }
.rotator::after { content: ""; display: inline-block; width: 3px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: var(--coral); animation: caret 1s steps(1) infinite; }
.lede { color: var(--text); max-width: 52ch; margin-bottom: 30px; font-size: clamp(16px, 1.35vw, 18px); }
.lede strong { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; font: 500 13px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.proof b { color: var(--navy); font-size: 15px; margin-right: 4px; }
.proof li + li::before { content: "/"; margin-right: 22px; color: var(--line); }

/* The drawing sheet */
.hero-visual { position: relative; min-width: 0; }
.sheet { position: relative; z-index: 2; border-radius: var(--radius); overflow: hidden; color: #DCE6F0;
  background-color: var(--navy);
  background-image: linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  box-shadow: 0 40px 80px -34px rgba(27, 58, 91, .75), 0 0 0 6px var(--card), 0 0 0 7px var(--line); will-change: transform; }
.sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--angle), var(--amber), transparent 25%, var(--teal) 50%, transparent 75%, var(--amber));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-angle 7s linear infinite; }
@keyframes spin-angle { to { --angle: 360deg; } }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.sheet-a { color: var(--amber); }
.sheet-body { position: relative; padding: 46px 58px 26px 30px; }
.sheet-photo { display: block; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .85); aspect-ratio: 1 / .82; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.dim { position: absolute; display: flex; align-items: center; gap: 8px; font: 700 11px var(--mono); color: var(--amber); }
.dim i { flex: 1; height: 1px; background: currentColor; position: relative; }
.dim-h { left: 30px; right: 58px; top: 18px; }
.dim-h i:first-child::before, .dim-h i:last-child::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: currentColor; }
.dim-h i:first-child::before { left: 0; } .dim-h i:last-child::after { right: 0; }
.dim-v { top: 46px; bottom: 26px; right: 18px; flex-direction: column; width: 26px; }
.dim-v i { width: 1px; height: auto; flex: 1; }
.dim-v b { writing-mode: vertical-rl; }
.callout { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--chalk); font: 700 12px var(--mono); color: var(--chalk); background: var(--navy); }
.callout i { position: absolute; width: 38px; height: 1px; background: var(--chalk); transform-origin: 0 50%; }
.c-a { left: 12px; top: 58%; } .c-a i { left: 24px; top: 12px; transform: rotate(-18deg); }
.c-b { right: 66px; top: 32px; } .c-b i { right: 24px; top: 14px; transform-origin: 100% 50%; transform: rotate(-24deg); }
.tblock { margin: 0 18px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255, 255, 255, .45); }
.tblock div { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .22); min-width: 0; }
.tblock dt { font: 700 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(220, 230, 240, .7); }
.tblock dd { margin: 2px 0 0; font: 600 13px/1.3 var(--sans); color: #fff; overflow-wrap: anywhere; }
.sheet-foot { margin: 0; padding: 10px 18px 14px; font: 500 11px var(--mono); color: rgba(220, 230, 240, .7); letter-spacing: .04em; }

.chip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; white-space: nowrap;
  font: 700 13px var(--mono); color: var(--ink); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 16px 34px -16px rgba(30, 33, 38, .45); will-change: transform; }
.chip i { font-style: normal; }
.chip-1 { left: -36px; top: 22%; animation: bob 5s ease-in-out infinite; }
.chip-2 { right: -22px; top: 46%; animation: bob 6s .8s ease-in-out infinite; }
.chip-3 { left: 14%; bottom: -46px; animation: bob 5.5s 1.4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--navy); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ── Kinetic type ──────────────────────────────────────────────────────── */
.kinetic { padding: 34px 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--navy); }
.krow { overflow: hidden; }
.krow + .krow { margin-top: 6px; }
.ktrack { display: flex; align-items: center; gap: 30px; width: max-content; will-change: transform;
  font: 800 clamp(38px, 6.4vw, 86px)/1.1 var(--sans); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.ktrack span { color: var(--paper); }
.ktrack span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(243, 239, 230, .55); }
.ktrack b { font-size: .5em; color: var(--amber); }
.krow:nth-child(2) b { color: var(--coral); }
.krow:nth-child(2) span:not(.o) { color: var(--amber); }
html:not(.js) .ktrack { animation: marquee 40s linear infinite; }
html:not(.js) .krow[data-dir="-1"] .ktrack { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 120px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(235, 230, 219, .92) 8%, rgba(235, 230, 219, .92) 92%, transparent); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row > div:first-child { max-width: 660px; }
.kicker { font: 700 14px var(--mono); color: var(--coral); letter-spacing: .04em; margin-bottom: 14px; }
#clients, #story, #about, #channel { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ── How I work ────────────────────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.how-stage { position: sticky; top: calc(var(--nav-h) + 40px); }
.stage-card { --stage: var(--navy); position: relative; aspect-ratio: 1200 / 896; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: #F1EDE3; box-shadow: 0 40px 80px -44px rgba(30, 33, 38, .55), 0 0 0 8px var(--card); }
.stage-rail { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: rgba(220, 213, 200, .8); z-index: 2; }
.stage-rail i { display: block; height: 100%; width: calc((var(--step, 0) + 1) * 33.34%); background: var(--stage); transition: width .6s var(--ease), background .6s; }
.scene { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.scene.is-on { opacity: 1; transform: none; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 24px 28px; border-left: 2px solid var(--line); transition: border-color .4s; }
.how-step.is-on { border-color: var(--accent); }
.how-img { display: none; }
.how-num { font: 800 64px/1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px var(--line); margin-bottom: 14px; transition: color .4s, -webkit-text-stroke-color .4s; }
.how-step.is-on .how-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.how-step h3 { font: 700 clamp(28px, 3vw, 38px)/1.1 var(--serif); }
.how-step p { color: var(--text); max-width: 48ch; }
.how-tag { align-self: flex-start; font: 700 13px var(--mono); color: var(--accent); padding: 8px 12px; border-radius: 10px; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }

/* ── Numbers ───────────────────────────────────────────────────────────── */
.numbers { padding: 76px 0; background: var(--ink); color: var(--chalk); position: relative; overflow: hidden; }
.numbers::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 24px 24px; }
.ngrid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.num .n { font-variant-numeric: lining-nums tabular-nums; display: inline-flex; align-items: baseline; justify-content: center; font: 700 clamp(46px, 6.4vw, 76px)/1 var(--serif); color: var(--chalk); margin-bottom: 12px; }
.num:nth-child(1) .n { color: #8FB3D9; } .num:nth-child(2) .n { color: var(--teal); }
.num:nth-child(3) .n { color: var(--amber); } .num:nth-child(4) .n { color: var(--coral); }
.num small { font: 700 .34em var(--mono); color: #9AA3AD; margin-left: 8px; }
.num .l { display: block; font: 500 12.5px/1.5 var(--mono); color: #9AA3AD; text-transform: uppercase; letter-spacing: .08em; max-width: 24ch; margin: 0 auto; }
.odo { display: inline-flex; overflow: hidden; height: 1.08em; line-height: 1.08; }
.odo .col { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.15, .85, .25, 1); transition-delay: calc(var(--k) * .12s); }
.odo .col span { height: 1.08em; }
.odo .sep { display: inline-block; }

/* ── Clients ───────────────────────────────────────────────────────────── */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.client { --accent: var(--navy); position: relative; overflow: hidden; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 22px 20px;
  border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform .45s var(--spring), border-color .35s, box-shadow .35s, opacity .9s var(--ease); }
.client:hover { transform: translateY(-8px) rotate(-1deg); border-color: var(--accent); box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--accent) 70%, transparent); }
.cname { font: 700 clamp(22px, 2vw, 28px)/1.1 var(--serif); color: var(--ink); }
.cnote { font: 500 12.5px/1.45 var(--mono); color: var(--muted); }
.stamp { position: absolute; right: 14px; top: 14px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font: 800 22px var(--sans); color: var(--accent); border: 2.5px solid var(--accent); rotate: -14deg; opacity: .85;
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4.5px color-mix(in srgb, var(--accent) 60%, transparent); transition: transform .5s var(--spring); }
.client:hover .stamp { transform: scale(1.18) rotate(18deg); }
.clients-note { margin: 26px 0 0; font: 500 14px var(--mono); color: var(--muted); }

/* ── Timeline ──────────────────────────────────────────────────────────── */
.timeline { --fill: 0; list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(var(--navy), var(--teal), var(--amber), var(--coral)); transform-origin: top; transform: scaleY(var(--fill)); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tl-year { justify-self: end; font: 800 clamp(34px, 4vw, 52px)/1 var(--serif); color: var(--accent); }
.tl-item::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--paper); border: 4px solid var(--accent); z-index: 1; transition: transform .4s var(--spring); }
.tl-item:hover::after { transform: scale(1.35); }
.tl-card { padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.tl-card h3 { font: 700 21px/1.25 var(--serif); margin-bottom: 6px; }
.tl-card p { margin: 0; color: var(--text); font-size: 15.5px; }
.tl-item:nth-child(even) .tl-year { order: 2; justify-self: start; }
.tl-item:nth-child(even) .tl-card { order: 1; }
.tl-hard .tl-card { background: var(--ink); border-color: var(--ink); border-top-color: var(--coral); }
.tl-hard .tl-card h3 { color: var(--chalk); } .tl-hard .tl-card p { color: #C9CDD2; }
.tl-hard .tl-year { color: var(--coral); }

/* ── About ─────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about-photo { position: relative; justify-self: center; }
.photo-ring { width: min(380px, 72vw); aspect-ratio: 1; border-radius: 50%; padding: 8px; position: relative;
  background: conic-gradient(from var(--angle), var(--navy), var(--teal), var(--amber), var(--coral), var(--navy)); animation: spin-angle 9s linear infinite; }
.photo-ring picture, .photo-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--card); }
.sticker { position: absolute; font: 700 14px var(--mono); padding: 10px 14px; border-radius: 12px; box-shadow: 0 14px 30px -14px rgba(30, 33, 38, .5); white-space: nowrap; }
.s1 { right: -10px; bottom: 34px; background: var(--amber); color: #2B1E02; rotate: -7deg; animation: wobble 4s ease-in-out infinite; }
.s2 { left: -22px; top: 30px; background: var(--navy); color: var(--paper); rotate: 6deg; animation: wobble 5s .6s ease-in-out infinite; }
.s3 { right: 6px; top: -6px; background: var(--card); color: var(--coral); border: 1px solid var(--line); rotate: 4deg; animation: wobble 4.5s 1.2s ease-in-out infinite; }
@keyframes wobble { 50% { translate: 0 -7px; } }
.about-copy { min-width: 0; }
.about-copy > p { font-size: 18px; max-width: 58ch; }
mark { color: var(--ink); background: linear-gradient(90deg, rgba(20, 163, 154, .28), rgba(20, 163, 154, .28)) no-repeat 0 88% / 0% 38%; transition: background-size 1s .45s var(--ease); padding: 0 2px; }
mark.m-amber { background-image: linear-gradient(90deg, rgba(242, 165, 22, .38), rgba(242, 165, 22, .38)); }
html:not(.js) mark, .in mark { background-size: 100% 38%; }
.offcard { margin-top: 30px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.offcard picture { border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.offcard img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; transition: transform .8s var(--ease); }
.offcard:hover img { transform: scale(1.06); }
.offcard .kicker { margin-bottom: 6px; color: var(--teal-d); }
.offcard h3 { font: 700 22px/1.2 var(--serif); margin-bottom: 8px; }
.offcard p:last-child { margin: 0; color: var(--text); font-size: 15.5px; }

/* ── Channel band (TSWB colours) ───────────────────────────────────────── */
.channel { background-color: var(--char); background-image: repeating-linear-gradient(to right, #252930 0 1px, transparent 1px 16px); color: #D9DCE0; }
.channel h2 { color: var(--chalk); }
.channel h2 .serif { color: var(--chalk); }
.channel h2 .mono { color: var(--green); font-size: .62em; text-transform: uppercase; letter-spacing: .12em; vertical-align: .12em; }
.channel .muted { color: #9AA3AD; }
.channel .kicker, .ch-label { color: var(--green); }
.ch-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ch-label { font: 700 14px var(--mono); margin: 0 0 18px; }
.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dots { display: none; }
.vcard { --accent: var(--green); position: relative; border-radius: var(--radius); background: var(--char-2); border: 1px solid var(--char-line); overflow: hidden;
  transition: transform .45s var(--ease), border-color .35s, box-shadow .35s, opacity .9s var(--ease); }
.vcard > a { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.vcard::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
.vcard:hover { border-color: var(--accent); box-shadow: 0 28px 70px -26px color-mix(in srgb, var(--accent) 55%, transparent); }
.vcard:hover::before { opacity: 1; }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 3px solid var(--accent); background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vcard:hover .thumb img { transform: scale(1.08); }
.thumb-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; padding-left: 4px;
  background: var(--accent); color: var(--char); font-size: 20px; opacity: 0; transform: scale(.5); transition: opacity .35s, transform .45s var(--spring); }
.vcard:hover .thumb-play { opacity: 1; transform: none; }
.yt-dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .8); color: #fff; font: 600 12.5px var(--mono); padding: 3px 7px; border-radius: 6px; }
.badge { position: absolute; left: 10px; top: 10px; background: #FBBF24; color: #2B1E02; font: 800 11.5px var(--mono); letter-spacing: .12em; padding: 5px 9px; border-radius: 7px; }
.vbody { padding: 18px 20px 22px; position: relative; z-index: 2; }
.vmeta { font: 600 12px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.vbody h3 { font-size: 18px; margin-bottom: 0; color: var(--chalk); }

/* ── End card / contact ────────────────────────────────────────────────── */
.endcard { padding: 110px 0 120px; }
.endcard-inner { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 40px; padding: 56px; border-radius: 32px; background:
  radial-gradient(600px circle at 0% 0%, rgba(20, 163, 154, .14), transparent 60%), radial-gradient(500px circle at 100% 100%, rgba(242, 165, 22, .18), transparent 60%), var(--card);
  border: 1px solid var(--line); box-shadow: 0 40px 90px -50px rgba(30, 33, 38, .5); }
.endcard-inner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--angle), var(--navy), transparent 25%, var(--amber) 50%, transparent 75%, var(--navy));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-angle 8s linear infinite; }
.ec-copy { min-width: 0; }
.ec-copy h2 { font-size: clamp(44px, 6vw, 76px); }
.ec-why { font-size: 18px; max-width: 52ch; color: var(--text); }
.ec-rows { margin: 26px 0 14px; }
.ec-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ec-row:first-child { border-top: 1px solid var(--line); }
.ec-row .k { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ec-row .v { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.ec-row a { color: var(--navy); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.ec-row a:hover { text-decoration: underline; }
.email { font: 600 19px var(--serif); color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.copy { font: 700 12px var(--mono); letter-spacing: .04em; color: var(--navy); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; cursor: pointer; transition: border-color .25s, background .25s; }
.copy:hover { border-color: var(--navy); background: rgba(27, 58, 91, .06); }
.ec-where { font: 500 13px var(--mono); color: var(--muted); margin: 0; }
.ec-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }

/* ── Footer + mobile bar ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.footer .serif { font-size: 15px; }
.flangs { display: flex; gap: 4px; }
.mbar { display: none; }

/* ── Scroll reveal (JS adds .js; content is visible without it) ────────── */
.js .reveal { opacity: 0; transform: translateY(34px); transition-property: opacity, transform, border-color, background, box-shadow; transition-duration: .9s, .9s, .35s, .35s, .35s; transition-timing-function: var(--ease); transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s; }
.js .reveal[data-reveal="left"] { transform: translateX(-34px); }
.js .reveal[data-reveal="scale"] { transform: scale(.92) translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.settled { transition-delay: 0s; }
.js .client.reveal.in:hover { transform: translateY(-8px) rotate(-1deg); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .langs { margin-left: auto; }
  .burger { display: block; }
  .clients { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 520px; }
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-stage { display: none; }
  .how-img { display: block; margin: -4px -4px 18px; border-radius: 16px; overflow: hidden; aspect-ratio: 1200 / 896; background: #F1EDE3; }
  .how-img img { width: 100%; height: 100%; object-fit: cover; }
  .how-step { position: sticky; top: calc(var(--nav-h) + 16px + var(--k, 0) * 14px); min-height: 0; margin-bottom: 18px; padding: 22px 22px 26px; border: 1px solid var(--line); border-top: 4px solid var(--accent);
    border-radius: 24px; background: var(--card); box-shadow: 0 -18px 40px -28px rgba(30, 33, 38, .45); }
  .how-step.is-on { border-color: var(--line); border-top-color: var(--accent); }
  .how-step[data-step="1"] { --k: 1; } .how-step[data-step="2"] { --k: 2; }
  .how-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); font-size: 44px; }
  .ngrid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .endcard-inner { grid-template-columns: 1fr; padding: 40px 32px; }
  .ec-actions { flex-direction: row; flex-wrap: wrap; }
  .section { padding: 96px 0; }
  .timeline::before, .timeline::after { left: 11px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; padding-left: 44px; }
  .tl-item::after { left: 11px; top: 14px; }
  .tl-year, .tl-item:nth-child(even) .tl-year { order: 0; justify-self: start; font-size: 30px; }
  .tl-item:nth-child(even) .tl-card { order: 1; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  body { font-size: 16px; }
  .brand-text { display: none; }
  .nav-cta { display: none; }
  .hero { min-height: auto; padding: 26px 0 72px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .08em; padding: 9px 12px; }
  .lockup { margin-bottom: 20px; }
  .lockup .verbs { letter-spacing: .08em; }
  .cta { flex-direction: column; }
  .cta .btn { width: 100%; }
  .proof { gap: 8px; }
  .proof li { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(251, 249, 244, .7); font-size: 11.5px; }
  .proof li + li::before { display: none; }
  .sheet-body { padding: 40px 44px 20px 20px; }
  .dim-h { left: 20px; right: 44px; }
  .dim-v { right: 10px; }
  .c-b { right: 52px; }
  .tblock { margin: 0 12px; }
  .tblock dd { font-size: 12px; }
  .chip { font-size: 11.5px; padding: 8px 11px; }
  .chip-1 { left: 6px; top: -18px; } .chip-2 { right: 6px; top: auto; bottom: 30%; } .chip-3 { display: none; }
  .scroll-hint { display: none; }
  .kinetic { padding: 22px 0; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 34px; }
  .clients { grid-template-columns: 1fr 1fr; gap: 12px; }
  .client { min-height: 160px; padding: 18px 16px; }
  .client:last-child { grid-column: span 2; }
  .stamp { width: 44px; height: 44px; font-size: 18px; }
  .rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px;
    scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .rail::-webkit-scrollbar { display: none; }
  .rail .vcard { flex: 0 0 80%; scroll-snap-align: start; }
  .js .rail .reveal { opacity: 1; transform: none; }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
  .dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--char-line); transition: width .35s var(--ease), background .35s; }
  .dots i.on { width: 26px; background: var(--green); }
  .about-grid { gap: 44px; }
  .s2 { left: -6px; }
  .offcard { grid-template-columns: 1fr; }
  .offcard picture { aspect-ratio: 4 / 3; }
  .endcard { padding: 60px 0 calc(110px + env(safe-area-inset-bottom)); }
  .endcard-inner { padding: 30px 20px; gap: 24px; }
  .ec-actions .btn { width: 100%; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .mbar { display: flex; align-items: center; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
    padding: 8px 8px 8px 10px; border-radius: 20px; background: rgba(251, 249, 244, .97); border: 1px solid var(--line);
    box-shadow: 0 20px 50px -18px rgba(30, 33, 38, .5); transform: translateY(calc(100% + 30px)); transition: transform .5s var(--spring); }
  .mbar.show { transform: none; }
  .mbar-mark { flex: none; width: 36px; height: 36px; }
  .mbar-mark svg { width: 100%; height: 100%; }
  .mbar-text { flex: 1; font: 600 11px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .sheet::before, .endcard-inner::before, .photo-ring { animation: none; }
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(243, 239, 230, .97); }
}
@media (hover: none) {
  .thumb-play { opacity: .92; transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pop, .char, .js .reveal { opacity: 1 !important; transform: none !important; }
  mark { background-size: 100% 38%; }
  .timeline { --fill: 1; }
}
@media print {
  .nav, .menu, .progress, .grain, .cursor-glow, .grid, .aurora, .kinetic, .mbar, .scroll-hint, .chip { display: none !important; }
  .pop, .reveal, .char { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}

/* ── 404 ───────────────────────────────────────────────────────────────── */
.nf { min-height: 100svh; display: flex; align-items: center; padding-block: 60px; }
.nf h1 { font: 700 clamp(40px, 7vw, 84px)/1.02 var(--serif); letter-spacing: -.02em; max-width: 16ch; }
.nf-alt { color: var(--muted); font-size: 15px; max-width: 60ch; margin-bottom: 6px; }
.nf .cta { margin-top: 28px; }
