/* ============================================================
   MELİHCAN ÖZKARA — MCO KREATİF
   Design system: carbon black · electric mint · cinematic motion
   Display: Archivo Expanded · Body: Archivo · Utility: JetBrains Mono
   ============================================================ */

:root {
  /* palette — Carbon / Electric Mint */
  --bg: #070a0d;
  --bg-2: #0c1218;
  --surface: #111b23;
  --line: rgba(158, 177, 187, 0.14);
  --line-strong: rgba(158, 177, 187, 0.28);
  --text: #f0f0ea;
  --muted: #87969c;
  --blue: #2fffe4;
  --blue-deep: #0b3431;
  --teal: #2fffe4;
  --accent: #2fffe4;
  --accent-soft: rgba(47, 255, 228, 0.16);
  --spark: #2fffe4;
  --orange: var(--accent);
  --orange-dim: var(--accent-soft);

  /* type */
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --size-display: clamp(2.6rem, 7.4vw, 6.6rem);
  --size-h2: clamp(1.9rem, 4.4vw, 3.6rem);
  --size-h3: clamp(1.25rem, 2.2vw, 1.7rem);
  --size-body: 1.0625rem;
  --size-small: 0.875rem;
  --size-mono: 0.72rem;

  /* rhythm */
  --space-section: clamp(4.5rem, 9vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 4.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip (not hidden) so it doesn't create a scroll container that breaks position: sticky */
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4 { line-height: 1.05; font-weight: 800; }

::selection { background: var(--orange); color: #10100e; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 300;
  background: var(--orange); color: #10100e;
  font-family: var(--font-mono); font-size: var(--size-mono);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.6rem 1rem; transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- utility type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow::before {
  content: "";
  width: 1.55rem; height: 2px;
  background: var(--orange);
  transform: skewX(-38deg);
  box-shadow: 0 0 1rem rgba(47, 255, 228, 0.5);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--font-body);
  font-variation-settings: "wdth" 122;
  font-stretch: 122%;
  font-weight: 850;
  font-size: var(--size-display);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 0.96;
}
.display .accent { color: var(--orange); }
.display .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(234, 240, 248, 0.55);
}

.h2 {
  font-variation-settings: "wdth" 118;
  font-stretch: 118%;
  font-weight: 830;
  font-size: var(--size-h2);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--text);
  max-width: 34ch;
}
.body-muted { color: var(--muted); max-width: 58ch; }

/* ---------- layout ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), 82rem);
  margin-inline: auto;
}
.section { padding-block: var(--space-section); position: relative; }
.section + .section { padding-top: 0; }

.scene-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 1.1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.scene-head .scene-no {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.18em;
  color: #070a0d;
  background: var(--accent);
  padding: 0.42rem 1.15rem 0.42rem 0.65rem;
  clip-path: polygon(0 0, calc(100% - 0.55rem) 0, 100% 50%, calc(100% - 0.55rem) 100%, 0 100%);
  white-space: nowrap;
}
.scene-head .h2 { flex: 1; }
.scene-head .scene-link {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s;
}
.scene-head .scene-link:hover { color: var(--orange); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.header-hidden { transform: translateY(-105%); }
.site-header.scrolled {
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex; flex-direction: row; align-items: center;
  gap: 0.65rem; color: var(--text);
}
.brand-mark {
  height: 26px; width: auto; flex: 0 0 auto;
  object-fit: contain;
  transition: filter 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.brand:hover .brand-mark {
  filter: drop-shadow(0 0 7px var(--accent));
  transform: translateY(-1px);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-name {
  font-variation-settings: "wdth" 122;
  font-stretch: 122%;
  font-weight: 850;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand .brand-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 0.15rem;
  display: none;
}

/* hero role line under the name */
.hero-role {
  margin-top: 1rem;
  font-variation-settings: "wdth" 116;
  font-stretch: 116%;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(234, 240, 248, 0.9);
}
.hero-role .accent { color: var(--orange); }
.hero-role .sep { color: var(--muted); margin-inline: 0.5rem; font-weight: 400; }

.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-desktop a {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.3s;
}
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--text); }
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.lang-switch {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 0.35rem 0.95rem 0.35rem 0.7rem;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 0.45rem) 0, 100% 50%, calc(100% - 0.45rem) 100%, 0 100%);
  transition: color 0.3s, border-color 0.3s;
}
.lang-switch:hover { color: var(--orange); border-color: var(--orange); }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 6px;
  width: 2.6rem; height: 2.6rem;
  padding: 0.6rem;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* mobile overlay menu */
.nav-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(7, 11, 18, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay nav { display: flex; flex-direction: column; gap: 0.4rem; }
.nav-overlay a.nav-big {
  font-variation-settings: "wdth" 122;
  font-stretch: 122%;
  font-weight: 850;
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  text-transform: uppercase;
  line-height: 1.08;
  display: flex; align-items: baseline; gap: 0.8rem;
  transform: translateY(1.5rem); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s, color 0.3s;
}
.nav-overlay.open a.nav-big { transform: none; opacity: 1; }
.nav-overlay a.nav-big:nth-child(2) { transition-delay: 0.06s; }
.nav-overlay a.nav-big:nth-child(3) { transition-delay: 0.12s; }
.nav-overlay a.nav-big:nth-child(4) { transition-delay: 0.18s; }
.nav-overlay a.nav-big:nth-child(5) { transition-delay: 0.24s; }
.nav-overlay a.nav-big .no {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.15em;
}
.nav-overlay a.nav-big:hover { color: var(--orange); }
.nav-overlay .overlay-foot {
  margin-top: 3rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}

/* ---------- hero / viewfinder ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,11,18,0.35) 0%, rgba(7,11,18,0.1) 40%, rgba(7,11,18,0.88) 100%),
    radial-gradient(120% 90% at 80% 10%, rgba(71,121,163,0.14), transparent 60%);
}

/* viewfinder chrome */
.vf {
  position: absolute;
  inset: calc(var(--header-h) + 0.6rem) clamp(1rem, 3vw, 2.2rem) clamp(1rem, 3vw, 2.2rem);
  z-index: 5; pointer-events: none;
}
.vf-corner {
  position: absolute; width: 26px; height: 26px;
  border: 2px solid rgba(234, 240, 248, 0.85);
}
.vf-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.vf-row {
  position: absolute; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding-inline: 2.4rem;
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  color: rgba(234, 240, 248, 0.85);
}
.vf-row.top { top: 0.9rem; }
.vf-row.bottom { bottom: 0.9rem; }
.vf .rec {
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.vf .rec::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 8px var(--spark);
  animation: rec-blink 1.6s steps(1) infinite;
}
@keyframes rec-blink { 50% { opacity: 0.15; } }

.hero-content {
  position: relative; z-index: 10;
  width: 100%;
  padding-bottom: clamp(4rem, 9vh, 6.5rem);
}
.hero-content .eyebrow { margin-bottom: 1.2rem; }
.hero-content .display { max-width: 18ch; }
.hero-sub {
  margin-top: 1.6rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.hero-sub p { max-width: 44ch; color: rgba(234,240,248,0.82); font-size: var(--size-body); }

.scroll-hint {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 2.4rem;
  background: linear-gradient(var(--orange), transparent);
  animation: drip 2.2s var(--ease-out) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  color: var(--text);
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  position: relative;
  transition: color 0.35s, border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.primary {
  background: var(--accent); border-color: var(--accent);
  color: #06110f; font-weight: 700;
}
.btn.primary:hover { box-shadow: 0 0 26px -7px rgba(47, 255, 228, 0.6); }

/* ---------- stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  border-block: 1px solid var(--line);
}
.stat {
  padding: 2rem 1.5rem;
  border-inline-start: 1px solid var(--line);
}
.stat:first-child { border-inline-start: 0; }
.stat .num {
  font-variation-settings: "wdth" 122;
  font-stretch: 122%;
  font-weight: 850;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: var(--text);
}
.stat .num .unit { color: var(--orange); }
.stat .label { margin-top: 0.5rem; }

/* ---------- kinetic manifesto: palette inversion after the flight ---------- */
.manifesto {
  --manifesto-top-x: -7vw;
  --manifesto-bottom-x: 7vw;
  --manifesto-rotate: 0deg;
  --manifesto-center-x: 0px;
  --manifesto-center-y: 0px;
  --manifesto-tilt: 0deg;
  position: relative;
  min-height: min(78svh, 48rem);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #e7eceb;
  color: #070a0d;
  border-block: 1px solid rgba(8,13,32,0.18);
  isolation: isolate;
}
.manifesto::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, rgba(47,255,228,0.28), transparent 28%),
    linear-gradient(90deg, rgba(8,13,32,0.06) 1px, transparent 1px),
    linear-gradient(rgba(8,13,32,0.06) 1px, transparent 1px);
  background-size: auto, clamp(4rem, 8vw, 8rem) clamp(4rem, 8vw, 8rem), clamp(4rem, 8vw, 8rem) clamp(4rem, 8vw, 8rem);
}
.manifesto-line {
  position: absolute; left: 50%;
  display: flex; align-items: center; gap: 0.22em;
  width: max-content; white-space: nowrap;
  font-variation-settings: "wdth" 122;
  font-stretch: 122%; font-weight: 900;
  font-size: clamp(4.2rem, 9vw, 9rem);
  line-height: 0.78; letter-spacing: -0.065em;
  text-transform: uppercase; will-change: transform;
}
.manifesto-line span:nth-child(2) {
  color: transparent; -webkit-text-stroke: 2px rgba(8,13,32,0.48);
}
.manifesto-line--top { top: 0.12em; transform: translate3d(calc(-50% + var(--manifesto-top-x)),0,0); }
.manifesto-line--bottom { bottom: 0.1em; transform: translate3d(calc(-50% + var(--manifesto-bottom-x)),0,0); }
.manifesto-center {
  display: flex; flex-direction: column; align-items: center;
  padding: 10rem var(--gutter); text-align: center;
  transform: translate3d(var(--manifesto-center-x), var(--manifesto-center-y), 0);
  will-change: transform;
}
.manifesto-center p {
  margin-block: 1.5rem 1rem;
  font-size: clamp(1.35rem, 2.7vw, 2.3rem);
  line-height: 1.12; font-weight: 720; letter-spacing: -0.025em;
}
.manifesto-center .mono-label { color: rgba(8,13,32,0.56); }
.manifesto-orb {
  position: relative; display: block;
  width: clamp(6.5rem, 10vw, 9rem); aspect-ratio: 1;
  border: 1px solid rgba(7,10,13,0.58); border-radius: 50%;
  transform: rotate(var(--manifesto-tilt));
  will-change: transform;
}
.manifesto-orb::before,
.manifesto-orb i {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px solid rgba(7,10,13,0.24);
}
.manifesto-orb::before { inset: 18%; }
.manifesto-orb i { inset: 36%; background: #070a0d; border: 0; }
.manifesto-orb b {
  position: absolute; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  left: 7%; top: 48%; background: var(--accent);
  border: 2px solid #070a0d;
  box-shadow: 0 0 1.2rem rgba(47,255,228,0.8);
}

/* ---------- work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.work-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  display: block;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  border-radius: 0;
  clip-path: none;
  transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.35s var(--ease-out);
}
.work-card:hover::before,
.work-card:focus-visible::before { border-color: var(--accent); }
.work-card.wide { grid-column: span 8; aspect-ratio: 16 / 9; }
.work-card.tall { grid-column: span 4; aspect-ratio: 9 / 15; }
.work-card.half { grid-column: span 6; aspect-ratio: 16 / 10; }
.work-card.full { grid-column: span 12; aspect-ratio: 21 / 9; }

/* verticals side by side — desktop: own N-column row, mobile: swipeable reel */
.reel-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--reel, 3), 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.reel-row .work-card { grid-column: auto; }
.work-card .media {
  position: absolute; inset: 0;
}
html.motion .work-card .media {
  inset: -5%;
  transform: translate3d(0, var(--media-y, 0px), 0) scale(1.02);
  will-change: transform;
}
.work-card .media img,
.work-card .media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out), opacity 0.5s;
}
.work-card .media video { position: absolute; inset: 0; opacity: 0; }
.work-card:hover .media img { transform: none; }
.work-card.playing .media video { opacity: 1; }
.work-card.playing .media img { opacity: 0; }

.work-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,18,0.25) 0%, transparent 35%, transparent 55%, rgba(7,11,18,0.85) 100%);
  opacity: 0.68;
  transition: opacity 0.4s;
}
.work-card:hover .scrim,
.work-card:focus-visible .scrim { opacity: 0.68; }
.work-card .meta {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 1.3rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  z-index: 2;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
}
.work-card:hover .meta,
.work-card:focus-visible .meta { opacity: 1; transform: none; }
.work-card .meta .cat {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.work-card .meta .title {
  font-variation-settings: "wdth" 118;
  font-stretch: 118%;
  font-weight: 830;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  text-transform: uppercase;
  color: var(--text);
}
.work-card .tc {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: rgba(234,240,248,0.9);
  background: rgba(7, 11, 18, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  display: none;
}
.work-card .tc::before {
  content: "";
  width: 0; height: 0;
  border-left: 6px solid var(--orange);
  border-block: 4px solid transparent;
}
.work-card:hover .tc::before { border-left-color: var(--text); }

@media (hover: hover) and (pointer: fine) {
  .work-card:hover {
    z-index: 3;
    transform: none;
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
  }
}
@media (hover: none) {
  .work-card .meta { opacity: 1; transform: none; }
  .work-card .scrim { opacity: 0.72; }
}

/* section titles assemble one glyph at a time */
.kinetic-title { overflow: hidden; }
.kinetic-char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 112%, 0) rotate(7deg);
  transform-origin: left bottom;
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.72s var(--ease-out);
  transition-delay: calc(var(--char-i) * 24ms);
  will-change: transform, opacity;
}
.kinetic-title.kinetic-visible .kinetic-char {
  opacity: 1;
  transform: none;
}

/* grade sweep on hover — the "color grade" pass */
.work-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, transparent 40%, rgba(71,121,163,0.20) 48%, rgba(47,255,228,0.28) 52%, transparent 60%);
  transform: translateX(-130%);
  pointer-events: none;
  display: none;
}
.work-card:hover::after {
  animation: grade-sweep 0.9s var(--ease-out) forwards;
}
@keyframes grade-sweep {
  to { transform: translateX(130%); }
}

/* "see more" fade over the end of the grid */
.grid-more {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(7rem, 16vw, 12rem));
  padding-top: clamp(8rem, 18vw, 14rem);
  padding-bottom: 0.5rem;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0) 0%, rgba(7, 11, 18, 0.85) 55%, var(--bg) 92%);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.grid-more .btn { pointer-events: auto; }

/* ---------- logo wall (clients) ---------- */
.client-wall {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}
.client-intro {
  margin-bottom: 1rem;
  color: var(--accent);
  display: flex; align-items: center; gap: 0.75rem;
}
.client-intro::before {
  content: ""; width: 1.45rem; height: 2px;
  background: var(--accent);
  transform: skewX(-38deg);
}
.logo-strip {
  border-block: 1px solid var(--line);
  padding-block: 1.8rem;
  overflow: hidden;
  position: relative;
}
.logo-strip::before, .logo-strip::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: clamp(3rem, 10vw, 8rem);
  z-index: 2; pointer-events: none;
}
.logo-strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.logo-strip::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.logo-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: logo-track-right 24s linear infinite;
}
.logo-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(3.5rem, 7vw, 6rem);
  padding-right: clamp(3.5rem, 7vw, 6rem);
}
@keyframes logo-track-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.brand-logo {
  width: clamp(8rem, 11vw, 10.5rem);
  height: 2.8rem;
  display: grid; place-items: center;
  flex: 0 0 auto;
  opacity: 0.55;
  transition: opacity 0.3s, filter 0.3s;
}
.brand-logo:hover { opacity: 1; }
.brand-logo img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}
.brand-logo--wide { width: clamp(10rem, 15vw, 14rem); }
.brand-logo--morven {
  width: 9.4rem; height: 2.35rem;
  background-image: url("../assets/img/posters/morven.jpg");
  background-repeat: no-repeat;
  background-size: 337.5px 600px;
  background-position: -98px -139px;
  filter: grayscale(1);
}
.logo {
  white-space: nowrap;
  color: var(--text);
  opacity: 0.55;
  transition: opacity 0.3s;
  font-size: 1.1rem;
  line-height: 1;
}
.logo:hover { opacity: 1; }
/* monochrome wordmarks — each set in the brand's typographic register */
.lg-porsche { font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; font-size: 1rem; }
.lg-acibadem { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em; }
.lg-teksan { font-weight: 850; font-style: italic; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.2rem; }
.lg-canon { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.01em; }
.lg-sony { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0.22em; font-size: 1.15rem; }
.lg-elmaskule { font-weight: 300; letter-spacing: 0.4em; text-transform: uppercase; font-size: 0.95rem; }
.lg-morven { font-weight: 600; letter-spacing: 0.5em; text-transform: uppercase; font-size: 0.9rem; }
.lg-ktb { font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem; max-width: 13rem; white-space: normal; line-height: 1.35; text-align: center; }

/* filters (works page) */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.55rem 1.35rem 0.55rem 1.1rem;
  clip-path: polygon(0 0, calc(100% - 0.55rem) 0, 100% 50%, calc(100% - 0.55rem) 100%, 0 100%);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
.filter-btn[aria-pressed="true"] {
  color: #10100e; background: var(--orange); border-color: var(--orange);
}
.work-card.is-hidden { display: none; }

/* ---------- services ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: minmax(15rem, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3.5vw, 2.4rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s;
}
.service-row::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.65s var(--ease-out);
}
.service-row:hover { background: rgba(71, 121, 163, 0.05); }
.service-row:hover::before { transform: scaleX(1); }
.service-row .idx {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.3s;
}
.service-row:hover .idx { color: var(--orange); }
.service-row .name {
  font-variation-settings: "wdth" 118;
  font-stretch: 118%;
  font-weight: 830;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  text-transform: uppercase;
  transition: color 0.35s, transform 0.5s var(--ease-out);
}
.service-row:hover .name { color: var(--accent); transform: translateX(0.45rem); }
.service-row .desc { color: var(--muted); font-size: var(--size-small); max-width: 44ch; }
.service-row .tag {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.35s, transform 0.5s var(--ease-out);
}
.service-row:hover .tag { color: var(--text); transform: translateX(-0.35rem); }

/* ---------- custom MCO pointer supplied by the brand ---------- */
.camera-cursor {
  position: fixed; left: 0; top: 0; z-index: 10000;
  width: 0; height: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s;
  will-change: transform;
}
.camera-cursor-mark {
  position: absolute; left: 0; top: 0;
  width: 24px; height: 31.07px;
  background-image: url("../assets/img/mco-cursor.png");
  background-repeat: no-repeat;
  background-size: 49.33px 58.8px;
  background-position: -15.53px -13.87px;
  transform-origin: 0 0;
  mix-blend-mode: difference;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.75));
  transition: transform 0.18s var(--ease-out), filter 0.22s;
}
.camera-cursor.visible { opacity: 1; }
.camera-cursor.visible .camera-cursor-mark { animation: mco-pointer-arrive 0.28s var(--ease-out); }
@keyframes mco-pointer-arrive {
  from { transform: scale(0.72); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.camera-cursor.is-action .camera-cursor-mark,
.camera-cursor.is-view .camera-cursor-mark {
  transform: scale(1.06);
  filter: drop-shadow(0 0 4px rgba(47,255,228,0.9)) drop-shadow(0 2px 2px rgba(0,0,0,0.72));
}
.camera-cursor.pressed .camera-cursor-mark { transform: scale(0.82); }
@media (hover: hover) and (pointer: fine) {
  html.cursor-active,
  html.cursor-active body,
  html.cursor-active body * { cursor: none !important; }
  .magnetic { transition: transform 0.32s var(--ease-out); will-change: transform; }
}

/* ---------- MCO band ---------- */
.mco-band {
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(71,121,163,0.22), transparent 55%),
    var(--blue-deep);
  border-block: 1px solid var(--line-strong);
  padding-block: clamp(4rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}
.mco-band::after {
  content: "";
  position: absolute; right: clamp(-15rem, -10vw, -5rem); top: -35%;
  width: clamp(24rem, 48vw, 44rem); height: 175%;
  background: linear-gradient(135deg, transparent 12%, rgba(47,255,228,0.18) 12% 31%, transparent 31% 47%, rgba(47,255,228,0.09) 47% 66%, transparent 66%);
  transform: skewX(-14deg);
  pointer-events: none;
  user-select: none;
}
.mco-band .wrap { position: relative; z-index: 2; }
.mco-band .grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.mco-points { display: grid; gap: 1.1rem; margin-top: 2rem; }
.mco-point {
  display: flex; gap: 1rem; align-items: baseline;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(148, 170, 200, 0.22);
}
.mco-point .k {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  color: var(--orange);
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.mco-point p { color: rgba(234, 240, 248, 0.8); font-size: var(--size-small); }

/* ---------- timeline strip (NLE) ---------- */
.timeline {
  border-block: 1px solid var(--line);
  padding-block: 1.4rem;
  overflow: hidden;
  position: relative;
}
.timeline .ruler {
  display: flex; gap: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
  white-space: nowrap;
}
.timeline .ruler span {
  flex: 0 0 8rem;
  border-left: 1px solid var(--line-strong);
  padding-left: 0.4rem;
}
.timeline .track {
  display: flex; gap: 4px;
  width: max-content;
  animation: track-scroll 36s linear infinite;
}
.timeline:hover .track { animation-play-state: paused; }
.timeline .clip {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(71,121,163,0.32), rgba(71,121,163,0.14));
  border: 1px solid rgba(71, 121, 163, 0.45);
  color: var(--text);
  position: relative;
}
.timeline .clip::before, .timeline .clip::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 5px;
  background: rgba(234, 240, 248, 0.22);
}
.timeline .clip::before { left: 0; border-radius: 3px 0 0 3px; }
.timeline .clip::after { right: 0; border-radius: 0 3px 3px 0; }
.timeline .clip.alt {
  background: linear-gradient(180deg, rgba(47,255,228,0.30), rgba(47,255,228,0.12));
  border-color: rgba(47, 255, 228, 0.45);
}
@keyframes track-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- about teaser / pages ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.about-grid .facts { display: grid; gap: 0; align-content: start; }
.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.fact .k {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  min-width: 7.5rem;
}
.fact p { color: var(--muted); font-size: var(--size-small); }

/* milestones */
.milestones {
  --process-progress: 0;
  position: relative;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}
.milestones::after {
  content: ""; position: absolute; z-index: 2;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--accent), #b9c7cc);
  transform: scaleY(var(--process-progress)); transform-origin: top;
  box-shadow: 0 0 1rem rgba(47,255,228,0.56);
}
.milestone {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.8rem 0 1.8rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.milestone .year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange);
  letter-spacing: 0.1em;
}
.milestone h3 { font-size: var(--size-h3); text-transform: uppercase; margin-bottom: 0.35rem; }
.milestone p { color: var(--muted); font-size: var(--size-small); max-width: 60ch; }

/* gear chips */
.gear-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gear-chip {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 0.6rem 1rem;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 0.55rem) 0, 100% 0.55rem, 100% 100%, 0 100%);
  background: var(--surface);
  transition: color 0.3s, border-color 0.3s, transform 0.35s var(--ease-out), background 0.3s;
}
.gear-chip:hover { color: #fff; border-color: var(--accent); background: var(--blue-deep); transform: translateY(-0.3rem); }

/* process steps (agency) */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step {
  background: var(--bg);
  padding: 2rem 1.6rem 2.4rem;
  position: relative;
  transition: background 0.4s;
}
.step:hover { background: var(--bg-2); }
.step .no {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  color: var(--orange);
  letter-spacing: 0.16em;
}
.step h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin: 0.9rem 0 0.6rem;
  font-variation-settings: "wdth" 118;
  font-stretch: 118%;
}
.step p { color: var(--muted); font-size: var(--size-small); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.channel-list { display: grid; gap: 0.8rem; margin-top: 2rem; }
.channel {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 0.85rem) 0, 100% 0.85rem, 100% 100%, 0 100%);
  padding: 1.2rem 1.4rem;
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease-out);
  background: var(--surface);
}
.channel:hover {
  border-color: var(--orange);
  background: var(--orange-dim);
  transform: translateX(6px);
}
.channel .ch-name {
  font-variation-settings: "wdth" 118;
  font-stretch: 118%;
  font-weight: 830;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.channel .ch-val {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  color: var(--muted);
  letter-spacing: 0.1em;
}
.channel .arrow { color: var(--orange); flex: 0 0 auto; }

/* form */
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  padding: 0.8rem 0.1rem;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field select { appearance: none; }
.field select option { background: var(--bg-2); color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--orange);
}
.field textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-status {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.1em;
  min-height: 1.2rem;
}
.form-status.ok { color: #4ade80; }
.form-status.err { color: var(--orange); }

/* ---------- footer / big CTA ---------- */
.cta-final {
  min-height: min(72svh, 46rem);
  display: flex; align-items: center;
  text-align: left;
  overflow: hidden; isolation: isolate;
  border-top: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 82% 48%, rgba(47,255,228,0.16), transparent 24rem),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}
.cta-final::before {
  content: ""; position: absolute; z-index: -1;
  width: min(52vw, 50rem); height: 160%;
  right: -16vw; top: -30%;
  transform: rotate(18deg);
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(47,255,228,0.16) 22% 35%, transparent 35% 53%, rgba(47,255,228,0.08) 53% 72%, transparent 72%);
  border-left: 1px solid rgba(47,255,228,0.25);
  animation: cta-drift 10s ease-in-out infinite alternate;
}
.cta-final::after {
  content: "";
  position: absolute; inset: auto 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 18% 48%, var(--spark) 72%, transparent);
  transform-origin: left;
  animation: cta-scan 4.8s var(--ease-out) infinite;
}
@keyframes cta-drift { to { transform: rotate(13deg) translate3d(-4vw, 3%, 0); } }
@keyframes cta-scan { 0%, 12% { transform: scaleX(0); } 55%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }
.cta-final .wrap { position: relative; z-index: 1; }
.cta-final .display { max-width: 11ch; }
.cta-final .btn-row {
  margin-top: 2.4rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.2rem;
  font-size: var(--size-small);
  color: var(--muted);
}
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.2rem; flex-wrap: wrap;
}
.site-footer .foot-links { display: flex; gap: 1.4rem; }
.site-footer a { transition: color 0.3s; font-family: var(--font-mono); font-size: var(--size-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer a:hover { color: var(--orange); }
.site-footer .tc-foot { display: none; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(4, 6, 10, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox .lb-inner {
  position: relative;
  max-width: min(92vw, 70rem);
  max-height: 86svh;
  display: flex; flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.45s var(--ease-out);
}
.lightbox.open .lb-inner { transform: scale(1); }
.lightbox video {
  max-height: 78svh;
  max-width: 100%;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}
.lightbox .lb-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lightbox .lb-title { color: var(--text); }
.lightbox .lb-close {
  position: absolute; top: -3rem; right: 0;
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0.5rem;
  transition: color 0.3s;
}
.lightbox .lb-close:hover { color: var(--orange); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(4rem, 10vw, 7rem));
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero .display { max-width: 16ch; }
.page-hero .lead { margin-top: 1.6rem; color: var(--muted); font-weight: 400; max-width: 52ch; }

/* about page — editorial portrait split */
.about-hero { padding-bottom: clamp(4rem, 8vw, 7rem); }
.about-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(17rem, 0.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.about-hero-copy { min-width: 0; padding-bottom: 0; }
/* keep the about title inside its column so it never runs under the portrait */
.about-hero .display {
  font-size: clamp(2.3rem, 4.6vw, 4.3rem);
  overflow-wrap: break-word;
}
.about-hero .lead { max-width: 42ch; }
.about-portrait {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  clip-path: none;
  isolation: isolate;
}
.about-portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5,7,19,0.88));
  pointer-events: none;
}
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.03); }
.about-portrait figcaption {
  position: absolute; z-index: 2; inset: auto 1.2rem 1.1rem;
  font-family: var(--font-mono); font-size: var(--size-mono);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
}

/* ---------- reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal="clip"] {
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease-out), opacity 0.6s;
  transition-delay: var(--d, 0s);
}
[data-reveal="left"] { transform: translateX(-2rem); }
.revealed[data-reveal] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0% 0);
}

/* hero load sequence */
.hero .eyebrow, .hero .display, .hero .hero-sub,
.hero .vf-corner, .hero .vf-row {
  opacity: 0;
  animation: hero-in 1s var(--ease-out) forwards;
}
.hero .vf-corner { animation-delay: 0.15s; }
.hero .vf-row { animation-delay: 0.35s; }
.hero .eyebrow { animation-delay: 0.5s; }
.hero .display { animation-delay: 0.65s; }
.hero .hero-sub { animation-delay: 0.85s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(1.2rem); }
  to { opacity: 1; transform: none; }
}
.hero .vf-corner { transform: none; }

/* ============================================================
   LOADER — 3D logo spin + curtain reveal
   ============================================================ */
body.loading { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  display: grid; place-items: center; gap: 0;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 1s;
}
.loader.done { transform: translateY(-100%); visibility: hidden; }
.loader__inner { display: grid; place-items: center; gap: 1.4rem; }
.loader__logo {
  width: clamp(96px, 15vw, 168px); height: auto;
  transform-style: preserve-3d;
  animation: logo-spin 1.7s cubic-bezier(0.5, 0, 0.18, 1) forwards;
  filter: drop-shadow(0 12px 40px rgba(47, 255, 228, 0.26));
}
@keyframes logo-spin {
  0%   { transform: perspective(900px) rotateY(-560deg) scale(0.55); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: perspective(900px) rotateY(0deg) scale(1); opacity: 1; }
}
.loader__label {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden; white-space: nowrap;
  opacity: 0;
  animation: loader-label 0.6s var(--ease-out) 1.15s forwards;
}
@keyframes loader-label { to { opacity: 1; } }
.loader__track {
  width: clamp(120px, 20vw, 220px); height: 1px;
  background: var(--line-strong); position: relative; overflow: hidden;
}
.loader__track::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: loader-fill 1.5s cubic-bezier(0.5, 0, 0.18, 1) forwards;
}
@keyframes loader-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============================================================
   HERO — cinematic monitor: cross-dissolving "takes" (Ken Burns)
   ============================================================ */
.hero-wrap { position: relative; }
.hero-stage {
  position: relative;
  height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-stage .hero-content { position: relative; z-index: 10; width: 100%; }
.hero-stage .vf { z-index: 6; }

/* slide reel */
.hero-reel { position: absolute; inset: 0; z-index: 1; background: #02080e; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease;
  will-change: opacity, transform;
}
.hero-slide.on { opacity: 1; }
/* slow Ken Burns push while a slide is on (motion only) */
html.motion .hero-slide.on { animation: kenburns 6s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}
/* cinematic grade + legibility scrim over the reel */
.hero-reel::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,16,26,0.35) 0%, rgba(5,16,26,0.08) 38%, rgba(5,16,26,0.9) 100%),
    radial-gradient(120% 90% at 78% 12%, rgba(71,121,163,0.18), transparent 60%);
}
/* faint scanline / grain to sell the "monitor" feel */
.hero-reel::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; opacity: 0.5;
}

/* viewfinder "take" label that changes per slide (inline in the top HUD row) */
.vf-take {
  display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
}
.vf-take .k { color: var(--accent); }
.vf-take .nm { transition: opacity 0.5s ease; }

/* take indicators (bottom-center of the frame) */
.reel-dots {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 2.4rem; z-index: 6;
  display: flex; gap: 0.5rem;
}
.reel-dots button {
  width: 26px; height: 3px; border-radius: 2px;
  background: rgba(233,243,250,0.28);
  padding: 0; overflow: hidden; position: relative;
  transition: background 0.3s;
}
.reel-dots button[aria-current="true"] { background: rgba(233,243,250,0.5); }
.reel-dots button[aria-current="true"]::after {
  content: ""; position: absolute; inset: 0; transform-origin: left;
  background: var(--accent);
  animation: dot-fill var(--slide-dur, 5s) linear forwards;
}
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* hero entrance (after loader) — only when motion is on, so no-JS stays visible */
html.motion .hero-stage .eyebrow,
html.motion .hero-stage .display,
html.motion .hero-stage .hero-role,
html.motion .hero-stage .hero-sub {
  opacity: 0; transform: translateY(1.4rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
html.motion .hero-stage.entered .eyebrow { opacity: 1; transform: none; transition-delay: 0.05s; }
html.motion .hero-stage.entered .display { opacity: 1; transform: none; transition-delay: 0.18s; }
html.motion .hero-stage.entered .hero-role { opacity: 1; transform: none; transition-delay: 0.32s; }
html.motion .hero-stage.entered .hero-sub { opacity: 1; transform: none; transition-delay: 0.46s; }

/* ============================================================
   HOMEPAGE HERO — a single FPV route through the frame
   ============================================================ */
.hero-flight {
  isolation: isolate;
  min-height: 46rem;
  background:
    radial-gradient(circle at 76% 30%, rgba(47, 255, 228, 0.12), transparent 31rem),
    linear-gradient(135deg, #06090c 0%, var(--bg) 52%, #0c2029 100%);
}
.hero-flight::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 175, 205, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 175, 205, 0.055) 1px, transparent 1px);
  background-size: clamp(4rem, 7.5vw, 7rem) clamp(4rem, 7.5vw, 7rem);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.8), transparent 54%);
}
/* full-bleed video; a clip-path "window" opens from framed (fp=0) to full (fp=1) — GPU-smooth */
.hero-visual {
  position: absolute; inset: 0;
  z-index: 2; overflow: hidden;
  background: #06101a;
  --Lx: 46; --Ty: 12; --By: 88; --cutX: 4; --cutY: 9;
  clip-path: polygon(
    calc((var(--Lx) + var(--cutX)) * 1%) calc(var(--Ty) * 1%),
    100% calc(var(--Ty) * 1%),
    100% calc(var(--By) * 1%),
    calc(var(--Lx) * 1%) calc(var(--By) * 1%),
    calc(var(--Lx) * 1%) calc((var(--Ty) + var(--cutY)) * 1%)
  );
  box-shadow: inset 0 0 0 1px rgba(233,243,250,0.14), inset 0 0 6rem rgba(5,16,26,0.5);
  will-change: clip-path;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,11,18,0.82) 0%, rgba(3,11,18,0.2) 34%, transparent 60%),
    linear-gradient(180deg, rgba(3,11,18,0.05) 50%, rgba(3,11,18,0.7) 100%);
}
.hero-visual video {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.07) brightness(0.83);
}
.hero-frame-label {
  position: absolute; z-index: 3;
  inset: auto 1.25rem 1.1rem 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(233,243,250,0.72);
}

.hero-flight .hero-content {
  position: absolute; inset: 0; z-index: 7;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 2.8rem) 0 4.5rem;
  pointer-events: none;
}
/* pull the copy to the left edge and keep it clear of the video window */
.hero-flight .hero-layout {
  position: relative;
  width: 100%; max-width: none; margin-inline: 0;
  padding-inline: 0;
}
/* copy is centered inside the empty left band (0 → video window at 46vw) */
.hero-copy {
  width: min(34rem, 42vw); pointer-events: auto;
  margin-left: max(1.25rem, calc((46vw - min(34rem, 42vw)) / 2));
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.65rem;
  margin-bottom: clamp(1.1rem, 2.6vh, 1.8rem);
  font-family: var(--font-mono); font-size: clamp(0.62rem, 0.75vw, 0.72rem);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.17em;
  color: rgba(233,243,250,0.78);
}
.live-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: 0 0 auto;
  background: var(--spark); box-shadow: 0 0 0 4px rgba(47,255,228,0.12), 0 0 1rem rgba(47,255,228,0.58);
}
.hero-title {
  max-width: 10.5ch;
  font-variation-settings: "wdth" 116;
  font-stretch: 116%; font-weight: 880;
  font-size: clamp(2.75rem, 4.8vw, 4.9rem);
  line-height: 0.91; letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0.04em 0.5em rgba(3,11,18,0.38);
}
.hero-title > span { display: block; white-space: nowrap; }
.hero-title .route-word {
  position: relative;
  color: var(--accent);
  text-shadow: 0 0 1.8rem rgba(47,255,228,0.2);
}
:lang(en) .hero-title { max-width: 11.5ch; font-size: clamp(2.65rem, 4.5vw, 4.65rem); }
.hero-deck {
  margin-top: clamp(1.4rem, 3vh, 2.1rem);
  max-width: 38ch;
  font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.5;
  color: rgba(233,243,250,0.78);
}
.hero-actions {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: clamp(1.5rem, 3.5vh, 2.4rem);
}
.hero-actions .btn { padding: 0.9rem 1.4rem; }
.hero-text-link {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding-block: 0.6rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(233,243,250,0.78);
  border-bottom: 1px solid rgba(233,243,250,0.28);
  transition: color 0.3s, border-color 0.3s;
}
.hero-text-link span { transition: transform 0.35s var(--ease-out); }
.hero-text-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-text-link:hover span { transform: translateX(0.35rem); }
.hero-signoff {
  position: absolute; right: 0; bottom: -1.35rem;
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: 1.25;
  color: rgba(233,243,250,0.78);
  pointer-events: auto;
}
.hero-signoff-name {
  font-variation-settings: "wdth" 116; font-weight: 760;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.hero-signoff-studio {
  margin-top: 0.25rem;
  font-family: var(--font-mono); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent);
}

.hero-scroll {
  position: absolute; right: clamp(1rem, 2vw, 2rem); bottom: clamp(1.2rem, 3vh, 2rem); z-index: 8;
  display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
  font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.hero-scroll span { writing-mode: vertical-rl; }
.hero-scroll i { display: block; width: 1px; height: 2.8rem; overflow: hidden; background: var(--line-strong); }
.hero-scroll i::after {
  content: ""; display: block; width: 1px; height: 100%; background: var(--accent);
  animation: hero-scroll-line 2.2s var(--ease-out) infinite;
}
@keyframes hero-scroll-line {
  0% { transform: translateY(-101%); }
  55%, 100% { transform: translateY(101%); }
}

html.motion .hero-flight .hero-kicker,
html.motion .hero-flight .hero-title > span,
html.motion .hero-flight .hero-deck,
html.motion .hero-flight .hero-actions,
html.motion .hero-flight .hero-signoff,
html.motion .hero-flight .hero-frame-label {
  opacity: 0; transform: translateY(1.2rem);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
html.motion .hero-flight.entered .hero-kicker { opacity: 1; transform: none; transition-delay: 0.08s; }
html.motion .hero-flight.entered .hero-title > span { opacity: 1; transform: none; }
html.motion .hero-flight.entered .hero-title > span:nth-child(1) { transition-delay: 0.16s; }
html.motion .hero-flight.entered .hero-title > span:nth-child(2) { transition-delay: 0.24s; }
html.motion .hero-flight.entered .hero-title > span:nth-child(3) { transition-delay: 0.32s; }
html.motion .hero-flight.entered .hero-deck { opacity: 1; transform: none; transition-delay: 0.42s; }
html.motion .hero-flight.entered .hero-actions { opacity: 1; transform: none; transition-delay: 0.5s; }
html.motion .hero-flight.entered .hero-signoff,
html.motion .hero-flight.entered .hero-frame-label { opacity: 1; transform: none; transition-delay: 0.62s; }

/* ---------- scroll choreography: frame expands while the reel keeps playing ---------- */
html.hero-scroll-active .hero-wrap { height: 240vh; height: 240svh; }
html.hero-scroll-active .hero-wrap .hero-stage { position: sticky; top: 0; }
@media (min-width: 40.01rem) {
  html.hero-scroll-active .hero-wrap .hero-stage { min-height: 0; }
}
.hero-flight {
  --copy-opacity: 1;
  --copy-scale: 1;
  --line-1-x: 0px;
  --line-1-y: 0px;
  --line-2-x: 0px;
  --line-2-y: 0px;
  --line-3-x: 0px;
  --line-3-y: 0px;
  --reveal-opacity: 0;
  --reveal-y: 3rem;
  --reveal-scale: 0.94;
  --route-opacity: 1;
  --cue-opacity: 1;
  --frame-label-opacity: 1;
  --video-x: 0px;
  --video-y: 0px;
  --video-scale: 1.035;
}
.hero-flight .hero-copy {
  opacity: var(--copy-opacity);
  transform: scale(var(--copy-scale));
  transform-origin: 30% 55%;
  will-change: transform, opacity;
}
.hero-flight .hero-visual {
  will-change: clip-path;
}
.hero-flight .hero-visual video {
  transform: translate3d(var(--video-x), var(--video-y), 0) scale(var(--video-scale));
  will-change: transform;
}
html.motion .hero-flight.scroll-ready .hero-copy,
html.motion .hero-flight.scroll-ready .hero-title > span,
html.motion .hero-flight.scroll-ready .hero-frame-label {
  transition: none;
}
/* hero title: clear line-by-line rise on load */
html.motion .hero-flight .hero-title > span {
  opacity: 0;
  transform: translateY(0.9em);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
html.motion .hero-flight.entered .hero-title > span { opacity: 1; transform: none; }
html.motion .hero-flight.entered .hero-title > span:nth-child(1) { transition-delay: 0.18s; }
html.motion .hero-flight.entered .hero-title > span:nth-child(2) { transition-delay: 0.34s; }
html.motion .hero-flight.entered .hero-title > span:nth-child(3) { transition-delay: 0.50s; }
html.motion .hero-flight.entered .hero-frame-label {
  opacity: var(--frame-label-opacity);
}
.hero-flight .flight-route {
  opacity: var(--route-opacity);
  will-change: opacity;
}
.route-progress {
  stroke: #f0f3ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 4px rgba(47,255,228,0.92)) drop-shadow(0 0 12px rgba(47,255,228,0.62));
}
.hero-reveal {
  position: absolute; inset: 0; z-index: 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  text-align: center; pointer-events: none;
  opacity: var(--reveal-opacity);
  transform: translate3d(0, var(--reveal-y), 0) scale(var(--reveal-scale));
  will-change: transform, opacity;
}
.hero-reveal-kicker {
  margin-bottom: 1.2rem;
  font-family: var(--font-mono); font-size: var(--size-mono);
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent);
}
.hero-reveal-title {
  font-variation-settings: "wdth" 120;
  font-stretch: 120%; font-weight: 880;
  font-size: clamp(3rem, 6.4vw, 6.35rem);
  line-height: 0.86; letter-spacing: -0.05em; text-transform: uppercase;
  text-shadow: 0 0 3rem rgba(3,11,18,0.9);
}
.hero-reveal-title span { display: block; }
.hero-reveal-title span:last-child {
  color: transparent; -webkit-text-stroke: 1.5px rgba(233,243,250,0.9);
}
.hero-reveal-copy {
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.5;
  color: rgba(233,243,250,0.78);
}
.hero-progress {
  position: absolute; z-index: 11;
  left: 50%; bottom: clamp(1rem, 2.4vh, 1.6rem); transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.12em;
  color: rgba(233,243,250,0.55);
  opacity: 0; transition: opacity 0.35s;
}
html.motion .hero-flight.entered .hero-progress { opacity: 1; }
.hero-progress i {
  display: block; position: relative; width: clamp(4rem, 8vw, 7rem); height: 1px;
  background: rgba(233,243,250,0.2); overflow: hidden;
}
.hero-progress b {
  display: block; width: 100%; height: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 8px var(--accent);
}
.hero-flight .hero-scroll { opacity: var(--cue-opacity); will-change: opacity; }

@media (max-width: 60rem) {
  .hero-flight { min-height: 45rem; }
  .hero-visual { width: 67vw; }
  .hero-copy { width: 88%; }
  .hero-title { font-size: clamp(2.7rem, 7.2vw, 4.45rem); }
  :lang(en) .hero-title { font-size: clamp(2.55rem, 6.8vw, 4.2rem); }
  .hero-signoff { display: none; }
  .route-pin-b { display: none; }
}

@media (max-width: 40rem) {
  .manifesto { min-height: 36rem; }
  .manifesto-line {
    left: 50%;
    font-size: clamp(2.8rem, 10vw, 4.2rem);
    line-height: 0.82;
  }
  .manifesto-line--top { top: 0.35rem; }
  .manifesto-line--bottom { bottom: 0.35rem; }
  .manifesto-center { padding: 9rem var(--gutter); }
  .manifesto-center p { font-size: 1.35rem; }
  html.hero-scroll-active .hero-wrap { height: 280vh; height: 280svh; }
  .hero-flight {
    height: max(100svh, 46rem); min-height: 46rem;
    align-items: flex-end;
  }
  .hero-flight::before { opacity: 0.35; mask-image: none; }
  .hero-visual {
    inset: 0; width: 100%; clip-path: none;
  }
  .hero-visual::before {
    background:
      linear-gradient(180deg, rgba(3,11,18,0.34) 0%, rgba(3,11,18,0.05) 28%, rgba(3,11,18,0.88) 72%, #030b12 100%),
      linear-gradient(90deg, rgba(3,11,18,0.35), transparent 74%);
  }
  .hero-visual::after { clip-path: none; border: 0; }
  .hero-visual video { object-position: 54% center; filter: saturate(0.78) contrast(1.08) brightness(0.72); }
  .hero-frame-label {
    inset: calc(var(--header-h) + 1rem) var(--gutter) auto;
    font-size: 0.54rem;
  }
  .hero-flight .hero-content {
    align-items: flex-end;
    padding: calc(var(--header-h) + 4rem) 0 3.3rem;
  }
  .hero-copy { width: 100%; }
  .hero-kicker { margin-bottom: 1rem; font-size: 0.56rem; letter-spacing: 0.12em; }
  .hero-title,
  :lang(en) .hero-title {
    max-width: none; font-size: clamp(2.65rem, 11.8vw, 4rem);
    line-height: 0.91;
  }
  :lang(en) .hero-title { font-size: clamp(2.45rem, 10.7vw, 3.75rem); }
  .hero-title > span { white-space: normal; }
  .hero-deck { max-width: 31ch; margin-top: 1.25rem; font-size: 0.98rem; }
  .hero-actions { margin-top: 1.4rem; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
  .hero-actions .btn { padding: 0.82rem 1.15rem; }
  .hero-text-link { font-size: 0.62rem; }
  .hero-scroll { display: none; }
  .hero-progress { bottom: 0.75rem; }
  .hero-reveal { justify-content: center; padding-bottom: 4rem; }
  .hero-reveal-kicker { font-size: 0.55rem; margin-bottom: 0.9rem; }
  .hero-reveal-title { font-size: clamp(2.75rem, 12vw, 4.25rem); line-height: 0.89; }
  :lang(en) .hero-reveal-title { font-size: clamp(2.55rem, 10.8vw, 4rem); }
  .hero-reveal-copy { font-size: 0.95rem; }
  .flight-route { opacity: var(--route-opacity); }
  .route-pin { display: none; }
}

/* ============================================================
   INLINE "SHOW MORE" PANEL (homepage portfolio)
   ============================================================ */
/* desktop portfolio: vertical scroll drives a horizontal film reel */
@media (min-width: 60.01rem) {
  html.motion .portfolio-flight {
    --portfolio-x: 0px;
    height: var(--portfolio-height, 340vh);
    padding: 0;
    overflow: visible;
  }
  html.motion .portfolio-flight > .wrap {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: calc(var(--header-h) + clamp(1.25rem, 3vh, 2.25rem)) var(--gutter) clamp(2rem, 5vh, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
  }
  html.motion .portfolio-flight .scene-head {
    width: min(100%, 82rem);
    margin-inline: auto;
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
    flex: 0 0 auto;
  }
  html.motion .portfolio-flight .work-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    gap: clamp(1rem, 2.2vw, 2rem);
    transform: translate3d(var(--portfolio-x), 0, 0);
    will-change: transform;
  }
  html.motion .portfolio-flight .reel-row { display: contents; }
  html.motion .portfolio-flight .work-card {
    flex: 0 0 min(72vw, 64rem);
    height: min(58vh, 39rem);
    aspect-ratio: auto;
  }
  html.motion .portfolio-flight .work-card.full { flex-basis: min(78vw, 70rem); }
  html.motion .portfolio-flight .work-card.half { flex-basis: min(52vw, 46rem); }
  html.motion .portfolio-flight .work-card.tall { flex-basis: min(27vw, 23rem); }
  html.motion .portfolio-flight .more-panel,
  html.motion .portfolio-flight .more-toggle-wrap { display: none; }
  .portfolio-reel-progress {
    width: min(100%, 82rem);
    height: 2px;
    margin: clamp(1.2rem, 3vh, 2rem) auto 0;
    background: var(--line);
    overflow: hidden;
    flex: 0 0 auto;
  }
  .portfolio-reel-progress i {
    display: block; width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--accent), #b9c7cc);
    transform: scaleX(var(--portfolio-progress, 0));
    transform-origin: left;
    box-shadow: 0 0 1rem rgba(47,255,228,0.6);
  }
}

.more-panel {
  overflow: hidden;
  height: 0;
  opacity: 0; margin-top: 0;
  transition: height 0.8s var(--ease-out), opacity 0.6s var(--ease-out), margin-top 0.6s var(--ease-out);
}
.more-panel.open { height: auto; opacity: 1; margin-top: clamp(1rem, 2.5vw, 1.75rem); }
.more-toggle-wrap { display: flex; justify-content: center; }
.more-toggle-wrap.hidden { display: none; }

/* ---------- responsive: designed mobile, not shrunk ---------- */
@media (max-width: 60rem) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }

  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card.wide { grid-column: span 2; }
  .work-card.half { grid-column: span 2; }
  .work-card.full { grid-column: span 2; aspect-ratio: 16 / 9; }
  .work-card.tall { grid-column: span 1; aspect-ratio: 9 / 15; }

  /* keep the take HUD readable on phones */
  .vf-take .nm { display: none; }
  .reel-dots { bottom: 1.6rem; }
  .reel-dots button { width: 20px; }

  /* verticals become a swipeable reel strip */
  .reel-row {
    grid-column: span 2;
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reel-row::-webkit-scrollbar { display: none; }
  .reel-row .work-card.tall { flex: 0 0 min(64%, 17rem); scroll-snap-align: center; }

  .service-row {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }

  .mco-band .grid-2, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-hero .wrap { grid-template-columns: 1fr; }
  .about-hero-copy { padding-bottom: 0; }
  .about-portrait { width: min(100%, 32rem); }
  .process { grid-template-columns: 1fr 1fr; }
  .milestone { grid-template-columns: 1fr; gap: 0.4rem; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-inline-start: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-inline-start: 1px solid var(--line); }

  .vf-row { padding-inline: 1.6rem; font-size: 0.6rem; }
  .vf-row .hide-m { display: none; }

  .scene-head { flex-wrap: wrap; gap: 0.6rem 1.25rem; }
  .scene-head .scene-link { width: 100%; }
}

@media (max-width: 26rem) {
  .brand .brand-sub { font-size: 0.5rem; letter-spacing: 0.1em; }
  .brand .brand-name { font-size: 0.82rem; }
  .brand-mark { height: 22px; }
}

@media (max-width: 40rem) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .work-card.tall { grid-column: span 1; }
  .process { grid-template-columns: 1fr; }
  .hero-sub { flex-direction: column; align-items: flex-start; }
  .cta-final .btn-row { flex-direction: column; align-items: stretch; }
  .cta-final .btn { justify-content: center; }
  .cta-final .btn:not(.primary) { align-self: flex-start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .timeline .track, .logo-track { animation: none; }
  /* pin + shatter are opt-in via html.motion, which JS won't add under reduced motion */
  html.motion .logo-track {
    animation: logo-track-right 24s linear infinite !important;
  }
}

/* ============================================================
   PREMIUM LAYER — gold lux borders · shimmer · cursor · grain
   ============================================================ */
:root {
  /* premium accent gradient — brand teal (was gold; kept var names to avoid churn) */
  --gold-1: #0e3b37;
  --gold-2: #2fffe4;
  --gold-3: #eafffb;
}
@property --ga { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ga-spin { to { --ga: 360deg; } }

/* rotating gold gradient border (a card/frame) */
.lux-frame {
  position: relative;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ga),
      var(--gold-1) 0%, var(--gold-2) 16%, var(--gold-3) 25%, var(--gold-2) 34%,
      var(--gold-1) 50%, var(--gold-2) 66%, var(--gold-3) 75%, var(--gold-2) 84%, var(--gold-1) 100%) border-box;
  animation: ga-spin 6s linear infinite;
}

/* small gold-bordered icon tile */
.lux-icon {
  width: 3rem; height: 3rem; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 2px solid transparent; border-radius: 13px;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    conic-gradient(from var(--ga),
      var(--gold-1), var(--gold-2) 25%, var(--gold-3) 40%, var(--gold-2) 60%, var(--gold-1)) border-box;
  animation: ga-spin 7s linear infinite;
  color: var(--accent);
}
.lux-icon svg { width: 1.4rem; height: 1.4rem; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* gold text shimmer sweep */
.shimmer {
  background-image: linear-gradient(100deg,
    currentColor 0%, currentColor 40%, var(--gold-3) 50%, currentColor 60%, currentColor 100%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-sweep 5s ease-in-out infinite;
}
@keyframes shimmer-sweep { 0% { background-position: 165% 0; } 55%, 100% { background-position: -65% 0; } }

/* accent-tinted shimmer (keeps the teal, sweeps a bright highlight) */
.shimmer-accent {
  background-image: linear-gradient(100deg,
    currentColor 0%, currentColor 42%, #eafffb 50%, currentColor 58%, currentColor 100%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-sweep 4.2s ease-in-out infinite 1.2s;
}

/* hero copy stacks full-width on phones (video goes full-bleed there) */
@media (max-width: 40rem) {
  .hero-copy { width: 100%; margin-left: 0; }
  .hero-flight .hero-layout { padding-inline: var(--gutter); }
}

/* hero headline rotator — the accent line cycles through words */
.hero-rotator { display: inline-block; overflow: hidden; padding-bottom: 0.08em; vertical-align: bottom; }
.hero-rotator .rot-word {
  display: inline-block; will-change: transform, opacity;
  transition: transform 0.8s var(--ease-out), opacity 0.8s ease;
}
.hero-rotator .rot-word.is-out { transform: translateY(-0.32em); opacity: 0; }
.hero-rotator .rot-word.is-pre { transform: translateY(0.32em); opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-rotator .rot-word { transition: none; }
}

/* framed buttons — outline buttons get an animated teal border on hover */
.btn:not(.primary):hover {
  border-color: transparent;
  color: var(--text);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(from var(--ga),
      var(--gold-1) 0%, var(--gold-2) 18%, var(--gold-3) 26%, var(--gold-2) 34%,
      var(--gold-1) 50%, var(--gold-2) 66%, var(--gold-3) 74%, var(--gold-2) 82%, var(--gold-1) 100%) border-box;
  animation: ga-spin 6s linear infinite;
}
.btn:not(.primary):hover::before { display: none; }
@media (prefers-reduced-motion: reduce) { .btn:not(.primary):hover { animation: none; } }

/* homepage selected works — compact 2-row grid of smaller thumbnails */
.work-grid.mini-grid { grid-template-columns: repeat(4, 1fr); gap: clamp(0.55rem, 1vw, 0.95rem); }
.work-card.mini { grid-column: auto; aspect-ratio: 16 / 10; border-radius: 7px; }
.work-card.mini .meta { padding: 0.7rem 0.8rem; gap: 0.15rem; }
.work-card.mini .meta .title { font-size: clamp(0.92rem, 1.25vw, 1.1rem); }
.work-card.mini .meta .cat { font-size: 0.58rem; letter-spacing: 0.12em; }
@media (max-width: 60rem) { .work-grid.mini-grid { grid-template-columns: repeat(2, 1fr); } }

/* contact channels — teal inner glow on hover */
.channel { transition: border-color .35s, background .35s, transform .4s var(--ease-out), box-shadow .35s; }
.channel:hover { box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 34px -12px rgba(47,255,228,0.55); }
.channel .arrow { transition: transform .35s var(--ease-out); }
.channel:hover .arrow { transform: translate(3px,-3px); }

/* portfolio filters — teal glow on the active chip */
.filter-btn { transition: color .3s, border-color .3s, background .3s, box-shadow .3s; }
.filter-btn[aria-pressed="true"] { box-shadow: 0 0 22px -6px rgba(47,255,228,0.6); }
@media (prefers-reduced-motion: reduce) {
  .shimmer-accent { animation: none; -webkit-text-fill-color: currentColor; background: none; }
}

/* film grain overlay (JS-injected) */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* custom cursor (JS-injected; fine pointers only) */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 600; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(47, 255, 228, 0.55);
  transition: width .25s var(--ease-out), height .25s var(--ease-out),
              background .25s, border-color .25s, opacity .25s;
}
.cursor-ring.is-hover {
  width: 60px; height: 60px;
  background: rgba(47, 255, 228, 0.07);
  border-color: var(--gold-3);
}
.cursor-ring.is-down { width: 26px; height: 26px; }
body.cursor-on,
body.cursor-on a,
body.cursor-on button,
body.cursor-on .work-card,
body.cursor-on .filter-btn { cursor: none; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lux-frame, .lux-icon { animation: none; }
  .shimmer { animation: none; -webkit-text-fill-color: currentColor; background: none; }
  .cursor-dot, .cursor-ring, .grain { display: none; }
}

/* ---------- services grid with gold icon tiles ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}
.svc, .svc-feature {
  display: flex; flex-direction: column; gap: 0.95rem;
  padding: clamp(1.4rem, 2vw, 1.9rem);
}
.svc {
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.35s, transform 0.5s var(--ease-out), background 0.35s;
}
.svc:hover {
  transform: translateY(-5px);
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ga),
      var(--gold-1) 0%, var(--gold-2) 16%, var(--gold-3) 25%, var(--gold-2) 34%,
      var(--gold-1) 50%, var(--gold-2) 66%, var(--gold-3) 75%, var(--gold-2) 84%, var(--gold-1) 100%) border-box;
  animation: ga-spin 6s linear infinite;
}
.svc h3, .svc-feature h3 {
  font-variation-settings: "wdth" 116; font-stretch: 116%;
  font-weight: 780; font-size: 1.15rem; text-transform: uppercase; letter-spacing: -0.01em;
}
.svc p, .svc-feature p { color: var(--muted); font-size: var(--size-small); }
.svc-feature { min-height: 100%; }
.svc-feature .feat-badge {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-3); border: 1px solid rgba(199,160,60,0.5); border-radius: 999px;
  padding: 0.25rem 0.6rem;
}
.svc-feature h3 { color: var(--gold-3); }
@media (max-width: 40rem) { .svc-grid { grid-template-columns: 1fr; } }
