/* Gasworks — brand system v2.0 (see Gasworks-Brand-Guide.pdf) */

:root {
  /* Primary palette — Gasworks brand kit */
  --hot-steel: #cf5525;
  --forge-black: #1a1a1a; /* Char Black */
  --flue-white: #f5f0eb; /* Bone White */
  /* Secondary palette */
  --patina: #4a6b5a;
  --lake-mist: #7a9bae;
  --ember: #f0b060; /* Ember Glow */
  --smoke: #5a5652; /* Steel Gray */
  --oxidized: #8a3a1a; /* Deep Rust */
  --warm-smoke: #b0a89e;
  --coal: #2a2724;
  /* Semantic tokens */
  --bg: var(--forge-black);
  --bg-rgb: 26, 26, 26;
  --bg-elevated: #2a2724;
  --surface: #33302c;
  --line: rgba(245, 240, 235, 0.1);
  --line-strong: rgba(245, 240, 235, 0.18);
  --text: var(--flue-white);
  --text-muted: rgba(245, 240, 235, 0.68);
  --text-dim: rgba(245, 240, 235, 0.6);
  --accent: var(--hot-steel);
  --accent-soft: rgba(207, 85, 37, 0.2);
  --accent-glow: rgba(207, 85, 37, 0.38);
  --accent-gradient: linear-gradient(
    135deg,
    #d05828 0%,
    #d8653a 45%,
    #cf5525 65%,
    #c85020 100%
  );
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --brand-grid: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='rgba(245,240,235,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  --page-atmosphere: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: #000;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fixed cinematic backdrop — true black ↔ metallic orange (does not scroll) */
.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.site-backdrop__base {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #000000 0%, #060302 38%, #000000 72%, #0a0402 100%);
}

.site-backdrop__orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
  filter: blur(72px);
}

.site-backdrop__orb--1 {
  width: min(72vmax, 920px);
  height: min(72vmax, 920px);
  top: -18%;
  left: -14%;
  background: radial-gradient(circle, rgba(207, 85, 37, 0.72) 0%, rgba(207, 85, 37, 0.18) 42%, transparent 72%);
  animation: site-bg-orb-1 42s ease-in-out infinite alternate;
}

.site-backdrop__orb--2 {
  width: min(64vmax, 820px);
  height: min(64vmax, 820px);
  right: -12%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(240, 176, 96, 0.45) 0%, rgba(138, 58, 26, 0.14) 45%, transparent 74%);
  animation: site-bg-orb-2 48s ease-in-out infinite alternate;
}

.site-backdrop__orb--3 {
  width: min(48vmax, 620px);
  height: min(48vmax, 620px);
  top: 38%;
  left: 32%;
  background: radial-gradient(circle, rgba(207, 85, 37, 0.38) 0%, rgba(207, 85, 37, 0.08) 50%, transparent 70%);
  animation: site-bg-orb-3 36s ease-in-out infinite alternate;
}

.site-backdrop__mesh {
  position: absolute;
  inset: -30%;
  opacity: 0.62;
  mix-blend-mode: screen;
  background:
    linear-gradient(
      118deg,
      transparent 0%,
      rgba(207, 85, 37, 0.14) 22%,
      transparent 38%,
      rgba(240, 176, 96, 0.09) 54%,
      transparent 68%,
      rgba(207, 85, 37, 0.11) 84%,
      transparent 100%
    );
  background-size: 220% 220%;
  animation: site-bg-mesh 52s ease-in-out infinite alternate;
}

.site-backdrop__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 88% at 50% 46%, transparent 36%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.45) 100%);
}

.site-backdrop__grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: var(--brand-grid);
  background-size: 40px 40px;
  animation: site-bg-grain 8s steps(6) infinite;
}

@keyframes site-bg-grain {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1%, 1%, 0);
  }
}

@keyframes site-bg-orb-1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.88;
  }
  100% {
    transform: translate3d(8%, 6%, 0) scale(1.12);
    opacity: 1;
  }
}

@keyframes site-bg-orb-2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1.05);
    opacity: 0.82;
  }
  100% {
    transform: translate3d(-7%, -5%, 0) scale(1.14);
    opacity: 0.95;
  }
}

@keyframes site-bg-orb-3 {
  0% {
    transform: translate3d(0, 0, 0) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(-5%, 8%, 0) scale(1.08);
    opacity: 0.9;
  }
}

@keyframes site-bg-mesh {
  0% {
    transform: translate3d(-6%, -4%, 0) rotate(-2deg);
    background-position: 0% 40%;
  }
  100% {
    transform: translate3d(6%, 5%, 0) rotate(2deg);
    background-position: 100% 60%;
  }
}

.intro,
.page-stage,
.site-footer,
.page-portfolio .portfolio-main {
  position: relative;
  z-index: 1;
}

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

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

a:hover {
  color: var(--accent);
}

.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 {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 1000;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shell {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--max), 100% - 1.75rem);
  }
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.38) 70%, transparent);
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.wordmark__lockup {
  display: block;
  height: clamp(1.35rem, 3.2vw, 1.75rem);
  width: auto;
  max-width: min(56vw, 220px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav__link.is-active {
  color: var(--text);
}

.site-nav__cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 85, 37, 0.42);
  color: var(--forge-black) !important;
  background: var(--accent-gradient);
  box-shadow:
    0 0 12px rgba(207, 85, 37, 0.22),
    0 14px 32px -16px var(--accent-glow),
    inset 0 1px 0 rgba(255, 230, 200, 0.32);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.site-nav__cta:hover {
  color: #0c0907 !important;
  border-color: rgba(240, 176, 96, 0.55);
  transform: translateY(-1px);
  box-shadow:
    0 0 18px rgba(207, 85, 37, 0.38),
    0 18px 40px -14px var(--accent-glow),
    inset 0 1px 0 rgba(255, 230, 200, 0.42);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-open .nav-toggle__bar:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bar:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    padding: 1.25rem 1.75rem 1.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(var(--bg-rgb), 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(100vh, 1040px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) 0 2.75rem;
  overflow: hidden;
  background: transparent;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
}

.hero__poster,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__poster--placeholder {
  display: grid;
  place-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(207, 85, 37, 0.22), transparent 55%),
    radial-gradient(90% 70% at 95% 20%, rgba(120, 90, 255, 0.12), transparent 45%),
    linear-gradient(180deg, #2a2724 0%, var(--forge-black) 100%);
}

/* ——— Media mill (3D scroll-driven hero palette) ——— */
.media-mill {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.media-mill__floor {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  background-position: center;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #000 25%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 45%, #000 25%, transparent 78%);
  opacity: 0.55;
}

.media-mill__scene {
  position: absolute;
  inset: 0;
  perspective: 1500px;
  perspective-origin: 50% 45%;
}

.media-mill__lattice {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translate3d(0, var(--mill-shift-y, 0px), var(--mill-z, 0px));
  will-change: transform;
}

.media-mill__tile {
  --tw: clamp(180px, 22vw, 320px);
  position: absolute;
  width: var(--tw);
  aspect-ratio: 16 / 9;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    translate3d(var(--tx, 0px), var(--ty, 0px), var(--tz, 0px))
    rotate(var(--rot, 0deg));
  margin: 0;
}

/* Hero mill — keep the fixed site-backdrop gradient visible between and behind tiles */
.hero .hero__stage-3d,
.hero .hero__grain {
  display: none;
}

.media-mill__media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 38px -16px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  filter: brightness(0.78) contrast(0.95) saturate(0.7);
}

.media-mill__media > video,
.media-mill__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media-mill__media--placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 2px,
      transparent 2px,
      transparent 16px
    ),
    linear-gradient(180deg, #14111c 0%, #0a0810 100%);
}

.media-mill__serial {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.media-mill__caption {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.04em;
  padding: 0 8px;
  text-align: center;
}

.media-mill__bezel {
  position: absolute;
  inset: -3px;
  border-radius: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.hero .media-mill__floor {
  opacity: 0.28;
}

.media-mill__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.06) 28%,
    rgba(0, 0, 0, 0.04) 62%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

.hero .media-mill__veil {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 34%,
    transparent 66%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .media-mill__lattice {
    transform: none !important;
  }
}

@media (max-width: 720px) {
  .media-mill__tile {
    --tw: clamp(140px, 38vw, 220px);
  }

  /* Phones get a thinner lattice — drop the back row, keep mid + front */
  .media-mill__tile[data-mill-row="back"] {
    display: none;
  }

  .media-mill__floor {
    background-size: 48px 48px, 48px 48px;
    opacity: 0.4;
  }

  .hero .media-mill__floor {
    opacity: 0.22;
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.04) 40%,
    rgba(0, 0, 0, 0.38) 100%
  );
  pointer-events: none;
}

.hero .hero__veil {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.14) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}

.hero__title {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 6vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero__title-accent {
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: 0 0 2rem;
  max-width: 48ch;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__scroll-hint {
  position: absolute;
  z-index: 4;
  right: max(1.5rem, calc(50vw - var(--max) / 2));
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@media (max-width: 860px) {
  .hero__scroll-hint {
    display: none;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--accent-gradient);
  color: var(--forge-black);
  box-shadow: 0 18px 40px -20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px -18px var(--accent-glow);
  color: #0c0907;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
}

/* ——— Placeholders ——— */
.placeholder-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
}

.placeholder-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 36ch;
  margin-inline: auto;
  line-height: 1.45;
}

.placeholder-hint code {
  font-size: 0.78em;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

/* ——— Sections ——— */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--tight {
  padding: 3rem 0 2rem;
}

.section__label {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-smoke);
}

.section__head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  max-width: 52ch;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
}

.section__dek {
  margin: 0;
  color: var(--text-muted);
}

.section--logos {
  overflow-x: clip;
  overflow-y: visible;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
  background: transparent;
}

.logos__kicker {
  margin: 0 0 0.15rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.logo-carousel {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  /* Face height only; width is a fraction of the cylinder chord so gaps stay even */
  --logo-face-h: clamp(72px, 10vw, 96px);
}

.logo-carousel__viewport {
  position: relative;
  margin: 1rem 0 0;
  padding: clamp(20px, 3.2vw, 36px) 0;
  min-height: calc(var(--logo-face-h) * 2.85 + clamp(40px, 7vw, 72px));
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
}

.logo-carousel__scene {
  height: 100%;
  min-height: calc(var(--logo-face-h) * 2.65);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2200px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.logo-carousel__ring {
  --n: 19;
  --radius: clamp(520px, 62vw, 1000px);
  /* Chord between neighbors × 0.74 = even gutter around every mark */
  --face-w: calc(2 * var(--radius) * sin(calc(180deg / var(--n))) * 0.74);
  --face-h: var(--logo-face-h);
  position: relative;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
  /* One full −1turn = 360° on Y — every face on the cylinder visits the front arc once per cycle */
  animation: logoCarouselSpin 90s linear infinite;
  animation-play-state: running;
  will-change: transform;
}

.logo-carousel__face {
  position: absolute;
  width: var(--face-w);
  height: var(--face-h);
  left: 0;
  top: 0;
  margin-left: calc(var(--face-w) / -2);
  margin-top: calc(var(--face-h) / -2);
  overflow: visible;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 1turn / var(--n))) translateZ(var(--radius));
  backface-visibility: hidden;
}

.logo-carousel__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.logo-carousel__panel:not(.logo-carousel__panel--placeholder) {
  padding: 0;
}

.logo-carousel__panel img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 68%;
  object-fit: contain;
  object-position: center center;
  margin: 0;
  /* Slightly softer glow so less gets clipped at strip edges */
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.2))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.06));
}

/* Extra-wide wordmarks were reading small vs square marks — use more width, same height cap */
.logo-carousel__panel[data-brand="burton"] img,
.logo-carousel__panel[data-brand="amangiri"] img,
.logo-carousel__panel[data-brand="columbia"] img,
.logo-carousel__panel[data-brand="espn"] img,
.logo-carousel__panel[data-brand="live-nation"] img {
  max-width: 100%;
  max-height: 68%;
}

.logo-carousel__panel--placeholder {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.45);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logo-carousel__panel--placeholder span {
  display: block;
  padding: 0 0.5rem;
  line-height: 1.2;
  text-align: center;
  opacity: 0.82;
}

@keyframes logoCarouselSpin {
  from {
    transform: translateZ(calc(-1 * var(--radius))) rotateY(0deg);
  }
  to {
    transform: translateZ(calc(-1 * var(--radius))) rotateY(-1turn);
  }
}

@media (max-width: 720px) {
  .logo-carousel {
    --logo-face-h: clamp(58px, 14vw, 80px);
  }

  .logo-carousel__viewport {
    padding: clamp(16px, 4vw, 26px) 0;
    min-height: calc(var(--logo-face-h) * 2.75 + clamp(32px, 8vw, 52px));
  }

  .logo-carousel__ring {
    --radius: clamp(300px, 86vw, 460px);
    animation-duration: 72s;
  }

  .logo-carousel__panel img {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
  }

  .logo-carousel__panel--placeholder {
    font-size: 0.55rem;
    letter-spacing: 0.07em;
  }
}

/* ——— Capability lanes: full-bleed media + three equal thirds ——— */
.section--lanes {
  padding: 0;
  background: transparent;
}

.lanes {
  position: relative;
  min-height: min(100svh, 920px);
  height: clamp(640px, 100svh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.lanes__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lanes__plate {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.lanes__plate.is-active {
  opacity: 1;
  z-index: 1;
}

.lanes__media.is-switching .lanes__plate.is-active {
  transition-duration: 0.55s;
}

.lanes__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.018) 10px,
      rgba(255, 255, 255, 0.018) 11px
    );
}

.lanes__placeholder--spotlights {
  background-color: transparent;
  background-image:
    radial-gradient(ellipse 80% 60% at 72% 40%, rgba(207, 85, 37, 0.14), transparent 55%),
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 11px
    );
}

.lanes__placeholder--narratives {
  background-color: transparent;
  background-image:
    radial-gradient(ellipse 75% 55% at 68% 45%, rgba(122, 155, 174, 0.12), transparent 58%),
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 11px
    );
}

.lanes__placeholder--immersions {
  background-color: transparent;
  background-image:
    radial-gradient(ellipse 70% 50% at 70% 42%, rgba(74, 107, 90, 0.12), transparent 55%),
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 11px
    );
}

.lanes__media-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.lanes__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.lanes__placeholder-label,
.lanes__placeholder-path {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lanes__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.lanes__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.14) 38%,
    rgba(0, 0, 0, 0.08) 62%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}

.lanes__stack {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.lanes__row {
  flex: 1 1 33.333%;
  min-height: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lanes__row:last-child {
  border-bottom: 0;
}

.lanes__item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: opacity 0.4s ease;
}

.lanes__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.lanes__item-inner {
  display: block;
  position: relative;
  width: 100%;
  padding-block: clamp(0.5rem, 1.5vh, 1rem);
  padding-left: 2.5rem;
}

.lanes__index {
  position: absolute;
  left: 0;
  top: 0.42em;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
  transition:
    color 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lanes__item.is-active .lanes__index,
.lanes__item:hover .lanes__index,
.lanes__item:focus-visible .lanes__index {
  color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

@media (hover: hover) {
  .lanes__stack:hover .lanes__item {
    opacity: 0.42;
  }

  .lanes__stack:hover .lanes__item:hover,
  .lanes__stack:hover .lanes__item.is-active {
    opacity: 1;
  }
}

.lanes__item.is-active {
  opacity: 1;
}

.lanes__word {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  transform-origin: right center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s ease,
    text-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease;
}

.lanes__desc {
  display: block;
  margin-top: 0.35rem;
  max-width: 36ch;
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease;
}

.lanes__item.is-active .lanes__desc,
.lanes__item:hover .lanes__desc,
.lanes__item:focus-visible .lanes__desc {
  opacity: 1;
  transform: translateY(0);
  color: rgba(255, 255, 255, 0.62);
}

.lanes__item.is-active .lanes__word,
.lanes__item:hover .lanes__word,
.lanes__item:focus-visible .lanes__word {
  color: #fff;
  transform: translate3d(6px, -3px, 0) rotate(-0.6deg);
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.18),
    0 0 28px var(--lane-glow, rgba(207, 85, 37, 0.35)),
    0 0 56px var(--lane-glow-soft, rgba(207, 85, 37, 0.14)),
    0 0 90px var(--lane-glow-soft, rgba(207, 85, 37, 0.08));
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}

/* Lane click → portfolio launch burst */
.lanes__launch {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.lanes__launch.is-active {
  visibility: visible;
  opacity: 1;
}

.lanes__launch-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(207, 85, 37, 0.35), transparent 55%);
  opacity: 0;
}

.lanes__launch.is-active .lanes__launch-flash {
  animation: lanes-launch-flash 0.48s ease-out forwards;
}

.lanes.is-portfolio-launch .lanes__stack {
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.lanes.is-portfolio-launch .lanes__media {
  transform: scale(1.03);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.28, 1);
}

.lanes.is-portfolio-launch .lanes__veil {
  opacity: 0.88;
  transition: opacity 0.35s ease;
}

.lanes__item.is-launching {
  opacity: 1;
}

.lanes__item.is-launching .lanes__word {
  color: #fff;
  transform: translate3d(6px, -3px, 0) rotate(-0.6deg);
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.32),
    0 0 42px var(--lane-glow, rgba(207, 85, 37, 0.55)),
    0 0 78px var(--lane-glow-soft, rgba(207, 85, 37, 0.28)),
    0 0 120px var(--lane-glow-soft, rgba(207, 85, 37, 0.16));
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.45));
  animation: lanes-word-launch-glow 0.48s ease-out forwards;
}

.lanes__item.is-launching .lanes__desc {
  opacity: 1;
  color: rgba(255, 255, 255, 0.72);
}

@keyframes lanes-launch-flash {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
  }
}

@keyframes lanes-word-launch-glow {
  0% {
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0.18),
      0 0 28px var(--lane-glow, rgba(207, 85, 37, 0.35)),
      0 0 56px var(--lane-glow-soft, rgba(207, 85, 37, 0.14)),
      0 0 90px var(--lane-glow-soft, rgba(207, 85, 37, 0.08));
  }
  45% {
    text-shadow:
      0 0 22px rgba(255, 255, 255, 0.38),
      0 0 52px var(--lane-glow, rgba(207, 85, 37, 0.62)),
      0 0 96px var(--lane-glow-soft, rgba(207, 85, 37, 0.32)),
      0 0 140px var(--lane-glow-soft, rgba(207, 85, 37, 0.18));
  }
  100% {
    text-shadow:
      0 0 18px rgba(255, 255, 255, 0.32),
      0 0 42px var(--lane-glow, rgba(207, 85, 37, 0.55)),
      0 0 78px var(--lane-glow-soft, rgba(207, 85, 37, 0.28)),
      0 0 120px var(--lane-glow-soft, rgba(207, 85, 37, 0.16));
  }
}

@media (prefers-reduced-motion: reduce) {
  .lanes__launch.is-active .lanes__launch-flash {
    animation: none;
  }

  .lanes__item.is-launching .lanes__word {
    animation: none;
  }
}

@media (max-width: 720px) {
  .lanes {
    min-height: min(88svh, 720px);
    height: min(88svh, 720px);
  }

  .lanes__word {
    font-size: clamp(1.45rem, 7.5vw, 2.15rem);
  }

  .lanes__desc {
    opacity: 1;
    transform: none;
    font-size: 0.78rem;
  }

  .lanes__item-inner {
    padding-left: 2.15rem;
  }

  .lanes__placeholder-label,
  .lanes__placeholder-path {
    display: none;
  }
}

@media (max-width: 720px) and (hover: hover) {
  .lanes__stack:hover .lanes__item {
    opacity: 1;
  }
}

/* ——— Work grid ——— */
.work-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-tile__link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-tile:not(.work-tile--placeholder) .work-tile__link:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 60px -40px #000;
}

.work-tile--placeholder .work-tile__link {
  cursor: default;
}

.work-tile__media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(207, 85, 37, 0.12), transparent 45%),
    repeating-linear-gradient(
      -12deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    #100e15;
}

.work-tile__meta {
  padding: 1.15rem 1.25rem 1.35rem;
}

.work-tile__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.work-tile__cat {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ——— Split sections ——— */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.split--reverse .split__figure {
  order: -1;
}

@media (max-width: 900px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__figure {
    order: 0;
  }
}

.service-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.service-list li {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.service-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.service-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.split__figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
}

.split__figure--portrait {
  aspect-ratio: 3 / 4;
  min-height: unset;
  max-height: 560px;
  margin-inline: auto;
  width: 100%;
}

.split__figure--placeholder {
  display: grid;
  place-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(80% 60% at 10% 0%, rgba(207, 85, 37, 0.16), transparent),
    linear-gradient(180deg, #15121d, #0c0a10);
}

.prose {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.facts {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
}

.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.facts dd {
  margin: 0.25rem 0 0;
  font-weight: 500;
}

/* ——— Reel ——— */
.reel-card {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  overflow: hidden;
}

.reel-card--placeholder .reel-card__inner {
  min-height: 320px;
  display: grid;
  place-content: center;
  gap: 0.65rem;
  padding: 2.5rem 2rem;
  text-align: center;
}

.reel-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.reel-card__hint {
  margin: 0;
  max-width: 52ch;
  color: var(--text-muted);
  justify-self: center;
}

/* ——— Inquiry form ——— */
.section--inquiry {
  position: relative;
  z-index: 1;
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-top: none;
  background: transparent;
}

.section--inquiry .shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section--inquiry .section__title,
.section--inquiry .inquiry__dek {
  text-align: center;
}

.inquiry__dek {
  max-width: 52ch;
  margin-inline: auto;
}

.inquiry-card {
  width: min(100%, 42rem);
  margin-top: 2rem;
  margin-inline: auto;
  text-align: left;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.65);
}

.inquiry-card__reachout {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.inquiry-card__link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.inquiry-card__link:hover {
  color: var(--accent);
}

.inquiry-card__sep {
  margin: 0 0.5rem;
  color: var(--text-dim);
}

.inquiry-form__grid {
  display: grid;
  gap: 1.25rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .inquiry-form__grid {
    grid-template-columns: 1fr;
  }
}

.inquiry-form__field--full {
  grid-column: 1 / -1;
}

.inquiry-form__label {
  font-family: var(--font-display);
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.inquiry-form__optional {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
}

.inquiry-form__input,
.inquiry-form__select,
.inquiry-form__textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-form__input::placeholder,
.inquiry-form__textarea::placeholder {
  color: var(--text-dim);
}

.inquiry-form__input:hover,
.inquiry-form__select:hover,
.inquiry-form__textarea:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.inquiry-form__input:focus,
.inquiry-form__select:focus,
.inquiry-form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.inquiry-form__select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 1.05rem, calc(100% - 0.72rem) 1.05rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.inquiry-form__textarea {
  resize: vertical;
  min-height: 7rem;
}

.inquiry-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.inquiry-roster {
  margin: 1.65rem 0 0;
  text-align: center;
}

.inquiry-roster__link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.inquiry-roster__link:hover {
  color: var(--text);
}

.inquiry-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.inquiry-card.is-complete .inquiry-card__reachout {
  display: none;
}

.inquiry-card.is-complete .inquiry-form[hidden] {
  display: none;
}

.inquiry-success {
  padding: 0.5rem 0 0.25rem;
  text-align: center;
}

.inquiry-success__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.inquiry-success__body {
  margin: 0 auto;
  max-width: 40ch;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.footer__link[aria-current="page"] {
  color: var(--text);
}

.page-contractors .site-header {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.contractors-hero {
  padding: calc(var(--header-h) + 4rem) 0 clamp(4rem, 10vw, 6rem);
}

.contractors-hero__intro {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.contractors-hero__inner {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.contractors-hero__label {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contractors-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contractors-hero__accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contractors-hero__dek {
  margin: 1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.contractors-signup {
  margin-top: 2rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(207, 85, 37, 0.28);
  background: rgba(8, 8, 10, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -36px rgba(207, 85, 37, 0.35);
}

.contractors-signup__status {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.contractors-signup__note {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.contractors-card {
  width: min(100%, 44rem);
  margin-top: 2.25rem;
}

.roster-roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.55rem 0.75rem;
  margin: 0 0 1.15rem;
}

.roster-roles__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.roster-roles__option:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.roster-roles__option:has(input:focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.roster-roles__option:has(input:checked) {
  border-color: rgba(207, 85, 37, 0.55);
  background: rgba(207, 85, 37, 0.12);
}

.roster-roles__option input {
  accent-color: var(--accent);
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  flex-shrink: 0;
}

.roster-roles__other-label {
  margin-top: 0.25rem;
}

.roster-form__fineprint {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.roster-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contractors-card.is-complete .inquiry-form[hidden] {
  display: none;
}

/* ——— Real estate (hidden client page) ——— */
.page-real-estate .site-header {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.re-hero {
  padding: calc(var(--header-h) + 4rem) 0 clamp(3rem, 8vw, 5rem);
}

.re-hero__inner {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.re-hero__label {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.re-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.re-hero__accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.re-hero__dek {
  margin: 1.15rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.re-offerings {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}

.re-offerings__title {
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-dim);
}

.re-offerings__grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.35rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 820px) {
  .re-offerings__grid {
    grid-template-columns: 1fr;
  }
}

.re-offerings__card {
  padding: clamp(1.35rem, 3vw, 1.75rem);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.re-offerings__index {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ember);
}

.re-offerings__name {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.re-offerings__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.re-cta {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 6rem);
  border-top: 1px solid var(--line);
}

.re-cta__inner {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.re-cta__label {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.re-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.re-cta__dek {
  margin: 1rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.re-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

/* ——— Footer ——— */
.site-footer {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3rem);
  border-top: none;
  background: transparent;
  text-align: center;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.footer__brand {
  margin: 0;
}

.footer__brand-mark {
  display: block;
  height: 1.5rem;
  width: auto;
  max-width: 180px;
  margin-inline: auto;
}

.footer__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.footer__tagline-accent {
  display: block;
  margin-top: 0.2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.footer__sep {
  color: var(--text-dim);
  user-select: none;
}

.footer__link {
  display: inline;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.footer__copy {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.footer__copy-sep {
  margin: 0 0.4em;
  opacity: 0.4;
}

.footer__quiet {
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a.footer__quiet:hover {
  color: var(--text-muted);
  opacity: 0.85;
}

span.footer__quiet[aria-current="page"] {
  opacity: 0.65;
}

.footer-social__link {
  --social-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  transition:
    color 0.35s var(--social-spring),
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.45s var(--social-spring),
    box-shadow 0.45s ease;
}

.footer-social__link::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 6px 20px rgba(207, 85, 37, 0.28),
    0 0 18px var(--accent-glow);
  animation: footer-social-ember 2s ease-in-out infinite;
}

.footer-social__link:hover::before,
.footer-social__link:focus-visible::before {
  opacity: 0.22;
}

.footer-social__link:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.footer-social__icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  transition:
    transform 0.45s var(--social-spring),
    color 0.3s ease;
}

.footer-social__link:hover .footer-social__icon,
.footer-social__link:focus-visible .footer-social__icon {
  transform: rotate(-6deg) scale(1.08);
  color: var(--ember);
}

@keyframes footer-social-ember {
  0%,
  100% {
    box-shadow:
      0 6px 20px rgba(207, 85, 37, 0.22),
      0 0 14px rgba(240, 176, 96, 0.18);
  }

  50% {
    box-shadow:
      0 8px 26px rgba(207, 85, 37, 0.38),
      0 0 24px rgba(240, 176, 96, 0.32);
  }
}

.footer__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer__note {
  margin: 0;
  max-width: 48ch;
}

/* ——— Immersive layer (Sentry-style motion + depth) ——— */
:root {
  --reveal-distance: 22px;
  --reveal-duration: 0.88s;
  --reveal-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.intro-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.intro-lock {
    overflow: auto;
  }

  .intro {
    display: none !important;
  }

  .work-marquee__track {
    animation: none !important;
  }

  .hero__grain {
    animation: none !important;
    opacity: 0.12 !important;
  }

  .process-hero__video {
    opacity: 0.16 !important;
  }

  [data-reveal],
  .hero__title-line,
  .site-header {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  [data-depth-scene],
  [data-depth-inner],
  [data-depth-blox],
  [data-hero-float],
  [data-header-tilt],
  [data-reel-frame],
  .page-stage,
  body.is-route-pulse .page-stage {
    transform: none !important;
    filter: none !important;
  }

  /* Slower full 360° under reduced motion (still one revolution = all faces) */
  .logo-carousel__ring {
    animation: none !important;
  }

  .hero__orb {
    animation: none !important;
    opacity: 0.15 !important;
  }

  .site-backdrop__orb,
  .site-backdrop__mesh,
  .site-backdrop__grain {
    animation: none !important;
    transform: none !important;
  }

  .site-backdrop__orb--1 {
    opacity: 0.75 !important;
  }

  .site-backdrop__orb--2 {
    opacity: 0.7 !important;
  }

  .site-backdrop__orb--3 {
    opacity: 0.55 !important;
  }

  .lanes__plate {
    transition: opacity 0.2s ease !important;
  }

  .lanes__word {
    transform: none !important;
    transition: color 0.2s ease, text-shadow 0.2s ease !important;
    text-shadow: none !important;
    filter: none !important;
  }

  .lanes__item.is-active .lanes__word,
  .lanes__item:hover .lanes__word,
  .lanes__item:focus-visible .lanes__word {
    transform: none !important;
    color: #fff !important;
  }

  .footer-social__link,
  .footer-social__link:hover,
  .footer-social__link:focus-visible {
    transform: none !important;
    animation: none !important;
    box-shadow: none !important;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
  }

  .footer-social__link::before {
    transition: none !important;
  }

  .footer-social__icon,
  .footer-social__link:hover .footer-social__icon,
  .footer-social__link:focus-visible .footer-social__icon {
    transform: none !important;
  }
}

/* Entry sequence — forge / coal motif */
.intro {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forge-black);
  overflow: hidden;
  transition:
    opacity 0.85s var(--reveal-ease),
    visibility 0.85s step-end;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 88%, rgba(207, 85, 37, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 35% at 50% 42%, rgba(240, 176, 96, 0.06), transparent 55%);
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: var(--brand-grid);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 72%);
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.intro__ember {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(240, 176, 96, 0.65);
  opacity: 0;
  animation: introEmberDrift 4.5s ease-in-out infinite;
}

.intro__ember--1 {
  left: 18%;
  bottom: 22%;
  animation-delay: 0.2s;
}

.intro__ember--2 {
  left: 72%;
  bottom: 28%;
  animation-delay: 1.1s;
}

.intro__ember--3 {
  left: 44%;
  bottom: 14%;
  width: 2px;
  height: 2px;
  animation-delay: 2.4s;
}

.intro__ember--4 {
  left: 58%;
  bottom: 34%;
  animation-delay: 0.8s;
}

.intro__ember--5 {
  left: 32%;
  bottom: 38%;
  animation-delay: 1.9s;
}

.intro__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 100vw;
}

.intro__kicker {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--warm-smoke);
}

.intro__kicker-line {
  display: inline-block;
  animation: introFadeUp 0.9s var(--reveal-ease) both;
}

.intro__forge {
  margin-bottom: 2.5rem;
}

.intro__loading {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: introForgeGlow 2.2s ease-in-out infinite;
}

.intro__bar {
  position: relative;
  width: min(300px, 72vw);
  margin-inline: auto;
  padding-bottom: 10px;
}

.intro__bar-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  overflow: visible;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.intro__bar-bed {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, #2a2826 0%, #121110 55%, #0a0908 100%),
    repeating-linear-gradient(
      100deg,
      transparent,
      transparent 4px,
      rgba(255, 255, 255, 0.025) 4px,
      rgba(255, 255, 255, 0.025) 5px
    );
}

.intro__bar-coals {
  position: absolute;
  left: 8%;
  right: 8%;
  top: calc(100% - 6px);
  height: 6px;
  border-radius: 0 0 40% 40%;
  opacity: 0.55;
  background: radial-gradient(ellipse 90% 100% at 50% 0%, rgba(40, 36, 34, 0.9), transparent 72%);
  filter: blur(1px);
}

.intro__bar-fill {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  overflow: visible;
  background: linear-gradient(
    90deg,
    var(--oxidized) 0%,
    var(--hot-steel) 28%,
    #f0b060 52%,
    #f0c89a 68%,
    var(--hot-steel) 88%,
    var(--ember) 100%
  );
  box-shadow:
    0 0 14px rgba(207, 85, 37, 0.45),
    0 0 28px rgba(240, 176, 96, 0.22),
    inset 0 1px 0 rgba(255, 230, 200, 0.35);
  animation: introForgeProgress 2.35s cubic-bezier(0.33, 0.86, 0.42, 1) forwards;
}

.intro__bar-shine {
  position: absolute;
  inset: 1px 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 240, 220, 0.35) 0%, transparent 55%);
  pointer-events: none;
  animation: introMoltenShimmer 1.8s ease-in-out infinite;
}

.intro__bar-meniscus {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 10px;
  height: 160%;
  transform: translateY(-50%);
  border-radius: 45% 55% 50% 50%;
  background: radial-gradient(ellipse at 30% 50%, #fff0dc 0%, #f0b060 35%, rgba(207, 85, 37, 0) 72%);
  filter: blur(0.5px);
  animation: introMeniscusPulse 0.85s ease-in-out infinite;
}

.intro__bar-fill::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  left: 0;
  height: 5px;
  background: inherit;
  filter: blur(2px);
  opacity: 0.7;
  clip-path: polygon(
    0% 100%,
    8% 55%,
    18% 80%,
    28% 40%,
    38% 75%,
    48% 35%,
    58% 70%,
    68% 45%,
    78% 85%,
    88% 50%,
    96% 90%,
    100% 100%
  );
  animation: introMeltWobble 2.4s ease-in-out infinite;
}

.intro.is-hidden .intro__bar-fill,
.intro.is-hidden .intro__bar-shine,
.intro.is-hidden .intro__bar-meniscus,
.intro.is-hidden .intro__ember {
  animation-play-state: paused;
}

.intro__letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.15rem, 2vw, 0.65rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 11vw, 6rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intro__letters span {
  display: inline-block;
  opacity: 0;
  color: var(--flue-white);
  transform: translate3d(0, 44px, 0) rotateX(-22deg);
  transform-origin: 50% 100%;
  text-shadow: 0 0 0 transparent;
  animation: introLetterForge 0.85s var(--reveal-ease) forwards;
  animation-delay: calc(0.5s + var(--i) * 0.07s);
}

.intro.is-hidden .intro__letters span {
  animation: none;
  opacity: 1;
  transform: none;
  text-shadow: 0 0 24px rgba(207, 85, 37, 0.2);
}

@keyframes introForgeProgress {
  to {
    width: 100%;
  }
}

@keyframes introMeniscusPulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-54%) scale(1.12, 1.2);
    opacity: 1;
  }
}

@keyframes introMoltenShimmer {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes introMeltWobble {
  0%,
  100% {
    clip-path: polygon(
      0% 100%,
      10% 60%,
      22% 85%,
      34% 45%,
      46% 78%,
      58% 38%,
      70% 72%,
      82% 48%,
      92% 88%,
      100% 100%
    );
  }
  50% {
    clip-path: polygon(
      0% 100%,
      12% 48%,
      24% 72%,
      36% 52%,
      48% 82%,
      60% 42%,
      72% 68%,
      84% 55%,
      94% 78%,
      100% 100%
    );
  }
}

@keyframes introEmberDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.6);
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
    transform: translate3d(12px, -48px, 0) scale(0.2);
  }
}

@keyframes introForgeGlow {
  0%,
  100% {
    opacity: 0.55;
    color: var(--text-dim);
  }
  50% {
    opacity: 1;
    color: rgba(245, 240, 235, 0.72);
  }
}

@keyframes introLetterForge {
  0% {
    opacity: 0;
    transform: translate3d(0, 44px, 0) rotateX(-22deg);
    text-shadow: 0 0 0 transparent;
    color: var(--oxidized);
  }
  55% {
    color: #f0b060;
    text-shadow:
      0 0 20px rgba(207, 85, 37, 0.35),
      0 0 40px rgba(240, 176, 96, 0.15);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg);
    color: var(--flue-white);
    text-shadow: 0 0 18px rgba(207, 85, 37, 0.12);
  }
}

@keyframes introFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Hero depth */
.hero__media-shift {
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__grain {
  position: absolute;
  inset: -20%;
  z-index: 1;
  opacity: 0.22;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grainShift 6s steps(4) infinite;
  mix-blend-mode: overlay;
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2%, 1%);
  }
  50% {
    transform: translate(1%, -1%);
  }
  75% {
    transform: translate(-1%, 2%);
  }
  100% {
    transform: translate(0, 0);
  }
}

.hero__title-line {
  display: block;
}

.hero__explore {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  max-width: 48ch;
}

.hero__explore-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95em;
  color: var(--text);
}

.hero__explore-cta {
  display: inline-block;
  margin-left: 0.35rem;
}

.hero__explore-cta a {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__explore-cta a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.hero__lede--sub {
  font-size: 1rem;
  opacity: 0.92;
}

.magnetic-wrap {
  display: inline-block;
}

.magnetic-wrap .btn {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

/* Scroll reveals */
[data-reveal],
.hero__title-line {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  filter: blur(3px);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    filter var(--reveal-duration) var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible,
.hero__title-line.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.site-header {
  opacity: 0;
  transform: translate3d(0, -16px, 0);
  transition: opacity 0.9s var(--reveal-ease) 0.15s, transform 0.9s var(--reveal-ease) 0.15s,
    background 0.35s ease, backdrop-filter 0.35s ease;
}

body.intro-done .site-header {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.site-header__inner {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Global “stage” + in-page navigation depth */
.page-stage {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transition:
    transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.75s ease;
  will-change: transform;
}

body.is-route-pulse .page-stage {
  transform: perspective(2400px) translate3d(0, 0, -12px) scale(0.997);
  filter: brightness(0.975) saturate(0.99);
}

/* Scroll-synced scene tilt */
[data-depth-scene] {
  --scene-rx: 0deg;
  --scene-rz: 0deg;
  transform: perspective(2400px) rotateX(var(--scene-rx)) rotateZ(var(--scene-rz));
  transform-origin: 50% 45%;
  transform-style: preserve-3d;
  will-change: transform;
}

[data-depth-inner] {
  --parallax-y: 0px;
  --parallax-z: 0px;
  transform: translate3d(0, var(--parallax-y), var(--parallax-z));
  transform-style: preserve-3d;
  will-change: transform;
}

[data-depth-blox] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-depth-blox]:hover {
  box-shadow: 0 28px 70px -55px rgba(0, 0, 0, 0.45);
}

/* Hero floating depth */
.hero__content-float {
  position: relative;
  z-index: 3;
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero__stage-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 900px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.18;
  animation: orbFloat 22s ease-in-out infinite;
}

.hero__orb--1 {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  left: -8%;
  top: 18%;
  background: radial-gradient(circle, rgba(207, 85, 37, 0.5) 0%, transparent 68%);
  animation-delay: 0s;
}

.hero__orb--2 {
  width: min(38vw, 340px);
  height: min(38vw, 340px);
  right: -5%;
  bottom: 22%;
  background: radial-gradient(circle, rgba(122, 155, 174, 0.32) 0%, transparent 70%);
  animation-delay: -4.5s;
}

.hero__orb--3 {
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  left: 38%;
  top: 8%;
  background: radial-gradient(circle, rgba(244, 241, 234, 0.08) 0%, transparent 72%);
  animation-delay: -9s;
  opacity: 0.5;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(1.2%, -1.8%, 8px) scale(1.025);
  }
  66% {
    transform: translate3d(-1.5%, 1.2%, -6px) scale(0.99);
  }
}

/* Specular sweep on project placeholders (real frames get same shine) */
.work-tile__media--specular {
  position: relative;
  --spec-x: 50%;
  --spec-y: 42%;
  overflow: hidden;
}

.work-tile__media--specular::after {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(
    circle 48% at var(--spec-x) var(--spec-y),
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.02) 36%,
    transparent 58%
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

.work-tile--placeholder .work-tile__media--specular::after {
  opacity: 0.32;
}

/* Service panels — depth-ready */
.service-list li[data-tilt-panel] {
  transform-style: preserve-3d;
  transition:
    transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}

.service-list li[data-tilt-panel]:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.4);
}

/* Reel frame */
.reel-card[data-reel-frame] {
  transform-style: preserve-3d;
  transition:
    transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
  will-change: transform;
}

.reel-card[data-reel-frame]:hover {
  box-shadow:
    0 0 0 1px rgba(207, 85, 37, 0.08),
    0 28px 60px -40px rgba(0, 0, 0, 0.4);
}

@media (pointer: coarse) {
  [data-depth-scene],
  [data-depth-inner] {
    transform: none !important;
  }

  [data-depth-blox] {
    transform: none !important;
  }

  [data-reel-frame] {
    transform: none !important;
  }

  body.is-route-pulse .page-stage {
    transform: none !important;
    filter: none !important;
  }
}

/* ——— Process page ——— */
.page-process .site-header {
  opacity: 1;
  transform: none;
}

.process-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.process-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.process-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.28;
}

.process-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.42) 100%
  );
}

.process-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.process-hero__label {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}

.process-hero__title {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.process-hero__accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.process-hero__quote {
  margin: 0 0 2.25rem;
  padding: 0;
  border: 0;
  max-width: 38ch;
}

.process-hero__quote p {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.55;
}

.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.process-step__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.process-step--alt .process-step__grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
}

.process-step--alt .process-step__content {
  order: 2;
}

.process-step--alt .process-step__media {
  order: 1;
}

.process-step__count {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.process-step__count span {
  color: var(--accent);
}

.process-step__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.process-step__body {
  margin: 0;
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.process-step__body em {
  font-style: italic;
  color: var(--text);
}

.process-step__signoff {
  margin: 1.35rem 0 0;
  max-width: 46ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
}

.process-step__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  min-height: 220px;
}

.process-step__photo,
.process-step__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.process-step__media--wide {
  aspect-ratio: 21 / 10;
}

.process-step__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  background:
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.018) 10px,
      rgba(255, 255, 255, 0.018) 11px
    );
}

.process-step__placeholder--01 {
  background-image:
    radial-gradient(ellipse 75% 55% at 68% 38%, rgba(207, 85, 37, 0.14), transparent 58%),
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.018) 10px,
      rgba(255, 255, 255, 0.018) 11px
    );
}

.process-step__placeholder--02 {
  background-image:
    radial-gradient(ellipse 70% 50% at 32% 42%, rgba(122, 155, 174, 0.12), transparent 55%),
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.018) 10px,
      rgba(255, 255, 255, 0.018) 11px
    );
}

.process-step__placeholder--03 {
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(207, 85, 37, 0.18), transparent 62%),
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.018) 10px,
      rgba(255, 255, 255, 0.018) 11px
    );
}

.process-step__placeholder--04 {
  background-image:
    radial-gradient(ellipse 65% 48% at 72% 55%, rgba(74, 107, 90, 0.12), transparent 58%),
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.018) 10px,
      rgba(255, 255, 255, 0.018) 11px
    );
}

.process-step__placeholder--05 {
  background-image:
    radial-gradient(ellipse 75% 55% at 40% 45%, rgba(240, 176, 96, 0.14), transparent 58%),
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.018) 10px,
      rgba(255, 255, 255, 0.018) 11px
    );
}

.process-step__placeholder-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.process-step__placeholder-path {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  color: rgba(245, 240, 235, 0.28);
  letter-spacing: 0.04em;
}

.process-cta {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.process-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-cta__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.process-cta__dek {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}

@media (max-width: 860px) {
  .process-step__grid,
  .process-step--alt .process-step__grid {
    grid-template-columns: 1fr;
  }

  .process-step--alt .process-step__content,
  .process-step--alt .process-step__media {
    order: unset;
  }

  .process-step__media {
    max-width: 28rem;
  }

  .process-step__placeholder-label,
  .process-step__placeholder-path {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .process-step__media {
    position: relative;
  }
}

/* Work marquee (Sentry-style repeat) */
.section--work {
  position: relative;
  overflow: clip;
  padding-top: clamp(3rem, 7vw, 5rem);
}

.section--work__inner {
  position: relative;
  z-index: 2;
}

.work-marquee {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.5rem;
  z-index: 1;
  opacity: 0.16;
  user-select: none;
}

.work-marquee__viewport {
  overflow: hidden;
  width: 100%;
}

.work-marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.work-marquee__group {
  display: flex;
  flex-shrink: 0;
  gap: clamp(2rem, 6vw, 5rem);
  padding-right: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.work-marquee__group span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(244, 241, 234, 0.12);
}

@keyframes marqueeScroll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Work tiles — 3D tilt */
.work-tile[data-tilt] {
  perspective: 1400px;
}

.work-tile[data-tilt] .work-tile__link {
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease,
    border-color 0.3s ease;
}

.work-tile[data-tilt] .work-tile__media {
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.45s ease;
}

.work-tile[data-tilt]:hover .work-tile__media {
  filter: brightness(1.025) contrast(1.01);
}

@media (pointer: coarse) {
  .work-tile[data-tilt] .work-tile__link {
    transform: none !important;
  }
}

/* ——— Portfolio page ——— */
.page-portfolio {
  --portfolio-cat-h: 3.75rem;
}

/* Site header is position:fixed (out of flow). Offset the category bar
   so it starts below the header, then stick to that same offset on scroll. */
body.page-portfolio {
  padding-top: var(--header-h);
}

.portfolio-cat-bar {
  position: sticky;
  top: var(--header-h, 4rem);
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portfolio-cat-bar__inner {
  padding-block: 0.65rem;
}

.portfolio-cat-nav {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.portfolio-cat-nav__btn {
  position: relative;
  z-index: 1;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-cat-nav__btn:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.portfolio-cat-nav__btn.is-active {
  color: var(--text);
}

.portfolio-cat-nav__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.portfolio-cat-nav__indicator {
  position: absolute;
  bottom: 0.15rem;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(207, 85, 37, 0.45);
  transition:
    left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.portfolio-main {
  overflow: hidden;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.portfolio-track {
  display: flex;
  width: 300%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.portfolio-panel {
  flex: 0 0 33.333%;
  min-width: 33.333%;
  padding-top: clamp(2.5rem, 5.5vw, 4rem);
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.portfolio-panel.is-active {
  opacity: 1;
}

.portfolio-panel__head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.portfolio-panel__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.portfolio-panel__dek {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.portfolio-panel__note {
  margin: 0.7rem auto 0;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ——— Immersions: capability explainer (intentionally lighter than the grid) ——— */
.immersions-caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3.5vw, 2.5rem);
  text-align: left;
}

.immersions-cap__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

.immersions-cap__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.immersions-reel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.immersions-reel__label {
  margin: 0.6rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-smoke);
}

.immersions-note {
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  max-width: 46ch;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.immersions-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 2.5rem) clamp(1.75rem, 4vw, 3rem);
  margin: clamp(2.25rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

#panel-immersions .portfolio-grid {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.immersions-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 3.5rem;
}

.immersions-logos__wide {
  width: 11.5rem;
}

.immersions-logos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.2))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.06));
}

@media (max-width: 760px) {
  .immersions-caps,
  .immersions-reel {
    grid-template-columns: 1fr;
  }
}

.portfolio-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Narratives: landscape pairs stack to the Shrike poster; I See Red sits under it */
@media (min-width: 901px) {
  .portfolio-grid--narratives {
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "fp shrike salt"
      "hc shrike mfm"
      "bu isr sd";
  }

  .narratives-cell--fp { grid-area: fp; }
  .narratives-cell--shrike { grid-area: shrike; }
  .narratives-cell--salt { grid-area: salt; }
  .narratives-cell--hc { grid-area: hc; }
  .narratives-cell--isr { grid-area: isr; }
  .narratives-cell--mfm { grid-area: mfm; }
  .narratives-cell--bu { grid-area: bu; }
  .narratives-cell--sd { grid-area: sd; }

  .portfolio-grid--narratives .narratives-cell--fp .portfolio-card,
  .portfolio-grid--narratives .narratives-cell--salt .portfolio-card,
  .portfolio-grid--narratives .narratives-cell--hc .portfolio-card,
  .portfolio-grid--narratives .narratives-cell--mfm .portfolio-card,
  .portfolio-grid--narratives .narratives-cell--shrike .portfolio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .portfolio-grid--narratives .narratives-cell--fp .portfolio-card__media,
  .portfolio-grid--narratives .narratives-cell--salt .portfolio-card__media,
  .portfolio-grid--narratives .narratives-cell--hc .portfolio-card__media,
  .portfolio-grid--narratives .narratives-cell--mfm .portfolio-card__media {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 0;
  }

  .portfolio-grid--narratives .narratives-cell--shrike .portfolio-card__media--poster {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-cat-nav__btn {
    padding-inline: 0.75rem;
    font-size: 0.72rem;
  }
}

.portfolio-card {
  margin: 0;
}

.portfolio-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.portfolio-card__link:focus-visible {
  outline: none;
}

.portfolio-card__link:focus-visible .portfolio-card__media {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(207, 85, 37, 0.35);
  box-shadow: 0 20px 48px -28px rgba(207, 85, 37, 0.45);
}

.portfolio-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.02) 8px,
      rgba(255, 255, 255, 0.02) 9px
    );
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.portfolio-card__poster,
.portfolio-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-card__media--poster {
  aspect-ratio: var(--poster-ratio, 2 / 3);
  background-color: #0a0a0a;
}

.portfolio-card__media--poster .portfolio-card__poster {
  object-fit: contain;
  object-position: center;
}

.portfolio-card__poster {
  z-index: 1;
  transition: opacity 0.12s ease;
}

.portfolio-card__poster.is-missing {
  opacity: 0;
  pointer-events: none;
}

.portfolio-card__video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.12s ease;
  background: transparent;
}

.portfolio-card__media.is-video-ready .portfolio-card__video {
  opacity: 1;
}

.portfolio-card__media.is-video-ready .portfolio-card__poster:not(.is-missing) {
  opacity: 0;
}

.portfolio-card__media--spotlights {
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(207, 85, 37, 0.12), transparent 60%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.02) 8px,
      rgba(255, 255, 255, 0.02) 9px
    );
}

.portfolio-card__media--narratives {
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(122, 155, 174, 0.1), transparent 60%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.02) 8px,
      rgba(255, 255, 255, 0.02) 9px
    );
}

.portfolio-card__media--immersions {
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(74, 107, 90, 0.1), transparent 60%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.02) 8px,
      rgba(255, 255, 255, 0.02) 9px
    );
}

.portfolio-card:hover .portfolio-card__media,
.portfolio-card:focus-within .portfolio-card__media {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(207, 85, 37, 0.35);
  box-shadow: 0 20px 48px -28px rgba(207, 85, 37, 0.45);
}

.portfolio-card__title {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-track {
    transition: none;
  }

  .portfolio-card:hover .portfolio-card__media {
    transform: none;
  }
}

