/* Soft Field — the portfolio's visual language, for the web.
   An off-white sheet inside a tinted frame; the frame colour follows the section.
   Radii nest (sheet 36 > panel 28 > image 14). Labels are pills; the selected pill is inverted.
   Screenshots stay whole on gradient fields; photographs run full bleed. */
:root {
  --frame: #E6E6E1; --sheet: #FAFAF8; --ink: #1D1D1B; --mute: #6B6B64; --hair: #E2E2DC; --soft: #EEEEE9;
  --night: #121214; --muteD: #A3A39C; --hairD: #2C2C31; --blue: #1F6BFF; --mark: #D3E2FF;
  --lilac: linear-gradient(135deg, #E4E1F7, #F2DCEB 55%, #FBEFF4);
  --mist: linear-gradient(135deg, #D9E7F8, #E6E4F7 55%, #F3EAF6);
  --sage: linear-gradient(135deg, #DAE8D8, #E8EFDD 55%, #F5F3E4);
  --sand: linear-gradient(135deg, #EEE3D2, #F4E7DD 55%, #FAF1E8);
  --sky: linear-gradient(135deg, #CBDDF5, #DAE5F8 55%, #EBF0FB);
  --nightg: linear-gradient(135deg, #1B1C24, #262735 55%, #16171D);
  --inkg: linear-gradient(135deg, #1D1D1B, #2A2A2E);
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --pad: clamp(20px, 4.2vw, 80px);
  --ease: cubic-bezier(.2, 0, 0, 1);
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; background: var(--frame); color: var(--ink); font: 400 17px/1.5 var(--text); letter-spacing: -0.005em; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sheet { margin: 0; border-radius: 0; background: var(--sheet); min-height: 100vh; overflow: clip; position: relative; }
.sheet.dark { background: var(--night); color: #fff; }
.wrap { padding: 0 var(--pad); max-width: 1680px; margin: 0 auto; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 650; letter-spacing: -0.035em; line-height: 1.02; margin: 0; font-optical-sizing: auto; }
.h1 { font-size: clamp(48px, 7.4vw, 132px); }
.h2 { font-size: clamp(36px, 4.6vw, 80px); }
.h3 { font-size: clamp(26px, 2.4vw, 40px); letter-spacing: -0.035em; line-height: 1.04; }
.lead { font-size: clamp(18px, 1.35vw, 23px); line-height: 1.5; color: var(--mute); margin: 0; letter-spacing: -0.012em; }
.dark .lead, .lead.on-dark { color: var(--muteD); }
.micro { font: 500 13px/1 var(--text); letter-spacing: .09em; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: 10px; }
.dark .micro { color: var(--muteD); }
mark { background: none; color: inherit; position: relative; z-index: 0; white-space: nowrap; }
mark::before { content: ""; position: absolute; inset: .1em -.12em .02em; background: var(--mark); border-radius: .14em; z-index: -1; transform-origin: left center; transform: scaleX(var(--mk, 1)); }
.dark mark::before { background: #2A3E66; }

/* ---------- asterisk ---------- */
.ast { width: var(--s, 14px); height: var(--s, 14px); position: relative; flex: none; display: inline-block; color: currentColor; }
.ast i { position: absolute; left: 0; top: 50%; width: 100%; height: 15%; margin-top: -7.5%; background: currentColor; border-radius: 99px; }
.ast i:nth-child(2) { transform: rotate(60deg); } .ast i:nth-child(3) { transform: rotate(120deg); }

/* ---------- pills (Morphin shape: 999 + superellipse; selected = inverse) ---------- */
.pill { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--soft); font: 500 15px/1 var(--text); letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); transition: background-color .2s var(--ease), color .2s var(--ease), scale .15s var(--ease); }
.pill.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.pill.solid { background: var(--ink); color: #fff; }
.pill.line { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(29, 29, 27, .18); }
.pill.glass { background: rgba(255, 255, 255, .92); }
.pill.dglass { background: rgba(14, 14, 16, .78); color: #fff; }
.pill.softD { background: #222226; color: #fff; }
.pill.white { background: #fff; }
a.pill:active, button.pill:active { scale: .97; }
.pill .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); position: relative; margin-right: -10px; }
.pill .plus::before, .pill .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: #fff; border-radius: 2px; transform: translate(-50%, -50%); }
.pill .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
/* the roll: label slides up, a copy rolls in (Morphin's GSAP content change, in CSS) */
.roll { display: inline-grid; overflow: hidden; height: 1.15em; line-height: 1.15em; }
.roll > span { grid-area: 1 / 1; transition: transform .45s var(--ease); }
.roll > span + span { transform: translateY(110%); }
a:hover .roll > span:first-child, button:hover .roll > span:first-child { transform: translateY(-110%); }
a:hover .roll > span + span, button:hover .roll > span + span { transform: translateY(0); }
.arrow { width: 16px; height: 16px; flex: none; }
.cta { position: relative; isolation: isolate; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.cta.beam::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--a), transparent 70%, #7FB0FF 85%, #fff 92%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s var(--ease); z-index: -1; }
.cta.beam:hover::after { opacity: 1; animation: beam 2.4s linear infinite; }
@keyframes beam { to { --a: 360deg; } }

/* ---------- nav ---------- */
.nav { position: fixed; left: 0; right: 0; top: 0; z-index: 50; padding: 18px var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 500 17px/1 var(--text); letter-spacing: -0.02em; justify-self: start; padding: 5px 18px 5px 5px; border-radius: 999px; background: rgba(250, 250, 248, .94); }
.on-dark-nav .brand { background: rgba(18, 18, 20, .94); }
.brand .logo { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.brand .logo .ast { --s: 22px; }
.brand .who { display: grid; gap: 4px; } .brand small { font-size: 13px; color: var(--mute); font-weight: 400; }
.tabs { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(238, 238, 233, .96); }
.tabs a { position: relative; z-index: 1; height: 40px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: 999px; font: 500 15px/1 var(--text); color: var(--mute); transition: color .3s var(--ease); }
.tabs a.on { color: #fff; }
.tabs .ind { position: absolute; z-index: 0; top: 5px; height: 40px; border-radius: 999px; background: var(--ink); left: 0; width: 0; }
.nav .right { justify-self: end; display: flex; gap: 8px; }
.on-dark-nav .tabs { background: rgba(34, 34, 38, .96); } .on-dark-nav .tabs a { color: var(--muteD); } .on-dark-nav .tabs a.on { color: var(--ink); } .on-dark-nav .tabs .ind { background: #fff; }
.on-dark-nav .brand { color: #fff; } .on-dark-nav .brand .logo { background: #fff; color: var(--ink); } .on-dark-nav .brand small { color: var(--muteD); }

/* ---------- fields, shots ---------- */
.field { border-radius: 28px; position: relative; overflow: hidden; display: grid; place-items: center; padding: clamp(18px, 3vw, 44px); }
.t-lilac { background: var(--lilac); } .t-mist { background: var(--mist); } .t-sage { background: var(--sage); } .t-sand { background: var(--sand); } .t-sky { background: var(--sky); } .t-night { background: var(--nightg); } .t-ink { background: var(--inkg); color: #fff; }
.field > img, .shot { border-radius: 14px; box-shadow: 0 18px 44px rgba(14, 16, 36, .16); max-height: var(--mh, 720px); width: auto; height: auto; max-width: 100%; }
.t-night > img { box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.field .tag { position: absolute; left: 18px; top: 18px; z-index: 2; }
figure { margin: 0; } figcaption { font-size: 14px; color: var(--mute); margin-top: 14px; display: flex; gap: 10px; align-items: center; }
.dark figcaption { color: var(--muteD); }

/* ---------- views ---------- */
#view { position: relative; }
#view > section:first-child:not(.hero) { padding-top: 150px; }
section { position: relative; }
.hairline { height: 1px; background: var(--hair); border: 0; margin: 0; }
.dark .hairline { background: var(--hairD); }

/* ---------- overview hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 150px; position: relative; }
.hero .ghost { position: absolute; top: 18vh; left: 0; right: 0; font: 650 clamp(220px, 36vw, 640px)/1 var(--display); letter-spacing: -0.06em; color: var(--ink); opacity: .035; pointer-events: none; user-select: none; }
.hero h1 { position: relative; }
.hero .lead { max-width: 760px; margin-top: 28px; }
.hero .ctas { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.fan { position: relative; width: 100%; height: clamp(300px, 34vw, 470px); margin-top: auto; }
.fan .fc { position: absolute; backface-visibility: hidden; left: 50%; bottom: 40px; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(14, 16, 36, .22); will-change: transform; background: #111; }
.fan .fc img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; z-index: 3; will-change: transform; }
.hire { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 30px; font-size: 15px; color: var(--mute); }
.hire b { color: var(--ink); font-weight: 500; }

/* ---------- section heads ---------- */
.shead { display: grid; grid-template-columns: 1fr minmax(260px, 520px); gap: 40px; align-items: end; padding: 120px 0 48px; }
.shead .lead { justify-self: end; }

/* ---------- stacked case cards (sticky) ---------- */
.stack { display: grid; gap: 28px; padding-bottom: 40px; }
.ccard { will-change: transform; backface-visibility: hidden; position: sticky; top: 100px; border-radius: 36px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 30px 80px rgba(14, 16, 36, .08); display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; gap: 12px; padding: 12px; min-height: min(78vh, 720px); transform-origin: 50% 0; cursor: pointer; }
.ccard .info { padding: clamp(20px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.ccard .top { display: flex; justify-content: space-between; align-items: center; }
.ccard .idx { font: 500 15px/1 var(--text); color: var(--mute); }
.ccard .metric { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: auto; }
.ccard .metric b { display: block; font: 650 clamp(36px, 3.6vw, 60px)/1 var(--display); letter-spacing: -0.035em; margin-bottom: 8px; }
.ccard .metric span { font-size: 14.5px; color: var(--mute); line-height: 1.4; display: block; }
.ccard .media { border-radius: 26px; }
.ccard .media img { --mh: 560px; }
.ccard .go { align-self: flex-start; }

/* ---------- small cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.scard { grid-column: span 6; display: grid; gap: 16px; cursor: pointer; }
.scard.third { grid-column: span 4; } .scard.half { grid-column: span 6; } .scard.wide { grid-column: span 8; } .scard.full { grid-column: span 12; }
.scard .media { height: clamp(280px, 30vw, 540px); }
.scard.third .media { height: clamp(260px, 24vw, 440px); }
#workgrid .scard.third:nth-child(2) .media { height: clamp(280px, 30vw, 540px); }
.scard .media img { max-height: 100%; --mh: 100%; object-fit: contain; }
.scard .meta { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.scard h3 { margin: 6px 0 6px; }
.scard p { margin: 0; color: var(--mute); font-size: 15.5px; max-width: 520px; }
.scard:hover .media img { transform: translateY(-6px) scale(1.012); }
.media img { transition: transform .7s var(--ease); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button.pill.on { background: var(--ink); color: #fff; }

/* ---------- about teaser / about ---------- */
.inline-img { display: inline-block; width: 1.5em; height: .92em; border-radius: 999px; vertical-align: -.06em; overflow: hidden; margin: 0 .06em; box-shadow: 0 8px 20px rgba(14, 16, 36, .16); }
.inline-img img { width: 100%; height: 100%; object-fit: cover; }
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stats4 > div { border-top: 1px solid var(--hair); padding-top: 22px; }
.stats4 b { display: block; font: 650 clamp(44px, 4.6vw, 80px)/1 var(--display); letter-spacing: -0.035em; margin: 16px 0 10px; }
.stats4 span { color: var(--mute); font-size: 15px; }
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.journey .media { aspect-ratio: 1 / 1.05; }
.journey h3 { margin: 18px 0 6px; } .journey p { margin: 0; color: var(--mute); font-size: 15px; }
.awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.awards > div { border-top: 1px solid var(--hair); padding: 22px 0 26px; display: grid; gap: 6px; }
.awards b { font: 650 30px/1.1 var(--display); letter-spacing: -0.035em; }
.awards span { color: var(--mute); font-size: 15px; }
.logos { display: flex; gap: 14px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(14, 16, 36, .07); }
.badge img { height: 34px; width: auto; } .badge b { font: 500 15px/1 var(--text); } .badge .x { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 500 13px/1 var(--text); }
.community { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.community .ph { aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; position: relative; }
.community .ph img { width: 100%; height: 100%; object-fit: cover; }
.community .ph .pill { position: absolute; left: 14px; bottom: 14px; }
.community p { color: var(--mute); margin: 14px 0 0; font-size: 15px; }
.lifegrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.lifegrid .ph { aspect-ratio: 1 / 1.08; border-radius: 22px; overflow: hidden; position: relative; }
.lifegrid .ph:nth-child(even) { margin-top: 36px; }
.lifegrid img { width: 100%; height: 100%; object-fit: cover; }
.lifegrid .pill { position: absolute; left: 10px; bottom: 10px; height: 28px; padding: 0 11px; font-size: 12px; }
.writing { display: grid; grid-template-columns: 7fr 5fr; gap: 12px; border-radius: 36px; background: #fff; padding: 12px; box-shadow: 0 30px 80px rgba(14, 16, 36, .07); }
.writing .info { padding: 36px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }

/* ---------- case study ---------- */
.crumb { display: flex; gap: 8px; align-items: center; margin-bottom: 36px; }
.chero { display: grid; grid-template-columns: 7fr 4fr; gap: 56px; align-items: end; padding-top: 30px; }
.chero .lead { margin-top: 30px; max-width: 900px; font-size: clamp(19px, 1.5vw, 25px); color: var(--ink); }
.dark .chero .lead { color: #E9E9E4; }
.metaBox { display: grid; gap: 0; }
.metaBox > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.dark .metaBox > div { border-color: var(--hairD); }
.metaBox dt { color: var(--mute); } .metaBox dd { margin: 0; }
.dark .metaBox dt { color: var(--muteD); }
.cover { margin-top: 56px; border-radius: 36px; min-height: 58vh; }
.cover img { --mh: 70vh; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 64px 0 0; }
.metrics > div { border-top: 1px solid var(--hair); padding-top: 22px; }
.dark .metrics > div { border-color: var(--hairD); }
.metrics b { display: block; font: 650 clamp(38px, 3.8vw, 68px)/1 var(--display); letter-spacing: -0.035em; margin-bottom: 12px; }
.metrics span { color: var(--mute); font-size: 15px; display: block; max-width: 260px; }
.dark .metrics span { color: var(--muteD); }
.body { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); padding-top: 120px; padding-bottom: 40px; }
/* chapter rail: collapsed to dots; hovering the dots reveals the numbers and titles without shifting the page */
.rail { position: sticky; top: 120px; align-self: start; display: grid; gap: 0; width: 24px; }
.rail a { position: relative; display: block; width: 24px; height: 26px; color: transparent; font-size: 0; transition: color .25s var(--ease); }
.rail a::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--mute); opacity: .45; transition: transform .25s var(--ease), background .25s var(--ease), opacity .25s var(--ease); }
.rail a:hover::before { opacity: .9; transform: scale(1.3); }
.rail a span { position: absolute; left: 34px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 15px; color: var(--mute); padding: 6px 12px; border-radius: 999px; background: var(--bg, #FAFAF8); box-shadow: 0 6px 24px rgba(0,0,0,.08); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.rail:hover a span, .rail a:focus-visible span { opacity: 1; }
.rail a i { font-style: normal; font-size: 13px; padding-top: 2px; position: absolute; left: 0; top: 50%; transform: translate(-6px, -50%); opacity: 0; pointer-events: none; }
.rail a.on::before { background: var(--ink); opacity: 1; } .rail a.on span { color: var(--ink); } .dark .rail a.on::before { background: #fff; }
.dark .rail a span { background: #161618; color: var(--muteD); } .dark .rail a.on span { color: #fff; }
.rail .bar { height: 2px; background: var(--hair); border-radius: 2px; margin-top: 14px; width: 24px; overflow: hidden; } .rail .bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.dark .rail .bar { background: var(--hairD); } .dark .rail .bar i { background: #fff; }
.chapter { padding-bottom: 120px; display: grid; gap: 56px; }
.chapter > .micro { margin-bottom: -28px; }
.ch-text { display: grid; gap: 26px; max-width: 1040px; }
.ch-para .lead { color: var(--ink); opacity: .82; font-size: clamp(19px, 1.5vw, 25px); line-height: 1.55; }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: start; }
.split .col { display: grid; gap: 28px; position: sticky; top: 130px; }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stile { border-radius: 28px; padding: 26px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.stile b { font: 650 clamp(56px, 6vw, 112px)/.92 var(--display); letter-spacing: -0.035em; white-space: pre-line; }
.stile span { font-size: 15px; }
.tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tiles4 .stile { min-height: 380px; }
.tiles4 .stile b { font-size: clamp(48px, 4.4vw, 84px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.flow { display: grid; gap: 22px; }
.flow .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flow .row .micro { width: 150px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards3 .k { border-radius: 28px; padding: 26px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.cards3 .k h3 { font: 650 clamp(34px, 3vw, 52px)/1 var(--display); letter-spacing: -0.035em; margin: 0; }
.cards3 .k p { margin: 12px 0 0; font-size: 15.5px; opacity: .8; }
.cards3 .k + .k::before { content: "→"; position: absolute; left: -30px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; z-index: 2; font-size: 18px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps3 .field { aspect-ratio: 4 / 3; }
.steps3 .field img { max-height: 100%; }
.steps3 h3 { font: 500 17px/1.3 var(--text); letter-spacing: -0.01em; margin: 18px 0 6px; } .steps3 p { margin: 0; color: var(--mute); font-size: 15px; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.figs .field { aspect-ratio: 4 / 3; } .figs .field img { max-height: 100%; }
.owns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.owns > div { border-radius: 28px; padding: 30px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.owns ul { list-style: none; padding: 0; margin: 0; font: 650 clamp(28px, 2.6vw, 44px)/1.12 var(--display); letter-spacing: -0.035em; }
.rows > div { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; border-top: 1px solid var(--hair); padding: 24px 0; }
.dark .rows > div { border-color: var(--hairD); }
.rows i { font-style: normal; color: var(--blue); font-size: 14px; letter-spacing: .06em; } .dark .rows i { color: #7FB0FF; }
.rows b { font: 650 clamp(32px, 3.4vw, 60px)/1 var(--display); letter-spacing: -0.035em; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quotes blockquote { margin: 0; border-radius: 28px; padding: 30px; min-height: 260px; display: flex; align-items: flex-end; font: 650 clamp(22px, 1.9vw, 32px)/1.15 var(--display); letter-spacing: -0.03em; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid4 > div { border-radius: 28px; padding: 30px; background: #fff; box-shadow: 0 20px 60px rgba(14, 16, 36, .06); }
.dark .grid4 > div { background: #1A1A1E; box-shadow: none; }
.grid4 h3 { margin: 0 0 14px; } .grid4 p { margin: 0; color: var(--mute); } .dark .grid4 p { color: var(--muteD); }
.patterns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.patterns .k { border-radius: 28px; padding: 28px; min-height: 460px; display: flex; flex-direction: column; gap: 16px; }
.patterns .k .n { font-size: 13px; letter-spacing: .06em; color: var(--blue); } .patterns .t-ink .n { color: #7FB0FF; }
.patterns .k h3 { font: 650 clamp(36px, 3vw, 52px)/1 var(--display); letter-spacing: -0.035em; margin: 0; }
.patterns .k .q { font: 650 24px/1.15 var(--display); letter-spacing: -0.03em; }
.patterns .k p { margin: 0; opacity: .78; font-size: 15.5px; }
.patterns .k .w { margin-top: auto; font-size: 14px; font-weight: 500; } .patterns .t-ink .w { color: #FFB86B; }
.process { position: relative; display: grid; gap: 90px; }
.process svg.snake { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.phase { position: relative; display: grid; grid-template-columns: 4fr 8fr; gap: 40px; }
.phase .ph-h { display: grid; gap: 16px; align-content: start; position: sticky; top: 130px; }
.phase { padding-left: 64px; }
.phase .node { position: absolute; left: -64px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 8px var(--sheet); }
.phase .ph-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 16px; }
.phase .ph-steps .field { aspect-ratio: 4 / 3.2; padding: 18px; } .phase .ph-steps .field img { max-height: 100%; border-radius: 8px; }
.phase .ph-steps p { margin: 12px 0 0; font-size: 14.5px; color: var(--mute); display: grid; grid-template-columns: 28px 1fr; } .phase .ph-steps p i { font-style: normal; color: var(--blue); font-size: 12.5px; padding-top: 2px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--soft); width: max-content; }
.seg span { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font: 500 13.5px/1 var(--text); color: var(--mute); }
.seg span.on { background: var(--ink); color: #fff; }
.stackSplit { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; }
.layers { position: relative; aspect-ratio: 1 / 1.02; border-radius: 36px; background: var(--sky); overflow: hidden; }
.layers img { position: absolute; will-change: transform; }
.layers .lab { position: absolute; right: 6%; display: flex; align-items: center; gap: 10px; font: 500 15px/1 var(--text); }
.layers .lab::before { content: ""; width: 44px; height: 1px; background: #8E9AB4; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stats3 > div { border-top: 1px solid var(--hair); padding-top: 18px; }
.stats3 b { display: block; white-space: nowrap; font: 650 clamp(28px, 2.5vw, 46px)/1 var(--display); letter-spacing: -0.035em; margin-bottom: 10px; } .stats3 span { font-size: 14.5px; color: var(--mute); }
.roleSplit { display: grid; grid-template-columns: 6fr 5fr; gap: 48px; align-items: center; }
.roleSplit ol { list-style: none; margin: 30px 0 0; padding: 0; }
.roleSplit li { display: grid; grid-template-columns: 54px 1fr; border-top: 1px solid var(--hair); padding: 20px 0; font-size: 19px; letter-spacing: -0.01em; }
.roleSplit li i { font-style: normal; color: var(--blue); font-size: 13px; padding-top: 5px; }
.linkcard { display: grid; grid-template-columns: 6fr 5fr; gap: 12px; padding: 12px; border-radius: 36px; background: #fff; box-shadow: 0 30px 80px rgba(14, 16, 36, .07); }
.linkcard img { border-radius: 26px; width: 100%; height: 100%; object-fit: cover; }
.linkcard .info { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.next { margin: 40px 0 12px; border-radius: 36px; padding: 12px; display: grid; grid-template-columns: 5fr 7fr; gap: 12px; cursor: pointer; background: #fff; box-shadow: 0 30px 80px rgba(14, 16, 36, .08); }
.dark .next { background: #1A1A1E; box-shadow: none; }
.next .info { padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.next .media { min-height: 380px; border-radius: 26px; }
.minigal { display: grid; gap: 20px; }
.minigal .field img { --mh: 78vh; }

/* ---------- dark sheet ---------- */
.dark .pill { background: #222226; color: #fff; }
.dark .pill.solid { background: #fff; color: var(--ink); }
.dark .pill.line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.dark .pill.glass { background: rgba(255, 255, 255, .72); color: var(--ink); }
.dark .pill.white { background: #fff; color: var(--ink); }
.dark .t-lilac, .dark .t-mist, .dark .t-sage, .dark .t-sand, .dark .t-sky { color: var(--ink); }
.dark .t-lilac .micro, .dark .t-mist .micro, .dark .t-sage .micro, .dark .t-sand .micro, .dark .t-sky .micro { color: var(--mute); }
.dark .t-ink { background: linear-gradient(135deg, #26262B, #323238); }
.dark .cards3 .k + .k::before { background: #fff; color: var(--ink); }
.dark .phase .node { background: #fff; box-shadow: 0 0 0 8px var(--night); }
.dark .seg { background: #222226; } .dark .seg span.on { background: #fff; color: var(--ink); }
.dark .linkcard, .dark .writing { background: #1A1A1E; box-shadow: none; }

/* ---------- footer ---------- */
.foot { padding-top: 140px; padding-bottom: 60px; text-align: center; display: grid; gap: 28px; justify-items: center; }
.foot .links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.foot .base { width: 100%; display: flex; justify-content: space-between; color: var(--mute); font-size: 14px; padding-top: 80px; }
.dark .foot .base { color: var(--muteD); }

/* ---------- transitions ---------- */
.carrier { position: fixed; z-index: 80; overflow: hidden; pointer-events: none; }
.carrier img { box-shadow: none !important; }
.veil { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

@media (max-width: 1000px) {
  .nav { grid-template-columns: auto 1fr; } .nav .right { display: none; } .tabs { justify-self: end; } .brand .who small { display: none; }
  .tabs a { padding: 0 13px; }
  .ccard, .chero, .body, .split, .stackSplit, .roleSplit, .linkcard, .next, .writing, .phase, .shead { grid-template-columns: 1fr; }
  .rail { display: none; } .split .col, .phase .ph-h { position: static; }
  .ccard { position: relative; top: auto; min-height: 0; }
  .metrics, .stats4, .tiles4 { grid-template-columns: 1fr 1fr; }
  .journey, .community { grid-template-columns: 1fr 1fr; } .lifegrid { grid-template-columns: repeat(3, 1fr); }
  .cards3, .steps3, .quotes, .patterns, .awards, .figs, .grid4, .owns { grid-template-columns: 1fr; }
  .cards3 .k + .k::before { display: none; }
  .scard, .scard.third, .scard.wide { grid-column: span 12; }
  .stats3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .brand .who { display: none; } .metrics, .stats4, .tiles4 { grid-template-columns: 1fr; } .hero { padding-top: 130px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- reveal start state (set in CSS so nothing flashes before JS hides it) ---------- */
.js [data-r] { opacity: 0; transform: translateY(40px); }
.js .filters ~ .grid [data-r] { will-change: opacity, transform; }

/* ---------- a lighter, friendlier touch ---------- */
.float.pill:nth-of-type(odd) { rotate: -4deg; } .float.pill:nth-of-type(even) { rotate: 3deg; }
.hero .pill.sm:first-child { rotate: -2deg; }
.scard:hover .media { rotate: -.6deg; }
.scard .media { transition: rotate .5s var(--ease); }
.micro { letter-spacing: .07em; font-weight: 600; }
.pill { font-weight: 550; }
.tabs a, .brand { font-weight: 550; }
.lead { letter-spacing: -0.008em; }

/* ---------- reference motion: soft backdrop, masked words, marquee band ---------- */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 45% at 15% 0%, rgba(255,255,255,.75), transparent 70%), radial-gradient(55% 45% at 95% 100%, rgba(255,255,255,.55), transparent 70%); }
.js [data-r="soft"] { transform: none; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.wm > .w { display: inline-block; will-change: transform; }
.band { position: relative; left: -4%; width: 108%; margin: 70px 0 30px; padding: 22px 0; background: #E9F76A; color: var(--ink); transform: rotate(-1.4deg); overflow: hidden; white-space: nowrap; }
.band-in { display: inline-flex; align-items: center; gap: 36px; padding-left: 36px; will-change: transform; }
.band .bi { font: 650 clamp(30px, 4vw, 64px)/1 var(--display); letter-spacing: -0.035em; }
.band .bs { --s: clamp(22px, 2.6vw, 40px); }
.dark .band { background: #D7F25A; }

/* ---------- explainer motion graphics ---------- */
.ex { border-radius: 36px; padding: clamp(24px, 3.4vw, 56px); display: grid; grid-template-columns: 4fr 7fr; gap: clamp(24px, 3vw, 56px); align-items: center; min-height: 480px; overflow: hidden; }
.ex-copy { display: grid; gap: 16px; align-content: center; }
.ex-copy .lead { color: var(--ink); opacity: .72; }
.ex-stage { position: relative; min-height: 380px; display: grid; align-items: center; }
.ex-stage.pipe { grid-template-columns: repeat(3, 1fr); align-items: start; padding-top: 70px; }
.pipe-track { position: absolute; left: 16.67%; right: 16.67%; top: 108px; height: 3px; border-radius: 3px; background: rgba(29, 29, 27, .12); overflow: hidden; }
.pipe-track i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.pulse { position: absolute; top: 99px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 8px rgba(31, 107, 255, .18); left: 16.67%; z-index: 2; }
.pnode { display: grid; justify-items: center; gap: 22px; }
.pnode .pc { display: flex; align-items: center; gap: 10px; height: 76px; padding: 0 22px; border-radius: 22px; background: #fff; box-shadow: 0 14px 34px rgba(14, 16, 36, .1); transition: background-color .35s var(--ease), color .35s var(--ease); font-size: 15px; white-space: nowrap; }
.pnode .ic svg { width: 22px; height: 22px; display: block; }
.pnode.on .pc { background: var(--ink); color: #fff; }
.pchip { opacity: 0; }
.mock { background: #fff; border-radius: 24px; padding: 22px 24px; width: min(100%, 600px); box-shadow: 0 24px 60px rgba(14, 16, 36, .12); justify-self: center; }
.mock-h { display: flex; gap: 10px; align-items: center; padding-bottom: 14px; } .mock-h .pill { margin-left: auto; }
.mdot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.mrow { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--hair); }
.ml { color: var(--mute); font-size: 14px; }
.mv { position: relative; font-size: 17px; } .mv b { font-weight: 600; display: block; clip-path: inset(0 100% 0 0); }
.sk { position: absolute; left: 0; top: 50%; height: 16px; width: 80%; margin-top: -8px; border-radius: 8px; background: linear-gradient(90deg, #ECECE6, #F7F7F3, #ECECE6); transform-origin: left; }
.msrc { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; white-space: nowrap; opacity: 0; }
.ex-stage.cost { grid-template-columns: 150px 1fr; gap: 24px; }
.ladder { position: relative; height: 380px; }
.rail-l { position: absolute; left: 10px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: rgba(29, 29, 27, .14); }
.knob { position: absolute; left: -7px; top: 8%; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(29, 29, 27, .12); }
.stop { position: absolute; left: 34px; font: 600 15px/1.2 var(--text); color: var(--mute); transition: color .3s; } .stop small { display: block; font-weight: 500; font-size: 12px; opacity: .8; } .stop.on { color: var(--ink); }
.panel { position: relative; height: 380px; }
.st { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border-radius: 24px; box-shadow: 0 24px 60px rgba(14, 16, 36, .1); opacity: 0; align-items: flex-start; }
.st .q { font: 650 24px/1.1 var(--display); letter-spacing: -0.03em; margin: 6px 0 4px; }
.rr { display: flex; gap: 8px; align-items: center; font-size: 15px; } .rr svg { width: 17px; height: 17px; color: #22A55B; flex: none; }
.conf { width: 100%; height: 8px; border-radius: 8px; background: #EEE; overflow: hidden; margin-top: 8px; } .conf i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); } .cl { color: var(--mute); }
.rc { display: grid; grid-template-columns: 80px 1fr; gap: 10px; font-size: 15px; width: 100%; padding: 8px 0; border-top: 1px solid var(--hair); } .rc em { font-style: normal; color: var(--mute); }
.st-con { align-items: stretch; } .st-con .pill { align-self: flex-start; }
.blast { position: relative; flex: 1; min-height: 250px; --rx: 150px; --ry: 96px; }
.ring { position: absolute; left: 50%; top: 50%; border: 1.5px dashed rgba(29, 29, 27, .22); border-radius: 50%; translate: -50% -50%; }
.ring.r1 { width: 300px; height: 190px; } .ring.r2 { width: 420px; height: 250px; border-color: rgba(29, 29, 27, .12); }
.core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.sat { position: absolute; left: 50%; top: 50%; background: #F3EEE3; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sat.irr { background: #FFE0D6; color: #B23A12; }
.ex-stage.tok { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; align-content: center; padding-top: 24px; }
.tk { background: #fff; border-radius: 22px; padding: 18px 20px; display: grid; gap: 6px; min-width: 130px; box-shadow: 0 14px 34px rgba(14, 16, 36, .09); } .tk small { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; } .tk b { font: 650 20px/1.1 var(--display); letter-spacing: -0.02em; } .tk em { font-style: normal; color: var(--mute); font-size: 14px; }
.sw { width: 52px; height: 52px; border-radius: 14px; background: #0B5ED7; }
.tarr { font-size: 22px; color: var(--mute); }
.tk.ui { gap: 12px; min-width: 190px; }
.btnx { background: #0B5ED7; color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; text-align: center; }
.tg { width: 46px; height: 26px; border-radius: 99px; background: #0B5ED7; position: relative; } .tg i { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.bar { height: 8px; border-radius: 8px; background: #E6E8EE; overflow: hidden; } .bar i { display: block; width: 68%; height: 100%; background: #0B5ED7; }
.chipx { align-self: flex-start; padding: 6px 12px; border-radius: 99px; border: 1.5px solid #0B5ED7; color: #0B5ED7; font-weight: 600; font-size: 13px; }
.ex-stage.tok .brand { position: absolute; right: 0; top: 0; }
.ex-stage.conv { height: 400px; }
.shell { position: absolute; inset: 4% 3% 4% 3%; background: rgba(255, 255, 255, .72); border-radius: 22px; border: 1.5px solid rgba(29, 29, 27, .1); opacity: 0; }
.sh-h { position: absolute; left: 3%; right: 3%; top: 4%; height: 9%; border-radius: 10px; background: var(--ink); opacity: .9; } .sh-t { position: absolute; left: 0; top: 0; }
.app { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 12px 28px rgba(14, 16, 36, .12); padding: 0 0 10px; overflow: hidden; display: grid; grid-template-rows: 16px auto auto auto; gap: 6px; }
.app .ah { display: block; height: 100%; transform-origin: top; } .app b { font: 650 20px/1 var(--display); padding: 0 12px; } .app i { height: 5px; margin: 0 12px; background: #EAEAE4; border-radius: 4px; }
.cv-l { position: absolute; left: 0; bottom: -6px; z-index: 3; }
@media (max-width: 1000px) { .ex { grid-template-columns: 1fr; } .ex-stage.cost { grid-template-columns: 1fr; } .ladder { display: none; } .ex-stage.pipe { padding-top: 40px; } .pipe-track { top: 78px; } .pulse { top: 69px; } .pnode .pc { padding: 0 12px; font-size: 13px; height: 60px; } }
.ex[data-ex="tokens"], .ex[data-ex="converge"] { grid-template-columns: 4fr 8fr; }
.ex-stage.tok { flex-wrap: nowrap; gap: 10px; padding-top: 30px; }
.tk { min-width: 0; padding: 16px 16px; } .tk.ui { min-width: 170px; }
.tarr { font-size: 18px; }
.ex-stage.tok .brand { top: -6px; right: 0; }
.ccard h3.display { font-size: clamp(30px, 3.3vw, 54px); }
.next h2.display { font-size: clamp(30px, 3.3vw, 54px); }
.chero h1.display { font-size: clamp(40px, 5.4vw, 96px); }
.ccard .metric b { white-space: nowrap; font-size: clamp(28px, 2.7vw, 46px); }

/* serif headlines: lining figures, a touch more room */
.h1 { line-height: 1; } .stat, .metric b, .metrics b, .stats4 b, .stile b, .band .bi { font-variant-numeric: lining-nums; }
.hero h1.display { letter-spacing: -0.04em; }

/* ---------- home: fresh and clean ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; border-radius: 0; overflow: hidden; } .progress i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.hero { overflow: visible; }
.blobs { position: absolute; left: -12vw; right: -12vw; top: -140px; bottom: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; will-change: transform; }
.blobs .b1 { left: 4%; top: 6%; width: 46vw; height: 46vw; background: radial-gradient(circle at 50% 50%, rgba(214, 205, 247, .9), rgba(214, 205, 247, 0) 66%); }
.blobs .b2 { right: 2%; top: 18%; width: 42vw; height: 42vw; background: radial-gradient(circle at 50% 50%, rgba(196, 223, 250, .95), rgba(196, 223, 250, 0) 66%); }
.blobs .b3 { left: 34%; bottom: 4%; width: 40vw; height: 36vw; background: radial-gradient(circle at 50% 50%, rgba(223, 238, 208, .9), rgba(223, 238, 208, 0) 66%); }
.hero > *:not(.blobs) { position: relative; z-index: 1; }
.hero-tag { gap: 10px; }
.live { width: 9px; height: 9px; border-radius: 50%; background: #22A55B; position: relative; flex: none; }
.live::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #22A55B; opacity: 0; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.hero-pic { width: 1.7em; height: .98em; vertical-align: -.1em; margin: 0 .08em; border-radius: 999px; box-shadow: 0 10px 28px rgba(14, 16, 36, .22); border: 3px solid #fff; }
.hero-pic img { object-position: 50% 28%; }
.fan { overflow: visible; }
.fan .fc { border: 0; background: #111; }
.fc img { transform-origin: 50% 50%; will-change: transform; }
.fl { position: absolute; z-index: 3; will-change: transform; } .fl .float { position: static; }
.hero .hire { margin-top: 26px; }
.stile.rt { cursor: pointer; justify-content: space-between; min-height: 360px; transform-style: preserve-3d; will-change: transform; }
.stile.rt b { display: block; font-size: clamp(44px, 4.6vw, 84px); line-height: .96; }
.stile.rt .rl { display: block; margin-top: 16px; font-size: 16px; max-width: 240px; color: rgba(29, 29, 27, .72); line-height: 1.4; }
.stile.rt .pill { align-self: flex-start; }
.stile.rt:hover .pill { background: var(--ink); color: #fff; }
.results { padding-bottom: 20px; }
.about-t { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; padding: 120px 0 40px; }
.about-l h2 { font-size: clamp(34px, 4vw, 66px); }
.portrait { position: relative; justify-self: end; width: min(100%, 440px); }
.portrait .pt { aspect-ratio: 4 / 5; border-radius: 36px; overflow: hidden; rotate: 2.5deg; box-shadow: 0 40px 80px rgba(14, 16, 36, .2); background: var(--lilac); }
.portrait .pt img { width: 100%; height: 112%; object-fit: cover; }
.portrait .pb { position: absolute; z-index: 2; will-change: transform; }
.portrait .b1 { left: -34px; top: 14%; } .portrait .b2 { right: -26px; top: 46%; } .portrait .b3 { left: 16px; bottom: -14px; }
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; width: 0; height: 0; }
.cursor .c-in { position: absolute; left: -42px; top: -42px; width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 14px/1 var(--text); scale: 0; opacity: 0; transition: scale .35s var(--ease), opacity .2s; }
.cursor.on .c-in { scale: 1; opacity: 1; }
.ccard:hover .media img { transform: scale(1.03); }
@media (max-width: 1000px) { .about-t { grid-template-columns: 1fr; } .portrait { justify-self: center; } .cursor { display: none; } }

/* ---------- polish pass ---------- */
.nav::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 128px; border-radius: 0; background: linear-gradient(var(--sheet) 30%, rgba(250, 250, 248, 0)); pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s var(--ease); }
.nav.scrolled::before { opacity: 1; }
.nav.on-dark-nav::before { background: linear-gradient(var(--night) 30%, rgba(18, 18, 20, 0)); }
.hero { padding-top: 118px; min-height: min(100vh, 980px); }
.hero .h1, .hero h1.display { font-size: clamp(46px, 6.3vw, 116px); }
.hero .lead { max-width: 820px; margin-top: 22px; }
.hero .ctas { margin-top: 26px; } .hero .hire { margin-top: 20px; }
.fan { height: clamp(250px, 24.5vw, 350px); }
.fan .fc { bottom: 26px; }

/* ---------- metric cards ---------- */
.mcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mc { position: relative; border-radius: 28px; padding: 20px; min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transform-style: preserve-3d; will-change: transform; overflow: hidden; }
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.delta { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12.5px/1 var(--text); white-space: nowrap; }
.mc-viz { flex: 1; display: grid; align-items: center; padding: 18px 0 8px; min-height: 150px; }
.mc-num b { display: block; font: 650 clamp(44px, 4.3vw, 78px)/.96 var(--display); letter-spacing: -0.04em; white-space: pre-line; }
.mc-num span { display: block; margin-top: 14px; font-size: 15.5px; line-height: 1.4; max-width: 250px; color: rgba(29, 29, 27, .72); }
.spark { width: 100%; height: 118px; overflow: visible; } .spark .dot { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 0 rgba(31, 107, 255, .4)); }
.dg { display: grid; grid-template-columns: repeat(10, 1fr); gap: 9px; align-content: center; } .dg i { aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.tkb { position: relative; padding-top: 34px; } .tkr { display: flex; justify-content: space-between; align-items: flex-end; height: 44px; } .tkr i { width: 3px; height: 55%; border-radius: 3px; background: rgba(29, 29, 27, .16); transition: background-color .2s, height .2s; } .tkr i.big { height: 80%; } .tkr i.on { background: var(--ink); }
.mk { position: absolute; top: 0; left: 4.2%; translate: -50% 0; } .mk em { font: 600 12.5px/1 var(--text); font-style: normal; background: var(--blue); color: #fff; padding: 7px 10px; border-radius: 999px; display: block; white-space: nowrap; } .mk::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 14px; margin-left: -1px; background: var(--blue); }
.tkl { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: rgba(29, 29, 27, .6); font-weight: 500; }
.bbx { display: flex; gap: 14px; align-items: flex-end; height: 150px; } .bcol { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; } .bcol i { display: block; border-radius: 12px 12px 6px 6px; background: rgba(29, 29, 27, .16); } .bcol.after i { background: var(--ink); } .bcol span { font-size: 12.5px; font-weight: 600; text-align: center; color: rgba(29, 29, 27, .6); } .bcol.after span { color: var(--ink); }
@media (max-width: 1100px) { .mcs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mcs { grid-template-columns: 1fr; } .mc { min-height: 400px; } }

.hero-tag { padding-left: 5px; height: 40px; gap: 10px; font-weight: 550; }
.hero-tag .av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px #fff; } .hero-tag .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.hero .h1, .hero h1.display { font-size: clamp(44px, 5.9vw, 110px); }
.mc-top { flex-wrap: wrap; }

/* ---------- phone fixes ---------- */
.stack { grid-template-columns: minmax(0, 1fr); } .ccard, .ccard .info, .scard, .mc { min-width: 0; }
.hero-tag { max-width: 100%; }
@media (max-width: 700px) {
  .hero { padding-top: 104px; }
  .hero .h1, .hero h1.display { font-size: clamp(34px, 9.4vw, 52px); }
  .hero .lead { font-size: 17px; }
  .hero .hire { gap: 6px 16px; font-size: 14px; }
  .fl[data-d="2.2"], .fl[data-d="1.2"] { display: none; }
  .fl { left: auto; right: auto; } .fl:nth-of-type(1) { left: 4% !important; top: 8% !important; } .fl:nth-of-type(2) { right: 4% !important; left: auto !important; top: 0 !important; }
  .fan { height: 250px; }
  .ccard .metric { grid-template-columns: 1fr 1fr; gap: 14px; } .ccard .metric b { white-space: normal; font-size: 30px; }
  .shead { padding: 70px 0 28px; gap: 18px; } .shead .lead { justify-self: start; }
  .about-t { padding-top: 70px; } .portrait { width: min(86%, 340px); }
  .band .bi { font-size: 28px; }
  .foot { padding-top: 90px; }
}

.grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.scard .meta { flex-wrap: wrap; } .scard .meta > div { min-width: 0; flex: 1 1 220px; }
@media (max-width: 700px) { .fan { height: 270px; } .fan .fc { bottom: 18px; } }

/* ---------- journey: a winding line, a pencil, and chapters on the line ---------- */
.journey-s { padding-bottom: 60px; }
.jn-head { display: grid; grid-template-columns: 1fr minmax(260px, 480px); gap: 40px; align-items: end; padding: 110px var(--pad) 40px; }
.jn-head .lead { justify-self: end; }
.jn { position: relative; }
.jn-svg { position: absolute; left: 0; top: 0; width: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.jn-svg .track { fill: none; stroke: rgba(29, 29, 27, .1); stroke-width: 4; stroke-dasharray: 2 10; stroke-linecap: round; }
.jn-svg .ink { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.jr { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 168px 1fr; gap: 56px; align-items: center; min-height: 78vh; padding: 70px 0; }
.jr .jc { display: grid; gap: 18px; align-content: center; min-width: 0; }
.jr.l .jc { grid-column: 1; grid-row: 1; } .jr.r .jc { grid-column: 3; grid-row: 1; }
.jmk { grid-column: 2; grid-row: 1; justify-self: center; display: grid; place-items: center; width: 150px; height: 150px; }
.jm { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; border: 7px solid #fff; box-shadow: 0 20px 50px rgba(14, 16, 36, .18); display: grid; place-items: center; background: var(--soft); will-change: transform; }
.jm img { width: 100%; height: 100%; object-fit: cover; } .jm svg { width: 54%; height: 54%; color: var(--ink); }
.jy { font: 650 clamp(30px, 3.4vw, 56px)/1 var(--display); letter-spacing: -0.04em; color: var(--blue); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.jy em { font: 600 12.5px/1 var(--text); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--soft); border-radius: 999px; padding: 8px 12px; }
.jr .jc h3 { font-size: clamp(30px, 3.2vw, 52px); }
.jr .jc .lead { font-size: clamp(17px, 1.2vw, 20px); max-width: 560px; }
.jscene { margin-top: 10px; }
.jend { display: grid; justify-items: center; gap: 14px; padding: 30px 0 10px; position: relative; z-index: 1; text-align: center; }
.jend .display { color: var(--mute); }
/* scenes */
.jpol { width: 200px; background: #fff; padding: 10px 10px 34px; border-radius: 6px; box-shadow: 0 18px 40px rgba(14, 16, 36, .16); position: relative; } .jpol img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; } .jpol span { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font: 500 14px/1 'Caveat', var(--text); color: var(--mute); }
.jjoke { margin: 18px 0 0; font-size: 17px; line-height: 1.5; color: var(--mute); max-width: 520px; } .jjoke .st { --st: 0; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 56% / calc(var(--st) * 100%) 2px; } .jjoke em { display: block; margin-top: 10px; font: 650 22px/1.1 var(--display); font-style: normal; letter-spacing: -0.03em; color: var(--ink); }
.jdoodle { width: min(100%, 440px); height: auto; }
.jps { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; max-width: 480px; }
.jps-c { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 14px 34px rgba(14, 16, 36, .12); } .jps-c > * { position: absolute; } .cv-bg { inset: 0; background: linear-gradient(135deg, #EEE3D2, #F4E7DD); } .cv-sk { inset: 0; width: 100%; height: 100%; } .cv-col { width: 70%; aspect-ratio: 1; right: -12%; bottom: -12%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8FB6FF, #1F6BFF); mix-blend-mode: multiply; opacity: .9; } .cv-ty { left: 12px; top: 8px; font: 700 34px/1 var(--display); letter-spacing: -0.04em; }
.jps-p { background: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(14, 16, 36, .1); overflow: hidden; font-size: 13.5px; } .jps-h { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--soft); font-weight: 600; } .jps-h span { color: var(--mute); font-weight: 500; }
.jps-r { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--hair); } .jps-r .eye { width: 14px; height: 9px; border-radius: 50%; border: 1.6px solid var(--ink); position: relative; } .jps-r .eye::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--ink); } .jps-r .th { width: 26px; height: 20px; border-radius: 4px; } .th0 { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); } .th1 { background: #1F6BFF; } .th2 { background: #E6E6E1; } .th3 { background: #F4E7DD; }
.jpf { position: relative; height: 300px; width: min(100%, 520px); } .jpc { position: absolute; left: 50%; top: 50%; width: 150px; height: 200px; margin: -100px 0 0 -75px; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(14, 16, 36, .22); background: #fff; will-change: transform; } .jpc img { width: 100%; height: 100%; object-fit: cover; }
.jcg { display: flex; align-items: center; gap: 22px; } .jcg svg { width: 130px; height: 130px; flex: none; } .jcg b { display: block; font: 650 clamp(54px, 6vw, 96px)/.95 var(--display); letter-spacing: -0.045em; } .jcg span { display: block; margin-top: 8px; font-weight: 600; } .jcg small { color: var(--mute); font-size: 14px; }
.jhp { position: relative; display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; } .jh { --r: 0deg; width: 150px; background: #fff; padding: 8px 8px 30px; border-radius: 6px; box-shadow: 0 16px 36px rgba(14, 16, 36, .16); position: relative; will-change: transform; } .jh img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; } .jh span { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--mute); }
.jhp + .chips { margin-top: 14px; }
.jjob { display: grid; gap: 18px; } .jjob .field { padding: 22px; border-radius: 28px; }
.jstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .jstats > div { border-top: 1px solid var(--hair); padding-top: 12px; } .jstats b { display: block; font: 650 clamp(22px, 2vw, 34px)/1 var(--display); letter-spacing: -0.035em; white-space: nowrap; } .jstats span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--mute); line-height: 1.35; }
.jlink { align-self: flex-start; justify-self: start; }
.js .jr .jm { transform: scale(0); }
@media (max-width: 899px) {
  .jr { grid-template-columns: 64px 1fr; gap: 18px; min-height: 0; padding: 40px 0; align-items: start; }
  .jr.l .jc, .jr.r .jc { grid-column: 2; grid-row: 1; } .jmk { grid-column: 1; width: 64px; height: 64px; align-self: start; } .jm { width: 64px; height: 64px; border-width: 4px; }
  .jn-head { grid-template-columns: 1fr; padding-top: 70px; } .jn-head .lead { justify-self: start; }
  .jstats { grid-template-columns: 1fr 1fr 1fr; } .jps { grid-template-columns: 1fr; } .jps-c { max-width: 180px; }
}

.jr { grid-template-columns: minmax(0, 1fr) 168px minmax(0, 1fr); }
.jhp { max-width: 100%; }
@media (max-width: 899px) { .jr { grid-template-columns: 64px minmax(0, 1fr); } .jh { width: 120px; } .jpc { width: 120px; height: 160px; margin: -80px 0 0 -60px; } .jpf { height: 240px; } .jjoke em { font-size: 19px; } }

/* ---------- journey: childhood photos, products, lessons ---------- */
.jkids { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.jk { --r: 0deg; margin: 0; width: min(190px, 31%); min-width: 150px; background: #fff; padding: 8px 8px 34px; border-radius: 6px; box-shadow: 0 18px 40px rgba(14, 16, 36, .18); position: relative; will-change: transform; }
.jk img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; object-position: 50% 40%; }
.jk figcaption { position: absolute; left: 0; right: 0; bottom: 9px; margin: 0; justify-content: center; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.jscrib { width: min(100%, 420px); height: auto; margin-top: 14px; display: block; }
.jjob { display: grid; gap: 26px; }
.jblock { display: grid; gap: 14px; }
.jprods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.jp .field { aspect-ratio: 4 / 3; padding: 16px; border-radius: 22px; }
.jp .field img { max-height: 100%; border-radius: 10px; }
.jp h4 { margin: 14px 0 4px; font: 650 19px/1.2 var(--display); letter-spacing: -0.02em; }
.jp p { margin: 0; font-size: 14.5px; color: var(--mute); line-height: 1.45; }
.jbig { font: 650 clamp(50px, 5vw, 84px)/1 var(--display); letter-spacing: -0.045em; }
.jlearn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.jlearn li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--hair); font-size: 16px; line-height: 1.45; letter-spacing: -0.01em; }
.jlearn li::before { content: ""; position: absolute; left: 0; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
@media (max-width: 899px) { .jk { width: 44%; } .jprods { grid-template-columns: 1fr 1fr; } }
.jscene .pill { white-space: normal; height: auto; min-height: 32px; padding: 7px 14px; line-height: 1.25; }
@media (max-width: 899px) { .jpf { overflow: hidden; } }

/* ---------- alignment pass ---------- */
.hero .lead { max-width: 700px; }
.hero .hire { display: flex; justify-content: center; align-items: center; gap: 0; font-size: 15px; margin-top: 22px; color: var(--mute); }
.hero .hire span { display: inline-flex; align-items: baseline; gap: 6px; }
.hero .hire span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #C4C4BC; margin: 0 20px; align-self: center; }
.hero .hire b { color: var(--ink); font-weight: 650; font-size: 17px; }
/* metric cards: every number on one line, same size, same top */
.mc { container-type: inline-size; }
.mc-num b { white-space: nowrap; font-size: clamp(30px, 16.2cqw, 72px); min-height: 1em; }
/* titles, labels and lists start on the same line across a row */
.scard { align-content: start; }
.scard .micro { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
.scard .meta > div { min-width: 0; }
.cards3 .k { justify-content: flex-start; gap: 0; } .cards3 .k > div { margin-top: auto; } .cards3 .k h3 { min-height: 2.05em; display: flex; align-items: flex-end; }
.owns > div { justify-content: flex-start; gap: 28px; }
.awards > div { align-content: start; }
.patterns .k h3 { min-height: 1.05em; }
.hero .lead { max-width: 760px; text-wrap: balance; }
.display, .jy { text-wrap: balance; }
.lead, .scard p, .jp p, .jlearn li { text-wrap: pretty; }
.mc-top { flex-wrap: nowrap; } .mc-top .pill, .mc-top .delta { flex: none; }

/* ---------- graphics that fill the cards ---------- */
.gx { position: relative; width: 100%; min-height: 150px; color: var(--ink); display: grid; place-items: center; }
.t-ink .gx, .t-night .gx { color: #fff; }
.stile.gxs { min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; } .stile.gxs .gx { flex: 1; }
.tiles2 .stile.gxs { min-height: 330px; }
.stile.gxs > .ast { color: var(--ink); }
/* gauge */
.gx-gauge svg { width: 100%; max-width: 330px; overflow: visible; } .gx-gauge .gt { fill: none; stroke: rgba(29, 29, 27, .12); stroke-width: 14; stroke-linecap: round; } .gx-gauge .gf { fill: none; stroke: #1D1D1B; stroke-width: 14; stroke-linecap: round; }
.gx-gauge .gm line { stroke: #E5484D; stroke-width: 3; stroke-linecap: round; } .gx-gauge .gm text { font: 600 11.5px var(--text); fill: #B23A44; } .gx-gauge .gd { fill: #1F6BFF; stroke: #fff; stroke-width: 3; }
/* people */
.gx-people { gap: 14px; align-content: center; } .gp { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px 10px; width: min(100%, 330px); }
.gp i { --on: 0; aspect-ratio: 1; position: relative; border-radius: 50%; background: color-mix(in oklab, #1F6BFF calc(var(--on) * 100%), #fff); box-shadow: 0 6px 14px rgba(14, 16, 36, .1); display: block; overflow: hidden; }
.gp i::before { content: ""; position: absolute; left: 50%; top: 22%; width: 34%; height: 34%; border-radius: 50%; background: color-mix(in oklab, #fff calc(var(--on) * 100%), #1D1D1B); translate: -50% 0; }
.gp i::after { content: ""; position: absolute; left: 50%; top: 58%; width: 62%; height: 60%; border-radius: 50% 50% 0 0; background: color-mix(in oklab, #fff calc(var(--on) * 100%), #1D1D1B); translate: -50% 0; }
.gl { display: flex; gap: 8px; } .gl span { font: 600 11.5px var(--text); letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .8); }
/* mini cards: prepare, verify, commit */
.gx-card .gc { width: min(100%, 300px); background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 18px 40px rgba(14, 16, 36, .12); display: grid; gap: 10px; color: var(--ink); }
.gc .gh { display: flex; align-items: center; gap: 8px; font-size: 14px; } .gc .gh em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--mute); } .gc .gi { width: 22px; height: 22px; display: grid; place-items: center; background: #E4E1F7; border-radius: 8px; } .gc .gi svg { width: 14px; height: 14px; }
.gc .ln { display: block; height: 9px; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, #E6E6E1, #F4F4EF, #E6E6E1); transform-origin: left; }
.gchip { justify-self: start; font: 600 12px var(--text); padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; }
.gc .rw { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); transition: color .3s; } .gc .rw.on { color: var(--ink); }
.gc .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D0D0C8; display: grid; place-items: center; color: transparent; transition: background-color .3s, border-color .3s, color .3s; flex: none; } .gc .ck svg { width: 12px; height: 12px; } .gc .rw.on .ck { background: #22A55B; border-color: #22A55B; color: #fff; }
.gbtn { justify-self: start; margin-top: 4px; font: 600 12.5px var(--text); padding: 8px 16px; border-radius: 999px; background: #E6E6E1; color: var(--mute); transition: background-color .3s, color .3s; } .gbtn.on { background: var(--blue); color: #fff; }
.gcc { justify-items: center; text-align: center; } .gcc .rg { width: 76px; height: 76px; } .gcc b { font: 650 18px var(--display); letter-spacing: -0.02em; } .undo { width: 100%; height: 6px; border-radius: 6px; background: #EEE; overflow: hidden; } .undo i { display: block; height: 100%; background: var(--blue); transform-origin: left; } .gcc small { color: var(--mute); font-size: 12px; }
/* quotes */
.quotes blockquote { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 20px; min-height: 360px; } .quotes blockquote p { margin: 0; }
.gx-find .fg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: min(100%, 360px); } .fi { aspect-ratio: 1.5; border-radius: 10px; background: rgba(255, 255, 255, .6); position: relative; display: grid; place-items: center; transition: background-color .3s, box-shadow .3s; } .fi.tg em { font: 600 8.5px var(--text); font-style: normal; color: var(--mute); } .fi.tg.on { background: var(--blue); box-shadow: 0 0 0 4px rgba(31, 107, 255, .25); } .fi.tg.on em { color: #fff; }
.lens { position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: rgba(255, 255, 255, .35); box-shadow: 0 8px 20px rgba(14, 16, 36, .18); pointer-events: none; } .lens::after { content: ""; position: absolute; right: -14px; bottom: -8px; width: 20px; height: 4px; background: var(--ink); border-radius: 4px; rotate: 45deg; }
.gx-find { place-items: start center; } .gx-find .fg { position: relative; }
.gx-race { display: grid; gap: 16px; width: min(100%, 340px); } .gx-race .rcr { display: grid; grid-template-columns: 96px 1fr 38px; gap: 10px; align-items: center; font: 600 13px var(--text); } .gx-race .rtk { height: 12px; border-radius: 12px; background: rgba(29, 29, 27, .1); overflow: hidden; } .gx-race .rtk i { display: block; height: 100%; border-radius: 12px; transform-origin: left; } .gx-race .a { background: #22A55B; } .gx-race .b { background: var(--blue); } .gx-race b { font-weight: 500; color: var(--mute); font-size: 12px; }
.gx-rcpt .paper { width: min(100%, 240px); background: #fff; padding: 14px 16px 22px; border-radius: 6px 6px 0 0; box-shadow: 0 16px 36px rgba(14, 16, 36, .14); position: relative; font-size: 13px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 94% 100%, 88% calc(100% - 10px), 82% 100%, 76% calc(100% - 10px), 70% 100%, 64% calc(100% - 10px), 58% 100%, 52% calc(100% - 10px), 46% 100%, 40% calc(100% - 10px), 34% 100%, 28% calc(100% - 10px), 22% 100%, 16% calc(100% - 10px), 10% 100%, 4% calc(100% - 10px), 0 100%); } .paper .ph { font: 700 11px var(--text); letter-spacing: .18em; color: var(--mute); padding-bottom: 8px; border-bottom: 1px dashed #D0D0C8; margin-bottom: 8px; } .paper .pr { display: flex; justify-content: space-between; padding: 4px 0; } .paper .pr span { color: var(--mute); } .paper .pr b { font-weight: 600; }
.stamp { position: absolute; right: 10px; bottom: 16px; font: 800 12px var(--text); letter-spacing: .12em; color: #22A55B; border: 2.5px solid #22A55B; border-radius: 6px; padding: 4px 8px; rotate: -9deg; background: rgba(255, 255, 255, .6); }
/* trust patterns */
.patterns .k .gx { flex: 1; min-height: 150px; }
.gx-chain { gap: 8px; align-content: center; } .gx-chain svg { width: 100%; max-width: 280px; overflow: visible; } .gx-chain .cl { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; opacity: .8; } .gx-chain .cn { fill: #fff; stroke: var(--blue); stroke-width: 4; } .gx-chain .cf { width: min(100%, 240px); height: 7px; border-radius: 7px; background: rgba(29, 29, 27, .12); overflow: hidden; } .gx-chain .cf i { display: block; height: 100%; background: var(--blue); transform-origin: left; } .gx-chain small { font-size: 12px; opacity: .7; }
.gx-ver { display: grid; gap: 12px; width: min(100%, 290px); align-content: center; } .gx-ver .vr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font: 600 12.5px var(--text); } .gx-ver .vr span { background: #fff; padding: 7px 10px; border-radius: 10px; box-shadow: 0 8px 18px rgba(14, 16, 36, .08); } .gx-ver .vr .src { background: #1D1D1B; color: #fff; } .gx-ver i { display: block; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 10px); transform-origin: left; }
.gx-blast { height: 170px; } .gx-blast .rp { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); animation: ripple 3.4s var(--ease) infinite; } .gx-blast .r2 { animation-delay: 1.1s; } .gx-blast .r3 { animation-delay: 2.2s; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
.gx-blast .core { position: relative; z-index: 2; background: #fff; color: var(--ink); font: 700 14px var(--text); padding: 10px 18px; border-radius: 999px; } .gx-blast .sd { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #FFB86B; box-shadow: 0 0 0 5px rgba(255, 184, 107, .25); }
/* outcome tiles */
.gx-ticks { align-content: center; padding-top: 30px; } .gx-ticks .tkr { display: flex; justify-content: space-between; align-items: flex-end; height: 48px; width: 100%; } .gx-ticks .tkr i { width: 3px; height: 55%; border-radius: 3px; background: rgba(29, 29, 27, .16); transition: background-color .2s; } .gx-ticks .tkr i.big { height: 82%; } .gx-ticks .tkr i.on { background: var(--ink); } .gx-ticks .mk { position: absolute; top: calc(50% - 56px); left: 4.2%; translate: -50% 0; } .gx-ticks .mk em { font: 600 12.5px var(--text); font-style: normal; background: var(--blue); color: #fff; padding: 7px 10px; border-radius: 999px; display: block; } .gx-ticks .mk::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 14px; margin-left: -1px; background: var(--blue); } .gx-ticks .tkl { position: absolute; left: 0; right: 0; bottom: 18%; display: flex; justify-content: space-between; font-size: 12px; opacity: .6; font-weight: 500; }
.gx-ring { grid-template-columns: auto; } .gx-ring svg { width: 140px; height: 140px; } .gx-ring b { position: absolute; font: 650 28px var(--display); letter-spacing: -0.03em; }
.gx-dots .dg { display: grid; grid-template-columns: repeat(10, 1fr); gap: 9px; width: 100%; } .gx-dots .dg i { aspect-ratio: 1; border-radius: 50%; background: var(--ink); display: block; }
.gx-badge { height: 160px; } .gx-badge .rp { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px; border-radius: 50%; border: 2px solid rgba(29, 29, 27, .25); animation: ripple 3s var(--ease) infinite; } .gx-badge .r2 { animation-delay: 1.5s; } .gx-badge .bd { position: relative; z-index: 2; width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 18px 40px rgba(14, 16, 36, .18); } .gx-badge img { width: 52px; height: auto; }
.gx-bars .bbx { display: flex; gap: 14px; align-items: flex-end; height: 150px; width: min(100%, 240px); } .gx-bars .bcol { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; } .gx-bars .bcol i { display: block; border-radius: 12px 12px 6px 6px; background: rgba(29, 29, 27, .16); } .gx-bars .bcol.after i { background: var(--ink); } .gx-bars .bcol span { font-size: 12px; font-weight: 600; text-align: center; opacity: .65; }
.gx-fall { align-content: center; gap: 8px; } .gx-fall svg { width: 100%; max-width: 280px; height: 120px; overflow: visible; } .gx-fall .fln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; } .gx-fall .fa { fill: rgba(29, 29, 27, .08); } .gx-fall .fd { fill: var(--blue); } .gx-fall small { font-size: 12px; opacity: .65; font-weight: 600; justify-self: start; }
.cards3 .k .gx { flex: 1; min-height: 170px; }
.gx-race, .gx-ver { justify-items: stretch; }
.tiles4 .stile.gxs b { font-size: clamp(30px, 3vw, 52px); line-height: 1; }

/* ---------- calmer hero + normal-scroll case cards ---------- */
.ccard { position: relative; top: auto; transform-origin: 50% 50%; }
.stack { gap: 36px; }
.blobs i { opacity: .55; }
.blobs .b3 { display: none; }
.hero { padding-top: 168px; }
.hero .lead { margin-top: 24px; max-width: 560px; }
.hero .ctas { margin-top: 32px; }
.hero-tag { font-weight: 500; }
@media (max-width: 700px) { .hero { padding-top: 130px; } }

/* ---------- case card v2: big image on top, details underneath ---------- */
.ccard.v2 { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; padding: 12px; }
.ccard.v2 .media { height: clamp(340px, 44vw, 640px); border-radius: 26px; }
.ccard.v2 .media img { --mh: 100%; max-height: 88%; }
.ccard.v2 .info { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; gap: 24px 48px; align-items: end; padding: clamp(24px, 2.8vw, 44px) clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px); }
.ccard.v2 .il { display: grid; gap: 22px; align-content: start; }
.ccard.v2 .il h3 { margin: 0; }
.ccard.v2 .ir { display: grid; gap: 24px; }
.ccard.v2 .metric { margin-top: 0; }
.ccard.v2 .metric b { font-size: clamp(30px, 3vw, 46px); }
.ccard.v2 .go { align-self: end; }
.ccard.v2:hover .media { rotate: 0deg; }
@media (max-width: 1000px) { .ccard.v2 .info { grid-template-columns: minmax(0, 1fr); gap: 22px; } .ccard.v2 .go { align-self: flex-start; } .ccard.v2 .media { height: clamp(260px, 62vw, 460px); } }

/* ---------- case-study trailers ---------- */
.field.vid { aspect-ratio: 2 / 1; height: auto !important; padding: 0; display: block; background: #032D42; }
.field.vid video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ccard.v2 .media.vid, .scard .media.vid, .next .media.vid { height: auto; }

/* long stat values stay on one line in the narrow tiles */
.tiles2 .stile b { white-space: nowrap; font-size: clamp(26px, 2.7vw, 46px); }

/* case cards fit the viewport: the video takes whatever height is left under the nav and above the details row */
@media (min-width: 1001px) {
  .ccard.v2 .field.vid.media { aspect-ratio: auto !important; height: clamp(240px, calc(100vh - 340px), 640px) !important; }
}
@media (max-width: 1000px) {
  .ccard.v2 .field.vid.media { aspect-ratio: 2 / 1 !important; }
}
.field.vid.cover { aspect-ratio: auto !important; height: clamp(260px, 72vh, 650px) !important; }
@media (max-width: 1000px) { .field.vid.cover { aspect-ratio: 2 / 1 !important; height: auto !important; } }

/* compact details row so the whole card fits one screen */
@media (min-width: 1001px) {
  .ccard.v2 .info { padding: 20px 24px 12px; gap: 14px 40px; }
  .ccard.v2 .il { gap: 12px; }
  .ccard.v2 .il h3 { font-size: clamp(24px, 2.3vw, 38px); line-height: 1.08; }
  .ccard.v2 .ir { gap: 12px; }
  .ccard.v2 .ir .lead { font-size: 15.5px; line-height: 1.4; margin: 0; }
  .ccard.v2 .metric { gap: 18px; }
  .ccard.v2 .metric b { font-size: clamp(24px, 2.2vw, 36px); margin-bottom: 4px; }
  .ccard.v2 .metric span { font-size: 13.5px; }
}

/* ---------- Behance-style project pages ---------- */
.bhx { padding-top: 0; margin-top: 56px; }
.bbar { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; background: #fff; border-radius: 999px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 34px rgba(14,16,36,.06); }
.bbar .av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; }
.bbar .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.bbar .bt { display: grid; min-width: 0; flex: 1; }
.bbar .bt b { font: 650 clamp(16px, 1.5vw, 20px)/1.2 var(--display); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbar .bt span { font-size: 13.5px; color: var(--mute); }
.bcanvas { margin-top: 12px; border-radius: 28px; overflow: hidden; }
.bcanvas .bm { margin: 0 auto; width: min(100%, 1400px); }
.bcanvas .bm img { display: block; width: 100%; height: auto; }
.bcanvas .bv { aspect-ratio: 16 / 9; }
.bcanvas .bv iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .bbar { border-radius: 26px; flex-wrap: wrap; } .bbar .bt b { white-space: normal; } .bbar .pill { margin-left: 56px; } }

/* company logos in the case-study labels */
.clogo { display: inline-block; width: auto; vertical-align: -0.28em; margin-left: 2px; }
.ccard .idx { display: inline-flex; align-items: center; gap: 8px; }
.ccard .idx .clogo, .scard .micro .clogo { vertical-align: middle; }
.scard .micro { display: inline-flex; align-items: center; gap: 8px; }
.crumb .pill .clogo { vertical-align: middle; }


/* ================= floating variations panel ================= */
.vp { position: fixed; left: 18px; bottom: 18px; z-index: 9999; font-family: var(--text); }
.vp-fab { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; border: 0; background: #1D1D1B; color: #fff; font: 500 14px var(--text); cursor: pointer; box-shadow: 0 14px 34px rgba(14, 16, 36, .28); }
.vp.open .vp-fab { display: none; }
.vp-card { display: none; width: 312px; max-height: calc(100vh - 36px); overflow: auto; background: #fff; border-radius: 24px; padding: 14px; box-shadow: 0 24px 70px rgba(14, 16, 36, .24), 0 0 0 1px rgba(14, 16, 36, .06); color: #1D1D1B; }
.vp.open .vp-card { display: block; }
.vp-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; }
.vp-h > div { flex: 1; } .vp-h b { display: block; font: 650 16px/1.2 var(--display); letter-spacing: -0.02em; } .vp-h span { font-size: 12px; color: #6B6B64; }
.vp-rs { border: 0; background: #EEEEE9; border-radius: 999px; padding: 8px 13px; font: 500 12px var(--text); cursor: pointer; color: inherit; }
.vp-min { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #EEEEE9; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }
.vp-g { padding: 11px 4px 6px; border-top: 1px solid #E2E2DC; }
.vp-g label { display: block; font: 500 11px var(--text); letter-spacing: .1em; text-transform: uppercase; color: #6B6B64; }
.vp-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.vp-seg button { border: 0; background: #EEEEE9; border-radius: 999px; padding: 8px 13px; font: 500 12.5px var(--text); cursor: pointer; color: inherit; }
.vp-seg button.on { background: #1D1D1B; color: #fff; }
.vp-seg.vsw button { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; background: transparent; }
.vp-seg.vsw button i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); display: block; }
.vp-seg.vsw button.on { background: transparent; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1D1D1B; border-radius: 50%; }
@media (max-width: 700px) { .vp { left: 10px; bottom: 10px; } .vp-card { width: min(312px, calc(100vw - 20px)); } }

/* ================= hero variants ================= */
.hv-trailer, .hv-marquee { min-height: 0; padding-bottom: 70px; }
.htr { width: min(100%, 1200px); margin-top: 52px; display: grid; gap: 16px; }
.htv { border-radius: 34px; overflow: hidden; aspect-ratio: 2 / 1; background: #0B1A2A; box-shadow: 0 40px 90px rgba(14, 16, 36, .2); }
.htv video { display: block; width: 100%; height: 100%; object-fit: cover; }
.htt { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.htt .pill { border: 0; cursor: pointer; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 22px rgba(14,16,36,.06); font-family: var(--text); }
.htt .pill.on { background: #1D1D1B; color: #fff; }
.htt .clogo { height: 14px !important; } .htt .on .clogo { filter: brightness(0) invert(1); }

.hv-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 56px; text-align: left; align-items: center; align-content: center; justify-items: start; }
.hv-split > :not(.hsp):not(.blobs) { grid-column: 1; }
.hv-split .h1 { font-size: clamp(44px, 5.6vw, 96px); }
.hv-split .lead { margin-left: 0; }
.hv-split .ctas { justify-content: flex-start; }
.hsp { grid-column: 2; grid-row: 1 / span 5; position: relative; width: 100%; height: min(66vh, 600px); }
.hsp .hc { position: absolute; aspect-ratio: 1.55; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(14, 16, 36, .2); background: #111; }
.hsp .hc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hsp .c0 { left: 2%; top: 2%; width: 66%; transform: rotate(-5deg); z-index: 1; }
.hsp .c1 { right: 0; top: 28%; width: 62%; transform: rotate(4deg); z-index: 2; }
.hsp .c2 { left: 14%; bottom: 2%; width: 58%; transform: rotate(-2deg); z-index: 3; }
.hsp .hf { position: absolute; z-index: 4; } .hsp .f1 { left: -2%; top: 46%; } .hsp .f2 { right: 4%; bottom: 8%; }
@media (max-width: 900px) { .hv-split { grid-template-columns: 1fr; text-align: center; justify-items: center; } .hv-split > :not(.hsp):not(.blobs) { grid-column: 1; } .hv-split .ctas { justify-content: center; } .hsp { grid-column: 1; grid-row: auto; height: 340px; margin-top: 30px; } }

.hmq { margin: 56px calc(var(--pad) * -1) 0; width: calc(100% + var(--pad) * 2); display: grid; gap: 18px; overflow: hidden; }
.mrow { overflow: hidden; }
.mtrk { display: flex; gap: 18px; width: max-content; animation: mq 60s linear infinite; }
.mrow.rev .mtrk { animation-direction: reverse; }
.mqc { flex: none; width: clamp(240px, 24vw, 400px); aspect-ratio: 1.55; border-radius: 24px; overflow: hidden; background: #111; }
.mqc img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ================= case-card variants ================= */
.ccard.side { min-height: 0; }
.ccard.side .field.vid.media { aspect-ratio: auto !important; height: clamp(300px, calc(100vh - 250px), 620px) !important; }
@media (max-width: 1000px) { .ccard.side .field.vid.media { aspect-ratio: 2 / 1 !important; height: auto !important; } }

.ccard.ov { display: block; padding: 0; min-height: 0; background: #0B1A2A; overflow: hidden; }
.ccard.ov .field.vid.media { border-radius: 0; aspect-ratio: auto !important; height: clamp(300px, calc(100vh - 190px), 700px) !important; }
.ovi { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 46px); display: grid; gap: 14px; color: #fff; background: linear-gradient(to top, rgba(5, 10, 24, .9), rgba(5, 10, 24, .55) 62%, rgba(5, 10, 24, 0)); }
.ovt { display: flex; gap: 8px; flex-wrap: wrap; }
.ovi h3 { color: #fff; font-size: clamp(28px, 3.4vw, 54px); margin: 0; max-width: 900px; }
.ovb { display: flex; gap: 28px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.ovb p { margin: 0; max-width: 520px; font-size: 15.5px; line-height: 1.45; color: #DFE6F3; }
.ovm { display: flex; gap: 32px; } .ovm b { display: block; font: 650 clamp(24px, 2.4vw, 38px)/1 var(--display); letter-spacing: -0.035em; } .ovm span { font-size: 13px; color: #C9D3E6; display: block; max-width: 160px; }
.ccard.ov .go { background: #fff; color: #1D1D1B; }
@media (max-width: 800px) { .ccard.ov .field.vid.media { aspect-ratio: 4 / 5 !important; height: auto !important; } .ovm { gap: 20px; } }

.stack.sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
.stack.sv-grid .scard { grid-column: auto; }
@media (max-width: 800px) { .stack.sv-grid { grid-template-columns: minmax(0, 1fr); } }

.vp-seg.vsw button i { position: static !important; inset: auto !important; transform: none !important; width: 22px; height: 22px; display: block; flex: none; }
.vp-seg.vsw button { flex: none; position: relative; }

/* ---------- Now: "What I'm into lately" (js/activities.js) ---------- */
.act[hidden] { display: none; }
.act .shead { padding-top: 120px; }
.act-panel { position: relative; overflow-x: clip; overflow-y: visible; isolation: isolate; }
.act-panel:focus-visible, .act-foot button:focus-visible, .act-foot a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.act-bg { display: none; }
.act-bg[data-t="music"] { background: var(--lilac); } .act-bg[data-t="movie"] { background: var(--nightg); } .act-bg[data-t="book"] { background: var(--sand); }
.act-stage { position: relative; width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.act-item { position: absolute; left: 0; top: 0; will-change: transform, width, height; }
.act-item[data-type="book"] { perspective: 1400px; }
.act-item .act-cover { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: 14px; background: var(--soft); box-shadow: 0 44px 70px -30px rgba(29, 29, 27, .5), 0 10px 26px -12px rgba(29, 29, 27, .3), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.act-item .act-cover img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.act-item .act-cover.noart::after { content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center; font: 650 clamp(36px, 7vw, 88px) var(--display); letter-spacing: -.04em; color: var(--mute); }
.act-item .act-cover.noart img { display: none; }
.act-item .sheen { position: absolute; inset: 0; z-index: 2; border-radius: 14px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 34%, transparent 68%, rgba(0, 0, 0, .2)); }
/* music: a record sliding out from behind the sleeve */
.vinyl { position: absolute; z-index: 0; top: 2%; left: 4%; width: 96%; height: 96%; }
.vinyl .disc { position: relative; width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: repeating-radial-gradient(circle at 50% 50%, #0c0c0e 0 1.5px, #1a1a1d 1.5px 3px); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .55), inset 0 0 0 2px #2b2b30; }
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: conic-gradient(from 30deg, transparent 0 8%, rgba(255, 255, 255, .15) 14%, transparent 22% 58%, rgba(255, 255, 255, .1) 64%, transparent 72%); }
.vlabel { position: relative; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #bbb center / cover; box-shadow: 0 0 0 3px #101012; }
.vlabel::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--sheet); }
.act-item.is-active .disc { animation: act-spin 9s linear infinite; }
@keyframes act-spin { to { rotate: 360deg; } }
/* books: spine crease and page block give the cover some depth */
.book { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 20% 50%; }
.book .act-cover { border-radius: 3px 10px 10px 3px; }
.book .spine { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 9%; border-radius: 3px 0 0 3px; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .32) 0, rgba(255, 255, 255, .26) 7%, rgba(0, 0, 0, .1) 14%, transparent 100%); }
.book .pages { position: absolute; z-index: 0; right: -2.4%; top: 1.4%; bottom: 1.4%; width: 3.4%; border-radius: 0 3px 3px 0; background: repeating-linear-gradient(90deg, #f6f3ec 0 1px, #dad5c8 1px 2px); box-shadow: 0 30px 40px -24px rgba(29, 29, 27, .5); }
/* meta + controls */
.act-foot { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: 40px; }
.act-meta { min-height: 200px; }
.act-title { font-size: clamp(30px, 3.2vw, 52px); letter-spacing: -.035em; line-height: 1.04; margin: 20px 0 10px; max-width: 18ch; text-wrap: balance; }
.act-by { margin: 0; font-size: clamp(17px, 1.3vw, 21px); color: var(--mute); }
.act-rate { margin: 12px 0 0; line-height: 1; }
.stars { display: inline-block; font-size: 20px; letter-spacing: 3px; }
.stars::before { content: "★★★★★"; background: linear-gradient(90deg, var(--ink) calc(var(--r) / 5 * 100%), var(--hair) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.act-prog { position: relative; width: min(320px, 100%); padding-bottom: 24px; margin-top: 16px; }
.act-prog::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 9px; background: var(--hair); }
.act-prog i { position: absolute; left: 0; top: 0; height: 6px; border-radius: 9px; background: var(--ink); }
.act-prog span { position: absolute; top: 16px; font: 500 13px/1 var(--text); color: var(--mute); }
.act-note { margin: 18px 0 0; max-width: 52ch; font-size: 17px; line-height: 1.5; }
.act-link { margin-top: 20px; }
.act-ctl { display: flex; align-items: center; gap: 28px; }
.act-dots { display: flex; align-items: center; }
.act-dots button { width: 22px; height: 30px; display: grid; place-items: center; }
.act-dots i { display: block; width: 8px; height: 8px; border-radius: 99px; background: var(--hair); transition: width .45s var(--ease), background-color .3s var(--ease); }
.act-dots button:hover i { background: var(--mute); }
.act-dots button.on i { width: 26px; background: var(--ink); }
.act-nav { display: flex; gap: 8px; }
.act-nav .pill { width: 48px; height: 48px; padding: 0; justify-content: center; }
.act-nav .pill svg { width: 16px; height: 16px; }
.act-nav .pill:disabled { opacity: .35; cursor: default; }
@media (max-width: 700px) {
  .act-panel { border-radius: 22px; }
  .act-foot { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .act-meta { min-height: 0; }
  .act-ctl { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .act-item.is-active .disc { animation: none; } }


/* ================= horizontal career timeline: plotted on the line, no cards ================= */
.jh-pin { height: calc(100vh - 120px); min-height: 560px; }
.jh-view { height: 100%; overflow: hidden; }
.jh-track { position: relative; display: flex; height: 100%; width: max-content; padding: 0 14vw 0 4vw; will-change: transform; }
.jh-axis { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--hair); border-radius: 2px; }
.jh-axis i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--blue); opacity: .85; border-radius: 2px; }
.jh-dot { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--sheet); }
.jh-c { position: relative; flex: none; width: 340px; height: 100%; }
.jh-c.w { width: 480px; } .jh-c.j { width: 760px; } .jh-c.end { width: 460px; }
.jh-mk { position: absolute; left: 0; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; overflow: hidden; background: var(--soft); border: 3px solid var(--sheet); box-shadow: 0 0 0 1px var(--hair); display: grid; place-items: center; z-index: 2; }
.jh-mk img { width: 100%; height: 100%; object-fit: cover; } .jh-mk svg { width: 54%; height: 54%; color: var(--ink); }
.jh-c::before { content: ""; position: absolute; left: 26px; width: 1px; height: 22px; background: var(--hair); }
.jh-c.up::before { bottom: calc(50% + 26px); } .jh-c.dn::before { top: calc(50% + 26px); }
.jh-body { position: absolute; left: 0; width: 520px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
.jh-c.up .jh-body { bottom: calc(50% + 48px); align-items: end; } .jh-c.dn .jh-body { top: calc(50% + 48px); align-items: start; }
.jh-c.w .jh-body { width: 700px; grid-template-columns: 250px minmax(0, 1fr); }
.jh-c.j .jh-body { width: 1000px; grid-template-columns: 300px 340px minmax(0, 1fr); gap: 28px; }
.jh-c.end .jh-body { width: 420px; grid-template-columns: 1fr; }
.jh-text { display: grid; gap: 10px; align-content: end; min-width: 0; }
.jh-c.dn .jh-text { align-content: start; }
.jh-text .jy { font-size: clamp(17px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.02em; gap: 10px; }
.jh-text .jy em { font-size: 11px; padding: 6px 10px; background: transparent; box-shadow: inset 0 0 0 1px var(--hair); color: var(--mute); }
.jh-text h3 { font-size: clamp(24px, 2.1vw, 32px); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
.jh-text .lead { font-size: 14.5px; line-height: 1.5; max-width: 300px; margin: 0; }
.jh-text .jstats { gap: 14px; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 4px; } .jh-text .jstats > div { padding-top: 8px; }
.jh-text .jstats b { font-size: clamp(16px, 1.3vw, 20px); font-weight: 600; } .jh-text .jstats span { font-size: 11.5px; }
.jh-text .jlink { height: 38px; font-size: 13.5px; justify-self: start; }
/* scenes, kept small and soft */
.jh-sc { min-width: 0; align-self: inherit; }
.jh-sc .jpol { width: 140px; box-shadow: 0 8px 22px rgba(14, 16, 36, .1); }
.jh-sc .jk { width: 118px; min-width: 0; box-shadow: 0 8px 22px rgba(14, 16, 36, .1); }
.jh-sc .jkids { flex-wrap: nowrap; gap: 10px; } .jh-sc .jscrib { width: 280px; margin-top: 8px; }
.jh-sc .jh { width: 112px; box-shadow: 0 8px 22px rgba(14, 16, 36, .1); } .jh-sc .jhp { flex-wrap: nowrap; gap: 10px; } .jh-sc .jhp + .chips { display: none; }
.jh-sc .jpc { width: 108px; height: 144px; margin: -72px 0 0 -54px; box-shadow: 0 8px 22px rgba(14, 16, 36, .14); } .jh-sc .jpf { height: 190px; width: 300px; }
.jh-sc .jps-c, .jh-sc .jps-p { box-shadow: 0 6px 18px rgba(14, 16, 36, .07); } .jh-sc .jps { grid-template-columns: 110px 1fr; max-width: 340px; }
.jh-sc .jcg b { font-size: 48px; } .jh-sc .jcg svg { width: 80px; height: 80px; }
.jh-sc .jjoke { font-size: 14px; margin: 10px 0 0; } .jh-sc .jjoke em { font-size: 17px; }
/* job chapters: text, products, lessons in a row */
.jh-prods { display: grid; gap: 10px; align-content: start; } .jh-c.dn .jh-prods, .jh-c.dn .jh-learn { align-self: start; } .jh-c.up .jh-prods, .jh-c.up .jh-learn { align-self: end; }
.jh-prods .jprods { grid-template-columns: 1fr; gap: 12px; }
.jh-prods .jp { display: grid; grid-template-columns: 96px 1fr; gap: 2px 14px; align-items: start; }
.jh-prods .jp .field { grid-row: 1 / 3; aspect-ratio: 4 / 3; padding: 8px; border-radius: 14px; } .jh-prods .jp .field img { border-radius: 6px; box-shadow: none; } .jh-prods .jp .jbig { font-size: 22px; }
.jh-prods .jp h4 { margin: 2px 0 0; font-size: 15.5px; font-weight: 600; } .jh-prods .jp p { font-size: 13px; line-height: 1.4; }
.jh-prods .micro, .jh-learn .micro { font-size: 11px; }
.jh-learn { display: grid; gap: 8px; } .jh-learn li { font-size: 13.5px; padding: 9px 0 9px 20px; color: #4A4A45; } .jh-learn li::before { width: 6px; height: 6px; top: 16px; opacity: .7; }
.jh-c.end .jh-text h3 { color: var(--mute); }
@media (max-width: 800px) {
  .jh-pin { height: calc(100vh - 110px); }
  .jh-c, .jh-c.w, .jh-c.j { width: 86vw; } .jh-c.end { width: 70vw; }
  .jh-c.up .jh-body, .jh-c.dn .jh-body { top: calc(50% + 48px); bottom: auto; align-items: start; max-height: calc(50% - 56px); overflow-y: auto; }
  .jh-c.up::before { top: calc(50% + 26px); bottom: auto; }
  .jh-body, .jh-c.w .jh-body, .jh-c.j .jh-body { width: 80vw; grid-template-columns: 1fr; }
}


/* ================= bookshelf ================= */
.bs-s { padding-bottom: 50px; }
.bs { position: relative; margin-top: 10px; }
.bs-row { display: flex; align-items: flex-end; justify-content: center; gap: 7px; min-height: 450px; padding: 0 10px; }
.bk { position: relative; flex: none; width: var(--w); height: var(--h); border: 0; border-radius: 6px 6px 3px 3px; cursor: pointer; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 16px 0 14px; overflow: hidden;
  box-shadow: inset -3px 0 6px rgba(0, 0, 0, .14), inset 2px 0 0 rgba(255, 255, 255, .18); transition: transform .45s var(--ease), box-shadow .45s var(--ease); font-family: var(--text); transform: translateY(calc(var(--ry, 0px) + var(--lift, 0px))); }
.bk.line { box-shadow: inset 0 0 0 1.5px var(--hair), inset -3px 0 6px rgba(0, 0, 0, .05); }
.bk:hover, .bk:focus-visible { --lift: -18px; outline: none; box-shadow: inset -3px 0 6px rgba(0, 0, 0, .14), inset 2px 0 0 rgba(255, 255, 255, .18), 0 26px 24px -16px rgba(14, 16, 36, .4); }
.bk.line:hover { box-shadow: inset 0 0 0 1.5px var(--hair), 0 26px 24px -16px rgba(14, 16, 36, .3); }
.bk.lean { transform-origin: 0 100%; transform: rotate(6deg) translateY(calc(var(--ry, 0px) + var(--lift, 0px))); margin: 0 38px 0 4px; } .bk.lean:hover { --lift: -14px; }
.sp-n { font: 500 12px/1 var(--text); opacity: .7; }
.sp-t { writing-mode: vertical-rl; font-family: var(--display); font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; align-self: center; line-height: 1; }
.sp-a { width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .45; display: block; }
.bs-plank { height: 16px; border-radius: 0 0 16px 16px; background: linear-gradient(#EDEAE3, #DFDBD1); box-shadow: 0 22px 30px -16px rgba(14, 16, 36, .28); position: relative; }
@media (max-width: 900px) { .bs-row { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .bs-row::-webkit-scrollbar { display: none; } }

/* the book on its way to the middle of the screen */
.bs-ov { position: fixed; inset: 0; z-index: 10000; background: rgba(250, 250, 248, .92); }
.bs-pv { position: absolute; inset: 0; perspective: 1800px; perspective-origin: 50% 40%; }
.bf { position: absolute; transform-style: preserve-3d; will-change: transform; }
.bf-3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.fc { position: absolute; backface-visibility: hidden; overflow: hidden; }
.fc-spine { inset: 0; transform: translateZ(calc(var(--d) / 2)); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 16px 0 14px; border-radius: 6px 6px 3px 3px; box-shadow: inset -3px 0 6px rgba(0, 0, 0, .14); }
.fc-back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); filter: brightness(.9); }
.fc-cover { left: calc((var(--t) - var(--d)) / 2); top: 0; width: var(--d); height: var(--h); transform: rotateY(90deg) translateZ(calc(var(--t) / 2)); border-radius: 4px 10px 10px 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.fc-pages { left: calc((var(--t) - var(--d)) / 2); top: 0; width: var(--d); height: var(--h); transform: rotateY(-90deg) translateZ(calc(var(--t) / 2)); background: repeating-linear-gradient(0deg, #FBFAF6 0 2px, #E9E6DD 2px 3px); }
.fc-top { left: 0; top: calc((var(--h) - var(--d)) / 2); width: var(--t); height: var(--d); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); filter: brightness(.94); }
.fc-bot { left: 0; top: calc((var(--h) - var(--d)) / 2); width: var(--t); height: var(--d); transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); filter: brightness(.8); }
.bf-hinge { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--d) * .07); background: linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0)); }
.bf-ct { position: absolute; left: calc(var(--d) * .1); right: calc(var(--d) * .1); top: calc(var(--h) * .07); display: grid; gap: calc(var(--d) * .03); justify-items: start; }
.bf-idx { font-size: calc(var(--d) * .04); opacity: .7; font-family: var(--text); font-weight: 500; }
.bf-ct b { font-family: var(--display); font-weight: 650; font-size: calc(var(--d) * .1); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.bf-ct em { font-style: normal; font-size: calc(var(--d) * .04); opacity: .75; font-family: var(--text); }
.bf-img { position: absolute; left: calc(var(--d) * .1); right: calc(var(--d) * .1); bottom: calc(var(--h) * .07); height: calc(var(--h) * .36); border-radius: calc(var(--d) * .04); overflow: hidden; background: rgba(255, 255, 255, .16); }
.bf-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-logo { position: absolute; right: calc(var(--d) * .08); top: calc(var(--h) * .045); height: calc(var(--h) * .07); width: auto; background: #fff; padding: calc(var(--h) * .018) calc(var(--d) * .04); border-radius: 999px; box-sizing: border-box; }
.bs-info { position: absolute; left: 50%; transform: translateX(-50%); width: min(620px, 88vw); text-align: center; display: grid; justify-items: center; gap: 12px; }
.bs-info h3 { margin: 0; font-size: clamp(24px, 2.4vw, 36px); }
.bs-info p { margin: 0; color: var(--mute); font-size: 16px; line-height: 1.5; max-width: 520px; }
.bs-act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.bs-x { position: absolute; right: 24px; top: 24px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 30px rgba(14, 16, 36, .12); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
@media (max-width: 700px) { .bs-info p { font-size: 14.5px; } .bs-x { right: 14px; top: 14px; } }


/* ================= bookshelf: real-book details ================= */
/* spines: cloth grain, a rounded-back highlight, foil bands and a publisher mark */
.bk::before, .fc-spine::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, 0) 22%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .2) 100%), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); background-size: auto, 140px; mix-blend-mode: multiply; opacity: .55; }
.bk::after, .fc-spine::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .3;
  background: linear-gradient(currentColor, currentColor) 12% 30px / 76% 1px no-repeat, linear-gradient(currentColor, currentColor) 12% 35px / 76% 1px no-repeat,
              linear-gradient(currentColor, currentColor) 12% calc(100% - 50px) / 76% 1px no-repeat, linear-gradient(currentColor, currentColor) 12% calc(100% - 45px) / 76% 1px no-repeat; }
.fc-spine { overflow: hidden; }
.sp-n, .sp-t, .sp-a { position: relative; z-index: 3; }
.sp-ban { position: absolute; left: 0; right: 0; top: 46px; height: 7px; z-index: 2; opacity: .95; }
.sp-ban::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: inherit; opacity: .7; }
.sp-a { width: var(--s, 16px); height: var(--s, 16px); background: none; border-radius: 0; opacity: .9; display: block; }
.sp-t { text-shadow: 0 1px 0 rgba(255, 255, 255, .08); }

/* the open book: boards, page block, a printed cover */
.fc-cover { border-radius: 3px 10px 10px 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.fc-back { left: calc((var(--t) - var(--d)) / 2); top: 0; width: var(--d); height: var(--h); transform: rotateY(-90deg) translateZ(calc(var(--t) / 2)); border-radius: 3px 10px 10px 3px; filter: brightness(.88); }
.fc-fore { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.fc-fore, .fc-top, .fc-bot { background: linear-gradient(90deg, var(--bg) 0 7%, transparent 7% 93%, var(--bg) 93% 100%), repeating-linear-gradient(90deg, #FBFAF6 0 2px, #E4E0D5 2px 3px); }
.fc-bot { filter: brightness(.82); } .fc-top { filter: brightness(.97); }
.bf-head { position: absolute; left: calc(var(--d) * .1); right: calc(var(--d) * .09); top: calc(var(--h) * .055); display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.bf-idx { font-size: calc(var(--d) * .04); opacity: .7; font-family: var(--text); font-weight: 500; }
.bf-logo { position: static; display: block; height: calc(var(--h) * .056); width: auto; background: #fff; padding: calc(var(--h) * .015) calc(var(--d) * .035); border-radius: 999px; box-sizing: border-box; }
.bf-mark { background: transparent; padding: 0; width: calc(var(--h) * .05); height: calc(var(--h) * .05); display: grid; place-items: center; color: currentColor; --s: calc(var(--h) * .05); }
.bf-title { position: absolute; left: calc(var(--d) * .1); right: calc(var(--d) * .1); top: calc(var(--h) * .135); z-index: 3; font-family: var(--display); font-weight: 650; font-size: calc(var(--d) * .088); line-height: 1.06; letter-spacing: -0.035em;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.bf-rule { position: absolute; left: calc(var(--d) * .1); top: calc(var(--h) * .43); width: calc(var(--d) * .16); height: calc(var(--d) * .012); border-radius: 2px; z-index: 3; }
.bf-tag { position: absolute; left: calc(var(--d) * .1); top: calc(var(--h) * .448); font-style: normal; font-size: calc(var(--d) * .04); opacity: .8; font-family: var(--text); z-index: 3; }
.bf-art { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--h) * .44); overflow: hidden; z-index: 1; }
.bf-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-hinge { position: absolute; left: calc(var(--d) * .05); top: 0; bottom: 0; width: calc(var(--d) * .024); z-index: 4; background: linear-gradient(90deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0) 40%, rgba(255, 255, 255, .3) 70%, rgba(255, 255, 255, 0)); }
.bf-grain { position: absolute; inset: 0; z-index: 5; pointer-events: none; mix-blend-mode: multiply; opacity: .4; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); background-size: 140px; }
.bf-sheen { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, .24) 46%, rgba(255, 255, 255, 0) 62%); }
.bs-sh { position: absolute; height: 36px; background: radial-gradient(ellipse at center, rgba(14, 16, 36, .3), rgba(14, 16, 36, 0) 68%); pointer-events: none; }


/* ================= bookshelf: flat matte spines, packed tight ================= */
.bs-row { gap: 0; padding: 0 4px; min-height: 440px; }
.bk, .fc-spine { padding: 18px 0 16px; border-radius: 2px 2px 0 0; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; }
.bk { box-shadow: inset -1px 0 0 rgba(0, 0, 0, .22), inset 1px 0 0 rgba(255, 255, 255, .1); }
.bk.line { box-shadow: inset -1px 0 0 rgba(0, 0, 0, .16), inset 1px 0 0 rgba(0, 0, 0, .08); }
.bk:hover, .bk:focus-visible { box-shadow: inset -1px 0 0 rgba(0, 0, 0, .22), inset 1px 0 0 rgba(255, 255, 255, .1), 0 24px 22px -14px rgba(14, 16, 36, .42); }
.bk.line:hover { box-shadow: inset -1px 0 0 rgba(0, 0, 0, .16), inset 1px 0 0 rgba(0, 0, 0, .08), 0 24px 22px -14px rgba(14, 16, 36, .32); }
.bk::before, .fc-spine::before { background: linear-gradient(90deg, rgba(255, 255, 255, .1) 0, rgba(255, 255, 255, 0) 16%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, .1) 100%); mix-blend-mode: normal; opacity: 1; }
.bk::after, .fc-spine::after { display: none; }
.sp-meta { writing-mode: vertical-rl; font: 700 10.5px/1 'Space Mono', ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; opacity: .78; white-space: nowrap; position: relative; z-index: 3; }
.sp-body { display: flex; gap: 7px; align-items: center; justify-content: center; min-height: 0; position: relative; z-index: 3; }
.sp-t { writing-mode: vertical-rl; white-space: nowrap; line-height: 1; text-shadow: none; }
.sp-s { writing-mode: vertical-rl; font: 700 9.5px/1 'Space Mono', ui-monospace, monospace; font-style: normal; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; opacity: .9; }
.sp-pub { display: grid; justify-items: center; gap: 6px; position: relative; z-index: 3; }
.sp-pub b { font: 800 11px/1 var(--display); letter-spacing: .06em; }
.sp-pub .ast { color: currentColor; }

.bs-lab { display: block; margin: 26px 0 -6px; font: 500 12px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.bs + .bs-lab { margin-top: 54px; }
.bf-art svg { display: block; width: 100%; height: 100%; }


/* real covers fill the front of the opened book */
.bf-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-cover { overflow: hidden; }


/* ================= built in code: the two tools ================= */
.built { padding-bottom: 20px; }
.bt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bt { border-radius: 36px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.bt-ink { background: var(--inkg); color: #fff; } .bt-lilac { background: var(--lilac); }
.bt-viz { border-radius: 26px; min-height: 340px; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
.bt-ink .bt-viz { background: rgba(255, 255, 255, .06); } .bt-lilac .bt-viz { background: rgba(255, 255, 255, .55); }
.bt-txt { padding: 18px 22px 24px; display: grid; gap: 12px; align-content: start; }
.bt-txt h3 { margin: 4px 0 0; font-size: clamp(26px, 2.6vw, 38px); } .bt-txt p { margin: 0; font-size: 16px; line-height: 1.55; max-width: 520px; }
.bt-ink .bt-txt p { color: #CFCFC8; } .bt-lilac .bt-txt p { color: #4B4B46; }
.bt-txt .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; } .bt-txt .pill { align-self: flex-start; width: fit-content; }
@media (max-width: 900px) { .bt-grid { grid-template-columns: minmax(0, 1fr); } .bt-viz { min-height: 280px; } }

.gx-agent { min-height: 300px; } .gx-agent svg { width: min(100%, 440px); height: auto; display: block; overflow: visible; }
.gx-agent .aw { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .2); stroke-width: 1.2; } .gx-agent .ad { fill: rgba(255, 255, 255, .35); }
.gx-agent .af { fill: rgba(255, 255, 255, .2); } .gx-agent .ac { fill: rgba(255, 255, 255, .1); } .gx-agent .ab { fill: #1F6BFF; }
.gx-agent .pth { fill: none; stroke: #7FB0FF; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 6; }
.gx-agent .pdot { fill: #fff; stroke: #1F6BFF; stroke-width: 3; }
.gx-agent .ar { fill: rgba(255, 99, 71, .22); } .gx-agent .ap { fill: #FF6347; }
.gx-agent .rk { fill: rgba(255, 255, 255, .16); } .gx-agent .rt { fill: #fff; font: 700 9px var(--text); }
.gx-agent .rb { fill: rgba(127, 176, 255, .55); } .gx-agent .rb.hi { fill: #FF6347; }

.gx-brain { min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: nowrap; width: 100%; }
.bn-graph { width: 150px; flex: none; overflow: visible; }
.bn-lines path { fill: none; stroke: #6D4DFF; stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.bn { fill: #fff; stroke: #6D4DFF; stroke-width: 2.5; } .bn.n2 { stroke: #1F6BFF; } .bn.n3 { stroke: #0E9A58; } .bn.n4 { stroke: #FF7A2F; }
.bp { fill: #6D4DFF; }
.bh { fill: #1D1D1B; } .bh-ring { fill: none; stroke: #6D4DFF; stroke-width: 2; opacity: .5; } .bh-star { fill: #fff; }
.bn-chat { flex: 1; min-width: 0; max-width: 330px; background: rgba(255, 255, 255, .85); border-radius: 22px; padding: 14px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 50px rgba(61, 40, 160, .16); display: grid; gap: 4px; align-content: start; }
.bn-h { display: flex; align-items: center; gap: 8px; padding: 2px 2px 10px; }
.bn-av { width: 26px; height: 26px; border-radius: 50%; background: #1D1D1B; display: grid; place-items: center; } .bn-av svg { width: 14px; height: 14px; fill: #fff; }
.bn-h b { font: 650 14px var(--display); letter-spacing: -0.02em; } .bn-h em { font: 600 11px var(--text); font-style: normal; background: #E4E1F7; color: #3B2F8F; border-radius: 999px; padding: 4px 9px; }
.bn-q { align-self: end; justify-self: end; background: #1D1D1B; color: #fff; font: 500 13px/1.3 var(--text); padding: 9px 13px; border-radius: 16px 16px 4px 16px; max-width: 86%; }
.bn-think { display: flex; align-items: center; gap: 4px; overflow: hidden; color: #6B6B64; font: 500 12px var(--text); } .bn-think i { width: 6px; height: 6px; border-radius: 50%; background: #6D4DFF; display: block; } .bn-think span { margin-left: 6px; }
.bn-a { background: #F4F1FB; border-radius: 16px 16px 16px 4px; padding: 12px 13px; display: grid; gap: 7px; margin-top: 8px; }
.bn-a .ln { height: 7px; border-radius: 4px; background: #CFC8EA; display: block; } .bn-a .l1 { width: 92%; } .bn-a .l2 { width: 78%; } .bn-a .l3 { width: 54%; }
.bn-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } .bn-src span { font: 600 11px var(--text); padding: 5px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #D8D2F0; color: #3B2F8F; }
.bn-in { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 10px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #E2E2DC; font: 500 12.5px var(--text); color: #8A8A82; } .bn-in i { width: 7px; height: 7px; border-radius: 50%; background: #1F6BFF; box-shadow: 0 0 0 4px rgba(31, 107, 255, .18); }
@media (max-width: 520px) { .bn-graph { display: none; } }

/* ================= about · small playful corners ================= */
.corners { padding-bottom: 40px; }
.cn-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.cn { position: relative; border-radius: 32px; padding: 22px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; min-height: 300px; }
.cn-music { grid-column: span 7; background: var(--inkg); color: #fff; }
.cn-read { grid-column: span 5; background: var(--sand); }
.cn-ask { grid-column: span 5; background: var(--lilac); }
.cn-clock { grid-column: span 3; background: var(--sky); }
.cn-toy { grid-column: span 4; background: var(--sage); }
.cn-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 2; }
.cn-tag { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 999px; background: #fff; color: var(--ink); font: 600 12.5px/1 var(--text); letter-spacing: .01em; }
.cn-tag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.cn-music .cn-tag { background: rgba(255, 255, 255, .1); color: #fff; }
.cn button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
.cn .cn-bar { height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.cn .cn-bar i { display: block; height: 100%; background: currentColor; transform-origin: left; transform: scaleX(0); border-radius: 3px; }

/* now playing */
.cn-eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; } .cn-eq i { width: 4px; height: 100%; border-radius: 2px; background: #63DF4E; display: block; }
.cn-mu { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.cn-deck { position: relative; width: 168px; height: 168px; }
.cn-vinyl { width: 100%; height: 100%; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, #111 0 2px, #1c1c1f 2px 4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06); display: grid; place-items: center; cursor: pointer; position: relative; }
.cn-vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, .09) 25%, transparent 32% 70%, rgba(255, 255, 255, .06) 75%, transparent 80%); }
.cn-lbl { width: 36%; height: 36%; border-radius: 50%; display: block; position: relative; } .cn-lbl::after { content: ""; position: absolute; inset: 44%; border-radius: 50%; background: #111; }
.cn-arm { position: absolute; right: -14px; top: -6px; width: 10px; height: 92px; border-radius: 6px; background: linear-gradient(#d9d9d3, #9a9a94); transform-origin: 50% 8px; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.cn-arm::after { content: ""; position: absolute; left: -4px; bottom: -6px; width: 18px; height: 16px; border-radius: 4px; background: #e9e9e4; }
.cn-mu-r { display: grid; gap: 10px; min-width: 0; }
.cn-now b { display: block; font: 650 clamp(22px, 2vw, 30px)/1.1 var(--display); letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-now span { color: var(--muteD); font-size: 15px; }
.cn-music .cn-bar { background: rgba(255, 255, 255, .14); } .cn-music .cn-bar i { background: #fff; }
.cn-time { display: flex; justify-content: space-between; font: 500 12px var(--text); color: var(--muteD); font-variant-numeric: tabular-nums; }
.cn-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cn-ctl button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); transition: background-color .2s, scale .15s; }
.cn-ctl button:hover { background: rgba(255, 255, 255, .2); } .cn-ctl button:active { scale: .92; }
.cn-ctl .cn-play { width: 52px; height: 52px; background: #fff; color: var(--ink); } .cn-ctl .cn-play:hover { background: #fff; scale: 1.05; }
.cn-ctl svg { width: 18px; height: 18px; fill: currentColor; } .cn-ctl .cn-play svg { width: 22px; height: 22px; }
.cn-out { margin-left: auto; font: 500 13px var(--text); color: var(--muteD); } .cn-out:hover { color: #fff; }
.cn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cn-list button { width: 100%; display: grid; grid-template-columns: 28px 1fr auto auto; gap: 12px; align-items: center; text-align: left; padding: 9px 12px; border-radius: 14px; font-size: 14px; transition: background-color .2s; }
.cn-list button:hover { background: rgba(255, 255, 255, .06); } .cn-list button.on { background: rgba(255, 255, 255, .1); }
.cn-list .n { color: var(--muteD); font: 500 12px var(--text); } .cn-list button.on .n { color: #63DF4E; }
.cn-list .a, .cn-list .d { color: var(--muteD); font-size: 13px; } .cn-list .d { font-variant-numeric: tabular-nums; }

/* currently reading */
.cn-read { flex-direction: column; }
.cn-cnt { font: 500 13px var(--text); color: var(--mute); }
.cn-stack { position: relative; height: 230px; margin: 4px 0 0 8px; }
.cn-bk { position: absolute; left: 0; top: 0; width: 152px; height: 228px; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 20px 34px rgba(60, 40, 20, .25); transform-origin: 30% 100%; }
.cn-bk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-bk::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .15), transparent); z-index: 1; }
.cn-mark { position: absolute; top: -4px; right: 18px; width: 16px; height: 46px; background: #E8432A; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); z-index: 2; }
.cn-rinfo { display: grid; gap: 4px; margin-top: auto; }
.cn-rt { font: 650 24px/1.1 var(--display); letter-spacing: -0.03em; } .cn-rb { color: var(--mute); font-size: 15px; }
.cn-pg { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 10px 0 6px; } .cn-pgt { font: 500 12.5px var(--text); color: var(--mute); font-variant-numeric: tabular-nums; }
.cn-read .cn-bar i { background: #E8432A; }
.cn-rbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cn .cn-rbtns .pill { height: 38px; padding: 0 16px; }
.cn .cn-rbtns .pill.solid { background: var(--ink); color: #fff; } .cn .cn-rbtns .pill.white { background: #fff; }
@media (min-width: 1100px) { .cn-read { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr; } .cn-read .cn-top { grid-column: 1 / -1; } .cn-rinfo { align-self: end; } }

/* ask me */
.cn-on { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px var(--text); color: var(--mute); } .cn-on i { width: 7px; height: 7px; border-radius: 50%; background: #0E9A58; box-shadow: 0 0 0 3px rgba(14, 154, 88, .18); }
.cn-chat { flex: 1; min-height: 150px; max-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; scrollbar-width: none; }
.cn-msg { max-width: 85%; padding: 10px 14px; font-size: 14.5px; line-height: 1.45; border-radius: 18px 18px 18px 5px; background: #fff; align-self: flex-start; box-shadow: 0 6px 18px rgba(61, 40, 160, .08); }
.cn-msg.you { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 18px 18px 5px 18px; }
.cn-msg a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cn-msg.typing { display: flex; gap: 4px; padding: 13px 15px; } .cn-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #6D4DFF; display: block; }
.cn-qs { display: flex; flex-wrap: wrap; gap: 8px; }
.cn .cn-q { padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(109, 77, 255, .22); font-size: 13.5px; color: #3B2F8F; transition: background-color .2s, scale .15s; }
.cn .cn-q:hover { background: #fff; } .cn .cn-q:active { scale: .96; } .cn .cn-q.used { opacity: .55; }

/* my time */
.cn-clock { color: var(--ink); justify-content: space-between; transition: color .6s; }
.cn-sky { position: absolute; inset: 0; transition: background .8s; }
.cn-clock[data-mode="night"] .cn-sky { background: linear-gradient(160deg, #14183A, #2B2160); } .cn-clock[data-mode="dusk"] .cn-sky { background: linear-gradient(160deg, #3B2F8F, #E8836A); } .cn-clock[data-mode="dawn"] .cn-sky { background: linear-gradient(160deg, #FFE3C2, #F4C6D8); }
.cn-clock[data-mode="night"], .cn-clock[data-mode="dusk"] { color: #fff; }
.cn-orb { position: absolute; right: 26px; top: 70px; width: 62px; height: 62px; border-radius: 50%; background: #FFC93C; box-shadow: 0 0 0 12px rgba(255, 201, 60, .2), 0 0 0 26px rgba(255, 201, 60, .1); animation: cn-bob 5s ease-in-out infinite; }
.cn-clock[data-mode="night"] .cn-orb { background: #F2EFE9; box-shadow: inset -14px -6px 0 0 #C9C4DA, 0 0 30px rgba(255, 255, 255, .25); }
.cn-st { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .6s; } .cn-st.s1 { left: 30%; top: 30%; } .cn-st.s2 { left: 56%; top: 18%; } .cn-st.s3 { left: 20%; top: 52%; }
.cn-clock[data-mode="night"] .cn-st { opacity: .8; animation: cn-tw 2.4s ease-in-out infinite; } .cn-st.s2 { animation-delay: .8s; } .cn-st.s3 { animation-delay: 1.5s; }
@keyframes cn-bob { 50% { transform: translateY(-8px); } } @keyframes cn-tw { 50% { opacity: .2; } }
.cn-clk { position: relative; z-index: 2; display: grid; gap: 6px; }
.cn-hm { font: 700 clamp(44px, 4.4vw, 64px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cn-doing { font-size: 15px; opacity: .8; }

/* fidget */
.cn-boops { font: 600 13px var(--text); color: #2F5D45; display: inline-block; font-variant-numeric: tabular-nums; }
.cn-pit { flex: 1; display: grid; place-items: center; min-height: 170px; }
.cn .cn-ast { width: 104px; height: 104px; border-radius: 50%; background: var(--ink); position: relative; touch-action: none; cursor: grab; box-shadow: 0 18px 34px rgba(23, 48, 31, .28); }
.cn .cn-ast:active { cursor: grabbing; }
.cn-ast i { position: absolute; left: 50%; top: 50%; width: 12px; height: 56px; margin: -28px 0 0 -6px; border-radius: 6px; background: #fff; }
.cn-ast i:nth-child(2) { transform: rotate(60deg); } .cn-ast i:nth-child(3) { transform: rotate(-60deg); }
.cn-hint { margin: 0; font-size: 14px; color: #3E5E48; text-align: center; }

@media (max-width: 1100px) { .cn-music, .cn-read, .cn-ask { grid-column: span 12; } .cn-clock, .cn-toy { grid-column: span 6; } }
@media (max-width: 640px) {
  .cn-grid { gap: 14px; } .cn-clock, .cn-toy { grid-column: span 12; }
  .cn { border-radius: 26px; padding: 18px; }
  .cn-mu { grid-template-columns: 1fr; justify-items: center; text-align: center; } .cn-mu-r { width: 100%; } .cn-ctl { justify-content: center; } .cn-out { margin: 4px 0 0; width: 100%; }
  .cn-list .a { display: none; } .cn-list button { grid-template-columns: 28px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) { .cn-orb, .cn-st { animation: none !important; } }

/* ---- variations panel: section switches ---- */
.vp-off { display: none !important; }
.vp-secs { border-top: 0; padding-top: 2px; }
.vp-secs > label { display: flex; align-items: center; justify-content: space-between; }
.vp-all { border: 0; background: none; padding: 0; font: 500 12px var(--text); letter-spacing: 0; text-transform: none; color: #1F6BFF; cursor: pointer; }
.vp-list { display: grid; gap: 2px; margin-top: 8px; max-height: 260px; overflow-y: auto; }
.vp-g .vp-sw { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; font: 500 13px/1.25 var(--text); letter-spacing: -0.005em; text-transform: none; color: #9A9A92; cursor: pointer; }
.vp-g .vp-sw:hover { background: #F4F4F0; } .vp-g .vp-sw.on { color: #1D1D1B; }
.vp-sw input { position: absolute; opacity: 0; pointer-events: none; }
.vp-tg { flex: none; width: 30px; height: 18px; border-radius: 999px; background: #D9D9D2; position: relative; transition: background-color .2s; }
.vp-tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.vp-sw.on .vp-tg { background: #1D1D1B; } .vp-sw.on .vp-tg::after { transform: translateX(12px); }
.vp-sw input:focus-visible + .vp-tg { outline: 2px solid #1F6BFF; outline-offset: 2px; }
.vp-sl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-none { font-size: 12.5px; color: #9A9A92; }

/* ================= about · the 3D desk ================= */
.dk-stage { position: relative; border-radius: 36px; overflow: hidden; aspect-ratio: 16 / 9.4; min-height: 440px; background: radial-gradient(120% 90% at 30% 20%, #FFF6EC 0%, #F5E4F0 55%, #E4E1F7 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); transition: background .6s; }
.dk-stage.dim { background: radial-gradient(120% 90% at 30% 20%, #3A3466 0%, #241F45 60%, #17142E 100%); }
.dk-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity .8s; }
.dk-stage.ready .dk-cv { opacity: 1; }
.dk-load { position: absolute; inset: 0; display: grid; place-items: center; font: 500 15px var(--text); color: var(--mute); transition: opacity .5s; pointer-events: none; }
.dk-stage.ready .dk-load { opacity: 0; }
.dk-help { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); font: 500 12.5px var(--text); color: #4B4B46; white-space: nowrap; pointer-events: none; }
.dk-stage.dim .dk-help { background: rgba(255, 255, 255, .14); color: #E9E6F7; }
.dk-tip { position: absolute; left: 0; top: 0; pointer-events: none; padding: 9px 13px; border-radius: 14px; background: #1D1D1B; color: #fff; display: grid; gap: 2px; opacity: 0; scale: .9; transition: opacity .15s, scale .15s; box-shadow: 0 12px 30px rgba(14, 16, 36, .25); }
.dk-tip.on { opacity: 1; scale: 1; } .dk-tip b { font: 650 14px var(--display); letter-spacing: -0.01em; } .dk-tip span { font: 500 12px var(--text); color: var(--muteD); }
.dk-keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.dk-keys .pill { border: 0; cursor: pointer; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); font-family: var(--text); }
.dk-keys .pill:hover { background: var(--ink); color: #fff; }

.dk-modal { position: fixed; inset: 0; z-index: 9990; display: grid; place-items: center; padding: 20px; }
.dk-modal[hidden] { display: none; }
.dk-scrim { position: absolute; inset: 0; background: rgba(20, 18, 34, .42); backdrop-filter: blur(6px); }
.dk-box { position: relative; width: min(600px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 34px; scrollbar-width: none; }
.dk-x { position: absolute; right: 14px; top: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); font: 400 24px/1 var(--text); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.dk-slot .cn { grid-column: auto; min-height: 0; padding: 24px; }
.dk-slot .cn .cn-top { padding-right: 46px; }
.dk-slot .cn-read { display: flex; } .dk-slot .cn-stack { height: 250px; margin-left: 30px; }
.dk-slot .cn-clock { min-height: 320px; } .dk-slot .cn-toy { min-height: 340px; }

/* the record crate */
.cn-crate-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 4px; } .cn-crate-h span { font: 600 13px var(--text); } .cn-crate-h em { font: 500 12.5px var(--text); font-style: normal; color: var(--muteD); }
.cn-crate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cn .cn-sleeve { display: grid; gap: 4px; text-align: left; min-width: 0; }
.cn-art { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--c); display: grid; place-items: center; overflow: hidden; box-shadow: 0 10px 20px rgba(0, 0, 0, .3); transition: box-shadow .2s; }
.cn-art b { position: relative; z-index: 1; font: 800 clamp(16px, 2vw, 24px) var(--display); letter-spacing: -0.04em; color: #1D1D1B; }
.cn-disc { position: absolute; inset: 12%; border-radius: 50%; background: repeating-radial-gradient(circle, #141416 0 2px, #222226 2px 4px); transform: translateX(62%); transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.cn-disc::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: var(--c); }
.cn-sleeve:hover .cn-disc { transform: translateX(78%); }
.cn-sleeve.on .cn-art { box-shadow: 0 0 0 3px #63DF4E, 0 10px 20px rgba(0, 0, 0, .3); }
.cn-sleeve .t { font: 600 13px var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cn-sleeve .a { font: 500 11.5px var(--text); color: var(--muteD); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* pinboard notes */
.cn-notes { background: #E9CFAE; }
.cn-stick { position: relative; height: 270px; margin: 6px 0 0 6px; }
.cn .cn-note { position: absolute; left: 0; top: 10px; width: min(300px, calc(100% - 30px)); aspect-ratio: 1; padding: 34px 26px 20px; text-align: left; background: var(--c); border-radius: 4px; font: 600 clamp(18px, 2vw, 22px)/1.3 var(--display); letter-spacing: -0.02em; color: #2A2A24; box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 16px 30px rgba(80, 50, 20, .22); }
.cn-pin { position: absolute; left: 50%; top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #E8432A; box-shadow: 0 3px 4px rgba(0, 0, 0, .3); }
.cn-notes .cn-hint { color: #6B5238; text-align: left; }

/* trophies */
.cn-awards { background: var(--sand); }
.cn-trophies { display: grid; gap: 10px; }
.cn-tro { display: grid; grid-template-columns: 74px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 8px 20px rgba(80, 50, 20, .06); }
.cn-tro img { grid-row: span 2; width: 74px; height: 50px; object-fit: contain; }
.cn-tro b { font: 650 18px var(--display); letter-spacing: -0.02em; } .cn-tro span { font-size: 14px; color: var(--mute); }

@media (max-width: 760px) {
  .dk-stage { aspect-ratio: 1 / 1.02; min-height: 0; border-radius: 28px; }
  .dk-help { font-size: 11.5px; bottom: 12px; }
  .dk-modal { padding: 10px; align-items: end; } .dk-box { border-radius: 28px; max-height: calc(100vh - 20px); }
  .cn-crate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* realistic desk: a warm, dark stage */
.dk-stage { background: #2A1206; box-shadow: 0 30px 70px rgba(60, 25, 5, .25); }
.dk-stage.dim { background: #120804; }
.dk-load { color: #E9C29A; }
.dk-help { background: rgba(30, 14, 4, .55); color: #F6DCC0; }

/* isometric desk keeps its original light, pastel stage */
.dk-stage.iso { background: radial-gradient(120% 90% at 30% 20%, #FFF6EC 0%, #F5E4F0 55%, #E4E1F7 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.dk-stage.iso.dim { background: radial-gradient(120% 90% at 30% 20%, #3A3466 0%, #241F45 60%, #17142E 100%); }
.dk-stage.iso .dk-load { color: var(--mute); }
.dk-stage.iso .dk-help { background: rgba(255, 255, 255, .78); color: #4B4B46; }
.dk-stage.iso.dim .dk-help { background: rgba(255, 255, 255, .14); color: #E9E6F7; }

/* daylight desk */
.dk-stage.day { background: #E9E6E0; box-shadow: 0 30px 70px rgba(40, 36, 30, .12); }
.dk-stage.day .dk-load { color: var(--mute); }
.dk-stage.day .dk-help { background: rgba(255, 255, 255, .8); color: #4B4B46; }
.dk-stage.day.dim { background: #7A766F; }

/* desk: back from the pegboard */
.dk-back { position: absolute; left: 18px; top: 18px; z-index: 3; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 500 14px var(--text); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.dk-back:hover { background: #fff; }
.dk-stage.focus .dk-help { opacity: 0; }

/* desk: grows from a card to the full screen as you scroll (desktop) */
.dk-stage.xp { --ix: 0px; --iy: 0px; --rad: 36px; width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); height: 100vh; aspect-ratio: auto; min-height: 0; border-radius: 0; box-shadow: none; clip-path: inset(var(--iy) var(--ix) round var(--rad)); }
.dk-stage.xp .dk-help { bottom: calc(var(--iy) + 22px); }
.dk-stage.xp .dk-back { left: calc(var(--ix) + 18px); top: calc(var(--iy) + 18px); }




/* case study: a labelled placeholder where a real image should go */
.phb { position: relative; border-radius: 28px; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(29, 29, 27, .16); }
.phb > .pill { position: absolute; left: 18px; top: 18px; z-index: 1; }
.phb.t-night > .pill, .phb.t-ink > .pill { background: rgba(255, 255, 255, .12); color: #fff; }
.phg { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 14px; width: min(560px, 62%); opacity: .8; }
.phg i { display: block; height: 74px; border-radius: 16px; background: rgba(255, 255, 255, .7); animation: phpulse 2.6s ease-in-out infinite; }
.phg i:nth-child(1) { grid-column: span 2; height: 54px; } .phg i:nth-child(3) { animation-delay: .4s; } .phg i:nth-child(4) { animation-delay: .8s; }
.phb.t-night .phg i, .phb.t-ink .phg i { background: rgba(255, 255, 255, .14); }
@keyframes phpulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .phg i { animation: none; } }

/* embedded presentation */
.deckf { margin: 0; }
.deckw { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0e1014; box-shadow: 0 24px 60px rgba(14, 16, 36, .18); }
.deckw iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.deckf .cap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.deck-open { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ServiceNow case studies: clean and light. Infinite Blue ink, no coloured panels, cards only where they belong */
.sn-case { --blue: #032D42; --mark: #E3EEF3; }
.sn-case .field, .sn-case .field[class*="t-"] { background: transparent !important; padding: 0; border-radius: 0; display: block; }
.sn-case .field > img, .sn-case .shot { border-radius: 16px; box-shadow: 0 18px 50px rgba(3, 45, 66, .14); }
.sn-case [class*="t-"]:not(.field):not(.rx-stmt):not(.rx-num) { background: #F3F4F6; color: var(--ink); }
.sn-case .rx-stmt, .sn-case .rx-num, .sn-case .rx-stmt[class*="t-"], .sn-case .rx-num[class*="t-"] { background: transparent; color: var(--ink); border-top: 1px solid var(--hair); border-radius: 0; padding-left: 0; padding-right: 0; }
.sn-case .rx-stmt .lead, .sn-case .rx-stmt .micro, .sn-case .rx-num span, .sn-case .t-ink .micro, .sn-case .t-ink p { color: var(--mute); }
.sn-case .rx-stmt em { color: #032D42; text-decoration: underline; text-decoration-color: #63DF4E; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.sn-case .patterns .k { background: #fff; border: 1px solid var(--hair); }
.sn-case .patterns .k .n, .sn-case .patterns .t-ink .n { color: #032D42; } .sn-case .patterns .t-ink .w, .sn-case .patterns .w { color: #032D42; font-weight: 600; }
.sn-case .pin, .sn-case .rx-annot .pin { background: #032D42; color: #fff; }
/* acts and free-flowing layout */
.brk { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 64px); align-items: end; padding: clamp(72px, 12vw, 180px) 0 clamp(28px, 5vw, 64px); border-top: 1px solid var(--ink); margin-top: clamp(48px, 8vw, 120px); }
.brk-n { font: 500 clamp(96px, 18vw, 280px)/.8 var(--display, inherit); letter-spacing: -.06em; color: #032D42; }
.brk .lead { max-width: 34ch; }
.fr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); row-gap: clamp(20px, 4vw, 56px); align-items: start; margin: clamp(32px, 6vw, 96px) 0; }
.fr-i { margin: 0; position: relative; }
.fr-i img { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 18px 50px rgba(3, 45, 66, .14); }
.fr-i figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--mute); max-width: 46ch; }
.fr-t h3 { margin: 0 0 12px; } .fr-t p { color: var(--mute); max-width: 36ch; line-height: 1.5; }
.fr-t.big b { display: block; font: 500 clamp(72px, 11vw, 180px)/.9 var(--display, inherit); letter-spacing: -.05em; color: #032D42; }
@media (max-width: 760px) { .fr > * { grid-column: 1 / -1 !important; margin-top: 0 !important; } .brk { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .chapter mark { white-space: normal; } }
.brk { grid-template-columns: auto minmax(0, 1fr); }
.brk > div { min-width: 0; }
.brk h2 { font-size: clamp(36px, 5.4vw, 84px); line-height: 1; overflow-wrap: anywhere; }
.brk-n { font-size: clamp(80px, 14vw, 220px); }

/* chapter openers: the big number lines up with the first line of the heading (cap-top to cap-top), the kicker sits above both,
   and the subtitle clears the heading's descenders. The number is sized from the heading, so they scale together. */
.brk { align-items: start; --hs: clamp(36px, 5.4vw, 84px); }
.brk > div { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.brk .micro { position: absolute; left: 0; bottom: 100%; margin-bottom: clamp(14px, 1.4vw, 22px); white-space: nowrap; }
.brk h2 { font-size: var(--hs); line-height: 1.04; padding-bottom: .08em; text-wrap: balance; }
.brk .lead { margin: clamp(18px, 1.9vw, 30px) 0 0; max-width: 46ch; line-height: 1.45; text-wrap: balance; }
.brk-n { align-self: start; font-size: calc(var(--hs) * 2.4); line-height: .74; margin-top: calc(var(--hs) * .14); }

/* the opening sentence of the ServiceNow section is set in bold, on its highlight */
.ch-para mark { font-weight: 700; }

/* Lux definition: text on the left, the layers diagram on the right, one section */
.lux-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin: clamp(56px, 7vw, 110px) 0; }
.lux-copy { display: grid; gap: clamp(40px, 5vw, 64px); }
.lux-part { display: grid; gap: 14px; }
.lux-part .micro { color: var(--ink); opacity: .6; }
.lux-h { font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.lux-part .lead { margin: 0; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; color: var(--ink); opacity: .82; }
.lux-fig { margin: 0; }
.lux-fig img { display: block; width: 100%; height: auto; border-radius: 22px; }
.lux-fig figcaption { margin-top: 14px; font-size: 14px; color: var(--mute); }
@media (max-width: 860px) { .lux-side { grid-template-columns: 1fr; } }

/* hovering the dots opens the full index, in its original look, as an overlay card above the page */
.rail { z-index: 30; border-radius: 22px; transition: box-shadow .2s var(--ease), background .2s var(--ease); }
.rail:hover { width: 300px; background: var(--bg, #FAFAF8); padding: 14px 24px 22px; margin: -14px -24px 0; box-shadow: 0 18px 60px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04); }
.rail:hover a { display: grid; grid-template-columns: 34px 1fr; width: auto; height: auto; padding: 10px 0; font-size: 15px; color: var(--mute); }
.rail:hover a::before { display: none; }
.rail:hover a i { position: static; transform: none; opacity: 1; }
.rail:hover a span { position: static; transform: none; opacity: 1; padding: 0; background: none; box-shadow: none; font-size: 15px; color: inherit; white-space: normal; pointer-events: auto; }
.rail:hover a.on, .rail:hover a:hover { color: var(--ink); }
.rail:hover .bar { width: 100%; }
.dark .rail:hover { background: #161618; box-shadow: 0 18px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06); }
.dark .rail:hover a.on, .dark .rail:hover a:hover { color: #fff; }

/* ---- reading layout for case studies ----
   One text axis: chapter numbers hang in the margin, and headings, paragraphs and lists all start on the same line after them.
   Media (images, compositions) still use the full content width. Body text keeps a comfortable measure (about 64 characters)
   and wraps naturally; "pretty" wrapping was re-breaking the last lines of long paragraphs and leaving ragged gaps. */
.body { --hs: clamp(36px, 5.4vw, 84px); --g: clamp(20px, 4vw, 64px); --nw: calc(var(--hs) * 2.9); --ax: calc(var(--nw) + var(--g)); }
.brk { grid-template-columns: var(--nw) minmax(0, 1fr); column-gap: var(--g); }
.brk-n { justify-self: end; }
/* every block in a numbered chapter sits on the heading's axis, so text, lists, compositions and media share one left edge */
.body:has(.brk) .chapter > *:not(.brk) { margin-left: var(--ax); }
.ch-para .lead, .ch-text .lead { max-width: 64ch; }
.lead { text-wrap: wrap; }
.ch-para { gap: 22px; }
@media (max-width: 760px) { .body { --ax: 0px; } .brk-n { justify-self: start; } }
/* Record compositions: a short heading and paragraph, then the image at full column width */
.body:has(.brk) .fr { row-gap: clamp(24px, 3vw, 40px); }
.body:has(.brk) .fr-t h3 { max-width: 26ch; text-wrap: balance; }
.body:has(.brk) .fr-t p { max-width: 64ch; color: var(--ink); opacity: .82; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; }
/* Record lists read as body copy, not as headlines */
.body:has(.brk) .rows b { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; letter-spacing: -.01em; max-width: 52ch; font-weight: 500; }

/* live deck slides inside case studies */
.animf { margin: clamp(24px, 3vw, 40px) 0; }
.animw { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #032D42; box-shadow: 0 18px 50px rgba(3, 45, 66, .14); }
.animw iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.anim-hit { position: absolute; inset: 0; background: none; border: 0; padding: 0; cursor: pointer; }
.anim-tip { position: absolute; right: 16px; bottom: 16px; padding: 7px 14px; border-radius: 999px; background: rgba(3, 20, 30, .72); color: #fff; font-size: 12.5px; letter-spacing: .01em; backdrop-filter: blur(8px); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.anim-tip.on { opacity: 1; transform: none; }
.animf figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--mute); }

/* ---- full-width reading layout (replaces the hanging axis) ----
   Content starts at the column's left edge and runs to its right edge. The chapter number is smaller (about 1.6x the heading),
   still top-aligned to the heading's first line, so the opener stays compact and nothing below it is indented. */
.body { --nf: 1.6; --nw: calc(var(--hs) * var(--nf) * 1.22); --ax: 0px; }
.body:has(.brk) .chapter > *:not(.brk) { margin-left: 0; }
.brk-n { font-size: calc(var(--hs) * var(--nf)); margin-top: calc(var(--hs) * .172); justify-self: start; }
.ch-para .lead, .ch-text .lead { max-width: none; }
.ch-para .lead { font-size: clamp(19px, 1.6vw, 26px); line-height: 1.5; }
.body:has(.brk) .fr-t p { max-width: none; font-size: clamp(18px, 1.4vw, 22px); }
.body:has(.brk) .fr-t h3 { max-width: none; }
.body:has(.brk) .rows b { max-width: none; }
/* side by side: the image takes the larger share */
.lux-side { grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: clamp(28px, 3.5vw, 56px); }
.brk-n { margin-top: calc(var(--hs) * .146); }
.body:has(.brk) .ch-para, .body:has(.brk) .ch-text { max-width: none; }
/* highlights inside side-by-side copy wrap like normal text (a nowrap highlight was forcing the column wider than its track) */
.lux-part mark { white-space: normal; font-weight: 600; color: var(--ink); }
.lux-part mark::before { display: none; }
.lux-copy, .lux-part { min-width: 0; }

/* owned / not owned: two quiet columns */
.own2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin: clamp(40px, 5vw, 72px) 0; padding-top: 28px; border-top: 1px solid var(--hair); }
.own2 .micro { color: var(--ink); opacity: .6; }
.own2 p { margin: 12px 0 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--ink); opacity: .82; }
@media (max-width: 760px) { .own2 { grid-template-columns: 1fr; } }
/* every image and live slide in the case study shares one frame: same radius, same soft shadow, same caption style */
.body:has(.brk) .fr-i img, .body:has(.brk) .lux-fig img, .body:has(.brk) .animw { border-radius: 20px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 60px -20px rgba(3, 45, 66, .28); }
.body:has(.brk) .fr-i figcaption, .body:has(.brk) .lux-fig figcaption, .body:has(.brk) .animf figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--mute); max-width: none; }

/* Lux: the copy centres on the image itself, not on the image plus its caption, so the two sit level with each other */
.lux-side .lux-copy { padding-bottom: 34px; }
@media (max-width: 860px) { .lux-side .lux-copy { padding-bottom: 0; } }

/* tighter vertical rhythm in the case study chapters: one gap between blocks, instead of the grid gap plus each block's own margin */
.nb { white-space: nowrap; }
.body:has(.brk) .chapter { gap: clamp(32px, 3.6vw, 52px); padding-bottom: clamp(40px, 4.5vw, 64px); }
.body:has(.brk) .chapter > :not(.brk) { margin-top: 0; margin-bottom: 0; }
.body:has(.brk) .brk { padding-top: clamp(40px, 5.5vw, 80px); padding-bottom: clamp(14px, 1.8vw, 26px); margin-top: clamp(20px, 3vw, 44px); }
.body:has(.brk) .fr { row-gap: clamp(20px, 2.2vw, 30px); }
.body:has(.brk) .ch-para { gap: 16px; }
@media (max-width: 760px) { .nb { white-space: normal; } }

/* the closing statement: a big quote at the end of the case study, set straight on the page, with no card behind it */
.bigq { margin: 0; padding: clamp(20px, 3vw, 44px) 0 clamp(8px, 1.5vw, 20px); border-top: 1px solid var(--hair); }
.bigq p { margin: 0; font: 650 clamp(30px, 4.2vw, 68px)/1.06 var(--display); letter-spacing: -.035em; color: var(--ink); max-width: 22ch; text-wrap: balance; }
.bigq p::before { content: "\201C"; margin-right: .04em; color: var(--blue); }
.bigq p::after { content: "\201D"; color: var(--blue); }

/* the top-left mark is a V in the same round badge, in place of the star */
.brand .logo .vmark { font: 650 22px/1 var(--display, var(--text)); letter-spacing: -.04em; color: inherit; transform: translateY(-1px); }

/* the company logo and tag at the top of a case study: plain, without a pill behind them */
.crumb-tag { display: inline-flex; align-items: center; gap: 10px; margin-left: 12px; font: 550 15px/1 var(--text); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.dark .crumb-tag { color: #fff; }
@media (max-width: 560px) { .crumb-tag { margin-left: 6px; font-size: 13.5px; white-space: normal; } }

/* the name at the top of the opening section, above the headline */
.hero-name { margin: 0 0 clamp(16px, 1.8vw, 26px); font: 600 clamp(17px, 1.45vw, 21px)/1.2 var(--text); letter-spacing: -.01em; color: var(--ink); }

/* the opening subtitle runs wider, so it sits on one line on desktop */
.hero .lead { max-width: min(1100px, 92vw); }

/* hero cards show each image in full: the card takes the image's own shape, with no crop */
.fan .fc { background: transparent; }
.fan .fc img { object-fit: contain; display: block; }

/* the telemetry case study card under the Built in code tools */
.built .built-case { margin-top: clamp(24px, 3vw, 40px); }

/* the UX Telemetry Agent tool card opens its case study */
.bt[data-case] { cursor: pointer; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.bt[data-case]:hover { transform: translateY(-4px); }
.bt[data-case]:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ===== Shared brain case study: the language of the Shared brain UI =====
   a warm page, white rounded cards, small grey labels, black pills and a single orange accent */
.sb-case { --blue: #E8530E; --sb-orange: #E8530E; --sb-line: #ECE9E3; --sb-mute: #8A867E; }
.sb { display: grid; gap: clamp(24px, 3vw, 40px); }
.sb-head { display: grid; gap: 14px; max-width: 980px; }
.sb-kick { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--sb-mute); }
.sb-kick::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sb-orange); }
.sb-h { margin: 0; font: 650 clamp(30px, 3.9vw, 58px)/1.04 var(--display); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.sb mark { background: none !important; box-shadow: none !important; padding: 0 !important; color: var(--sb-orange); }
.sb mark::before, .sb mark::after { display: none !important; }
.sb-lead { margin: 0; max-width: 62ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; color: var(--ink); opacity: .78; }
.sb-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2vw, 30px); border-radius: 24px; background: #fff; border: 1px solid var(--sb-line); box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 24px 50px -32px rgba(60, 40, 20, .22); }
.sb-card h3 { margin: 6px 0 0; font: 650 clamp(19px, 1.6vw, 24px)/1.15 var(--display); letter-spacing: -.02em; }
.sb-card p { margin: 0; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; color: var(--ink); opacity: .72; }
.sb-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.sb-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #FFF3EA; color: var(--sb-orange); }
.sb-ic svg { width: 24px; height: 24px; }
.sb-pill { align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: #F3F1EC; color: var(--ink); font: 600 12.5px/1 var(--text); letter-spacing: .01em; }
.sb-pill.hot { background: #FFF3EA; color: var(--sb-orange); }
.sb-pill.ok { background: #EAF6EE; color: #1E7A3C; }
.sb-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.sb-list li { position: relative; padding: 11px 0 11px 24px; border-top: 1px solid var(--sb-line); font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.4; color: var(--ink); opacity: .82; }
.sb-list li:first-child { border-top: 0; }
.sb-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 5px; border: solid var(--sb-orange); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
/* the product: the text, and the real screen beside it */
.sb-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.sb-copy { display: grid; gap: 18px; align-content: center; }
.sb-win { margin: 0; }
.sb-win-in { overflow: hidden; border-radius: 26px; background: #fff; border: 1px solid var(--sb-line); box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 40px 80px -40px rgba(60, 40, 20, .35); }
.sb-win-in img { display: block; width: 100%; height: auto; }
.sb-win figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--mute); }
.sb-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sb-tile { padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--sb-line); display: grid; gap: 6px; }
.sb-tile.hot { background: #FFF3EA; border-color: #F7D9C4; }
.sb-tile b { font: 650 34px/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.sb-tile.hot b { color: var(--sb-orange); }
.sb-tile span { font-size: 14px; color: var(--sb-mute); }
/* in action */
.sb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.sb-steps li { display: flex; gap: 14px; align-items: flex-start; }
.sb-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 650 15px/1 var(--text); }
.sb-steps b { display: block; font: 650 clamp(17px, 1.4vw, 21px)/1.15 var(--display); letter-spacing: -.02em; }
.sb-steps div > span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--ink); opacity: .7; }
.sb-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: stretch; }
.sb-ui { gap: 14px; }
.sb-lab { font: 600 11.5px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--sb-mute); }
.sb-srcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sb-src { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: #F7F5F1; border: 1px solid var(--sb-line); font-size: 14.5px; color: var(--ink); }
.sb-src i { font: 600 10.5px/1 var(--text); font-style: normal; letter-spacing: .06em; padding: 5px 7px; border-radius: 7px; background: var(--ink); color: #fff; }
.sb-big { margin: 4px 0 0 !important; font: 650 clamp(24px, 2.2vw, 34px)/1.1 var(--display) !important; letter-spacing: -.03em; color: var(--ink) !important; opacity: 1 !important; }
.sb-sub { font-size: 14.5px !important; color: var(--sb-mute) !important; opacity: 1 !important; }
.sb-text { margin: 0 !important; font: 650 clamp(19px, 1.6vw, 24px)/1.25 var(--display) !important; letter-spacing: -.02em; color: var(--ink) !important; opacity: 1 !important; }
.sb-btns { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.sb-btn { padding: 10px 22px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 14.5px/1 var(--text); }
.sb-ghost { font-size: 14.5px; color: var(--sb-mute); }
.sb-rows { display: grid; gap: 2px; padding-top: 6px; }
.sb-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--sb-line); font-size: 14.5px; }
.sb-rows .sb-lab + .sb-row { border-top: 0; }
.sb-tag { flex: none; padding: 5px 9px; border-radius: 99px; background: #F3F1EC; color: var(--ink); font: 600 12px/1 var(--text); white-space: nowrap; }
.sb-tag.late { background: #FDECEC; color: #C43B2F; }
.sb-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #EEE9E1; color: var(--ink); font: 650 11px/1 var(--text); }
.sb-ask { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #F7F5F1; border: 1px solid var(--sb-line); font-size: 16px; color: var(--ink); }
.sb-ask i { font-style: normal; color: var(--sb-orange); font-weight: 700; }
.sb-ans { font-size: clamp(16px, 1.2vw, 18px) !important; line-height: 1.55 !important; color: var(--ink) !important; opacity: .85 !important; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-chips span { padding: 7px 10px; border-radius: 8px; background: #F3F1EC; color: var(--ink); font: 600 11px/1 var(--text); letter-spacing: .06em; }
.sb-note { margin: 0; font-size: 14px; color: var(--sb-mute); }
@media (max-width: 1100px) { .sb-grid4, .sb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sb-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .sb-grid4, .sb-steps, .sb-board, .sb-srcs { grid-template-columns: minmax(0, 1fr); } }
.sb-case .chero mark, .sb-case .chero mark::before { background: #FFE9DA; }
.sb-case .chapter > .micro { display: none; }
.sb-case .chapter > .micro + * { margin-top: 0; }

/* Kanban 2.0 case study: the deck's slides, set in the site's language (the site writes the headings, the slide keeps its animation) */
.kemb { display: grid; gap: clamp(16px, 1.8vw, 26px); }
.kemb-t { display: grid; gap: 12px; }
.kemb-t h3 { margin: 0; font: 650 clamp(24px, 2.6vw, 40px)/1.08 var(--display); letter-spacing: -.035em; max-width: 30ch; text-wrap: balance; }
.kemb-t .lead { margin: 0; max-width: 72ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--ink); opacity: .78; }
.kemb .animw { box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 60px -24px rgba(3, 45, 66, .28); }
.kemb.side { grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); align-items: center; column-gap: clamp(28px, 3.5vw, 56px); }
.kemb.side .kemb-t { align-self: center; }
@media (max-width: 860px) { .kemb.side { grid-template-columns: minmax(0, 1fr); } }
.kemb-facts { margin: 10px 0 0; display: grid; }
.kemb-facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--hair); align-items: baseline; }
.kemb-facts dt { font-size: 13px; color: var(--mute); letter-spacing: .04em; text-transform: uppercase; }
.kemb-facts dd { margin: 0; font: 550 clamp(16px, 1.3vw, 19px)/1.35 var(--text); }
/* Kanban embeds sit directly on the page surface: no card behind them */
.kemb .animw { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; border: 0 !important; }
/* About page: intro video in place of the headline */
.about-vid { margin: 0; padding-top: 60px; }
.about-vid video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 26px; background: #0d1b22; object-fit: cover; }
/* Awards: a logo row above each title */
.awards .aw-logo { display: flex; align-items: center; height: 30px; margin-bottom: 8px; font-style: normal; }
.awards .aw-logo img { height: 28px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.awards .aw-chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(0, 0, 0, .06); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .01em; }
/* A little more vertical air across the site */
.shead { padding: 140px 0 58px; }
.act .shead { padding-top: 140px; }
.body { padding-top: 140px; padding-bottom: 56px; }
.chapter { padding-bottom: 140px; gap: 68px; }
.body:has(.brk) .chapter { gap: clamp(40px, 4.4vw, 64px); padding-bottom: clamp(52px, 5.6vw, 80px); }
.ch-text { gap: 30px; }
.grid { gap: 30px 24px; }
.stack.sv-grid { gap: 38px 24px; }
.band { margin: 90px 0 44px; }
.community { gap: 28px 20px; }
.lifegrid { gap: 20px 16px; }
.awards > div { padding: 28px 0 32px; }
@media (max-width: 860px) {
  .shead { padding: 84px 0 34px; }
  .body { padding-top: 84px; }
  .chapter { padding-bottom: 84px; gap: 52px; }
}
/* About intro paragraph: a little larger */
.about-intro .about-lead { font-size: clamp(22px, 2.1vw, 32px); line-height: 1.45; }
.about-intro .about-lead { font-weight: 500; }
.about-intro .about-lead { color: var(--ink); opacity: 1; }
/* Work page segments */
.wseg { padding-bottom: 36px; }
.wseg-h { display: grid; gap: 8px; padding: 56px 0 28px; }
.wseg-h h2 { margin: 0; }
.wseg-h p { margin: 0; color: var(--mute); font-size: clamp(16px, 1.2vw, 19px); }
.awards .aw-logo { height: 44px; }
.awards .aw-logo .aw-sih { height: 44px; }
/* Beyond the work: two columns, images shown whole */
.community { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.community .ph { aspect-ratio: 3 / 2; background: #EFEDE7; }
.community .ph img { object-fit: contain; }
.community p { margin-top: 16px; font-size: clamp(15px, 1.15vw, 18px); color: var(--ink); opacity: .72; }
@media (max-width: 700px) { .community { grid-template-columns: minmax(0, 1fr); } }
/* Life: three larger cards per row, photos shown whole, no captions on top */
.lifegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lifegrid .ph { aspect-ratio: auto; border-radius: 24px; background: #EFEDE7; }
.lifegrid .ph:nth-child(even) { margin-top: 0; }
.lifegrid img { display: block; height: auto; object-fit: contain; }
@media (max-width: 700px) { .lifegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
/* Music corner: coverflow + glass player */
.cn-music { --tc: #E4E1F7; background: #1a0f06; isolation: isolate; min-height: 520px; gap: 18px; }
.cn-music::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(45% 45% at 50% 38%, var(--tc) 0%, transparent 70%), radial-gradient(60% 50% at 20% 90%, #b8641d 0%, transparent 70%), radial-gradient(50% 50% at 85% 85%, #6a1d0a 0%, transparent 70%); filter: blur(36px) saturate(1.2); opacity: .75; transition: background .8s; }
.cn-music::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 5, 2, .35), rgba(10, 5, 2, .55)); }
.mf { position: relative; flex: 1; min-height: 300px; perspective: 1100px; }
.mf-c { position: absolute; left: 50%; top: 4%; width: clamp(150px, 24%, 230px); padding: 8px 8px 12px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); color: #fff; text-align: center; cursor: pointer; display: grid; gap: 2px; transform-style: preserve-3d; }
.mf-c .mf-art { display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; margin-bottom: 8px; }
.mf-c .mf-art img, .mf-gen { display: block; width: 100%; height: 100%; object-fit: cover; }
.mf-gen { display: grid; place-items: center; background: radial-gradient(90% 90% at 30% 20%, #fff 0%, var(--c) 45%, color-mix(in srgb, var(--c) 55%, #000) 100%); }
.mf-gen b { font: 700 clamp(30px, 4vw, 54px)/1 var(--display); letter-spacing: -.04em; color: rgba(20, 12, 6, .78); }
.mf-t { font: 600 clamp(14px, 1.2vw, 18px)/1.2 var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-a { font-size: clamp(12px, 1vw, 15px); color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-c.on { border-color: rgba(255, 255, 255, .5); }
.mp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 10px 14px 10px 22px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .26); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.mp-ctl { display: flex; align-items: center; gap: 6px; }
.mp-ctl button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: transparent; }
.mp-ctl button:hover { background: rgba(255, 255, 255, .14); }
.mp-ctl svg { width: 20px; height: 20px; fill: currentColor; }
.mp-ctl .cn-play { background: transparent; color: #fff; width: 46px; height: 46px; } .mp-ctl .cn-play:hover { background: rgba(255, 255, 255, .14); scale: 1; }
.mp-now { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 14px 12px 8px; border-radius: 14px; background: rgba(0, 0, 0, .55); color: #fff; overflow: hidden; }
.mp-th { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; display: block; }
.mp-th img, .mp-th .mf-gen { width: 100%; height: 100%; } .mp-th .mf-gen b { font-size: 14px; }
.mp-tx { display: grid; min-width: 0; line-height: 1.2; } .mp-tx b { font: 600 14px var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mp-tx .cn-ta { font-size: 12px; color: rgba(255, 255, 255, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-now .cn-time { font-size: 12px; color: rgba(255, 255, 255, .65); }
.mp-now .cn-bar { position: absolute; left: 8px; right: 8px; bottom: 5px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); display: block; } .mp-now .cn-bar i { background: #fff; }
.mp-out { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; } .mp-out:hover { background: rgba(255, 255, 255, .14); } .mp-out svg { width: 20px; height: 20px; }
@media (max-width: 700px) { .mp { grid-template-columns: auto minmax(0, 1fr); } .mp-out { display: none; } .mp-now .cn-time { display: none; } .mf-c { width: 40%; } }
.dk-box:has(.cn-music) { width: min(900px, 100%); }
.dk-slot .cn-music { min-height: 560px; padding: 26px; background: #2a1406; }
.cn-music::before { background: radial-gradient(50% 50% at 50% 36%, color-mix(in srgb, var(--tc) 55%, #E8962E) 0%, transparent 72%), radial-gradient(60% 50% at 15% 95%, #c9741f 0%, transparent 70%), radial-gradient(50% 50% at 90% 90%, #7a210a 0%, transparent 70%); opacity: .9; }
.mf-c { width: clamp(170px, 26%, 250px); }
/* Reading corner as a bookshelf: spines standing in a row on a dark shelf */
.cn-read.rbk { background: #0B0B0C; color: #fff; display: flex; flex-direction: column; gap: 18px; }
.cn-read.rbk .cn-tag { background: rgba(255, 255, 255, .1); color: #fff; } .cn-read.rbk .cn-cnt { color: rgba(255, 255, 255, .6); }
.rb-row { display: flex; align-items: flex-end; gap: 3px; padding: 34px 4px 0; border-bottom: 10px solid #2A2420; overflow-x: auto; scrollbar-width: none; min-height: 290px; }
.rb-sp { flex: none; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 0 10px; border-radius: 3px 3px 1px 1px; background: var(--bg); color: var(--fg); cursor: pointer; box-shadow: inset -3px 0 6px rgba(0, 0, 0, .18), inset 2px 0 0 rgba(255, 255, 255, .08); }
.rb-sp .rb-band { position: absolute; left: 0; right: 0; top: 14%; height: 5px; background: var(--ac); opacity: .9; }
.rb-sp .rb-t { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(12px, 1.2vw, 16px); line-height: 1; white-space: nowrap; overflow: hidden; max-height: 78%; margin-top: 18px; letter-spacing: .01em; }
.rb-sp .rb-a { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 9px/1 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.rb-sp.on { outline: 2px solid #fff; outline-offset: 2px; }
.rb-info { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; align-items: start; }
.rb-cv { width: 74px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); background: #222; }
.rb-info div { display: grid; gap: 3px; } .rb-k { font: 600 11px var(--text); letter-spacing: .08em; text-transform: uppercase; color: #E8432A; }
.rb-ti { font: 650 clamp(18px, 1.6vw, 22px)/1.15 var(--display); letter-spacing: -.02em; } .rb-by { font-size: 13px; color: rgba(255, 255, 255, .6); }
.rb-d { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.dk-box:has(.cn-read.rbk) { width: min(900px, 100%); }
.dk-slot .cn-read.rbk { display: flex; }
@media (min-width: 1100px) { .cn-read.rbk { display: flex; } }
.cn-read.rbk .rb-sp { background: var(--bg) !important; color: var(--fg) !important; }
.cn-read.rbk .rb-row { min-height: 330px; }
.cn-read.rbk .rb-sp .rb-t { font-size: clamp(13px, 1.3vw, 18px); }
/* Phones: keep every grid inside the screen and let long highlights wrap */
@media (max-width: 860px) {
  .chero, .body, .chapter, .ch-text, .split, .stackSplit, .roleSplit, .shead, .about-intro { grid-template-columns: minmax(0, 1fr) !important; }
  .body > *, .chapter > *, .chero > * { min-width: 0; }
  mark { white-space: normal; background: linear-gradient(var(--mark), var(--mark)) 0 88% / 100% 72% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  mark::before { display: none; }
  .nb { white-space: normal; }
}
@media (max-width: 860px) { .next, .linkcard, .writing { grid-template-columns: minmax(0, 1fr) !important; } .next > *, .linkcard > *, .writing > * { min-width: 0; max-width: 100%; } }

/* ===== 2026-11-28 polish pass ===== */
/* case cards: label row (index · logo … pill), then title and subtitle at full card width */
.scard .meta { display: grid; gap: 10px; }
.scard .meta .mrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.scard .meta .mrow .micro { flex: 1 1 auto; min-width: 0; }
.scard .meta .mrow .pill { flex: none; }
.scard h3 { margin: 2px 0 0; text-wrap: balance; }
.scard p { max-width: 62ch; margin: 0; }
/* the telemetry card uses the same infographic as the overview card */
.scard .media.sviz { padding: 14px; border-radius: 28px; background: var(--inkg); }
.scard .media.sviz .bt-viz { width: 100%; height: 100%; min-height: 0; background: rgba(255, 255, 255, .06); }
/* cards whose image should fill the whole card */
.scard[data-case="acme"] .media, .scard[data-case="tsc"] .media { padding: 0; }
.scard[data-case="acme"] .media img, .scard[data-case="tsc"] .media img { width: 100%; height: 100%; max-height: none; max-width: none; object-fit: cover; border-radius: 0; box-shadow: none; }
/* no dark fringe on rounded video corners */
.field.vid { background: transparent; isolation: isolate; clip-path: inset(0 round 28px); }
.field.vid video { border-radius: 0; }
/* built-in-code cards: both infographic panels share one height so their text lines up */
.bt-viz { height: clamp(300px, 26vw, 380px); min-height: 0; }
@media (max-width: 900px) { .bt-viz { height: 280px; } }
/* hero name: bigger */
.hero-name { font: 700 clamp(22px, 2.1vw, 32px)/1.15 var(--display); letter-spacing: -.02em; }
/* footer subline */
.foot .foot-sub { margin: 18px 0 0; max-width: 46ch; }
/* work page: every card in a row shares one media height, whatever its width */
#workgrid .scard .media, #workgrid .scard.third .media, #workgrid .scard.third:nth-child(2) .media { height: clamp(300px, 30vw, 520px); }
#workgrid .scard.full .media { height: clamp(320px, 38vw, 620px); }
#workgrid .grid { row-gap: 44px; }
#workgrid .scard .field.vid.media { aspect-ratio: auto !important; height: clamp(300px, 30vw, 520px) !important; }
#workgrid .scard.full .field.vid.media { height: clamp(320px, 38vw, 620px) !important; }
@media (max-width: 860px) { #workgrid .scard .media, #workgrid .scard .field.vid.media { height: auto !important; aspect-ratio: 4 / 3 !important; } }
/* highlights wrap like normal text at every width, so they never push into the next column */
mark { white-space: normal; background: linear-gradient(var(--mark), var(--mark)) 0 88% / calc(var(--mk, 1) * 100%) 72% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }
mark::before { display: none !important; }
.nb { white-space: normal; }
/* design-variations tool is not part of the site */
#vp, .vp { display: none !important; }
/* desk: nothing 3D loads until the visitor clicks */
.dk-stage.idle { background: radial-gradient(90% 80% at 50% 35%, #5A2A10 0%, #2A1206 60%, #160902 100%); }
.dk-stage.idle .dk-load, .dk-stage.idle .dk-help { display: none; }
.dk-gate { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer; color: #fff; }
.dk-gate-b { display: inline-flex; align-items: center; height: 56px; padding: 0 28px; border-radius: 999px; background: #fff; color: var(--ink); font: 600 17px/1 var(--text); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
.dk-gate:hover .dk-gate-b { transform: translateY(-2px) scale(1.03); }
.dk-gate-s { font: 500 13px var(--text); color: rgba(255, 255, 255, .7); }
/* overview About: straight portrait, no badges */
.portrait .pt { rotate: 0deg; }
.about-t { align-items: start; }
/* music player: a real scrubber, easy to grab */
.mp-now .cn-bar { height: 6px; bottom: 6px; cursor: pointer; touch-action: none; border-radius: 6px; }
.mp-now .cn-bar::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; bottom: -12px; }
.mp-now .cn-bar i { border-radius: 6px; }
.mp-now .cn-bar::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; left: calc(var(--p, 0) * 100%); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); opacity: 0; transition: opacity .2s; }
.mp-now:hover .cn-bar::after, .mp-now .cn-bar:active::after { opacity: 1; }
.mp-now { padding-bottom: 18px; }
/* the Record video is never cropped: its card is exactly 16:9 */
.field.vid[data-vid="record"] { aspect-ratio: 16 / 9 !important; height: auto !important; }
.field.vid[data-vid="record"] video { object-fit: contain; background: #032D42; }
.stack.sv-grid .scard .media, .stack.sv-grid .scard .field.vid.media { aspect-ratio: 16 / 9 !important; height: auto !important; }
#workgrid .scard .field.vid[data-vid="record"].media { height: auto !important; aspect-ratio: 16 / 9 !important; }
#workgrid .scard.third:nth-child(2) .media { height: auto !important; aspect-ratio: .87 / 1 !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== next case study segment ===== */
.nextseg { padding: 40px 0 0; }
.nextseg .wseg-h { padding: 40px 0 28px; }
.nextseg .grid { row-gap: 0; }
.nextseg .scard .media, .nextseg .scard .field.vid.media { height: clamp(300px, 34vw, 520px) !important; aspect-ratio: auto !important; }

/* ===== titles and subtitles use the full width ===== */
.chero h1, .chero .lead, .ch-text, .ch-text h2, .ch-text .lead, .ch-para .lead, .brk h2, .brk .lead, .brk > div, .lux-part .lead, .lux-h, .fr-t h3, .fr-t p, .shead h2, .shead .lead, .scard p, .kemb-t h3, .kemb-t .lead, .bt-txt p, .wseg-h p { max-width: none !important; }
.chero .lead, .ch-text .lead, .brk .lead, .lux-part .lead, .fr-t p, .scard p, .kemb-t .lead { text-wrap: pretty; }
.chero h1, .ch-text h2, .brk h2, .kemb-t h3 { text-wrap: balance; }

/* ===== phones ===== */
@media (max-width: 860px) {
  /* "What is a record page" and its siblings: image first, text below */
  .lux-side { display: flex !important; flex-direction: column; gap: 28px; }
  .lux-side .lux-fig { order: -1; }
  .lux-side .lux-copy { order: 1; }
  .nextseg .scard .media, .nextseg .scard .field.vid.media { height: auto !important; aspect-ratio: 4 / 3 !important; }
}
@media (max-width: 700px) {
  /* nav: only Overview, Work and About, centred */
  .nav { grid-template-columns: 1fr !important; justify-items: center; }
  .nav .brand, .nav .right { display: none !important; }
  .nav .tabs { justify-self: center; }
}

/* ===== phones: tighter home hero, videos above the title ===== */
@media (max-width: 860px) {
  .hero { min-height: 0 !important; padding-bottom: 8px; }
  .hero .fan, .hero .htr, .hero .hsp, .hero .hmq { margin-top: clamp(28px, 7vw, 44px) !important; }
  .hero .ctas { margin-top: 24px; }
  /* case pages: cover video first, then the title and subtitle */
  section.wrap:has(> .chero) { display: flex; flex-direction: column; }
  section.wrap:has(> .chero) > .crumb { order: 0; }
  section.wrap:has(> .chero) > [data-morph] { order: 1; margin: 22px 0 8px; }
  section.wrap:has(> .chero) > .chero { order: 2; }
  section.wrap:has(> .chero) > .metrics { order: 3; }
}
@media (max-width: 700px) { .hero .fan { height: 200px !important; margin-top: 20px !important; } .hero .fan .fc { bottom: 8px; } }
/* big quote: full column width, wraps naturally */
.bigq p { max-width: none !important; text-wrap: pretty; }
/* no hairline between a case image/video and its title */
.scard .meta .mrow { border-top: 0 !important; padding: 0 !important; display: flex !important; grid-template-columns: none; }
.scard .meta { padding-top: 0; border-top: 0; }
.cn-music.loading .cn-bar i { animation: cnload 1s ease-in-out infinite alternate; }
@keyframes cnload { from { opacity: .35; } to { opacity: 1; } }
/* clear space between one case and the next, so each title belongs to the image above it */
.stack.sv-grid { row-gap: clamp(72px, 7vw, 120px) !important; }
#workgrid .grid { row-gap: clamp(72px, 7vw, 120px); }
#workgrid .wseg { padding-bottom: clamp(24px, 3vw, 48px); }
.scard { gap: 20px; }
@media (max-width: 860px) { .stack.sv-grid, #workgrid .grid { row-gap: 64px !important; } }
/* overview: the last case has no neighbour, so it takes the full row */
.stack.sv-grid .scard[data-case="kanban"] { grid-column: 1 / -1; }
.stack.sv-grid .scard[data-case="kanban"] .media, .stack.sv-grid .scard[data-case="kanban"] .field.vid.media { aspect-ratio: 21 / 9 !important; }
@media (max-width: 800px) { .stack.sv-grid .scard[data-case="kanban"] .media { aspect-ratio: 16 / 9 !important; } }

/* case figures (awards): show each image whole, whatever its shape */
.figs { align-items: start; }
.figs .field { aspect-ratio: auto !important; }
.figs .field img { max-height: min(86vh, 900px) !important; width: auto; height: auto; object-fit: contain; }

/* Get in touch drop-down */
.getin { position: relative; }
.getin-chev { margin-left: 8px; flex: none; transition: transform .25s var(--ease); }
.getin.is-open .getin-chev { transform: rotate(180deg); }
.cta[data-getin-btn] { display: inline-flex; align-items: center; }
.getin-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 224px; padding: 6px; border-radius: 18px; background: #fff; border: 1px solid rgba(20, 22, 40, .08); box-shadow: 0 18px 44px rgba(14, 16, 36, .18); z-index: 80; transform-origin: top right; animation: getin-in .18s var(--ease); }
.getin-menu[hidden] { display: none; }
.getin-menu a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.getin-menu a:hover, .getin-menu a:focus-visible { background: rgba(20, 22, 40, .06); outline: none; }
.getin-menu svg { flex: none; opacity: .7; }
@keyframes getin-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
