/* Monalisa Design Studio. Direction B, "Change the frame", with A's following gaze.
   One family (Jost), one structural device (the stem-weight square frame), one accent (the coral gaze dot). */

@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141414;          /* Lisa Ink */
  --canvas: #F4F0E8;       /* Poplar Canvas */
  --coral: #ED432B;        /* Sindoor Coral: the mark only */
  --sand: #E6D7BD;         /* Varnish Sand */
  --ink-2: #1d1d1d;

  --on-ink-2: rgba(244, 240, 232, .72);   /* 8.6:1 on ink */
  --on-ink-rule: rgba(244, 240, 232, .2);
  --on-canvas-2: rgba(20, 20, 20, .74);   /* 8.9:1 on canvas */
  --on-canvas-rule: rgba(20, 20, 20, .16);

  --pad: clamp(16px, 3.4vw, 48px);
  --nav-h: 72px;
  --ui-stem: 3px;
  --ease-snap: cubic-bezier(.2, .9, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --fs-hero: clamp(54px, min(9.4vw, 19.5vh), 150px);
  --rule: clamp(3px, .42vw, 6px);   /* the stem at section scale: 6 px at 1440, 3 px at 390 */
  --fs-h1: clamp(52px, 7.6vw, 124px);
  --fs-h2: clamp(40px, 5.6vw, 88px);
  --fs-lead: clamp(18px, 1.45vw, 21px);
  --fs-body: 17px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--canvas);
  font-family: "Jost", "Futura", "Century Gothic", sans-serif;
  font-size: var(--fs-body); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.022em; line-height: .95; text-wrap: balance; }
::selection { background: var(--canvas); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -60px; z-index: 100; background: var(--canvas); color: var(--ink); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.dot { color: var(--coral); }
/* the gaze: only this circle ever moves (site.js); the letters are never touched */
.gaze-dot { transform-box: fill-box; transform-origin: 50% 50%; }

/* ---------- buttons: a solid block that becomes a frame on hover ---------- */
.btn {
  --b-bg: var(--canvas); --b-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 24px;
  background: var(--b-bg); color: var(--b-fg); border: var(--ui-stem) solid var(--b-bg);
  font: 500 17px/1 "Jost", sans-serif; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s var(--ease-snap), color .18s var(--ease-snap);
}
.btn .arw { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover { background: transparent; color: var(--b-bg); }
.btn:hover .arw { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--b-bg); outline-offset: 4px; }
.btn--ink { --b-bg: var(--ink); --b-fg: var(--canvas); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 15px; gap: 10px; }
.link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; position: relative; font-weight: 500; font-size: 17px; text-decoration: none; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: currentColor; transform-origin: right; transition: transform .3s var(--ease-out); }
.link:hover::after { transform: scaleX(0); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad); border-bottom: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease, transform .3s var(--ease-out); background: rgba(20, 20, 20, .97); border-bottom-color: var(--on-ink-rule); }
/* hides on scroll-down, returns on scroll-up (site.js), so the full-bleed loop is never under it */
.nav.is-hidden { transform: translateY(-100%); }
.js .page-home .nav:not(.is-solid) { background: transparent; border-bottom-color: transparent; }
.nav__logo { display: block; height: 56px; color: var(--canvas); }
.nav__logo svg, .foot__logo svg { height: 100%; width: auto; display: block; overflow: visible; }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); margin-left: auto; }
.nav__links a:not(.btn) { font-size: 16px; font-weight: 500; text-decoration: none; padding: 10px 0; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out); }
.nav__links a:not(.btn):hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__menu { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; padding: 0; cursor: pointer; position: relative; }
.nav__menu span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .25s var(--ease-out); }
.nav__menu span:first-child { top: 17px; } .nav__menu span:last-child { top: 25px; }
.nav.is-open .nav__menu span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 49; background: var(--ink); padding: calc(var(--nav-h) + 24px) var(--pad) 32px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-100%); transition: transform .4s var(--ease-out); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer > a:not(.btn) { font-size: 40px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--on-ink-rule); }
.drawer .btn { margin-top: 28px; align-self: flex-start; }
.drawer__foot { margin-top: auto; padding-top: 32px; }
.drawer__beh { font-size: 20px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* =========================================================
   HERO: full-bleed work, cut on hard beats; the frame snaps to a new crop on every cut
   ========================================================= */
.hero { position: relative; height: max(88vh, 640px); min-height: 640px; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero__stage { position: absolute; inset: 0; z-index: 0; }
/* no-JS and first paint: the opening shot, drained to ink, full-bleed */
.hero__still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 40%; filter: saturate(.5) brightness(.58) contrast(1.05); }
.hero.is-live .hero__still img { visibility: hidden; }
.hero__shots { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__grad { z-index: 1; }
.hero__frame { z-index: 2; }
.hero__slate { z-index: 5; }
/* the nav sits on the hero: a top scrim keeps its links at >= 4.5:1 on light shots (fix round 2, N2) */
.hero__stage::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--nav-h) + 48px); z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,20,20,.55) 0, rgba(20,20,20,.42) 50%, rgba(20,20,20,0) 100%); }
.shot { position: absolute; left: 0; top: 0; max-width: none; opacity: 0; z-index: 0; object-fit: fill; }
.shot.is-next { opacity: 1; z-index: 0; }
.shot.is-prev { opacity: 1; z-index: 1; }
.shot.is-on { opacity: 1; z-index: 2; }
.hero { --fl: 0px; --ft: 0px; --fw: 0px; --fh: 0px; --stem: 12px; }
/* the scrim sits behind the copy block only; the rest of the screen carries the work's colour */
.hero__grad { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,20,20,.80) 0, rgba(20,20,20,.55) 38%, rgba(20,20,20,0) 68%); }
.hero.is-full .hero__grad { z-index: 3;   /* full-bleed beat: the title sits on the colour picture, over a deeper scrim (>= 4.5:1, tools/contrast.py) */
  background: linear-gradient(90deg, rgba(20,20,20,.88) 0, rgba(20,20,20,.84) 40%, rgba(20,20,20,.5) 58%, rgba(20,20,20,0) 74%); }
/* fix round 3, X4: the full-beat scrim is clipped to the frame's inner window, so the canvas frame line stays clean */
.hero.is-full .hero__grad { clip-path: inset(calc(var(--ft) + var(--stem)) calc(100% - var(--fl) - var(--fw) + var(--stem)) calc(100% - var(--ft) - var(--fh) + var(--stem)) calc(var(--fl) + var(--stem))); }
.hero__frame { position: absolute; left: 0; top: 0; width: var(--fw); height: var(--fh); transform: translate(var(--fl), var(--ft)); border: var(--stem) solid var(--canvas); overflow: hidden; background: var(--ink); visibility: hidden; }
.hero.is-live .hero__frame, .hero.is-live .hero__slate { visibility: visible; }
.hero__win { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero__shots .shot { filter: saturate(.5) brightness(.58) contrast(1.05); }
/* fix round 4 (critic): designed pieces with big type keep their colour only as a soft field: blur, brightness .22
   (40 px: the letters are 200-300 px tall) so no giant letters read behind the headline; colourful photographs (c) keep more colour outside the frame */
.hero__shots .shot--q { filter: saturate(.6) brightness(.22) contrast(1.05) blur(40px); }
.hero__shots .shot--c { filter: saturate(.65) brightness(.66) contrast(1.05); }
.shot--ink { width: 100%; height: 100%; background: var(--ink); }
.shot--mark { display: grid; place-items: center; background: var(--ink); color: var(--canvas); }
.shot--mark svg { width: 62%; height: auto; }
.hero__slate { position: absolute; left: 0; top: 0; transform: translate(var(--sx, 0px), var(--sy, 0px)); white-space: nowrap; font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--canvas); background: var(--ink); padding: 7px 10px 7px 0; visibility: hidden; }
.hero__copy { position: absolute; z-index: 4; left: var(--pad); bottom: clamp(24px, 5vh, 56px); width: min(52vw, 820px); }
.hero__title { font-size: var(--fs-hero); line-height: .9; letter-spacing: -.03em; font-weight: 500; display: flex; flex-direction: column; text-wrap: nowrap; }
.hero__title .l { display: block; }
/* the live line: the service the shot on screen demonstrates, half the title's size; it slides up out of a mask on each change */
.hero__live { margin-top: clamp(10px, 1.6vh, 20px); font-size: clamp(32px, calc(var(--fs-hero) * .5), 72px); line-height: 1.1; font-weight: 500; letter-spacing: -.025em; white-space: nowrap; min-height: 1.1em; }
.hero__word { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
#live { display: inline-block; will-change: transform; }
.hero__title .dot { display: inline-block; will-change: transform; }
.hero__cta .btn { will-change: transform; }   /* keeps the base .btn flex centring (fix round 2, N3) */
.motion { position: absolute; z-index: 5; right: var(--pad); bottom: clamp(24px, 5vh, 56px); width: 44px; height: 44px; padding: 0; border: 2px solid var(--canvas); background: rgba(20, 20, 20, .5); color: var(--canvas); cursor: pointer; display: none; }
.js .motion { display: grid; place-items: center; }
.motion span { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.motion[aria-pressed="true"] span { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }
.motion:hover { background: var(--canvas); color: var(--ink); }
.motion:focus-visible { outline: 2px solid var(--canvas); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .js .motion { display: none; } }
.hero__cta { margin-top: clamp(20px, 3vh, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.js .hero__title .l, .js .hero__live, .js .hero__cta { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.js .hero.is-in .hero__title .l, .js .hero.is-in .hero__live, .js .hero.is-in .hero__cta { opacity: 1; transform: none; }
.hero.is-in .hero__title .l:nth-child(2) { transition-delay: .08s; }
.hero.is-in .hero__live { transition-delay: .24s; }
.hero.is-in .hero__cta { transition-delay: .38s; }

/* SECTION 2: the brand-worlds loop, plain and full-bleed (Neonbox) */
.reel { background: var(--canvas); position: relative; }
.reel .motion { bottom: 24px; }
.reel video { width: 100%; height: 100vh; object-fit: cover; border-radius: 0; }

/* =========================================================
   WORK: Byond grammar. Two columns, one ratio, all cards open Behance
   ========================================================= */
.work { padding: clamp(88px, 10vw, 150px) 0 clamp(80px, 9vw, 140px); background: var(--ink); }
.work--page { padding-top: clamp(40px, 5vw, 72px); }
.work__head, .ph { margin: 0 var(--pad) clamp(40px, 5vw, 72px); padding-bottom: clamp(14px, 1.4vw, 20px); border-bottom: var(--rule) solid var(--canvas); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; }
.work__head h2 { font-size: var(--fs-h2); line-height: .82; }
.work__head h2 a, .services__head h2 a { text-decoration: none; }
.work__head p, .ph__line { font-size: var(--fs-lead); color: var(--on-ink-2); }
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 6vw, 88px) 24px; padding: 0 var(--pad); }
.card { display: block; text-decoration: none; color: inherit; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--ink-2); outline: var(--rule) solid transparent; outline-offset: 2px; transition: outline-offset .16s var(--ease-snap), outline-color .1s linear; }
.card__media > picture img, .card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media video { opacity: 0; transition: opacity .35s ease; }
.card:hover .card__media, .card:focus-visible .card__media { outline-color: var(--canvas); outline-offset: 6px; }
.card:focus-visible { outline: none; }
.card:focus-visible h3, .card:focus-visible h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.card.is-playing .card__media video { opacity: 1; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.card h3, .card h2 { font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.012em; line-height: 1.3; }
.card h3 span, .card h2 span { font-weight: 400; color: var(--on-ink-2); }
.card__ext { font-size: 15px; font-weight: 500; color: var(--on-ink-2); white-space: nowrap; transition: color .2s; }
.card:hover .card__ext { color: var(--canvas); }
.work__more { padding: clamp(56px, 6vw, 88px) var(--pad) 0; }
.more { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid var(--on-ink-rule); border-bottom: 1px solid var(--on-ink-rule); font-size: clamp(28px, 3.4vw, 52px); font-weight: 500; letter-spacing: -.02em; text-decoration: none; line-height: 1.1; transition: padding .3s var(--ease-out); }
.more:hover { padding-left: 16px; }

/* page head (work, services, 404) */
.ph { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 120px)); margin-top: 0; }
.ph h1 { font-size: var(--fs-h1); line-height: .86; letter-spacing: -.035em; }
.ph--bare { border-bottom: 0; margin-bottom: 0; }
.ph--404 { flex-direction: column; align-items: flex-start; min-height: 60vh; justify-content: flex-end; }
.ph__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 24px; }

/* =========================================================
   SERVICES: nowmedia grammar. Name is the headline, proof sits beside it, a strong bar link
   ========================================================= */
.services { background: var(--canvas); color: var(--ink); padding: clamp(88px, 10vw, 150px) var(--pad) clamp(64px, 8vw, 120px); }
.services--index { padding-top: clamp(16px, 2vw, 32px); }
.services__head { padding-bottom: 14px; border-bottom: var(--rule) solid var(--ink); }
.services__head h2 { font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px clamp(32px, 4vw, 72px); padding: clamp(40px, 4.4vw, 64px) 0; border-top: 1px solid var(--on-canvas-rule); }
.services__head + .svc, .services--index .svc:first-child { border-top: 0; }
.svc:last-child { border-bottom: 1px solid var(--on-canvas-rule); }
.svc__main { display: flex; flex-direction: column; align-items: flex-start; }
.svc__name { font-size: clamp(44px, 6vw, 96px); font-weight: 500; letter-spacing: -.03em; line-height: .95; }
.svc__name a { text-decoration: none; }
.svc__name a:hover { text-decoration: underline; text-decoration-thickness: var(--rule); text-underline-offset: .12em; }
.svc__body { margin-top: 16px; font-size: 19px; line-height: 1.5; color: var(--on-canvas-2); max-width: 30em; }
.svc__inc { margin-top: 28px; width: 100%; max-width: 36em; }
.svc__inc-h { font-size: 15px; font-weight: 500; color: var(--on-canvas-2); margin-bottom: 6px; }
.svc__inc ul { border-top: 1px solid var(--on-canvas-rule); columns: 2; column-gap: 32px; }
.svc__inc li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--on-canvas-rule); font-size: 17px; line-height: 1.35; }
/* the bar: both actions on one stem-weight rule, its baseline on the tiles' bottom edge */
.svc__bar { margin-top: auto; padding-top: 32px; width: 100%; display: flex; justify-content: flex-end; align-items: center; gap: 12px 32px; flex-wrap: wrap; border-bottom: var(--ui-stem) solid var(--ink); position: relative; }
.svc__start, .svc__view { display: inline-flex; align-items: center; min-height: 48px; padding-bottom: 4px; text-decoration: none; }
.svc__start { font-size: 17px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.svc__start:hover { text-decoration-color: transparent; }
.svc__view b { font-weight: 600; font-size: 19px; white-space: nowrap; display: inline-flex; gap: 10px; }
.svc__view b .arw { transition: transform .25s var(--ease-out); }
.svc__view:hover b .arw { transform: translateX(6px); }
.svc__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-self: end; }
.tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile video { opacity: 0; transition: opacity .3s ease; }
.tile.is-playing video { opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; border: var(--rule) solid var(--ink); opacity: 0; transform: scale(1.04); transition: transform .16s var(--ease-snap), opacity .1s linear; pointer-events: none; }
.svc:hover .tile::after { opacity: 1; transform: none; }
.svc--index .svc__tiles { align-self: start; }
/* text-led row (AI automation, fix round 3 X3): the approved items, large, on the tiles' sand ground and footprint */
.svc__type { align-self: end; background: var(--sand); color: var(--ink); padding: clamp(18px, 1.6vw, 24px) clamp(20px, 2.4vw, 36px) clamp(8px, .8vw, 12px); }
.svc--index .svc__type { align-self: start; }
.svc__type .svc__inc-h { color: var(--ink); margin-bottom: 8px; }
.svc__type ul { border-top: var(--ui-stem) solid var(--ink); }
@media (min-width: 1101px) { .svc:not(.svc--index) .svc__type ul { columns: 2; column-gap: clamp(24px, 2.6vw, 40px); } .svc:not(.svc--index) .svc__type li { break-inside: avoid; border-bottom: 1px solid rgba(20, 20, 20, .22); } }
.svc__type li { padding: clamp(8px, .7vw, 10px) 0; border-bottom: 1px solid rgba(20, 20, 20, .22); font-size: clamp(19px, 1.75vw, 27px); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.svc__type li:last-child { border-bottom: 0; }

/* =========================================================
   STUDIO LINE: the gaze looks back
   ========================================================= */
.studio { background: var(--ink); min-height: 100vh; padding: clamp(96px, 9vw, 140px) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px clamp(40px, 5vw, 96px); align-items: center; }
.studio__line { font-size: clamp(52px, 8vw, 128px); max-width: 8.6em; line-height: .92; letter-spacing: -.032em; font-weight: 500; }
.studio__meta { margin-top: 40px; display: inline-block; font-size: clamp(22px, 1.95vw, 28px); line-height: 1.25; letter-spacing: -.01em; font-weight: 500; padding-top: 20px; border-top: var(--rule) solid var(--canvas); min-width: min(100%, 18em); }
.studio__mark { justify-self: end; width: min(36vw, 520px); color: var(--canvas); }
.mark { width: 100%; height: auto; display: block; overflow: visible; }

/* =========================================================
   CLOSING BAND: Make your mark. + the owner's line + Start a project (+ the mark, looking at you)
   ========================================================= */
.close { background: var(--canvas); color: var(--ink); padding: clamp(64px, 7vw, 104px) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px clamp(40px, 6vw, 120px); align-items: end; }
.close h2 { font-size: clamp(64px, 12.5vw, 210px); line-height: .86; letter-spacing: -.04em; }
.close__row { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.close__row p { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; color: var(--on-canvas-2); flex: 1 1 100%; }
.close .btn { --b-bg: var(--ink); --b-fg: var(--canvas); }
.close__mark { width: clamp(120px, 17vw, 260px); }
.close--svc h2 { font-size: clamp(64px, 9vw, 150px); }
.close--line h2 { font-size: clamp(36px, 5vw, 80px); line-height: 1; letter-spacing: -.03em; max-width: 14em; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--ink); padding: clamp(64px, 7vw, 104px) var(--pad) 32px; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--on-ink-rule); }
.foot__logo { display: block; height: 46px; color: var(--canvas); }
.foot__brand p { margin-top: 20px; color: var(--on-ink-2); max-width: 22em; }
.foot__brand .foot__mail { margin-top: 6px; color: var(--canvas); font-size: 19px; overflow-wrap: anywhere; }
.foot__mail a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.foot__mail a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__brand .btn { margin-top: 28px; }
.foot__h { font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--on-ink-2); margin-bottom: 4px; }
.foot li a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font-size: 17px; }
.foot li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 24px; font-size: 14px; color: var(--on-ink-2); }
.foot__base span:first-child { color: var(--canvas); font-weight: 500; }

/* =========================================================
   SERVICE PAGE (nowmedia skeleton): crumb, hero + facts, proof, included, related, questions, close
   ========================================================= */
.sh { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: center; padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) var(--pad) clamp(72px, 8vw, 120px); background: var(--ink); }
.sh--solo { grid-template-columns: minmax(0, 1fr); min-height: 70vh; align-items: end; }
/* text-led service hero (AI automation, fix round 4): H1 and CTA left, the approved items large on the sand panel right */
.sh--type { align-items: end; min-height: min(84vh, 820px); }
.sh__type { background: var(--sand); color: var(--ink); padding: clamp(22px, 2.2vw, 36px) clamp(22px, 2.8vw, 44px) clamp(10px, 1vw, 16px); }
.sh__type .svc__inc-h { color: var(--ink); margin-bottom: 10px; font-size: 15px; line-height: 1.4; letter-spacing: 0; }
.sh__type ul { border-top: var(--ui-stem) solid var(--ink); }
.sh__type li { padding: clamp(12px, 1.2vw, 18px) 0; border-bottom: 1px solid rgba(20, 20, 20, .22); font-size: clamp(24px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.sh__type li:last-child { border-bottom: 0; }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--on-ink-2); margin-bottom: clamp(24px, 3vw, 40px); }
.crumb a { color: var(--canvas); text-underline-offset: 4px; }
.sh h1 { font-size: var(--fs-h1); line-height: .9; letter-spacing: -.032em; }
.sh--solo h1 { font-size: clamp(56px, 11vw, 190px); }
.sh__lead { margin-top: clamp(24px, 3vw, 36px); font-size: var(--fs-lead); line-height: 1.5; max-width: 30em; color: var(--on-ink-2); }
.sh__cta { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.framed { border: clamp(6px, .75vw, 11px) solid var(--canvas); padding: clamp(10px, 1.4vw, 20px); }
.framed img { width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 50% 30%; }
.sh__media--port { justify-self: center; width: min(100%, 520px); }
.sh__media--port .framed img { aspect-ratio: 4 / 5; }
/* a web page screenshot is shown whole, at its own ratio (fix round 2, N4) */
.sh__media--land .framed img { aspect-ratio: auto; height: auto; object-fit: contain; }
.sh__media figcaption, .proof figcaption { margin-top: 10px; font-size: 15px; color: var(--on-ink-2); }
.sh__media figcaption a, .proof figcaption a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.sh__media figcaption a:hover, .proof figcaption a:hover { color: var(--canvas); text-decoration: underline; text-underline-offset: 4px; }

/* proof: one framed 16:9 piece, then three 1:1 details, 24 px gutters */
.proof { background: var(--ink); padding: 0 var(--pad) clamp(80px, 9vw, 140px); display: grid; gap: 24px; }
.proof__img { border: clamp(6px, .75vw, 11px) solid var(--canvas); background: var(--ink-2); }
.proof__wide .proof__img { aspect-ratio: 16 / 9; overflow: hidden; }
.proof__sq .proof__img { aspect-ratio: 1; overflow: hidden; }
.proof__img img, .proof__img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.turn + .proof { padding-top: clamp(80px, 9vw, 140px); }

/* the 3D viewer (packaging) */
.turn { background: var(--canvas); color: var(--ink); display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 96px); align-items: start; padding: clamp(80px, 9vw, 140px) var(--pad); }
.turn__pick { border-top: 1px solid var(--on-canvas-rule); }
.turn__pick button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 0; min-height: 44px; border-bottom: 1px solid var(--on-canvas-rule); color: var(--on-canvas-2); }
.turn__pick button::before { content: ""; flex: none; width: 18px; height: 18px; box-sizing: border-box; border: var(--ui-stem) solid currentColor; transition: background-color .15s; }
.turn__pick button[aria-selected="true"] { color: var(--ink); }
.turn__pick button[aria-selected="true"]::before { background: currentColor; }
.turn__pick button:hover { color: var(--ink); }
.turn__pick button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.turn__pick b { font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.turn__beh { margin-top: 20px; }
.viewer { position: relative; aspect-ratio: 1; justify-self: end; width: 100%; max-width: min(738px, 100vh - 150px); border: clamp(8px, .9vw, 13px) solid var(--ink); background: var(--sand); overflow: hidden; }
.viewer__poster img, .viewer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.viewer iframe { opacity: 0; transition: opacity .5s ease; z-index: 1; }
.viewer.is-live iframe { opacity: 1; }
/* the Bread Head scene renders on a transparent ground: hide the still once the live pack is up (no doubled box) */
.viewer.is-live .viewer__poster img { visibility: hidden; transition: visibility 0s .5s; }
.viewer__load { position: absolute; left: 20px; bottom: 20px; z-index: 2; }
.viewer.is-live .viewer__load { display: none; }
.viewer__hint { position: absolute; right: 20px; bottom: 20px; z-index: 2; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--canvas); padding: 6px 10px; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.viewer.is-live .viewer__hint { opacity: 1; }
.viewer.is-live.hint-done .viewer__hint { opacity: 0; }
.viewer:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* what's included */
.inc { background: var(--canvas); color: var(--ink); padding: clamp(80px, 9vw, 140px) var(--pad); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 5vw, 96px); }
.inc h2 { font-size: var(--fs-h2); align-self: start; position: sticky; top: calc(var(--nav-h) + 32px); }
.inc__list { border-top: var(--rule) solid var(--ink); }
.inc__list li { padding: clamp(16px, 1.8vw, 24px) 0; border-bottom: 1px solid var(--on-canvas-rule); font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }

/* related work: small Byond cards */
.rel { background: var(--ink); padding: clamp(80px, 9vw, 140px) var(--pad); }
.rel h2 { font-size: var(--fs-h2); margin-bottom: clamp(36px, 4vw, 64px); padding-bottom: clamp(14px, 1.4vw, 20px); border-bottom: var(--rule) solid var(--canvas); }
.rel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 4vw, 64px) 24px; }
/* every approved line shows (fix round 4, M1): 4 in one row, 5 as 3 + 2 (the second row wider), 6 as 3 + 3 */
@media (min-width: 1101px) {
  .rel__grid--4 { grid-template-columns: repeat(4, 1fr); }
  .rel__grid--5 { grid-template-columns: repeat(6, 1fr); }
  .rel__grid--5 > .card { grid-column: span 2; }
  .rel__grid--5 > .card:nth-child(n+4) { grid-column: span 3; }
}
.card--sm h3, .card--sm h2 { font-size: clamp(19px, 1.5vw, 22px); }
.card--sm .card__row { margin-top: 14px; }
/* a film in Related work (not on Behance): framed like the proof pieces, plays with sound on request */
.film { margin-bottom: clamp(56px, 6vw, 88px); }
.film__frame { border: clamp(6px, .75vw, 11px) solid var(--canvas); background: var(--ink-2); }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; background: var(--ink-2); }
.film figcaption { margin-top: 20px; font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.012em; line-height: 1.3; }
.film figcaption b { font-weight: 500; }
.film figcaption span { color: var(--on-ink-2); }

/* questions */
.faq { background: var(--canvas); color: var(--ink); padding: clamp(80px, 9vw, 140px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 5vw, 96px); }
.faq h2 { font-size: var(--fs-h2); }
.faq__list { border-top: var(--rule) solid var(--ink); }
.faq details { border-bottom: 1px solid var(--on-canvas-rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(20px, 1.7vw, 25px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 18px; height: 18px; background: linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat, linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat; transition: transform .24s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; max-width: 36em; font-size: 19px; line-height: 1.55; color: var(--on-canvas-2); }
.faq + .close { border-top: 0; }

/* contact */
.ct { padding: calc(var(--nav-h) + clamp(56px, 8vw, 120px)) var(--pad) clamp(64px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px clamp(40px, 6vw, 120px); align-items: center; border-bottom: var(--rule) solid var(--canvas); }
.ct h1 { font-size: var(--fs-h1); line-height: .88; letter-spacing: -.035em; }
.ct__mailrow { margin-top: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ct__mail { font-size: clamp(22px, 3.1vw, 46px); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; overflow-wrap: anywhere; text-decoration: none; }
.ct__mail:hover { text-decoration: underline; text-decoration-thickness: var(--rule); text-underline-offset: .14em; }
.ct__copy { min-height: 44px; padding: 0 16px; border: 2px solid var(--on-ink-rule); background: none; color: var(--canvas); font: 500 15px/1 "Jost", sans-serif; cursor: pointer; display: none; }
.js .ct__copy { display: inline-flex; align-items: center; }
.ct__copy:hover { border-color: var(--canvas); }
.ct__line { margin-top: 20px; font-size: var(--fs-lead); color: var(--on-ink-2); }
.ct__cta { margin-top: 32px; }
.ct__mark { width: min(36vw, 520px); color: var(--canvas); }
.ct-list { background: var(--canvas); color: var(--ink); padding: clamp(64px, 8vw, 120px) var(--pad); }
.ct-list h2 { font-size: 28px; line-height: 1.1; padding-bottom: 14px; border-bottom: var(--rule) solid var(--ink); }
.ct-list li { border-bottom: 1px solid var(--on-canvas-rule); }
.ct-list li a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(18px, 2vw, 28px) 0; text-decoration: none; font-size: clamp(28px, 3.6vw, 56px); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; transition: padding .3s var(--ease-out); }
.ct-list li a .arw { font-size: .8em; transition: transform .25s var(--ease-out); }
.ct-list li a:hover { padding-left: 16px; }
.ct-list li a:hover .arw { transform: translateX(6px); }

/* reveal (content stays visible without JS) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .svc { grid-template-columns: 1fr; }
  .svc__main { display: contents; }
  .svc__name, .svc__body, .svc__inc { grid-column: 1; }
  .svc__tiles, .svc__type { order: 1; align-self: start; }
  .svc__bar { order: 2; padding-top: 0; margin-top: 0; justify-content: space-between; }
  .svc { row-gap: 20px; }
  .studio { grid-template-columns: 1fr; min-height: 0; }
  .studio__mark { justify-self: start; width: min(100%, 360px); }
  .ct__mark { width: min(100%, 360px); }
  .sh, .turn, .inc, .faq { grid-template-columns: 1fr; }
  .inc h2 { position: static; }
  .viewer { justify-self: stretch; max-width: none; max-height: none; }
  .rel__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  /* the menu button needs JS: without it the links stay in the header (tech F5) */
  .js .nav__links a:not(.btn) { display: none; }
  .js .nav__menu { display: block; }
  html:not(.js) .nav__links .btn { display: none; }
  html:not(.js) .nav__links { gap: 16px; }
  html:not(.js) .nav__links a:not(.btn) { font-size: 15px; }
  .nav__logo { height: 44px; }
  .hero { height: max(88vh, 620px); }
  .hero__copy { width: auto; right: var(--pad); bottom: 28px; }
  .hero__title { font-size: clamp(50px, 14.4vw, 96px); }
  .hero__live { font-size: clamp(26px, 7.2vw, 40px); }
  .hero__grad { background: linear-gradient(0deg, rgba(20,20,20,.84) 0, rgba(20,20,20,.62) 38%, rgba(20,20,20,0) 66%); }
  .hero.is-full .hero__grad { background: linear-gradient(0deg, rgba(20,20,20,.9) 0, rgba(20,20,20,.84) 42%, rgba(20,20,20,0) 66%); }
  .hero__cta { gap: 10px 22px; }
  .js .hero__cta { padding-right: 56px; }   /* room for the 44 px pause control + 12 px (fix round 3, X1) */
  .hero__slate { font-size: 13px; }
  .work__grid { grid-template-columns: 1fr; }
  .svc__tiles { gap: 8px; }
  .svc__name { font-size: clamp(40px, 11.5vw, 64px); }
  .svc__inc ul { columns: 1; }
  .foot__top { grid-template-columns: 1fr; }
  .close { grid-template-columns: 1fr; }
  .close__mark { order: -1; }
  .ct { grid-template-columns: 1fr; }
  .ct__mark { order: -1; }
  .sh { padding-top: calc(var(--nav-h) + 24px); }
  .sh--type, .sh--solo { min-height: 0; }
  .proof { gap: 16px; }
  .proof__row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .proof__row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rel__grid { grid-template-columns: 1fr 1fr; gap: 36px 16px; }   /* 4 to 6 projects: two up, not a long single file */
  .motion { bottom: 28px; }
  .reel .motion { bottom: 12px; right: 12px; }
}
@media (max-width: 540px) {
  .reel video { height: auto; aspect-ratio: 16 / 9; }
  .btn { min-height: 52px; padding: 0 20px; }
  .nav { gap: 10px; }
  .nav__logo { height: 40px; flex: none; }
  .nav__menu { flex: none; margin-right: -8px; }
  .nav .btn--sm { min-height: 40px; padding: 0 12px; font-size: 14px; }
  /* long service names ("management.", "experience.") must fit 320-375 px screens (fix round 2, N5) */
  .close--svc h2 { font-size: clamp(40px, 14.5vw, 64px); overflow-wrap: break-word; }
  .nav__links { gap: 10px; }
  .svc__tiles { gap: 6px; }
  .rel__grid { gap: 28px 12px; }
  .card--sm .card__row { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; }
  .card--sm h3, .card--sm h2 { font-size: 17px; }
  .card--sm .card__ext { font-size: 14px; }
}
@media (max-width: 380px) {
  .nav .btn--sm .arw { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
