/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  --ink: #04070F;
  --ink-2: #0A1020;
  --brand: #02367B;
  --brand-bright: #3D7BFF;
  --paper: #EEF1F6;
  --text: #F3F5FA;
  --text-dim: #8B94A7;
  --text-ink: #0A1020;
  --line: rgba(255, 255, 255, .12);

  --f-display: "Clash Display", "Arial Narrow", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(96px, 14vw, 220px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.1vw, 1.1875rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; color: var(--brand-bright); }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 16px; background: var(--text); color: var(--ink); border-radius: 4px; transform: translateY(-200%); }
.skip:focus { transform: none; }

.label {
  font-family: var(--f-mono);
  font-size: clamp(.6875rem, .8vw, .75rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 7rem);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2 em, .hero__title em, .contact__title em { font-size: 1.06em; }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 7vw, 110px); }

/* split text */
.w { display: inline-block; vertical-align: top; }
[data-reveal] .w { overflow: hidden; padding: .08em .08em .14em 0; margin: -.08em -.08em -.14em 0; }
.wi, .c { display: inline-block; will-change: transform; }
.line { display: block; overflow: hidden; padding: .06em .08em .12em 0; margin: -.06em 0 -.12em; }
.line__inner { display: block; }

/* dot */
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 0 0 rgba(61, 123, 255, .6); animation: pulse 2.2s infinite; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 123, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 123, 255, 0); } }

/* links */
.link { position: relative; display: inline-block; padding-block: 4px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .75em;
  padding: 1.05em 1.7em;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-weight: 500;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease);
  will-change: transform;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--brand); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover, .btn:focus-visible { color: #fff; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn__arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--sm { padding: .8em 1.2em; font-size: .875rem; }
.btn--lg { padding: 1.3em 2.4em; font-size: clamp(1.1rem, 1.6vw, 1.5rem); }

/* ==========================================================================
   GLOBAL LAYERS: grain, progress, cursor, preloader
   ========================================================================== */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 4%); } 40% { transform: translate(4%, -2%); }
  60% { transform: translate(-2%, -4%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.progress { position: fixed; top: 0; left: 0; z-index: 150; width: 100%; height: 2px; background: var(--brand-bright); transform: scaleX(0); transform-origin: left; }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .motion .cursor {
    display: grid; place-items: center;
    position: fixed; top: 0; left: 0; z-index: 190;
    width: 12px; height: 12px; margin: -6px 0 0 -6px;
    border-radius: 50%; background: #fff; pointer-events: none;
    mix-blend-mode: difference;
    transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .3s, opacity .3s;
  }
  .motion .cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .motion .cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--brand-bright); mix-blend-mode: normal; }
  .cursor__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: #fff; opacity: 0; transition: opacity .2s; }
  .cursor.is-label .cursor__label { opacity: 1; }
}

.preloader { display: none; }
.motion .preloader {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter);
  background: var(--ink);
}
.preloader__name { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.preloader__count { font-family: var(--f-display); font-weight: 500; font-size: clamp(5rem, 20vw, 18rem); line-height: .8; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  transition: transform .6s var(--ease), background-color .4s, color .4s;
}
.nav.is-scrolled { background: rgba(4, 7, 15, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.on-paper { color: var(--text-ink); }
.nav.on-paper.is-scrolled { background: rgba(238, 241, 246, .7); }
.nav.on-paper .btn { background: var(--text-ink); color: var(--paper); }
.nav__brand { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; justify-self: start; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 40px); font-size: .9375rem; white-space: nowrap; }
.nav__links .link[aria-current="page"]::after { transform: scaleX(1); }
.menu__links a[aria-current="page"] { color: var(--brand-bright); }
.nav__cta { justify-self: end; }
.nav__toggle { display: none; justify-self: end; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 14px 0 14px 14px; min-height: 44px; }

.menu {
  position: fixed; inset: 0; z-index: 110;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 40px;
  background: var(--ink);
}
.menu__links { display: grid; gap: 8px; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.75rem, 7.8vw, 4rem); line-height: 1.05; letter-spacing: -.03em; text-transform: uppercase; padding-block: 6px; border-bottom: 1px solid var(--line); }
.menu__cta { align-self: stretch; justify-content: center; }

/* ==========================================================================
   MEDIA (video stage + studio-light fallback)
   ========================================================================== */
.media { position: absolute; inset: 0; overflow: hidden; background: var(--ink) center / cover no-repeat; --p: 0; }
.media.has-poster { background-image: var(--poster); }
.media__light { position: absolute; inset: 0; animation: breathe 12s ease-in-out infinite alternate; }
.media__light::before, .media__light::after { content: ""; position: absolute; border-radius: 50%; will-change: transform; }
.media__light::before {
  width: 70vmax; height: 70vmax; left: -25vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(61, 123, 255, .5) 0%, rgba(2, 54, 123, .45) 35%, rgba(2, 54, 123, 0) 68%);
  transform: translate3d(calc(var(--p) * 75vw), calc(var(--p) * 18vh), 0);
}
.media__light::after {
  width: 55vmax; height: 55vmax; right: -20vmax; bottom: -30vmax;
  background: radial-gradient(circle, rgba(2, 54, 123, .7) 0%, rgba(2, 54, 123, 0) 65%);
  transform: translate3d(calc(var(--p) * -55vw), calc(var(--p) * -10vh), 0);
}
@keyframes breathe { from { transform: scale(1); opacity: .85; } to { transform: scale(1.12); opacity: 1; } }
.media.has-poster .media__light, .media.has-video .media__light { opacity: .35; animation: none; }
.media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.media.has-video video { opacity: 1; }
.media__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 7, 15, .55) 0%, rgba(4, 7, 15, .1) 35%, rgba(4, 7, 15, .85) 100%); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; }
.hero__sticky { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 96px; padding-bottom: clamp(72px, 11vh, 120px);
  transform-origin: left bottom;
}
.hero__eyebrow { margin-bottom: clamp(16px, 2.5vh, 32px); color: var(--text); font-size: clamp(.8125rem, 1.15vw, 1.0625rem); }
.hero__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2.4rem, min(8.4vw, 17svh), 9.5rem);
  line-height: .9; letter-spacing: -.035em; text-transform: uppercase;
}
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(20px, 3.5vh, 44px); }
.hero__sub { max-width: 34ch; font-size: clamp(1rem, 1.35vw, 1.3rem); color: var(--text); }
.hero__corners { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; display: flex; justify-content: flex-end; align-items: center; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.scroll-line { position: relative; display: block; width: 56px; height: 1px; background: var(--line); overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--text); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ==========================================================================
   STATS + MARQUEE
   ========================================================================== */
.stats { position: relative; z-index: 3; background: var(--ink); padding-top: clamp(72px, 9vw, 140px); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 8px clamp(16px, 3vw, 48px) 8px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num { font-family: var(--f-display); font-weight: 500; font-size: clamp(4rem, 12vw, 12rem); line-height: .85; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 20px; max-width: 22ch; color: var(--text-dim); }

.marquee { margin-top: clamp(72px, 9vw, 140px); padding-block: clamp(18px, 2.2vw, 32px); border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.75rem, 4.5vw, 4.5rem); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.marquee__track b { display: inline-block; margin-inline: .5em; font-weight: 400; font-size: .5em; vertical-align: middle; color: var(--brand-bright); }
.marquee__track em { font-size: 1.05em; }

/* ==========================================================================
   MISSION
   ========================================================================== */
.mission { position: relative; }
.mission__sticky { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-block: var(--section); }
.mission__frame { opacity: .55; }
.mission__content { position: relative; z-index: 2; display: grid; gap: clamp(28px, 4vw, 56px); }
.mission__text { max-width: 21em; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.75rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: pretty; }
.mission__text em { font-size: 1.06em; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { position: relative; padding-block: var(--section); }
.services__list { border-bottom: 1px solid var(--line); }
.service { border-top: 1px solid var(--line); transition: opacity .5s var(--ease); }
.service__head { width: 100%; display: grid; grid-template-columns: clamp(40px, 8vw, 140px) 1fr auto 44px; align-items: center; gap: 16px; padding-block: clamp(22px, 3.2vw, 48px); }
.service__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 6.2vw, 6.25rem); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; transition: transform .7s var(--ease), color .4s; }
.service.is-open .service__title { transform: translateX(clamp(8px, 1.5vw, 28px)); color: var(--brand-bright); }
.service__plus { position: relative; width: 44px; height: 44px; justify-self: end; }
.service__plus::before, .service__plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .6s var(--ease); }
.service__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.service.is-open .service__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.service__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.service.is-open .service__body { grid-template-rows: 1fr; }
.service__inner { overflow: hidden; display: grid; grid-template-columns: minmax(0, 34em) 1fr; gap: 24px 48px; align-items: start; padding-left: calc(clamp(40px, 8vw, 140px) + 16px); }
.service__inner > * { margin-bottom: clamp(28px, 3.5vw, 52px); }
.service__inner p { color: var(--text-dim); font-size: clamp(1rem, 1.3vw, 1.25rem); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .55em 1em; border: 1px solid var(--line); border-radius: 999px; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .services__list:hover .service:not(:hover) { opacity: .35; }
}

/* ==========================================================================
   STORY (paper)
   ========================================================================== */
.story { position: relative; z-index: 2; background: var(--paper); color: var(--text-ink); padding-block: var(--section); }
.story .label { color: #5A6478; }
.story em { color: var(--brand); }
.story__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.story__text > .label { margin-bottom: 24px; }
.story .h2 { font-size: clamp(2.5rem, 5.6vw, 5.75rem); }
.story__body { display: grid; gap: 1.2em; max-width: 36em; margin-top: clamp(32px, 4vw, 64px); font-size: clamp(1.05rem, 1.3vw, 1.3rem); color: #2A3348; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 80px); padding-top: 24px; border-top: 1px solid rgba(10, 16, 32, .16); }
.timeline li { display: grid; gap: 8px; }
.timeline strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.15; letter-spacing: -.01em; }

.story__media { position: relative; padding-bottom: 18%; }
.story__img { overflow: hidden; border-radius: 20px; }
.story__img--main { width: 82%; margin-left: auto; aspect-ratio: 3 / 4; }
.story__img--main img { width: 100%; height: 112%; object-fit: cover; }
.story__img--side { position: absolute; left: 0; bottom: 0; width: 46%; border: 8px solid var(--paper); border-radius: 24px; box-shadow: 0 30px 60px rgba(10, 16, 32, .18); }
.story__img--side { aspect-ratio: 4 / 5; }
.story__img--side img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.story__caption { position: absolute; right: 0; bottom: 6%; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.resume { position: relative; padding-block: 0 var(--section); }
.resume__group { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.4fr); gap: 24px clamp(24px, 5vw, 80px); padding-top: clamp(28px, 3vw, 48px); border-top: 1px solid var(--line); }
.resume__group + .resume__group { margin-top: clamp(64px, 8vw, 120px); }
.resume__side { position: sticky; top: 110px; align-self: start; display: grid; gap: 12px; }
.resume__kind { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.75rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.entry { display: grid; grid-template-columns: minmax(0, 11.5em) 1fr; gap: 12px 32px; padding-block: clamp(24px, 3vw, 44px); border-top: 1px solid var(--line); }
.entry:first-child { padding-top: 0; border-top: 0; }
.entry:last-child { padding-bottom: 0; }
.entry__date { padding-top: .5em; color: var(--text); }
.entry__title { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 2.1rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.entry__org { margin-top: 10px; color: var(--brand-bright); }
.entry__desc { margin-top: 14px; max-width: 46em; color: var(--text-dim); }
@media (max-width: 1024px) {
  .resume__group { grid-template-columns: 1fr; }
  .resume__side { position: static; grid-template-columns: 1fr auto; align-items: baseline; margin-bottom: 12px; }
}
@media (max-width: 640px) {
  .entry { grid-template-columns: 1fr; gap: 8px; }
  .entry__date { padding-top: 0; color: var(--text-dim); }
}

/* awards */
.awards { position: relative; padding-block: 0 var(--section); }
.awards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.award { position: relative; display: flex; flex-direction: column; min-height: clamp(320px, 27vw, 420px); padding: clamp(22px, 2.2vw, 34px); border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); overflow: hidden; isolation: isolate; transition: border-color .5s var(--ease), transform .6s var(--ease); }
.award::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, #0d55c4 0%, var(--brand) 45%, rgba(2, 54, 123, 0) 80%); opacity: 0; transition: opacity .6s var(--ease); }
.award:hover, .award:focus-within { border-color: rgba(61, 123, 255, .6); transform: translateY(-4px); }
.award:hover::before, .award:focus-within::before { opacity: .6; }
.award__idx { color: var(--brand-bright); }
.award__title { margin-top: clamp(28px, 4vw, 64px); font-family: var(--f-display); font-weight: 500; font-size: clamp(1.3rem, 1.9vw, 1.8rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.award__meta { margin-top: 10px; color: var(--brand-bright); font-size: .9375rem; }
.award__desc { margin-top: 14px; margin-bottom: 28px; color: var(--text-dim); font-size: .9375rem; }
.award__btn { margin-top: auto; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding-top: 16px; width: 100%; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.award__btn::after { content: ""; position: absolute; inset: 0; }
.award__btn span { margin-left: auto; transition: transform .4s var(--ease); }
.award:hover .award__btn span { transform: translate(3px, -3px); }
.award__btn:focus-visible { outline: none; }
.award:has(.award__btn:focus-visible) { outline: 2px solid var(--brand-bright); outline-offset: 4px; }
@media (max-width: 1024px) { .awards__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .awards__grid { grid-template-columns: 1fr; } .award { min-height: 0; } .award__title { margin-top: 28px; } }

/* certificate pop-up */
.cert { width: min(92vw, 640px); max-width: none; max-height: 92vh; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.cert::backdrop { background: rgba(4, 7, 15, .84); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cert[open] { animation: certIn .5s var(--ease); }
@keyframes certIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.cert__inner { padding: clamp(16px, 2vw, 28px); border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); }
.cert__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cert__title { margin-top: 6px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.15; letter-spacing: -.01em; }
.cert__close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background-color .3s, color .3s; }
.cert__close:hover { background: var(--text); color: var(--ink); }
.cert__frame { display: grid; place-items: center; min-height: min(56vh, 480px); border-radius: 12px; overflow: hidden; background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 100%,
    #060b17; }
.cert__frame:has(.cert__img:not([hidden])) { min-height: 0; background: #060b17; }
.cert__img { width: 100%; max-height: calc(92vh - 190px); object-fit: contain; }
.cert__nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 14px; }
.cert__step { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background-color .3s, color .3s; }
.cert__step:hover { background: var(--text); color: var(--ink); }
.cert__count { min-width: 4em; text-align: center; color: var(--text); }
.cert__empty { padding: 24px; text-align: center; }

/* specialty & application experience */
.specialty { position: relative; padding-block: 0 var(--section); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.spec { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); transition: border-color .5s var(--ease); }
.spec:hover { border-color: rgba(61, 123, 255, .5); }
.spec__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.spec__idx, .spec__cat { color: var(--brand-bright); }
.spec__cat { text-align: right; }
.spec__title { margin-top: clamp(32px, 5vw, 80px); font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 2.9vw, 2.9rem); line-height: 1.02; letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance; }
.spec__desc { margin-top: 18px; max-width: 42em; color: var(--text-dim); }
.spec__tools { margin-top: auto; padding-top: clamp(28px, 3vw, 44px); }
.spec__tools .label { margin-bottom: 12px; }
.chips li.is-new { border-color: rgba(61, 123, 255, .7); }
.chips li b { margin-left: .7em; font-weight: 400; color: var(--brand-bright); }
@media (max-width: 760px) { .spec-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   WORK
   ========================================================================== */
.work { position: relative; overflow: hidden; }
.work__pin { padding-block: 0 clamp(56px, 8vw, 110px); }
.work .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.work__viewport::-webkit-scrollbar { display: none; }
.work__track { display: flex; gap: clamp(16px, 2.4vw, 40px); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.card { flex: none; width: clamp(270px, 78vw, 400px); scroll-snap-align: center; }
.card__media {
  position: relative; height: clamp(300px, 52vh, 560px); overflow: hidden; border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 48px 100%,
    radial-gradient(120% 90% at 20% 0%, #0d55c4 0%, var(--brand) 45%, #03112a 100%);
  transition: transform .8s var(--ease);
}
.card:nth-child(even) .card__media { background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 48px 100%,
    radial-gradient(110% 80% at 90% 100%, var(--brand) 0%, #06122b 55%, var(--ink-2) 100%); }
.card__media.has-img { background: var(--ink-2) var(--img) center / cover no-repeat; }
.card__media.has-img .card__idx { display: none; }
.card__idx { position: absolute; left: 20px; bottom: 4px; font-family: var(--f-display); font-weight: 500; font-size: clamp(6rem, 13vw, 13rem); line-height: 1; letter-spacing: -.05em; color: rgba(255, 255, 255, .92); }
.card:hover .card__media { transform: scale(.98); }
.card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 18px; }
.card__meta h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -.01em; }
.card__meta .label { text-align: right; }
.card--end { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-left: clamp(8px, 3vw, 56px); height: clamp(300px, 52vh, 560px); }
.card__next { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.25rem, 4.5vw, 4.5rem); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding-block: clamp(120px, 16vw, 220px) clamp(56px, 7vw, 110px); }
.contact .media__shade { background: linear-gradient(180deg, rgba(4, 7, 15, .9) 0%, rgba(4, 7, 15, .45) 45%, rgba(4, 7, 15, .9) 100%); }
.contact__content { position: relative; z-index: 2; }
.contact__content > .label { margin-bottom: 24px; }
.contact__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 13.5vw, 15rem); line-height: .88; letter-spacing: -.04em; text-transform: uppercase; }
.contact__foot { display: grid; grid-template-columns: minmax(0, 30em) 1fr; gap: 28px 48px; align-items: end; margin-top: clamp(32px, 5vw, 72px); }
.contact__sub { font-size: clamp(1.05rem, 1.4vw, 1.35rem); }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px 32px; }
.copy { display: grid; gap: 4px; min-height: 44px; }
.copy__text { font-size: clamp(1.05rem, 1.4vw, 1.35rem); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s; }
.copy:hover .copy__text { border-color: var(--text); }
.contact__avail { grid-column: 1 / -1; color: var(--text); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 96px); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 32px; }
.footer__cols .label { margin-bottom: 16px; }
.footer__cols ul { display: grid; gap: 6px; font-size: .9375rem; }
.footer__clock { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-variant-numeric: tabular-nums; }
.footer__mark { margin-top: clamp(40px, 6vw, 96px); padding-inline: var(--gutter); overflow: hidden; line-height: .8; }
.footer__mark span { display: inline-block; white-space: nowrap; font-family: var(--f-display); font-weight: 600; font-size: 12vw; line-height: .82; letter-spacing: -.03em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(243, 245, 250, .5); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px; margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }

/* ==========================================================================
   DESKTOP MOTION LAYOUT (pins rely on sticky + tall sections)
   ========================================================================== */
@media (min-width: 1025px) {
  .motion .hero { height: 280vh; }
  .motion .hero__sticky { position: sticky; top: 0; }
  .motion .mission { height: 260vh; }
  .motion .mission__sticky { position: sticky; top: 0; height: 100vh; padding-block: 0; }
  /* the pinned gallery needs 96px of its own top padding to clear the nav, so the section before it gives that much back */
  .motion .work__pin { height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; padding-block: 96px 40px; }
  .motion .specialty { padding-bottom: calc(var(--section) - 96px); }
  .motion .work__viewport { overflow: visible; }
  .card { width: clamp(360px, 34vw, 600px); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .story__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 560px; }
  .contact__foot { grid-template-columns: 1fr; }
  .contact__actions { justify-content: flex-start; }
  .service__inner { grid-template-columns: 1fr; gap: 0; }
  .service__inner > p { margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .grain { opacity: .05; }
  .hero__title { font-size: min(10.4vw, 9.5svh); }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero__content { padding-bottom: 72px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .stat__num { font-size: 5.25rem; }
  .stat__label { margin: 0; max-width: 14ch; text-align: right; }
  .service__head { grid-template-columns: 28px 1fr 44px; gap: 10px; }
  .service__tag { display: none; }
  .service__inner { padding-left: 38px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 7.5em 1fr; align-items: baseline; }
  .card__meta { flex-direction: column; gap: 6px; }
  .card__meta .label { text-align: left; }
  .contact__actions .btn { width: 100%; justify-content: center; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__base { flex-direction: column; align-items: center; text-align: center; }
}

/* ==========================================================================
   INNER PAGES: page hero, project cards, case studies
   ========================================================================== */
.page-hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; padding-block: clamp(116px, 15vh, 160px) clamp(40px, 5vw, 72px); }
.page-hero__content { position: relative; z-index: 2; }
.page-hero__eyebrow { margin-bottom: clamp(16px, 2.5vh, 32px); color: var(--text); font-size: clamp(.8125rem, 1.15vw, 1.0625rem); }
/* a sub line set as one sentence per line; on narrow screens it wraps naturally */
.hero__sub--wide { max-width: none; }
@media (max-width: 760px) { .br-wide { display: none; } }
.page-hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 32px; margin-top: clamp(20px, 3.5vh, 44px); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: .75em 1.2em; border: 1px solid var(--line); border-radius: 999px; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; transition: background-color .3s, color .3s, border-color .3s; }
.jump a:hover, .jump a:focus-visible { background: var(--text); border-color: var(--text); color: var(--ink); }

/* project cards (design page) */
:where(.work--stack) .work__pin { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 56px); }
.card--project { display: block; }
.card.card--project .card__media { height: clamp(220px, 40vh, 520px); border: 1px solid var(--line); background: var(--ink-2); }
.card--project .card__media img { width: 100%; height: 100%; object-fit: contain; }
.card.card--project .card__media--screens { display: flex; justify-content: center; gap: 12px; padding: 18px; background: radial-gradient(120% 90% at 20% 0%, #0d55c4 0%, var(--brand) 45%, #03112a 100%); }
.card--project .card__media--screens img { flex: 0 1 auto; min-width: 0; width: auto; height: 100%; border-radius: 10px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.card__num { position: absolute; left: 14px; top: 14px; padding: .45em .8em; border-radius: 999px; background: rgba(4, 7, 15, .72); color: var(--text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card__desc { margin-top: 8px; max-width: 38em; color: var(--text-dim); font-size: .9375rem; }

/* project grid: three cards per row */
.grid-sec { padding-bottom: var(--section); }
/* the scrolling row ends with the same gap as a grid section, so the spacing between sections is even */
:where(.work--stack) .work__pin { padding-bottom: var(--section); }
@media (min-width: 1025px) { .motion .work--stack .work__pin { height: auto; min-height: 100vh; padding-bottom: var(--section); } }
/* first section under a page hero: same top padding and heading gap as the Design page's first (pinned) section */
.grid-sec--lead { padding-top: clamp(40px, 6vw, 80px); }
.grid-sec--lead .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 1025px) { .motion .grid-sec--lead { padding-top: 96px; } }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.6vw, 56px) clamp(16px, 2.4vw, 40px); }
.proj-grid .card { width: auto; }
.proj-grid .card.card--project .card__media { height: auto; aspect-ratio: 4 / 3; }
/* the sideways-scrolling row uses the same card size as the grid */
.work--stack .card.card--project .card__media { height: auto; aspect-ratio: 4 / 3; }
@media (min-width: 1025px) { .work--stack .work__viewport { container-type: inline-size; } .work--stack .card { width: calc((100cqw - 2 * var(--gutter) - 2 * clamp(16px, 2.4vw, 40px)) / 3); } }
@media (max-width: 1024px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }

/* video cards (videography page) */
.vid-list { display: grid; gap: clamp(40px, 5vw, 80px); }
.vid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.6vw, 56px) clamp(16px, 2.4vw, 40px); }
.vid-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vid-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(14px, 1.6vw, 24px); }
.vid-grid--4 .vcard__title { font-size: clamp(1.05rem, 1.3vw, 1.25rem); }
.vid-grid--4 .vcard__play { width: clamp(40px, 3.6vw, 52px); }
@media (max-width: 1280px) and (min-width: 1025px) { .vid-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vid-grid--2 .vcard__title { font-size: clamp(1.25rem, 1.9vw, 1.8rem); }
.vcard__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; }
.vcard__play { position: absolute; left: 50%; top: 50%; width: clamp(48px, 5vw, 68px); aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(4, 7, 15, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transform: translate(-50%, -50%); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.vcard__play::after { content: ""; position: absolute; left: 53%; top: 50%; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--text); transform: translate(-50%, -50%); }
a.vcard__media:hover .vcard__play, a.vcard__media:focus-visible .vcard__play { background: var(--brand-bright); border-color: var(--brand-bright); }
.vcard__title { margin-top: 18px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.vcard__specs dd { max-width: 70%; }
.vcard__sub { margin-top: 6px; color: var(--text-dim); font-size: .9375rem; }
.vcard__sub + .vcard__watch, .vcard__sub + .vcard__soon { margin-top: 16px; }
.vcard__watch, .vcard__soon { margin-top: 22px; }
.vcard--feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.vcard--feature .vcard__title { margin-top: 0; font-size: clamp(1.5rem, 2.5vw, 2.5rem); line-height: 1.08; letter-spacing: -.02em; }
.vcard--feature .vcard__specs { margin-top: clamp(20px, 2.4vw, 32px); }
@media (max-width: 1024px) {
  .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vcard--feature { grid-template-columns: 1fr; }
  .vcard--feature .vcard__title { margin-top: 4px; }
}
@media (max-width: 640px) { .vid-grid, .vid-grid--2 { grid-template-columns: 1fr; } }
/* photography: landscape tile starts full screen, scrolling zooms out to the genre grid */
.pg-zoom { position: relative; }
.pg-zoom__intro { position: relative; padding-top: clamp(116px, 15vh, 160px); padding-bottom: clamp(32px, 4vw, 56px); }
.pg-zoom__hint { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; margin-top: clamp(20px, 2.4vw, 32px); padding: 12px 20px 12px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(4, 7, 15, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pg-zoom__hint .label { font-size: .8125rem; color: var(--text); }
.pg-zoom__mouse { position: relative; display: block; flex: none; width: 22px; height: 34px; border: 1.5px solid var(--text); border-radius: 12px; }
.pg-zoom__mouse span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--brand-bright); animation: pgWheel 1.6s var(--ease) infinite; }
.pg-zoom__arrow { color: var(--brand-bright); font-size: 1.1rem; line-height: 1; animation: pgBounce 1.6s ease-in-out infinite; }
@keyframes pgWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes pgBounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(5px); } }
@media (min-width: 1025px) { .motion .pg-zoom__hint { position: absolute; left: 50%; bottom: clamp(28px, 5vh, 48px); margin: 0; transform: translateX(-50%); } }
@media (max-width: 1024px) { .pg-zoom__hint { display: none; } }
.pg-tile--hero img { object-position: 62% 45%; }
.pg-stage { padding-bottom: var(--section); }
.pg-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); grid-template-areas: "a l l b" "c l l d" "e f f g"; gap: clamp(10px, 1.2vw, 18px); aspect-ratio: 16 / 9; }
.pg-tile--a { grid-area: a; } .pg-tile--b { grid-area: b; } .pg-tile--c { grid-area: c; } .pg-tile--d { grid-area: d; }
.pg-tile--e { grid-area: e; } .pg-tile--f { grid-area: f; } .pg-tile--g { grid-area: g; } .pg-tile--l { grid-area: l; }
.pg-tile { position: relative; display: block; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); isolation: isolate; }
.pg-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pg-tile::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(4, 7, 15, 0) 45%, rgba(4, 7, 15, .78) 100%); pointer-events: none; }
.pg-tile:hover img, .pg-tile:focus-visible img { transform: scale(1.05); }
.pg-tile__meta { position: absolute; left: clamp(12px, 1.4vw, 20px); right: clamp(12px, 1.4vw, 20px); bottom: clamp(10px, 1.2vw, 18px); z-index: 1; display: flex; align-items: baseline; gap: 10px; }
.pg-tile__meta .label { color: var(--brand-bright); }
.pg-tile__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.5rem); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.pg-tile--hero .pg-tile__name { font-size: clamp(1.25rem, 2.2vw, 2.2rem); }
.pg-feature { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); }
.pg-feature img { width: 100%; height: auto; }
@media (min-width: 1025px) {
  .motion .pg-zoom { height: 100vh; height: 100svh; overflow: hidden; }
  .motion .pg-zoom__intro { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(56px, 9vh, 104px); pointer-events: none; background: linear-gradient(0deg, rgba(4, 7, 15, .7) 0%, rgba(4, 7, 15, 0) 55%); }
  .motion .pg-stage { position: absolute; inset: 0; padding: 96px var(--gutter) 32px; }
  .motion .pg-grid { width: 100%; height: 100%; aspect-ratio: auto; will-change: transform; }
}
@media (max-width: 1024px) {
  /* tablet: two per row in number order 01-08, with 01 Aviation and 08 Architecture full width */
  .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-template-areas: "l l" "b d" "a c" "e f" "g g"; aspect-ratio: auto; }
  .pg-tile { aspect-ratio: 4 / 3; }
  .pg-tile--l, .pg-tile--g { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  /* phone order follows the tile numbers 01-08: Aviation (l), Motorsports (b), Wildlife (d), Landscape (a),
     Long Exposure (c), Macro (e), Low Light (f), Architecture (g) */
  .pg-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "l" "b" "d" "a" "c" "e" "f" "g"; }
  .pg-tile, .pg-tile--l, .pg-tile--g { aspect-ratio: 4 / 3; border-radius: 14px; }
}
/* photo gallery (genre pages): side nav with search and categories, 4 photos per row */
.pgal { padding-bottom: clamp(48px, 5vw, 72px); }
.pgal__layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.pgal__side { position: sticky; top: 96px; display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); }
.pgal__search input { width: 100%; min-height: 44px; padding: 10px 14px 10px 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238B94A7' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 15px 50% / 15px no-repeat; color: var(--text); font: inherit; font-size: .9375rem; transition: border-color .3s; }
.pgal__search input::placeholder { color: var(--text-dim); }
.pgal__search input:focus { outline: none; border-color: var(--brand-bright); }
.pgal__cats-label { margin-top: 12px; }
.pgal__cats { display: grid; gap: 4px; }
.pgal__select { display: none; position: relative; }
.pgal__select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pgal__select select { width: 100%; min-height: 48px; padding: 10px 44px 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); color: var(--text); font: inherit; font-size: .9375rem; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .3s; }
.pgal__select select:focus { outline: none; border-color: var(--brand-bright); }
.pgal__select option { background: var(--ink-2); color: var(--text); }
.pgal__cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 12px; color: var(--text-dim); font-size: .9375rem; line-height: 1.25; transition: color .3s, background-color .3s, border-color .3s; }
.pgal__cat span { flex: none; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .06em; }
.pgal__cat:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.pgal__cat.is-active { color: var(--text); border-color: rgba(61, 123, 255, .6); background: rgba(61, 123, 255, .1); }
.pgal__cat.is-active span { color: var(--brand-bright); }
.pgal__status { margin-bottom: 16px; }
.pgal__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.pgal__open { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); }
.pgal__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pgal__open:hover img, .pgal__open:focus-visible img { transform: scale(1.05); }
/* details sit over the bottom of the photo; clicks pass through to the photo underneath */
.pgal__item { position: relative; }
.pgal__meta { position: absolute; left: 1px; right: 1px; bottom: 1px; display: grid; gap: 2px; padding: 26px 12px 10px; border-radius: 0 0 15px 15px; background: linear-gradient(180deg, rgba(4, 7, 15, 0) 0%, rgba(4, 7, 15, .72) 45%, rgba(4, 7, 15, .92) 100%); pointer-events: none; }
.pgal__name { font-family: var(--f-display); font-weight: 500; font-size: .9375rem; line-height: 1.2; letter-spacing: -.005em; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.pgal__line { color: rgba(243, 245, 250, .8); font-size: .75rem; line-height: 1.35; }
.pgal__empty { padding: 48px 0; color: var(--text-dim); }
@media (max-width: 1280px) { .pgal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
  .pgal__layout { grid-template-columns: 1fr; }
  .pgal__side { position: static; }
  .pgal__cats { display: none; }
  .pgal__select { display: block; }

  .pgal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .pgal__grid { grid-template-columns: 1fr; } .pgal__meta { padding: 40px 16px 14px; } .pgal__name { font-size: 1.0625rem; } .pgal__line { font-size: .8125rem; } }

/* full-screen photo viewer */
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 7, 15, .97); color: var(--text); }
.lb::backdrop { background: rgba(4, 7, 15, .9); }
.lb[open] { display: grid; grid-template-columns: 88px minmax(0, 1fr) 88px; align-items: center; animation: certIn .45s var(--ease); }
.lb__figure { display: grid; justify-items: center; gap: 18px; margin: 0; padding: 72px 0 28px; }
.lb__img { max-width: 100%; max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); object-fit: contain; border-radius: 10px; }
.lb__cap { display: grid; gap: 4px; text-align: center; }
.lb__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.15; }
.lb__line { color: var(--text-dim); font-size: .875rem; }
.lb__count { margin-top: 8px; }
.lb__close, .lb__step { display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; transition: background-color .3s, color .3s, border-color .3s; }
.lb__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; }
.lb__step { justify-self: center; width: 52px; height: 52px; font-size: 1.125rem; }
.lb__close:hover, .lb__step:hover, .lb__close:focus-visible, .lb__step:focus-visible { background: var(--text); border-color: var(--text); color: var(--ink); }
.lb.is-single .lb__step { visibility: hidden; }
@media (max-width: 640px) {
  .lb[open] { grid-template-columns: 1fr; }
  .lb__figure { padding: 72px 16px 96px; }
  .lb__img { max-height: calc(100dvh - 300px); }
  .lb__step { position: absolute; bottom: 24px; }
  .lb__prev { left: 24px; } .lb__next { right: 24px; }
}
/* case study */
.cs-hero { position: relative; padding-block: clamp(140px, 20vh, 220px) clamp(48px, 6vw, 96px); }
.cs-back { margin-bottom: clamp(32px, 5vw, 72px); color: var(--text); }
.cs-kicker { margin-bottom: 20px; color: var(--brand-bright); }
.cs-lead { margin-top: clamp(20px, 2.5vw, 36px); max-width: 38em; font-size: clamp(1.05rem, 1.4vw, 1.35rem); }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: clamp(40px, 5vw, 80px) 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.cs-meta dd { margin: 8px 0 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.15; letter-spacing: -.01em; }
.cs-cover { padding-bottom: var(--section); }
.cs-frame { max-width: 1100px; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); }
.cs-frame img { width: 100%; height: auto; }
.cs-frames { display: grid; gap: clamp(16px, 2vw, 32px); }

/* ---------- contact page: details on the left, form card on the right ---------- */
.cpage { position: relative; padding-block: 128px clamp(72px, 9vw, 140px); overflow: hidden; }
/* the home page's moving light, behind the whole contact section */
.cpage__media { z-index: 0; background: transparent; }
.cpage__media .media__shade { background: linear-gradient(180deg, rgba(4, 7, 15, .35) 0%, rgba(4, 7, 15, .05) 40%, rgba(4, 7, 15, .75) 100%); }
.cpage__layout { z-index: 1; }
/* the two glows drift on their own (not tied to scrolling), on long gentle loops */
.cpage__media .media__light::before { animation: cpageDriftA 22s ease-in-out infinite alternate; }
.cpage__media .media__light::after { animation: cpageDriftB 27s ease-in-out infinite alternate; }
@keyframes cpageDriftA { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(40vw, 22vh, 0); } 100% { transform: translate3d(75vw, 6vh, 0); } }
@keyframes cpageDriftB { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-30vw, -18vh, 0); } 100% { transform: translate3d(-55vw, -4vh, 0); } }
@media (prefers-reduced-motion: reduce) { .cpage__media .media__light, .cpage__media .media__light::before, .cpage__media .media__light::after { animation: none; } }
.cpage__layout { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.cpage__details { display: grid; gap: 22px; align-content: start; }
.cpage__crumbs { display: flex; align-items: center; gap: 10px; color: var(--text-dim); }
.cpage__crumbs [aria-current] { color: var(--text); }
.cpage__title { font-size: clamp(3rem, 6.4vw, 6.4rem); line-height: .9; }
.cpage__lead { max-width: 26em; font-size: clamp(1.1rem, 1.5vw, 1.4rem); color: var(--text); text-wrap: balance; }
.cpage__card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; max-width: 460px; margin-top: 8px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); transition: border-color .3s, background-color .3s; }

.cpage__icon, .cpage__go { display: grid; place-items: center; border-radius: 12px; }
.cpage__icon { width: 44px; height: 44px; background: rgba(61, 123, 255, .14); color: var(--brand-bright); }
.cpage__go { width: 36px; height: 36px; border: 1px solid var(--line); color: var(--text); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.cpage__card:hover .cpage__go, .cpage__card:focus-visible .cpage__go { background: var(--text); color: var(--ink); transform: translate(2px, -2px); }
.cpage__icon svg, .cpage__go svg, .social-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cpage__go svg { width: 16px; height: 16px; }
.cpage__card-text { display: grid; gap: 2px; min-width: 0; }
.cpage__card-label { font-size: .8125rem; color: var(--text-dim); }
.cpage__card-value { font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }
.cpage__follow { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.cpage__follow-label { font-size: .9375rem; font-weight: 500; }
.cpage__socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); color: var(--text); transition: background-color .3s, color .3s, border-color .3s; }
.social-btn:hover, .social-btn:focus-visible { background: var(--text); border-color: var(--text); color: var(--ink); }

.cform { display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; background: rgba(12, 18, 36, .72); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: 0 30px 80px -30px rgba(2, 54, 123, .55); }
.cform__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; }
.cform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cform__field { display: grid; gap: 8px; align-content: start; }
.cform__field--wide { grid-column: 1 / -1; }
.cform__field label { font-size: .875rem; font-weight: 500; color: var(--text); }
.cform__opt { font-weight: 400; color: var(--text-dim); }
.cform input, .cform textarea { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .3s, box-shadow .3s; }
.cform input::placeholder, .cform textarea::placeholder { color: rgba(255, 255, 255, .3); }
.cform textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.cform input:hover, .cform textarea:hover { border-color: rgba(255, 255, 255, .28); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--brand-bright); box-shadow: 0 0 0 3px rgba(61, 123, 255, .22); }
.cform [aria-invalid="true"] { border-color: #FF6B6B; }
.cform__error { color: #FF8A8A; font-size: .8125rem; }
.cform__error:empty { display: none; }
.cform__send { justify-content: center; width: 100%; }
.cform__status { color: var(--text-dim); font-size: .9375rem; text-align: center; }
.cform__status:empty { display: none; }
.cform__status[data-kind="error"] { color: #FF8A8A; }
.cform__note { color: var(--text-dim); font-size: .8125rem; text-align: center; }
@media (max-width: 1024px) { .cpage__layout { grid-template-columns: minmax(0, 1fr); align-items: start; } }
@media (max-width: 640px) { .cpage { padding-top: 108px; } .cform__grid { grid-template-columns: minmax(0, 1fr); } .cpage__follow { flex-wrap: wrap; } }
/* expandable pages, three per row: each shows the top of a long page; click opens the full page */
.cs-frames--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.cs-frame--thumb { width: 100%; max-width: none; }
.cs-expand { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.cs-expand img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s var(--ease); }
.cs-expand::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 7, 15, 0) 60%, rgba(4, 7, 15, .75) 100%); pointer-events: none; }
.cs-expand__hint { position: absolute; left: 50%; bottom: 16px; z-index: 1; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(4, 7, 15, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text); white-space: nowrap; transform: translateX(-50%); transition: background-color .3s, color .3s; }
.cs-expand:hover img, .cs-expand:focus-visible img { transform: scale(1.03); }
.cs-expand:hover .cs-expand__hint, .cs-expand:focus-visible .cs-expand__hint { background: var(--text); color: var(--ink); }
@media (max-width: 640px) { .cs-frames--three { grid-template-columns: minmax(0, 1fr); } }
/* full page viewer: the long page scrolls inside the dialog */
.lb--page .lb__scroll { align-self: stretch; overflow-y: auto; overscroll-behavior: contain; padding: 72px 0 32px; text-align: center; scrollbar-width: thin; scrollbar-gutter: stable both-edges; }
.lb--page .lb__img { display: block; width: min(1100px, 100%); max-height: none; height: auto; margin-inline: auto; }
.lb--page .lb__count { margin-top: 14px; }
@media (max-width: 640px) { .lb--page[open] { grid-template-columns: 0 minmax(0, 1fr) 0; } .lb--page .lb__step { display: none; } .lb--page .lb__scroll { padding-inline: 12px; } }
.cs-prose { display: grid; gap: 1.2em; max-width: 40em; font-size: clamp(1.05rem, 1.35vw, 1.3rem); }
.cs-prose p:last-child:not(:first-child) { color: var(--text-dim); }
.cs-gallery { padding-bottom: var(--section); }
.cs-screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.cs-screens figure { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--ink-2); }
.cs-screens img { width: 100%; height: auto; }
.cs-screens--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.cs-screens--wide figure { border: 0; border-radius: 0; background: none; }
.cs-pages { display: grid; justify-items: center; gap: clamp(24px, 3vw, 48px); max-width: 1100px; margin-inline: auto; }
.cs-pages figure { max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); }
.cs-pages img { max-width: 100%; height: auto; }
.cs-pages figcaption, .cs-screens figcaption { padding: 12px 16px; }
/* opt-in: keep a page's content in a centred 1280px column on wide screens */
.page-narrow .wrap { max-width: 1280px; margin-inline: auto; }

/* opt-in: tighter spacing in the case study title area (back link, tag, title, summary, facts) */
/* side padding is 2% of the screen width here (16px minimum so text never touches a phone's edge) */
.cs-tight { --gutter: max(16px, 2vw); }
/* opt-in: full-width page with 5% side padding (Aviation gallery) */
.cs-tight.pg-wide { --gutter: max(16px, 5vw); }
/* gallery pages: a tighter title area so the photos start higher */
main.cs-tight.pg-wide .cs-hero, main.cs-tight.cs-page .cs-hero { padding-block: 116px clamp(24px, 2.6vw, 36px); }
main.cs-tight.pg-wide .cs-back, main.cs-tight.cs-page .cs-back { margin-bottom: clamp(16px, 1.8vw, 22px); }
main.cs-tight.pg-wide .cs-lead, main.cs-tight.cs-page .cs-lead { margin-top: clamp(10px, 1.2vw, 16px); }
.cs-tight .cs-hero { padding-block: 155px clamp(40px, 5vw, 64px); }
.cs-tight .cs-back { margin-bottom: clamp(24px, 2.6vw, 34px); }
.cs-tight .cs-kicker { margin-bottom: 18px; }
.cs-tight .cs-title { font-size: clamp(2.25rem, 9vw, 3.75rem); }
.cs-tight .cs-lead { margin-top: clamp(18px, 2vw, 28px); max-width: none; }
.cs-tight .cs-meta { margin-top: clamp(32px, 3.4vw, 46px); padding-block: clamp(22px, 2.4vw, 32px) clamp(20px, 2vw, 26px); border-bottom: 1px solid var(--line); }
.cs-tight .cs-meta dd { margin-top: 6px; }
/* ...and less space below each section further down the page */
.cs-tight .cs-cover, .cs-tight .resume, .cs-tight .cs-gallery { padding-bottom: clamp(48px, 5vw, 72px); }
.cs-tight .resume__group + .resume__group { margin-top: clamp(40px, 4.5vw, 64px); }
.cs-tight .cs-gallery .section-head { margin-bottom: clamp(28px, 3vw, 44px); }
/* long-form case study blocks */
.cs-title--long { font-size: clamp(2.25rem, 5.4vw, 5.5rem); }
/* long case study: each section's title sits above its content instead of beside it */
.cs-study .resume__group { grid-template-columns: 1fr; gap: 0; }
.cs-study .resume__side { position: static; display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: clamp(24px, 3vw, 44px); }
.cs-study .resume__side .label { order: -1; }
.cs-study .resume__kind { overflow-wrap: anywhere; }
.cs-screens--five { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
/* tablet screens: one per row, at every screen size */
.cs-screens.cs-screens--single { grid-template-columns: 1fr; gap: clamp(16px, 2vw, 32px); }
@media (min-width: 1025px) { .cs-screens--row { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cs-screens--five { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .cs-screens--five::-webkit-scrollbar { display: none; }
  .cs-screens--five figure { flex: 0 0 62%; scroll-snap-align: center; }
}
.cs-study + .cs-gallery { padding-top: 0; }
.cs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.cs-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-card { padding: clamp(20px, 2vw, 30px); border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); }
.cs-card--span2 { grid-column: span 2; }
.cs-card__idx { display: block; margin-bottom: 14px; color: var(--brand-bright); }
.cs-card__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.15; letter-spacing: -.01em; }
.cs-card > p:not(.label):not(.cs-card__title):not(.cs-quote), .cs-insight > p:first-child { margin-top: 10px; color: var(--text-dim); font-size: .9375rem; }
.cs-insight > p:first-child { color: var(--text); }
.cs-insight { margin-top: 22px; }
.cs-list li { position: relative; margin-top: 14px; padding-left: 1.2em; color: var(--text-dim); font-size: .9375rem; }
.cs-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-bright); }
.cs-list strong, .cs-quote strong { font-weight: 500; color: var(--text); }
.cs-quote { margin: 10px 0 0; padding: 14px 16px; border-left: 2px solid var(--brand-bright); border-radius: 0 12px 12px 0; background: rgba(61, 123, 255, .08); font-size: .9375rem; }
.cs-quote cite { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: .6875rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.cs-card .cs-quote { margin-top: 16px; }
.cs-insight .cs-quote { margin-top: 10px; }

.cs-table { width: 100%; border-collapse: collapse; text-align: left; }
.cs-table thead th { padding: 0 16px 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .6875rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.cs-table tbody th, .cs-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cs-table tbody th { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.4rem); }
.cs-table td { color: var(--text-dim); font-size: .9375rem; }
.cs-table td:last-child { color: var(--brand-bright); }

.cs-persona { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 3vw, 48px); }
.cs-persona__avatar { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 18px; border-radius: 50%; background: var(--brand); font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; }
.cs-persona__who .label { margin-top: 6px; }
.cs-persona__detail { display: grid; gap: 22px; align-content: start; }
.cs-persona__detail .label { margin: 0 0 8px; color: var(--brand-bright); }
.cs-persona__detail p { color: var(--text-dim); font-size: .9375rem; }
.cs-specs { margin: 18px 0 0; }
.cs-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.cs-specs dt { color: var(--text-dim); }
.cs-specs dd { margin: 0; text-align: right; }

.cs-ia ul { margin-top: 14px; display: grid; gap: 7px; font-family: var(--f-mono); font-size: .75rem; line-height: 1.5; color: var(--text-dim); }
.cs-ia__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.cs-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cs-flow li { position: relative; display: grid; gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); font-size: .9375rem; }
.cs-flow .label { color: var(--brand-bright); }
.cs-flow li:not(:last-child)::after { content: "→"; position: absolute; right: 16px; top: 16px; color: var(--text-dim); }
.cs-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cs-swatches li { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 104px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; font-size: .875rem; }
.cs-swatches strong { font-weight: 500; }
.cs-swatches span { font-family: var(--f-mono); font-size: .6875rem; opacity: .75; }
.cs-card .cs-card__idx + .cs-specs { margin-top: 0; }

@media (max-width: 1024px) {
  .cs-cards, .cs-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-persona { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cs-cards, .cs-cards--2, .cs-cards--4 { grid-template-columns: 1fr; }
  .cs-card--span2 { grid-column: auto; }
  .cs-ia__cols { grid-template-columns: 1fr; }
  .cs-swatches { grid-template-columns: 1fr; }
  .cs-swatches li { min-height: 72px; }
  .cs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cs-table, .cs-table tbody, .cs-table tr, .cs-table th, .cs-table td { display: block; }
  .cs-table tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .cs-table tbody th, .cs-table td { padding: 0; border: 0; }
  .cs-table td { margin-top: 12px; }
  .cs-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
}
/* previous / next case study */
.cs-pager { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 88px); }
.cs-pager__inner { display: flex; justify-content: space-between; gap: 16px; }
.cs-pager__link { display: flex; align-items: center; gap: 18px; flex: 0 1 340px; min-width: 0; min-height: 44px; padding: 16px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); transition: border-color .5s var(--ease), background-color .5s var(--ease); }
.cs-pager__link--next { justify-content: flex-end; text-align: right; }
.cs-pager__text { display: grid; gap: 6px; min-width: 0; }
.cs-pager__title { font-family: var(--f-display); font-weight: 500; font-size: 1rem; line-height: 1.2; letter-spacing: -.005em; }
.cs-pager__arrow { flex: none; font-size: 1.125rem; color: var(--text-dim); transition: transform .5s var(--ease), color .3s; }
.cs-pager__link:hover, .cs-pager__link:focus-visible { border-color: rgba(61, 123, 255, .6); }
.cs-pager__link:hover .cs-pager__arrow { color: var(--brand-bright); }
.cs-pager__link--prev:hover .cs-pager__arrow { transform: translateX(-6px); }
.cs-pager__link--next:hover .cs-pager__arrow { transform: translateX(6px); }
@media (max-width: 640px) { .cs-pager__inner { flex-direction: column; } .cs-pager__link { flex: none; } }
.cs-next { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 120px); }
.cs-next__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cs-next .label { margin-bottom: 16px; }
.cs-next .card__next { display: inline-block; }

@media (min-width: 1025px) {
  /* a row that fits on screen is not pinned, so it takes its natural height */
  .motion .work--static .work__pin { height: auto; display: block; padding-block: 96px clamp(56px, 8vw, 110px); }
}
@media (min-width: 1025px) and (max-height: 760px) {
  /* short laptop screens: keep a pinned row of project cards inside one screen */
  .motion .work--stack .work__pin { padding-top: 80px; }
  .work--stack .section-head { gap: 12px; margin-bottom: 24px; }
  .work--stack .h2 { font-size: clamp(2rem, 5vw, 4rem); }
}
@media (max-width: 640px) {
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-screens { grid-template-columns: repeat(2, 1fr); }
  .card--project .card__media { height: clamp(220px, 58vw, 320px); }
}

@media (max-width: 1024px) and (min-width: 641px) { .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* footer link groups: plain columns on larger screens, tap-to-expand rows on phones */
.fcol__head { margin: 0; font: inherit; }
.fcol__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: default; }
.fcol__plus { display: none; }
@media (max-width: 640px) {
  .footer__cols { grid-template-columns: 1fr; gap: 0; }
  .fcol { border-bottom: 1px solid var(--line); }
  .fcol:first-child { border-top: 1px solid var(--line); }
  .footer__cols .fcol__btn { min-height: 56px; margin: 0; color: var(--text); cursor: pointer; }
  .fcol__plus { position: relative; display: block; flex: none; width: 14px; height: 14px; }
  .fcol__plus::before, .fcol__plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
  .fcol__plus::after { transform: rotate(90deg); }
  .fcol.is-open .fcol__plus::after { transform: rotate(0deg); }
  .fcol.is-open .fcol__btn { color: var(--brand-bright); }
  /* only collapse once the script is running, so the links stay reachable without it */
  .fcol-ready .fcol__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
  .fcol-ready .fcol.is-open .fcol__body { grid-template-rows: 1fr; }
  .fcol-ready .fcol__body > ul { min-height: 0; overflow: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .35s ease, transform .55s var(--ease); }
  .fcol-ready .fcol.is-open .fcol__body > ul { opacity: 1; transform: none; transition-delay: .08s; }
  .fcol__body li:last-child { padding-bottom: 18px; }
  .fcol__body .link { padding-block: 8px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- legal & copyright page ---------- */
.legal__updated { margin-top: 18px; }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 4vw, 48px) clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(72px, 9vw, 140px); }
.legal__toc { position: sticky; top: 110px; display: grid; gap: 14px; padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); }
.legal__toc ol { display: grid; gap: 10px; padding-left: 1.2em; color: var(--text-dim); font-size: .9375rem; }
.legal__toc li::marker { font-family: var(--f-mono); font-size: .75rem; }
.legal__body { display: grid; gap: clamp(36px, 4vw, 56px); max-width: 44rem; }
.legal__section { display: grid; gap: 14px; scroll-margin-top: 110px; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.legal__section:first-child { padding-top: 0; border-top: 0; }
.legal__h { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; }
.legal__section p, .legal__list { color: var(--text-dim); font-size: 1.0625rem; line-height: 1.7; }
.legal__list { display: grid; gap: 10px; padding-left: 1.2em; list-style: disc; }
.legal__list li::marker { color: var(--brand-bright); }
.legal__credit { display: grid; gap: 8px; margin-top: 6px; padding: 20px 22px; border: 1px solid rgba(61, 123, 255, .45); border-radius: 16px; background: rgba(2, 54, 123, .22); }
.legal__credit .legal__credit-label { color: var(--brand-bright); font-size: .8125rem; font-weight: 500; }
.legal__credit .legal__credit-line { color: var(--text); font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.3; }
.legal__credit .legal__credit-hint { font-size: .9375rem; }
.legal__credit strong { color: var(--text); font-weight: 500; }
.legal__cta { justify-self: start; margin-top: 6px; }
.legal__toggle { display: none; }
.legal__toc-panel ol { min-height: 0; }
@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { position: static; gap: 0; padding: 0; }
  .legal__toc-label { display: none; }
  .legal__toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 52px; padding: 14px 20px; color: var(--text); text-align: left; }
  .legal__chev { width: 9px; height: 9px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .4s var(--ease), margin .4s var(--ease); }
  .legal__toggle[aria-expanded="true"] .legal__chev { margin-top: 4px; transform: rotate(-135deg); }
  .legal__toc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
  .legal__toc.is-open .legal__toc-panel { grid-template-rows: 1fr; }
  .legal__toc-panel ol { overflow: hidden; padding: 0 20px 0 calc(20px + 1.2em); }
  .legal__toc.is-open .legal__toc-panel ol { padding-bottom: 18px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .legal__toc-panel, .legal__chev { transition: none; } }
.legal__toc.is-instant .legal__toc-panel, .legal__toc.is-instant .legal__chev { transition: none; }
.legal::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--line); }

/* contact form: reserved space for the Google reCAPTCHA checkbox (304 x 78) above the send button */
.cform__captcha { min-height: 78px; }
@media (max-width: 380px) { .cform__captcha { transform: scale(.9); transform-origin: left top; min-height: 70px; } }

/* reCAPTCHA not ticked: red outline and a short shake so the reason is obvious */
.cform__captcha.is-missing { width: fit-content; border-radius: 6px; outline: 2px solid #FF6B6B; outline-offset: 4px; animation: captchaShake .45s ease; }
@keyframes captchaShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .cform__captcha.is-missing { animation: none; } }
@media (max-width: 380px) { .cform__captcha.is-missing { animation: none; } }
