/*
 * ARP Visuals — styles.css
 * Cinematic editorial doctrine. Near-black canvas, spectrum as light.
 * Display: Bricolage Grotesque. Body: Hanken Grotesk.
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-primary: #f47820;
  --color-secondary: #8b2fc9;
  --color-accent: #1e90ff;
  --color-bg: #0a0a0a;
  --color-surface: #161318;
  --color-surface-2: #1d1a20;
  --color-text: #f4efe9;
  --color-text-secondary: #9a938c;
  --color-border: #2a2622;

  /* Spectrum — the logo's eye decompiled */
  --orange: #f47820;
  --magenta: #f43d97;   /* lifted from #e91e8c for AA on large type */
  --purple: #a25be0;    /* lifted for display legibility on black */
  --blue: #3aa0ff;      /* lifted #1e90ff for AA */

  --accent: var(--orange); /* per-page world hue; overridden on body */

  --font-primary: 'Bricolage Grotesque', Georgia, serif;
  --font-secondary: 'Hanken Grotesk', system-ui, sans-serif;
  --font-size-base: 16px;
  --spacing-base: 8px;

  --motion-duration: 320ms;
  --motion-duration-slow: 640ms;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 100px;
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base, 16px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-secondary, sans-serif);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  padding-bottom: 42px; /* required */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, iframe, svg { max-width: 100%; display: block; }
img, video { height: auto; }

a { color: var(--accent); text-decoration: none; transition: color var(--motion-duration) var(--motion-ease); }

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

::selection { background: var(--orange); color: #0a0a0a; }

/* ============================================================
   Page world-hue switches (sub-page heroes)
   ============================================================ */
body.world-orange  { --accent: var(--orange); }
body.world-magenta { --accent: var(--magenta); }
body.world-blue    { --accent: var(--blue); }
body.world-purple  { --accent: var(--purple); }

/* ============================================================
   Typography utilities
   ============================================================ */
.display {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.h1 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h2 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.lead {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(1.06rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--color-text);
  max-width: 60ch;
}
.body-text {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--color-text);
  max-width: 66ch;
}
.body-text + .body-text { margin-top: 1.1em; }
.eyebrow {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.8125rem; /* 13px */
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-secondary);
  display: inline-block;
}
.eyebrow--accent { color: var(--accent); }
.small {
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}
.text-secondary { color: var(--color-text-secondary); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* Skip link — hidden until keyboard-focused */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--color-text); color: var(--color-bg);
  font-family: var(--font-secondary); font-size: 0.85rem; font-weight: 600;
  padding: 10px 16px; border-radius: 4px; text-decoration: none;
  transition: top var(--motion-duration, 0.2s) ease;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   Layout primitives
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 12vh, 160px); }
.section--tight { padding-block: clamp(56px, 8vh, 110px); }
.rule { height: 1px; background: var(--color-border); border: 0; width: 100%; }
.rule--accent { background: var(--accent); height: 2px; width: 64px; }

main { display: block; }

/* Left-margin Monopo-style annotated label */
.section-label {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.section-label span { color: var(--accent); }

/* ============================================================
   Buttons / CTAs — restrained, outline fills on hover
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-secondary); font-weight: 600;
  font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-text);
  padding: 14px 26px;
  border: 1px solid var(--accent);
  background: transparent;
  border-radius: 1px;
  cursor: pointer;
  transition: background var(--motion-duration) var(--motion-ease),
              color var(--motion-duration) var(--motion-ease);
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: #0a0a0a; }
.btn i { font-size: 1.1em; transition: transform var(--motion-duration) var(--motion-ease); }
.btn:hover i { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-secondary); font-weight: 600;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}
.link-arrow i { transition: transform var(--motion-duration) var(--motion-ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* ============================================================
   Navigation — logo-left / menu-right, transparent over hero
   ============================================================ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; }
.site-header::before {
  content: ""; position: absolute; inset: 0; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0) 100%);
  opacity: 1; transition: opacity var(--motion-duration) var(--motion-ease);
}
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  background: transparent;
  transition: background var(--motion-duration) var(--motion-ease),
              transform var(--motion-duration-slow) var(--motion-ease),
              border-color var(--motion-duration) var(--motion-ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled .nav {
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-104%); }

.nav__logo { display: inline-flex; align-items: center; gap: 12px; color: var(--color-text); }
.nav__logo-mark { width: 91px; height: 91px; object-fit: contain; }
.nav__logo-word {
  font-family: var(--font-primary); font-weight: 700; font-size: 1.18rem;
  letter-spacing: -0.01em; color: var(--color-text);
}

.nav__menu { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 30px); list-style: none; }
.nav__link {
  font-family: var(--font-secondary); font-weight: 600;
  font-size: 0.875rem; /* 14px — above floor */
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-text);
  white-space: nowrap;
  position: relative; padding-block: 6px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--orange); transition: width var(--motion-duration) var(--motion-ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--orange); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

.nav__cta {
  font-family: var(--font-secondary); font-weight: 600;
  font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-text);
  padding: 11px 20px; border: 1px solid var(--orange);
  border-radius: 1px; white-space: nowrap;
  transition: background var(--motion-duration) var(--motion-ease),
              color var(--motion-duration) var(--motion-ease);
}
.nav__cta:hover, .nav__cta:focus-visible { background: var(--orange); color: #0a0a0a; }

.nav__toggle {
  display: none; background: transparent; border: 0; color: var(--color-text);
  font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 6px;
}

/* ============================================================
   Reveal + focus-pull motion
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity var(--motion-duration-slow) var(--motion-ease),
              transform var(--motion-duration-slow) var(--motion-ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
.reveal[data-delay="5"] { transition-delay: 450ms; }

/* Per-character chromatic-aberration focus-pull (home hero only) */
.focus-pull { display: inline; }
.focus-pull .fp-word { display: inline-block; white-space: nowrap; }
.focus-pull .fp-word > span,
.focus-pull > span:not(.fp-word) {
  display: inline-block;
  opacity: 0;
  filter: blur(7px);
  text-shadow: 2px 0 0 var(--magenta), -2px 0 0 var(--blue);
  transition: opacity 560ms var(--motion-ease),
              filter 560ms var(--motion-ease),
              text-shadow 560ms var(--motion-ease);
  transition-delay: calc(var(--i, 0) * 30ms);
}
.focus-pull.is-in .fp-word > span,
.focus-pull.is-in > span:not(.fp-word) {
  opacity: 1; filter: blur(0);
  text-shadow: 0 0 0 transparent;
}
.fp-hot.is-lit { color: var(--orange); }

/* ============================================================
   HOME — Hero (Title Card)
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(48px, 9vh, 120px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--color-bg); }
.hero__media iframe,
.hero__media .mj-slot {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw; min-height: 100svh; min-width: 177.77svh;
  border: 0;
}
.hero__media .mj-slot {
  width: 100%; height: 100%; min-height: 100%; min-width: 100%;
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(10,10,10,0.94) 0%, rgba(10,10,10,0.55) 36%, rgba(10,10,10,0.18) 68%, rgba(10,10,10,0.42) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__display { color: var(--color-text); max-width: 16ch; }
.hero__lead { margin-top: clamp(20px, 3vw, 34px); max-width: 54ch; color: var(--color-text); }
.hero__lead strong { color: var(--color-text); font-weight: 600; }

/* full-height spectral hairline pinned to left margin */
.spectral-hairline {
  position: absolute; top: 0; bottom: 0; left: clamp(10px, 2.4vw, 34px);
  width: 2px; z-index: 2;
  background: linear-gradient(180deg, var(--orange), var(--magenta), var(--purple), var(--blue), var(--orange));
  background-size: 100% 300%;
  animation: hairline-cycle 9s var(--motion-ease) 1 forwards;
  opacity: 0.9;
}
@keyframes hairline-cycle {
  0%   { background-position: 0 0; }
  70%  { background-position: 0 100%; }
  100% { background-position: 0 66%; } /* settle on orange band */
}
.scroll-cue {
  position: absolute; bottom: 22px; right: var(--gutter); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-secondary); font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-text-secondary);
}
.scroll-cue i { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* ============================================================
   HOME — Positioning Thesis
   ============================================================ */
.thesis { padding-block: clamp(110px, 22vh, 260px); }
.thesis__inner { position: relative; }
.thesis__statement {
  font-family: var(--font-primary); font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 5.2rem); line-height: 1.0; letter-spacing: -0.025em;
  max-width: 18ch;
}
.thesis__dim { color: var(--color-text-secondary); transition: color var(--motion-duration-slow) var(--motion-ease); }
.thesis__hot {
  color: var(--orange);
  box-shadow: inset 0 -0.07em 0 color-mix(in srgb, var(--orange) 40%, transparent);
}
.thesis__support {
  margin-top: clamp(40px, 7vw, 90px);
  margin-left: auto; max-width: 42ch; text-align: left;
  color: var(--color-text-secondary);
  display: block;
}
.thesis__support-wrap { display: flex; justify-content: flex-end; }

/* ============================================================
   HOME — Four Service Worlds (Spectral Split)
   ============================================================ */
.spectral { position: relative; }
.spectral__iris {
  display: block; width: clamp(40px, 6vw, 64px); height: clamp(40px, 6vw, 64px);
  margin: 0 auto clamp(8px, 2vw, 20px);
}
.spectral__diagram { position: relative; }
.spectral__rays {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.spectral__rays line {
  stroke-width: 1.5; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1100ms var(--motion-ease), opacity var(--motion-duration) var(--motion-ease), stroke-width var(--motion-duration) var(--motion-ease);
  opacity: 0.55;
}
.spectral.is-in .spectral__rays line { stroke-dashoffset: 0; }
.spectral__rays line.ray--orange  { stroke: var(--orange); }
.spectral__rays line.ray--magenta { stroke: var(--magenta); }
.spectral__rays line.ray--blue    { stroke: var(--blue); }
.spectral__rays line.ray--purple  { stroke: var(--purple); }
.spectral.dim-others .spectral__rays line { opacity: 0.18; }
.spectral.dim-others .spectral__rays line.is-active { opacity: 1; stroke-width: 2.5; }

.worlds {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.12fr;
  gap: clamp(20px, 2.6vw, 44px);
  align-items: start;
  padding-top: clamp(28px, 5vw, 64px);
}
.world { padding: 4px 0; transition: opacity var(--motion-duration) var(--motion-ease); }
.world--orange  { --accent: var(--orange);  margin-top: 0; }
.world--magenta { --accent: var(--magenta); margin-top: clamp(28px, 5vw, 72px); }
.world--blue    { --accent: var(--blue);    margin-top: clamp(14px, 3vw, 40px); }
.world--purple  { --accent: var(--purple);  margin-top: clamp(40px, 7vw, 104px); }
.spectral.dim-others .world:not(.is-active) { opacity: 0.4; }
.world__index {
  font-family: var(--font-secondary); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; color: var(--accent);
}
.world__name {
  margin: 12px 0 12px; color: var(--color-text);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}
.world--orange .world__name  { font-size: clamp(1.7rem, 3.1vw, 2.7rem); }
.world__desc { color: var(--color-text-secondary); font-size: 1rem; line-height: 1.55; max-width: 30ch; }
.world__enter {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-secondary); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.world__enter i { transition: transform var(--motion-duration) var(--motion-ease); }
.world:hover .world__enter i { transform: translateX(5px); }

/* mobile vertical spine (hidden on desktop) */
.spectral__spine { display: none; }

/* ============================================================
   WORK — dense flush grid
   ============================================================ */
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.work-filter {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 22px;
}
.work-filter button {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-secondary); font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--color-text-secondary);
  padding: 4px 0; transition: color var(--motion-duration) var(--motion-ease);
}
.work-filter button:hover { color: var(--color-text); }
.work-filter button[aria-current="true"] { color: var(--orange); }

.work-grid {
  margin-top: clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.work-tile {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
  background: #0a0a0a; min-width: 0;
}
.work-tile--feature { grid-column: span 2; aspect-ratio: 16/9; }
.work-tile--portrait { aspect-ratio: 3/4; }
.work-tile--tall { grid-row: span 2; aspect-ratio: 3/4; }
.work-tile > img,
.work-tile .embed iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.work-tile > img { transition: transform var(--motion-duration-slow) var(--motion-ease); }
.work-tile:hover > img { transform: scale(1.04); }
.work-tile .embed { position: absolute; inset: 0; }
.work-tile__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px; pointer-events: none;
  background: linear-gradient(0deg, rgba(10,10,10,0.86), rgba(10,10,10,0));
  font-family: var(--font-secondary); font-size: 0.8rem; color: var(--color-text-secondary);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
}
.work-tile:hover .work-tile__caption,
.work-tile:focus-within .work-tile__caption { opacity: 1; transform: none; }
.work-tile__caption strong { color: var(--color-text); font-weight: 600; display: block; font-size: 0.92rem; }
.work-tile.is-hidden { display: none; }

/* ============================================================
   OPERATOR — credentials stat row
   ============================================================ */
.operator { position: relative; }
.operator__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('/images/texture-marble.jpeg');
  background-size: cover; background-position: center;
  opacity: 0.06;
}
.operator__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.operator__portrait { position: relative; }
.operator__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  aspect-ratio: 4/5; background: var(--color-surface);
}
.operator__portrait::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: -1px; width: 3px;
  background: var(--orange);
}
.operator__stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.5vw, 48px) clamp(20px, 4vw, 60px);
  margin-top: clamp(28px, 4vw, 44px);
}
.stat__num {
  font-family: var(--font-primary); font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5rem); line-height: 0.9; color: var(--color-text);
  letter-spacing: -0.02em;
}
.stat__label {
  margin-top: 10px; font-family: var(--font-secondary); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--color-text-secondary);
}
.operator__line { margin-top: clamp(28px, 4vw, 44px); color: var(--color-text); }
.badges { display: flex; align-items: center; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.badges img { height: 58px; width: auto; object-fit: contain; }

/* ============================================================
   CLIENT NAMES — oversized type + marquee
   ============================================================ */
.client-names { list-style: none; }
.client-names li { border-top: 1px solid var(--color-border); }
.client-names li:last-child { border-bottom: 1px solid var(--color-border); }
.client-names a, .client-names span {
  display: block; padding-block: clamp(14px, 2vw, 26px);
  font-family: var(--font-primary); font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--color-text);
  transition: color var(--motion-duration) var(--motion-ease), padding-left var(--motion-duration) var(--motion-ease);
}
.client-names li:hover a, .client-names li:hover span { padding-left: 18px; }
.client-names li:nth-child(7n+1):hover a, .client-names li:nth-child(7n+1):hover span { color: var(--orange); }
.client-names li:nth-child(7n+2):hover a, .client-names li:nth-child(7n+2):hover span { color: var(--magenta); }
.client-names li:nth-child(7n+3):hover a, .client-names li:nth-child(7n+3):hover span { color: var(--blue); }
.client-names li:nth-child(7n+4):hover a, .client-names li:nth-child(7n+4):hover span { color: var(--purple); }
.client-names li:nth-child(7n+5):hover a, .client-names li:nth-child(7n+5):hover span { color: var(--orange); }
.client-names li:nth-child(7n+6):hover a, .client-names li:nth-child(7n+6):hover span { color: var(--blue); }
.client-names li:nth-child(7n):hover a, .client-names li:nth-child(7n):hover span { color: var(--magenta); }

.marquee { margin-top: clamp(40px, 6vw, 72px); overflow: hidden; -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; align-items: center; gap: clamp(40px, 7vw, 90px); width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 38px; width: auto; object-fit: contain; opacity: 0.55; filter: grayscale(1) brightness(1.6); transition: opacity var(--motion-duration) var(--motion-ease), filter var(--motion-duration) var(--motion-ease); }
.marquee img:hover { opacity: 1; filter: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   POV + CONTACT close
   ============================================================ */
.pov { padding-block: clamp(90px, 16vh, 200px); }
.pov__statement {
  font-family: var(--font-primary); font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 22ch;
}
.pov__statement em { font-style: normal; color: var(--orange); }

.contact-close { position: relative; overflow: hidden; }
.contact-close__dust {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70%; z-index: 0; pointer-events: none;
  background-image: url('/images/texture-gold-dust.jpeg');
  background-size: cover; background-position: center bottom;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 90%);
  mask-image: linear-gradient(0deg, #000 0%, transparent 90%);
  animation: dust-drift 22s ease-in-out infinite alternate;
}
@keyframes dust-drift { from { transform: translateY(0) scale(1.02); } to { transform: translateY(-3%) scale(1.08); } }
.contact-close__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(36px, 6vw, 88px); align-items: center;
}
.contact-close__intro { max-width: 18ch; }

/* ============================================================
   Contact form
   ============================================================ */
.contact-form { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-secondary); font-weight: 600; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-text-secondary);
}
.field input, .field textarea, .field select {
  font-family: var(--font-secondary); font-size: 1rem; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 1px; padding: 14px 16px; width: 100%;
  transition: border-color var(--motion-duration) var(--motion-ease), background var(--motion-duration) var(--motion-ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #6a655f; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--orange); background: var(--color-surface-2);
}
/* Bare/bottomless variant — contact page memorable decision */
.contact-form--bare .field input,
.contact-form--bare .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--color-border);
  border-radius: 0; padding: 12px 0;
}
.contact-form--bare .field input:focus,
.contact-form--bare .field textarea:focus { border-bottom-color: var(--orange); background: transparent; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 26px); }
.form-note { font-size: 0.78rem; color: var(--color-text-secondary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--color-border); padding-top: clamp(56px, 8vw, 96px); }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  padding-inline: var(--gutter); max-width: var(--wrap); margin-inline: auto;
}
.footer__brand-word { font-family: var(--font-primary); font-weight: 700; font-size: 1.4rem; color: var(--color-text); display: inline-flex; align-items: center; gap: 12px; }
.footer__brand-word img { width: 78px; height: 78px; object-fit: contain; }
.footer__tag { margin-top: 16px; color: var(--color-text-secondary); max-width: 32ch; font-size: 0.95rem; }
.footer__col h2 {
  font-family: var(--font-secondary); font-weight: 600; font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-text-secondary); margin-bottom: 18px;
}
.footer__col ul { list-style: none; display: grid; gap: 11px; }
.footer__col a { color: var(--color-text); font-size: 0.96rem; }
.footer__col a:hover { color: var(--orange); }
.footer__contact { display: grid; gap: 11px; }
.footer__contact a, .footer__contact span { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); font-size: 0.96rem; }
.footer__contact i { color: var(--orange); font-size: 1.05rem; }
.footer__social { display: flex; gap: 16px; margin-top: 6px; }
.footer__social a { font-size: 1.4rem; color: var(--color-text); }
.footer__social a:hover { color: var(--orange); }

.footer__imprint {
  margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; padding-inline: var(--gutter);
  max-width: var(--wrap); margin-inline: auto;
  border-top: 1px solid var(--color-border);
}
.footer__imprint h2 {
  font-family: var(--font-secondary); font-weight: 600; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--purple); margin-bottom: 10px;
}
.footer__imprint p { color: var(--color-text-secondary); font-size: 0.9rem; max-width: 60ch; }
.footer__imprint-links { display: flex; gap: 14px; margin-top: 14px; }
.footer__imprint-links a { font-size: 1.15rem; color: var(--color-text-secondary); }
.footer__imprint-links a:hover { color: var(--purple); }

.footer__base {
  margin-top: clamp(36px, 5vw, 60px); padding: 26px var(--gutter);
  max-width: var(--wrap); margin-inline: auto;
  border-top: 1px solid var(--color-border);
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
}
.footer__base p, .footer__base a { font-size: 0.82rem; color: var(--color-text-secondary); }
.footer__base a:hover { color: var(--orange); }

/* ============================================================
   Sub-page heroes & shared sub-page comps
   ============================================================ */
.subhero { position: relative; padding-top: clamp(150px, 22vh, 240px); padding-bottom: clamp(60px, 9vh, 120px); overflow: hidden; }
.subhero__inner { position: relative; z-index: 2; }
.subhero__eyebrow { color: var(--accent); margin-bottom: 22px; }
.subhero__title { color: var(--color-text); max-width: 18ch; }
.subhero__lead { margin-top: clamp(20px, 3vw, 32px); color: var(--color-text); }
.subhero__rule { margin-top: 28px; height: 2px; width: 72px; background: var(--accent); }

/* edge-bleed media hero (AI Brand Studio) */
.subhero--bleed .subhero__inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px,4vw,64px); align-items: center; }
.bleed-media {
  position: relative; aspect-ratio: 16/9; background: #0a0a0a;
  margin-right: calc(var(--gutter) * -1);
}
.bleed-media .mj-slot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #0a0a0a; }

/* full-bleed image hero (Brand Couture) */
.subhero--fullbleed { min-height: 92svh; display: flex; align-items: flex-end; padding-bottom: clamp(56px,9vh,110px); }
.subhero__bgimg { position: absolute; inset: 0; z-index: 0; }
.subhero__bgimg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(1.05); transition: filter 1.4s var(--motion-ease); }
.subhero--fullbleed:hover .subhero__bgimg img { filter: saturate(1.15) hue-rotate(-8deg); }
.subhero__bgscrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.5) 48%, rgba(10,10,10,0.2) 100%); }
.subhero--fullbleed .subhero__title-rule { position: relative; padding-left: 22px; }
.subhero--fullbleed .subhero__title-rule::before { content:""; position:absolute; left:0; top:6px; bottom:6px; width:2px; background: var(--accent); }

/* contained portrait hero (Digital Twins / Strategy) */
.subhero--split .subhero__inner { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: clamp(30px,5vw,72px); align-items: center; }
.subhero__media-contained img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; background: var(--color-surface); }
.subhero--split.flip .subhero__inner > *:first-child { order: 2; }

/* iris glow motif (digital twins) */
.iris-glow { position: relative; width: 84px; height: 84px; margin-bottom: 26px; }
.iris-glow::before { content:""; position:absolute; inset:0; border-radius:50%; border:1px solid var(--blue); }
.iris-glow::after { content:""; position:absolute; inset:28%; border-radius:50%; background: var(--blue); box-shadow: 0 0 28px 6px color-mix(in srgb, var(--blue) 60%, transparent); animation: blink 1.2s var(--motion-ease) 0.4s 1 both; }
@keyframes blink { 0%{transform:scaleY(0.05); opacity:0.2} 45%{transform:scaleY(0.05); opacity:0.2} 70%{transform:scaleY(1); opacity:1} 100%{transform:scaleY(1); opacity:1} }

/* Broadsheet two-column */
.broadsheet { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px,5vw,80px); }
.broadsheet__divider { border-left: 1px solid var(--color-border); padding-left: clamp(28px,4vw,56px); }
.shotlist { list-style: none; display: grid; gap: 22px; }
.shotlist li { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: baseline; padding-bottom: 22px; border-bottom: 1px solid var(--color-border); }
.shotlist__num { font-family: var(--font-primary); font-weight: 700; font-size: 1.5rem; color: var(--accent); }
.shotlist__title { font-family: var(--font-secondary); font-weight: 600; font-size: 1.06rem; color: var(--color-text); }
.shotlist__desc { color: var(--color-text-secondary); font-size: 0.96rem; margin-top: 6px; }

/* Editorial gallery (Brand Couture) */
.editorial-gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(16px,2vw,30px); align-items: start; }
.editorial-gallery__lead { grid-row: span 2; }
.editorial-gallery figure { position: relative; overflow: hidden; background: #0a0a0a; }
.editorial-gallery img { width: 100%; height: 100%; object-fit: cover; }
.editorial-gallery .embed { position: relative; aspect-ratio: 16/9; }
.editorial-gallery .embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.editorial-gallery figcaption { margin-top: 10px; font-family: var(--font-secondary); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--color-text-secondary); }
.editorial-gallery__lead img { aspect-ratio: 3/4; }
.editorial-gallery__small img { aspect-ratio: 4/3; }

/* About — three brands descending */
.brand-stack { display: grid; gap: 0; }
.brand-row { padding-block: clamp(28px,4vw,52px); border-bottom: 1px solid var(--color-border); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px,4vw,56px); align-items: baseline; }
.brand-row:first-child { border-top: 1px solid var(--color-border); }
.brand-row__name { font-family: var(--font-primary); font-weight: 700; line-height: 0.98; letter-spacing: -0.02em; color: var(--color-text); }
.brand-row--1 .brand-row__name { font-size: clamp(2rem, 5.5vw, 4.4rem); color: var(--orange); }
.brand-row--2 .brand-row__name { font-size: clamp(1.5rem, 3.6vw, 2.8rem); color: var(--purple); }
.brand-row--3 .brand-row__name { font-size: clamp(1.2rem, 2.6vw, 1.9rem); color: var(--blue); }
.brand-row__desc { color: var(--color-text-secondary); max-width: 52ch; }
.brand-row--1 .brand-row__desc { color: var(--color-text); }

/* About founder hero spectral edge */
.founder-portrait { position: relative; }
.founder-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; background: var(--color-surface); }
.founder-portrait::after {
  content:""; position:absolute; top:0; bottom:0; right:-3px; width:4px;
  background: linear-gradient(180deg, var(--orange), var(--magenta), var(--purple), var(--blue));
}
.cred-list { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.cred-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; color: var(--color-text); }
.cred-list i { color: var(--accent); font-size: 1.1rem; margin-top: 3px; }

/* Memorial / quiet page */
.quiet-hero { min-height: 84svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 120px; }
.quiet-hero .h1 { max-width: 16ch; }
.reading-measure { max-width: 60ch; margin-inline: auto; }
.reading-measure .body-text { max-width: none; }

/* Two-up generic section */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px,5vw,80px); align-items: center; }
.split.flip > *:first-child { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center; background: var(--color-surface); }
.band--purple-cast { position: relative; }
.band--purple-cast::before { content:""; position:absolute; inset:0; background: radial-gradient(120% 80% at 50% 100%, color-mix(in srgb, var(--purple) 14%, transparent), transparent 70%); pointer-events:none; }

/* CTA strip */
.cta-strip { border-top: 1px solid var(--accent); }
.cta-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }

/* Engagement list */
.checklist { list-style: none; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; color: var(--color-text); align-items: start; }
.checklist i { color: var(--accent); margin-top: 4px; }

/* Standalone oversized line */
.bigline { font-family: var(--font-primary); font-weight: 700; font-size: clamp(1.8rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 16ch; }
.bigline em { font-style: normal; color: var(--accent); }

/* 404 */
.notfound { min-height: 78svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.notfound__code { font-family: var(--font-primary); font-weight: 800; font-size: clamp(4rem, 18vw, 12rem); line-height: 0.85; letter-spacing: -0.04em; color: var(--color-text); }
.notfound__code span { color: var(--orange); }

/* social row in hero/contact */
.social-row { display: flex; gap: 18px; margin-top: 28px; }
.social-row a { font-size: 1.5rem; color: var(--color-text); }
.social-row a:hover { color: var(--accent); }

/* MJ placeholder visual */
.mj-slot__label { font-family: var(--font-secondary); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #3a3631; display: inline-flex; align-items: center; gap: 8px; }
.mj-slot__label i { font-size: 1rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: color-mix(in srgb, var(--color-surface) 97%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    padding: 14px var(--gutter) 30px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links li { border-bottom: 1px solid var(--color-border); }
  .nav__link { display: block; padding: 16px 0; font-size: 1rem; }
  .nav__cta { order: -1; text-align: center; margin: 14px 0 8px; padding: 15px 20px; }
}

@media (max-width: 900px) {
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .world { margin-top: 0 !important; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-tile--feature { grid-column: span 2; }
  .work-tile--tall { grid-row: auto; aspect-ratio: 3/4; }
  .operator__inner { grid-template-columns: 1fr; }
  .operator__portrait img { aspect-ratio: 16/10; }
  .operator__portrait::after { display: none; }
  .contact-close__inner,
  .subhero--bleed .subhero__inner,
  .subhero--split .subhero__inner,
  .broadsheet, .split, .editorial-gallery, .cta-strip__inner { grid-template-columns: 1fr; }
  .subhero--split.flip .subhero__inner > *:first-child,
  .split.flip > *:first-child { order: 0; }
  .bleed-media { margin-right: calc(var(--gutter) * -1); }
  .editorial-gallery__lead { grid-row: auto; }
  .broadsheet__divider { border-left: 0; padding-left: 0; border-top: 1px solid var(--color-border); padding-top: clamp(28px,5vw,40px); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .thesis__support-wrap { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .worlds { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  /* spectral becomes a vertical spine with hue nodes */
  .spectral__rays, .spectral__iris { display: none; }
  .spectral__spine { display: block; }
  .worlds { position: relative; padding-left: 30px; }
  .worlds::before { content:""; position:absolute; left:9px; top:8px; bottom:8px; width:2px; background: linear-gradient(180deg, var(--orange), var(--magenta), var(--blue), var(--purple)); }
  .world { position: relative; padding-block: 22px; border-bottom: 1px solid var(--color-border); }
  .world::before { content:""; position:absolute; left:-26px; top:30px; width:12px; height:12px; border-radius:50%; background: var(--accent); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--accent) 60%, transparent); }
  .work-grid { grid-template-columns: 1fr; }
  .work-tile, .work-tile--feature, .work-tile--portrait, .work-tile--tall { grid-column: auto; aspect-ratio: 16/10; }
  .work-tile__caption { opacity: 1; transform: none; } /* visible on touch */
  .operator__stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .contact-form__row { grid-template-columns: 1fr; }
}

/* ============================================================
   Film embeds — self-hosted hero video + Vimeo brand films
   ============================================================ */
/* Self-hosted hero background film (Payton reel) — fills like the iframe slot */
.hero__media--video { background: #0a0a0a url('/images/hero-poster.jpg') center/cover no-repeat; }
.hero__media video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw; min-height: 100svh; min-width: 177.77svh;
  object-fit: cover; border: 0;
}

/* Generic 16:9 Vimeo embed (memorial film, couture centerpiece) */
.video-embed { position: relative; aspect-ratio: 16/9; background: #0a0a0a; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Portrait (9:16) Vimeo films centred on black so vertical films fill cleanly,
   never letterboxed inside a wide tile. Used in the work grid + couture gallery. */
.work-tile .embed.embed--portrait { display: flex; align-items: center; justify-content: center; }
.work-tile .embed.embed--portrait iframe { width: auto; height: 100%; aspect-ratio: 9/16; max-width: 100%; }
.editorial-gallery .embed.embed--portrait { aspect-ratio: 9/16; }
.editorial-gallery .embed.embed--portrait iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* House of NYCe — three vertical fashion films in a row */
.film-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.5vw, 22px); margin-top: clamp(28px, 4vw, 48px); }
.film-strip figure { margin: 0; }
.film-strip .embed { position: relative; aspect-ratio: 9/16; background: #0a0a0a; overflow: hidden; }
.film-strip .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-strip figcaption { margin-top: 10px; font-family: var(--font-secondary); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--color-text-secondary); }
@media (max-width: 600px) { .film-strip { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* ============================================================
   Brand logo wall + credibility band — refined light chips
   ============================================================ */
.logo-wall { margin-top: clamp(28px,4vw,52px); display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(12px,1.5vw,20px); }
.logo-chip {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3/2; background: #fff; border-radius: 6px;
  padding: clamp(16px,2.4vw,32px);
  transition: transform var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
}
.logo-chip img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-chip:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.55); }
/* Grayscale-until-hover only where hovering is possible; touch devices keep full colour */
@media (hover: hover) {
  .logo-chip img { filter: grayscale(1); opacity: 0.82; transition: filter var(--motion-duration) var(--motion-ease), opacity var(--motion-duration) var(--motion-ease); }
  .logo-chip:hover img { filter: grayscale(0); opacity: 1; }
}
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px) { .logo-wall { grid-template-columns: repeat(2,1fr); } }

/* Credibility band — founder pedigree, kept distinct from client work */
.cred-group + .cred-group { margin-top: clamp(26px,3.5vw,44px); }
.cred-group__label { font-family: var(--font-secondary); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-text-secondary); margin-bottom: 14px; }
.cred-grid { display: grid; gap: clamp(12px,1.5vw,20px); grid-template-columns: repeat(4,1fr); }
.cred-grid--enterprise { grid-template-columns: repeat(3,1fr); max-width: 720px; }
@media (max-width: 560px) { .cred-grid, .cred-grid--enterprise { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .focus-pull .fp-word > span, .focus-pull > span { opacity: 1; filter: none; text-shadow: none; }
  .spectral__rays line { stroke-dashoffset: 0; }
  .marquee__track { animation: none; }
  .contact-close__dust { animation: none; }
  .iris-glow::after { animation: none; transform: none; opacity: 1; }
  .spectral-hairline { animation: none; background-position: 0 66%; }
  .hero__media video { display: none; } /* fall back to the poster still */
}
