/* ============================================================
   MYZE — NEW SITE
   Two-tone editorial. Cream + charcoal, ember accent, navy depth.
   ============================================================ */

:root {
  /* —— brand palette (4 colors) —— */
  --cream:    #F0EADF;
  --charcoal: #222426;
  --navy:     #2C3B4D;
  --ember:    #E8743B;

  /* tonal helpers derived from the four */
  --cream-2:    #E6DECE;   /* deeper cream — cards / surfaces on light */
  --cream-3:    #D8CDB8;   /* deepest cream — wells / dividers */
  --charcoal-2: #2A2D30;
  --charcoal-3: #32363A;
  --navy-2:     #243140;

  /* rgba bases for overlays + glows */
  --accent-rgb:   232, 116, 59;
  --charcoal-rgb: 34, 36, 38;

  /* —— semantic vars (default = dark; used by nav, body, footer) —— */
  --bg:      var(--charcoal);
  --bg-2:    var(--charcoal-2);
  --bg-3:    var(--charcoal-3);
  --ink:     #F4EFE6;
  --muted:   #9A958B;
  --line:    rgba(244, 239, 230, 0.12);
  --accent:  var(--ember);
  --accent-ink: #2A1A0E;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

/* —— section themes: each section re-points the semantic vars,
      so every component recolors itself automatically —— */
.t-light {
  --bg: var(--cream); --bg-2: var(--cream-2); --bg-3: var(--cream-3);
  --ink: var(--charcoal); --muted: #6E685C;
  --line: rgba(34, 36, 38, 0.14);
  --ghost: #D8CDB8;
  background: var(--bg); color: var(--ink);
}
.t-dark {
  --bg: var(--charcoal); --bg-2: var(--charcoal-2); --bg-3: var(--charcoal-3);
  --ink: #F4EFE6; --muted: #9A958B;
  --line: rgba(244, 239, 230, 0.12);
  --ghost: #2E3236;
  background: var(--bg); color: var(--ink);
}
.t-navy {
  --bg: var(--navy); --bg-2: var(--navy-2); --bg-3: #2E3D4F;
  --ink: #EDF0F3; --muted: #93A2B2;
  --line: rgba(237, 240, 243, 0.14);
  --ghost: #34465B;
  background: var(--bg); color: var(--ink);
}
.t-ember {
  --bg: var(--ember); --bg-2: var(--ember); --bg-3: var(--ember);
  --ink: #2A1408; --muted: #6E3A1E;
  --line: rgba(42, 20, 8, 0.18);
  --accent: #2A1408; --accent-ink: var(--ember);
  background: var(--bg); color: var(--ink);
}

/* —— giant tonal section numeral (poster "09" device) —— */
.has-fig { position: relative; overflow: hidden; }
.has-fig > * { position: relative; z-index: 1; }
.ghost-num {
  position: absolute; z-index: 0; bottom: -0.16em; right: 3vw;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(220px, 36vw, 540px); line-height: 0.7;
  letter-spacing: -0.05em; color: var(--ghost);
  pointer-events: none; user-select: none;
}
@media (max-width: 720px) {
  .ghost-num { right: 50%; transform: translateX(50%); bottom: -0.1em; opacity: 0.85; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.container { width: min(1440px, 100% - 64px); margin-inline: auto; }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 8px; height: 8px; background: var(--accent); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s;
}
body.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--accent);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 32px;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(var(--charcoal-rgb), 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: 0.02em;
}
.nav-logo sup { color: var(--accent); font-size: 11px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1); transform-origin: left;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  border: none; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  will-change: transform;
}
.btn:hover { box-shadow: 0 0 42px rgba(var(--accent-rgb), 0.35); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }

.nav-burger { display: none; background: none; border: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-burger span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 24px) 32px 0;
  overflow: hidden;
}
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video-wrap video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05);
}
.hero-video-wrap::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--charcoal-rgb),0.8) 0%, rgba(var(--charcoal-rgb),0.45) 40%, rgba(var(--charcoal-rgb),0.25) 72%, rgba(var(--charcoal-rgb),0.5) 100%),
    linear-gradient(180deg, rgba(var(--charcoal-rgb),0.55) 0%, rgba(var(--charcoal-rgb),0.35) 45%, rgba(var(--charcoal-rgb),0.6) 70%, rgba(var(--charcoal-rgb),0.95) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: 40px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px; font-weight: 600;
}
.hero-kicker::before {
  content: ''; width: 40px; height: 1px; background: var(--accent);
}
.hero h1 {
  font-size: clamp(52px, 9.2vw, 148px);
  max-width: 14ch;
  text-shadow: 0 2px 60px rgba(var(--charcoal-rgb), 0.7), 0 1px 12px rgba(var(--charcoal-rgb), 0.55);
}
.hero-content .hero-sub { text-shadow: 0 1px 24px rgba(var(--charcoal-rgb), 0.8); }
.hero h1 .accent { color: var(--accent); }
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.hero-line { display: block; }
.hero-line > span { display: block; animation: hero-rise 0.9s var(--ease) both; }
.hero-line:nth-child(1) > span { animation-delay: 0.15s; }
.hero-line:nth-child(2) > span { animation-delay: 0.3s; }
.hero-line:nth-child(3) > span { animation-delay: 0.45s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}
.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-top: 48px; flex-wrap: wrap;
}
.hero-sub { max-width: 420px; color: var(--muted); font-size: 17px; }
.hero-cta { display: flex; gap: 16px; align-items: center; }
.hero-scroll {
  position: absolute; right: 36px; bottom: 130px; z-index: 2;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
  animation: drift 2.4s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translateY(10px); } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: 56px; padding-block: 18px;
  overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  -webkit-animation: marquee 38s linear infinite;
  animation: marquee 38s linear infinite;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 56px;
}
.marquee-track span::after { content: '✦'; color: var(--accent); font-size: 14px; }
@-webkit-keyframes marquee {
  from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  to   { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}
@keyframes marquee {
  from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  to   { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}

/* ---------- sections ---------- */
section { padding-block: clamp(90px, 12vw, 160px); position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 6vw, 88px); flex-wrap: wrap; }
.section-tag {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; display: block; margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(40px, 5.6vw, 88px); }
.section-head p { max-width: 380px; color: var(--muted); }

/* ---------- thesis ---------- */
.thesis { border-bottom: 1px solid var(--line); }
.thesis-headline {
  font-size: clamp(36px, 4.8vw, 72px);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.thesis-headline .accent { color: var(--accent); }
.thesis-body {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

/* ---------- service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  position: relative; border: 1px solid var(--line); border-radius: 20px;
  padding: 44px 36px 36px; min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bg-2); overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transition: border-color 0.4s;
}
.svc-card:hover { border-color: rgba(var(--accent-rgb), 0.55); }
.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%),
              rgba(var(--accent-rgb), 0.1), transparent 42%);
  opacity: 0; transition: opacity 0.4s;
}
.svc-card:hover::before { opacity: 1; }
.svc-num {
  position: absolute; top: 32px; right: 36px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--muted); transition: color 0.3s;
}
.svc-card:hover .svc-num { color: var(--accent); }
/* cinematic duotone still */
.svc-media {
  position: absolute; top: 0; left: 0; width: 100%; height: 264px;
  overflow: hidden; border-radius: 20px 20px 0 0; pointer-events: none;
}
.svc-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: transform 0.7s var(--ease);
}
.svc-card:hover .svc-media img,
.svc-card.in-view .svc-media img { transform: scale(1.06); }
.svc-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(232,116,59,0.58) 0%, rgba(27,38,50,0.92) 88%);
  mix-blend-mode: multiply;
}
.svc-media::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 42%, var(--bg-2) 99%);
}
.svc-card h3 { font-size: 30px; margin-bottom: 14px; }
.svc-card p { color: var(--muted); font-size: 15px; }
.svc-link {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.svc-link svg { transition: transform 0.3s var(--ease); }
.svc-card:hover .svc-link svg { transform: translateX(6px); }

/* ---------- industries hover list ---------- */
.industries { background: var(--bg-2); border-block: 1px solid var(--line); }
.ind-list { max-width: 1120px; }
.ind-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 40px; padding: clamp(22px, 2.6vw, 34px) 8px;
  border-bottom: 1px solid var(--line);
  position: relative; transition: padding 0.4s var(--ease);
}
.ind-row:first-of-type { border-top: 1px solid var(--line); }
.ind-row:hover { padding-left: 28px; }
.ind-row h3 {
  font-size: clamp(32px, 5vw, 68px);
  color: var(--muted);
  transition: color 0.35s; line-height: 1.04;
}
.ind-row:hover h3 { color: var(--ink); }
.ind-row .ind-tag { color: var(--muted); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.ind-row:hover .ind-tag { color: var(--accent); }
.ind-capstone {
  margin-top: clamp(28px, 4vw, 48px); max-width: 720px;
  font-size: clamp(18px, 2vw, 24px); line-height: 1.5; color: var(--muted);
}
.ind-capstone .accent { color: var(--accent); }
.ind-preview {
  position: fixed; z-index: 50; width: 320px; aspect-ratio: 16/10;
  border-radius: 14px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: scale(0.85) rotate(-3deg);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: var(--bg-3);
}
.ind-preview.on { opacity: 1; transform: scale(1) rotate(0deg); }
.ind-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-3); cursor: pointer;
  border: 1px solid var(--line);
}
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s;
  filter: saturate(0.85);
}
.work-card:hover img { transform: scale(1.07); filter: saturate(1.1); }
.work-card-info {
  position: absolute; inset: auto 0 0 0; padding: 22px;
  background: linear-gradient(transparent, rgba(var(--charcoal-rgb), 0.9));
  transform: translateY(8px); opacity: 0.85;
  transition: 0.4s var(--ease);
}
.work-card:hover .work-card-info { transform: translateY(0); opacity: 1; }
.work-card-info .tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.work-card-info h3 { font-size: 22px; margin-top: 6px; }
.work-card-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.6);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.95); color: #fff;
  display: grid; place-items: center; opacity: 0;
  transition: 0.35s var(--ease);
}
.work-card:hover .work-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(var(--charcoal-rgb), 0.97); backdrop-filter: blur(10px);
  padding: 0;
}
.lightbox.open { display: flex; }
.lightbox-frame { width: 100%; height: 100%; overflow: hidden; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute; top: 28px; right: 32px;
  background: none; border: none; color: var(--ink); font-size: 36px; line-height: 1;
}

/* ---------- before / after ---------- */
.ba-grid { display: grid; gap: 80px; }
.ba-case { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.ba-case:nth-child(even) { grid-template-columns: 1.4fr 1fr; }
.ba-case:nth-child(even) .ba-text { order: 2; }
.ba-text .tag { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.ba-text h3 { font-size: clamp(28px, 3vw, 44px); margin: 16px 0 18px; white-space: pre-line; }
.ba-text p { color: var(--muted); font-size: 15px; }
.ba-slider {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16/10; user-select: none;
  cursor: ew-resize; background: var(--bg-3);
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px;
  background: var(--accent); pointer-events: none;
}
.ba-handle::after {
  content: '↔'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
}
.ba-label {
  position: absolute; top: 16px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(var(--charcoal-rgb), 0.7); color: #F4EFE6;
}
.ba-label.before { left: 16px; }
.ba-label.after { right: 16px; color: var(--accent); }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  border: 1px solid var(--line); border-radius: 18px; padding: 36px 28px;
  background: var(--bg-2); transition: transform 0.4s var(--ease), border-color 0.4s;
}
.step:hover { transform: translateY(-10px); border-color: rgba(var(--accent-rgb), 0.5); }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--accent); display: block; margin-bottom: 56px;
}
.step h3 { font-size: 24px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- big CTA ---------- */
.cta { text-align: center; overflow: hidden; }
.cta h2 { font-size: clamp(48px, 8.4vw, 132px); }
.cta h2 .accent { color: var(--accent); }
.cta p { color: var(--muted); margin: 26px auto 40px; max-width: 440px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 32px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-inner .copy { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(70px, 9vw, 130px)) 0 clamp(50px, 6vw, 90px);
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(48px, 8vw, 120px); }
.page-hero p { color: var(--muted); max-width: 480px; margin-top: 26px; font-size: 17px; }
#page-3d { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-info h3 { font-size: 26px; margin-bottom: 10px; }
.contact-lead { color: var(--muted); font-size: 16px; max-width: 360px; }
.contact-info a.big {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.8vw, 38px); color: var(--accent);
  letter-spacing: -0.01em;
}
.form-status { font-size: 14px; color: var(--muted); margin-top: 4px; min-height: 1em; }
.form-status.error { color: #c0533a; }

.form-success {
  text-align: center;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 20px;
  background: rgba(var(--accent-rgb), 0.06);
  animation: form-success-in 0.5s var(--ease) backwards;
}
.form-success-check {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 34px; line-height: 1;
}
.form-success h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 36ch; margin: 0 auto; line-height: 1.55; }
@keyframes form-success-in { from { opacity: 0; transform: translateY(16px); } }
.contact-list { margin-top: 48px; display: grid; gap: 28px; }
.contact-list .item { border-top: 1px solid var(--line); padding-top: 20px; }
.contact-list .item span { color: var(--muted); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.form { display: grid; gap: 22px; }
.form label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.form input, .form textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; color: var(--ink);
  font: inherit; transition: border-color 0.3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- stacked sections: each block pins, the next slides over it ----------
   --stack-top is set per-section by main.js: 0 for blocks shorter than the
   viewport, negative for taller ones so their full content scrolls into view
   before they pin. */
.stack-sec { position: sticky; top: var(--stack-top, 0px); z-index: 1; }
.stack-sec ~ .stack-sec {
  border-radius: clamp(18px, 2.6vw, 30px) clamp(18px, 2.6vw, 30px) 0 0;
  box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.28);
}

/* ---------- reveal ---------- */
/* reveal is pure CSS driven by .in-view (IntersectionObserver in main.js) —
   GSAP tweens kept freezing mid-flight on heavy pages; CSS can't get stuck */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- headline line-rise reveal (set up by main.js) ---------- */
.line-split .line { display: block; overflow: hidden; }
.line-split .line > span { display: block; transform: translateY(112%); }
@media (prefers-reduced-motion: reduce) {
  .line-split .line > span { transform: none; }
}

/* ---------- CTA accent hover (fill ↔ outline swap) ---------- */
.cta h2 .accent { transition: color 0.4s var(--ease); }
.cta h2:hover .accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

/* ---------- floating work gallery (spiral / list) ---------- */
.gallery-hero {
  position: relative; height: 100svh; min-height: 640px;
  padding-top: var(--nav-h); overflow: hidden;
  background-image:
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 140px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 140px);
}
.view-toggle {
  position: absolute; top: calc(var(--nav-h) + 22px); left: 50%;
  transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 14px;
}
.view-toggle button {
  background: none; border: none; color: var(--muted);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; padding: 6px 2px; transition: color 0.3s;
}
.view-toggle button.on, .view-toggle button:hover { color: var(--accent); }
.view-toggle .dot { color: var(--muted); font-size: 10px; }
/* spiral is desktop-only — touch devices and small screens always get the list */
@media (hover: none), (pointer: coarse), (max-width: 720px) {
  .gallery-hero .view-toggle { display: none; }
  /* the tall films gallery must not join the sticky stack on mobile —
     a negative --stack-top pins it offscreen and hides most cards */
  .gallery-hero.stack-sec { position: static !important; top: auto !important; }
  .gallery-hero {
    height: auto; min-height: 0; overflow: visible;
    display: flex; flex-direction: column;
    padding-bottom: clamp(70px, 8vw, 120px);
  }
  .gallery-hero .cloud-wrap .cloud-spin,
  .gallery-hero .cloud-wrap .cloud-tilt { position: relative; inset: auto; transform: none !important; }
  .gallery-hero .cloud-wrap { position: relative; inset: auto; perspective: none; width: calc(100% - 40px); margin-inline: auto; }
  .gallery-hero .cloud-wrap .work-cloud { display: grid; grid-template-columns: 1fr; gap: 22px; }
  .gallery-hero .cloud-wrap .work-cloud .work-card {
    position: relative; left: auto; top: auto; width: auto;
    transform: none !important; filter: none !important; opacity: 1 !important;
  }
  .gallery-hero .gallery-title { order: 2; position: relative; inset: auto; padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); }
}
.cloud-spin, .cloud-tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  pointer-events: none; /* containers must not swallow clicks meant for cards behind their plane */
}
.cloud-wrap { position: absolute; inset: 0; perspective: 1400px; z-index: 10; pointer-events: none; }
.work-cloud .work-card { pointer-events: auto; }
.gallery-hero:not(.as-list) .work-card-info { opacity: 0; transform: translateY(8px); }
.gallery-hero:not(.as-list) .work-card:hover .work-card-info { opacity: 1; transform: none; }
.work-cloud .work-card {
  position: absolute; left: 50%; top: 50%;
  width: clamp(150px, 20vw, 290px);
  backface-visibility: hidden;
  will-change: transform;
  animation: card-in 1s var(--ease) backwards;
}
@keyframes card-in { from { opacity: 0; } }
.work-cloud .work-card:nth-child(2) { animation-delay: 0.07s; }
.work-cloud .work-card:nth-child(3) { animation-delay: 0.14s; }
.work-cloud .work-card:nth-child(4) { animation-delay: 0.21s; }
.work-cloud .work-card:nth-child(5) { animation-delay: 0.28s; }
.work-cloud .work-card:nth-child(6) { animation-delay: 0.35s; }
.work-cloud .work-card:nth-child(7) { animation-delay: 0.42s; }
.work-cloud .work-card:nth-child(8) { animation-delay: 0.49s; }
.work-cloud .work-card:nth-child(9) { animation-delay: 0.56s; }
.work-cloud .work-card:nth-child(10) { animation-delay: 0.63s; }
.gallery-title {
  position: absolute; inset: auto 0 4vh 0; z-index: 1;
  text-align: center; pointer-events: none;
}
.gallery-title .g-kicker {
  display: block; font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.gallery-title h1 {
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92; color: var(--ink);
}
.gallery-title h1 .accent { color: var(--accent); }
/* list mode */
.gallery-hero.as-list {
  height: auto; min-height: 0; overflow: visible;
  display: flex; flex-direction: column;
  padding-top: 96px; /* clear the fixed 76px nav */
  padding-bottom: clamp(70px, 8vw, 120px);
}
/* in list mode the gallery must leave the sticky stack — otherwise its
   negative --stack-top pulls the grid offscreen (same bug as on mobile) */
.gallery-hero.as-list.stack-sec { position: static !important; top: auto !important; }
.as-list .view-toggle { position: static; transform: none; order: 1; margin: 26px auto 0; }
.as-list .gallery-title { order: 2; position: relative; inset: auto; padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); }
.as-list .cloud-wrap { order: 3; }
.as-list .cloud-wrap { position: relative; inset: auto; perspective: none; width: min(1440px, 100% - 64px); margin-inline: auto; }
.as-list .cloud-spin, .as-list .cloud-tilt { position: relative; inset: auto; transform: none !important; }
.as-list .work-cloud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.as-list .work-cloud .work-card { position: relative; left: auto; top: auto; width: auto; transform: none !important; filter: none !important; order: 10; }
/* list view order — independent from the spiral DOM order */
.as-list .work-cloud .work-card[data-vimeo="1202869265"] { order: 1; } /* NYC Dentistry */
.as-list .work-cloud .work-card[data-vimeo="1179772667"] { order: 2; } /* Under Armour */
.as-list .work-cloud .work-card[data-vimeo="1202886038"] { order: 3; } /* DELANO Millwork */
.as-list .work-cloud .work-card[data-vimeo="1179769681"] { order: 4; } /* Judaica Creations */
.as-list .work-cloud .work-card[data-vimeo="1181245077"] { order: 5; } /* Bridal Designer Concept */
@media (max-width: 1024px) { .as-list .work-cloud { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .as-list .work-cloud { grid-template-columns: 1fr; }
  .as-list .cloud-wrap { width: calc(100% - 40px); }
}

/* ---------- touch devices: scroll-activated "hover" states ----------
   On phones there is no hover, so elements get .in-view as they pass
   through the middle of the screen and light up the same way. */
.svc-card.in-view { border-color: rgba(var(--accent-rgb), 0.55); }
.svc-card.in-view::before { opacity: 1; }
.svc-card.in-view .svc-num { color: var(--accent); }
.step.in-view { transform: translateY(-10px); border-color: rgba(var(--accent-rgb), 0.5); }
.ind-row.in-view { padding-left: 28px; }
.ind-row.in-view h3 { color: var(--ink); }
.ind-row.in-view .ind-tag { color: var(--accent); }
.work-card.in-view img { transform: scale(1.07); filter: saturate(1.1); }
.work-card.in-view .work-card-info { transform: translateY(0); opacity: 1; }
.work-card.in-view .work-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.stat.in-view { background: var(--bg-3); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  /* card must fit the still above the text without overlap */
  .svc-card { min-height: 480px; }
  .svc-media { height: 230px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-case, .ba-case:nth-child(even) { grid-template-columns: 1fr; }
  .ba-case:nth-child(even) .ba-text { order: 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
/* burger menu kicks in while the 6 nav items + button still have room —
   below this they cramp, wrap and collide with the logo */
@media (max-width: 1080px) {
  .nav .btn { display: none; }
  /* keep logo + burger above the overlay (which sits inside .nav) */
  .nav-logo { position: relative; z-index: 95; }
  .nav-burger { display: flex; position: relative; z-index: 95; }

  /* When open, strip the nav's backdrop-filter/background. A backdrop-filter
     turns .nav into the containing block for the fixed overlay, which pins the
     menu to the 76px nav strip once the page is scrolled. Removing it lets the
     overlay cover the full viewport at any scroll position. */
  body.menu-open .nav,
  body.menu-open .nav.scrolled {
    background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom-color: transparent;
  }

  /* full-screen overlay menu — items centred, like the old site */
  .nav-links {
    position: fixed; inset: 0; z-index: 90;
    flex-direction: column; justify-content: center; align-items: center;
    gap: clamp(22px, 4.4vh, 46px);
    background: rgba(var(--charcoal-rgb), 0.98);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(26px, 6.4vw, 38px); letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted);
    opacity: 0; transform: translateY(14px);
    transition: color 0.3s, opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active { color: var(--ink); }
  .nav-links.open a { opacity: 1; transform: none; }
  /* staggered reveal */
  .nav-links.open a:nth-child(1) { transition-delay: 0.06s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.10s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.14s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.18s; }
  .nav-links.open a:nth-child(5) { transition-delay: 0.22s; }
  .nav-links.open a:nth-child(6) { transition-delay: 0.26s; }

  /* burger morphs into an X when open */
  .nav-burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger.open span:last-child  { transform: translateY(-4px) rotate(-45deg); }

  body.menu-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 40px); }
  .nav { padding-inline: 20px; }
  .hero { padding-inline: 20px; }
  .hero-scroll { display: none; }
  /* ticker: same Safari-safe motion as desktop */
  .marquee-track span { font-size: 16px; gap: 36px; }
  .marquee-track { gap: 36px; }
  .work-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .ind-preview { display: none; }
  /* stack industry rows so long titles never collide with the tag */
  .ind-row { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 26px; }
}
/* ---------- brand direction: principles (cards) ---------- */
.principles-sec { padding-top: 0; }
.principles {
  list-style: none; display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}
.principle {
  grid-column: span 2;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.principle:hover { transform: translateY(-4px); border-color: var(--accent); }
/* last two cards share the second row edge-to-edge */
.principle:nth-child(4), .principle:nth-child(5) { grid-column: span 3; }
.principle-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 2.4vw, 36px); color: var(--accent); line-height: 1;
}
.principle h3 { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.12; }
.principle p { color: var(--muted); font-size: 15px; line-height: 1.65; }

@media (max-width: 1024px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principle, .principle:nth-child(4), .principle:nth-child(5) { grid-column: span 1; }
  .principle:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(4), .principle:nth-child(5) { grid-column: span 1; }
}

/* ---------- brand direction: session band ---------- */
.session-band { padding: 0; line-height: 0; background: var(--charcoal); }
.session-band img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; display: block; }

/* ---------- brand direction: hub diagram ---------- */
.brand-hub { margin: 0 auto clamp(36px, 5vw, 64px); max-width: 640px; }
.brand-hub svg { width: 100%; height: auto; display: block; border-radius: 24px; }

/* ---------- brand direction: the system ---------- */
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.sys-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 3vw, 44px); }
.sys-label { display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; }
.type-spec { display: flex; align-items: center; gap: 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.type-spec--body { border-bottom: none; }
.type-display { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 7vw, 92px); line-height: 0.9; color: var(--ink); }
.type-body-sample { font-family: var(--font-body); font-size: clamp(22px, 3vw, 34px); color: var(--ink); flex: 1; }
.type-meta { margin-left: auto; text-align: right; }
.type-meta strong { display: block; font-size: 15px; color: var(--ink); }
.type-meta span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.swatch {
  display: flex; align-items: flex-end; aspect-ratio: 3 / 2; border-radius: 12px;
  padding: 14px; color: var(--charcoal); border: 1px solid var(--line);
}
.swatch em { font-style: normal; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.sys-note { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 22px; }

/* ---------- brand direction: moodboard ---------- */
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.mood-tile { overflow: hidden; border-radius: 16px; aspect-ratio: 3 / 4; position: relative; background: var(--bg-3); }
.mood-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.03); transition: transform 0.7s var(--ease); }
.mood-tile:hover img { transform: scale(1.04); }
.mood-refs { text-align: center; margin-top: 28px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- brand direction: deliverables ---------- */
.incl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.incl { padding: clamp(24px, 3vw, 36px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; }
.incl-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent); letter-spacing: 0.1em; }
.incl h3 { font-size: 21px; margin: 14px 0 10px; }
.incl p { color: var(--muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 860px) {
  .system-grid { grid-template-columns: 1fr; }
  .mood-grid { grid-template-columns: 1fr 1fr; }
  .incl-grid { grid-template-columns: 1fr; }
}

/* ---------- insights: listing ---------- */
.ins-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
}
.ins-card { display: block; color: inherit; }
.ins-media {
  overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 10;
  margin-bottom: 22px; position: relative; background: var(--bg-3);
}
/* commercial still: clean and bright, just unified — no heavy moody grade */
.ins-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(1.04);
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.ins-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(232,116,59,0.14), rgba(27,38,50,0.18));
  mix-blend-mode: multiply; pointer-events: none;
}
.ins-card:hover .ins-media img { transform: scale(1.05); filter: saturate(1) contrast(1.04) brightness(1.04); }
.ins-meta {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.ins-meta .tag { color: var(--accent); font-weight: 600; }
.ins-card h3 { font-size: 24px; line-height: 1.15; margin-bottom: 10px; transition: color 0.3s; }
.ins-card:hover h3 { color: var(--accent); }
.ins-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- insights: article ---------- */
.article-hero .article-title { font-size: clamp(34px, 5vw, 72px); max-width: 18ch; }
.article-dek { font-size: 18px; }
.article-meta {
  display: flex; gap: 12px; margin-top: 24px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.article-meta .dot { color: var(--accent); }
.article-section { padding-top: clamp(48px, 6vw, 80px); }
.article-cover {
  overflow: hidden; border-radius: 20px; aspect-ratio: 21 / 9;
  margin-bottom: clamp(48px, 6vw, 80px); position: relative;
}
.article-cover img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(1.04);
}
.article-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(232,116,59,0.14), rgba(27,38,50,0.18));
  mix-blend-mode: multiply; pointer-events: none;
}
.article-body { max-width: 720px; margin-inline: auto; }
.article-body h2 {
  font-size: clamp(24px, 2.6vw, 34px); margin: clamp(36px, 4vw, 56px) 0 18px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 17px; line-height: 1.8; color: var(--ink); margin-bottom: 18px; }
.article-back { max-width: 720px; margin: clamp(40px, 5vw, 64px) auto 0; }

@media (max-width: 1024px) {
  .ins-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ins-grid { grid-template-columns: 1fr; }
  .article-cover { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track {
    -webkit-animation: marquee 38s linear infinite !important;
    animation: marquee 38s linear infinite !important;
  }
  .reveal { opacity: 1; transform: none; }
}
