/* ============================================================
   DOMINIC STROHMEIER — PORTFOLIO
   Built on the TONEGRID Corporate Identity (V 1.0) and the
   TONESTYLES design system: Inter, monochrome + one signal,
   8 px base, 12 columns, hairline rules, square corners.
============================================================ */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* ink ramp — TONEGRID CI 03 */
  --black: #000000;
  --ink-700: #2A2B2E;
  --ink-500: #6B6D72;
  --ink-300: #A8ABB1;
  --ink-100: #DFE1E4;
  --paper: #F6F6F4;
  --white: #FFFFFF;
  --signal-light: #8B0000;   /* TONEGRID signal, on paper */
  --signal-dark: #D8261C;    /* TONESTYLES signal, on black */

  /* spacing scale — 8 / 16 / 24 / 48 / 112 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 48px; --s5: 112px;
  --margin: 20px;
  --section: 72px;
  --nav-h: 64px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-shutter: cubic-bezier(.77, 0, .18, 1);

  /* light surface (default) */
  --bg: var(--paper);
  --fg: var(--black);
  --muted: var(--ink-500);
  --rule: var(--ink-100);
  --rule-strong: var(--black);
  --panel: var(--white);
  --signal: var(--signal-light);
  --link: var(--signal-light);
}
@media (min-width: 900px) {
  :root { --margin: 48px; --section: 112px; }
}

[data-theme="dark"], .section--dark, .hero, .menu, .case, .lb {
  --bg: var(--black);
  --fg: var(--paper);
  --muted: var(--ink-300);
  --rule: var(--ink-700);
  --rule-strong: var(--paper);
  --panel: transparent;
  --signal: var(--signal-dark);
  --link: var(--paper);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
h1, h2, h3 { font-weight: 600; }
em { font-style: normal; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 12px 16px; background: var(--paper); color: var(--black);
  font: 500 13px var(--sans);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Primitives ---------- */
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--margin); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--strong, .label span { color: var(--fg); }

.dot {
  display: inline-block; width: 8px; height: 8px;
  margin-right: 10px;
  border-radius: 50%;            /* the live indicator is the one round thing in the system */
  background: var(--signal);
  vertical-align: 1px;
}

.link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--signal);
  text-underline-offset: 5px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn--paper { background: var(--paper); color: var(--black); }
.btn--outline { border: 1px solid currentColor; color: var(--fg); }
@media (hover: hover) {
  .btn--paper:hover { background: var(--white); }
  .btn--outline:hover { background: var(--fg); color: var(--bg); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 14px;
  border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }
@media (hover: hover) { .chip:not(.is-active):hover { border-color: var(--fg); color: var(--fg); } }

.icon-btn {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--rule);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn svg, .app__ico svg, .ba__line svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter;
}
@media (hover: hover) { .icon-btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); } }

.tag {
  position: absolute; bottom: 12px;
  padding: 6px 8px;
  background: var(--black); color: var(--paper);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.tag--left { left: 12px; }
.tag--right { right: 12px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.tags li {
  padding: 6px 10px;
  border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--s3);
  padding-inline: var(--margin);
  background: var(--bg);
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.nav.is-top { background: transparent; border-bottom-color: transparent; }
.nav__name {
  margin-right: auto;
  font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap;
}
.nav__links { display: none; gap: 28px; }
.nav__links a, .nav__menu {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.nav__links a { padding: 8px 0; }
.nav__links a.is-current { color: var(--fg); }
@media (hover: hover) { .nav__links a:hover { color: var(--fg); } }
.nav__cta {
  display: none; align-items: center;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--fg);
  font-size: 13px; font-weight: 500;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
@media (hover: hover) { .nav__cta:hover { background: var(--fg); color: var(--bg); } }
.nav__menu { height: 44px; padding: 0 0 0 16px; color: var(--fg); }
@media (min-width: 900px) {
  .nav__links { display: flex; margin-right: var(--s3); }
  .nav__cta { display: inline-flex; }
  .nav__menu { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--margin) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg); color: var(--fg);
  overflow-y: auto;
}
.menu a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: clamp(28px, 8.4vw, 48px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1;
}
.menu a span { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; color: var(--muted); }
.menu .label { margin-top: 32px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  background: var(--black); color: var(--fg);
  overflow: hidden;
}
.hero__media, .hero__scrim, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(calc(var(--zoom, 1) * 1.07));
  transition: opacity 1.6s var(--ease), transform 9s linear;
  will-change: opacity, transform;
}
.hero__slide.is-active { opacity: 1; transform: scale(var(--zoom, 1)); }
.hero__scrim { background: var(--black); opacity: .46; }

/* shutter: two bars open like a letterbox on load */
.hero__bar {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--black);
  z-index: 1;
  display: none;
  transition: transform 1.5s var(--ease-shutter) .1s;
}
.js .hero__bar { display: block; }
.hero__bar--top { top: 0; transform-origin: top; }
.hero__bar--bottom { bottom: 0; transform-origin: bottom; }
.is-loaded .hero__bar { transform: scaleY(0); }

.hero__inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--nav-h) + 20px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}
.hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.hero__top .label, .hero__frame .label { color: var(--ink-100); }
.hero__bottom { display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) {
  .hero__inner { padding-bottom: 48px; }
  .hero__bottom { grid-template-columns: minmax(0, 1fr) 220px; }
}

.display {
  font-size: clamp(46px, 9.4vw, 156px);
  font-weight: 600;
  line-height: .93;
  letter-spacing: -.052em;
}
.display .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.display .line > span { display: block; }
.js .display .line > span { transform: translateY(112%); transition: transform 1.2s var(--ease); }
.js .display .line:nth-child(1) > span { transition-delay: .55s; }
.js .display .line:nth-child(2) > span { transition-delay: .67s; }
.is-loaded .display .line > span { transform: none; }

.hero__lede {
  max-width: 44ch;
  margin-top: 28px;
  font-size: clamp(16px, 1.35vw, 20px); line-height: 1.45; letter-spacing: -.01em;
  color: var(--paper);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.js .rise { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) 1s, transform 1s var(--ease) 1s; }
.js .hero__actions.rise { transition-delay: 1.1s; }
.js .hero__frame.rise { transition-delay: 1.25s; }
.is-loaded .rise { opacity: 1; transform: none; }

.hero__frame { display: none; }
@media (min-width: 900px) { .hero__frame { display: block; } }
.hero__ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 14px; }
.hero__ticks i { position: relative; height: 1px; background: var(--ink-500); }
.hero__ticks i::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.hero__ticks i.is-done::after { transform: scaleX(1); }
.hero__ticks i.is-active::after { animation: tick var(--slide-ms, 6000ms) linear forwards; }
@keyframes tick { to { transform: scaleX(1); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); background: var(--bg); color: var(--fg); }

.sec-head {
  display: grid; gap: 12px;
  padding-top: 20px; margin-bottom: 40px;
  border-top: 1px solid var(--rule-strong);
}
.sec-head h2 {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(26px, 3.1vw, 42px); line-height: 1.05; letter-spacing: -.035em;
}
.num {
  flex: none;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .2em;
  transform: translateY(-.55em);
}
.sec-note { max-width: 40ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: var(--s3); margin-bottom: 72px; }
  .sec-note { justify-self: end; text-align: right; padding-top: 6px; }
}

.lede {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 400; line-height: 1.16; letter-spacing: -.03em;
  max-width: 24em;
}
.lede--sm { font-size: clamp(20px, 2vw, 28px); line-height: 1.25; letter-spacing: -.022em; max-width: 26em; }
.body { max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--muted); }

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

/* ---------- Reach ---------- */
.reach { border-top: 1px solid var(--rule); }
.reach__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: 40px; }
.reach__num {
  /* sized to span the column edge to edge; --reach-em is the number's width in em ("60,000,000+" = 5.82) */
  font-size: min(231px, calc((100vw - 2 * var(--margin)) / var(--reach-em, 5.82)));
  font-weight: 600; line-height: .9; letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.reach__plus { display: inline-block; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reach.is-counting .reach__plus { opacity: 0; transform: translateY(.12em); }
.reach__cap { margin-top: 20px; font-size: clamp(20px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
.reach__cap span { color: var(--muted); }
.reach__grid { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; margin-top: 48px; }
.reach__grid i { aspect-ratio: 1 / 1; border: 1px solid var(--rule); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.reach__grid i.is-on { background: var(--fg); border-color: var(--fg); }
.reach__key { margin-top: 12px; }
.reach__body { display: grid; gap: 48px; margin-top: 72px; }
.reach__side { display: grid; gap: 40px; align-content: center; }
.reach__side .btn { justify-self: start; }

/* the Reel: a 9:16 screen that opens like the hero shutter, then plays while it's on screen */
.reelcard { width: min(100%, 460px); }
.reelcard__screen { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink-700); outline: 1px solid var(--rule); }
.reelcard__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reelcard__top { position: absolute; top: 12px; left: 12px; right: 68px; display: flex; flex-wrap: wrap; gap: 6px; }
.reelcard__top span {
  padding: 6px 8px; background: var(--black); color: var(--paper);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.reelcard__top .dot { width: 6px; height: 6px; margin-right: 8px; }
.reelcard__controls { position: absolute; top: 12px; right: 12px; display: grid; gap: 6px; }
.reelcard__btn { width: 44px; height: 44px; display: grid; place-items: center; background: var(--black); color: var(--paper); transition: background-color .2s var(--ease), color .2s var(--ease); }
.reelcard__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }
.reelcard__btn .i-play path { fill: currentColor; }
.reelcard__btn .i-sound, .reelcard__btn .i-play,
.reelcard__btn[aria-pressed="true"] .i-muted, .reelcard__btn.is-paused .i-pause { display: none; }
.reelcard__btn[aria-pressed="true"] .i-sound, .reelcard__btn.is-paused .i-play { display: block; }
@media (hover: hover) { .reelcard__btn:hover { background: var(--paper); color: var(--black); } }
.reelcard__stats { position: absolute; left: 12px; right: 12px; bottom: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.reelcard__stats > div { padding: 10px 10px 9px; background: var(--black); color: var(--paper); }
.reelcard__stats dt { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-300); }
.reelcard__stats dd { margin-top: 6px; font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.reelcard__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink-700); }
.reelcard__bar i { display: block; height: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.reelcard figcaption { display: grid; gap: 4px; margin-top: 16px; }
.reelcard figcaption b { font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.reelcard figcaption span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.reelcard figcaption .link { justify-self: start; margin-top: 8px; font-size: 14px; }
.js .reelcard.reveal { opacity: 1; transform: none; }
.js .reelcard.reveal .reelcard__screen { clip-path: inset(22% 0 22% 0); transition: clip-path 1.6s var(--ease-shutter); }
.js .reelcard.reveal video { transform: scale(1.18); transition: transform 2.4s var(--ease); }
.js .reelcard.reveal figcaption { opacity: 0; transition: opacity 1s var(--ease) .9s; }
.js .reelcard.reveal.is-in .reelcard__screen { clip-path: inset(0); }
.js .reelcard.reveal.is-in video { transform: none; }
.js .reelcard.reveal.is-in figcaption { opacity: 1; }
.reach__stats { display: grid; gap: 24px; align-content: start; }
.reach__stats > div { padding-top: 16px; border-top: 1px solid var(--rule); }
.reach__stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.reach__stats dd { margin: 20px 0 6px; font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.reach__stats p { font-size: 14px; color: var(--muted); }
@media (min-width: 620px) { .reach__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .reach__top { margin-bottom: 56px; }
  .reach__grid { grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 8px; margin-top: 64px; }
  .reach__body { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; margin-top: 96px; }
  .reach__body--reel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
}

/* ---------- 01 Profile ---------- */
.profile { display: grid; gap: 48px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; align-content: start; }
.spec dt, .meta dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.spec dt { margin-bottom: 8px; }
.spec dd { font-size: 16px; line-height: 1.45; }
.spec dd span { color: var(--muted); }
@media (min-width: 900px) {
  .profile { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s3); }
  .spec { padding-left: 24px; padding-top: 8px; }
}

/* ---------- 02 Client work ---------- */
.reel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.reel-nav { display: flex; align-items: center; gap: 8px; }
.reel-nav .label { margin-right: 12px; }

.reel {
  --reel-h: clamp(300px, 58vh, min(620px, calc((100vw - 2 * var(--margin)) * 1.25)));
  --reel-pad: max(var(--margin), calc((100vw - 1440px) / 2 + var(--margin)));
  position: relative;
  display: flex; align-items: flex-start; gap: 24px;
  padding-inline: var(--reel-pad);
  scroll-padding-inline: var(--reel-pad);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
}
.reel::-webkit-scrollbar { display: none; }
.reel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.reel:focus-visible { outline-offset: -2px; }
.frame { flex: none; scroll-snap-align: start; }
/* a framed photo: the box clips, the photo covers it and carries its own focal point and zoom */
.crop { display: block; overflow: hidden; background: var(--ink-700); }
.crop img, .crop video { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame .crop { position: relative; }
.frame__tag {
  position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 7px;
  padding: 5px 8px; background: var(--black); color: var(--paper);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; pointer-events: none;
}
.frame__tag::before { content: ""; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

.frame .crop { height: var(--reel-h); }
.frame img { user-select: none; -webkit-user-drag: none; }
.frame--45 .crop { aspect-ratio: 4 / 5; }
.frame--11 .crop { aspect-ratio: 1 / 1; }
.frame--32 .crop { aspect-ratio: 3 / 2; }
/* on phones a 3:2 frame would outgrow the screen, so it crops to the square module */
@media (max-width: 700px) { .frame--32 .crop { aspect-ratio: 1 / 1; height: auto; width: calc(100vw - 2 * var(--margin)); } }
.frame figcaption {
  display: flex; flex-wrap: wrap; gap: 2px 12px;
  width: 0; min-width: 100%;   /* captions wrap inside the frame instead of widening it */
  margin-top: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.frame figcaption b { font-weight: 500; color: var(--fg); }
.frame figcaption em { flex-basis: 100%; padding-left: calc(2ch + .28em + 12px); }

.clients { margin-top: 64px; }
.clients > .label { margin-bottom: 16px; }
/* client logos: 3 in a row on phones, 5 from tablet up, sliding left to right */
.logos { --per: 3; container-type: inline-size; overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .logos { --per: 5; } }
.logos__track { display: flex; width: max-content; animation: logos-slide calc(var(--n, 6) * 3.2s) linear infinite; }
.logos__group { display: flex; margin: 0; padding: 0; list-style: none; }
.logos__item { flex: none; display: grid; place-items: center; width: calc(100cqi / var(--per)); height: 96px; padding: 0 20px; }
.logos__item img { display: block; max-width: 100%; max-height: 40px; width: auto; height: auto; object-fit: contain; user-select: none; }
.logos__item.is-mono img { filter: brightness(0); opacity: .86; }
[data-theme="dark"] .logos__item.is-mono img, .section--dark .logos__item.is-mono img { filter: brightness(0) invert(1); }
.logos__item span { font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (min-width: 900px) { .logos__item { height: 128px; padding: 0 32px; } .logos__item img { max-height: 52px; } }
@media (hover: hover) { .logos:hover .logos__track { animation-play-state: paused; } }
@keyframes logos-slide { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (min-width: 900px) { .clients { margin-top: 88px; } }

/* ---------- Projects ---------- */
.project { display: grid; gap: 40px; }
.wordmark { width: min(100%, 620px); height: auto; margin-bottom: 32px; }
.meta > div {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.meta > div:last-child { border-bottom: 1px solid var(--rule); }
.meta dd { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .project { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: calc(var(--s3) * 4); align-items: end; }
}

.split { display: grid; gap: 40px; margin-top: 56px; }
.stack { display: grid; gap: 24px; align-content: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; margin-top: 88px; }
  .split--app { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.panel { padding: 24px; border: 1px solid var(--rule); background: var(--panel); }
.panel > .label { margin-bottom: 16px; }

.index li {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 8px; align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.index li > span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.index b { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.index em { grid-column: 2; font-size: 13px; color: var(--muted); }
@media (min-width: 560px) {
  .index li { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .index em { grid-column: auto; text-align: right; }
}

/* before / after */
.ba { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-100); }
.ba__layer { position: absolute; inset: 0; overflow: hidden; }
.ba__layer--after { clip-path: inset(0 0 0 var(--pos)); }
.ba__img { width: 100%; height: 100%; object-fit: cover; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--paper); }
.ba__line i {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--black);
}
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0;
  cursor: ew-resize; touch-action: pan-y;
  -webkit-appearance: none; appearance: none;
}
.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--signal); outline-offset: 3px; }
.ba-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }

/* colour ramp */
.ramp { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--rule); border-bottom: 0; }
.ramp div { height: 104px; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.ramp b, .ramp span, .ramp-signal b, .ramp-signal span { font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ramp b, .ramp-signal b { font-weight: 500; }
.ramp span { opacity: .7; }
.ramp-signal { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; background: var(--signal-light); color: var(--white); }
@media (max-width: 560px) {
  .ramp { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ramp div { height: 72px; }
  .ramp div:last-child { grid-column: span 2; }
  .ramp-signal span { white-space: normal; text-align: right; }
}

/* ---------- 04 Tonestyles — app screen ---------- */
.app {
  --a-ink: #0D0D0D; --a-paper: #F4F3EF; --a-grey: #5F5F5C; --a-hair: #D9D8D4;
  width: 100%; max-width: 400px;
  padding: 16px 20px 20px;
  background: var(--a-paper); color: var(--a-ink);
}
.app__head { display: flex; justify-content: space-between; margin-bottom: 24px; }
.app__ico { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--a-hair); }
.app__title { font-size: 32px; font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
.app__nick { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--a-grey); }
.app__sec { margin: 28px 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--a-grey); }
.app__sec b { margin-right: 12px; font-weight: 500; color: var(--a-ink); }
.pad {
  position: relative; aspect-ratio: 3 / 2;
  border: 1px solid var(--a-hair);
  background-image: linear-gradient(var(--a-hair) 1px, transparent 1px), linear-gradient(90deg, var(--a-hair) 1px, transparent 1px);
  background-size: 100% 25%, 16.666% 100%;
  background-position: 0 -1px, -1px 0;
}
.pad i {
  position: absolute; left: 50%; top: 70%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  background: var(--a-ink);
  transition: left .6s var(--ease), top .6s var(--ease);
}
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--a-hair); }
.rows > div:last-child { border-bottom: 1px solid var(--a-hair); }
.rows dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--a-grey); }
.rows dd { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.app__desc { margin: 16px 0 20px; min-height: 3em; font-size: 14px; line-height: 1.5; color: #3A3A3A; }
.app__btn { display: block; height: 56px; line-height: 56px; text-align: center; background: var(--a-ink); color: var(--a-paper); font-size: 15px; font-weight: 500; }

.recipe {
  width: 100%;
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: baseline;
  padding: 14px 12px;
  border-top: 1px solid var(--rule);
  text-align: left;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.recipe:last-child { border-bottom: 1px solid var(--rule); }
.recipe span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.recipe b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.recipe em { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.recipe.is-active { background: var(--fg); color: var(--bg); }
.recipe.is-active span, .recipe.is-active em { color: var(--ink-500); }
@media (hover: hover) { .recipe:not(.is-active):hover { background: var(--ink-700); } }

/* ---------- SocialGRID: the approval flow, in the app's own design ---------- */
.sg-word { display: flex; align-items: center; gap: .3em; margin-bottom: 32px; font-size: clamp(30px, 6.4vw, 92px); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.sg-word svg { width: .78em; height: .78em; flex: none; fill: var(--fg); }
.sg-word svg .o { fill: none; stroke: var(--fg); stroke-width: 3; }

.sg {
  --s-ink: #0D0D0D; --s-paper: #F4F3EF; --s-rule: #D9D8D4; --s-grey: #5F5F5C; --s-light: #8E8E8B; --s-signal: #D8261C;
  display: grid; gap: 28px; margin-top: 56px; padding: 20px;
  background: var(--s-paper); color: var(--s-ink); border: 1px solid var(--rule);
}
@media (min-width: 900px) { .sg { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; padding: 40px; margin-top: 88px; align-items: start; } }
.sg__phone { width: 100%; max-width: 420px; border: 1px solid var(--s-ink); background: var(--white); }
.sg__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--s-rule); font-size: 13px; font-weight: 600; }
.sg__avatar { width: 26px; height: 26px; display: grid; place-items: center; background: var(--s-ink); color: var(--s-paper); font: 500 10px var(--mono); }
.sg__type { margin-left: auto; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--s-grey); }
.sg__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: crosshair; }
.sg__media .crop { position: absolute; inset: 0; }
.sg__pins { position: absolute; inset: 0; }
.sg__pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; background: var(--s-signal); color: var(--white); font: 500 12px var(--mono); border: 2px solid var(--white); animation: sg-pop .3s var(--ease) both; }
@keyframes sg-pop { from { transform: scale(0); } }
.sg__hint, .sg__stamp { position: absolute; left: 12px; bottom: 12px; padding: 6px 8px; background: var(--s-ink); color: var(--s-paper); font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.sg__hint { transition: opacity .3s var(--ease); }
.sg__stamp { right: 12px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 11px; transform: translateY(calc(100% + 14px)); transition: transform .6s var(--ease); }
.sg__stamp svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.sg[data-state="approved"] .sg__stamp { transform: none; }
.sg[data-state="approved"] .sg__hint { opacity: 0; }
.sg[data-state="approved"] .sg__media { cursor: default; }
.sg__cap { padding: 12px; font-size: 14px; line-height: 1.45; }
.sg__cap span { color: var(--s-grey); }

.sg__panel { display: grid; gap: 18px; align-content: start; }
.sg__label { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--s-grey); }
.sg__status { display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; transition: color .3s var(--ease); }
.sg__status i { width: 14px; height: 14px; flex: none; border: 1px solid var(--s-ink); background: #BDBCB8; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.sg[data-state="approved"] .sg__status i { background: var(--s-ink); }
.sg[data-state="changes_requested"] .sg__status { color: var(--s-signal); }
.sg[data-state="changes_requested"] .sg__status i { background: var(--s-signal); border-color: var(--s-signal); }
.sg__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
@media (min-width: 600px) { .sg__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sg__steps li { position: relative; padding: 12px 8px 0 0; border-top: 1px solid var(--s-rule); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--s-light); overflow-wrap: anywhere; }
.sg__steps li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--s-paper); border: 1px solid var(--s-light); }
.sg__steps li.is-done, .sg__steps li.is-now { color: var(--s-ink); }
.sg__steps li.is-done::before { background: var(--s-ink); border-color: var(--s-ink); }
.sg__steps li.is-now::before { border-color: var(--s-ink); outline: 1px solid var(--s-ink); outline-offset: 2px; }
.sg__steps li.is-warn { color: var(--s-signal); }
.sg__steps li.is-warn::before { background: var(--s-signal); border-color: var(--s-signal); outline-color: var(--s-signal); }
.sg__notice { padding: 14px 16px; border: 1px solid var(--s-ink); background: var(--white); font-size: 15px; line-height: 1.5; }
.sg__notice.is-warn { border-color: var(--s-signal); }
.sg__kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-top: 1px solid var(--s-rule); }
.sg__kv dt, .sg__kv dd { padding: 10px 0; border-bottom: 1px solid var(--s-rule); font-size: 15px; }
.sg__kv dt { padding-top: 13px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--s-grey); }
.sg__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sg__btn { min-height: 56px; padding: 0 24px; border: 1px solid var(--s-ink); background: transparent; color: var(--s-ink); font-size: 15px; font-weight: 500; transition: background-color .2s var(--ease), color .2s var(--ease); }
.sg__btn--primary { background: var(--s-ink); color: var(--s-paper); }
@media (hover: hover) {
  .sg__btn:hover { background: var(--s-ink); color: var(--s-paper); }
  .sg__btn--primary:hover { background: #3A3A3A; border-color: #3A3A3A; }
}
.sg__reset { justify-self: start; min-height: 44px; padding: 0 16px; font-size: 13px; }
.sg__cm { padding: 12px 0; border-top: 1px solid var(--s-rule); font-size: 14px; line-height: 1.5; animation: sg-in .4s var(--ease) both; }
.sg__cm:last-child { border-bottom: 1px solid var(--s-rule); }
.sg__cm .by { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 4px; }
.sg__cm .by b { font-weight: 600; }
.sg__cm .by span { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--s-grey); }
.sg__cm .ref { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; background: var(--s-signal); color: var(--white); font: 500 11px var(--mono); vertical-align: 1px; }
.sg__cm.is-sys { color: var(--s-grey); font-size: 13px; }
@keyframes sg-in { from { opacity: 0; transform: translateY(6px); } }
.sg__note { margin-top: 14px; }
.split--sg { margin-top: 48px; }

/* ---------- 05 Services ---------- */
.services li {
  display: grid; gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.services li:last-child { border-bottom: 1px solid var(--rule); }
.services span, .process span, .lab span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.services h3 { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -.035em; }
.services p { max-width: 52ch; color: var(--muted); }
@media (min-width: 900px) {
  .services li { grid-template-columns: 1fr 5fr 6fr; gap: var(--s3); align-items: baseline; padding: 30px 0; }
}

.process { margin-top: 80px; }
.process > .label { margin-bottom: 16px; }
.process ol { display: grid; gap: 16px; }
.process li { padding: 24px; border: 1px solid var(--rule); background: var(--panel); }
.process h3 { margin: 40px 0 8px; font-size: 24px; letter-spacing: -.03em; }
.process p { font-size: 15px; color: var(--muted); }
@media (min-width: 900px) { .process ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); } }

/* ---------- 06 Lab ---------- */
.lab { display: grid; gap: 32px 24px; }
.lab li { display: flex; flex-direction: column; padding-top: 16px; border-top: 1px solid var(--rule); }
.lab h3 { margin: 40px 0 8px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.035em; }
.lab p { font-size: 15px; color: var(--muted); }
.lab em { margin-top: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); }
@media (min-width: 620px) { .lab { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lab { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 07 About ---------- */
.about { display: grid; gap: 40px; }
.about__img .crop { aspect-ratio: 1 / 1; }
.about__img figcaption { margin-top: 12px; }
.about__copy .body { margin-top: 24px; }
.about__label { margin: 48px 0 12px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } }

/* ---------- 08 Contact ---------- */
.contact { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 0; }
.display--contact { max-width: 11em; font-size: clamp(42px, 7.6vw, 124px); line-height: .96; margin-bottom: 56px; }
.contact__grid { display: grid; gap: 40px; align-items: start; }
.contact__grid .btn { justify-self: start; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: var(--section);
  padding-block: 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
}


/* ---------- Client work: project cards ---------- */
.work-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.cases { display: grid; gap: 40px 24px; grid-auto-flow: dense; }
@media (min-width: 640px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } .case-card.is-featured { grid-column: span 2; } }
.case-card { display: block; color: var(--fg); }
.case-card[hidden] { display: none; }
.case-card__media { position: relative; display: block; aspect-ratio: 4 / 5; }
@media (min-width: 1040px) { .case-card.is-featured .case-card__media { aspect-ratio: 16 / 9.6; } }
.case-card__media img, .case-card__media video { transition: transform .9s var(--ease); }
.case-card__count { top: auto; bottom: 10px; left: 10px; }
.case-card__count::before { display: none; }
.case-card__body { display: grid; gap: 6px; padding-top: 16px; }
.case-card__body .label b { margin-right: 12px; font-weight: 500; color: var(--fg); }
.case-card__client { font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
.case-card.is-featured .case-card__client { font-size: clamp(28px, 3.2vw, 46px); }
.case-card__sum { max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--muted); }
.case-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 500; }
.case-card__more svg, .product__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; transition: transform .3s var(--ease); }
@media (hover: hover) {
  .case-card:hover .case-card__media img, .case-card:hover .case-card__media video { transform: scale(1.03); }
  .case-card:hover .case-card__more svg, .product:hover .product__link svg { transform: translateX(4px); }
}

/* phone: the headline projects as short big cards, the rest behind "Show all" as a 2-column 9:16 grid */
.cases-more { display: none; }
@media (max-width: 639px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .case-card.is-headline { grid-column: 1 / -1; order: -1; }
  .case-card.is-headline .case-card__sum, .case-card.is-headline .case-card__more { display: none; }
  .cases:not(.is-all):not(.is-filtered) .case-card:not(.is-headline) { display: none; }
  .case-card:not(.is-headline) .case-card__media { aspect-ratio: 9 / 16; }
  .case-card:not(.is-headline) .case-card__body { gap: 4px; padding-top: 10px; }
  .case-card:not(.is-headline) .case-card__body .label { font-size: 9px; letter-spacing: .12em; }
  .case-card:not(.is-headline) .case-card__body .label b { margin-right: 8px; }
  .case-card:not(.is-headline) .case-card__client { font-size: 17px; letter-spacing: -.02em; }
  .case-card:not(.is-headline) .case-card__sum, .case-card:not(.is-headline) .case-card__more { display: none; }
  .case-card:not(.is-headline) .case-card__count { left: 6px; bottom: 6px; padding: 4px 6px; font-size: 9px; letter-spacing: .1em; }
  .cases-more { display: block; margin-top: 32px; }
  .cases-more .btn { width: 100%; }
  .cases.is-filtered + .cases-more { display: none; }
}

/* ---------- Project page (full window) ---------- */
html.is-locked, html.is-locked body { overflow: hidden; }
.case {
  position: fixed; inset: 0; z-index: 150;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--black); color: var(--fg);
  opacity: 0; transform: translateY(24px);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.case.is-open { opacity: 1; transform: none; }
.case__bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding-inline: var(--margin);
  background: var(--black); border-bottom: 1px solid var(--rule);
}
.case__close, .lb__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--paper); }
.case__close svg, .lb__close svg, .tile__play i { flex: none; }
.case__close svg, .lb__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; }
@media (hover: hover) { .case__close:hover, .lb__close:hover { background: var(--paper); color: var(--black); border-color: var(--paper); } }
.case__head { padding: 56px 0 40px; }
.case__title { margin-top: 14px; font-size: clamp(44px, 8.6vw, 136px); font-weight: 600; line-height: .92; letter-spacing: -.05em; }
.case__sub { margin-top: 18px; max-width: 34em; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -.02em; color: var(--muted); }
.case__intro { display: grid; gap: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.case__text { display: grid; gap: 18px; max-width: 62ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; }
.case__side { display: grid; gap: 24px; align-content: start; }
@media (min-width: 900px) { .case__intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }
.case__results { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-top: 56px; }
.case__results > div { padding-top: 14px; border-top: 1px solid var(--rule); }
.case__results dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case__results dd { margin-top: 14px; font-size: clamp(34px, 3.6vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.case__gridlabel { margin: 72px 0 16px; }
/* the grid keeps every piece in its own shape: 16:9 films and 9:16 Reels are shown whole */
/* row-by-row masonry: pieces read left to right in the order set in the editor; JS sets each tile's row span */
.case__grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 20px; align-items: start; }
@media (min-width: 640px) { .case__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .case__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.js .case__grid { grid-auto-rows: 4px; }
.tile__in { padding-bottom: 28px; }
.tile__btn { display: block; width: 100%; text-align: left; cursor: zoom-in; }
.tile__media { position: relative; display: block; overflow: hidden; background: var(--ink-700); }
.tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s var(--ease); }
@media (hover: hover) { .tile__btn:hover .tile__media img { transform: scale(1.03); opacity: .85; } }
.tile__play {
  position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px;
  padding: 6px 9px; background: var(--black); color: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
}
.tile__play i { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.tile figcaption { display: grid; gap: 2px; margin-top: 10px; }
.tile figcaption b { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.tile figcaption em { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case__nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 72px 0 0; padding: 24px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.case__nav a:not(.case__cta) { display: grid; gap: 4px; font-size: clamp(18px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; }
.case__nav a:last-child { text-align: right; }
.case__cta { height: 48px; padding: 0 20px; display: inline-flex; align-items: center; background: var(--paper); color: var(--black); font-size: 14px; font-weight: 500; }
@media (max-width: 600px) { .case__nav { grid-template-columns: 1fr 1fr; } .case__cta { grid-column: 1 / -1; justify-self: start; grid-row: 2; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 160; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--black); color: var(--fg); }
@media (min-width: 900px) { .lb { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr); } }
/* the stage is a fixed box; every piece is fitted inside it in its own shape (9:16, 16:9, 4:5 ...) */
.lb__stage { display: grid; place-items: center; min-width: 0; min-height: 0; padding: 64px 16px 16px; container-type: size; }
@media (min-width: 900px) { .lb__stage { padding: 40px; } }
.lb__frame { position: relative; width: min(100cqw, 100cqh * var(--ar, 1.7778)); aspect-ratio: var(--ar, 1.7778); background: var(--black); }
.lb__frame img, .lb__frame video, .lb__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; background: var(--black); }
.lb__info { display: grid; align-content: start; gap: 12px; padding: 20px var(--margin) calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); overflow-y: auto; max-height: 40vh; }
@media (min-width: 900px) { .lb__info { border-top: 0; border-left: 1px solid var(--rule); padding: 96px 32px 32px; max-height: none; } }
.lb__info h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.lb__meta { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lb__text { display: grid; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-100); }
.lb__nav { display: flex; gap: 8px; margin-top: 8px; }
.lb__close { position: absolute; top: 12px; right: 12px; background: var(--black); }

/* ---------- Also building ---------- */
.products { display: grid; gap: 24px; }
@media (min-width: 700px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--rule); background: var(--panel); transition: border-color .25s var(--ease); }
.product .label b { margin-right: 12px; font-weight: 500; color: var(--fg); }
.product__name { margin-top: 24px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.product__desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.product__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 500; }
@media (hover: hover) { .product:hover { border-color: var(--fg); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rise, .js .display .line > span { opacity: 1; transform: none; }
  .hero__slide { transform: scale(var(--zoom, 1)); }
  .js .hero__bar { display: none; }
  .js .reelcard.reveal .reelcard__screen { clip-path: none; }
  .js .reelcard.reveal video { transform: none; }
  .js .reelcard.reveal figcaption { opacity: 1; }
  .logos__track { width: auto; }
  .logos__group { flex-wrap: wrap; }
  .logos__group[aria-hidden], .logos__item[aria-hidden] { display: none; }
}
