/* ==========================================================================
   Interatica — Experiential Technology Studio
   ========================================================================== */

:root {
  /* Brand (sampled from the Interatica mark) */
  --teal: #2591a6;
  --teal-light: #73c3ca;
  --teal-deep: #006a75;
  --signal: #5fe3ee;          /* electric variant for glows on dark */

  --bg: #07090b;
  --bg-2: #0d1115;
  --bg-3: #141a20;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eef3f5;
  --text-2: #a4b0b6;
  --text-3: #66737a;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--signal); color: var(--bg); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--signal); color: var(--bg); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Film grain over everything — subtle, gives photos a cinematic finish */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.06; animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}
.h-xl { font-size: clamp(44px, 9vw, 152px); }
.h-lg { font-size: clamp(36px, 6vw, 96px); }
.h-md { font-size: clamp(28px, 3.6vw, 56px); }
.h-sm { font-size: clamp(22px, 2.2vw, 32px); line-height: 1; }

.outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.accent { color: var(--signal); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 24px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--text-2); max-width: 60ch; line-height: 1.55; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 12vw, 180px) 0; position: relative; }
.section-head {
  display: grid; grid-template-columns: 1fr; gap: 24px 64px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
@media (min-width: 960px) { .section-head { grid-template-columns: 1.4fr 1fr; } }
.section-head .lede { margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  --h: 56px;
  display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 28px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: var(--text); }
.btn-primary { background: var(--signal); color: var(--bg); border-color: var(--signal); font-weight: 600; }
.btn-primary:hover { background: var(--text); border-color: var(--text); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.play-icon {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -16px;
  display: grid; place-items: center; background: var(--text); color: var(--bg);
}
.play-icon svg { width: 12px; height: 12px; margin-left: 2px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 9, 11, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: auto; }
.brand span {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}

.nav-links { display: none; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav .btn { --h: 44px; padding: 0 22px; display: none; }

.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 1.5px; background: var(--text); position: relative; transition: transform 0.3s var(--ease);
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.nav.is-open .menu-toggle span { background: transparent; }
.nav.is-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 76px 0 0; background: var(--bg); padding: 32px var(--gutter);
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.nav.is-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 10vw, 56px); line-height: 1.1; border-bottom: 1px solid var(--line); padding: 12px 0;
}
.mobile-menu .btn { display: inline-flex; margin-top: 32px; align-self: flex-start; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav .btn { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero-media video, .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-slide { opacity: 0; transform: scale(1.12); transition: opacity 1.6s var(--ease); }
.hero-slide.is-active { opacity: 1; animation: kenburns 7s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1%, 1%); } to { transform: scale(1) translate(0, 0); } }
.hero-media.has-video .hero-slide { display: none; }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 9, 11, 0.55) 0%, rgba(7, 9, 11, 0.1) 30%, rgba(7, 9, 11, 0.35) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 9, 11, 0.7) 0%, rgba(7, 9, 11, 0) 70%);
}
/* scanlines */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.hud { position: absolute; inset: 96px var(--gutter) 32px; pointer-events: none; }
.hud i { position: absolute; width: 22px; height: 22px; border-color: rgba(255, 255, 255, 0.5); border-style: solid; }
.hud i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hud i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hud i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hud i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hud-readout {
  position: absolute; top: 14px; right: 36px; display: flex; gap: 20px; color: var(--text-2);
}
.hud-readout .rec { color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.hud-readout .rec::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hud-caption { position: absolute; top: 14px; left: 36px; color: var(--text-2); transition: opacity 0.6s; }
@media (max-width: 720px) { .hud-readout .hide-sm { display: none; } .hud-caption { display: none; } }

.hero-content { padding-bottom: clamp(72px, 10vh, 120px); width: 100%; }
.hero h1 { max-width: 14ch; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.16s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-bottom {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-top: clamp(28px, 4vw, 48px);
}
.hero-bottom .lede { margin: 0; max-width: 46ch; color: var(--text); opacity: 0.86; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-progress { display: flex; gap: 6px; margin-top: 40px; }
.hero-progress[hidden] { display: none; }
.hero-progress button { width: 36px; height: 20px; position: relative; }
.hero-progress button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line-strong);
}
.hero-progress button::after {
  content: ""; position: absolute; left: 0; top: 50%; height: 2px; width: 0; background: var(--signal);
}
.hero-progress button.is-active::after { animation: progress 6s linear forwards; }
@keyframes progress { to { width: 100%; } }

/* ---------- Client marquee ---------- */

.clients { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.clients-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.clients-head p { margin: 0; color: var(--text-3); }
.marquee {
  display: flex; overflow: hidden; user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 12px; }
.marquee-track { display: flex; flex-shrink: 0; align-items: center; gap: clamp(40px, 6vw, 96px); padding-right: clamp(40px, 6vw, 96px); animation: marquee 40s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 48s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.client {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 64px);
  letter-spacing: -0.02em; white-space: nowrap; color: var(--text-3); transition: color 0.3s;
  display: inline-flex; align-items: center; gap: clamp(40px, 6vw, 96px);
}
.client::after { content: ""; width: 10px; height: 10px; background: var(--teal); transform: rotate(45deg); flex-shrink: 0; }
.client:hover { color: var(--text); }
/* Logos render as one white set; .in-color keeps marks that only read in their brand colours. --s balances optical size. */
.client img {
  height: calc(clamp(32px, 4vw, 56px) * var(--s, 1)); width: auto; max-width: none;
  opacity: 0.72; filter: brightness(0) invert(1); transition: opacity 0.3s;
}
.client img.in-color { filter: none; opacity: 0.92; }
.client:hover img { opacity: 1; }

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 40px 24px 40px 0; border-bottom: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 959px) { .stat:nth-child(3) { border-left: 0; padding-left: 0; } }
.stat b {
  display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -0.03em;
}
.stat b sup { font-size: 0.45em; color: var(--signal); vertical-align: top; margin-left: 4px; }
.stat span { display: block; margin-top: 14px; color: var(--text-2); font-size: 15px; max-width: 22ch; }

/* ---------- Featured work ---------- */

.feature {
  position: relative; display: grid; gap: 32px; align-items: end;
  padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line);
}
@media (min-width: 960px) {
  .feature { grid-template-columns: 1.7fr 1fr; gap: 56px; }
  .feature:nth-child(even) { grid-template-columns: 1fr 1.7fr; }
  .feature:nth-child(even) .feature-media { order: 2; }
}
.feature-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); border-radius: var(--radius);
  cursor: pointer;
}
.feature-media:not([data-vimeo]) { cursor: default; }
.feature-media img, .feature-media video {
  width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.6s;
}
.feature-media video { position: absolute; inset: 0; opacity: 0; }
.feature-media.is-previewing video { opacity: 1; }
.feature:hover .feature-media img { transform: scale(1.05); }
.feature-media .play-chip {
  position: absolute; left: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: rgba(7, 9, 11, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.feature-media .play-chip .play-icon { margin-left: 0; background: var(--signal); }
.feature-index { position: absolute; top: 20px; right: 24px; color: var(--text); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

.feature-body .client-tag { color: var(--signal); margin-bottom: 18px; display: block; }
.feature-body h3 { margin-bottom: 20px; }
.feature-body p { color: var(--text-2); margin: 0 0 24px; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.tags li {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-2);
}
.text-link {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; gap: 10px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--signal);
}
.text-link:hover .arrow { transform: translateX(4px); }
.text-link .arrow { transition: transform 0.3s var(--ease); }

/* ---------- Capabilities ---------- */

.caps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .caps { grid-template-columns: repeat(3, 1fr); } }
.cap {
  position: relative; background: var(--bg); padding: 36px 32px 40px; min-height: 420px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
}
.cap img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  opacity: 0.5; filter: grayscale(0.35); transform: scale(1.04);
  transition: opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 1.2s var(--ease);
}
.cap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,9,11,0.2), var(--bg) 92%); }
.cap:hover img { opacity: 0.7; filter: grayscale(0); transform: scale(1); }
.cap .num { position: absolute; top: 28px; left: 32px; color: var(--text-3); }
.cap h3 { margin: 0 0 14px; }
.cap p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 38ch; }
.cap .tech { margin-top: 20px; color: var(--teal-light); }

/* ---------- Archive (video grid) ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-2);
  transition: all 0.25s var(--ease);
}
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters button sup { margin-left: 4px; opacity: 0.6; }

.archive { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .archive { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .archive { grid-template-columns: repeat(3, 1fr); } }
.clip { display: block; text-align: left; width: 100%; }
.clip[hidden] { display: none; }
.clip-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.6s; filter: saturate(0.85); }
.clip:hover .clip-thumb img { transform: scale(1.06); filter: saturate(1.1); }
.clip-thumb::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,9,11,0.7));
}
.clip-thumb .dur {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 4px 8px; border-radius: 3px;
  background: rgba(7,9,11,0.7); font-family: var(--font-mono); font-size: 11px;
}
.clip-thumb .play-icon {
  position: absolute; left: 50%; top: 50%; z-index: 1; margin: -28px 0 0 -28px; width: 56px; height: 56px;
  background: var(--signal); transform: scale(0.6); opacity: 0; transition: all 0.35s var(--ease);
}
.clip-thumb .play-icon svg { width: 16px; height: 16px; }
.clip:hover .play-icon, .clip:focus-visible .play-icon { transform: scale(1); opacity: 1; }
.clip-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.clip-meta h4 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.clip-meta .mono { color: var(--text-3); white-space: nowrap; padding-top: 3px; }
.clip-client { color: var(--signal); display: block; margin-top: 6px; }

/* ---------- Process ---------- */

.process { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 960px) { .process { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 32px 28px 40px 0; border-top: 1px solid var(--line-strong); position: relative; }
@media (min-width: 960px) { .step + .step { padding-left: 28px; } }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--signal);
  transition: width 1.2s var(--ease);
}
.step.is-visible::before { width: 100%; }
.step .mono { color: var(--signal); }
.step h3 { margin: 18px 0 14px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }

.manifesto {
  margin-top: clamp(80px, 10vw, 140px);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: clamp(28px, 4vw, 60px); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch;
}
.manifesto em { font-style: normal; color: var(--signal); }

/* ---------- Studio photo mosaic ---------- */

.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
@media (min-width: 960px) { .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; gap: 16px; } }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; border-radius: 3px;
  background: rgba(7,9,11,0.7); color: var(--text-2);
}
.m-a, .m-f { grid-column: span 2; }
.m-a { grid-row: span 2; }
@media (min-width: 960px) {
  .mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 220px 220px 300px;
    grid-template-areas: "a a a a b b" "a a a a c c" "d d e e f f";
  }
  .m-a { grid-area: a; } .m-b { grid-area: b; } .m-c { grid-area: c; }
  .m-d { grid-area: d; } .m-e { grid-area: e; } .m-f { grid-area: f; }
}

/* ---------- Contact ---------- */

.contact { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.contact canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.contact .wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 96px; } }
.contact-info { display: grid; gap: 24px; margin-top: 48px; }
.contact-info div { border-top: 1px solid var(--line); padding-top: 16px; }
.contact-info .mono { color: var(--text-3); display: block; margin-bottom: 6px; }

.form { display: grid; gap: 16px; background: rgba(13, 17, 21, 0.75); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.form .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; color: var(--text); font: inherit; font-size: 16px;
  border: 0; border-bottom: 1px solid var(--line-strong); padding: 10px 0; border-radius: 0;
  transition: border-color 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; }
.field select option { background: var(--bg-2); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--signal); }
.form .btn { justify-self: start; margin-top: 12px; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status a { color: var(--signal); text-decoration: underline; }
.form-status { margin: 0; color: var(--signal); font-family: var(--font-mono); font-size: 13px; min-height: 1em; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; overflow: hidden; }
.footer-big {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 10.5vw, 190px); line-height: 0.85; letter-spacing: -0.03em; margin: 0 0 56px;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; color: var(--text-3); }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-row a:hover { color: var(--text); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--gutter);
  background: rgba(3, 5, 6, 0.94); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-frame { width: min(1280px, 100%); aspect-ratio: 16 / 9; background: #000; transform: scale(0.96); transition: transform 0.5s var(--ease); }
.lightbox.is-open .lightbox-frame { transform: scale(1); }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-title { width: min(1280px, 100%); margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; color: var(--text-2); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 22px;
}
.lightbox-close:hover { border-color: var(--text); }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; width: 100%; }

/* ---------- Case study pages ---------- */

.case-hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.case-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns 14s linear forwards; }
.case-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,9,11,0.5) 0%, rgba(7,9,11,0.15) 35%, var(--bg) 100%);
}
.case-hero .wrap { padding-bottom: clamp(48px, 8vh, 96px); }
.case-hero h1 { max-width: 16ch; }
.back-link { display: flex; width: fit-content; gap: 10px; color: var(--text-2); margin-bottom: 32px; }
.back-link:hover { color: var(--text); }

.case-meta { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .case-meta { grid-template-columns: repeat(4, 1fr); } }
.case-meta div { padding: 28px 24px 28px 0; border-top: 1px solid var(--line); }
.case-meta .mono { color: var(--text-3); display: block; margin-bottom: 8px; }
.case-meta p { margin: 0; font-weight: 500; }

.case-film { margin-top: clamp(56px, 8vw, 112px); }
.case-film .frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.case-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.chapter { display: grid; gap: 24px 64px; padding: clamp(56px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .chapter { grid-template-columns: 1fr 2fr; } }
.chapter h2 { margin: 0; }
.chapter .body p { color: var(--text-2); font-size: clamp(17px, 1.4vw, 20px); margin: 0 0 1.1em; max-width: 64ch; }
.chapter .body p strong { color: var(--text); font-weight: 600; }

.bigquote {
  padding: clamp(72px, 10vw, 140px) 0; text-align: center;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: clamp(30px, 5vw, 76px); line-height: 1.04; letter-spacing: -0.02em;
}
.bigquote span { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-top: 32px; font-weight: 400; }

.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery .wide { grid-column: span 2; } }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1s var(--ease); }
.gallery .wide img { aspect-ratio: 21 / 9; }
.gallery figure:hover img { transform: scale(1.03); }

.next-case { display: block; position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.next-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.35; transition: opacity 0.6s, transform 1.2s var(--ease); }
.next-case::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 10%, transparent); }
.next-case:hover img { opacity: 0.6; transform: scale(1.04); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .marquee-track { animation: none; }
  body::after { display: none; }
}
