/* ==================================================================
   Stefan Costain · 1ProDesigner — portfolio styles
   Colours and fonts are set once in :root below.
   ================================================================== */

:root {
  --bg: #090a09;
  --bg-2: #0e100e;
  --panel: #131613;
  --panel-2: #1a1e1a;
  --line: rgba(232, 240, 226, 0.09);
  --line-2: rgba(232, 240, 226, 0.18);
  --text: #eef2ea;
  --muted: #98a393;
  --dim: #626c5e;
  --lime: #c8ff2e;
  --lime-dim: rgba(200, 255, 46, 0.14);
  --lime-ink: #0b0f02;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1440px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
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; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
em { font-style: normal; color: var(--lime); }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--lime); color: var(--lime-ink); padding: 10px 16px; border-radius: 4px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime);
}
.label::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: none; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow__num { color: var(--lime); }
.eyebrow__num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); margin-left: 14px; vertical-align: middle; }

.sec-title {
  font-stretch: 118%;
  font-weight: 750;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.sec-title--sm { font-size: clamp(1.9rem, 3.6vw, 3rem); }

.sec-intro { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.125rem); max-width: 52ch; margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.005em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 60px; padding: 0 34px; font-size: 16px; }
.btn--lime { background: var(--lime); color: var(--lime-ink); }
.btn--lime:hover { background: #d9ff6a; transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(9, 10, 9, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--text { padding: 0 8px; color: var(--text); }
.btn--text span { transition: transform .25s var(--ease); }
.btn--text:hover { color: var(--lime); }
.btn--text:hover span { transform: translateX(4px); }

.play-ico {
  width: 0; height: 0; flex: none;
  border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  margin-left: 2px;
}
.play-ico--lg { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; margin-left: 5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line-2); padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.link-arrow:hover { color: var(--lime); border-color: var(--lime); }

/* ==================================================================
   NAV
   ================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(9, 10, 9, 0.82);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  background: var(--lime); color: var(--lime-ink);
  font-weight: 800; font-stretch: 110%; font-size: 14px; letter-spacing: -0.02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand__sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; gap: 30px; }
.nav__links a { position: relative; font-size: 14px; font-weight: 500; color: rgba(238, 242, 234, .78); transition: color .2s; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px var(--gutter) 28px;
  border-top: 1px solid var(--line);
}
.mobile-menu a:not(.btn) {
  font-size: 28px; font-weight: 700; font-stretch: 115%; letter-spacing: -0.02em;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 20px; }

/* ==================================================================
   HERO
   ================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 40px);
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: #000 url("../images/hero-poster.jpg") center / cover no-repeat; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero__video.is-ready { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9,10,9,.9) 0%, rgba(9,10,9,.66) 38%, rgba(9,10,9,.2) 72%, rgba(9,10,9,.3) 100%),
    linear-gradient(180deg, rgba(9,10,9,.55) 0%, rgba(9,10,9,0) 30%, rgba(9,10,9,.25) 62%, var(--bg) 100%);
}

.hero__content { position: relative; padding-bottom: clamp(40px, 7vh, 80px); }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(238,242,234,.8);
  margin-bottom: clamp(18px, 3vh, 30px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200,255,46,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,255,46,.45); } 70% { box-shadow: 0 0 0 10px rgba(200,255,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,255,46,0); } }

.hero__title {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(3.1rem, 11.2vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-left: -0.04em;
}
.hero__title .line { display: block; overflow: hidden; padding: 0.02em 0 0.04em; }
.hero__title .line > span { display: block; }
.hero__title .line:nth-child(2) > span { color: transparent; -webkit-text-stroke: 1.5px var(--text); }

.hero__role {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 4px;
  margin-top: clamp(20px, 3vh, 32px);
  font-size: clamp(1.05rem, 1.8vw, 1.5rem); font-weight: 600; font-stretch: 105%; letter-spacing: -0.01em;
}
.hero__role i { font-style: normal; color: var(--lime); font-weight: 400; }

.hero__lede { margin-top: 14px; color: rgba(238,242,234,.74); font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 46ch; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4vh, 40px); }

.hero__foot {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-top: 22px; padding-bottom: 28px;
}
.hero__foot::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-2); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 4vw, 64px); }
.hero__facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.hero__facts dd { font-size: 14px; font-weight: 500; color: rgba(238,242,234,.88); }

.hero__scroll { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { position: relative; width: 1px; height: 44px; background: var(--line-2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--lime); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* hero entrance */
.js .hero__title .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero__eyebrow, .js .hero__role, .js .hero__lede, .js .hero__ctas, .js .hero__foot { opacity: 0; animation: fadeUp .9s var(--ease) forwards; }
.js .hero__eyebrow { animation-delay: .05s; }
.js .hero__role { animation-delay: .35s; }
.js .hero__lede { animation-delay: .45s; }
.js .hero__ctas { animation-delay: .55s; }
.js .hero__foot { animation-delay: .75s; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==================================================================
   TICKER
   ================================================================== */
.ticker { background: var(--lime); color: var(--lime-ink); overflow: hidden; border-block: 1px solid var(--lime); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker span {
  display: inline-flex; align-items: center; gap: 28px; padding: 15px 0 15px 28px;
  font-weight: 700; font-stretch: 115%; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
}
.ticker span::after { content: ""; width: 7px; height: 7px; background: var(--lime-ink); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==================================================================
   SECTIONS
   ================================================================== */
.section { padding-block: clamp(80px, 12vw, 160px); }
.section--tight { padding-block: clamp(64px, 8vw, 110px); }
.section--panel { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--feature { background: linear-gradient(180deg, var(--bg) 0%, #0c0e0b 18%, #0c0e0b 82%, var(--bg) 100%); border-top: 1px solid var(--line); }

.sec-head { margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head--row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; }
.sec-head--row .sec-intro { margin-top: 0; justify-self: end; }

/* ---------- Case (work item) ---------- */
.case { padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line-2); }
.case + .case { margin-top: clamp(80px, 10vw, 140px); }

.case__head {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2.2fr) minmax(0, 2fr);
  grid-template-areas: "id title desc" "id title meta";
  column-gap: clamp(20px, 3vw, 48px); row-gap: 22px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}
.case__id { grid-area: id; display: flex; flex-direction: column; gap: 10px; }
.case__num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.case__title { grid-area: title; font-stretch: 112%; font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.case__desc { grid-area: desc; color: var(--muted); font-size: 16px; max-width: 54ch; }
.case__meta { grid-area: meta; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.case--compact .case__head { grid-template-areas: "id title desc"; }
.case__meta dt, .contact__facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.case__meta dd { font-size: 14px; font-weight: 500; }

/* ---------- Media layouts ---------- */
/* .row = justified row: items share one height, widths follow each aspect ratio */
.row { display: flex; gap: clamp(12px, 1.4vw, 20px); align-items: flex-start; }
.row + .row { margin-top: clamp(28px, 3vw, 40px); }
.row > .tile { flex: var(--ar) 1 0%; min-width: 0; }

.grid { display: grid; gap: clamp(28px, 2.6vw, 36px) clamp(12px, 1.4vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Tile ---------- */
.tile { min-width: 0; }
.tile__frame {
  position: relative; display: block; width: 100%;
  aspect-ratio: var(--ar, 1);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  outline-offset: 4px;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .35s var(--ease);
  isolation: isolate;
}
.tile__frame img, .tile__frame video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; /* never crop the creative */
  transition: transform .8s var(--ease), opacity .45s var(--ease);
}
.tile__frame video { opacity: 0; pointer-events: none; }
.tile__frame.is-playing video { opacity: 1; }
.tile__frame:hover { box-shadow: 0 0 0 1px rgba(200,255,46,.55); }
.tile__frame:hover img, .tile__frame:hover video { transform: scale(1.015); }

.tile__icon {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tile__icon::before {
  content: ""; width: 0; height: 0; margin-left: 3px;
  border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.tile__icon--zoom::before, .tile__icon--out::before { content: "↗"; border: 0; width: auto; height: auto; margin: 0; font-weight: 700; font-size: 17px; line-height: 1; }
.tile__icon--zoom::before { content: "+"; font-size: 24px; font-weight: 500; }
.tile__icon--lg { width: 64px; height: 64px; right: 20px; bottom: 20px; }
.tile__icon--lg::before { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; margin-left: 5px; }
.tile__frame:hover .tile__icon, .tile__frame:focus-visible .tile__icon { opacity: 1; transform: none; }

.tile__cap { display: grid; gap: 4px; padding-top: 14px; }
.tile__cap .label { font-size: 10.5px; }
.tile__title { font-weight: 650; font-size: 16px; letter-spacing: -0.01em; line-height: 1.3; }
.tile__meta { font-size: 13.5px; color: var(--muted); }

/* ==================================================================
   THE ONE
   ================================================================== */
.one-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px); align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.one-title {
  font-stretch: 125%; font-weight: 800;
  font-size: clamp(4rem, 13vw, 12rem); line-height: .86; letter-spacing: -0.05em;
}
.one-sub { margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 600; color: var(--lime); letter-spacing: -0.01em; }
.one-copy { display: grid; gap: 18px; color: var(--muted); max-width: 60ch; }
.one-lede { color: var(--text); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; font-weight: 500; }
.one-copy .case__meta { grid-area: auto; margin-top: 6px; }
.one-copy .case__meta dd { color: var(--text); }
.one-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.stills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(28px, 3vw, 40px); }
.stills figure { display: grid; gap: 10px; }
.stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.stills figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 500; color: rgba(238,242,234,.86);
  transition: border-color .2s, color .2s, background-color .2s;
}
.chips li:hover { border-color: var(--lime); color: var(--lime); }
.chips--center { justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* ==================================================================
   SHOWREEL
   ================================================================== */
.reel {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: calc(var(--radius) + 2px); overflow: hidden;
  background: #000; box-shadow: 0 0 0 1px var(--line-2);
}
.reel__video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel__cover {
  position: absolute; inset: 0; width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 3vw, 40px);
  text-align: left;
  background: linear-gradient(180deg, rgba(9,10,9,0) 45%, rgba(9,10,9,.85) 100%);
  transition: opacity .4s var(--ease);
}
.reel__btn {
  order: 2; flex: none;
  width: clamp(64px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink); display: grid; place-items: center;
  transition: transform .4s var(--ease);
}
.reel__cover:hover .reel__btn { transform: scale(1.07); }
.reel__info { display: grid; gap: 6px; }
.reel__name { font-stretch: 112%; font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.1; }
.reel.is-playing .reel__cover { opacity: 0; pointer-events: none; }

.reel-more { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 24px; }
.reel-more__label { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.reel-more .link-arrow { justify-self: start; margin-top: 8px; }

/* ==================================================================
   ABOUT
   ================================================================== */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); }
.about__main > p { color: var(--muted); font-size: 17px; max-width: 58ch; }
.about__main .sec-title { margin-bottom: 32px; }
.about__main .about__lede { color: var(--text); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; font-weight: 500; margin-bottom: 20px; max-width: 42ch; }
.about__ai { margin-top: 36px; padding-left: 20px; border-left: 2px solid var(--lime); max-width: 58ch; }
.about__ai h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.about__ai p { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line-2); margin-bottom: 40px; }
.stats div { padding: 22px 0; display: grid; gap: 4px; }
.stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.stats strong { font-stretch: 120%; font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -0.04em; color: var(--lime); }
.stats span { font-size: 13px; color: var(--muted); line-height: 1.35; }

.side-title { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 36px 0 14px; }
.stats + .side-title { margin-top: 0; }
.tools { color: rgba(238,242,234,.86); font-size: 15px; line-height: 1.75; }

.timeline li {
  display: grid; grid-template-columns: 76px 1fr; column-gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline span { grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--lime); padding-top: 3px; }
.timeline b { font-weight: 600; font-size: 15px; }
.timeline em { color: var(--muted); font-size: 14px; }

/* ==================================================================
   CLIENTS
   ================================================================== */
.clients { padding-block: clamp(64px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.clients__inner { display: grid; justify-items: center; text-align: center; }
.clients__inner .eyebrow { margin-bottom: 28px; }
.clients__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 0; }
.clients__list li {
  font-stretch: 118%; font-weight: 750; font-size: clamp(1.6rem, 3.6vw, 3.1rem); letter-spacing: -0.035em; line-height: 1.1;
  display: flex; align-items: center;
}
.clients__list li + li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--lime); transform: rotate(45deg); margin: 0 clamp(20px, 3vw, 48px); }
.clients__markets { margin-top: 28px; font-size: 15px; color: rgba(238,242,234,.86); }
.clients__markets span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-right: 10px; }

/* ==================================================================
   LINKS
   ================================================================== */
.links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .links { grid-template-columns: 1fr; } }
.links a {
  position: relative; display: grid; gap: 6px; height: 100%;
  padding: 26px 56px 26px 24px; background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.links a:hover { border-color: rgba(200,255,46,.55); }
.links__name { font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.links__handle { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.links i { position: absolute; top: 24px; right: 22px; font-style: normal; color: var(--dim); transition: transform .3s var(--ease), color .3s; }
.links a:hover { background: var(--panel); }
.links a:hover i { color: var(--lime); transform: translate(3px, -3px); }

/* ==================================================================
   CONTACT
   ================================================================== */
.contact {
  padding-block: clamp(96px, 14vw, 200px);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact__inner { display: grid; justify-items: start; }
.contact__title {
  font-stretch: 125%; font-weight: 800;
  font-size: clamp(3rem, 10vw, 9.5rem); line-height: .92; letter-spacing: -0.05em;
}
.contact__copy { margin-top: 28px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 44ch; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.contact__facts { display: flex; flex-wrap: wrap; gap: 20px clamp(32px, 5vw, 80px); margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-2); width: 100%; }
.contact__facts dd { font-size: 15px; font-weight: 500; }
.contact__facts a:hover { color: var(--lime); }

/* ==================================================================
   FOOTER
   ================================================================== */
.footer { padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }

/* ==================================================================
   LIGHTBOX
   ================================================================== */
.lb {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--text);
}
.lb::backdrop { background: rgba(5, 6, 5, 0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb[open] { display: grid; place-items: center; animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb__inner { position: relative; display: grid; gap: 14px; padding: 64px var(--gutter) 32px; justify-items: center; }
.lb__stage {
  --ar: 1.7778;
  aspect-ratio: var(--ar);
  width: min(92vw, calc(76vh * var(--ar)), 1400px);
  width: min(92vw, calc(76dvh * var(--ar)), 1400px);
  background: #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px rgba(0,0,0,.6);
}
.lb__stage video, .lb__stage iframe, .lb__stage img { width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.lb__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; width: 100%; }
.lb__title { font-weight: 650; font-size: 16px; }
.lb__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lb__close {
  position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(9,10,9,.6);
  transition: border-color .2s, background-color .2s;
}
.lb__close span { position: absolute; left: 14px; right: 14px; top: 23px; height: 1.5px; background: var(--text); }
.lb__close span:first-child { transform: rotate(45deg); }
.lb__close span:last-child { transform: rotate(-45deg); }
.lb__close:hover { border-color: var(--lime); background: var(--lime-dim); }
body.lb-open { overflow: hidden; }

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

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  .case__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "id id" "title desc" "title meta"; }
  .case__id { flex-direction: row; align-items: center; gap: 16px; }
  .case--compact .case__head { grid-template-areas: "id id" "title desc"; }
  .about { grid-template-columns: 1fr; }
  .one-head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head--row { grid-template-columns: 1fr; }
  .sec-head--row .sec-intro { justify-self: start; }
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__scroll { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .case__head { grid-template-columns: 1fr; grid-template-areas: "id" "title" "desc" "meta"; row-gap: 16px; }
  .case--compact .case__head { grid-template-areas: "id" "title" "desc"; }
  /* justified rows wrap: landscape pieces go full width, tall pieces pair up */
  .row { flex-wrap: wrap; row-gap: 28px; }
  .row > .tile { flex: 0 0 calc(50% - 6px); }
  .row > .tile[style*="--ar:1.7"] { flex-basis: 100%; }
  .row + .row { margin-top: 0; }
  /* multi-row sets merge into one 2-column grid so tall pieces pair up */
  .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; align-items: start; }
  .rows > .row { display: contents; }
  .rows .tile[style*="--ar:1.7"] { grid-column: 1 / -1; }
  .grid--2 { grid-template-columns: 1fr; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(9,10,9,.7) 0%, rgba(9,10,9,.55) 40%, rgba(9,10,9,.82) 72%, var(--bg) 100%);
  }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__ctas .btn--text { flex-basis: 100%; justify-content: flex-start; padding-left: 4px; }
  .hero__facts { gap: 14px 28px; }
  .hero__facts > div:first-child { flex-basis: 100%; }
  .hero__title .line:nth-child(2) > span { -webkit-text-stroke-width: 1.2px; }
  .stats div + div { padding-left: 12px; }
  .reel__cover { padding: 14px; }
  .reel__info .tile__meta { display: none; }
  .tile__icon { opacity: 1; transform: none; width: 36px; height: 36px; right: 8px; bottom: 8px; }
  .tile__icon::before { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
  .tile__icon--lg { width: 52px; height: 52px; }
  .contact__ctas .btn { flex: 1 1 100%; }
  .clients__list { flex-direction: column; gap: 14px; }
  .clients__list li + li::before { display: none; }
  .links a { padding: 22px 52px 22px 20px; }
}

@media (max-width: 400px) {
  .grid--3 { grid-template-columns: 1fr 1fr; gap: 24px 10px; }
  .tile__title { font-size: 15px; }
  .tile__meta { font-size: 12.5px; }
}

/* Touch devices: no hover, so always show the play icon */
@media (hover: none) {
  .tile__icon { opacity: 1; transform: none; }
}

/* ==================================================================
   REDUCED MOTION
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .hero__title .line > span { transform: none; }
  .js .hero__eyebrow, .js .hero__role, .js .hero__lede, .js .hero__ctas, .js .hero__foot { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .hero__scroll i::after { display: none; }
}
