/* Immigrationely v3 - cinematic rebuild, no Webflow layout debt. */
:root {
  --immi-brown-deep: #7f5112;
  --immi-gold-rich: #d7a74c;
  --immi-brown-cocoa: #5d4037;
  --immi-warm-grey: #efebe9;
  --immi-cream: #f4efe1;
  --immi-gold-champagne: #a68966;
  --immi-grey: #f5f5f5;
  --immi-white-warm: #fffcfa;
  --immi-cream-white: #fff8f0;

  --bg: #290d04;
  --bg-cocoa: var(--immi-brown-cocoa);
  --bg-deep: #1e0b06;
  --text: var(--immi-white-warm);
  --muted: rgba(255, 252, 250, 0.68);
  --gold: var(--immi-gold-champagne);
  --gold-bright: var(--immi-gold-rich);
  --glass: rgba(41, 13, 4, 0.18);
  --glass-strong: rgba(41, 13, 4, 0.28);
  --line: rgba(166, 137, 102, 0.22);

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-tech: "Orbitron", "Inter", system-ui, sans-serif;
  --font-editorial: "Playfair Display", Georgia, serif;

  --container: 72rem;
  --pad-x: clamp(1rem, 3.6vw, 3rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 14%, rgba(127, 81, 18, 0.22), transparent 34rem),
    radial-gradient(circle at 76% 16%, rgba(215, 167, 76, 0.06), transparent 30rem),
    linear-gradient(180deg, #290d04 0%, var(--bg) 58%, #351207 100%);
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.ambient-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #290d04;
}

.ambient-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(215, 167, 76, 0.08), transparent 32rem),
    linear-gradient(90deg, rgba(41, 13, 4, 0.54), rgba(41, 13, 4, 0.06) 44%, rgba(41, 13, 4, 0.54));
}

.ambient-stars video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  mix-blend-mode: screen;
  filter: brightness(1.55) contrast(1.35) saturate(1.05) sepia(0.08);
}

.page-shell {
  position: relative;
  z-index: 1;
  overflow: clip;
}

.container {
  width: min(100% - (var(--pad-x) * 2), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: clamp(1rem, 2.4vh, 1.65rem);
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100% - (var(--pad-x) * 2), var(--container));
  margin-inline: auto;
  pointer-events: none;
}

.brand-lockup,
.menu-trigger {
  pointer-events: auto;
  border-radius: 7px;
  background: var(--glass);
  border: 1px solid rgba(166, 137, 102, 0.015);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: none;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  padding: clamp(0.22rem, 0.7vw, 0.42rem) clamp(0.34rem, 0.9vw, 0.6rem);
}

.brand-lockup img {
  width: auto;
  height: clamp(2rem, 3vw, 3.2rem);
  transition: filter 0.28s ease, opacity 0.28s ease;
}

.menu-trigger {
  padding: clamp(0.62rem, 1.2vw, 0.95rem) clamp(0.9rem, 1.7vw, 1.25rem);
  color: var(--gold);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 0.9;
  letter-spacing: 0.11em;
  transition: letter-spacing 0.2s ease, transform 0.2s ease;
}

.menu-trigger:hover {
  letter-spacing: 0.15em;
  transform: translateY(2px);
}

body.is-light-section .brand-lockup,
body.is-light-section .menu-trigger {
  background: rgba(41, 13, 4, 0.72);
  border-color: rgba(166, 137, 102, 0.34);
  box-shadow: 0 12px 28px rgba(41, 13, 4, 0.14);
}

body.is-light-section .brand-lockup img {
  filter: brightness(0) invert(96%) sepia(10%) saturate(492%) hue-rotate(334deg) brightness(104%) contrast(101%);
  opacity: 0.96;
}

body.is-light-section .menu-trigger {
  color: var(--immi-cream-white);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  justify-items: end;
  align-content: start;
  gap: clamp(0.2rem, 0.8vw, 0.7rem);
  padding: clamp(7rem, 16vh, 10rem) max(var(--pad-x), calc((100vw - var(--container)) / 2 + var(--pad-x))) 3rem var(--pad-x);
  background: rgba(30, 11, 6, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.roll-link {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: transparent;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  perspective: 400px;
}

.roll-link span {
  display: block;
  padding: 0.08em 0;
  transition: transform 0.5s var(--ease);
  transform-origin: center top;
}

.roll-link .original {
  color: var(--immi-white-warm);
  text-shadow: 0 0 20px rgba(166, 137, 102, 0.24);
}

.roll-link .hovered {
  position: absolute;
  inset: 0;
  color: var(--gold);
  transform: translateY(100%) rotateX(-90deg);
}

.roll-link:hover .original { transform: translateY(-100%) rotateX(90deg); }
.roll-link:hover .hovered { transform: translateY(0) rotateX(0); }

.hero-section {
  position: relative;
  min-height: clamp(42rem, 86svh, 58rem);
  display: grid;
  align-items: start;
  overflow: hidden;
  padding-block: clamp(5.8rem, 12vh, 8rem) clamp(1.25rem, 3vh, 2.25rem);
}

.hero-starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0.82;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  align-items: center;
  gap: clamp(0rem, 1.6vw, 2rem);
  padding-top: clamp(0.25rem, 1.2vh, 0.9rem);
}

.hero-orbit {
  position: relative;
  justify-self: start;
  width: clamp(22.5rem, 43.2vw, 40.5rem);
  aspect-ratio: 1 / 1;
  margin-left: clamp(-4.5rem, -5vw, -1rem);
  overflow: visible;
  background:
    radial-gradient(circle at 50% 48%, rgba(41, 13, 4, 0.1) 0 44%, rgba(41, 13, 4, 0.38) 62%, transparent 74%),
    radial-gradient(circle at 42% 52%, rgba(215, 167, 76, 0.05), transparent 62%);
}

.compass-wordfield,
.compass-asset {
  position: absolute;
  inset: 0;
}

.compass-wordfield {
  inset: 4%;
  z-index: 0;
  overflow: hidden;
  border-radius: 50%;
  color: rgba(255, 252, 250, 0.78);
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 0.9;
  filter: blur(0.15px);
  mask-image: radial-gradient(circle, black 0 73%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle, black 0 73%, transparent 74%);
}

.compass-wordfield::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 54% 48%, transparent 0 38%, rgba(41, 13, 4, 0.2) 58%, rgba(41, 13, 4, 0.82) 100%),
    linear-gradient(90deg, rgba(41, 13, 4, 0.7), transparent 35%, transparent 65%, rgba(41, 13, 4, 0.68));
  z-index: 1;
  pointer-events: none;
}

.word {
  position: absolute;
  z-index: 0;
  display: block;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(41, 13, 4, 0.66);
  opacity: 0.8;
  animation:
    word-float-a 9.5s ease-in-out infinite alternate,
    word-pulse 3.2s ease-in-out infinite alternate;
}

.word:nth-child(3n + 1) { color: rgba(255, 252, 250, 0.85); }
.word:nth-child(3n + 2) { color: rgba(204, 34, 24, 0.82); }
.word:nth-child(3n) { color: rgba(166, 137, 102, 0.72); }
.word:nth-child(4n) { animation-name: word-float-b, word-pulse; }
.word:nth-child(5n) { animation-name: word-float-c, word-pulse; }
.word:nth-child(7n) { animation-name: word-float-d, word-pulse; }

.w1 { top: 17%; left: 24%; font-size: clamp(1rem, 2.25vw, 2.25rem); animation-delay: -1s; }
.w2 { top: 28%; left: 46%; font-size: clamp(0.9rem, 1.9vw, 1.9rem); animation-delay: -3s; }
.w3 { top: 13%; left: 49%; font-size: clamp(1.05rem, 2.3vw, 2.3rem); animation-delay: -5s; }
.w4 { top: 50%; left: 51%; font-size: clamp(1.25rem, 3vw, 2.95rem); animation-delay: -7s; }
.w5 { top: 60%; left: 61%; font-size: clamp(0.85rem, 1.75vw, 1.75rem); animation-delay: -2s; }
.w6 { top: 75%; left: 20%; font-size: clamp(0.8rem, 1.7vw, 1.65rem); animation-delay: -4s; }
.w7 { top: 22%; left: 16%; font-size: clamp(0.9rem, 1.85vw, 1.8rem); animation-delay: -6s; }
.w8 { top: 36%; left: 65%; font-size: clamp(0.8rem, 1.55vw, 1.5rem); animation-delay: -8s; }
.w9 { top: 72%; left: 47%; font-size: clamp(0.9rem, 1.95vw, 1.9rem); animation-delay: -9s; }
.w10 { top: 63%; left: 12%; font-size: clamp(0.9rem, 1.85vw, 1.8rem); animation-delay: -10s; }
.w11 { top: 43%; left: 22%; font-size: clamp(0.7rem, 1.4vw, 1.35rem); animation-delay: -11s; }
.w12 { top: 67%; left: 4%; font-size: clamp(1rem, 2.1vw, 2.05rem); animation-delay: -12s; }
.w13 { top: 62%; left: 28%; font-size: clamp(0.75rem, 1.55vw, 1.5rem); animation-delay: -13s; }
.w14 { top: 58%; left: 70%; font-size: clamp(0.9rem, 2vw, 1.95rem); animation-delay: -14s; }
.w15 { top: 40%; left: 36%; font-size: clamp(0.62rem, 1.25vw, 1.2rem); animation-delay: -15s; }
.w16 { top: 32%; left: 8%; font-size: clamp(0.68rem, 1.25vw, 1.25rem); animation-delay: -16s; }
.w17 { top: 78%; left: 59%; font-size: clamp(0.95rem, 2.15vw, 2.1rem); animation-delay: -17s; }
.w18 { top: 82%; left: 12%; font-size: clamp(1rem, 2.15vw, 2.1rem); animation-delay: -18s; }
.w19 { top: 8%; left: 20%; font-size: clamp(0.7rem, 1.45vw, 1.4rem); animation-delay: -19s; }
.w20 { top: 46%; left: 70%; font-size: clamp(0.9rem, 1.9vw, 1.85rem); animation-delay: -20s; }
.w21 { top: 21%; left: 66%; font-size: clamp(0.65rem, 1.35vw, 1.3rem); animation-delay: -21s; }
.w22 { top: 7%; left: 55%; font-size: clamp(0.75rem, 1.5vw, 1.45rem); animation-delay: -22s; }
.w23 { top: 86%; left: 36%; font-size: clamp(0.65rem, 1.35vw, 1.3rem); animation-delay: -23s; }
.w24 { top: 68%; left: 76%; font-size: clamp(0.78rem, 1.65vw, 1.6rem); animation-delay: -24s; }
.w25 { top: 27%; left: 24%; font-size: clamp(0.62rem, 1.25vw, 1.2rem); animation-delay: -25s; }
.w26 { top: 38%; left: 3%; font-size: clamp(0.8rem, 1.7vw, 1.65rem); animation-delay: -26s; }
.w27 { top: 15%; left: 11%; font-size: clamp(0.75rem, 1.55vw, 1.5rem); animation-delay: -27s; }
.w28 { top: 53%; left: 29%; font-size: clamp(0.62rem, 1.25vw, 1.2rem); animation-delay: -28s; }
.w29 { top: 73%; left: 56%; font-size: clamp(0.7rem, 1.5vw, 1.45rem); animation-delay: -29s; }
.w30 { top: 34%; left: 50%; font-size: clamp(0.65rem, 1.35vw, 1.3rem); animation-delay: -30s; }
.w31 { top: 10%; left: 29%; font-size: clamp(0.68rem, 1.4vw, 1.35rem); animation-delay: -31s; }
.w32 { top: 81%; left: 45%; font-size: clamp(0.68rem, 1.4vw, 1.35rem); animation-delay: -32s; }
.w33 { top: 30%; left: 58%; font-size: clamp(0.7rem, 1.55vw, 1.5rem); animation-delay: -33s; }
.w34 { top: 56%; left: 5%; font-size: clamp(0.7rem, 1.55vw, 1.5rem); animation-delay: -34s; }
.w35 { top: 72%; left: 76%; font-size: clamp(0.8rem, 1.7vw, 1.65rem); animation-delay: -35s; }
.w40 { top: 50%; left: 51%; font-size: clamp(1.25rem, 3vw, 2.95rem); animation-delay: -40s; }

.compass-asset {
  z-index: 2;
  top: 50%;
  left: 50%;
  width: calc(190% + 13px);
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(41, 13, 4, 0.28));
  pointer-events: none;
}

@keyframes word-float-a {
  from { transform: translate3d(-14px, -9px, 0) scale(0.98); }
  to { transform: translate3d(16px, 11px, 0) scale(1.055); }
}

@keyframes word-float-b {
  from { transform: translate3d(12px, -14px, 0) scale(1.035); }
  to { transform: translate3d(-16px, 12px, 0) scale(0.97); }
}

@keyframes word-float-c {
  from { transform: translate3d(-18px, 12px, 0) scale(0.96); }
  to { transform: translate3d(14px, -15px, 0) scale(1.05); }
}

@keyframes word-float-d {
  from { transform: translate3d(10px, 16px, 0) scale(0.98); }
  to { transform: translate3d(-14px, -12px, 0) scale(1.06); }
}

@keyframes word-pulse {
  0% { opacity: 0.04; filter: blur(1px) brightness(0.7); }
  48% { opacity: 1; filter: blur(0px) brightness(1.45); }
  100% { opacity: 0.08; filter: blur(0.8px) brightness(0.75); }
}

.hero-copy {
  justify-self: end;
  width: min(100%, 35rem);
  text-align: left;
  transform: translateX(2rem);
}

.hero-eyebrow {
  margin-bottom: clamp(0.25rem, 0.8vw, 0.75rem);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.55vw, 1.65rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.hero-copy h1 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 5.1vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-shadow: 0 0 26px rgba(30, 11, 6, 0.24);
}

.scroll-cue {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 82px;
  height: 82px;
  pointer-events: none;
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform;
  color: var(--gold-bright);
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-shadow: 0 0 9px rgba(30, 11, 6, 0.72);
}

.scroll-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-bg {
  fill: none;
  stroke: rgba(245, 245, 245, 0.46);
  stroke-width: 6;
}

.scroll-progress {
  fill: none;
  stroke: var(--gold-bright);
  stroke-linecap: round;
  stroke-width: 7;
  transition: stroke-dashoffset 0.12s linear;
}

.scroll-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateX(0.055em);
}

body.is-light-section .scroll-cue {
  color: var(--immi-brown-deep);
  text-shadow: 0 0 8px rgba(255, 248, 240, 0.95), 0 1px 8px rgba(41, 13, 4, 0.2);
}

body.is-light-section .scroll-bg {
  stroke: rgba(41, 13, 4, 0.34);
}

body.is-light-section .scroll-progress {
  stroke: var(--immi-brown-deep);
}

.section {
  position: relative;
  padding-block: clamp(3rem, 8vh, 6rem);
}

.section-kicker {
  color: var(--gold-bright);
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.firm-section {
  background: transparent;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-top-color: transparent;
  border-radius: 18px;
  background: rgba(30, 11, 6, 0.28);
  box-shadow: 0 0 70px rgba(30, 11, 6, 0.2);
}

.intro-panel .section-kicker {
  grid-column: 1 / -1;
  font-size: 1.13rem;
}

.intro-panel h2,
.services-heading h2,
.dossier-card h2,
.contact-card h2 {
  color: var(--immi-cream-white);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro-panel h2 span { color: var(--gold); }

.intro-copy {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.48vw, 1.42rem);
  line-height: 1.72;
}

.services-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(166, 137, 102, 0.18), transparent 26rem),
    linear-gradient(180deg, var(--immi-cream-white), #f1e7d7 76%, #efe1cc);
  color: var(--bg-deep);
}

.services-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.services-heading {
  display: grid;
  gap: 0.6rem;
  max-width: 42rem;
}

.services-heading .section-kicker { color: var(--immi-brown-deep); }
.services-heading h2 { color: var(--immi-brown-cocoa); }
.services-heading p { color: rgba(30, 11, 6, 0.68); font-size: 1.1rem; }

.services-stack {
  position: relative;
  min-height: clamp(92rem, 260vh, 150rem);
  display: grid;
  grid-template-columns: minmax(15rem, 0.95fr) minmax(12.5rem, 0.55fr);
  gap: clamp(0.8rem, 2.4vw, 3rem);
  align-items: start;
}

.service-card-stack,
.service-nav {
  position: sticky;
  top: clamp(6rem, 14vh, 9rem);
}

.service-card-stack {
  width: min(100%, 30rem);
  height: clamp(31rem, 53vw, 43rem);
  perspective: 900px;
}

.service-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 30% 1fr;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(93, 64, 55, 0.92), rgba(41, 13, 4, 0.98)),
    var(--immi-brown-cocoa);
  border: 1px solid rgba(166, 137, 102, 0.22);
  box-shadow: 0 26px 70px rgba(41, 13, 4, 0.22);
  color: var(--immi-cream-white);
  opacity: 0.95;
  transform: translate3d(var(--stack-x, 0), var(--stack-y, 0), 0) rotate(var(--stack-r, 0deg)) scale(var(--stack-s, 1));
  transform-origin: 42% 52%;
  transition: transform 0.96s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.72s ease, filter 0.72s ease;
  will-change: transform;
}

.service-card:nth-child(1) { --stack-x: 0; --stack-y: 0; --stack-r: -1deg; --stack-s: 1; z-index: 5; }
.service-card:nth-child(2) { --stack-x: 5%; --stack-y: 2.5%; --stack-r: 6deg; --stack-s: 0.97; z-index: 4; }
.service-card:nth-child(3) { --stack-x: -5%; --stack-y: 5%; --stack-r: -7deg; --stack-s: 0.94; z-index: 3; }
.service-card:nth-child(4) { --stack-x: 8%; --stack-y: 8%; --stack-r: 10deg; --stack-s: 0.91; z-index: 2; }
.service-card:nth-child(5) { --stack-x: -8%; --stack-y: 10%; --stack-r: -10deg; --stack-s: 0.88; z-index: 1; }

.service-card.is-active {
  --stack-x: 0;
  --stack-y: 0;
  --stack-r: 0deg;
  --stack-s: 0.96;
  z-index: 8;
  opacity: 1;
  filter: none;
}

.service-card.is-exiting-left {
  z-index: 12;
  opacity: 0;
  filter: blur(0.6px) brightness(0.94);
  transform: translate3d(-112%, -1%, 0) rotate(-10deg) rotateY(-10deg) scale(0.92);
  pointer-events: none;
}

.service-card.is-exiting-right {
  z-index: 12;
  opacity: 0;
  filter: blur(0.6px) brightness(0.94);
  transform: translate3d(62%, -1%, 0) rotate(8deg) rotateY(9deg) scale(0.92);
  pointer-events: none;
}

.service-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.12) saturate(0.9);
}

.service-card div {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.service-card h3 {
  color: var(--immi-cream-white);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.service-card p {
  max-width: 28rem;
  color: rgba(255, 248, 240, 0.86);
  font-family: ui-monospace, "SFMono-Regular", "Courier New", monospace;
  line-height: 1.6;
}

.service-card span {
  color: var(--gold-bright);
  font-family: ui-monospace, "SFMono-Regular", "Courier New", monospace;
  font-weight: 800;
  font-style: italic;
}

.service-nav {
  display: grid;
  gap: clamp(1rem, 2vw, 1.45rem);
  padding-top: clamp(0rem, 4vh, 2rem);
}

.service-nav p {
  max-width: 22rem;
  color: rgba(30, 11, 6, 0.74);
  line-height: 1.55;
}

.service-nav-item {
  position: relative;
  width: fit-content;
  color: rgba(30, 11, 6, 0.58);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  transition: color 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.service-nav-item::before {
  content: "";
  position: absolute;
  top: 0.56em;
  right: calc(100% + 0.75rem);
  width: 0.55rem;
  height: 2px;
  background: currentColor;
  opacity: 0.55;
}

.service-nav-item.is-active {
  color: var(--bg-deep);
  transform: translateX(0.35rem);
}

.service-scroll-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.4rem;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(93, 64, 55, 0.14);
}

.service-scroll-fill {
  display: block;
  width: calc((var(--service-progress, 0) + 1) * 20%);
  height: 100%;
  border-radius: inherit;
  background: var(--immi-brown-cocoa);
  transition: width 0.28s ease;
}

.dossier-section,
.contact-section {
  background: linear-gradient(180deg, rgba(93, 64, 55, 0.88), rgba(30, 11, 6, 0.72));
}

.dossier-card,
.contact-card {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(30, 11, 6, 0.32);
}

.dossier-card p:last-child,
.contact-card a {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.65;
}

.contact-card a {
  color: var(--gold-bright);
  width: fit-content;
}

@media (max-width: 980px) {
  .hero-section {
    align-items: start;
    padding-top: clamp(6.5rem, 14vh, 8rem);
  }

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

  .hero-copy {
    grid-row: 1;
    justify-self: center;
    width: min(100%, 34rem);
    text-align: left;
    transform: none;
  }

  .hero-orbit {
    grid-row: 2;
    justify-self: center;
    width: min(82vw, 31rem);
    margin-left: 0;
  }

  .intro-panel {
    grid-template-columns: 1fr;
  }

  .site-header {
    width: calc(100% - (var(--pad-x) * 2));
  }

}

@media (max-width: 480px) {
  .services-stack {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .service-card-stack,
  .service-nav {
    position: relative;
    top: auto;
  }

  .service-card-stack {
    height: auto;
    display: grid;
    gap: 1rem;
    perspective: none;
  }

  .service-card,
  .service-card.is-active {
    position: relative;
    transform: none;
  }

  .service-card:not(.is-active) {
    display: none;
  }

  .service-nav {
    order: -1;
  }
}

@media (max-width: 560px) {
  .brand-lockup img { height: 1.9rem; }
  .menu-trigger { font-size: 1rem; padding: 0.55rem 0.72rem; }
  .hero-copy h1 { font-size: clamp(2rem, 13vw, 3.7rem); }
  .hero-eyebrow { font-size: clamp(0.85rem, 4.2vw, 1.1rem); }
  .hero-orbit { width: min(92vw, 26rem); }
  .service-card { min-height: 27rem; }
}

@media (hover: none) {
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
