/* ==========================================================================
   Karl Goody v4 — Understated, motion-heavy, dark
   ========================================================================== */

:root {
  /* Type */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.2rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.4rem);
  --text-3xl: clamp(2.6rem, 1.4rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 1.2rem + 6.5vw, 7.5rem);

  /* Space (4px) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Color — Shaw brand on near-black */
  --bg: #08080a;
  --bg-2: #0c0c0f;
  --bg-3: #121217;
  --surface: #14141a;
  --surface-2: #1b1b22;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #eceae4;
  --text-muted: #9997a0;
  --text-faint: #5c5a62;

  --shaw: #e84810;
  --shaw-2: #ff6a2b;
  --shaw-deep: #b5380a;
  --shaw-glow: rgba(232, 72, 16, 0.35);

  --grid: rgba(255, 255, 255, 0.04);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 500ms;

  --content-w: 1240px;
}

/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 100px;
}
@media (max-width: 820px) {
  html {
    /* Tighter offset for the smaller mobile nav so in-page anchors don't leave a big gap */
    scroll-padding-top: 64px;
  }
}
body {
  min-height: 100dvh;
  line-height: 1.55;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}
img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}
ul[role='list'] {
  list-style: none;
}
em {
  font-style: italic;
}
h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
  max-width: 68ch;
}

::selection {
  background: var(--shaw);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--shaw);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   WebGL shader background (fixed)
   ========================================================================== */

#shader-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.72;
  pointer-events: none;
  mix-blend-mode: screen;
}
@media (max-width: 820px) {
  #shader-bg {
    opacity: 0.55;
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 12%, rgba(232, 72, 16, 0.18), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(255, 106, 43, 0.12), transparent 50%),
    linear-gradient(180deg, #070709 0%, #0b0b0f 50%, #08080a 100%);
  z-index: -2;
}

/* Subtle global grid */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}

/* ==========================================================================
   Ticker (fixed, top)
   ========================================================================== */

.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  z-index: 40;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: stretch;
}
.ticker-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: rgba(12, 12, 15, 0.95);
  color: var(--text-faint);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 1px solid var(--border);
  z-index: 2;
  white-space: nowrap;
}
.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--shaw);
  box-shadow: 0 0 6px var(--shaw);
  animation: pulse 2.8s ease-in-out infinite;
}
.ticker-fade { display: none; }
@media (max-width: 620px) {
  .ticker-badge {
    font-size: 9.5px;
    padding: 0 8px;
  }
}
.ticker-track-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 56px), transparent 100%);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  height: 100%;
  padding: 0 var(--s-8);
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
  min-width: max-content;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-muted);
}
.ticker-item strong {
  color: var(--text);
  font-weight: 500;
}
.ticker-item .up {
  color: #4ade80;
}
.ticker-item .dn {
  color: #f87171;
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Navigation (floating pill)
   ========================================================================== */

.nav {
  position: fixed;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding: 10px 12px 10px 16px;
  background: rgba(12, 12, 15, 0.72);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: top 300ms var(--ease), transform 300ms var(--ease);
  max-width: calc(100vw - 32px);
}
.nav.scrolled {
  /* Leave ~12px of breathing room below the 28px ticker instead of overlapping it */
  top: 40px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  flex-shrink: 0;
}
.brand-mark {
  flex-shrink: 0;
}
.nav-name {
  color: var(--text);
  white-space: nowrap;
}
.nav-sep {
  color: var(--text-faint);
  opacity: 0.6;
}
.nav-firm {
  color: var(--text-muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-firm em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--shaw);
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0;
  margin: 0 2px;
}
.nav-firm-logo {
  display: block;
  height: 20px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.95;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  line-height: 1;
  white-space: nowrap;
  color: var(--text-muted);
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.nav-cta {
  background: var(--shaw);
  color: #fff !important;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.nav-cta > span[aria-hidden] {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 13px;
  transform: translateY(-0.5px);
}
.nav-cta:hover {
  background: var(--shaw-2) !important;
  color: #fff !important;
}

@media (max-width: 820px) {
  .nav {
    padding: 5px 6px 5px 10px;
    gap: var(--s-2);
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    justify-content: space-between;
    left: 10px;
    right: 10px;
    transform: none;
  }
  .nav-sep,
  .nav-firm,
  .nav-firm-logo {
    display: none;
  }
  .nav-name {
    font-size: 13px;
  }
  .nav-links {
    gap: 0;
  }
  .nav-links a {
    padding: 6px 8px;
    font-size: 12.5px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .nav-cta {
    padding: 6px 12px !important;
  }
}

/* Tablet/narrow desktop: keep nav from wrapping the CTA */
@media (min-width: 821px) and (max-width: 1020px) {
  .nav-links {
    gap: 0;
  }
  .nav-links a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Mobile burger + sheet nav
   ========================================================================== */

.nav-burger {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  transition: background 160ms ease, border-color 160ms ease;
}
.nav-burger:hover,
.nav-burger:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  outline: none;
}
.nav-burger-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 220ms ease, opacity 160ms ease;
}
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(1) {
  transform: translateY(2.75px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(2) {
  transform: translateY(-2.75px) rotate(-45deg);
}

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

.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  visibility: hidden;
}
.mobile-sheet[data-open="true"] {
  pointer-events: auto;
  visibility: visible;
}
.mobile-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 5, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.mobile-sheet[data-open="true"] .mobile-sheet-backdrop {
  opacity: 1;
}
.mobile-sheet-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: #14110f;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  padding: 18px 22px 28px;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
}
.mobile-sheet[data-open="true"] .mobile-sheet-panel {
  transform: translateX(0);
}
.mobile-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}
.mobile-sheet-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.mobile-sheet-close {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}
.mobile-sheet-close:hover,
.mobile-sheet-close:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.mobile-sheet-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  display: flex;
  flex-direction: column;
}
.mobile-sheet-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #f5f0ea;
  text-decoration: none;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.mobile-sheet-list a:hover,
.mobile-sheet-list a:focus-visible {
  color: #fff;
  outline: none;
}
.mobile-sheet-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  min-width: 22px;
}
.mobile-sheet-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 14px 18px;
  background: #e84810;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.mobile-sheet-cta:hover,
.mobile-sheet-cta:focus-visible {
  background: #ff5b1f;
  outline: none;
}
.mobile-sheet-foot {
  margin-top: auto;
  padding-top: 26px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
}

body[data-sheet-open="true"] {
  overflow: hidden;
}
@media (min-width: 821px) {
  .mobile-sheet {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  padding: clamp(140px, 18vh, 220px) var(--s-6) var(--s-16);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--content-w);
  margin: 0 auto;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  background: rgba(12, 12, 15, 0.65);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
}
@media (max-width: 540px) {
  .hero-meta {
    font-size: 10.5px;
    gap: var(--s-2);
    padding: 5px 10px 5px 8px;
  }
  .hero-meta .meta-md { display: none; }
}
.hero-meta .sep {
  opacity: 0.4;
}
.hero-meta .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.hero-title {
  margin-top: var(--s-8);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06em;
}
.hero-title .line {
  display: block;
  position: relative;
}
.hero-title .accent {
  color: var(--shaw);
  font-style: italic;
  background: linear-gradient(
    90deg,
    var(--shaw) 0%,
    var(--shaw-2) 40%,
    #ffd2a8 60%,
    var(--shaw-2) 80%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 7s linear infinite;
}
.hero-title .accent em {
  font-style: italic;
}
@keyframes shine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.hero-sub {
  margin-top: var(--s-6);
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: 44ch;
}
.hero-sub em {
  font-family: var(--font-display);
  color: var(--shaw);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-10);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 22px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out),
    border-color 180ms var(--ease-out), color 180ms var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 72, 16, 0.2);
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: var(--shaw);
  color: #fff;
  box-shadow: 0 8px 28px rgba(232, 72, 16, 0.35);
}
.btn-primary:hover {
  background: var(--shaw-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(232, 72, 16, 0.5);
}
.btn-primary .arrow {
  transition: transform 180ms var(--ease-out);
}
.btn-primary:hover .arrow {
  transform: translateX(4px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stat-strip {
  margin-top: var(--s-16);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  max-width: 760px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.stat {
  background: rgba(12, 12, 15, 0.7);
  padding: var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.stat-unit {
  font-size: 0.6em;
  color: var(--text-muted);
  margin-left: 2px;
}
@media (max-width: 560px) {
  /* Stat strip reads as firm metadata on small screens and adds more height than value — hide on mobile */
  .stat-strip {
    display: none;
  }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 16px;
  opacity: 0.6;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--text-faint), transparent);
  animation: scroll-pull 2.4s ease-in-out infinite;
}
@keyframes scroll-pull {
  0%,
  100% {
    transform: scaleY(0.4) translateY(0);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1) translateY(0);
    opacity: 1;
  }
}

/* reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Marquee trust strip
   ========================================================================== */

.marquee-wrap {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 11, 0.4);
  overflow: hidden;
  padding: var(--s-6) 0;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--s-8);
  white-space: nowrap;
  animation: marquee 58s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
  font-style: italic;
  color: var(--text-faint);
  will-change: transform;
}
.marquee-track span:nth-child(even) {
  color: var(--shaw);
  font-style: normal;
  opacity: 0.6;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Shared section
   ========================================================================== */

.section {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 160px) var(--s-6);
  isolation: isolate;
}
/* Anchor-jump target: pull the section's scroll-top upward so nav links land
   with the kicker just below the nav, instead of leaving ~200px of dead space
   created by scroll-padding-top (100) + section padding-top (clamp 80-160). */
.section[id] {
  scroll-margin-top: calc(-1 * clamp(60px, 7vw, 110px));
}
@media (max-width: 820px) {
  .section[id] {
    /* Mobile nav is tighter; section padding is smaller too */
    scroll-margin-top: calc(-1 * clamp(24px, 5vw, 48px));
  }
}
.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, #000 50%, transparent 100%);
}

.section-head {
  max-width: 820px;
  margin-bottom: var(--s-16);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin-bottom: var(--s-6);
  background: rgba(12, 12, 15, 0.5);
}
.kicker span {
  color: var(--shaw);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-3xl);
  letter-spacing: -0.025em;
  /* Looser line-height + bottom padding so italic serif descenders (e.g. 'g' in Defining / obligation) render fully */
  line-height: 1.12;
  padding-bottom: 0.18em;
  color: var(--text);
}
.section-title em {
  color: var(--shaw);
  font-style: italic;
  display: inline-block;
  /* Extra vertical room for gradient-clipped italic glyphs so the 'g' hook isn't trimmed by the text bounding box on iOS Safari */
  line-height: 1.15;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  background: linear-gradient(90deg, var(--shaw), var(--shaw-2) 60%, #ffc08d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-lede {
  margin-top: var(--s-6);
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 56ch;
}

/* ==========================================================================
   Themes grid
   ========================================================================== */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 980px) {
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }
}

.theme-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.92), rgba(12, 12, 15, 0.88));
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  transition: transform 500ms var(--ease-out), border-color 400ms var(--ease-out),
    box-shadow 500ms var(--ease-out);
}
.theme-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--shaw) 80deg,
    var(--shaw-2) 140deg,
    transparent 200deg,
    transparent 360deg
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 450ms var(--ease-out);
  animation: spin 8s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.theme-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--shaw-glow);
}
.theme-card:hover::before {
  opacity: 1;
}
.theme-art {
  aspect-ratio: 16 / 10;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 900ms var(--ease-out);
  position: relative;
}
.theme-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 12, 15, 0.85));
}
.theme-card:hover .theme-art {
  transform: scale(1.08);
}
.theme-body {
  padding: var(--s-5) var(--s-6) var(--s-6);
  position: relative;
  z-index: 1;
}
.theme-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--shaw);
  margin-bottom: var(--s-3);
}
.theme-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--s-3);
}
.theme-body p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s-4);
}
.theme-tags li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.theme-card:hover .theme-tags li {
  border-color: rgba(232, 72, 16, 0.35);
  color: var(--shaw-2);
}

/* ==========================================================================
   Scroll-driven scene
   ========================================================================== */

.scene {
  position: relative;
  height: 400vh;
}
.scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 30%, rgba(232, 72, 16, 0.14), transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(181, 56, 10, 0.1), transparent 55%), #070709;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#sceneCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(100px, 10vw, 140px) clamp(24px, 6vw, 96px) clamp(60px, 8vw, 100px);
  pointer-events: none;
  max-width: 1280px;
  margin: 0 auto;
}
.scene-head {
  text-align: center;
}
.scene-head .kicker {
  justify-content: center;
  display: inline-flex;
}
.scene-head .section-title {
  margin: var(--s-3) auto 0;
  max-width: 18ch;
}
.scene-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}
.hud-block {
  padding: var(--s-5) var(--s-5);
  background: rgba(10, 10, 12, 0.62);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0.32;
  filter: saturate(0.6);
  transform: translateY(0);
  transition: opacity 500ms var(--ease-out), filter 500ms var(--ease-out),
    border-color 500ms var(--ease-out), box-shadow 500ms var(--ease-out),
    transform 500ms var(--ease-out);
  min-width: 0;
}
.hud-block.active {
  opacity: 1;
  filter: saturate(1);
  border-color: rgba(232, 72, 16, 0.45);
  box-shadow: 0 20px 60px -20px rgba(232, 72, 16, 0.35),
    0 0 0 1px rgba(232, 72, 16, 0.2) inset;
  transform: translateY(-4px);
}
.hud-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 500ms var(--ease-out);
}
.hud-block.active .hud-label {
  color: var(--shaw);
}
.hud-block h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin: var(--s-3) 0;
}
.hud-block p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
@media (max-width: 980px) {
  .scene-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  /* Abandon the sticky-pin pattern on phones so all four cards are visible.
     Scene becomes a normal-flowing section with the canvas behind the cards. */
  .scene {
    height: auto;
  }
  .scene-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: auto;
    overflow: visible;
  }
  #sceneCanvas {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0.55;
  }
  .scene-hud {
    position: relative;
    inset: auto;
    padding: clamp(64px, 12vw, 96px) 20px clamp(64px, 12vw, 96px);
    gap: 28px;
  }
  .scene-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .hud-block {
    padding: var(--s-4);
    opacity: 1;
    filter: saturate(1);
  }
  .scene-spacer {
    display: none;
  }
}

/* ==========================================================================
   Interviews / videos
   ========================================================================== */

.section-interviews {
  padding-top: clamp(100px, 12vw, 200px);
}
.video-featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--s-10);
  align-items: center;
  margin-bottom: var(--s-16);
  padding: var(--s-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.7), rgba(12, 12, 15, 0.7));
  position: relative;
  overflow: hidden;
}
.video-featured::after {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(232, 72, 16, 0.14), transparent 60%);
  pointer-events: none;
}
@media (max-width: 980px) {
  .video-featured {
    grid-template-columns: 1fr;
    padding: var(--s-5);
  }
}
.video-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  cursor: pointer;
  transform: translateZ(0);
}
.video-thumb-inner,
.video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out), filter 800ms var(--ease-out);
  filter: saturate(0.85) brightness(0.78);
}
.video-thumb:hover img {
  transform: scale(1.05);
  filter: saturate(1.05) brightness(0.9);
}
.video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(12, 12, 15, 0.2) 0%,
    rgba(12, 12, 15, 0.05) 40%,
    rgba(12, 12, 15, 0.55) 100%
  );
  pointer-events: none;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  transition: transform 260ms var(--ease-out);
  z-index: 2;
}
.video-play.small {
  width: 54px;
  height: 54px;
}
.video-thumb:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
}
.video-play svg {
  filter: drop-shadow(0 10px 22px rgba(232, 72, 16, 0.55));
}
.video-meta {
  padding: var(--s-2) var(--s-2);
}
.video-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shaw);
  margin-bottom: var(--s-3);
}
.video-meta h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--s-3);
}
.video-meta h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text);
  margin: var(--s-2) 0 var(--s-2);
  line-height: 1.25;
}
.video-meta p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--s-3);
}
.video-context {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
@media (max-width: 720px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Inline MP4 player buttons */
button.video-thumb.video-player {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  background: var(--bg-3);
  display: block;
  width: 100%;
  text-align: left;
  /* Force the aspect-ratio to win against intrinsic content sizing */
  height: auto;
  min-height: 0;
  flex: none;
  align-self: start;
}
.video-card > button.video-thumb.video-player,
.video-featured > button.video-thumb.video-player {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
/* Pin direct img + overlays inside the button so aspect-ratio wins */
.video-card > button.video-thumb.video-player > img,
.video-card > button.video-thumb.video-player > .video-gradient,
.video-card > button.video-thumb.video-player > .video-play {
  position: absolute;
}
.video-card > button.video-thumb.video-player > img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card > button.video-thumb.video-player > .video-gradient {
  inset: 0;
}
.video-card > button.video-thumb.video-player > .video-play {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
button.video-thumb.video-player:focus-visible {
  outline: 2px solid var(--shaw);
  outline-offset: 3px;
}
.video-inline-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.video-thumb.is-playing {
  cursor: default;
}
.video-thumb.is-playing .video-gradient,
.video-thumb.is-playing .video-play {
  display: none;
}
.video-card {
  background: rgba(12, 12, 15, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 400ms var(--ease-out), border-color 300ms var(--ease-out),
    box-shadow 400ms var(--ease-out);
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 72, 16, 0.35);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}
.video-card .video-thumb {
  border-radius: 0;
}
.video-card .video-meta {
  padding: var(--s-5);
}
/* Static (non-interactive) video cards — placeholder state before real recordings */
.video-card.is-static,
.video-featured.is-static {
  cursor: default;
}
.video-card.is-static .video-thumb,
.video-featured.is-static .video-thumb {
  cursor: default;
}
.video-card.is-static:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}
.video-card.is-static .video-thumb:hover img,
.video-featured.is-static .video-thumb:hover img {
  transform: none;
  filter: saturate(0.85) brightness(0.78);
}
.video-note {
  margin-top: var(--s-10);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-align: center;
}

/* ==========================================================================
   About (photo + bio + credentials)
   ========================================================================== */

.section-about {
  background: linear-gradient(180deg, #08080a 0%, #0d0d10 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: var(--s-16);
  align-items: start;
}
@media (max-width: 920px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--s-10);
  }
}

.about-photo {
  position: sticky;
  top: 100px;
  margin: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
@media (max-width: 920px) {
  .about-photo { position: static; max-width: 420px; }
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.02) saturate(0.98);
  transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.about-photo:hover img { transform: scale(1.03); }
.about-photo figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-5) var(--s-6);
  border-top: 1px solid var(--border-2);
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(8px);
}
.about-photo-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  color: var(--text);
}
.about-photo-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.about-copy p {
  color: var(--text);
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: var(--s-5);
  max-width: 58ch;
}
.about-copy p.about-lede {
  font-size: var(--text-xl);
  line-height: 1.45;
  color: var(--text);
  margin-bottom: var(--s-6);
}
.about-copy p.about-lede em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--shaw);
}
.about-copy p em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--shaw);
}

.about-creds {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-8) 0 var(--s-8);
  padding: var(--s-6);
  background: rgba(12, 12, 15, 0.72);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.cred-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.cred-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.cred-row dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 3px;
}
.cred-row dd {
  color: var(--text);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.cred-row dd em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--shaw);
}

/* ==========================================================================
   Notes — featured publication
   ========================================================================== */

.feature-doc-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 112px);
  max-width: 1100px;
  margin: 0 auto;
}
.feature-doc-stack > .feature-doc + .feature-doc {
  padding-top: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--border-2);
  margin-top: calc(clamp(56px, 8vw, 112px) * -1);
}

.feature-doc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-doc-cover {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0c;
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(232, 72, 16, 0.08);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
  aspect-ratio: 3 / 4.25;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 72, 16, 0.15);
}
.feature-doc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms var(--ease-out);
}
.feature-doc-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}
@media (hover: hover) {
  .feature-doc-cover:hover {
    transform: translateY(-4px);
    box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(232, 72, 16, 0.25);
  }
  .feature-doc-cover:hover img {
    transform: scale(1.02);
  }
}
.feature-doc-body {
  min-width: 0;
}
.feature-doc-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shaw);
  margin-bottom: var(--s-4);
}
.feature-doc-eyebrow em {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--shaw);
}
.feature-doc-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 var(--s-3);
}
.feature-doc-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 var(--s-6);
}
.feature-doc-brief {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 0 var(--s-4);
}
.feature-doc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.feature-doc-download {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 200ms, border-color 200ms;
}
.feature-doc-download:hover {
  color: var(--shaw);
  border-bottom-color: var(--shaw);
}
@media (max-width: 820px) {
  .feature-doc {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
  }
  .feature-doc-cover {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.section-contact {
  padding-left: clamp(24px, 6vw, 96px);
  padding-right: clamp(24px, 6vw, 96px);
}
.contact-top {
  max-width: 880px;
  margin: 0 auto var(--s-10);
}
.contact-details {
  max-width: 880px;
  margin: var(--s-10) auto 0;
}
.contact-top .section-title {
  max-width: 14ch;
}
@media (max-width: 820px) {
  .contact-top {
    margin-bottom: var(--s-10);
  }
  .section-contact {
    /* Land closer to the top of the section when jumping via #contact on mobile */
    padding-top: clamp(48px, 9vw, 80px);
  }
}
.contact-copy .section-title {
  margin-top: var(--s-4);
}
.contact-copy p {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-top: var(--s-5);
  max-width: 52ch;
}
.contact-card {
  background: rgba(12, 12, 15, 0.72);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: var(--s-4);
  backdrop-filter: blur(12px);
}
.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-5) var(--s-4);
  border-radius: var(--radius-sm);
  transition: background 240ms var(--ease-out);
}
.contact-row + .contact-row {
  border-top: 1px solid var(--border);
}
@media (hover: hover) {
  .contact-row:hover:not(.static) {
    background: rgba(232, 72, 16, 0.06);
  }
  .contact-row:hover .contact-arrow {
    color: var(--shaw);
    transform: translateX(4px);
  }
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact-value {
  font-size: var(--text-sm);
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-arrow {
  font-family: var(--font-mono);
  color: var(--text-faint);
  transition: color 220ms, transform 220ms;
}
.contact-row.static .contact-value {
  color: var(--text-muted);
}
@media (max-width: 560px) {
  .contact-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label arrow"
      "value arrow";
    gap: 6px var(--s-3);
    padding: var(--s-4) var(--s-3);
  }
  .contact-label { grid-area: label; }
  .contact-value { grid-area: value; font-size: 15px; }
  .contact-arrow { grid-area: arrow; align-self: center; }
}

/* ---- Lead capture form ---- */
.lead-form-wrap {
  position: relative;
  background: rgba(12, 12, 15, 0.72);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.6);
  min-width: 0;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .lead-form-wrap {
    padding: var(--s-6) var(--s-5);
  }
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
}
.lead-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.lead-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shaw);
}
.lead-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 400;
  margin: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field-hint {
  color: var(--text-faint);
  text-transform: none;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}
.lead-form textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
.lead-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%),
    linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
  cursor: pointer;
}
.lead-form select option {
  background: #0c0c0f;
  color: var(--text);
}
.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--text-faint);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--shaw);
  background: rgba(232, 72, 16, 0.05);
  box-shadow: 0 0 0 3px rgba(232, 72, 16, 0.14);
}
.lead-form input:invalid:not(:placeholder-shown),
.lead-form select:invalid:not(:focus) {
  /* keep subtle — only show errors after submit via .has-error */
}
.lead-form .has-error {
  border-color: #e0574a;
  box-shadow: 0 0 0 3px rgba(224, 87, 74, 0.14);
}
.field-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  padding: var(--s-3) 0 var(--s-1);
  cursor: pointer;
}
.field-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 160ms, background 160ms;
}
.field-consent input[type="checkbox"]:checked {
  background: var(--shaw);
  border-color: var(--shaw);
}
.field-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.field-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--shaw);
  outline-offset: 2px;
}
.field-consent em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--shaw);
}
.lead-submit {
  align-self: flex-start;
  margin-top: var(--s-2);
}
.lead-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.lead-submit.is-sending .lead-submit-label::after {
  content: "…";
}
.lead-fine {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin: 0;
}
.lead-error {
  color: #e0574a;
  font-size: 12.5px;
  margin: 0;
}
.lead-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) 0;
}
.lead-form[hidden],
.lead-success[hidden] {
  display: none !important;
}
.lead-success-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(232, 72, 16, 0.12);
  border: 1px solid rgba(232, 72, 16, 0.4);
  color: var(--shaw);
  font-size: 22px;
  font-weight: 500;
}
.lead-success h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}
.lead-success p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  max-width: 48ch;
}
.lead-success a {
  color: var(--shaw);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--s-16) var(--s-6) var(--s-8);
  background: rgba(6, 6, 8, 0.7);
  backdrop-filter: blur(10px);
}
.footer-grid {
  max-width: var(--content-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-10);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}
.foot-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text);
}
.foot-sub {
  margin-top: var(--s-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.foot-sub em {
  font-style: italic;
  color: var(--shaw);
}
.foot-logo {
  display: block;
  margin-top: var(--s-3);
  height: 34px;
  width: auto;
  opacity: 0.95;
}
.foot-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-3);
}
.foot-col p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.foot-bottom {
  max-width: var(--content-w);
  margin: var(--s-8) auto 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8);
}
@media (max-width: 820px) {
  .foot-bottom {
    grid-template-columns: 1fr;
  }
}
.foot-disclaimer-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 72ch;
}
.foot-disclaimer {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.55;
}
.foot-compliance {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.55;
}
.foot-compliance a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot-compliance a:hover {
  color: var(--text);
}
.foot-meta {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-align: right;
}
@media (max-width: 820px) {
  .foot-meta {
    text-align: left;
  }
}
.foot-v {
  color: var(--shaw);
}

/* ==========================================================================
   Video modal
   ========================================================================== */

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-8);
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}
.video-modal.open {
  display: flex;
  opacity: 1;
}
.video-modal-inner {
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.video-frame {
  width: 100%;
  height: 100%;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-close {
  position: absolute;
  top: var(--s-6);
  right: var(--s-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-2);
  transition: background 220ms, transform 220ms;
}
.video-close:hover {
  background: var(--shaw);
  transform: rotate(90deg);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
