:root {
  color-scheme: dark;
  --bg: #0e0d0b;
  --bg-tint: #151411;
  --ink: #f1ede4;
  --muted: #9a948a;
  --line: #2b2823;
  --accent: #c5f82a;
  --dark: #070706;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: #16140f; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(14,13,11,.75), rgba(14,13,11,0)) border-box no-repeat;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; }
.brand-mark img { width: 22px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-links .nav-cta { color: var(--bg); background: var(--ink); padding: 9px 16px; border-radius: 99px; }
.nav-links .nav-cta:hover { color: var(--bg); background: var(--accent); }
.menu-toggle { display: none; }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 22px; border-radius: 99px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  font-weight: 500; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.button:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.text-link {
  display: inline-flex; gap: 8px; align-items: center; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .35s var(--ease), color .2s;
}
.text-link:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }
.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

.hero { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 7vw, 80px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: .9rem; margin-bottom: clamp(28px, 5vw, 48px); }
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 0 rgba(47,179,107,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(47,179,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,107,0); } }
.hero-title {
  font-weight: 500; font-size: clamp(2.5rem, 6.6vw, 5.9rem);
  line-height: 1.02; letter-spacing: -.045em;
}
.hero-title em { color: var(--accent); letter-spacing: -.02em; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; margin-top: clamp(32px, 5vw, 56px); }
.lede { max-width: 470px; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero bento grid ---------- */
.hero.hero-bento { padding: 8px 0 24px; }
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 1.12fr 1fr;
  gap: 16px; height: calc(100vh - 104px); min-height: 640px; max-height: 920px;
}
.b { position: relative; display: block; border-radius: 22px; background: #161511; box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; color: inherit; text-decoration: none; }
.b-intro { grid-column: 1 / 8; grid-row: 1; padding: 34px 38px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(120% 120% at 100% 0%, #22201a, #141310 60%); }
.b-intro .hero-meta { margin: 0; }
.b-intro .hero-title { font-size: clamp(2rem, 3.5vw, 3.4rem); }
.b-lede { font-size: .98rem; color: var(--muted); max-width: 520px; margin: 0; }
.b-nm { grid-column: 8 / 13; grid-row: 1; }
.b-gv { grid-column: 1 / 8; grid-row: 2; }
.b-side { grid-column: 8 / 13; grid-row: 2; display: grid; grid-template-columns: 2fr 3fr; gap: 16px; }
/* case study cards + photo card */
.b-case video, .b-case img, .b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.b-gv img { object-position: 50% 12%; }
.b-photo img { object-position: 50% 42%; }
.b-photo:hover img { transform: scale(1.05); }
.b-case:hover img, .b-case:hover video { transform: scale(1.05); }
.b-photo .b-cap strong { font-size: clamp(1.5rem, 2.1vw, 2rem); }
.b-photo .b-cap small { font-size: .74rem; }
.b-case::after, .b-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,7,6,.92), rgba(8,7,6,0) 45%); }
.b-cap { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; }
/* "Password protected" badge on locked case studies */
.b-lock { position: absolute; z-index: 1; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 99px; background: rgba(14,13,11,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; color: var(--ink); font-size: .8rem; font-weight: 500; letter-spacing: .01em; }
.b-lock svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.b-cap small { display: block; color: rgba(255,255,255,.7); font-size: .8rem; margin-bottom: 6px; }
.b-cap strong { font: 400 clamp(1.7rem, 2.6vw, 2.4rem)/1 var(--serif); transition: color .3s; }
.b-case:hover .b-cap strong, .b-photo:hover .b-cap strong { color: var(--accent); }
/* small cards */
.b-mini { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .4s var(--ease), filter .3s; }
.b-mini small { color: var(--muted); font-size: .8rem; }
.b-mini .big { font: 400 clamp(2rem, 3vw, 2.6rem)/1 var(--serif); }
/* contact card (accent colour) */
.b-contact { background: var(--accent); color: #111; box-shadow: none; gap: 14px; }
.b-contact small { color: rgba(0,0,0,.6); }
.b-contact a { color: #111; }
.b-contact-links { display: flex; flex-direction: column; gap: 12px; }
.b-email { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.18); font-size: .82rem; font-weight: 500; min-width: 0; }
.b-email a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-email a:hover { text-decoration: underline; }
.b-copy { flex: none; font: inherit; font-size: .72rem; padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(0,0,0,.35); background: transparent; color: #111; cursor: pointer; }
.b-copy:hover { background: #111; color: var(--accent); }
.b-socials { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.b-socials a:hover { text-decoration: underline; }
.b-cv-btn { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-radius: 99px; background: #111; color: var(--accent) !important; font-size: .85rem; font-weight: 500; transition: transform .3s var(--ease); }
.b-cv-btn:hover { transform: translateY(-2px); }
.b-cv-link { align-self: flex-start; font-size: .85rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.b-cv-link:hover { text-decoration-thickness: 2px; }
/* Wide version of the home contact card (About page and case studies) */
.contact-cta { padding-block: clamp(40px, 6vw, 72px) 8px; }
.contact-cta .b-contact { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 44px); }
.contact-cta .b-contact small { display: block; margin-bottom: 10px; }
.contact-cta .big { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
.contact-cta .b-contact-links { width: min(380px, 100%); flex: none; }
@media (max-width: 720px) { .contact-cta .b-contact { flex-direction: column; align-items: stretch; } .contact-cta .b-contact-links { width: 100%; } }
/* cards appear one after the other */
.bento .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3) { transition-delay: .16s; }
.b-side .reveal:nth-child(1) { transition-delay: .24s; }
.b-side .reveal:nth-child(2) { transition-delay: .32s; }
@media (max-width: 900px) {
  .bento { display: flex; flex-direction: column; height: auto; min-height: 0; max-height: none; }
  .b-intro { padding: 26px; gap: 24px; }
  .b-case { aspect-ratio: 4 / 3; }
  .b-side { grid-template-columns: 1fr 1fr; }
  .b-contact { min-height: 300px; }
}
@media (max-width: 640px) {
  .b-side { grid-template-columns: 1fr; }
  .b-photo { aspect-ratio: 1 / 1; }
  .b-photo img { object-position: 50% 50%; }
}
.specialties {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line);
}
.specialties li { padding: 20px 20px 0 0; font-weight: 500; font-size: 1.02rem; }
.specialties span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Client logo marquee ---------- */
.clients { border-block: 1px solid var(--line); padding-block: clamp(32px, 5vw, 52px); }
.clients .eyebrow { text-align: center; margin-bottom: clamp(22px, 3vw, 32px); }
.marquee {
  --gap: clamp(56px, 8vw, 110px);
  display: flex; gap: var(--gap); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.logo-group {
  display: flex; flex-shrink: 0; align-items: center; justify-content: space-around;
  gap: var(--gap); min-width: 100%; margin: 0; padding: 0; list-style: none;
}
.js .logo-group { animation: marquee-scroll 34s linear infinite; }
.marquee:hover .logo-group { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(calc(-100% - var(--gap))); } }
.logo { display: flex; align-items: center; justify-content: center; height: 52px; white-space: nowrap; }
.logo img { display: none; height: var(--h, 40px); width: auto; max-width: 180px; object-fit: contain; filter: brightness(0) invert(1); opacity: .6; transition: opacity .2s; }
.logo-name { font: 500 clamp(1.15rem, 2vw, 1.6rem)/1 var(--sans); letter-spacing: -.03em; color: var(--muted); transition: color .2s; }
.logo:hover .logo-name { color: var(--ink); }
.logo.has-img img { display: block; }
.logo.has-img .logo-name { display: none; }
.logo.has-img:hover img { opacity: 1; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-tint { background: var(--bg-tint); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 32px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow { width: 100%; margin-bottom: 0; }
.section-head h2, .about h2 { font-weight: 500; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.04em; }
.section-note { max-width: 340px; margin-left: auto; color: var(--muted); font-size: .95rem; }
.section-head .text-link { margin-left: auto; }

/* ---------- Media + fallback ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line); margin: 0; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media video { display: block; }
.media-fallback { display: none; }
.media.is-empty { background: linear-gradient(135deg, #25221d, #181612); }
.media.is-empty .media-fallback {
  display: grid; place-items: center; position: absolute; inset: 0;
  font: italic clamp(2rem, 6vw, 4.5rem)/1 var(--serif); color: rgba(241,237,228,.3);
}

/* ---------- Case study ---------- */
.case { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.case + .case { margin-top: clamp(56px, 8vw, 104px); padding-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.case-media { aspect-ratio: 4 / 3; display: block; }
.case-media:hover img { transform: scale(1.04); }
.case-media.is-empty { background: radial-gradient(circle at 30% 30%, #2a3b44, #0d1418 70%); }
.case-media.is-empty .media-fallback { color: rgba(255,255,255,.75); font-style: normal; letter-spacing: .3em; font-family: var(--sans); font-weight: 500; font-size: clamp(1.8rem, 4vw, 3rem); }
.case-index { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.case h3 { font: 400 clamp(2.4rem, 4.5vw, 3.6rem)/1 var(--serif); margin-bottom: 18px; }
.case h3 a:hover { color: var(--accent); }
.case-body > p:not(.case-index) { color: var(--muted); margin-bottom: 22px; }
.case-body em { color: var(--ink); }

/* Case study tiles (home): two big image cards side by side */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.case-tile { display: block; color: inherit; text-decoration: none; }
.case-tile:nth-child(2) { transition-delay: .12s; }
.case-tile .case-media { box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.case-tile:hover .case-media, .case-tile:focus-visible .case-media { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(197,248,42,.5), 0 30px 60px -20px rgba(0,0,0,.8); }
.case-tile:hover .case-media img { transform: scale(1.05); }
.case-cap { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.case-cap .case-index { margin: 0; }
.case-title { font: 400 clamp(2rem, 3.6vw, 3rem)/1 var(--serif); display: flex; align-items: baseline; gap: 12px; transition: color .3s; }
.case-arrow { font: 400 .55em/1 var(--sans); opacity: .5; transition: transform .4s var(--ease), opacity .3s; }
.case-tile:hover .case-title { color: var(--accent); }
.case-tile:hover .case-arrow { opacity: 1; transform: translateX(4px); }
@media (max-width: 720px) { .case-grid { grid-template-columns: 1fr; gap: 48px; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 28px; list-style: none; }
.tags li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: .82rem; }

/* ---------- Case study page ---------- */
/* Case study backdrop video: strongest in the top-right corner, fading into the page */
.cs-backdrop {
  position: absolute; top: 0; left: 0; right: 0; z-index: 0; height: min(100vh, 960px);
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(75% 90% at 100% 0%, #000 0%, rgba(0,0,0,.75) 25%, rgba(0,0,0,.3) 55%, transparent 85%);
          mask-image: radial-gradient(75% 90% at 100% 0%, #000 0%, rgba(0,0,0,.75) 25%, rgba(0,0,0,.3) 55%, transparent 85%);
}
.cs-backdrop video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right top; opacity: .7; }
.cs-backdrop ~ main { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .cs-backdrop { height: 70vh; }
  .cs-backdrop video { opacity: .55; }
}
.cs-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.cs-hero .eyebrow { margin-top: 36px; }
.cs-title { font-weight: 500; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1.04; letter-spacing: -.045em; max-width: 14em; }
.cs-title em { color: var(--accent); letter-spacing: -.02em; }
.cs-lede { max-width: 640px; margin-top: 28px; color: var(--muted); font-size: 1.15rem; }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: clamp(36px, 5vw, 64px) 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.cs-facts dt { color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.cs-facts dd { margin: 0; font-weight: 500; }
.cs-cover { aspect-ratio: 16 / 9; }
.cs-cover.is-empty { background: radial-gradient(circle at 30% 30%, #2a3b44, #0d1418 70%); }
.cs-cover.is-empty .media-fallback { color: rgba(255,255,255,.75); font-style: normal; letter-spacing: .3em; font-family: var(--sans); font-weight: 500; }
.cs-section { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(24px, 5vw, 80px); padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.cs-section:last-of-type { border-bottom: 0; }
.cs-text h2 { font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 22px; max-width: 18em; }
.cs-text p { color: var(--muted); max-width: 620px; margin-bottom: 18px; }
.cs-points { list-style: none; padding: 0; margin: 28px 0 0; max-width: 620px; }
.cs-points li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.cs-points strong { color: var(--ink); font-weight: 500; }
.cs-gallery { grid-column: 1 / -1; margin-top: 12px; }
.next-case { margin-top: 0; }

/* Explore more case studies (end of each case study) */
.more-cases { border-top: 1px solid var(--line); }
.more-card { display: grid; grid-template-columns: 1.4fr 1fr; align-items: stretch; border-radius: 22px; overflow: hidden; background: #161511; box-shadow: 0 0 0 1px var(--line) inset; color: inherit; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.more-card:hover, .more-card:focus-visible { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(197,248,42,.45) inset, 0 30px 60px -24px rgba(0,0,0,.9); }
.more-img { aspect-ratio: 4 / 3; border-radius: 0; }
.more-img img { transition: transform .9s var(--ease); }
.more-card:hover .more-img img { transform: scale(1.05); }
.more-cap { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.more-cap small { color: var(--muted); font-size: .85rem; }
.more-cap strong { font: 400 clamp(2.2rem, 4vw, 3.4rem)/1 var(--serif); transition: color .3s; }
.more-card:hover .more-cap strong { color: var(--accent); }
.more-desc { color: var(--muted); max-width: 420px; }
.more-cta { margin-top: 8px; font-weight: 500; }
.more-cta span { display: inline-block; transition: transform .4s var(--ease); }
.more-card:hover .more-cta span { transform: translateX(6px); }
@media (max-width: 820px) { .more-card { grid-template-columns: 1fr; } }
.cs-shot { grid-column: 1 / -1; border-radius: var(--radius); }
.cs-shot img { height: auto; }
.cs-shot.is-empty { aspect-ratio: 16 / 9; }
.cs-video { grid-column: 1 / -1; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--dark); border: 1px solid var(--line); }
.cs-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--dark); }
.cs-sub { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(24px, 5vw, 80px); margin-top: clamp(24px, 4vw, 48px); }
.cs-sub h3 { font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.3; }
.cs-sub p { color: var(--muted); max-width: 620px; }
.cs-grid { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-grid .media { aspect-ratio: 16 / 9; }
/* Password lock screen */
.lock { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 40px; padding: 48px 24px;
  background: radial-gradient(60% 50% at 50% 30%, rgba(150,175,255,.10) 0%, transparent 70%), var(--bg); }
.lock-card { width: min(520px, 100%); padding: clamp(28px, 5vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-tint); }
.lock-card h1 { font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 14px; }
.lock-note { color: var(--muted); margin-bottom: 24px; }
.lock-row { display: flex; gap: 10px; }
.lock-row input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border-radius: 99px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); font: inherit;
}
.lock-row input:focus { outline: none; border-color: var(--ink); }
.lock-row .button { cursor: pointer; font: 500 1rem var(--sans); }
.lock-row .button:disabled { opacity: .6; cursor: progress; }
.lock-error { color: #ff8a7a; margin-top: 14px; font-size: .92rem; }
.lock-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; font-size: .92rem; }
@media (max-width: 480px) { .lock-row { flex-direction: column; } }

/* Night Mode case study: coded visuals */
.nm-cards { grid-column: 1 / -1; display: grid; gap: 16px; }
.nm-cards-2 { grid-template-columns: repeat(2, 1fr); }
.nm-cards-3 { grid-template-columns: repeat(3, 1fr); }
.nm-card {
  position: relative; overflow: hidden; padding: clamp(24px, 3vw, 36px);
  background: radial-gradient(120% 90% at 20% 0%, #1c2230 0%, var(--bg-tint) 60%);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.nm-card h3 { font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; margin: 22px 0 10px; }
.nm-card p { color: var(--muted); }
.nm-card strong { color: var(--ink); font-weight: 500; }
.nm-card-media { padding: 0 0 clamp(22px, 3vw, 30px); }
.nm-card-media .media { aspect-ratio: 16 / 9; border-radius: 0; border-bottom: 1px solid var(--line); }
.nm-card-media h3, .nm-card-media p { padding-inline: clamp(20px, 2.5vw, 28px); }
.nm-card-media h3 { margin-top: 20px; }
.nm-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle, rgba(170,190,255,.22) 0%, rgba(170,190,255,.06) 55%, transparent 72%);
  box-shadow: 0 0 40px rgba(150,175,255,.18);
}
.nm-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.nm-stat {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(80% 140% at 0% 50%, rgba(197,248,42,.08) 0%, transparent 60%), var(--bg-tint);
}
.nm-stat-num { font: 400 clamp(4.5rem, 12vw, 9rem)/.9 var(--serif); color: var(--accent); letter-spacing: -.03em; }
.nm-stat-num span { font-size: .5em; margin-left: 4px; }
.nm-stat-body > p:first-child { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.35; max-width: 26em; }
.nm-stat-body strong { font-weight: 500; color: var(--ink); }
.nm-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0; }
.nm-chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: .88rem; }
.nm-stat-note { color: var(--muted); max-width: 560px; }

.nm-benefits { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.nm-benefits li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(24px, 3vw, 36px) 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(100% 70% at 50% 0%, #1c2230 0%, var(--bg-tint) 70%);
}
.nm-benefits .nm-icon { width: 76px; height: 76px; }
.nm-benefits .nm-icon svg { width: 32px; height: 32px; }
.nm-benefits h3 { font-weight: 500; font-size: 1.02rem; letter-spacing: -.01em; margin: 18px 0 6px; }
.nm-benefits p { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Game Vision case study */
.nm-cards-4 { grid-template-columns: repeat(4, 1fr); }
.gv-pillars { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.gv-pillars li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; font-size: .9rem; }
.gv-pillars li::before { content: "✦"; color: var(--accent); margin-right: 8px; font-size: .8em; }

.gv-anatomy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.gv-shot { position: sticky; top: 96px; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--line); cursor: zoom-in; }
.gv-shot img { display: block; width: 100%; height: auto; }
.gv-shot.gallery-item:hover img { transform: none; }
.gv-markers { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.gv-markers li {
  position: absolute; left: 10px; top: var(--y); display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #16140f;
  font: 600 .82rem/1 var(--sans); box-shadow: 0 0 0 4px rgba(14,13,11,.55);
}
.gv-list { list-style: none; margin: 0; padding: 0; counter-reset: gv; }
.gv-list > li { display: grid; grid-template-columns: 36px 1fr; gap: 0 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.gv-list > li:first-child { border-top: 0; padding-top: 0; }
.gv-num { grid-row: span 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #16140f; font: 600 .88rem/1 var(--sans); }
.gv-list h3 { font-weight: 500; font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 6px; }
.gv-list p { color: var(--muted); }
.gv-list p strong { color: var(--ink); font-weight: 500; }
.gv-needs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
.gv-needs li { padding: 3px 10px; border-radius: 99px; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(197,248,42,.1); color: var(--accent); }

.gv-video { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--dark); }
.gv-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* Show Center reel: video and pause button */
.gv-reel-frame { position: relative; }
.gv-reel-toggle {
  position: absolute; right: 14px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  background: rgba(7,7,6,.62); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s var(--ease), background .2s var(--ease);
}
.gv-reel-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.gv-reel-toggle .i-play, .gv-reel.is-paused .gv-reel-toggle .i-pause { display: none; }
.gv-reel.is-paused .gv-reel-toggle .i-play { display: block; }
.gv-reel-frame:hover .gv-reel-toggle, .gv-reel-toggle:focus-visible, .gv-reel.is-paused .gv-reel-toggle { opacity: 1; }
.gv-reel-toggle:hover { background: rgba(7,7,6,.85); }
@media (hover: none) { .gv-reel-toggle { opacity: 1; } }
button.gv-num { border: 0; padding: 0; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
button.gv-num:hover { transform: scale(1.08); }
.gv-list > li { transition: opacity .3s var(--ease); }
.gv-list > li h3 { transition: color .3s var(--ease); }
.gv-list > li.is-playing .gv-num { box-shadow: 0 0 0 5px rgba(197,248,42,.18); }
.gv-list > li.is-playing h3 { color: var(--accent); }
.nm-card-media .gv-video { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.gv-wide { grid-column: 1 / -1; }
.gv-split { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.gv-split h3 { font-weight: 500; font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 10px; }
.gv-split p { color: var(--muted); margin-bottom: 12px; }
.gv-split .cs-points { margin-top: 12px; }
.gv-split.reverse > :first-child { order: 2; }
.gv-scene { display: block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

.cs-team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; list-style: none; padding: 0; margin: 28px 0 0; max-width: 620px; }
.cs-team li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--line); }
.cs-team strong { font-weight: 500; }
.cs-team span { color: var(--muted); font-size: .88rem; }
@media (max-width: 480px) { .cs-team { grid-template-columns: 1fr; } }

.work-note { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }
.work-note .text-link { margin-left: 8px; color: var(--ink); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(180px, 22vw, 300px); gap: 16px; }
.gallery-item { cursor: zoom-in; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.is-empty { cursor: default; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-media { aspect-ratio: 4 / 5; }
.about h2 { margin-bottom: 28px; }
.about h2 em { color: var(--accent); }
.about-body p:not(.eyebrow) { color: var(--muted); margin-bottom: 18px; max-width: 560px; }
.about-body .text-link { margin-top: 10px; }

/* ---------- Experience ---------- */
#memories { border-top: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.role {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease);
}
.role:hover { padding-left: 12px; }
.role h3 { font-weight: 500; font-size: 1.3rem; letter-spacing: -.02em; }
.role h3 a:hover { color: var(--accent); }
.role p { color: var(--muted); }
.role-date, .role-place { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: clamp(56px, 7vw, 88px); }
.cred { padding: 22px 0; border-top: 1px solid var(--line); }
.cred h3 { font-weight: 500; font-size: 1.12rem; margin-bottom: 4px; }
.cred h3 a:hover { color: var(--accent); }
.cred p { color: var(--muted); }
.cred span { display: block; color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* ---------- Contact ---------- */
.contact { background: var(--dark); color: var(--ink); border-top: 1px solid var(--line); padding-block: clamp(80px, 12vw, 150px); }
.contact .eyebrow { color: #a8a194; }
.contact-title { font-weight: 500; font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 48px; }
.contact-title em { color: var(--accent); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-bottom: 36px; border-bottom: 1px solid #36322a; }
.contact-email { font: italic clamp(1.6rem, 3.6vw, 2.8rem)/1.1 var(--serif); word-break: break-all; transition: color .2s; }
.contact-email:hover { color: var(--accent); }
.copy-btn { font: 500 .88rem var(--sans); color: var(--ink); background: transparent; border: 1px solid #4a453b; padding: 9px 16px; border-radius: 99px; cursor: pointer; transition: border-color .2s; }
.copy-btn:hover { border-color: var(--ink); }
.socials { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 32px 0 0; padding: 0; list-style: none; }
.socials a { color: #c9c2b4; transition: color .2s; }
.socials a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px; color: var(--muted); font-size: .88rem; }
.site-footer a:hover { color: var(--ink); }

/* Night Mode: hero video sits first, right under the menu */
.nm-hero-top { padding-top: clamp(12px, 2vw, 24px); }
.nm-hero-top + .cs-hero { padding-top: clamp(32px, 5vw, 56px); }

/* ---------- Contact page ---------- */
.contact-page { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 120px); align-items: start; padding-block: clamp(56px, 9vw, 112px) clamp(64px, 9vw, 120px); }
.contact-intro .eyebrow { margin-bottom: 18px; }
.contact-intro .cs-lede { max-width: 500px; }
.contact-details { margin: 40px 0 36px; display: grid; gap: 22px; }
.contact-details dt { color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.contact-details dd { margin: 0; font-size: 1.05rem; font-weight: 500; }
.contact-email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.contact-email-row a:hover, .contact-socials a:hover, .contact-details a[href^="tel:"]:hover { color: var(--accent); }
.contact-copy { border-color: var(--line); color: var(--ink); }
.contact-copy:hover { background: var(--accent); border-color: var(--accent); color: #16140f; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.contact-form-wrap { padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: #161511; box-shadow: 0 0 0 1px var(--line) inset; }
.contact-form { display: grid; gap: 30px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: 6px; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid #3a3630; border-radius: 0;
  background: transparent; color: var(--ink); font: 400 1.05rem/1.5 var(--sans); outline: none; resize: vertical;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.form-error { margin: -10px 0 0; color: #ff8a7a; font-size: .9rem; }
.contact-form .button { font: 500 1rem/1 var(--sans); cursor: pointer; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { margin: 0; color: var(--muted); font-size: .85rem; }
.form-note.is-ok { color: var(--accent); }
.form-privacy { margin: -14px 0 0; color: var(--muted); font-size: .8rem; }
.field textarea::placeholder, .field input::placeholder { color: #6f6a62; }
.form-note a { color: var(--ink); text-decoration: underline; }
.contact-form .button:disabled { opacity: .6; cursor: wait; }
.nav-links .nav-cta[aria-current="page"] { background: var(--accent); color: #16140f; text-decoration: none; }
@media (max-width: 900px) { .contact-page { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- 404 page ---------- */
.notfound { min-height: calc(100vh - 180px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(48px, 8vw, 96px); }
.notfound-code { margin: 0 0 8px; font: italic 400 clamp(6.5rem, 20vw, 15rem)/.85 var(--serif); color: var(--accent); letter-spacing: -.03em; }
.notfound .eyebrow { margin-bottom: 18px; }
.notfound-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }

/* ---------- Lightbox & toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vmin; background: rgba(12,11,8,.92); animation: fade .25s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; color: #fff; background: rgba(255,255,255,.1); border: 0; border-radius: 50%; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .case, .about, .cs-section, .cs-sub { grid-template-columns: 1fr; }
  .cs-sub { gap: 10px; }
  .nm-cards-3 { grid-template-columns: 1fr; }
  .nm-benefits { grid-template-columns: repeat(2, 1fr); }
  .nm-benefits li:last-child { grid-column: 1 / -1; }
  .nm-cards-4 { grid-template-columns: repeat(2, 1fr); }
  .gv-anatomy, .gv-split { grid-template-columns: 1fr; }
  .gv-shot { position: relative; top: 0; max-width: 420px; }
  .gv-split.reverse > :first-child { order: 0; }
  .cs-facts { grid-template-columns: repeat(2, 1fr); }
  .about-media { max-width: 420px; }
  .specialties { grid-template-columns: repeat(2, 1fr); }
  .role { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .role-date { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nm-cards-2, .nm-cards-4 { grid-template-columns: 1fr; }
  .nm-stat { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 36px); }
  .hide-sm { display: none; }
  .menu-toggle {
    display: grid; align-content: center; justify-items: center; gap: 6px;
    width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.1rem; color: var(--ink); }
  .nav-links .nav-cta { margin-top: 10px; text-align: center; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 10px; }
  .gallery-item.tall { grid-row: span 1; }
  .memories .gallery-item:last-child { grid-column: span 2; }
  .credentials { grid-template-columns: 1fr; gap: 24px; }
  .section-note, .section-head .text-link { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .logo-group[aria-hidden="true"] { display: none; }
  .logo-group { flex-wrap: wrap; row-gap: 24px; }
}
