/* Layout: a 12-column editorial grid under oversized expanded display type.
   Signature: the three quarter-ellipse shapes of the JB mark become image frames, windows and page transitions.
   Dark-first; light theme via [data-theme="light"]. */
:root {
  --bg: #0E0D0C;
  --bg-2: #171513;
  --bg-3: #221F1C;
  --fg: #F4EFE8;
  --fg-2: #B3AA9F;
  --fg-3: #7A7268;
  --line: #2B2723;
  --line-2: #3D3832;
  --sun-1: #FFE23B;
  --sun-2: #FFA62B;
  --sun-3: #F4731C;
  --accent: #FFB547;
  --on-sun: #18110A;
  --char: #353333;
  --ok: #43D17F;
  --paper: #FFFFFF;
  --glass: rgba(14, 13, 12, .72);
  --shade: rgba(0, 0, 0, .55);
  --num-fill: linear-gradient(180deg, var(--sun-1) 10%, var(--sun-3) 95%);
  --sun: linear-gradient(180deg, var(--sun-1), var(--sun-3));
  --sun-r: linear-gradient(180deg, var(--sun-3), var(--sun-1));
  --f-display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  --fs-xl: clamp(2rem, 1.2rem + 3.2vw, 3.6rem);
  --fs-2xl: clamp(2.6rem, 1rem + 6.4vw, 6.6rem);
  --fs-3xl: clamp(3rem, .6rem + 9.6vw, 10.5rem);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --head-h: 68px;
  --ease: cubic-bezier(.2, .75, 0, 1);
  --ease-io: cubic-bezier(.75, 0, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3F2EE;
  --bg-2: #EAE8E2;
  --bg-3: #DFDCD4;
  --fg: #161412;
  --fg-2: #574F47;
  --fg-3: #8B8379;
  --line: #D6D2C9;
  --line-2: #C2BCB1;
  --accent: #B4500B;
  --glass: rgba(243, 242, 238, .78);
  --shade: rgba(20, 18, 16, .45);
  --num-fill: linear-gradient(180deg, #E8780F 10%, #B4500B 95%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sun-2); color: var(--on-sun); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.012em;
}
.h1 { font-size: var(--fs-3xl); }
.h2 { font-size: var(--fs-2xl); }
.h3 { font-size: var(--fs-xl); }
.title {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 105%;
  font-size: var(--fs-lg);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.mono {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.55; color: var(--fg-2); max-width: 60ch; }
.prose { max-width: 64ch; color: var(--fg-2); }
.prose strong { color: var(--fg); font-weight: 600; }
.grad { color: var(--hl); }
.outline { -webkit-text-stroke: 1.5px var(--fg); color: transparent; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(72px, 9vw, 150px); position: relative; }
.sec-tight { padding-block: clamp(48px, 6vw, 96px); }
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 64px);
}
.sec-head .mono { margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.sec-head p.lede { margin-top: 18px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
main { min-height: 70vh; }
main:focus { outline: none; }

/* ---------- glyph from the mark ---------- */
.q {
  display: inline-block;
  width: .62em; height: .62em;
  background: var(--sun);
  border-top-right-radius: 100% 100%;
  flex: none;
}
.q.j { border-radius: 0 0 100% 0 / 0 0 100% 0; background: var(--sun-r); }

/* ---------- buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.35em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), background-color .3s, border-color .3s, color .3s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.btn svg { width: 1em; height: 1em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover svg.dg { transform: translate(2px, -2px); }
.btn:hover { border-color: var(--fg-2); }
.btn-sun { background: var(--sun); color: var(--on-sun); border-color: transparent; }
.btn-sun::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--sun-3), var(--sun-1));
  opacity: 0; transition: opacity .4s;
}
.btn-sun:hover::before { opacity: 1; }
.btn-sun:hover { border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-sm { padding: .7em 1em; font-size: .88rem; }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.link-u:hover { background-size: 100% 1px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .45em .8em; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2);
  white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- header ---------- */
.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.head.solid { background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.head.hide { transform: translateY(-110%); }
.head-in { height: var(--head-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.01em; flex: none; }
.brand-mark { width: 26px; height: 34px; }
.brand-name { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: .95rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: .75rem; letter-spacing: .08em; color: var(--fg-2); margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav > a, .nav-work > a { padding: .55em .9em; border-radius: 999px; font-size: .93rem; color: var(--fg-2); transition: color .25s, background-color .25s; position: relative; }
.nav > a:hover, .nav-work > a:hover { color: var(--fg); }
.nav > a[aria-current="page"], .nav-work > a[aria-current="page"] { color: var(--fg); background: var(--bg-3); }
.head-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  transition: border-color .25s, background-color .25s;
  flex: none;
}
.icon-btn:hover { border-color: var(--fg-2); }
.icon-btn svg { width: 18px; height: 18px; }
.kbd-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2); font-size: .88rem; }
.kbd-btn:hover { color: var(--fg); border-color: var(--fg-2); }
kbd { font-family: var(--f-mono); font-size: .75rem; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--fg-2); }
.menu-btn { display: none; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sun-1), var(--sun-3)); }

.mnav {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  padding: calc(var(--head-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
  overflow-y: auto;
}
.mnav.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io); }
.mnav a.big { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); font-weight: 800; font-stretch: 120%; text-transform: uppercase; font-size: clamp(2.2rem, 11vw, 4rem); line-height: 1.05; border-bottom: 1px solid var(--line); padding-block: 10px; }
.mnav a.big span.mono { font-stretch: 100%; color: var(--fg-3); }
.mnav .mn-foot { display: grid; gap: 14px; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--head-h) + clamp(28px, 5vw, 72px)); padding-bottom: clamp(28px, 4vw, 56px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.avail { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .86rem; color: var(--fg-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2.4s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(67, 209, 127, .55); } 70% { box-shadow: 0 0 0 10px rgba(67, 209, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(67, 209, 127, 0); } }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 5rem); font-size: clamp(1.85rem, 8.6cqi, 6.4rem); margin-block: 26px 28px; }
.hero h1 .ln { display: block; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.hero h1 .w > span { display: inline-block; transition: font-stretch .5s var(--ease), transform 1s var(--ease); }
.hero h1 .w:hover > span { font-stretch: 125%; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.mark {
  display: grid;
  grid-template-columns: 388fr 91fr 388fr;
  grid-template-rows: 340fr 91fr 681fr;
  aspect-ratio: 867 / 1112;
  width: min(100%, 500px);
  margin-left: auto;
  position: relative;
}
.win {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  display: block;
  isolation: isolate;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: transform .8s var(--ease);
}
.win-dot { grid-area: 1 / 1 / 2 / 2; border-top-right-radius: 100% 100%; }
.win-j { grid-area: 3 / 1 / 4 / 2; border-bottom-right-radius: 100% 50.3%; }
.win-n { grid-area: 3 / 3 / 4 / 4; border-top-right-radius: 100% 50.3%; }
.win video, .win img, .win .slides { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.win .cover { position: absolute; inset: 0; z-index: 3; background: var(--sun); transition: clip-path 1.1s var(--ease-io); clip-path: inset(0 0 0 0); }
.win-j .cover, .win-n .cover { background: var(--sun-r); }
.mark.open .cover { clip-path: inset(100% 0 0 0); }
.win::after { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.win .tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 5;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(10, 9, 8, .72); color: #F4EFE8; padding: 6px 9px; border-radius: 6px;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease);
  max-width: calc(100% - 20px);
}
.win:hover .tag, .win:focus-visible .tag { opacity: 1; transform: none; }
.win-j .tag { bottom: auto; top: 10px; }
.slides .sl { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); }
.slides .sl.on { clip-path: inset(0 0 0 0); z-index: 2; }
.slides .sl.was { clip-path: inset(0 0 0 0); z-index: 1; }
.slides .sl img { width: 100%; height: 100%; object-fit: cover; }
.slides .sl.fit { background: var(--sun); }
.slides .sl.fit img { object-fit: contain; padding: 14%; }
.slides .sl.dark { background: #121110; }
.slides .sl.dark img { object-fit: contain; padding: 10%; }
.orbit { grid-area: 1 / 3 / 2 / 4; position: relative; display: grid; place-items: center; }
.orbit svg { width: 92%; height: auto; animation: spin 22s linear infinite; }
.orbit text { font-family: var(--f-mono); font-size: 5.9px; letter-spacing: .9px; text-transform: uppercase; fill: var(--fg-2); }
.orbit .arrow { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); transition: transform .4s var(--ease); }
.orbit .arrow:hover { transform: scale(1.08); }
.orbit .arrow svg { animation: none; width: 40%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* snapshot */
.snap { margin-top: clamp(36px, 5vw, 64px); border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; background: var(--bg-2); overflow: hidden; }
.snap > div { padding: 18px 22px; border-right: 1px solid var(--line); min-width: 0; }
.snap dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.snap dd { margin: 0; font-weight: 600; line-height: 1.35; font-size: .97rem; }
.snap dd span { display: block; font-weight: 400; color: var(--fg-2); font-size: .88rem; }
.snap .snap-cta { display: flex; flex-direction: column; justify-content: center; gap: 8px; border-right: 0; padding: 14px; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; user-select: none; }
.mq-track { display: flex; width: max-content; animation: mq 46s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-item { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--f-display); font-weight: 700; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); line-height: 1; white-space: nowrap; }
.mq-item .q { width: .5em; height: .5em; }
.mq-item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--fg-2); }
@keyframes mq { to { transform: translateX(-50%); } }

/* metrics */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.metric { padding: clamp(22px, 3vw, 40px) clamp(4px, 2vw, 28px) clamp(22px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.metric:not(:nth-child(3n+1)) { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.metric .num { font-family: var(--f-display); font-weight: 800; font-stretch: 120%; font-size: clamp(3rem, 1.6rem + 4.4vw, 6rem); line-height: .9; font-variant-numeric: tabular-nums; color: var(--hl); }
.metric .num small { font-size: .45em; font-stretch: 100%; vertical-align: top; }
.metric h3 { font-weight: 700; font-size: 1.05rem; }
.metric p { color: var(--fg-2); font-size: .94rem; max-width: 36ch; }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.card { grid-column: span 6; display: grid; gap: 18px; align-content: start; position: relative; }
.card.s12 { grid-column: span 12; }
.card.s7 { grid-column: span 7; }
.card.s5 { grid-column: span 5; }
.card.s4 { grid-column: span 4; }
.card.s8 { grid-column: span 8; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); border-radius: 6px; border-top-right-radius: min(24%, 190px) min(34%, 190px); transition: border-radius .7s var(--ease); }
.card.s12 .card-media { aspect-ratio: 21 / 9; }
.card.s5 .card-media, .card.s4 .card-media { aspect-ratio: 4 / 5; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.card-media.fit { background: var(--paper); }
.card-media.fit img { object-fit: contain; padding: 10%; }
.card-media.dark { background: #141210; }
.card-media.dark img { object-fit: contain; padding: 8%; }
.card:hover .card-media { border-top-right-radius: min(34%, 260px) min(48%, 260px); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 40%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.card:hover .card-media::after { opacity: 1; }
.card .pill { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: #F4EFE8; color: #151311; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; transform: translateY(14px); opacity: 0; transition: .5s var(--ease); }
.card:hover .pill, .card:focus-visible .pill { transform: none; opacity: 1; }
.card-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: baseline; }
.card-meta h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.35rem, 1rem + 1.2vw, 2.1rem); line-height: 1; letter-spacing: -.01em; }
.card.s12 .card-meta h3 { font-size: clamp(1.7rem, 1rem + 2.4vw, 3.2rem); }
.card-meta .yr { font-family: var(--f-mono); font-size: .75rem; color: var(--fg-3); }
.card-meta p { grid-column: 1 / -1; color: var(--fg-2); max-width: 62ch; }
.card .chips { margin-top: 2px; }

/* fit switcher */
.fit-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.fit-tab { padding: .8em 1.2em; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: .95rem; transition: background-color .3s, color .3s, border-color .3s; }
.fit-tab:hover { border-color: var(--fg-2); }
.fit-tab[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.fit-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 44px); background: var(--bg-2); position: relative; overflow: hidden; }
.fit-panel::before { content: ''; position: absolute; width: 420px; height: 420px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(255, 166, 43, .18), transparent 65%); pointer-events: none; }
.fit-panel h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(1.8rem, 1.1rem + 2.2vw, 3rem); line-height: .95; }
.fit-panel .pitch { margin-top: 16px; font-size: 1.12rem; color: var(--fg-2); max-width: 52ch; }
.proof { margin-top: 24px; display: grid; gap: 12px; }
.proof li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.proof li .q { margin-top: .45em; width: 12px; height: 12px; }
.fit-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.mini { display: grid; gap: 10px; }
.mini-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; border-top-right-radius: 28% 38%; background: var(--bg-3); }
.mini-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mini-media.fit { background: var(--paper); } .mini-media.fit img { object-fit: contain; padding: 10%; }
.mini-media.dark { background: #141210; } .mini-media.dark img { object-fit: contain; padding: 8%; }
.mini:hover .mini-media img { transform: scale(1.05); }
.mini b { font-weight: 700; font-size: .98rem; line-height: 1.2; }
.mini span { color: var(--fg-3); font-size: .8rem; }
.fit-anim { animation: fitIn .6s var(--ease); }
@keyframes fitIn { from { opacity: 0; transform: translateY(10px); } }

/* capabilities */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.cap { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 12px; align-content: start; position: relative; }
.cap .cap-img { aspect-ratio: 4 / 3; border-radius: 6px; border-top-right-radius: 26% 34%; overflow: hidden; background: var(--bg-3); margin-bottom: 6px; transition: border-radius .6s var(--ease); }
.cap .cap-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cap:hover .cap-img { border-top-right-radius: 44% 50%; }
.cap:hover .cap-img img { transform: scale(1.05); }
.cap h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(1.15rem, .95rem + .6vw, 1.5rem); line-height: 1; transition: color .3s; }
.cap:hover h3 { color: var(--accent); }
.cap p { color: var(--fg-2); font-size: .95rem; }
.cap .chips { gap: 6px 12px; }

/* process */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 26px 22px 30px 0; display: grid; gap: 12px; align-content: start; position: relative; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: 3.2rem; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--fg-2); transition: color .4s; }

.step h3 { font-weight: 700; font-size: 1.15rem; }
.step p { color: var(--fg-2); font-size: .95rem; }
.steps .bar { grid-column: 1 / -1; height: 2px; background: linear-gradient(90deg, var(--sun-1), var(--sun-3)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease-io); margin-top: -1px; order: -1; }
.steps.in .bar { transform: scaleX(1); }

/* timeline */
.tl { border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 170px minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 12px 36px; padding-block: 24px; border-bottom: 1px solid var(--line); align-items: baseline; }
.tl-row .yr { font-family: var(--f-mono); font-size: .8rem; color: var(--fg-2); }
.tl-row h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.15rem, .9rem + .9vw, 1.7rem); line-height: 1.05; }
.tl-row h3 + p { color: var(--fg-2); font-size: .95rem; margin-top: 4px; }
.tl-row .tl-note { color: var(--fg-2); }
.tl-row ul { display: grid; gap: 6px; margin-top: 10px; }
.tl-row li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; color: var(--fg-2); font-size: .97rem; }
.tl-row li::before { content: ''; width: 7px; height: 7px; margin-top: .6em; background: var(--sun); border-top-right-radius: 100%; }
.tl-row.now .yr { color: var(--accent); }

/* clients wall */

/* footer */
.foot { border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 120px); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); position: relative; overflow: hidden; }
.foot-cta { display: block; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 11vw, 12rem); font-size: 12cqi; line-height: .86; letter-spacing: -.015em; white-space: nowrap; }
.foot-cta .ch { display: inline-block; font-stretch: var(--st, 105%); transition: font-stretch .35s var(--ease); }
.foot-cta .g { color: var(--hl); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 5vw, 72px); }
.foot-grid h4 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); font-weight: 400; margin-bottom: 14px; }
.foot-grid li + li { margin-top: 8px; }
.foot-grid a { color: var(--fg-2); }
.foot-grid a:hover { color: var(--fg); }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail { font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: clamp(1.1rem, .8rem + .9vw, 1.45rem); user-select: all; overflow-wrap: anywhere; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(48px, 6vw, 88px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--fg-3); }
.clock { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- page heads ---------- */
.phead { isolation: isolate; padding-top: calc(var(--head-h) + clamp(40px, 7vw, 110px)); padding-bottom: clamp(32px, 5vw, 72px); position: relative; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--fg-3); margin-bottom: 22px; }
.crumb a:hover { color: var(--fg); }
.phead h1 { font-size: var(--fs-3xl); }
.phead .h1 { font-size: clamp(2.6rem, 11cqi, 10rem); }
.phead .case-title, .phead .about-h { font-size: clamp(2.3rem, 7.6cqi, 7.4rem); }
.phead .lede { margin-top: 26px; }
.glow { position: absolute; inset: 0 0 auto 0; height: 120%; pointer-events: none; z-index: -1; opacity: .5; background: radial-gradient(60% 55% at 85% 10%, var(--g1, rgba(255, 166, 43, .22)), transparent 70%), radial-gradient(45% 45% at 10% 30%, var(--g2, rgba(255, 226, 59, .1)), transparent 70%); }

/* work page */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filt { padding: .6em 1em; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; color: var(--fg-2); transition: .25s; }
.filt:hover { color: var(--fg); border-color: var(--fg-2); }
.filt[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filt sup { font-family: var(--f-mono); font-size: .75rem; margin-left: 4px; opacity: .7; }
.views { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.views button { padding: .45em .9em; border-radius: 999px; font-size: .85rem; color: var(--fg-2); }
.views button[aria-pressed="true"] { background: var(--bg-3); color: var(--fg); }
.card.gone { display: none; }
.index { border-top: 1px solid var(--line); }
.irow { display: grid; grid-template-columns: 56px minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr) 90px; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .4s var(--ease), color .3s; }
.irow:hover { padding-left: 12px; }
.irow:hover b { color: var(--accent); }
.irow b { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.1rem, .9rem + .9vw, 1.7rem); line-height: 1.05; transition: color .3s; }
.irow .c2, .irow .c3 { color: var(--fg-2); font-size: .93rem; }
.irow .c4 { text-align: right; }
.irow.head-row { padding-block: 12px; color: var(--fg-3); }
.irow.head-row:hover { padding-left: 0; }

/* ---------- case study ---------- */
.meta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.meta > div { padding: 16px 16px 16px 0; min-width: 0; }
.meta > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.meta dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: .93rem; line-height: 1.4; overflow-wrap: anywhere; }
.meta dd a { color: var(--accent); }
.meta .wide { grid-column: span 2; }
.case-hero { position: relative; border-radius: 8px; border-top-right-radius: min(22%, 260px) min(40%, 260px); overflow: hidden; background: var(--bg-3); }
.case-hero img, .case-hero video { width: 100%; height: auto; max-height: 86vh; object-fit: cover; }
.case-hero.par img { transform: translate3d(0, var(--py, 0), 0) scale(1.08); }
.tldr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.tldr > div { padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 10px; align-content: start; }
.tldr > div + div { border-left: 1px solid var(--line); }
.tldr h3 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 400; }
.tldr p { font-size: 1.05rem; line-height: 1.5; }
.tldr-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--fg-3); }
.story { display: grid; gap: 0; border-top: 1px solid var(--line); }
.story-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 48px; padding-block: clamp(26px, 3.5vw, 48px); border-bottom: 1px solid var(--line); }
.story-row h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 1.5vw, 2.4rem); line-height: 1; }
.story-row p { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--fg-2); max-width: 62ch; }
.chap { padding-top: clamp(64px, 8vw, 128px); }
.chap-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.chap-head h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1.9rem, 1rem + 3.6vw, 4.2rem); line-height: .92; }
.chap-head .mono { color: var(--fg-3); margin-bottom: 12px; }
.chap-head > p { color: var(--fg-2); max-width: 56ch; justify-self: end; }

/* gallery primitives */
.fig { display: grid; gap: 10px; min-width: 0; margin: 0; }
.fig figcaption { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.m { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 6px; background: var(--bg-3); cursor: zoom-in; }
.m img, .m video { width: 100%; height: auto; transition: transform 1s var(--ease); }
.m:hover img { transform: scale(1.025); }
.m.fit { background: var(--paper); }
.m.fit img { padding: 8%; }
.m.dark { background: #121110; }
.m.dark img { padding: 8%; }
.m.sun { background: var(--sun); }
.m.sun img { padding: 6%; }
.m.phone { max-width: 360px; margin-inline: auto; border-radius: 26px; border: 6px solid #1D1B19; }
.g-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); align-items: start; grid-auto-flow: dense; }
.g-grid .span-2 { grid-column: span 2; }
.g-grid .span-3 { grid-column: span 3; }
.g-grid .span-4 { grid-column: span 4; }
.g-feature .m { max-width: 900px; margin-inline: auto; }
.g-feature .m img { padding: 6% 10%; }

.strip { position: relative; }
.strip-track { display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; padding-inline: var(--gutter); scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.strip-track::-webkit-scrollbar { display: none; }
.strip-track.drag { cursor: grabbing; scroll-snap-type: none; }
.strip-track { align-items: flex-start; }
.strip-track > * { flex: none; scroll-snap-align: start; }
.strip-track .fig { width: min(78vw, 420px); }
.strip-ctl { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.strip-bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.strip-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--sun-1), var(--sun-3)); transform-origin: 0 50%; transform: scaleX(.1); }

.film { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.film .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .1)); transition: opacity .4s; }
.film .play span { display: inline-flex; align-items: center; gap: 12px; background: #F4EFE8; color: #151311; padding: 16px 24px; border-radius: 999px; font-weight: 700; transition: transform .4s var(--ease); }
.film .play:hover span { transform: scale(1.05); }
.film .play svg { width: 18px; height: 18px; }
.film.playing .play { opacity: 0; pointer-events: none; }

.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.browser-bar span { margin-left: 10px; flex: 1; font-family: var(--f-mono); font-size: .75rem; color: var(--fg-3); padding: 5px 10px; background: var(--bg-3); border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser .m { border-radius: 0; }
.g-browser { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.g-browser.solo { grid-template-columns: minmax(0, 1fr); }
.g-browser .stack { display: grid; gap: clamp(16px, 2vw, 28px); }

.lang { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.lang-frame { position: relative; max-width: 560px; width: 100%; justify-self: center; border-radius: 8px; overflow: hidden; }
.lang-frame .lf { position: absolute; inset: 0; transition: clip-path .9s var(--ease-io); clip-path: inset(0 0 0 100%); }
.lang-frame .lf.on { clip-path: inset(0 0 0 0); }
.lang-frame .lf:first-child { position: relative; }
.lang-frame img { width: 100%; height: auto; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; gap: 4px; }
.seg button { padding: .6em 1.1em; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--fg-2); transition: .3s; }
.seg button[aria-pressed="true"] { background: var(--sun); color: var(--on-sun); }
.lang .big { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: .9; text-transform: uppercase; margin-block: 18px; }

.cmp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.cmp { display: grid; gap: 10px; }
.cmp-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; border-top-right-radius: 30% 24%; overflow: hidden; background: #ECEAE6; cursor: pointer; }
.cmp-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: clip-path .8s var(--ease-io), transform 1s var(--ease); }
.cmp-frame img.a { object-fit: contain; padding: 6%; }
.cmp-frame img.b { clip-path: inset(100% 0 0 0); }
.cmp.real .cmp-frame img.b { clip-path: inset(0 0 0 0); }
.cmp .seg { justify-self: start; }
.cmp .seg button { padding: .45em .85em; font-size: .78rem; }
.cmp-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(10, 9, 8, .78); color: #F4EFE8; padding: 5px 8px; border-radius: 6px; }

.vids { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.vids .m { border-radius: 18px; aspect-ratio: 464 / 820; cursor: zoom-in; }
.vids video { width: 100%; height: 100%; object-fit: cover; }

.cal { position: relative; }
.cal .strip-track .fig { width: min(70vw, 300px); }
.cal-when { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.cal-when b { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; }
.cal-when span { font-family: var(--f-mono); font-size: .75rem; color: var(--accent); white-space: nowrap; }
.months { display: flex; gap: 0; padding-inline: var(--gutter); margin-bottom: 14px; }
.months span { flex: 1; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); border-left: 1px solid var(--line-2); padding-left: 8px; }

.tunnel .strip-track { align-items: center; padding-top: 30px; }
.tunnel .fig { width: auto !important; }
.tunnel .t-round .m { width: clamp(170px, 22vw, 260px); border-radius: 50%; background: transparent; }
.tunnel .t-tall .m { width: clamp(90px, 10vw, 130px); }
.tunnel .t-wide .m { width: clamp(300px, 42vw, 560px); }
.tunnel .fig figcaption { text-align: center; }
.road { position: relative; height: 34px; margin: 6px var(--gutter) 0; border-top: 2px dashed var(--line-2); }
.car { position: absolute; top: -13px; left: 0; width: 44px; height: 24px; transition: transform .2s linear; color: var(--accent); }

.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.brand-tile { position: relative; display: grid; grid-template-rows: auto auto; gap: 12px; text-align: left; }
.brand-tile .bt-logo { aspect-ratio: 1; background: var(--paper); border-radius: 8px; border-top-right-radius: 34% 34%; display: grid; place-items: center; overflow: hidden; transition: border-radius .6s var(--ease), transform .6s var(--ease); }
.brand-tile .bt-logo img { width: 70%; height: 70%; object-fit: contain; transition: transform .8s var(--ease); }
.brand-tile:hover .bt-logo { border-top-right-radius: 50% 50%; }
.brand-tile:hover .bt-logo img { transform: scale(1.06); }
.brand-tile b { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.brand-tile span { display: block; font-size: .82rem; color: var(--fg-3); margin-top: 2px; }
.brand-tile .bt-logo.red { background: #D7363C; }

.sites { display: grid; gap: clamp(48px, 6vw, 96px); }
.site { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: center; }
.site:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.site:nth-child(even) .browser { order: 2; }
.site h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); line-height: .95; margin-block: 12px 14px; }
.site dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 18px 0 22px; }
.site dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding-top: 3px; }
.site dd { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status.dev::before { background: var(--sun-2); }

.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.boards .m { background: var(--paper); }

.deliv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); border-top: 1px solid var(--line); padding-top: clamp(28px, 3vw, 44px); }
.deliv h3 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); font-weight: 400; margin-bottom: 16px; }
.deliv ol { columns: 2; column-gap: 28px; }
.deliv li { break-inside: avoid; padding-block: 8px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; font-size: .97rem; }
.deliv li span { font-family: var(--f-mono); font-size: .75rem; color: var(--fg-3); padding-top: 4px; }

.next { display: block; position: relative; overflow: hidden; border-radius: 12px; border-top-right-radius: min(20%, 240px) min(50%, 240px); min-height: clamp(260px, 40vw, 520px); background: var(--bg-3); isolation: isolate; }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); filter: saturate(.9); }
.next::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 9, 8, .88), rgba(10, 9, 8, .25) 60%); }
.next:hover img { transform: scale(1.05); }
.next-in { position: absolute; left: clamp(20px, 3vw, 44px); right: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 44px); color: #F4EFE8; display: grid; gap: 10px; }
.next-in .mono { color: rgba(244, 239, 232, .7); }
.next-in b { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; font-size: clamp(2rem, 1rem + 5vw, 6rem); line-height: .9; transition: font-stretch .6s var(--ease); }
.next:hover .next-in b { font-stretch: 125%; }

/* ---------- recruiter brief ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts > div:not(:nth-child(3n+1)) { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.4; }
.facts dd span { display: block; font-weight: 400; color: var(--fg-2); font-size: .92rem; }
.oneliner { font-family: var(--f-display); font-weight: 800; font-stretch: 108%; font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.02em; max-width: 24ch; }
.oneliner em { font-style: normal; color: var(--hl); }
.strengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.strength { border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 12px; align-content: start; background: var(--bg-2); }
.strength .q { width: 28px; height: 28px; }
.strength h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.strength p { color: var(--fg-2); }
.tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.tools > div { padding: 20px 18px 20px 0; min-width: 0; }
.tools > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.tools h3 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); font-weight: 400; margin-bottom: 12px; }
.tools li { padding-block: 4px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-block: 22px; font-weight: 600; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease), background-color .3s; }
.faq summary i::before { content: '+'; font-style: normal; font-size: 1.1rem; line-height: 1; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--bg-3); }
.faq details p { padding-bottom: 22px; color: var(--fg-2); max-width: 70ch; }

/* contact & about */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.cbox { border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 14px; align-content: space-between; min-height: 200px; background: var(--bg-2); min-width: 0; }
.cbox .v { font-family: var(--f-display); font-weight: 700; font-stretch: 105%; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); overflow-wrap: anywhere; user-select: all; }
.cbox .row { display: flex; flex-wrap: wrap; gap: 8px; }
.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.journey > div { padding: 26px 24px 30px 0; display: grid; gap: 10px; align-content: start; }
.journey > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.journey b { font-family: var(--f-display); font-weight: 800; font-stretch: 120%; text-transform: uppercase; font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); line-height: .95; }
.journey p { color: var(--fg-2); }
.about-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.about-hero .mark { width: min(100%, 360px); }
.about-hero .win { background: var(--sun); }
.about-hero .win-j, .about-hero .win-n { background: var(--sun-r); }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principles > div { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.principles > div:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.principles h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1; }
.principles p { color: var(--fg-2); max-width: 46ch; }
.edu li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.edu li span { color: var(--fg-2); font-size: .93rem; }
.edu { border-top: 1px solid var(--line); }

/* résumé sheet */
.sheet { border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); padding: clamp(20px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 4vw, 64px); }
.sheet aside { display: grid; gap: 30px; align-content: start; }
.sheet h2 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 400; margin-bottom: 14px; }
.sheet aside li { padding-block: 4px; color: var(--fg-2); font-size: .95rem; }
.sheet aside li b { color: var(--fg); font-weight: 600; }
.sheet .tl-row { grid-template-columns: 130px minmax(0, 1fr); }
.sheet .tl-row > div:last-child { grid-column: 2; }
.ach li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; padding-block: 6px; }
.ach li::before { content: ''; width: 8px; height: 8px; margin-top: .55em; background: var(--sun); border-top-right-radius: 100%; }

/* ---------- overlays ---------- */
.curtain { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.curtain i { display: block; background: var(--sun); transform: translateY(101%); border-top-right-radius: 60% 22%; }
.curtain i:nth-child(2) { background: var(--sun-r); }
.curtain.in i { transition: transform .5s var(--ease-io); transform: translateY(0); border-top-right-radius: 0 0; }
.curtain.in i:nth-child(2) { transition-delay: .05s; }
.curtain.in i:nth-child(3) { transition-delay: .1s; }
.curtain.out i { transition: transform .6s var(--ease-io); transform: translateY(-101%); }
.curtain.out i:nth-child(2) { transition-delay: .05s; }
.curtain.out i:nth-child(3) { transition-delay: .1s; }
.curtain-label { position: fixed; inset: 0; z-index: 121; display: grid; place-items: center; pointer-events: none; font-family: var(--f-display); font-weight: 800; font-stretch: 120%; text-transform: uppercase; color: var(--on-sun); font-size: clamp(1.6rem, 1rem + 3vw, 3.4rem); opacity: 0; transition: opacity .2s; text-align: center; padding-inline: 20px; }
.curtain-label.on { opacity: 1; transition-delay: .3s; }

.lb { position: fixed; inset: 0; z-index: 110; background: rgba(8, 7, 6, .94); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; color: #F4EFE8; }
.lb.open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lb-top, .lb-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px; }
.lb-bot { padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); }
.lb-stage { position: relative; display: grid; place-items: center; padding-inline: clamp(8px, 5vw, 90px); min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-stage img.flip { transition: transform .55s var(--ease); }
.lb .icon-btn { border-color: rgba(244, 239, 232, .25); color: #F4EFE8; }
.lb .icon-btn:hover { border-color: #F4EFE8; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--gutter); } .lb-next { right: var(--gutter); }
.lb .mono { color: rgba(244, 239, 232, .7); }

.modal { position: fixed; inset: 0; z-index: 105; background: var(--shade); display: grid; place-items: center; padding: var(--gutter); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.modal.open { opacity: 1; visibility: visible; transition: opacity .3s; }
.modal-card { width: min(1100px, 100%); max-height: calc(100vh - 2 * var(--gutter)); overflow: auto; background: var(--bg); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(20px, 3vw, 40px); transform: translateY(20px) scale(.98); transition: transform .5s var(--ease); overscroll-behavior: contain; }
.modal.open .modal-card { transform: none; }
.bs-head { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-bottom: 28px; }
.bs-head .bt-logo { aspect-ratio: 1; background: var(--paper); border-radius: 12px; border-top-right-radius: 40% 40%; display: grid; place-items: center; }
.bs-head .bt-logo img { width: 72%; height: 72%; object-fit: contain; }
.bs-head h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); line-height: .95; }
.bs-head p { color: var(--fg-2); margin-top: 8px; max-width: 60ch; }

.cmdk { position: fixed; inset: 0; z-index: 115; background: var(--shade); display: grid; justify-items: center; align-items: start; padding: 12vh var(--gutter) 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.cmdk.open { opacity: 1; visibility: visible; transition: opacity .25s; }
.cmdk-box { width: min(640px, 100%); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .45); transform: translateY(-10px); transition: transform .4s var(--ease); }
.cmdk.open .cmdk-box { transform: none; }
.cmdk input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 20px 22px; font: inherit; font-size: 1.1rem; color: var(--fg); outline: none; }
.cmdk input::placeholder { color: var(--fg-3); }
.cmdk ul { max-height: min(56vh, 460px); overflow: auto; padding: 8px; }
.cmdk li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; cursor: pointer; }
.cmdk li[aria-selected="true"] { background: var(--bg-3); }
.cmdk li small { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.cmdk .empty { padding: 22px; color: var(--fg-3); }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: .78rem; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 130; transform: translate(-50%, 30px); opacity: 0; background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; transition: .45s var(--ease); pointer-events: none; display: flex; gap: 10px; align-items: center; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

.cursor { position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: .82rem; transform: translate3d(-200px, -200px, 0) scale(0); transition: transform .35s var(--ease), opacity .3s; opacity: 0; }
.cursor.on { opacity: 1; }

/* ---------- reveal motion ---------- */
.js [data-r] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-r].in { opacity: 1; transform: none; }
.js [data-r="clip"] { opacity: 1; transform: none; clip-path: inset(14% 0 0 0 round 6px); transition: clip-path 1.3s var(--ease-io); }
.js [data-r="clip"].in { clip-path: inset(0 0 0 0 round 0); }
.js [data-split] .w > span { transform: translateY(108%); }
.js [data-split].in .w > span { transform: none; transition: transform 1s var(--ease) calc(var(--i, 0) * 55ms + var(--d, 0s)), font-stretch .5s var(--ease); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav > a, .nav-work > a { padding: .55em .65em; font-size: .9rem; }
  .kbd-btn .lbl { display: none; }
  .snap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap > div { border-bottom: 1px solid var(--line); }
  .snap > div:nth-child(2n) { border-right: 0; }
  .snap .snap-cta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; border-bottom: 0; }
  .meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meta > div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
  .meta > div { border-bottom: 1px solid var(--line); }
  .meta .wide { grid-column: span 2; }
  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .tools > div { border-bottom: 1px solid var(--line); }
  .vids { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --head-h: 60px; }
  .nav, .head-tools .kbd-btn, .head-tools .hire-btn { display: none; }
  .menu-btn { display: grid; }
  .head-tools { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .mark { margin: 12px auto 0; width: min(72%, 340px); }
  .cards .card, .cards .card.s7, .cards .card.s5, .cards .card.s4, .cards .card.s8 { grid-column: span 12; }
  .card.s5 .card-media, .card.s4 .card-media { aspect-ratio: 4 / 3; }
  .card.s12 .card-media { aspect-ratio: 4 / 3; }
  .fit-panel { grid-template-columns: minmax(0, 1fr); }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); grid-template-columns: 90px minmax(0, 1fr); }
  .step .n { grid-row: span 2; font-size: 2.6rem; }
  .tl-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .metric:nth-child(even) { padding-left: clamp(14px, 3vw, 24px); border-left: 1px solid var(--line); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .chap-head { grid-template-columns: minmax(0, 1fr); }
  .chap-head > p { justify-self: start; }
  .story-row { grid-template-columns: minmax(0, 1fr); }
  .tldr { grid-template-columns: minmax(0, 1fr); }
  .tldr > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .g-grid { --cols: 2 !important; }
  .g-grid .span-3, .g-grid .span-4 { grid-column: span 2; }
  .g-browser { grid-template-columns: minmax(0, 1fr); }
  .lang { grid-template-columns: minmax(0, 1fr); }
  .cmp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site, .site:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .site:nth-child(even) .browser { order: 0; }
  .boards { grid-template-columns: minmax(0, 1fr); }
  .deliv { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .strengths, .contact-grid, .journey { grid-template-columns: minmax(0, 1fr); }
  .journey > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .about-hero { grid-template-columns: minmax(0, 1fr); }
  .about-hero .mark { margin: 0; width: min(60%, 260px); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .irow { grid-template-columns: 40px minmax(0, 1fr) 70px; }
  .irow .c2, .irow .c3 { display: none; }
  .bs-head { grid-template-columns: 96px minmax(0, 1fr); }
  .bs-head .close-x { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; }
}
@media (max-width: 640px) {
  .snap { grid-template-columns: minmax(0, 1fr); }
  .snap > div { border-right: 0; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metric:nth-child(even) { padding-left: 0; border-left: 0; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta > div:nth-child(3n+1) { padding-left: 16px; border-left: 1px solid var(--line); }
  .meta > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .meta .wide { grid-column: span 2; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools > div:nth-child(n) { padding-left: 0; border-left: 0; }
  .tools > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .g-grid { --cols: 1 !important; }
  .g-grid .span-2, .g-grid .span-3, .g-grid .span-4 { grid-column: span 1; }
  .deliv ol { columns: 1; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .lb-nav { display: none; }
  .bs-head { grid-template-columns: minmax(0, 1fr); }
  .bs-head .bt-logo { width: 110px; }
  .bs-head .close-x { grid-column: 1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-r], .js [data-r="clip"], .js [data-split] .w > span { opacity: 1; transform: none; clip-path: none; }
  .mq-track { animation: none; }
}

/* ---------- additions ---------- */
[hidden] { display: none !important; }
.cq { container-type: inline-size; }
.hero-btn { display: block; width: 100%; cursor: zoom-in; overflow: hidden; }
.js .mark:not(.ready):not(.static) .win { opacity: 0; transform: scale(.82); }
.js .mark:not(.ready):not(.static) .orbit { opacity: 0; }
.mark .win, .mark .orbit { transition: transform .9s var(--ease), opacity .8s var(--ease); }
.mark:not(.done) .win-j { transition-delay: .12s; }
.mark:not(.done) .win-n { transition-delay: .24s; }
.mark:not(.done) .orbit { transition-delay: .5s; }
.mark.static .win { animation: bob 5s var(--ease-io) infinite alternate; }
.mark.static .win-j { animation-delay: -1.6s; }
.mark.static .win-n { animation-delay: -3.2s; }
@keyframes bob { to { transform: translateY(-12px); } }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 999; }
.hero { isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; right: 0; top: 0; width: 55%; height: 90%; background: radial-gradient(closest-side, rgba(255, 166, 43, .12), transparent); pointer-events: none; }
.strip-track { scroll-padding-inline: var(--gutter); }
.bt-logo img { mix-blend-mode: multiply; }
.bt-logo.red img, .bs-head .bt-logo.red img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.bs-head .bt-logo img { mix-blend-mode: multiply; }
/* modern squared controls */
.btn { border-radius: 4px; padding: 1em 1.4em; letter-spacing: .01em; }
.btn-sun { box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.btn::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: currentColor; transition: width .45s var(--ease); }
.btn:not(.btn-sun):hover::after { width: 100%; }
.icon-btn, .orbit .arrow, .kbd-btn, .seg, .seg button, .views, .views button, .filt, .fit-tab, .chip, .avail, .faq summary i, .toast, .card .pill { border-radius: 4px !important; }
.seg, .views { padding: 3px; }
.cursor { border-radius: 6px; width: 96px; height: 40px; margin: -20px 0 0 -48px; }

/* recruiter lanes + case navigation */
.lanes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.lanes .mono { margin-right: 6px; }
.lane { padding: .7em 1.1em; border: 1px solid var(--line-2); border-radius: 4px; font-weight: 600; font-size: .92rem; transition: background-color .3s, color .3s, border-color .3s, transform .35s var(--ease); }
.lane:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-2px); }
.toc { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; margin-top: clamp(24px, 3vw, 40px); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.toc-in { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.toc-in::-webkit-scrollbar { display: none; }
.toc-in > * { flex: none; }
.toc-in .mono { margin-right: 10px; }
.toc button { padding: .5em .85em; border-radius: 4px; font-size: .86rem; color: var(--fg-2); transition: color .25s, background-color .25s; }
.toc button:hover { color: var(--fg); }
.toc button[aria-current="true"] { color: var(--on-sun); background: var(--sun); }
.toc-next { margin-left: auto; padding-left: 16px; font-size: .86rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.toc-next svg { width: 14px; }
.chap, #case-sum, #case-deliv { scroll-margin-top: 70px; }
/* non-interactive labels read as plain text, not buttons */
.chips { gap: 6px 16px; }
span.chip { border: 0 !important; padding: 0; border-radius: 0 !important; background: none; color: var(--fg-3); cursor: default; gap: 7px; }
span.chip::before { content: ''; width: 5px; height: 5px; background: var(--fg-3); border-top-right-radius: 100%; flex: none; }
a.chip { border: 1px solid var(--line-2); padding: .55em .9em; color: var(--fg) !important; transition: background-color .25s, color .25s, border-color .25s; }
a.chip:hover { background: var(--fg); color: var(--bg) !important; border-color: var(--fg); }
.avail { border: 0; padding: 0; border-radius: 0 !important; font-size: .9rem; }

/* cards with separate live-site links */
.card-link { display: grid; gap: 18px; align-content: start; }
.live-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.live-links .mono { margin-right: 4px; }
.live-links a { display: inline-flex; align-items: center; gap: 6px; padding: .5em .8em; border: 1px solid var(--line-2); border-radius: 4px; font-size: .84rem; font-weight: 600; transition: background-color .25s, color .25s, border-color .25s; }
.live-links a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.live-links svg, .browser-bar .url svg { width: 12px; height: 12px; }
.browser-bar .url { margin-left: 10px; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: .75rem; color: var(--fg-2); padding: 5px 10px; background: var(--bg-3); border-radius: 4px; overflow: hidden; white-space: nowrap; transition: color .25s; }
.browser-bar .url:hover { color: var(--accent); }
.site .btn { margin-top: 2px; }
.site-visit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.site-visit .mono { margin-right: 6px; }
/* buttons v3: black at rest, animated fill on hover */
:root { --btn-bg: #050505; --btn-fg: #F4EFE8; --btn-line: #3D3832; --btn-hover-ink: #18110A; }
:root[data-theme="light"] { --btn-bg: #111010; --btn-fg: #F7F5F1; --btn-line: #111010; }
.btn { isolation: isolate; overflow: hidden; transition: transform .35s var(--ease), color .45s var(--ease), border-color .45s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 1; transform: translateY(101%); transition: transform .55s var(--ease-io); }
.btn::after { display: none; }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn svg { transition: transform .45s var(--ease); }
/* primary: black → orange */
.btn-sun { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-line); box-shadow: none; }
.btn-sun::before { background: linear-gradient(180deg, var(--sun-1), var(--sun-3)); }
.btn-sun:hover, .btn-sun:focus-visible { color: var(--btn-hover-ink); border-color: var(--sun-2); }
/* secondary: as before (outline) → white fill */
.btn:not(.btn-sun)::before { background: #FFFFFF; }
.btn:not(.btn-sun):hover, .btn:not(.btn-sun):focus-visible { color: #111010; border-color: #FFFFFF; }
:root[data-theme="light"] .btn:not(.btn-sun):hover { border-color: #111010; }

/* everything that reacts on hover is now clickable */
.mq-item { color: inherit; transition: color .3s; }
.mq-item:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.cap { color: inherit; cursor: pointer; }
.cap-go { justify-self: start; margin-top: 6px; }
.cap-go svg { width: 14px; }
@media (max-width: 560px) { .caps { grid-template-columns: minmax(0, 1fr); } }

/* Work filtered by discipline: only that discipline's pieces */
.disc { padding-top: clamp(8px, 1.5vw, 20px); }
.dsites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2.4vw, 36px); }
.dsite { display: grid; gap: 16px; align-content: start; }
.dsite .browser .m { border-radius: 0; }
.dsite-meta h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.2rem, 1rem + .9vw, 1.8rem); line-height: 1; margin: 10px 0 6px; }
.dsite-meta p { color: var(--fg-2); font-size: .93rem; }
.dsite-go { display: flex; flex-wrap: wrap; gap: 10px; }
.dgrid { columns: 3 260px; column-gap: clamp(16px, 2vw, 28px); }
.dpiece { break-inside: avoid; margin: 0 0 clamp(24px, 2.6vw, 36px); display: grid; gap: 10px; }
.dpiece figcaption { display: grid; justify-items: start; gap: 10px; font-size: .88rem; }
.dpiece figcaption span { color: var(--fg-2); }
/* case study links are real buttons: boxed, orange fill slides up on hover */
.bt-go { justify-self: start; margin-top: 4px; }
.disc-rel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: clamp(40px, 5vw, 72px); padding-top: 22px; border-top: 1px solid var(--line); }
.disc-rel .mono { margin-right: 6px; }
.disc-rel .chip:hover { border-color: var(--fg); }
@media (max-width: 760px) { .dsites { grid-template-columns: minmax(0, 1fr); } }
/* lightbox: always fit the screen */
.lb-stage { overflow: hidden; }
.lb-stage img, .lb-stage video { width: auto !important; height: auto !important; max-width: min(100%, calc(100vw - 2 * var(--gutter))) !important; max-height: calc(100vh - 150px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important; max-height: calc(100dvh - 150px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important; object-fit: contain; }
@media (min-width: 641px) { .lb-stage img, .lb-stage video { max-width: calc(100vw - 2 * var(--gutter) - 130px) !important; } }

/* portfolio book */
.book { display: grid; gap: 18px; }
.book-stage { position: relative; aspect-ratio: 1815 / 1403; max-height: 78vh; margin-inline: auto; width: min(100%, calc(78vh * 1.294)); perspective: 2200px; border-radius: 6px; background: var(--bg-3); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.book-page { position: absolute; inset: 0; display: block; cursor: zoom-in; opacity: 0; visibility: hidden; transform-origin: 0 50%; border-radius: 6px; overflow: hidden; backface-visibility: hidden; }
.book-page img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.book-page.on { opacity: 1; visibility: visible; z-index: 2; }
.book-page.in-r { animation: pageInR .85s var(--ease) both; }
.book-page.in-l { animation: pageInL .85s var(--ease) both; }
.book-page.out-l { visibility: visible; z-index: 1; animation: pageOutL .7s var(--ease-io) both; }
.book-page.out-r { visibility: visible; z-index: 1; animation: pageOutR .7s var(--ease-io) both; }
@keyframes pageInR { from { opacity: 0; transform: rotateY(-28deg) translateX(6%); transform-origin: 100% 50%; } to { opacity: 1; transform: none; } }
@keyframes pageInL { from { opacity: 0; transform: rotateY(28deg) translateX(-6%); } to { opacity: 1; transform: none; } }
@keyframes pageOutL { from { opacity: 1; transform: none; } to { opacity: 0; transform: rotateY(-70deg); } }
@keyframes pageOutR { from { opacity: 1; transform: none; transform-origin: 100% 50%; } to { opacity: 0; transform: rotateY(70deg); transform-origin: 100% 50%; } }
.book-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.book-count { min-width: 220px; text-align: center; color: var(--fg-2); }
.book-count b { color: var(--fg); font-weight: 500; }
.book-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.book-thumb { flex: none; width: 112px; position: relative; border-radius: 4px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: opacity .3s, border-color .3s, transform .4s var(--ease); }
.book-thumb img { width: 100%; height: auto; display: block; background: #fff; }
.book-thumb span { position: absolute; left: 5px; bottom: 4px; font-family: var(--f-mono); font-size: .75rem; background: rgba(10, 9, 8, .75); color: #F4EFE8; padding: 2px 5px; border-radius: 3px; }
.book-thumb:hover { opacity: 1; transform: translateY(-3px); }
.book-thumb[aria-current="true"] { opacity: 1; border-color: var(--sun-2); }
@media (max-width: 640px) { .book-thumb { width: 84px; } .book-count { min-width: 0; order: -1; width: 100%; } }

/* résumé viewer on About */
.cv { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.cv-sheet { position: relative; display: block; width: 100%; max-width: 680px; justify-self: center; background: #fff; border-radius: 4px; overflow: hidden; cursor: zoom-in; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px var(--line); transform: perspective(1600px) rotateX(2deg) rotateY(-4deg); transition: transform .9s var(--ease), box-shadow .9s var(--ease); }
.cv-sheet:hover, .cv-sheet:focus-visible { transform: perspective(1600px) rotateX(0) rotateY(0) translateY(-6px); box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .75), 0 0 0 1px var(--sun-2); }
.cv-sheet img { width: 100%; height: auto; display: block; }
.cv-zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 4px; background: #111010; color: #F4EFE8; font-weight: 600; font-size: .85rem; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease); }
.cv-zoom svg { width: 14px; }
.cv-sheet:hover .cv-zoom, .cv-sheet:focus-visible .cv-zoom { opacity: 1; transform: none; }
.cv-side { position: sticky; top: 100px; display: grid; gap: 22px; }
.cv-facts { border-top: 1px solid var(--line); }
.cv-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.cv-facts dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding-top: 3px; }
.cv-facts dd { margin: 0; font-weight: 600; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 960px) { .cv { grid-template-columns: minmax(0, 1fr); } .cv-side { position: static; } .cv-sheet { transform: none; } .cv-zoom { opacity: 1; transform: none; } }

/* archive tiles: each piece on its own sheet */
.g-grid.tiles .m { aspect-ratio: 1; display: grid; place-items: center; background: #fff; }
.g-grid.tiles .m img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.g-grid.tiles .m:hover img { transform: scale(1.05); }
.g-grid.tiles .m { display: block; }
.g-grid.tiles .m img { position: absolute; inset: 0; }

/* brand pages */
.brand-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.bh-logo { aspect-ratio: 1; background: #fff; border-radius: 8px; border-top-right-radius: 36% 36%; display: grid; place-items: center; overflow: hidden; }
.bh-logo img { width: 70%; height: 70%; object-fit: contain; mix-blend-mode: multiply; }
.bh-logo.red { background: #D7363C; }
.bh-logo.red img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.toc a { padding: .5em .85em; border-radius: 4px; font-size: .86rem; color: var(--fg-2); white-space: nowrap; transition: color .25s, background-color .25s; }
.toc a:hover { color: var(--fg); }
.toc a[aria-current="true"] { color: var(--on-sun); background: var(--sun); }
.brand-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bn { display: grid; gap: 8px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line-2); border-radius: 6px; transition: background-color .35s, border-color .35s, transform .45s var(--ease); }
.bn b { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.05rem, .9rem + .7vw, 1.5rem); line-height: 1.05; }
.bn svg { width: 13px; height: 13px; vertical-align: -2px; }
.bn:hover { border-color: var(--fg); transform: translateY(-3px); }
.bn-mid { text-align: center; }
.bn-next { text-align: right; }
.brand-tile.flash .bt-logo { box-shadow: 0 0 0 3px var(--sun-2); }
@media (max-width: 960px) { .brand-hero { grid-template-columns: minmax(0, 1fr); } .bh-logo { width: min(100%, 360px); } .brand-nav { grid-template-columns: minmax(0, 1fr); } .bn-mid, .bn-next { text-align: left; } }

/* packaging: artwork + product pairs */
.packs { display: grid; gap: clamp(48px, 6vw, 88px); }
.pack { display: grid; gap: 20px; }
.pack-head { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 32px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 18px; }
.pack-head h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.2rem, 1rem + .9vw, 1.8rem); line-height: 1.05; }
.pack-head p { color: var(--fg-2); max-width: 60ch; }
.pack-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 22px); align-items: stretch; }
.pack-pair .fig { grid-template-rows: 1fr auto; }
.pack-pair .m { height: 100%; display: grid; place-items: center; }
.pack-art { background: #fff; }
.pack-art img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.pack-shot img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .pack-head { grid-template-columns: minmax(0, 1fr); } .pack-pair { grid-template-columns: minmax(0, 1fr); } }
/* artwork floats on the theme background: no white panels */
.pack-art { background: transparent !important; }
.pack-art img { padding: 0 !important; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .28)); }
.g-grid.tiles .m { background: transparent !important; }
.g-grid.tiles .m img { padding: 4% !important; }

/* Selected Identity showcase banner */
.showcase { display: grid; gap: 14px; }
.sc-stage { position: relative; aspect-ratio: 16 / 8; border-radius: 8px; border-top-right-radius: min(22%, 260px) min(44%, 260px); overflow: hidden; background: var(--bg-3); isolation: isolate; }
.sc-slide { position: absolute; inset: 0; display: block; clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease-io); }
.sc-slide.on { clip-path: inset(0 0 0 0); z-index: 2; }
.sc-slide.was { clip-path: inset(0 0 0 0); z-index: 1; }
.sc-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.sc-slide.on img { transform: scale(1); }
.sc-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 3vw, 36px); display: grid; gap: 6px; color: #F4EFE8; background: linear-gradient(0deg, rgba(10, 9, 8, .85), rgba(10, 9, 8, 0)); }
.sc-cap .mono { color: rgba(244, 239, 232, .75); }
.sc-cap b { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1.6rem, 1rem + 3vw, 3.6rem); line-height: .95; transform: translateY(14px); opacity: 0; transition: transform .9s var(--ease) .35s, opacity .6s .35s; }
.sc-slide.on .sc-cap b { transform: none; opacity: 1; }
.sc-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .45s var(--ease); }
.sc-go svg { width: 14px; }
.sc-slide:hover .sc-go, .sc-slide:focus-visible .sc-go { opacity: 1; transform: none; }
.sc-bar { display: flex; align-items: center; gap: 10px; }
.sc-dots { flex: 1; display: flex; gap: 6px; }
.sc-dot { flex: 1; height: 26px; display: grid; align-items: center; }
.sc-dot i { display: block; height: 3px; border-radius: 3px; background: var(--line-2); position: relative; overflow: hidden; }
.sc-dot i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--sun-1), var(--sun-3)); transform-origin: 0 50%; transform: scaleX(0); }
.sc-dot.on i::after { transform: scaleX(1); }
.sc-dot.on.run i::after { animation: scFill var(--dur, 4200ms) linear both; }
@keyframes scFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sc-dot:hover i { background: var(--fg-3); }
.bt-logo.dark, .bh-logo.dark { background: #0B0A09; }
.bt-logo.dark img, .bh-logo.dark img { mix-blend-mode: normal; width: 86%; height: 86%; }
@media (max-width: 640px) { .sc-stage { aspect-ratio: 4 / 3; } .sc-pause { display: none; } }

/* showcase: portrait pieces sit whole on a blurred copy of themselves */
.sc-slide { width: 100%; text-align: left; cursor: pointer; }
.sc-bg { position: absolute; inset: 0; overflow: hidden; }
.sc-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.2) brightness(.55); transform: scale(1.2) !important; }
.sc-slide > img { position: relative; z-index: 1; }
.sc-slide.fit > img { object-fit: contain; padding: clamp(14px, 2.5vw, 34px) clamp(14px, 2.5vw, 34px) clamp(70px, 9vw, 120px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.sc-cap { z-index: 2; }

/* brand pages: titles that fit, accents never clipped, applications with context */
.split .w { padding-top: .16em; margin-top: -.16em; }
.brand-hero .case-title { font-size: clamp(2.2rem, 10.5cqi, 6.4rem); overflow-wrap: break-word; hyphens: manual; }
.apps { display: grid; gap: clamp(40px, 5vw, 72px); }
.app { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); align-items: center; }
.app:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.app:nth-child(even) .m { order: 2; }
.app-txt { display: grid; gap: 10px; align-content: center; }
.app-txt h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.3rem, 1rem + 1.2vw, 2.1rem); line-height: 1; }
.app-txt p { color: var(--fg-2); max-width: 48ch; }
.app .m { border-radius: 6px; }
.app:only-child { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .app, .app:nth-child(even) { grid-template-columns: minmax(0, 1fr); } .app:nth-child(even) .m { order: 0; } }

/* transparent brand marks on the theme background */
.bt-logo.clean, .bh-logo.clean { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.bt-logo.clean img, .bh-logo.clean img { mix-blend-mode: normal; }
.brand-tile:hover .bt-logo.clean { box-shadow: inset 0 0 0 1px var(--fg-3); }
.bt-logo.paper, .bh-logo.paper { background: #fff; }
.lg-l { display: none !important; }
:root[data-theme="light"] .lg-l { display: block !important; }
:root[data-theme="light"] .lg-d { display: none !important; }

.lang-btn { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; font-weight: 500; }

/* banners are view-only */
.sc-slide { cursor: default; }
.win { cursor: default; }
/* collection: logo viewer + link to the full case study */
.brand-tile { gap: 10px; }
.brand-tile .bt-logo { width: 100%; cursor: zoom-in; }
.bt-more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.bt-more:hover { background-size: 100% 1px; }
.bt-more svg { width: 13px; height: 13px; }
.lv { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.lv .close-x { position: absolute; top: 0; right: 0; z-index: 2; }
.lv-stage { aspect-ratio: 1; border-radius: 10px; border-top-right-radius: 34% 34%; display: grid; place-items: center; overflow: hidden; }
.lv-stage img { width: 76%; height: 76%; object-fit: contain; }
.lv-info { display: grid; gap: 14px; align-content: center; padding-right: 40px; }
.lv-info h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem); line-height: .95; }
.lv-info > p:not(.mono) { color: var(--fg-2); max-width: 46ch; }
.lv-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .lv { grid-template-columns: minmax(0, 1fr); } .lv-stage { width: min(100%, 360px); justify-self: center; } .lv-info { padding-right: 0; } }

/* ================= Palette v2: beige / neutral / navy / ink + orange accent =================
   Contrast rules (WCAG): orange #F18532 is never text on light grounds (2.2–2.5:1); it is a fill, a shape,
   a button hover and text only on navy (5.6:1) or ink (7.5:1). Text on orange is always ink or navy.
   Navy and ink never pair as text/background (1.3:1) but work as neighbouring bands. */
:root, :root[data-theme="light"] {
  --bg: #FCFAF7; --bg-2: #F2EADF; --bg-3: #EAE0D2;
  --fg: #000E1C; --fg-2: #3E4C5B; --fg-3: #5F6B79;
  --line: #E7E0D6; --line-2: #D6CCBE;
  --accent: #A34A0B;
  --sun-1: #F6A04F; --sun-2: #F18532; --sun-3: #E0661C;
  --sun: linear-gradient(180deg, #F6A04F, #E0661C); --sun-r: linear-gradient(180deg, #E0661C, #F6A04F);
  --num-fill: linear-gradient(180deg, #CF5E17 10%, #A33A0A 95%);
  --on-sun: #000E1C;
  --glass: rgba(252, 250, 247, .86); --shade: rgba(0, 14, 28, .5);
  --btn-bg: #000E1C; --btn-fg: #FCFAF7; --btn-line: #000E1C; --btn-hover-ink: #000E1C;
  --band-hero: #F2EADF; --band-neutral: #F2EADF; --band-navy: #072A4D; --band-ink: #000E1C;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000E1C; --bg-2: #051A2F; --bg-3: #0A2440;
  --fg: #FCFAF7; --fg-2: #C3CEDA; --fg-3: #8FA1B5;
  --line: #12283E; --line-2: #1E3954;
  --accent: #F18532;
  --num-fill: linear-gradient(180deg, #FFB36B 10%, #F18532 95%);
  --glass: rgba(0, 14, 28, .8); --shade: rgba(0, 0, 0, .6);
  --btn-bg: #000913; --btn-fg: #FCFAF7; --btn-line: rgba(252, 250, 247, .3); --btn-hover-ink: #000E1C;
  --band-hero: #021529; --band-neutral: #031628; --band-navy: #072A4D; --band-ink: #000811;
  color-scheme: dark;
}
.band { background: var(--bg); color: var(--fg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); position: relative; }
section.band.sec, section.band.sec-tight { padding-top: clamp(64px, 8vw, 128px) !important; padding-bottom: clamp(64px, 8vw, 128px) !important; }
section.band.chap { padding-bottom: clamp(56px, 7vw, 112px); }
.band-hero { --bg: var(--band-hero); --bg-2: #FCFAF7; --bg-3: #E8DDCD; --line: #E2D6C5; --line-2: #D2C3AE; }
.band-neutral { --bg: var(--band-neutral); --bg-2: #FCFAF7; --bg-3: #E8DDCD; --line: #E2D6C5; --line-2: #D2C3AE; }
.band-base { --bg: #FCFAF7; }
:root[data-theme="dark"] .band-hero { --bg-2: #062038; --bg-3: #0B2946; --line: #12283E; --line-2: #1E3954; }
:root[data-theme="dark"] .band-neutral { --bg-2: #072039; --bg-3: #0B2946; --line: #12283E; --line-2: #1E3954; }
:root[data-theme="dark"] .band-base { --bg: #000E1C; }
.band-navy, .foot { --bg: var(--band-navy); --bg-2: #0B3560; --bg-3: #0E3E6E; --fg: #FCFAF7; --fg-2: #C3CEDA; --fg-3: #8FA1B5;
  --line: rgba(252, 250, 247, .14); --line-2: rgba(252, 250, 247, .26); --accent: #F18532;
  --num-fill: linear-gradient(180deg, #FFB36B 10%, #F18532 95%); --btn-bg: #000E1C; --btn-line: rgba(252, 250, 247, .35); color-scheme: dark; }
.foot { --bg: var(--band-ink); --bg-2: #06192C; --bg-3: #0A2238; background: var(--bg); color: var(--fg); border-top: 0; }
.band-navy .lg-l, .foot .lg-l { display: none !important; }
.band-navy .lg-d, .foot .lg-d { display: block !important; }
.marquee.band { padding-block: 26px; border-block: 0; }
.marquee .mq-item:nth-child(even) { -webkit-text-stroke-color: var(--fg-3); }
.marquee .mq-item:hover { color: var(--sun-2); -webkit-text-stroke-color: var(--sun-2); }
.head.solid { background: var(--glass); }
.hero::before { background: radial-gradient(closest-side, rgba(241, 133, 50, .16), transparent); }
.glow { opacity: .35; }
.metric { border-color: var(--line); }
.btn-sun::before { background: linear-gradient(180deg, #F6A04F, #F18532); }
.btn-sun:hover, .btn-sun:focus-visible { color: var(--btn-hover-ink); border-color: #F18532; }
.btn:not(.btn-sun)::before { background: #FCFAF7; }
:root[data-theme="light"] .band:not(.band-navy) .btn:not(.btn-sun):hover { border-color: #000E1C; }
.btn:not(.btn-sun):hover, .btn:not(.btn-sun):focus-visible { color: #000E1C; }
.fit-tab[aria-selected="true"], .filt[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.fit-panel::before { background: radial-gradient(circle, rgba(241, 133, 50, .16), transparent 65%); }
.toc { background: var(--glass); }
.card .pill { background: #FCFAF7; color: #000E1C; }
::selection { background: #F18532; color: #000E1C; }
.toc button[aria-current="true"], .toc a[aria-current="true"], .seg button[aria-pressed="true"] { color: #000E1C !important; background: #F18532; }

/* logos never sit on a filled tile */
.card-media.logo { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.card-media.logo img { object-fit: contain; padding: 10%; }
.m.logo { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.m.logo img { padding: 8%; }

/* top navigation: a pill tint plus an underline that grows on hover */
.nav > a::after, .nav-work > a::after { content: ''; position: absolute; left: .9em; right: .9em; bottom: .32em; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav > a:hover, .nav-work > a:hover, .nav-work.open > a { color: var(--fg); background: color-mix(in srgb, var(--fg) 9%, transparent); }
.nav > a:hover::after, .nav > a:focus-visible::after, .nav-work > a:hover::after, .nav-work.open > a::after { transform: scaleX(1); }
.nav > a[aria-current="page"]::after, .nav-work > a[aria-current="page"]::after { transform: scaleX(1); }

/* light theme: the discipline bar is orange with ink type instead of blue */
:root[data-theme="light"] .marquee.band-navy { --bg: #F18532; --fg: #000E1C; --fg-2: #2A1A0C; --fg-3: #000E1C; color-scheme: light; }
:root[data-theme="light"] .marquee .mq-item .q { background: #000E1C; }
:root[data-theme="light"] .marquee .mq-item:hover { color: #FCFAF7; -webkit-text-stroke-color: #FCFAF7; }

/* Work dropdown in the top bar: a compact list of the essential categories */
.nav-work { display: flex; position: relative; }
.nav > a, .nav-work > a { white-space: nowrap; }
.nav-work > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-work > a::before { content: ''; order: 2; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav-work.open > a::before { transform: translateY(1px) rotate(-135deg); }
.mega { --bg: #FCFAF7; --bg-2: #F2EADF; --fg: #000E1C; --fg-2: #3E4C5B; --line: #E7E0D6; --line-2: #D6CCBE;
  position: absolute; top: 100%; left: -6px; min-width: 240px; padding-top: 10px; transform: translateY(8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s; color: var(--fg); z-index: 60; }
:root[data-theme="dark"] .mega { --bg: #051A2F; --bg-2: #0A2440; --fg: #FCFAF7; --fg-2: #C3CEDA; --line: #12283E; --line-2: #1E3954; }
.nav-work.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .25s, transform .35s var(--ease), visibility 0s; }
.mega-in { list-style: none; margin: 0; padding: 8px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 24px 50px -24px rgba(0, 14, 28, .45); display: grid; gap: 2px; }
.nav .mega a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: .6em .8em; border-radius: 5px; font-size: .92rem; font-weight: 500; color: var(--fg); white-space: nowrap; transition: background-color .2s, padding .3s var(--ease); }
.nav .mega a:hover, .nav .mega a:focus-visible { background: color-mix(in srgb, #F18532 24%, transparent); padding-left: 1.05em; }
.mega-all { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.nav .mega-all a { font-weight: 700; }
.nav .mega-all a:hover { background: #F18532; color: #000E1C; }
.mega-all svg { width: 14px; height: 14px; }

/* brand-colored bands */
.brand-colored .glow { display: none; }
.brand-colored .bh-logo, .brand-colored .bh-logo.clean { background: #FCFAF7; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.brand-colored .bh-logo .lg-l { display: block !important; }
.brand-colored .bh-logo .lg-d { display: none !important; }
.brand-colored .bh-logo.dark { background: #0B0A09; }
.brand-colored .crumb a, .brand-colored .crumb { color: var(--fg-2); }
.brand-colored .sc-stage { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.brand-page .head { background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.brand-page .head { color: var(--fg); }
.brand-page .head .nav a { color: var(--fg-2); }
.brand-page .head .nav a[aria-current="page"] { background: var(--bg-3); color: var(--fg); }
.brand-page .head .brand-name small { color: var(--fg-2); }
.brand-page .toc { box-shadow: 0 0 0 100vmax transparent; border-color: var(--line); }
.foot.brand-colored { background: var(--bg); color: var(--fg); }

/* Haunted Car Wash ember accents */
.band-hero.ember { background: radial-gradient(60% 70% at 92% 8%, rgba(255, 106, 31, .38), transparent 60%), radial-gradient(55% 60% at 4% 96%, rgba(227, 38, 47, .34), transparent 62%), var(--bg); box-shadow: 0 0 0 100vmax var(--bg); }
.haunted .q { background: linear-gradient(180deg, #FF9A3D, #E3262F); }
.haunted .chap-head h2, .haunted .story-row h3 { text-shadow: 0 0 34px rgba(255, 90, 31, .28); }
.haunted .toc button[aria-current="true"] { background: #FF6A1F; }
.haunted .sc-dot.on i::after, .haunted .strip-bar i { background: linear-gradient(90deg, #FF9A3D, #E3262F); }
.haunted .tldr h3, .haunted .chap-head .mono { color: var(--accent); }
.haunted .m, .haunted .film { box-shadow: 0 30px 70px -40px rgba(227, 38, 47, .55); }

.haunted .ember-orange .chap-head .mono, .haunted .ember-orange .tldr h3, .haunted .ember-orange .q { color: #000E1C; }
.haunted .ember-orange .chap-head h2, .haunted .ember-orange .story-row h3 { text-shadow: none; }
.haunted .ember-orange .q { background: #000E1C; }
.haunted .ember-orange .strip-bar i { background: #000E1C; }

/* Merchfuel three greens */
.mf-greens .q, .mf-greens .sc-dot.on i::after, .mf-greens .strip-bar i { background: #3AAA35; }
.mf-greens [data-mf="neon"] .q { background: #061308; }
.mf-greens .toc button[aria-current="true"], .mf-greens .seg button[aria-pressed="true"] { background: #3AAA35 !important; color: #061308 !important; }
.mf-greens [data-mf="neon"] .seg button[aria-pressed="true"] { background: #061308 !important; color: #DDF0D9 !important; }
.mf-greens .btn-sun::before { background: #3AAA35; }
.mf-greens .btn-sun:hover { border-color: #3AAA35; }
.mf-greens .cmp-badge { background: #061308; }

/* header always wears the hero color of the page */
:root[data-theme="light"] .head.solid, :root[data-theme="light"] .head { background: color-mix(in srgb, var(--band-hero) 92%, transparent); }
:root[data-theme="dark"] .head.solid, :root[data-theme="dark"] .head { background: color-mix(in srgb, var(--band-hero) 92%, transparent); }
.head { backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.brand-page .head, .brand-page .head.solid { background: var(--glass); }
/* Orange Grove citrus */
.og-citrus .q, .og-citrus .sc-dot.on i::after, .og-citrus .strip-bar i { background: #F7941D; }
.og-citrus [data-og="orange"] .q, .og-citrus [data-og="orange"] .strip-bar i { background: #1E3A17; }
.og-citrus .toc button[aria-current="true"] { background: #F7941D !important; color: #1A1206 !important; }
.og-citrus .btn-sun::before { background: #F7941D; }
.og-citrus .car { color: #1E3A17; }
.og-citrus [data-og="leaf"] .car { color: #F7941D; }
body.brand-page .head, body.brand-page .head.solid { background: var(--glass) !important; }
/* the header mark switches to one ink or cream color where the gradient would get lost */
.head.mark-ink .brand-mark path { fill: #000E1C; }
.head.mark-light .brand-mark path { fill: #FCFAF7; }
/* on dark brand sections logos use their light-on-dark version */
:root[data-theme] .brand-dark :not(.bh-logo) > .lg-l { display: none !important; }
:root[data-theme] .brand-dark :not(.bh-logo) > .lg-d { display: block !important; }

/* solid highlight orange for big display words: dark orange on light grounds, bright orange on dark ones */
:root, :root[data-theme="light"] { --hl: #C4580F; }
:root[data-theme="dark"], .band-navy, .foot { --hl: #F18532; }
/* Work filtered by a category: the category name is the page title */
.phead .h1.cat { font-size: clamp(2.6rem, 7.4cqi, 7.5rem); overflow-wrap: anywhere; }

/* ===== audit fixes ===== */
/* phones: the brand subtitle steps aside so the menu and language buttons always fit */
@media (max-width: 560px) {
  .brand-name small { display: none; }
  .brand-name { font-size: .9rem; }
  .head-in { gap: 10px; }
  .head-tools { gap: 6px; }
}
@media (max-width: 360px) { .brand-name { display: none; } }

/* phones: anything you tap is at least 40px tall */
@media (max-width: 760px) {
  .filt, .views button, .seg button, .toc button, .toc a, .brand-strip a, .btn-sm, .bt-go, .crumb a, .lane, .fit-tab, .chip[href], a.chip, .foot a, .mega a, .mnav-cats a, .live-links a, .site-visit a, .url { min-height: 40px; display: inline-flex; align-items: center; }
  .icon-btn, .lb-nav, [data-dir] { min-width: 40px; min-height: 40px; }
  .sc-dot { min-height: 40px; display: inline-flex; align-items: center; }
}

/* mobile menu: the work categories sit right under Work */
.mnav-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 18px; }
.mnav-cats a { padding: .55em .9em; border: 1px solid var(--line-2); border-radius: 4px; font-size: .9rem; font-weight: 600; color: var(--fg); transition: background-color .2s, border-color .2s; }
.mnav-cats a:hover, .mnav-cats a:focus-visible { background: #F18532; border-color: #F18532; color: #000E1C; }

/* recruiter quick actions on phones: résumé and contact always one tap away */
.quickbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: none; gap: 8px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -18px rgba(0, 14, 28, .5); transform: translateY(140%); transition: transform .5s var(--ease); }
.quickbar .btn { flex: 1; justify-content: center; min-height: 44px; }
.quickbar.on { transform: none; }
@media (max-width: 760px) { .quickbar { display: flex; } }

/* pieces, logos and sites enter one after another */
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k, 0) * 45ms); }
.stagger.in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .stagger > * { opacity: 1; transform: none; transition: none; } }
@media (max-width: 420px) { .mnav a.big { font-size: 10.5vw; } }

/* Julian's logotype, exactly as supplied: color version on light grounds, white version on dark ones */
.brand-logo { display: block; }
.bl { display: flex; align-items: center; gap: 12px; }
.bl img { display: block; width: auto; }
.bl-mark { height: 40px; }
.bl-word { display: none !important; }
.bl-name { height: 21px; }
.bl-white { display: none; }
:root[data-theme="dark"] .head .bl-color { display: none; }
:root[data-theme="dark"] .head .bl-white { display: flex; }
.head.on-dark .bl-color { display: none !important; }
.head.on-dark .bl-white { display: flex !important; }
.head.on-light .bl-color { display: flex !important; }
.head.on-light .bl-white { display: none !important; }
@media (max-width: 560px) {
  .bl-mark { height: 34px; }
  .bl-name { height: 17px; }
}
@media (max-width: 340px) { .bl-name { display: none !important; } }
/* the full logotype signs the footer */
.foot-logo { display: block; width: clamp(150px, 16vw, 210px); height: auto; margin-bottom: clamp(28px, 4vw, 48px); }

/* Home hero: the full logotype, color version on light, white version on dark */
.hero-logo { margin-bottom: clamp(20px, 2.6vw, 34px); }
.hero-logo img { display: block; width: clamp(140px, 14vw, 200px); height: auto; }
.hero-logo .hl-white { display: none; }
:root[data-theme="dark"] .hero-logo .hl-color { display: none; }
:root[data-theme="dark"] .hero-logo .hl-white { display: block; }
