/* Layout: studio-style 12-column editorial grid on warm plaster, black "night" bands for services and footer,
   one camera-red REC accent. Captions read like a camera's metadata strip. Single deliberate light look. */
:root {
  --canvas: #efeeeb;
  --canvas-2: #e6e4df;
  --ink: #0a0a0a;
  --mute: #85827a;
  --line: rgba(10, 10, 10, 0.14);
  --night: #0d0d0b;
  --night-ink: #edebe6;
  --night-mute: #8f8c85;
  --night-line: rgba(237, 235, 230, 0.16);
  --rec: #e0352b;

  --f-display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 3.5vw, 52px);
  --gap: clamp(12px, 1.6vw, 24px);
  --hdr: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --t-hero: clamp(50px, 7.2vw, 120px);
  --t-h2: clamp(44px, 6.6vw, 112px);
  --t-h3: clamp(30px, 3.6vw, 60px);
  --t-lead: clamp(24px, 2.7vw, 42px);
  --t-body: 16px;
  --t-small: 14px;
  --t-label: 11px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--canvas); }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--canvas); padding: 10px 14px; }
.skip:focus { top: 12px; }

.mono { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5; }
.label { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.night .label { color: var(--night-mute); }
.display { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.03em; line-height: 0.95; text-wrap: balance; }

.wrap { padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: clamp(56px, 7vw, 112px); position: relative; }
.night { background: var(--night); color: var(--night-ink); }

.rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); vertical-align: 1px; animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0.15; } }

/* ---------- Buttons / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); padding: 9px 14px; font-size: 12px; letter-spacing: 0.01em;
  background: transparent; transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
  padding: 15px 22px; background: var(--ink); color: var(--canvas); font-weight: 500; font-size: 14px;
  border: 1px solid var(--ink); transition: color 0.4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--canvas); transform: translateY(101%); transition: transform 0.45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn > * { position: relative; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--canvas); }
.night .btn { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.night .btn::before { background: var(--night); }
.night .btn:hover { color: var(--night-ink); }
.arrow { display: inline-block; transition: transform 0.4s var(--ease); }
/* Drawn arrows (iPhone turns the ↗ character into an emoji, so arrows are SVG). One shape, rotated per direction. */
.ico { display: inline-block; width: 0.82em; height: 0.82em; vertical-align: -0.06em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; overflow: visible; flex-shrink: 0; }
.ico--ne { transform: rotate(-45deg); }
.ico--down { transform: rotate(90deg); }
.ico--up { transform: rotate(-90deg); }
.ico--left { transform: rotate(180deg); }
.display .ico { stroke-width: 1.2; }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.45s var(--ease); padding-bottom: 1px; }
.ulink:hover, .ulink:focus-visible { background-size: 100% 1px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 400; background: var(--canvas); display: grid; place-items: center;
  animation: loader-failsafe 0.3s linear 6s forwards; /* if scripts never run, the loader still gets out of the way */
}
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader__word { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); font-family: var(--f-display); font-weight: 500; font-size: clamp(48px, 9vw, 132px); letter-spacing: -0.02em; line-height: 1; }
.loader__word > span { display: block; overflow: hidden; }
.loader__word > span > b { display: block; font-weight: inherit; }
.loader__frame { width: 0.82em; height: 1.04em; position: relative; overflow: hidden; background: var(--ink); }
.loader__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loader__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(24px, env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; }
.no-loader .loader { display: none; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: calc(var(--hdr) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--ink); transition: color 0.35s var(--ease), transform 0.5s var(--ease);
}
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s var(--ease), background 0.35s var(--ease);
  background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hdr.is-scrolled::before { opacity: 1; }
.hdr.is-dark { color: var(--night-ink); }
.hdr.is-dark::before { background: color-mix(in srgb, var(--night) 82%, transparent); }
.menu.is-open ~ .hdr::before, .hdr:has(+ .menu.is-open)::before { opacity: 0; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__mark { font-family: var(--f-body); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; justify-self: start; }
.hdr__rec { display: flex; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.hdr__rec .dim { opacity: 0.55; }
.hdr__menu { justify-self: end; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.hdr__menu i { display: block; width: 32px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.hdr__menu[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.hdr__menu[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.hdr__menu[aria-expanded="true"] { color: var(--night-ink); }

/* ---------- Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--night); color: var(--night-ink);
  padding: calc(var(--hdr) + env(safe-area-inset-top, 0px) + 4vh) var(--gutter) max(28px, env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-rows: 1fr auto; clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease); visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; justify-content: center; }
.menu__links a { font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 8vw, 104px); letter-spacing: -0.03em; line-height: 1.02; display: flex; align-items: baseline; gap: 18px; width: fit-content; }
.menu__links a sup { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--night-mute); font-weight: 400; }
.menu__links a:hover { font-style: italic; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; border-top: 1px solid var(--night-line); padding-top: 20px; }
.menu__foot div { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px)); }
.hero__grid { align-items: end; min-height: min(calc(100svh - var(--hdr) - 24px), 920px); }
.hero__text { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 28px; padding-bottom: 8px; min-width: 0; }
.hero__name { font-size: var(--t-hero); }
.hero__me { width: clamp(150px, 15vw, 250px); aspect-ratio: 0.72; overflow: hidden; background: var(--canvas-2); margin-bottom: 4px; }
.hero__me img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; }
.hero__name .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__name .ln > span { display: block; }
.hero__tag { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; max-width: 30ch; }
.hero__media { grid-column: 7 / span 6; position: relative; height: min(calc(100svh - var(--hdr) - 24px), 920px); min-height: 520px; overflow: hidden; background: var(--canvas-2); }
.hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__cap { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); font-variant-numeric: tabular-nums; }
.hero__foot { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; color: var(--mute); }

/* ---------- Intro ---------- */
/* Label sits level with the first line of text; the photo hangs at the bottom of the column so its
   caption lines up with the labels under the numbers. */
.intro__label { grid-column: 1 / span 3; grid-row: 1; padding-top: 0.6em; }
.intro__text { grid-row: 1; }
.facts { grid-row: 2; }
.intro__me { grid-column: 1 / span 3; grid-row: 1 / span 2; align-self: end; display: flex; flex-direction: column; gap: 14px; width: min(78%, 280px); }
.intro__img { aspect-ratio: 9 / 10; overflow: hidden; background: var(--canvas-2); }
.intro__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.06); }
.intro__me figcaption { color: var(--mute); }
.intro__text { grid-column: 4 / span 9; font-family: var(--f-display); font-weight: 500; font-size: var(--t-lead); line-height: 1.18; letter-spacing: -0.015em; max-width: 28em; text-wrap: pretty; }
.intro__text .w { color: var(--ink); }
.js-motion .intro__text .w { color: #b9b6ae; }
.facts { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.fact { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.fact b { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 4.6vw, 72px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- Developers marquee ---------- */
.devs { padding-block: clamp(32px, 4.5vw, 64px); border-block: 1px solid var(--line); overflow: hidden; }
.devs__label { text-align: center; margin-bottom: 26px; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; flex-shrink: 0; }
.dev { display: flex; align-items: center; flex-shrink: 0; height: clamp(56px, 6vw, 80px); padding-inline: clamp(24px, 3.2vw, 52px); font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.3vw, 34px); letter-spacing: -0.02em; white-space: nowrap; line-height: 1.1; }
.dev img { height: calc(var(--h) * 1px * var(--logo-scale, 1)); width: auto; max-width: none; }
.dev--note { color: var(--mute); }
@media (max-width: 860px) { .devs { --logo-scale: 0.72; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.shead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 56px); }
.shead h2 { font-size: var(--t-h2); }
.shead h2 sup { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; vertical-align: top; position: relative; top: 0.9em; margin-left: 10px; font-weight: 400; color: var(--mute); }
.shead p { max-width: 36ch; color: var(--mute); }
.night .shead p, .night .shead h2 sup { color: var(--night-mute); }

/* ---------- Work cards ---------- */
.work { padding-bottom: clamp(16px, 3vw, 48px); }
.cards { display: flex; flex-direction: column; }
.card { position: sticky; top: calc(var(--hdr) + env(safe-area-inset-top, 0px)); background: var(--canvas); border-top: 1px solid var(--ink); padding-block: 18px 40px; transform-origin: 50% 0; }
.card__link { display: block; }
.card__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; margin-bottom: 18px; }
.card__title { grid-column: 1 / span 8; font-family: var(--f-display); font-weight: 500; font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1; }
.card__cta { grid-column: 9 / span 4; justify-self: end; display: inline-flex; gap: 10px; align-items: center; font-weight: 500; font-size: 15px; }
.card__cta .roll { display: inline-block; height: 1.4em; overflow: hidden; }
.card__cta .roll span { display: block; line-height: 1.4; transition: transform 0.5s var(--ease); }
.card__link:hover .roll span, .card__link:focus-visible .roll span { transform: translateY(-100%); }
.card__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.card__media { grid-column: 1 / span 8; position: relative; aspect-ratio: 16 / 9.4; max-height: calc(100svh - var(--hdr) - 150px); width: 100%; overflow: hidden; background: var(--canvas-2); }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__media video { opacity: 0; transition: opacity 0.6s var(--ease), transform 1.2s var(--ease); }
.card__media video.is-playing { opacity: 1; }
.card__link:hover .card__media img, .card__link:hover .card__media video { transform: scale(1.03); }
.card__badge { position: absolute; left: 12px; top: 12px; display: inline-flex; gap: 8px; align-items: center; background: rgba(10, 10, 10, 0.55); color: #fff; padding: 6px 9px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card__side { grid-column: 9 / span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0; }
.card__summary { font-size: 15px; line-height: 1.5; }
.meta { display: grid; gap: 0; }
.meta div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-block: 9px; font-size: 13px; }
.meta div:last-child { border-bottom: 1px solid var(--line); }
.meta dt { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); padding-top: 2px; }

/* ---------- Index ---------- */
.idx { border-top: 1px solid var(--ink); }
.idx__head, .idx__row { display: grid; grid-template-columns: 2.4fr 1.6fr 1.4fr 1.4fr 24px; gap: var(--gap); align-items: center; }
.idx__head { padding-block: 12px; border-bottom: 1px solid var(--line); }
.idx__row { padding-block: 18px; border-bottom: 1px solid var(--line); position: relative; transition: padding 0.45s var(--ease), color 0.3s; }
.idx__row::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.45s var(--ease); z-index: -1; }
.idx li { position: relative; z-index: 0; }
.idx__row:hover, .idx__row:focus-visible { color: var(--canvas); padding-inline: 14px; }
.idx__row:hover::before, .idx__row:focus-visible::before { transform: scaleY(1); }
.idx__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.1vw, 32px); letter-spacing: -0.02em; line-height: 1.1; }
.idx__row .mono { font-variant-numeric: tabular-nums; }
.idx__go { justify-self: end; }
.peek { position: fixed; left: 0; top: 0; z-index: 80; width: clamp(220px, 22vw, 340px); aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden; opacity: 0; transform: scale(0.85); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); background: var(--canvas-2); }
.peek.is-on { opacity: 1; transform: scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Off the clock ---------- */
.oc__text { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.oc__text h2 { font-size: var(--t-h2); }
.oc__text p { max-width: 46ch; }
.oc__aside { grid-column: 8 / span 5; align-self: end; display: flex; flex-direction: column; gap: 14px; }
.oc__ig { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.oc__ig:last-child { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.oc__ig b { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; }
.strip { margin-top: clamp(40px, 6vw, 80px); display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 18px; scrollbar-width: none; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip.is-drag a { pointer-events: none; }
/* Off the clock photos and videos share one story-size card (9:16, rounded) so both strips feel the same. */
.shot { flex: 0 0 clamp(210px, 21vw, 310px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.shot__img { aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--canvas-2); transform: translateZ(0); }
.shot figcaption { flex-wrap: wrap; row-gap: 2px; }
.oc__group { margin-top: clamp(44px, 6vw, 84px); }
.oc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; border-top: 1px solid var(--ink); padding-top: 18px; }
.oc__sub { font-size: var(--t-h3); }
.oc__sub sup { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; vertical-align: top; position: relative; top: 0.5em; margin-left: 10px; font-weight: 400; color: var(--mute); }
.oc__note { color: var(--mute); max-width: 40ch; }
.oc__group .strip { margin-top: clamp(24px, 3vw, 40px); }
.clip { flex: 0 0 clamp(210px, 21vw, 310px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.clip .phone__screen { border-radius: 18px; }
.clip video { cursor: pointer; }
.shot__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); pointer-events: none; transition: transform 1s var(--ease); }
.shot:hover .shot__img img { transform: scale(1.04); }
.shot figcaption { display: flex; justify-content: space-between; gap: 10px; color: var(--mute); }
.strip__bar { margin: 6px var(--gutter) 0; height: 1px; background: var(--line); position: relative; }
.strip__bar i { position: absolute; left: 0; top: 0; height: 1px; width: 20%; background: var(--ink); }
.strip__hint { display: flex; justify-content: space-between; padding-inline: var(--gutter); margin-top: 12px; color: var(--mute); }

/* ---------- Feed (reels) ---------- */
.feed__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); max-width: 1280px; margin-inline: auto; }
.phone { display: flex; flex-direction: column; gap: 12px; }
.phone__screen { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 22px; background: var(--ink); }
.phone__screen video, .phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__sound { position: absolute; right: 12px; bottom: 12px; background: rgba(10, 10, 10, 0.55); color: #fff; padding: 8px 11px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 999px; }
.phone__cap { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); }
.phone__cap span:last-child { flex-shrink: 0; }
.feed__head { grid-column: 1 / -1; }
.feed__hint { display: none; justify-content: space-between; margin-top: 12px; color: var(--mute); }
.feed__bar { display: none; margin: 6px 0 0; }
.feed__grid.is-drag { cursor: grabbing; scroll-snap-type: none; }

/* ---------- Services (night) ---------- */
.svc { border-top: 1px solid var(--night-line); overflow-x: clip; }
.svc__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: clamp(26px, 3.2vw, 44px); border-bottom: 1px solid var(--night-line); align-items: start; }
.svc__row h3 { grid-column: 1 / span 5; font-family: var(--f-display); font-weight: 500; font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1; transition: transform 0.6s var(--ease); }
.svc__row:hover h3 { transform: translateX(14px); }
.svc__row p { grid-column: 7 / span 4; color: var(--night-ink); max-width: 44ch; }
.svc__row .mono { grid-column: 7 / span 5; color: var(--night-mute); margin-top: 16px; grid-row: 2; }

/* ---------- Experience ---------- */
.xp__list { border-top: 1px solid var(--ink); }
.xp__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: clamp(22px, 2.6vw, 36px); border-bottom: 1px solid var(--line); }
.xp__years { grid-column: 1 / span 2; color: var(--mute); padding-top: 0.5em; font-variant-numeric: tabular-nums; }
.xp__role { grid-column: 3 / span 5; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xp__role h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.02em; line-height: 1.08; }
.xp__role span { color: var(--mute); font-size: 14px; }
.xp__points { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.xp__points li { padding-left: 16px; position: relative; }
.xp__points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1px; background: var(--ink); }
.xp__more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 64px); }
.xp__more > div { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.xp__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Contact ---------- */
.contact__title { font-size: clamp(54px, 10vw, 168px); margin-top: 18px; }
.contact__grid { margin-top: clamp(40px, 6vw, 90px); align-items: start; }
.form { grid-column: 1 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px var(--gap); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; display: block; min-inline-size: 0; }
fieldset.field legend { float: left; width: 100%; margin-bottom: 12px; }
fieldset.field .pick { clear: both; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 8px 0 10px; border-radius: 0; width: 100%; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #a9a69e; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--rec); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label { cursor: pointer; text-transform: none; font-family: var(--f-body); font-size: 13px; letter-spacing: 0; color: var(--ink); border: 1px solid var(--line); padding: 9px 14px; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.pick input:checked + label { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.pick input:focus-visible + label { outline: 2px solid var(--rec); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { color: var(--mute); font-size: 13px; max-width: 44ch; }
.form__error { grid-column: 1 / -1; color: var(--rec); font-size: 14px; }
.ready { grid-column: 1 / -1; border: 1px solid var(--ink); padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.ready pre { font-family: var(--f-mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap; margin: 0; background: var(--canvas-2); padding: 16px; max-height: 260px; overflow: auto; }
.ready__row { display: flex; flex-wrap: wrap; gap: 10px; }
.direct { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 0; }
.direct__item { border-top: 1px solid var(--line); padding-block: 16px; display: flex; flex-direction: column; gap: 6px; }
.direct__item:last-child { border-bottom: 1px solid var(--line); }
.direct__val { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.direct__val span { font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.01em; user-select: all; overflow-wrap: anywhere; min-width: 0; }
.copy { flex-shrink: 0; border: 1px solid var(--line); padding: 6px 10px; }
.copy:hover { background: var(--ink); color: var(--canvas); }

/* ---------- Footer ---------- */
.ftr { padding: clamp(56px, 8vw, 112px) var(--gutter) max(28px, env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.ftr__line { font-family: var(--f-display); font-weight: 500; font-size: clamp(48px, 9.4vw, 156px); letter-spacing: -0.04em; line-height: 0.92; text-transform: uppercase; text-wrap: balance; }
.ftr__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(50px, 7vw, 100px); }
.ftr__cols > div { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--night-line); padding-top: 14px; min-width: 0; }
.ftr__cols a, .ftr__cols span { overflow-wrap: anywhere; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(40px, 5vw, 70px); color: var(--night-mute); }
.ftr__bottom > a { margin-left: auto; }

/* ---------- WhatsApp side tab ---------- */
.side-tab {
  position: fixed; right: 0; top: 50%; z-index: 70; transform: translateY(-50%); background: var(--ink); color: var(--canvas);
  writing-mode: vertical-rl; padding: 16px 10px; display: flex; align-items: center; gap: 10px; transition: padding 0.35s var(--ease);
  box-shadow: 0 0 0 1px var(--night-line);
}
.side-tab:hover { padding-right: 16px; }
.side-tab .rec { animation: none; background: #3fbf6a; }

/* ---------- Case study ---------- */
.case { position: fixed; inset: 0; z-index: 200; background: var(--canvas); overflow-y: auto; overscroll-behavior: contain; clip-path: inset(100% 0 0 0); }
.case.is-open { clip-path: inset(0 0 0 0); }
.case__bar {
  position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: calc(var(--hdr) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.case__back { justify-self: start; display: inline-flex; gap: 10px; align-items: center; font-weight: 500; font-size: 14px; }
.case__back .arrow { transform: rotate(180deg); }
.case__back:hover .arrow { transform: rotate(180deg) translateX(4px); }
.case__count { justify-self: end; font-variant-numeric: tabular-nums; }
.case__hero { padding-top: clamp(40px, 6vw, 90px); }
.case__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; gap: 24px var(--gap); }
.case__head .label { grid-column: 1 / -1; }
.case__title { grid-column: 1 / span 8; font-size: clamp(52px, 8.6vw, 148px); }
.case__summary { grid-column: 9 / span 4; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.case__cover { margin-top: clamp(28px, 4vw, 56px); aspect-ratio: 16 / 8.6; overflow: hidden; background: var(--canvas-2); max-height: 86svh; width: 100%; }
.case__cover img { width: 100%; height: 100%; object-fit: cover; }
.facts-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); margin-top: 22px; }
.facts-row > div { border-top: 1px solid var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; min-width: 0; }
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; padding-block: clamp(70px, 9vw, 140px); }
.story__lead { grid-column: 1 / span 4; font-family: var(--f-display); font-weight: 500; font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1; }
.story__cols { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.story__cols > div { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; line-height: 1.55; min-width: 0; }
.story--short .story__cols { grid-template-columns: minmax(0, 1fr); max-width: 60ch; }
.film { padding-bottom: clamp(60px, 8vw, 120px); }
.film__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 16px; }
.film__frame { position: relative; background: var(--ink); width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.film__frame--v { aspect-ratio: 9 / 16; width: min(100%, 440px); margin-inline: auto; }
.film__frame video { width: 100%; height: 100%; object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); padding-bottom: clamp(70px, 9vw, 140px); }
.gal { display: flex; flex-direction: column; gap: 10px; grid-column: span 6; min-width: 0; }
.gal--wide { grid-column: 1 / -1; }
.gal--inset { grid-column: 3 / span 8; }
.gal__img { overflow: hidden; background: var(--canvas-2); cursor: zoom-in; display: block; width: 100%; }
.gal__img img { width: 100%; height: auto; transition: transform 1.1s var(--ease); }
.gal__img:hover img { transform: scale(1.025); }
.gal figcaption { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.next { display: block; border-top: 1px solid var(--ink); padding-block: 24px clamp(40px, 6vw, 80px); }
.next__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.next__row .label { grid-column: 1 / -1; margin-bottom: 14px; }
.next__title { grid-column: 1 / span 7; font-size: clamp(44px, 7vw, 120px); transition: transform 0.6s var(--ease); }
.next:hover .next__title { transform: translateX(16px); }
.next__img { grid-column: 9 / span 4; aspect-ratio: 4 / 3; overflow: hidden; }
.next__img img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 260; background: rgba(10, 10, 10, 0.96); color: var(--night-ink); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb[hidden] { display: none; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 16px; }
.lb__stage { min-height: 0; height: 100%; padding-inline: var(--gutter); }
.lb__stage img { width: 100%; height: 100%; object-fit: contain; }
.lb__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px var(--gutter) max(16px, env(safe-area-inset-bottom, 0px)); color: var(--night-mute); }
.lb__nav button { color: var(--night-ink); padding: 8px 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .card__media { grid-column: 1 / span 8; }
  .card__side { grid-column: 9 / span 4; }
  .card__title { grid-column: 1 / span 8; }
  .card__no { display: none; }
  .svc__row h3 { grid-column: 1 / span 6; }
  .story__lead { grid-column: 1 / -1; }
  .story__cols { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --hdr: 58px; }
  .hdr__rec .hide-s { display: none; }
  .hero__grid { min-height: 0; row-gap: 32px; }
  .hero__text, .hero__media { grid-column: 1 / -1; }
  .hero__text { padding-top: 28px; }
  .hero__media { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .intro__label, .intro__text, .facts { grid-column: 1 / -1; }
  .intro__label { grid-row: 1; align-self: start; }
  .intro__me { grid-column: 7 / -1; grid-row: 1; align-self: start; width: 100%; margin-bottom: 32px; }
  .intro__text { grid-row: 2; }
  .facts { grid-row: 3; }
  .hero__me { width: 44%; }
  .shot, .clip { flex-basis: 62%; }
  .intro__label { margin-bottom: 18px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  /* Cards keep the sticky stacking on phones; the detail table moves into the case study to keep each card short. */
  .card { padding-block: 14px 28px; }
  .card .meta { display: none; }
  .card__side { gap: 0; }
  .card__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
  .card__media, .card__side { grid-column: 1 / -1; }
  .card__media { max-height: none; aspect-ratio: 4 / 3; }
  .card__side { margin-top: 18px; }
  .idx__head { display: none; }
  .idx__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .idx__row > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .idx__row > :nth-child(3) { display: none; }
  .idx__row > :nth-child(4) { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .idx__go { display: none; }
  .oc__text, .oc__aside { grid-column: 1 / -1; }
  .oc__aside { margin-top: 32px; }
  /* Swipeable row on phones. Snap to the left edge (like the Off the clock strips): centre snapping can't reach
     the last reel on iPhone Safari, which bounces back to the second one. */
  .feed__grid { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .feed__grid::-webkit-scrollbar { display: none; }
  .feed__grid::after { content: ""; flex: 0 0 1px; }
  .feed__grid { cursor: grab; padding-bottom: 18px; }
  .phone { flex: 0 0 64%; scroll-snap-align: start; }
  .feed__hint, .feed__bar { display: flex; }
  .feed__bar { display: block; }
  .svc__row h3, .svc__row p, .svc__row .mono { grid-column: 1 / -1; }
  .svc__row p { margin-top: 14px; }
  .svc__row .mono { grid-row: auto; }
  .xp__years, .xp__role, .xp__points { grid-column: 1 / -1; }
  .xp__years { padding-top: 0; margin-bottom: 6px; }
  .xp__points { margin-top: 14px; }
  .xp__more { grid-template-columns: minmax(0, 1fr); }
  .form, .direct { grid-column: 1 / -1; }
  .direct { margin-top: 48px; }
  .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .case__title, .case__summary { grid-column: 1 / -1; }
  .case__cover { aspect-ratio: 4 / 3; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .story__cols { grid-template-columns: minmax(0, 1fr); }
  .gal, .gal--inset { grid-column: 1 / -1; }
  .next__title, .next__img { grid-column: 1 / -1; }
  .next__img { margin-top: 20px; }
  .side-tab { display: none; }
}
@media (max-width: 520px) {
  .hdr { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; }
  .hdr__mark { font-size: 12px; letter-spacing: 0.02em; }
  .hdr__rec { gap: 6px; justify-self: center; }
  .hdr__rec .dim { display: none; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .hero__foot .hide-xs { display: none; }
  .meta div { grid-template-columns: 84px minmax(0, 1fr); }
}
@media (hover: none) {
  .peek { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html:not(.force-motion) .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  html:not(.force-motion) .marquee__set[aria-hidden="true"] { display: none; }
  html:not(.force-motion) .marquee__set { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  html:not(.force-motion) .card { position: relative; top: 0; }
}
