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

:root {
  --color-void-black: #000000;
  --color-chrome-white: #f0f0f2;
  --color-titanium: #b8b8bd;
  --color-gunmetal: #4a4a4f;
  --color-umbra: #0a0a0c;
  --color-eclipse-red: #ff3c1a;
  --color-ember-crimson: #c41e00;
  --color-credit-gold: #d9b877;
  --color-parchment: #f2f0ea;
  --color-ash-grey: #9a9aa2;
  --color-steel-line: #2a2a2e;

  --font-display: 'Michroma', sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Inter', sans-serif;

  /* Motion */
  --ease-out-quint: cubic-bezier(.23, 1, .32, 1);
  --ease-out-cubic: cubic-bezier(.33, 1, .68, 1);
  --ease-in-out-cubic: cubic-bezier(.645, .045, .355, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-void-black);
  color: var(--color-parchment);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- shared brand elements ---------- */

.chrome-text {
  background: linear-gradient(
    180deg,
    var(--color-chrome-white) 0%,
    var(--color-titanium) 42%,
    var(--color-gunmetal) 62%,
    var(--color-titanium) 78%,
    var(--color-chrome-white) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.6)) drop-shadow(0 -1px 0 rgba(255,255,255,0.15));
}

/* Shimmer sweep lives on the hero wordmark only, as a translateX-only overlay —
   never animate background-position on a background-clip:text element, it
   forces a full repaint of the clipped glyphs every frame and is what caused
   the mobile flicker. transform + mix-blend-mode is compositor-only. */
.wordmark {
  position: relative;
  isolation: isolate;
}
.wordmark::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,0.55) 50%, transparent 58%);
  mix-blend-mode: overlay;
  transform: translateX(-60%);
  animation: shimmerSweep 6.5s ease-in-out infinite;
  animation-delay: 2s;
  pointer-events: none;
  will-change: transform;
}
@keyframes shimmerSweep {
  0%, 8%  { transform: translateX(-60%); }
  55%     { transform: translateX(60%); }
  100%    { transform: translateX(60%); }
}

.eclipse {
  position: relative;
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #000000 0%,
    #000000 34%,
    var(--color-eclipse-red) 46%,
    var(--color-ember-crimson) 62%,
    rgba(196,30,0,0) 78%
  );
  box-shadow:
    0 0 40px 6px rgba(255,60,26,0.5),
    0 0 90px 20px rgba(196,30,0,0.28);
  vertical-align: -0.08em;
  transform: translateZ(0);
}

.eclipse::after {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,60,26,0.55) 0%, rgba(196,30,0,0.18) 45%, transparent 72%);
  opacity: 0.5;
  animation: eclipsePulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes eclipsePulse {
  0%, 100% { opacity: 0.35; transform: scale(0.94); }
  50%      { opacity: 0.85; transform: scale(1.08); }
}

/* ---------- the Anomaly moment ----------
   A brief, rare signal-interference glitch on the hero wordmark — the studio's
   own promise ("the moment the pattern breaks") made literal. Triggered by JS
   every ~12-18s for ~320ms, then the chrome settles back to pristine. Skipped
   entirely under prefers-reduced-motion. */
.wordmark.anomaly-glitch .chrome-text {
  animation: anomalyGlitch 0.32s steps(1, end);
}
.wordmark.anomaly-glitch .eclipse {
  animation: eclipseFlash 0.32s ease;
}
@keyframes anomalyGlitch {
  0%, 100% { transform: translate(0, 0); text-shadow: none; clip-path: none; }
  10% { transform: translate(-2px, 1px); text-shadow: 2px 0 var(--color-eclipse-red), -2px 0 rgba(80,210,255,0.65); clip-path: inset(10% 0 65% 0); }
  22% { transform: translate(2px, 0); text-shadow: -3px 0 var(--color-eclipse-red), 3px 0 rgba(80,210,255,0.65); clip-path: inset(55% 0 15% 0); }
  34% { transform: translate(-1px, -1px); text-shadow: 2px 0 var(--color-eclipse-red), -2px 0 rgba(80,210,255,0.5); clip-path: inset(30% 0 40% 0); }
  46% { transform: translate(0, 0); text-shadow: none; clip-path: none; }
}
@keyframes eclipseFlash {
  0%, 100% { filter: none; }
  20%, 40% { filter: brightness(1.9) saturate(1.4); }
}

.underglow {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 3px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(255,60,26,0) 0%, rgba(255,60,26,0.9) 50%, rgba(255,60,26,0) 100%);
  box-shadow: 0 0 24px 4px rgba(255,60,26,0.55);
  transform: scaleX(0);
  transform-origin: center;
  animation: underglowDraw 1.1s var(--ease-out-quint) 0.5s forwards;
}

@keyframes underglowDraw {
  to { transform: scaleX(1); }
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-parchment);
}

.credit-line {
  font-family: var(--font-serif);
  font-size: clamp(14px, 2vw, 22px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.credit-line .label { font-weight: 400; color: var(--color-parchment); }
.credit-line .name { font-weight: 600; color: var(--color-credit-gold); }

.ghost-btn {
  display: inline-block;
  padding: 16px 32px;
  min-height: 48px;
  border: 1px solid var(--color-parchment);
  border-radius: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-parchment);
  background: transparent;
  transition: border-color 0.25s var(--ease-out-cubic),
              color 0.25s var(--ease-out-cubic),
              box-shadow 0.25s var(--ease-out-cubic),
              transform 0.2s var(--ease-out-cubic);
  cursor: pointer;
}
.ghost-btn:hover, .ghost-btn:focus-visible {
  border-color: var(--color-eclipse-red);
  color: var(--color-eclipse-red);
  box-shadow: 0 0 28px 3px rgba(255,60,26,0.4);
  transform: translateY(-2px);
}
.ghost-btn:active { transform: translateY(0) scale(0.98); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--color-steel-line);
  background: rgba(0,0,0,0.92);
}
.nav-progress {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-eclipse-red), var(--color-ember-crimson));
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 12px 1px rgba(255,60,26,0.6);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-word {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  z-index: 2;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-ash-grey);
  transition: color 0.2s ease;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%; bottom: -1px;
  height: 1px;
  background: var(--color-eclipse-red);
  transition: left 0.25s var(--ease-out-cubic), right 0.25s var(--ease-out-cubic);
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-parchment); }
.nav-links a:hover::after,
.nav-links a.active::after { left: 0; right: 0; }

/* mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  position: relative;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.nav-toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 1px;
  background: var(--color-parchment);
  transition: transform 0.3s var(--ease-in-out-cubic), opacity 0.2s ease, top 0.3s var(--ease-in-out-cubic);
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.nav-toggle.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

.nav-mobile-panel {
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: rgba(0,0,0,0.97);
  border-bottom: 1px solid var(--color-steel-line);
  display: flex;
  flex-direction: column;
  padding: 8px 32px 24px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out-cubic), opacity 0.25s ease, visibility 0s linear 0.3s;
  z-index: 99;
}
.nav-mobile-panel.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.3s var(--ease-out-cubic), opacity 0.25s ease, visibility 0s linear 0s;
}
.nav-mobile-panel a {
  display: block;
  padding: 16px 0;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-ash-grey);
  border-bottom: 1px solid var(--color-steel-line);
}
.nav-mobile-panel a:last-child { border-bottom: none; }
.nav-mobile-panel a:active { color: var(--color-eclipse-red); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 96px;
  gap: 40px;
  overflow: hidden;
}

.hero-parallax {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  transition: transform 0.2s var(--ease-out-cubic);
}

.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 0.1em;
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 108px);
  letter-spacing: 0.06em;
  line-height: 1;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s var(--ease-out-quint) 0.1s forwards;
}
.wordmark .word-gap { width: 0.5em; }

.hero-credits {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s var(--ease-out-quint) 0.9s forwards;
}

.hero .ghost-btn {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s var(--ease-out-quint) 1.15s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(242,240,234,0.5), transparent);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-quint) 1.4s forwards, scrollCue 2s ease-in-out 2.2s infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: translateX(-50%) scaleY(1); opacity: 0.6; }
  50%      { transform: translateX(-50%) scaleY(0.6); opacity: 1; }
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-quint), transform 0.7s var(--ease-out-quint);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.team-grid .team-card:nth-child(2) { transition-delay: 0.12s; }
.slate .slate-entry:nth-of-type(2) { transition-delay: 0.06s; }
.slate .slate-entry:nth-of-type(3) { transition-delay: 0.06s; }

/* ---------- sections (shared rhythm) ---------- */

section { padding: 128px 0; }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 48px);
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.body-copy {
  font-size: 17px;
  color: var(--color-ash-grey);
  max-width: 640px;
  margin: 24px auto 0;
}
.body-copy.center { text-align: center; }

/* ---------- studio statement ---------- */

.studio { background: var(--color-void-black); }
.studio .wrap { text-align: center; }

/* ---------- slate ---------- */

.slate { background: var(--color-void-black); border-top: 1px solid var(--color-steel-line); }

.slate-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}
.slate-entry:not(:last-child) { border-bottom: 1px solid var(--color-steel-line); }
.slate-entry:nth-child(even) .slate-visual { order: 2; }

.slate-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, var(--color-umbra) 0%, #000 70%);
  border: 1px solid var(--color-steel-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out-cubic);
}
.slate-entry:hover .slate-visual { border-color: var(--color-titanium); }
.slate-visual::before {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,60,26,0.35) 0%, rgba(196,30,0,0.12) 45%, transparent 70%);
  filter: blur(2px);
  transition: transform 0.5s var(--ease-out-cubic), opacity 0.5s var(--ease-out-cubic);
}
.slate-entry:hover .slate-visual::before {
  transform: scale(1.25);
  opacity: 0.9;
}
.slate-visual span {
  position: relative;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-titanium);
  text-transform: uppercase;
  transition: color 0.35s ease, transform 0.35s var(--ease-out-cubic);
}
.slate-entry:hover .slate-visual span {
  color: var(--color-chrome-white);
  transform: scale(1.04);
}

.slate-status {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-eclipse-red);
  margin-bottom: 16px;
}
.slate-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.slate-desc { color: var(--color-ash-grey); font-size: 16px; max-width: 460px; }

/* ---------- team ---------- */

.team { background: var(--color-void-black); border-top: 1px solid var(--color-steel-line); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 820px;
  margin: 0 auto;
}
.team-card {
  border: 1px solid var(--color-steel-line);
  padding: 48px 32px;
  text-align: center;
  transition: border-color 0.35s var(--ease-out-cubic), transform 0.35s var(--ease-out-cubic);
}
.team-card:hover {
  border-color: var(--color-credit-gold);
  transform: translateY(-4px);
}
.team-role {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-parchment);
  margin-bottom: 14px;
}
.team-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-credit-gold);
}

/* ---------- contact ---------- */

.contact { text-align: center; border-top: 1px solid var(--color-steel-line); }
.contact-actions { display: flex; gap: 20px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--color-steel-line);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-word {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.footer-meta {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-ash-grey);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .team-grid { grid-template-columns: 1fr; }
  .slate-entry { grid-template-columns: 1fr; gap: 32px; }
  .slate-entry:nth-child(even) .slate-visual { order: 0; }
  section { padding: 88px 0; }
  .hero { padding: 140px 20px 72px; gap: 32px; }

  /* backdrop-filter behind a fixed nav is a known mobile-Safari flicker
     source, especially with anything animating nearby (the shimmer, the
     glitch). Solid fill on small screens, blur stays on desktop only. */
  .nav, .nav.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0,0,0,0.94);
  }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .nav-inner { height: 64px; }
  .nav-mobile-panel { top: 64px; }
  .hero { padding: 112px 16px 64px; gap: 24px; }
  .ghost-btn { width: 100%; text-align: center; padding: 16px 24px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .team-card { padding: 36px 20px; }
  section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .scroll-cue { display: none; }
}

/* ---------- touch devices: no hover-only affordances ----------
   Without a real pointer, ":hover" gets simulated on tap and can stay
   "stuck" until the user taps elsewhere — on a scroll-heavy page that reads
   as random flicker. Neutralize every hover-triggered visual on touch. */
@media (hover: none) {
  .ghost-btn:hover, .ghost-btn:focus-visible {
    border-color: var(--color-parchment);
    color: var(--color-parchment);
    box-shadow: none;
    transform: none;
  }
  .nav-links a:hover { color: var(--color-ash-grey); }
  .nav-links a:hover::after { left: 50%; right: 50%; }
  .slate-entry:hover .slate-visual { border-color: var(--color-steel-line); }
  .slate-entry:hover .slate-visual::before { transform: scale(1); opacity: 1; }
  .slate-entry:hover .slate-visual span { color: var(--color-titanium); transform: scale(1); }
  .team-card:hover { border-color: var(--color-steel-line); transform: none; }
}

/* ---------- accessibility: 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;
  }
  .wordmark, .hero-credits, .hero .ghost-btn, .underglow, .scroll-cue {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-parallax { transform: none !important; }
  .wordmark::after { display: none; }
  .eclipse::after { animation: none; opacity: 0.5; }
}
