/* =========================================================
   Shalom Cars — Design Tokens & Core System
   Light theme is default. [data-theme="dark"] swaps tokens.
   ========================================================= */
:root {
  color-scheme: light;

  --bg: #F4F7FB;
  --bg-2: #E8EEF5;
  --surface: #FFFFFF;
  --ink: #0B131D;
  --body: #243242;
  --soft: #4A5B6D;
  --mute: #627486;

  --red: #D2101C;
  --red-hot: #F0442F;
  --red-deep: #8C070E;
  --red-wash: rgba(210, 16, 28, 0.08);

  --edge: rgba(16, 32, 52, 0.16);
  --edge-soft: rgba(255, 255, 255, 0.62);

  --grad-a: #090E14;
  --grad-b: #1E2B38;
  --grad-c: #3A4B5C;

  --card: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34) 55%, rgba(255, 255, 255, 0.48));
  --card-hover: rgba(210, 16, 28, 0.075);
  --panel-inset: rgba(232, 239, 247, 0.54);
  --input-bg: #FFFFFF;
  --placeholder: #6B7C8E;
  --option-bg: #FFFFFF;

  --shadow-sm: 0 6px 18px -10px rgba(14, 30, 52, 0.18);
  --shadow-md: 0 16px 38px -20px rgba(14, 30, 52, 0.22);
  --shadow-lg: 0 28px 64px -30px rgba(14, 30, 52, 0.28);

  --vignette: rgba(255, 255, 255, 0.5);
  --grain-blend: soft-light;
  --grain-opacity: 0.05;
  --spot: rgba(210, 16, 28, 0.08);
  --map-filter: saturate(0.95) contrast(1.02);
  --media-fallback: linear-gradient(150deg, #E4EBF3, #F6F9FC 55%, #E8EEF5);
  --header-bg: rgba(255, 255, 255, 0.92);
  --mnav-bg: rgba(255, 255, 255, 0.98);

  /* Theme Switcher */
  --switch-bg: rgba(235, 240, 246, 0.9);
  --switch-border: rgba(16, 32, 52, 0.14);
  --switch-off: #4B5B6D;
  --switch-hover: #0B131D;
  --switch-pill: linear-gradient(135deg, #F0442F, #D2101C);
  --switch-pill-shadow: 0 2px 10px rgba(210, 16, 28, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --switch-on: #FFFFFF;

  --font-d: "Archivo", system-ui, sans-serif;
  --font-b: var(--font-d);
  --font-ml: "Noto Sans Malayalam", "IBM Plex Sans", sans-serif;
  --wrap: 1200px;
  --r: 18px;
  --r-lg: 24px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #070A0F;
  --bg-2: #0E131A;
  --surface: #121922;
  --ink: #FFFFFF;
  --body: #E1E8F2;
  --soft: #B2C2D2;
  --mute: #8E9EA0;

  --red: #E4121C;
  --red-hot: #FF3B2F;
  --red-deep: #7C060D;
  --red-wash: rgba(228, 18, 28, 0.16);

  --edge: rgba(255, 255, 255, 0.16);
  --edge-soft: rgba(255, 255, 255, 0.09);

  --grad-a: #FFFFFF;
  --grad-b: #E5ECF2;
  --grad-c: #B9C6D3;

  --card: linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.04));
  --card-hover: rgba(255, 255, 255, 0.1);
  --panel-inset: rgba(255, 255, 255, 0.045);
  --input-bg: rgba(255, 255, 255, 0.06);
  --placeholder: #738496;
  --option-bg: #0E141D;

  --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, 0.85);
  --shadow-md: 0 24px 56px -32px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 36px 80px -40px rgba(0, 0, 0, 0.95);

  --vignette: rgba(3, 5, 8, 0.72);
  --grain-blend: overlay;
  --grain-opacity: 0.18;
  --spot: rgba(228, 18, 28, 0.13);
  --map-filter: grayscale(1) invert(0.92) contrast(0.88) hue-rotate(180deg);
  --media-fallback: linear-gradient(150deg, #141C26, #0B1017 55%, #161F2A);
  --header-bg: rgba(7, 10, 15, 0.92);
  --mnav-bg: rgba(7, 10, 15, 0.98);

  --switch-bg: rgba(18, 24, 32, 0.8);
  --switch-border: rgba(255, 255, 255, 0.16);
  --switch-off: rgba(255, 255, 255, 0.58);
  --switch-hover: #FFFFFF;
  --switch-pill: linear-gradient(135deg, #FF3B2F, #E4121C);
  --switch-pill-shadow: 0 2px 12px rgba(228, 18, 28, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --switch-on: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-d);
  margin: 0;
  line-height: 1.05;
  color: var(--ink);
  font-weight: 700;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas, iframe, video { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Atmosphere Canvas & Overlays ---------- */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.5'/></svg>");
  mix-blend-mode: var(--grain-blend);
  animation: grainShift 1.2s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 92% at 50% 38%, transparent 40%, var(--vignette) 100%);
}
.spot {
  position: fixed;
  width: 640px;
  height: 640px;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
  margin: -320px 0 0 -320px;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle, var(--spot), transparent 62%);
}
body.has-pointer .spot { opacity: 1; }

.site-header, main, .site-footer, .tach { position: relative; z-index: 2; }

/* =========================================================
   Header & Navigation
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--edge-soft);
  box-shadow: 0 10px 30px -15px rgba(10, 20, 35, 0.25);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 84px;
}

/* Brand Logo: Clean circular badge without awkward background pills */
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  transition: transform 0.25s ease;
}
.brand:hover {
  transform: scale(1.05);
}
.brand-img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.brand:hover .brand-img {
  border-color: var(--red);
  box-shadow: 0 4px 18px rgba(210, 16, 28, 0.5);
}
[data-theme="light"] .site-header.is-stuck .brand-img {
  border-color: rgba(16, 32, 52, 0.16);
  box-shadow: 0 4px 14px rgba(16, 32, 52, 0.18);
}

/* Navigation Links */
.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: var(--soft);
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

/* Header un-stuck state over dark hero video */
.site-header:not(.is-stuck) {
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.85) 0%, rgba(5, 7, 10, 0.35) 75%, transparent 100%);
}
.site-header:not(.is-stuck) .nav-link {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.site-header:not(.is-stuck) .nav-link:hover {
  color: #FFFFFF;
}

/* =========================================================
   Theme Switcher Control
   High-contrast, flawless active state & razor-sharp icons
   ========================================================= */
.theme-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--switch-bg);
  border: 1px solid var(--switch-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.site-header:not(.is-stuck) .theme-switch {
  background: rgba(12, 17, 24, 0.75);
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-btn {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--switch-off);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: color 0.25s ease;
}

.site-header:not(.is-stuck) .theme-btn {
  color: rgba(255, 255, 255, 0.65);
}

.theme-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

.theme-btn:hover {
  color: var(--switch-hover);
}
.site-header:not(.is-stuck) .theme-btn:hover {
  color: #FFFFFF;
}

/* Active icon rule — ALWAYS 100% VISIBLE PURE WHITE */
.theme-btn[aria-pressed="true"],
.site-header:not(.is-stuck) .theme-btn[aria-pressed="true"],
.site-header.is-stuck .theme-btn[aria-pressed="true"] {
  color: #FFFFFF !important;
}

.theme-pill {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--switch-pill);
  box-shadow: var(--switch-pill-shadow);
  z-index: 1;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  will-change: transform;
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.82rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-hot), var(--red) 58%, var(--red-deep));
  color: #FFFFFF;
  box-shadow: 0 14px 30px -14px rgba(210, 16, 28, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.42) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover {
  box-shadow: 0 20px 42px -14px rgba(210, 16, 28, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--edge);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: rgba(210, 16, 28, 0.5);
  color: var(--red);
}
.header-cta { padding: 12px 22px; }

/* Ghost button in hero actions */
.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.site-header:not(.is-stuck) .nav-toggle {
  background: rgba(18, 24, 32, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}
.site-header:not(.is-stuck) .nav-toggle span {
  background: #FFFFFF;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 0 clamp(20px, 4vw, 40px) 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.35s ease;
  background: var(--mnav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}
.mobile-nav.is-open {
  max-height: 520px;
  padding-bottom: 26px;
  border-bottom-color: var(--edge-soft);
  box-shadow: 0 20px 40px -25px rgba(10, 20, 35, 0.3);
}
.mobile-link {
  padding: 14px 2px;
  border-bottom: 1px solid var(--edge-soft);
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.mobile-cta { margin-top: 18px; }

/* Text Split Animation */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.w-open { overflow: visible; }
.wi {
  display: inline-block;
  transform: translateY(112%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
[data-anim].anim-in .wi { transform: translateY(0); opacity: 1; }

.hl {
  color: inherit !important;
  background: none !important;
  text-decoration: none !important;
}
.hl::before { display: none !important; }

/* =========================================================
   Hero Section & Directional Studio Spotlight
   High visibility on vehicle mechanics + crisp typography
   ========================================================= */
.hero {
  padding: clamp(140px, 17vh, 190px) 0 0;
  position: relative;
  isolation: isolate;
  background: #05070A;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(860px, 115vh, 1080px);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-color: #05070A;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}
.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  filter: contrast(1.12) saturate(1.15) brightness(1.04);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Top navbar shadow & bottom base dissolve */
    linear-gradient(to bottom, rgba(5, 7, 10, 0.88) 0%, rgba(5, 7, 10, 0.35) 18%, transparent 32%, transparent 68%, rgba(5, 7, 10, 0.96) 100%),
    /* Asymmetrical directional shadow: deep over text on the left, clear over car on the right */
    linear-gradient(90deg, rgba(5, 7, 10, 0.95) 0%, rgba(5, 7, 10, 0.82) 35%, rgba(5, 7, 10, 0.42) 54%, rgba(5, 7, 10, 0.06) 75%, transparent 100%);
  opacity: 0.92;
}
.hero-glow-accent {
  position: absolute;
  right: 15%;
  top: 48%;
  width: 520px;
  height: 400px;
  transform: translate(20%, -30%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(210, 16, 28, 0.16) 0%, rgba(240, 68, 47, 0.05) 50%, transparent 72%);
  filter: blur(44px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 70px);
}
.hero-copy {
  color: #FFFFFF;
}
.hero-kicker {
  font-family: var(--font-ml);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}
.hero-kicker b {
  color: #FFFFFF;
  font-weight: 600;
}
.hero-kicker i {
  font-family: var(--font-b);
  font-style: normal;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.84);
}
.hero-kicker .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-hot);
  flex: none;
  box-shadow: 0 0 0 0 rgba(240, 68, 47, 0.6);
  animation: pulse 2.6s infinite;
}

.hero-title {
  font-size: clamp(3.2rem, 10.5vw, 8.4rem);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  line-height: 0.92;
  background: linear-gradient(176deg, #FFFFFF 15%, #E5ECF4 55%, #CBD7E3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.8));
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.hero-title .ln > span { display: block; transform: translateY(105%); }
.hero-title .ln-sub > span { font-size: 0.36em; font-weight: 600; letter-spacing: 0; padding-top: 0.5em; }

.hero-lede {
  max-width: 54ch;
  margin-top: 28px;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: #E2EAF2;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.88);
}
.hero-lede .hl { color: #FFFFFF; font-weight: 600; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.hero-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}
.hero-note svg { width: 16px; height: 16px; flex: none; color: var(--red-hot); }

@media (max-width: 820px) {
  .hero-bg::after {
    background: linear-gradient(to bottom, rgba(5, 7, 10, 0.88) 0%, rgba(5, 7, 10, 0.75) 50%, rgba(5, 7, 10, 0.94) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
  .hero-bg { background: url("assets/porsche.png") center/cover; opacity: 0.35; }
}

/* Stat Rail — Sleek Aerospace Dark Glass HUD in Both Modes */
.rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(11, 16, 24, 0.78);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 20px 48px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.rail-item {
  padding: 24px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.rail-item:last-child { border-right: none; }
.rail-item strong {
  display: block;
  font-family: var(--font-d);
  font-weight: 700;
  font-stretch: 88%;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1;
}
.rail-item strong em {
  color: var(--red);
}
.rail-item span {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 400;
  color: rgba(225, 235, 248, 0.82);
  line-height: 1.5;
}

/* Marquee Strip — Frosted Bridge */
.strip {
  margin-top: clamp(60px, 8vw, 96px);
  padding: 22px 0;
  overflow: hidden;
  background: rgba(14, 20, 30, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.strip-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  width: max-content;
  animation: slide 42s linear infinite;
}
.strip-track span {
  font-family: var(--font-d);
  font-weight: 600;
  font-stretch: 80%;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 44px;
}
.strip-track span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

/* Natural Organic Blend Bridge: Melts dark hero smoothly into the next section */
.hero-blend-bridge {
  height: 110px;
  margin-top: -1px;
  pointer-events: none;
  background: linear-gradient(to bottom, #05070A 0%, rgba(5, 7, 10, 0.85) 25%, rgba(244, 247, 251, 0.5) 80%, var(--bg) 100%);
}
[data-theme="dark"] .hero-blend-bridge {
  background: linear-gradient(to bottom, #05070A 0%, rgba(7, 10, 15, 0.85) 40%, var(--bg) 100%);
}

/* =========================================================
   Sections & Component Architecture
   ========================================================= */
section { padding: clamp(80px, 12vw, 150px) 0; }
.why { padding-top: clamp(40px, 6vw, 70px); }
.sec-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 66px); }
.sec-head h2 {
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-stretch: 105%;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
}
.sec-head p {
  margin-top: 18px;
  color: var(--body);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.65;
}

/* Glass Card */
.glass {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--edge-soft);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--card-hover), transparent 62%);
}
.glass:hover::before { opacity: 1; }

.tilt { transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }

/* Why Section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.why-card { padding: 36px 32px 40px; }
.why-icon { width: 38px; height: 38px; color: var(--red); margin-bottom: 26px; }
.why-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--ink);
}
.why-card p {
  font-size: 0.96rem;
  color: var(--body);
  line-height: 1.68;
}

/* Services Board */
.board {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.tabs { display: flex; flex-direction: column; gap: 8px; }
.tab {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--soft);
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
}
.tab.is-active {
  color: var(--ink);
  border-color: rgba(210, 16, 28, 0.35);
  transform: translateX(6px);
  background: var(--red-wash);
  box-shadow: 0 14px 30px -20px rgba(210, 16, 28, 0.65);
}
.tab svg { width: 20px; height: 20px; flex: none; color: var(--red); }
.tab .num {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: 0.08em;
}

.panel {
  padding: clamp(24px, 2.5vw, 32px);
  display: grid;
  background: var(--card);
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(22px, 2.8vw, 34px);
  align-items: stretch;
}
.panel-media {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  min-height: 280px;
  background: var(--media-fallback);
  border: 1px solid var(--edge-soft);
}
.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.panel-media.no-img img { display: none; }
.panel-media-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-d);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: rgba(12, 18, 26, 0.8);
  padding: 7px 14px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.panel-media.no-img .panel-media-label {
  color: var(--soft);
  background: transparent;
  backdrop-filter: none;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 50%);
}
.panel-text {
  padding: clamp(8px, 1.4vw, 18px) clamp(8px, 1.4vw, 16px);
  display: flex;
  flex-direction: column;
}
.panel h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.panel-desc {
  margin-top: 16px;
  color: var(--body);
  line-height: 1.72;
  font-size: 1rem;
}
.panel-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.panel-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--panel-inset);
  border: 1px solid var(--edge-soft);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.panel-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.swap { animation: swapIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes swapIn {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Video Frame & Gallery */
.video-frame {
  padding: clamp(14px, 1.6vw, 20px);
  margin: 0;
}

.video-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);

  /* Scroll vertically through rows while keeping 3 videos per row */
  max-height: 72vh;
  overflow-y: auto;
  overflow-x: hidden;
  align-items: start;
  align-content: start;

  /* Prevent the gallery itself from causing horizontal overflow */
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
  padding-right: 4px;
}

.video-gallery::-webkit-scrollbar {
  width: 6px;
}

.video-gallery::-webkit-scrollbar-track {
  background: rgba(127, 145, 165, 0.10);
  border-radius: 999px;
}

.video-gallery::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--red-hot),
    var(--red)
  );
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.video-gallery::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--red-hot),
    var(--red-deep)
  );
}

[data-theme="dark"] .video-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .video-gallery::-webkit-scrollbar-thumb {
  border-color: rgba(255, 255, 255, 0.10);
}

.video-card {
  position: relative;
  width: 100%;
  height: auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  /*
    Do NOT force every video into the same aspect ratio.
    The card follows the video's natural dimensions.
  */
  overflow: visible;
  border-radius: var(--r);
  background: #05070A;
  border: 1px solid var(--edge-soft);
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  background: #05070A;
  border-radius: calc(var(--r) - 1px);
}

.video-caption {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--soft);
  text-align: center;
  font-weight: 500;
}

/* =========================================================
   Redesigned "How It Works" Section
   Protocol Cockpit Console + Distinct Milestone Cards (Zero Duplication)
   ========================================================= */
.how-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
.how-sticky { position: sticky; top: 120px; }

/* Left Interactive Console */
.how-visual {
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.how-visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--red-wash);
  border: 1px solid rgba(210, 16, 28, 0.3);
  width: fit-content;
}
.how-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 2.2s infinite;
}
.how-live-tag {
  font-family: var(--font-d);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
}

.how-stage-indicator {
  display: flex;
  align-items: center;
  gap: 20px;
}
.how-step-num {
  font-family: var(--font-d);
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: -0.04em;
  font-size: clamp(3.8rem, 8vw, 5.8rem);
  line-height: 0.85;
  background: linear-gradient(170deg, var(--red-hot), var(--red) 55%, var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex: none;
}
.how-stage-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.how-phase-kicker {
  font-family: var(--font-d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--soft);
}
.how-phase-title {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.how-phase-summary {
  color: var(--body);
  line-height: 1.68;
  font-size: 0.98rem;
}

.how-rail-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.how-rail {
  display: flex;
  gap: 8px;
}
.how-rail i {
  flex: 1;
  height: 4px;
  background: var(--edge-soft);
  border-radius: 2px;
  overflow: hidden;
  transition: background 0.35s ease;
}
.how-rail i.on {
  background: linear-gradient(90deg, var(--red-hot), var(--red));
  box-shadow: 0 0 8px rgba(210, 16, 28, 0.4);
}
.how-rail-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0.04em;
}
.how-console-action {
  margin-top: 8px;
}

/* Right Milestone Step Cards */
.how-list { display: flex; flex-direction: column; gap: 16px; }
.how-item {
  padding: 30px;
  border: 1.5px solid var(--edge-soft);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.how-item:not(.is-live) {
  opacity: 0.85;
}
.how-item.is-live {
  opacity: 1;
  border-color: rgba(210, 16, 28, 0.45);
  box-shadow: 0 18px 44px -16px rgba(210, 16, 28, 0.22), var(--shadow-lg);
  transform: translateX(6px);
}
.how-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.how-item .tag {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--red);
  font-family: var(--font-d);
  font-weight: 700;
}
.how-item-est {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mute);
  background: var(--panel-inset);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--edge-soft);
}
.how-item h4 {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.how-item p {
  font-size: 0.96rem;
  color: var(--body);
  line-height: 1.66;
}
.how-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--edge-soft);
}
.how-feature-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel-inset);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--edge-soft);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.how-feature-pill span {
  color: var(--red);
  font-weight: 700;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.about-statement {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
  font-stretch: 104%;
  color: var(--ink);
}
.about-body p + p { margin-top: 18px; }
.about-body p {
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.76;
}
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--edge-soft);
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chip:hover {
  border-color: rgba(210, 16, 28, 0.5);
  transform: translateY(-2px);
}
.chip svg { width: 16px; height: 16px; color: var(--red); }
.chip b { font-weight: 600; color: var(--ink); }
.chip span { color: var(--soft); }

.about-mark {
  position: relative;
  display: grid;
  place-items: center;
}
.about-mark-img {
  width: min(340px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
  background: #000000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(210, 16, 28, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.18);
}
[data-theme="light"] .about-mark-img {
  border-color: rgba(14, 30, 52, 0.14);
  box-shadow: 0 20px 50px rgba(14, 30, 52, 0.22), 0 0 35px rgba(210, 16, 28, 0.14);
}

/* Location Section */
.loc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
}
.loc-copy {
  padding: clamp(32px, 4vw, 46px);
  display: flex;
  flex-direction: column;
}
.loc-title {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.loc-address {
  margin-top: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.65;
}
.loc-note {
  margin-top: 16px;
  color: var(--body);
  font-size: 0.96rem;
  line-height: 1.65;
}
.loc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 34px;
}
.map-frame {
  padding: 10px;
  border-radius: var(--r-lg);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  border-radius: 18px;
  filter: var(--map-filter);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.contact-lede {
  margin-top: 20px;
  color: var(--body);
  line-height: 1.72;
  font-size: 1.02rem;
  max-width: 46ch;
}
.contact-direct { margin-top: 34px; }
.contact-direct > p {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--soft);
  margin-bottom: 14px;
}

.form {
  padding: clamp(28px, 3.6vw, 42px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.row { display: flex; flex-direction: column; gap: 9px; }
.row-full { grid-column: 1 / -1; }
.row label {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 600;
}
.row input, .row select, .row textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--input-bg);
  border: 1.5px solid var(--edge);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.row textarea { resize: vertical; min-height: 110px; }
.row select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'><path d='M1 1l5 5 5-5' stroke='%234A5B6D' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.row select option { background: var(--option-bg); color: var(--ink); }
.row input::placeholder, .row textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
.row input:focus, .row select:focus, .row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(210, 16, 28, 0.12);
}
.err { font-size: 0.78rem; font-weight: 500; color: var(--red); min-height: 1.1em; }
.row.bad input { border-color: var(--red); }
.form-submit { grid-column: 1 / -1; width: 100%; padding: 17px; margin-top: 4px; }
.form-hint { grid-column: 1 / -1; font-size: 0.85rem; font-weight: 500; color: var(--body); min-height: 1.2em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: clamp(60px, 8vw, 90px) 0 40px;
  border-top: 1px solid var(--edge-soft);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}
.foot-logo-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: contain;
  background: #000000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 6px;
}
.foot-brand p {
  margin-top: 16px;
  color: var(--body);
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 36ch;
}
.foot-nav { display: flex; flex-direction: column; gap: 12px; }
.foot-nav a {
  color: var(--soft);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.25s ease;
  width: fit-content;
}
.foot-nav a:hover { color: var(--red); }

.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--edge-soft);
  color: var(--soft);
  box-shadow: var(--shadow-sm);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.foot-social a:hover {
  color: var(--red);
  border-color: rgba(210, 16, 28, 0.5);
  transform: translateY(-3px);
}
.foot-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--edge-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--soft);
}

/* Tachometer Scroll Gauge */
.tach {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 74px;
  height: 74px;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  filter: drop-shadow(0 12px 24px rgba(14, 30, 52, 0.22));
}
.tach.on { opacity: 1; transform: none; }
.tach svg { width: 100%; height: 100%; overflow: visible; }
.tach .tach-face { fill: var(--surface); stroke: var(--edge-soft); }
.tach .tick { stroke: var(--edge); stroke-width: 2; stroke-linecap: round; }
.tach .tick.red { stroke: var(--red); }
.tach .arc { fill: none; stroke: url(#tachGrad); stroke-width: 3; stroke-linecap: round; }
.tach .needle {
  stroke: var(--red);
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: transform 0.18s linear;
  transform-origin: 50px 50px;
}
.tach .hub { fill: var(--ink); }
.tach .pct {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  fill: var(--ink);
  text-anchor: middle;
}

/* Reveal System */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rv.in { opacity: 1; transform: none; }

/* Responsive Adjustments */
@media (max-width: 1100px) {
  .nav-link { padding: 10px 10px; font-size: 0.88rem; }
}
@media (max-width: 1000px) {
  .board { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: none; }
  .tab.is-active { transform: none; }
  .tab .num { display: none; }
  .panel { grid-template-columns: 1fr; }
  .panel-media { min-height: 220px; aspect-ratio: 16/10; }
  .how-shell, .about-grid, .loc-grid, .contact-grid { grid-template-columns: 1fr; }
  .how-sticky { position: relative; top: 0; }
  .about-mark { order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .theme-switch { margin-left: auto; }
  .mobile-nav { display: flex; }
  .form { grid-template-columns: 1fr; }
  .rail-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .tach { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Video gallery: tablet layout ---------- */
@media (max-width: 900px) {
  .video-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .video-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    max-height: 72vh;
  }
  .how-stage-indicator { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .ln > span { transform: none !important; }
  .wi { transform: none; opacity: 1; }
  .rv { opacity: 1; transform: none; }
  .grain { display: none; }
}


/* phone links inside address / footer text */
.loc-address a, .foot-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* --- Content-first depth + blended section transitions --- */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.why-card, .how-item, .panel, .video-frame { transform-style: preserve-3d; }
.why-card > *, .how-item > *, .panel-text > * { transform: translateZ(2px); }

.work {
  position: relative;
  isolation: isolate;
  padding-bottom: clamp(110px, 15vw, 190px);
}
.work::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0; right: 0; bottom: 0;
  height: clamp(150px, 18vw, 230px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg));
}
.how {
  position: relative;
  background: linear-gradient(to bottom, rgba(255,255,255,0.035), var(--bg) 180px);
}
[data-theme="dark"] .how {
  background: linear-gradient(to bottom, rgba(255,255,255,0.025), var(--bg) 180px);
}
.panel {
  padding: clamp(24px, 2.5vw, 32px);
  display: block;
}
.panel-text { padding: clamp(28px, 4vw, 48px); }
@media (max-width: 1000px) { .panel { display: block; } }


@media (max-width: 600px) {
  .video-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    max-height: 65vh;
  }
}
