/* Signal: true black, near-white text, a red-orange accent (--sand is the
   accent token's name from the first palette). */
:root {
  --bg: #090909;
  --bg-2: #111111;
  --bg-3: #191919;
  --line: #262626;
  --text: #f4f4f2;
  --muted: #9a9a96;
  --dim: #5c5c58;
  --sand: #ff5a36;
  --bg-rgb: 9, 9, 9;         /* --bg as numbers, for see-through layers */
  --text-rgb: 244, 244, 242; /* --text as numbers */
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

/* Alternative colourways to compare on the local preview (the picker in
   js/common.js, or ?theme=<name>). Only the colour tokens change. */
:root[data-theme="graphite"] {
  --bg: #0b0d10; --bg-2: #12161b; --bg-3: #1a1f26; --line: #262d36;
  --text: #e7ecf1; --muted: #8e99a6; --dim: #56606c; --sand: #9fb7cc;
  --bg-rgb: 11, 13, 16; --text-rgb: 231, 236, 241;
}
:root[data-theme="espresso"] {
  --bg: #120d0a; --bg-2: #1a1310; --bg-3: #231a15; --line: #33271f;
  --text: #f1e7da; --muted: #a8968a; --dim: #6c5c51; --sand: #d08a5c;
  --bg-rgb: 18, 13, 10; --text-rgb: 241, 231, 218;
}
:root[data-theme="bone"] {
  --bg: #0d0c0b; --bg-2: #151412; --bg-3: #1d1b19; --line: #2c2a27;
  --text: #ece7df; --muted: #9a948a; --dim: #5f5a53; --sand: #c9bba2;
  --bg-rgb: 13, 12, 11; --text-rgb: 236, 231, 223;
}
:root[data-theme="moss"] {
  --bg: #0d0f0b; --bg-2: #141811; --bg-3: #1c2117; --line: #2a3023;
  --text: #ece9d9; --muted: #9c9b88; --dim: #5f6152; --sand: #c2cc8c;
  --bg-rgb: 13, 15, 11; --text-rgb: 236, 233, 217;
}
.theme-pick { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(var(--bg-rgb), .8); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.theme-pick button { padding: 6px 10px; border-radius: 99px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.theme-pick button i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.theme-pick button.on { background: var(--text); color: var(--bg); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fine film grain over everything. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--sand); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.kicker { color: var(--muted); margin: 0 0 18px; }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--muted); vertical-align: middle; margin-right: 12px; }
h2 { font-weight: 500; font-size: clamp(36px, 5.4vw, 84px); line-height: 1; letter-spacing: -.035em; margin: 0; }
:focus-visible { outline: 1px solid var(--sand); outline-offset: 4px; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  transition: transform .5s var(--ease), background .4s, backdrop-filter .4s;
}
.site-header.solid { background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.logo b { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--text); border-radius: 50%; font-size: 12px; letter-spacing: .04em; font-weight: 600; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 36px); font-size: 14px; }
.site-header nav a { color: var(--muted); position: relative; transition: color .3s; }
.site-header nav a:hover, .site-header nav a.active { color: var(--text); }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.site-header nav a:hover::after, .site-header nav a.active::after { transform: scaleX(1); transform-origin: left; }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  --h: 0;
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end; padding: 0 var(--pad) 12vh; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .42; filter: saturate(.55) contrast(1.05);
  transform: scale(calc(1.06 + var(--h) * .12));
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-rgb), .5) 0%, rgba(var(--bg-rgb), .1) 40%, var(--bg) 100%); }
.hero-content { position: relative; transform: translateY(calc(var(--h) * -90px)); opacity: calc(1 - var(--h) * 1.3); }
.hero .eyebrow { color: var(--muted); margin: 0 0 22px; animation: rise 1s var(--ease) .05s both; }
.hero h1 {
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(54px, 13.5vw, 230px); line-height: .84; letter-spacing: -.055em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; animation: up 1.2s var(--ease) both; }
.hero h1 .line:nth-child(2) { padding-left: .6em; color: var(--sand); }
.hero-foot { display: flex; align-items: center; gap: 28px; margin-top: 30px; animation: rise 1s var(--ease) .6s both; }
.hero .based { color: var(--muted); margin: 0; }
.scroll-cue { position: absolute; right: var(--pad); bottom: 12vh; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 70px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--text); animation: drip 1.8s var(--ease) infinite; }
@keyframes up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---- Services marquee --------------------------------------------------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; white-space: nowrap; }
.marquee-run { display: inline-flex; align-items: center; gap: 40px; animation: slide 38s linear infinite; }
.marquee span { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(30px, 4.2vw, 60px); line-height: 1; }
/* Outlined words: the letter is filled with the page colour and ringed by
   1px shadows, which follow the letter's outer shape only (a text stroke
   would also trace the font's overlapping pieces inside letters like D). */
.marquee span:nth-of-type(even) {
  color: var(--bg);
  text-shadow: 1px 0 var(--text), -1px 0 var(--text), 0 1px var(--text), 0 -1px var(--text),
    .7px .7px var(--text), -.7px .7px var(--text), .7px -.7px var(--text), -.7px -.7px var(--text);
}
.marquee i { font-style: normal; color: var(--dim); font-size: 18px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- Worked with -------------------------------------------------------- */
.clients { padding: 9vh var(--pad) 0; display: grid; grid-template-columns: 1fr 3fr; gap: 28px; align-items: baseline; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.clients li {
  font-size: clamp(22px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2;
  color: var(--dim); transform: translateY(14px); opacity: 0;
  transition: color .6s, opacity .9s var(--ease), transform .9s var(--ease);
}
.clients li:not(:last-child)::after { content: "/"; color: var(--line); margin: 0 .45em; font-weight: 300; }
.clients.in li { opacity: 1; transform: none; color: var(--text); }
.clients li sup { font-size: 10px; letter-spacing: .1em; color: var(--sand); margin-left: .35em; vertical-align: super; }
.clients li:hover { color: var(--sand); }

/* ---- Statement --------------------------------------------------------- */
.statement { padding: 18vh var(--pad) 22vh; max-width: 1320px; }
.statement .lead { margin: 0; font-size: clamp(28px, 4.1vw, 62px); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; }
.statement .word { opacity: .16; transition: opacity .35s; }
.statement .word.lit { opacity: 1; }

/* ---- Section heads ----------------------------------------------------- */
.section-head { padding: 0 var(--pad); text-align: center; margin-bottom: 4vh; }
.section-head .kicker::before { display: none; }

/* ---- Timeline ---------------------------------------------------------- */
.timeline { position: relative; padding: 8vh var(--pad) 16vh; }
.spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.spine-fill { display: block; width: 100%; height: 100%; background: linear-gradient(var(--text), var(--sand)); transform-origin: top; transform: scaleY(0); }

.entry {
  --gap: clamp(90px, 14vw, 240px);
  --reach: calc(var(--gap) / 2);
  --b: 0; --m: 0; --t: 0; --y: 0px;
  position: relative; display: grid; grid-template-columns: 1fr var(--gap) 1fr;
  align-items: center; padding: 8vh 0;
}
.entry.right .media { grid-column: 3; grid-row: 1; justify-self: start; }
.entry.right .text { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }
.entry.left .media { grid-column: 1; grid-row: 1; justify-self: end; }
.entry.left .text { grid-column: 3; grid-row: 1; justify-self: start; }

.entry .media { position: relative; cursor: pointer; transform: translateY(var(--y)); }
.entry.wide .media { width: min(34vw, 600px); }
.entry.box .media { width: min(29vw, 490px); }
.entry.tall .media { width: min(calc(64vh * 9 / 16), 24vw, 360px); }

.branch { position: absolute; top: 50%; width: var(--reach); height: 1px; background: var(--text); transform: scaleX(var(--b)); }
.right .branch { right: 100%; transform-origin: left; }
.left .branch { left: 100%; transform-origin: right; }
.node {
  position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--text);
  transform: translate(-50%, -50%) scale(min(1, calc(var(--b) * 5)));
}
.node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--sand); opacity: var(--m); }
.right .node { left: calc(-1 * var(--reach)); }
.left .node { left: calc(100% + var(--reach)); }

.right .frame { clip-path: inset(0 calc((1 - var(--m)) * 100%) 0 0); }
.left .frame { clip-path: inset(0 0 0 calc((1 - var(--m)) * 100%)); }
.entry .frame video { transform: scale(calc(1.18 - var(--m) * .18)); }

.entry .text { max-width: 400px; opacity: var(--t); }
.right .text { transform: translateX(calc((1 - var(--t)) * -40px)); }
.left .text { transform: translateX(calc((1 - var(--t)) * 40px)); }
.text .num { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .06em; margin: 0 0 18px; }
.text .client { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); margin: 0 0 8px; }
.text h3 { font-size: clamp(26px, 2.7vw, 42px); line-height: 1.05; letter-spacing: -.03em; font-weight: 500; margin: 0 0 16px; }
.text .blurb { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.did .label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.did ul { list-style: none; padding: 0; margin: 10px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.right .did ul { justify-content: flex-end; }
.did li { border: 1px solid var(--line); border-radius: 99px; padding: 5px 13px; font-size: 14px; }
.watch { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 0 0 4px; border-bottom: 1px solid var(--text); transition: color .3s, border-color .3s; }
.watch:hover { color: var(--sand); border-color: var(--sand); }
.actions { display: flex; gap: 26px; align-items: baseline; }
.right .actions { justify-content: flex-end; }
.watch.ext { color: var(--muted); border-color: var(--line); }
.lb-out { margin: -14px 0 34px; }
.lb-out:empty { display: none; }
.more {
  display: table; margin: 10vh auto 0; position: relative; z-index: 1; background: var(--bg);
  border: 1px solid var(--text); border-radius: 99px; padding: 16px 30px; font-size: 15px;
  transition: background .35s, color .35s;
}
.more:hover { background: var(--text); color: var(--bg); }

/* ---- Video frame (shared) --------------------------------------------- */
.frame { position: relative; width: 100%; overflow: hidden; background: var(--bg-2); }
.frame video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.mark { position: absolute; width: 14px; height: 14px; border-color: rgba(var(--text-rgb), .75); border-style: solid; border-width: 0; transition: all .45s var(--ease); pointer-events: none; }
.mark.tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.mark.tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.mark.bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.mark.br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.hud {
  position: absolute; left: 32px; right: 32px; bottom: 10px; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: rgba(var(--text-rgb), .8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6); pointer-events: none;
}
[data-open]:hover .mark { width: 24px; height: 24px; }
[data-open]:hover .mark.tl, [data-open]:hover .mark.tr { top: 6px; }
[data-open]:hover .mark.bl, [data-open]:hover .mark.br { bottom: 6px; }
[data-open]:hover .mark.tl, [data-open]:hover .mark.bl { left: 6px; }
[data-open]:hover .mark.tr, [data-open]:hover .mark.br { right: 6px; }

/* ---- Capabilities ----------------------------------------------------- */
.capabilities { padding: 18vh var(--pad) 14vh; border-top: 1px solid var(--line); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8vh; border-top: 1px solid var(--line); }
.service {
  position: relative; padding: 34px 28px 40px 0; margin-right: 28px;
  opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.service:nth-child(2) { transition-delay: .1s; } .service:nth-child(3) { transition-delay: .2s; } .service:nth-child(4) { transition-delay: .3s; }
.service.in { opacity: 1; transform: none; }
.service::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--sand); transition: width .7s var(--ease); }
.service:hover::before { width: 100%; }
.service .num { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.service h3 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.025em; margin: 40px 0 14px; }
.service p { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.service .tools { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--sand); }


/* ---- About / toolkit ---------------------------------------------------- */
.about { padding: 12vh var(--pad) 18vh; display: grid; grid-template-columns: 1fr 2fr; gap: 28px; border-top: 1px solid var(--line); }
.about-text { grid-column: 2; margin: 0; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.35; letter-spacing: -.015em; max-width: 820px; }
.toolkit { grid-column: 2; list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.toolkit li { background: var(--bg-3); border-radius: 99px; padding: 9px 16px; color: var(--muted); }
.about .kicker { grid-row: 1; }

/* ---- Contact ------------------------------------------------------------ */
.contact { padding: 18vh var(--pad) 14vh; border-top: 1px solid var(--line); text-align: center; }
.contact .kicker::before { display: none; }
.contact .big {
  display: inline-block; margin-top: 7vh; text-transform: uppercase; font-family: var(--mono); font-weight: 300; font-size: clamp(15px, 2.9vw, 42px); letter-spacing: .12em;
  background: linear-gradient(var(--sand), var(--sand)) 0 100% / 0 1px no-repeat; padding-bottom: 6px; transition: background-size .6s var(--ease), color .4s;
}
.contact .big:hover { background-size: 100% 1px; color: var(--sand); }
.site-footer { display: flex; justify-content: space-between; padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--dim); }
.site-footer a:hover { color: var(--text); }

/* Generic reveal. */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Cursor label ------------------------------------------------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; }
.cursor span {
  display: grid; place-items: center; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%;
  background: var(--text); color: var(--bg); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  transform: scale(0); transition: transform .45s var(--ease);
}
.cursor.on span { transform: scale(1); }
html.lb-open .cursor span { transform: scale(0); }
@media (pointer: fine) { [data-open] { cursor: none; } }

/* ---- Lightbox ----------------------------------------------------------- */
html.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--text); overflow: auto;
}
.lightbox::backdrop { background: rgba(8, 8, 7, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lightbox[open]::backdrop { animation: fade .45s var(--ease); }
.lightbox.closing { animation: fadeout .28s ease forwards; }
.lightbox.closing::backdrop { animation: fadeout .28s ease forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
.lb-stage { min-height: 100%; display: grid; grid-template-columns: auto minmax(260px, 340px); gap: clamp(28px, 4vw, 64px); align-items: center; justify-content: center; padding: 8vh 5vw; }
.lb-frame { position: relative; background: #000; transform-origin: top left; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.lb-frame.wide { width: min(60vw, calc(82vh * 16 / 9)); }
.lb-frame.box { width: min(54vw, calc(82vh * 4 / 3)); }
.lb-frame.tall { width: calc(84vh * 9 / 16); }
.lb-frame video, .lb-frame iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.lb-info .lb-count { font-family: var(--mono); font-size: 12px; color: var(--dim); margin: 0 0 28px; }
.lb-info .lb-client { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); margin: 0 0 10px; }
.lb-info h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }
.lb-info .lb-about { color: var(--muted); margin: 18px 0 30px; }
.lb-info h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--dim); margin: 0 0 12px; }
.lb-roles { list-style: none; padding: 0; margin: 0 0 40px; }
.lb-roles li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.lb-roles li:last-child { border-bottom: 1px solid var(--line); }
.lb-nav { display: flex; gap: 22px; }
.lb-nav button, .lb-close { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.lb-nav button:hover, .lb-close:hover { color: var(--text); }
.lb-close { position: fixed; top: 22px; right: var(--pad); z-index: 2; }

/* Before / after (js/compare.js): raw left of the line, final right. */
.lb-ba { margin: -12px 0 30px; }
.lb-ba[hidden] { display: none; }
.lb-roles .ba-role { padding: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: color .3s; }
.lb-roles .ba-role span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); white-space: nowrap; }
.lb-roles .ba-role:hover, .lb-roles .ba-role.on { color: var(--sand); }
.lb-roles .ba-role.on span { color: var(--text); }
.did li.ba-chip { cursor: pointer; border-color: var(--sand); color: var(--sand); transition: background .3s, color .3s; }
.did li.ba-chip::after { content: " ↔"; }
.did li.ba-chip:hover, .did li.ba-chip:focus-visible { background: var(--sand); color: var(--bg); }
.compare { position: absolute; inset: 0; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.compare canvas { display: block; width: 100%; height: 100%; }
.cmp-line { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--text); box-shadow: 0 0 18px rgba(0, 0, 0, .55); pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 1px solid var(--text); background: rgba(var(--bg-rgb), .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); font-size: 15px; line-height: 1; transition: transform .3s var(--ease); }
.compare:focus-visible .cmp-knob, .compare:active .cmp-knob { transform: scale(1.12); }
.cmp-tag { position: absolute; top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); padding: 5px 10px; border-radius: 99px; background: rgba(var(--bg-rgb), .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; transition: opacity .3s; }
.cmp-tag.before { left: 16px; }
.cmp-tag.after { right: 16px; color: var(--sand); }
.cmp-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); pointer-events: none; transition: opacity .6s; }
.compare.touched .cmp-hint { opacity: 0; }

/* ---- Work page --------------------------------------------------------- */
.page-head { padding: 13vh var(--pad) 4vh; }
.page-head h1 { margin: 0; font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 7.5vw, 128px); line-height: .86; letter-spacing: -.055em; animation: rise 1.1s var(--ease) both; }
.page-head h1 em { text-transform: none; font-weight: 400; letter-spacing: -.02em; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4vh; }
.filters button { border: 1px solid var(--line); border-radius: 99px; padding: 9px 18px; font-size: 14px; color: var(--muted); transition: all .3s; }
.filters button sup { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.filters button:hover { color: var(--text); border-color: var(--muted); }
.filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters button.on sup { color: var(--bg); }
.grid { display: grid; grid-auto-rows: 4px; grid-auto-flow: row dense; column-gap: clamp(14px, 1.8vw, 28px); padding: 0 var(--pad) 14vh; }
.tile { margin: 0; cursor: pointer; align-self: start; transition: opacity .45s; animation: rise 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + .2s); }
.tile[hidden] { display: none; }
.grid.focus .tile:not(.hot) { opacity: .32; }
.tile:hover .frame video { transform: scale(1.04); }
.tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; }
.tile figcaption > div { display: flex; flex-direction: column; min-width: 0; }
.tile .client { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); }
.tile .title { font-size: 16px; font-weight: 500; margin-top: 3px; }
.tile .roles { font-family: var(--mono); font-size: 11px; color: var(--dim); text-align: right; flex-shrink: 0; max-width: 45%; }

/* ---- Tablet / phone ------------------------------------------------------ */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .about, .clients { grid-template-columns: 1fr; }
  .about-text, .toolkit { grid-column: 1; }
  .lb-stage { grid-template-columns: 1fr; justify-items: center; padding: 72px 20px 40px; }
  .lb-frame.wide, .lb-frame.box { width: 100%; }
  .lb-frame.tall { width: min(100%, calc(64vh * 9 / 16)); }
  .lb-info { width: 100%; max-width: 560px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .logo span { display: none; }
  .scroll-cue { display: none; }
  .hero h1 .line:nth-child(2) { padding-left: 0; }
  .spine { left: calc(var(--pad) + 8px); }
  .entry { --gap: 34px; --reach: calc(var(--gap) - 8px); grid-template-columns: var(--gap) 1fr; padding: 7vh 0; row-gap: 26px; }
  .entry.right .media, .entry.left .media { grid-column: 2; grid-row: 1; justify-self: start; }
  .entry.right .text, .entry.left .text { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; }
  .entry.wide .media, .entry.box .media { width: 100%; }
  .entry.tall .media { width: min(72%, 340px); }
  .entry .left .branch, .left .branch { left: auto; right: 100%; transform-origin: left; }
  .left .node { left: calc(-1 * var(--reach)); }
  .left .frame { clip-path: inset(0 calc((1 - var(--m)) * 100%) 0 0); }
  .left .text, .right .text { transform: translateY(calc((1 - var(--t)) * 24px)); }
  .right .did ul, .right .actions { justify-content: flex-start; }
  .services { grid-template-columns: 1fr; }
  .service h3 { margin-top: 18px; }
  .site-footer { flex-direction: column; gap: 10px; }
  .tile .roles { display: none; }
}

/* ---- Reduced motion: show everything, no scroll effects ------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html.still .entry { --b: 1; --m: 1; --t: 1; --y: 0px; }
html.still .spine-fill { transform: none !important; }
html.still .statement .word { opacity: 1; }
html.still .reveal, html.still .service, html.still .clients li { opacity: 1; transform: none; color: var(--text); }
html.still .marquee-run { animation: none; }
