/* Hallmark · shape: kept · genre: atmospheric · theme: brand · redesign: polish
 * paper: #f1f1ee · accent: #008f85 · display: Instrument Serif · body: Inter · hero: kept · nav: kept · footer: kept · signature: kept
 * axes: mid/high-contrast-serif/cool · posture: settled · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · weakest: contrast, boosted contrast tokens and eliminated raw literals */
/* Hallmark · waive 2b · footer wordmark signature · user-requested frosted glass display gradient */
@import "./tokens.css";

/* ==========================================================================
   STORMGRADE (stormgrade.org) — REDESIGNED MASTER DESIGN SYSTEM
   Unified 3-in-1 Architecture:
   1. Carrier-Grade Hero (Full-Bleed Video + Dot-Matrix Display)
   2. Operational Dispatch Studio (Interactive Tabs & Live Video Overlays)
   3. Atmospheric Twilight Command Footer (1440x672 Canvas + Frosted Wordmark)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens & Variables
   -------------------------------------------------------------------------- */
:root {
  /* Section 1 Dark Theme & Typography */
  --bg: var(--color-canvas-dark);
  --text: var(--color-surface-white);
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --color-text-hero-muted: #a1a1aa;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-display: var(--font-serif);

  /* StormGrade Signature Brand Palette */
  --storm-teal: #00a99d;
  --storm-teal-dark: #008f85;
  --storm-teal-light: #f0fdfa;
  --storm-teal-border: #99f6e4;
  --storm-dark: #09090b;
  --storm-slate: #52525b;

  /* Emil Kowalski Motion & Physics Tokens */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-fast: 160ms;
  --duration-normal: 240ms;

  /* Section 3 Twilight Command Footer Tokens */
  --paper: #f1f1ee;
  --ink: #0c0c0c;
  --body: #6f6f6c;
  --footer-muted: #9c9c98;
  --wordmark: #efefeb;
  --mist: #e2e3f1;
}

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

html, body {
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

button,
a,
.chip,
.studio-tab-btn,
.floating-nav-btn,
.nav-link,
.logo-btn,
.sign-in-btn {
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

button,
.chip,
.studio-tab-btn,
.floating-nav-btn {
  user-select: none;
  -webkit-user-select: none;
}


/* ==========================================================================
   SECTION 1: CARRIER-GRADE EMERGENCY INTAKE (Full-Bleed Video Viewport)
   ========================================================================== */
.section-intake {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--color-canvas-dark);
}

.bg {
  position: absolute;
  inset: 0;
  background: var(--color-canvas-dark);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bg-video {
  filter: hue-rotate(208deg) saturate(1.4) brightness(0.96);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
    transform: translateZ(0);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  overflow: hidden;
  width: 100%;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes headlineFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

/* Header */
.header {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 1.8vw, 20px);
  flex-shrink: 0;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  z-index: 20;
}

.logo-btn {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-surface-white);
  box-shadow: var(--nav-shadow);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}

.logo-btn img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  display: block;
}

.logo-btn:hover {
  transform: scale(1.04);
}

.logo-btn:active {
  transform: scale(0.97);
}

.nav-pill {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  max-width: 540px;
  background: var(--color-surface-white);
  padding: 5px 8px;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(14px, 1.6vw, 22px);
  height: 100%;
  font-family: var(--font-sans);
  font-weight: 550;
  font-size: clamp(14px, 1.3vw, 15.5px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.6;
  border-radius: 999px;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.95;
  background-color: var(--color-overlay-minimal);
}

.nav-link.active {
  opacity: 1;
  color: var(--color-text-dark);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--storm-teal);
  box-shadow: -6px 0 0 var(--storm-teal), 6px 0 0 var(--storm-teal);
}

.sign-in-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 clamp(22px, 2.2vw, 30px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(14px, 1.3vw, 15.5px);
  letter-spacing: -0.01em;
  box-shadow: var(--nav-shadow);
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}

.sign-in-btn:hover {
  background-color: var(--color-sign-in-dark);
  color: var(--color-surface-white);
  transform: translateY(-1px);
}

.sign-in-btn:active {
  transform: scale(0.97);
}

/* Mobile Hamburger Button */
.mobile-burger {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.25s ease, transform 0.2s ease;
  position: relative;
  z-index: 100;
}

.burger-box {
  width: 18px;
  height: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.burger-bar {
  width: 18px;
  height: 1.5px;
  background: var(--color-surface-white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.25s ease;
}

.mobile-burger.open {
  background: var(--color-surface-white);
}

.mobile-burger.open .burger-bar {
  background: var(--color-canvas-dark);
}

.mobile-burger.open .burger-bar:nth-child(1) {
  transform: translateY(6.75px) rotate(45deg);
}

.mobile-burger.open .burger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-burger.open .burger-bar:nth-child(3) {
  transform: translateY(-6.75px) rotate(-45deg);
}

/* Mobile Sheet */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translate(-50%, -15px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.mobile-sheet {
  position: fixed;
  top: clamp(72px, 12vh, 90px);
  left: 50%;
  transform: translate(-50%, 0);
  width: calc(100% - 32px);
  max-width: 360px;
  background: var(--color-surface-white);
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px var(--color-overlay-dim);
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-sheet.active {
  display: flex;
}

.mobile-sheet-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--nav-text);
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.mobile-sheet-link:hover {
  background: var(--shadow-sm);
}

.mobile-sheet-link.active::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--storm-teal);
  box-shadow: -5px 0 0 var(--storm-teal), 5px 0 0 var(--storm-teal);
}

.mobile-sheet-signin {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: var(--color-text-dark);
  color: var(--color-surface-white);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s ease;
}

/* Hero Center */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 920px;
  width: 100%;
  flex: 1;
  margin: auto 0;
}

/* Trust Row: IICRC, RIA, NWS Standards */
.trust-row {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.trust-avatars {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.trust-avatar {
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

.trust-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-surface-white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: calc(var(--trust-size) * 0.32);
  color: var(--color-text-dark-pure);
  letter-spacing: -0.05em;
}

.trust-avatar:nth-child(1) {
  z-index: 1;
}

.trust-avatar:nth-child(2) {
  margin-left: calc(var(--trust-size) * -0.42);
  z-index: 2;
}

.trust-avatar:nth-child(3) {
  margin-left: calc(var(--trust-size) * -0.42);
  z-index: 4;
}

.trust-avatar:nth-child(1):hover {
  transform: translateY(-2px);
}

.trust-avatar:nth-child(2):hover {
  transform: translateY(-4px);
}

.trust-avatar:nth-child(3):hover {
  transform: translateY(-2px);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  padding: 0 clamp(16px, 2.2vw, 22px);
  z-index: 3;
}

.trust-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  color: var(--trust-text);
  white-space: nowrap;
}

/* Headline */
.headline {
  font-family: var(--font-serif);
  color: var(--color-surface-white);
  font-weight: 400;
  font-size: clamp(28px, 5.6vw, 76px);
  letter-spacing: 0.005em;
  line-height: 1.18;
  white-space: nowrap;
  overflow: visible;
  padding: 0.1em 0.15em;
  margin-top: clamp(48px, 7.5vh, 72px);
  user-select: none;
}

.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

.headline-line {
  display: block;
  overflow: visible;
  padding-bottom: 0.12em;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--line-delay, 0s);
}

/* Subhead */
.subhead {
  max-width: min(540px, 92%);
  margin: clamp(12px, 2vh, 20px) auto clamp(20px, 3vh, 32px);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55;
  color: var(--color-text-hero-muted);
  opacity: 1;
}

/* CTA */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-white);
  color: var(--color-canvas-dark);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--color-border-dark),
              0 0 22px var(--color-brand-teal-glow-1),
              0 0 44px var(--color-brand-teal-glow-2);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  animation: revealPulse 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0.4s);
  opacity: 0;
  white-space: nowrap;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px var(--color-border-dark-hover),
              0 0 28px var(--color-brand-teal-glow-hover-1),
              0 0 56px var(--color-brand-teal-glow-hover-2);
}

/* Stats Footer */
.stats {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.5vw, 28px);
  flex-shrink: 0;
  align-items: center;
  margin-top: auto;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 14px);
}

.stat-icon {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 33px);
  color: var(--storm-teal);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stat-value {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--color-surface-white);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: clamp(12.5px, 1.35vw, 14px);
  font-weight: 500;
  color: var(--color-text-hero-muted);
  opacity: 1;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   SECTION 2: OPERATIONAL DISPATCH STUDIO (High-Contrast White Workspace)
   ========================================================================== */
.section-studio {
  background: var(--paper);
  color: var(--color-text-dark);
  padding: 90px 24px 110px;
  position: relative;
  z-index: 5;
}

.studio-container {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

/* Reviews Badge */
.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.reviews-badge-square {
  width: 24px;
  height: 24px;
  border: 1px solid var(--storm-teal-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--storm-teal-light);
}

.reviews-badge-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand-teal-deep);
}

/* Main Heading */
.studio-heading {
  font-size: clamp(34px, 5.5vw, 70px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--color-text-dark);
}

.studio-gradient-text {
  display: block;
  background: linear-gradient(to right, var(--color-text-dark), var(--color-brand-teal-deep), var(--color-brand-teal-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subheading */
.studio-subhead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--storm-slate);
  margin: 0 auto 32px;
  max-width: 740px;
  line-height: 1.6;
}

/* CTA */
.studio-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text-dark);
  color: var(--color-surface-white);
  padding: 13px 36px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 48px;
  box-shadow: 0 4px 18px var(--shadow-btn-dark);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.studio-cta-btn:hover {
  background: var(--color-text-hover-dark);
  transform: translateY(-1px);
}

/* Tab Bar */
.studio-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.studio-tabs-desktop {
  display: inline-flex;
  align-items: center;
  background: var(--shadow-sm);
  border-radius: 10px;
  padding: 5px;
}

.studio-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark-secondary);
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.studio-tab-btn:hover {
  color: var(--color-text-dark);
}

.studio-tab-btn.active {
  background: var(--color-surface-white);
  color: var(--color-brand-teal-deep);
  box-shadow: 0 2px 6px var(--color-paper-border);
}

.studio-tab-divider {
  width: 1px;
  height: 20px;
  background: var(--color-border-light-gray);
}

.studio-tabs-mobile {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  background: var(--shadow-sm);
  border-radius: 10px;
  padding: 4px;
  width: 100%;
  max-width: 340px;
}

/* Video & Dynamic Overlays */
.studio-video-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px var(--shadow-btn-dark);
  background: var(--color-text-dark);
}

/* Studio Cockpit Video - Hero Style (Matrix Binary + Glowing Wave) */
.studio-product-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 85%;
  transform: translateY(-28%) scale(1.35);
  transform-origin: center center;
  filter: hue-rotate(208deg) saturate(1.4) brightness(0.82) contrast(1.05);
  display: block;
}

.studio-overlay-backdrop {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 50%, var(--color-overlay-minimal) 0%, var(--color-overlay-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.4s ease-out forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDialog {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.studio-overlay-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 520px;
  background: var(--color-surface-white);
  border-radius: 18px;
  box-shadow: 0 25px 50px -12px var(--color-overlay-card);
  border: 1px solid var(--color-border-light-gray);
  padding: 22px 24px;
  text-align: left;
  animation: fadeInDialog 240ms var(--ease-out) forwards;
  box-sizing: border-box;
}

/* Overlay Header */
.overlay-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.overlay-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.overlay-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.overlay-icon-box.teal   { background: var(--color-brand-teal-light); color: var(--color-brand-teal-deep); }
.overlay-icon-box.amber  { background: var(--color-amber-bg); color: var(--color-amber); }
.overlay-icon-box.green  { background: var(--color-green-bg); color: var(--color-green-deep); }
.overlay-icon-box.purple { background: var(--color-purple-bg); color: var(--color-purple); }

.overlay-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.25;
}

.overlay-card-subtitle {
  font-size: 12px;
  color: var(--color-text-dark-muted);
  line-height: 1.35;
}

.overlay-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.overlay-badge.teal   { background: var(--color-brand-teal-light); color: var(--color-brand-teal-deep); border: 1px solid var(--color-brand-teal-border); }
.overlay-badge.amber  { background: var(--color-amber-bg); color: var(--color-amber); border: 1px solid var(--color-amber-border); }
.overlay-badge.green  { background: var(--color-green-bg); color: var(--color-green-deep); border: 1px solid var(--color-green-pill); }
.overlay-badge.purple { background: var(--color-purple-bg); color: var(--color-purple); border: 1px solid var(--color-purple-border); }

/* Progress Bar */
.overlay-progress-bg {
  width: 100%;
  height: 4px;
  background: var(--color-border-lighter);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.overlay-progress-bar {
  height: 100%;
  width: 100%;
  border-radius: 999px;
}

.overlay-progress-bar.teal   { background: var(--color-brand-teal-bright); }
.overlay-progress-bar.amber  { background: var(--color-amber-bright); }
.overlay-progress-bar.green  { background: var(--color-green-accent); }
.overlay-progress-bar.purple { background: var(--color-purple-bright); }

/* Steps List */
.overlay-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overlay-step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--color-bg-card-light);
  border: 1px solid var(--color-border-lighter);
  gap: 10px;
}

.overlay-step-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.overlay-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-border-light-gray);
  color: var(--color-text-dark-subtle);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.overlay-step-text {
  font-size: 12.5px;
  color: var(--color-text-dark);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-step-text strong {
  font-weight: 700;
  color: var(--color-text-dark);
}

.step-status {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
}

/* Card-Specific Active Step Highlights */
.studio-overlay-card[data-card="intake"] .overlay-step-item.active {
  background: var(--color-brand-teal-light);
  border-color: var(--color-brand-teal-border);
}
.studio-overlay-card[data-card="intake"] .overlay-step-item.active .overlay-step-num {
  background: var(--color-brand-teal-deep);
  color: var(--color-surface-white);
}
.studio-overlay-card[data-card="intake"] .overlay-step-item.active .step-status {
  background: var(--color-surface-white);
  color: var(--color-brand-teal-deep);
}

.studio-overlay-card[data-card="dispatch"] .overlay-step-item.active {
  background: var(--color-amber-bg);
  border-color: var(--color-amber-border);
}
.studio-overlay-card[data-card="dispatch"] .overlay-step-item.active .overlay-step-num {
  background: var(--color-amber);
  color: var(--color-surface-white);
}
.studio-overlay-card[data-card="dispatch"] .overlay-step-item.active .step-status {
  background: var(--color-surface-white);
  color: var(--color-amber);
}

.studio-overlay-card[data-card="tracking"] .overlay-step-item.active {
  background: var(--color-green-bg);
  border-color: var(--color-green-pill);
}
.studio-overlay-card[data-card="tracking"] .overlay-step-item.active .overlay-step-num {
  background: var(--color-green-deep);
  color: var(--color-surface-white);
}
.studio-overlay-card[data-card="tracking"] .overlay-step-item.active .step-status {
  background: var(--color-surface-white);
  color: var(--color-green-deep);
}

.studio-overlay-card[data-card="storm-mode"] .overlay-step-item.active {
  background: var(--color-purple-bg);
  border-color: var(--color-purple-border);
}
.studio-overlay-card[data-card="storm-mode"] .overlay-step-item.active .overlay-step-num {
  background: var(--color-purple);
  color: var(--color-surface-white);
}
.studio-overlay-card[data-card="storm-mode"] .overlay-step-item.active .step-status {
  background: var(--color-surface-white);
  color: var(--color-purple);
}

/* Status Badges for Inactive Rows */
.step-status.verified {
  color: var(--color-brand-teal-deep);
  background: var(--color-brand-teal-light);
}
.step-status.confirmed {
  color: var(--color-green-deep);
  background: var(--color-green-bg);
}
.step-status.logged {
  color: var(--color-text-dark-secondary);
  background: var(--color-border-lighter);
}
.step-status.audio {
  color: var(--color-brand-teal-deep);
  background: var(--color-brand-teal-light);
}

/* Industry Associations Logos */
.studio-logos {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 16px);
}

.studio-logo-item {
  font-family: var(--font-sans);
  font-size: clamp(12.5px, 1.25vw, 13.5px);
  font-weight: 500;
  color: var(--color-text-dark-secondary);
  background: var(--color-paper-card);
  border: 1px solid var(--color-paper-border);
  padding: 8px 18px;
  border-radius: 999px;
  user-select: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.studio-logo-item:hover {
  color: var(--color-text-dark);
  border-color: var(--color-paper-border-hover);
  transform: translateY(-1px);
}



/* Honest Guardrails Section */
.guardrails-container {
  margin-top: 80px;
  width: 100%;
  text-align: center;
}

.guardrails-header {
  margin-bottom: 36px;
}

.guardrails-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-teal-deep);
  background: var(--color-brand-teal-light);
  border: 1px solid var(--color-brand-teal-border);
  padding: 4px 12px;
  border-radius: 6px;
}

.guardrails-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--color-text-dark-pure);
  font-weight: 400;
  margin-top: 12px;
  letter-spacing: -0.01em;
}

.guardrails-subhead {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--color-text-dark-secondary);
  max-width: 640px;
  margin: 10px auto 0;
  line-height: 1.5;
}

.guardrails-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}

.guardrail-card {
  background: var(--color-paper-card);
  border: 1px solid var(--color-paper-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.guardrail-badge-box {
  margin-bottom: 8px;
}

.guardrail-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-amber);
  background: var(--color-amber-bg);
  border: 1px solid var(--color-amber-border);
  padding: 2px 8px;
  border-radius: 4px;
}

.guardrail-badge.custom {
  color: var(--color-brand-teal-deep);
  background: var(--color-brand-teal-light);
  border-color: var(--color-brand-teal-border);
}

.guardrail-badge.never-giveup {
  color: var(--color-green-deep);
  background: var(--color-green-bg);
  border-color: var(--color-green-pill);
}

.guardrail-name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-dark-pure);
  margin-top: 6px;
  margin-bottom: 8px;
}

.guardrail-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-dark-secondary);
  margin: 0;
}

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

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

/* ==========================================================================
   SECTION 3: ATMOSPHERIC TWILIGHT COMMAND FOOTER (1440x672 Canvas)
   ========================================================================== */
.footer {
  --u: min(100vw / 1440, 100vh / 672);
  --u: min(100vw / 1440, 100svh / 672);
  position: relative;
  height: 100vh;
  height: 100svh;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
}

.footer__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  filter: url(#beige-cloud-filter) brightness(1.05) contrast(1.03);
  transform: translateY(9%) translateZ(0);
}


.footer__mountain-haze {
  position: absolute;
  inset: 28% 0 0% 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  background: 
    linear-gradient(to bottom, transparent 0%, var(--color-mountain-haze-cool) 20%, var(--color-mountain-haze-light) 55%, var(--color-mountain-haze-warm) 85%, transparent 100%),
    radial-gradient(ellipse 65% 45% at 25% 55%, var(--color-mountain-haze-radial-left) 0%, transparent 70%),
    radial-gradient(ellipse 70% 45% at 80% 60%, var(--color-mountain-haze-radial-right) 0%, transparent 70%);
  filter: blur(10px);
}

.footer__valley-smoke {
  position: absolute;
  inset: 38% 0 14% 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  background: 
    radial-gradient(ellipse 80% 40% at 50% 50%, var(--color-paper-smoke-1) 0%, var(--color-paper-smoke-2) 48%, transparent 78%),
    radial-gradient(ellipse 55% 28% at 22% 58%, var(--color-paper-smoke-3) 0%, transparent 68%),
    radial-gradient(ellipse 55% 28% at 78% 54%, var(--color-paper-smoke-3) 0%, transparent 68%);
  filter: blur(14px);
}
.footer__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--paper) 0%,
    var(--color-paper-mask-solid) 26%,
    var(--color-paper-mask-mid) 44%,
    transparent 70%
  );
}

/* Giant Frosted Glass Wordmark "STORMGRADE" — Edge-to-Edge Fluid Flex */
.footer__wordmark {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  transform: none;
  bottom: calc(-2 * var(--u));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: min(calc(220 * var(--u)), 14.8vw);
  font-weight: 600;
  line-height: 0.74;
  letter-spacing: normal;
  padding: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.footer__wordmark span {
  display: inline-block;
  background: linear-gradient(
    to bottom,
    var(--color-surface-white) 0%,
    var(--color-surface-white-soft) 50%,
    var(--color-border-dark-hover) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 calc(-1 * var(--u)) 0 var(--color-surface-white-shadow))
          drop-shadow(0 calc(2 * var(--u)) calc(6 * var(--u)) var(--shadow-wordmark-bottom));
}

/* Edge alignment: S starts flush at left edge, E reaches flush at right edge */
.footer__wordmark span:first-child {
  transform: translateX(-3%);
}

.footer__wordmark span:last-child {
  transform: translateX(3%);
}

/* Fog - reduced whiteness */
.footer__fog {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 8%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--color-paper-fog-1) 0%,
    var(--color-paper-fog-2) 60%,
    transparent 100%
  );
}

/* Content Grid */
.footer__content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: calc(440 * var(--u)) calc(240 * var(--u)) calc(240 * var(--u)) 1fr;
  align-items: start;
  width: calc(1440 * var(--u));
  margin: 0 auto;
  padding: calc(86 * var(--u)) calc(100 * var(--u)) 0 calc(160 * var(--u));
}

/* Brand Block */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  font-size: calc(17 * var(--u));
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__mark {
  position: relative;
  width: calc(30 * var(--u));
  height: calc(30 * var(--u));
  border-radius: calc(8 * var(--u));
  background: linear-gradient(to bottom, var(--color-brand-teal), var(--color-brand-teal-dark) 60%);
  box-shadow: 0 calc(1 * var(--u)) calc(2 * var(--u)) var(--shadow-btn-dark);
  flex-shrink: 0;
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 14%;
  height: 19%;
  border-radius: 999px;
  background: var(--color-surface-white);
}

.brand__title {
  margin: calc(19 * var(--u)) 0 0 0;
  font-size: calc(20 * var(--u));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.brand__text {
  max-width: calc(412 * var(--u));
  margin: 0;
  color: var(--body);
  font-size: calc(13.7 * var(--u));
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.brand__cta {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  height: calc(32.5 * var(--u));
  margin-top: calc(20 * var(--u));
  padding: 0 calc(16 * var(--u)) 0 calc(15 * var(--u));
  border-radius: calc(7 * var(--u));
  background: var(--color-text-dark);
  color: var(--color-surface-white);
  font-size: calc(11.8 * var(--u));
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.2s;
}

.brand__cta svg {
  width: calc(13 * var(--u));
  height: calc(13 * var(--u));
  margin-top: calc(-1.5 * var(--u));
  flex-shrink: 0;
}

.brand__cta:hover {
  background: var(--color-text-hover-dark);
  transform: translateY(-1px);
}

.brand__copy {
  margin: calc(23 * var(--u)) 0 0 0;
  color: var(--footer-muted);
  font-size: calc(12.2 * var(--u));
  letter-spacing: 0.01em;
}

.brand__by {
  display: flex;
  align-items: center;
  gap: calc(5 * var(--u));
  margin: calc(21 * var(--u)) 0 0 0;
  font-size: calc(11.8 * var(--u));
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand__heart {
  font-size: 0.95em;
  line-height: 1;
}

.brand__author {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  margin-left: calc(5 * var(--u));
}

.brand__avatar {
  width: calc(23 * var(--u));
  height: calc(23 * var(--u));
  border-radius: 50%;
  background: var(--color-bg-avatar);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__status {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8 * var(--u));
  margin-top: calc(20 * var(--u));
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  height: calc(25 * var(--u));
  padding: 0 calc(10 * var(--u));
  border: 1px solid var(--color-border-chip);
  border-radius: 999px;
  background: var(--color-bg-chip);
  font-size: calc(10.8 * var(--u));
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.chip svg {
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.chip__dot {
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 0 calc(2.5 * var(--u)) var(--color-emerald-glow);
  flex-shrink: 0;
}

/* Link Columns */
.col {
  display: flex;
  flex-direction: column;
}

.col__title {
  margin: 0;
  font-size: calc(16 * var(--u));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.col__list {
  display: grid;
  gap: calc(20.5 * var(--u));
  margin-top: calc(24 * var(--u));
  font-size: calc(13.7 * var(--u));
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--color-text-hover-dark);
}

.col--menu .col__list {
  gap: calc(15 * var(--u));
  margin-top: calc(21 * var(--u));
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.col__list a {
  transition: opacity 0.2s;
}

.col__list a:hover {
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer {
    --u: min(100vw / 1040, 100vh / 672);
    --u: min(100vw / 1040, 100svh / 672);
  }

  .footer__content {
    grid-template-columns: calc(400 * var(--u)) calc(190 * var(--u)) calc(210 * var(--u)) 1fr;
    width: calc(1040 * var(--u));
    padding: calc(64 * var(--u)) calc(40 * var(--u)) 0;
  }

  .brand__text {
    max-width: calc(350 * var(--u));
  }

  .footer__wordmark {
    font-size: min(calc(210 * var(--u)), 14.8vw);
    bottom: calc(4 * var(--u));
  }
}

@media (max-width: 767px) {
  /* Section 3 Mobile */
  .footer {
    --u: 1px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }

  .footer__stage::after {
    background: linear-gradient(
      to bottom,
      var(--paper) 0%,
      var(--color-paper-mask-solid) 50%,
      var(--color-paper-mask-dense) 68%,
      transparent 90%
    );
  }

  .footer__content {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    column-gap: 12px;
    row-gap: 36px;
    width: 100%;
    padding: 40px 20px 0;
    margin-bottom: max(34vw, 150px);
  }

  .brand {
    grid-column: 1 / -1;
  }

  .brand__logo {
    gap: 10px;
    font-size: 17px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 2px var(--shadow-btn-dark);
  }

  .brand__title {
    margin-top: 19px;
    font-size: 21px;
  }

  .brand__text {
    max-width: 34em;
    font-size: 14px;
    margin-top: 0;
  }

  .brand__cta {
    height: 38px;
    padding: 0 18px 0 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 20px;
    gap: 6px;
  }

  .brand__cta svg {
    width: 14px;
    height: 14px;
    margin-top: -1.5px;
  }

  .brand__copy {
    font-size: 12.5px;
    margin-top: 23px;
  }

  .brand__by {
    font-size: 12.5px;
    margin-top: 21px;
    gap: 5px;
  }

  .brand__author {
    gap: 6px;
    margin-left: 5px;
  }

  .brand__avatar {
    width: 23px;
    height: 23px;
  }

  .brand__status {
    margin-top: 16px;
    gap: 8px;
  }

  .chip {
    height: 28px;
    font-size: 12px;
    padding: 0 10px;
    gap: 6px;
  }

  .chip svg {
    width: 11px;
    height: 11px;
  }

  .chip__dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 2.5px var(--color-emerald-glow);
  }

  .col__title {
    font-size: 15px;
  }

  .col__list,
  .col--menu .col__list {
    gap: 14px;
    margin-top: 20px;
    font-size: 13px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .footer__wordmark {
    bottom: 3vw;
    font-size: 14vw;
  }

  .footer__fog {
    height: 7%;
  }

  /* Section 2 Mobile */
  .studio-tabs-desktop {
    display: none;
  }

  .studio-tabs-mobile {
    display: grid;
  }

  .studio-video-wrap {
    height: 380px;
  }

  /* Section 1 Mobile */
  .nav-pill,
  .sign-in-btn {
    display: none !important;
  }

  .header {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
  }

  .logo-btn {
    width: 48px;
    height: 48px;
  }

  .mobile-burger {
    display: grid;
  }

  .headline {
    letter-spacing: 0.005em;
    line-height: 1.15;
    overflow: visible;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 16px;
    column-gap: 12px;
  }

  .stat-item {
    justify-content: flex-start;
    padding-left: clamp(8px, 5vw, 24px);
  }
}

@media (max-width: 480px) {
  .trust-row {
    --trust-size: 30px;
    max-width: calc(100vw - 28px);
    margin-left: auto;
    margin-right: auto;
  }

  .trust-pill {
    padding-right: 12px;
  }

  .trust-text {
    font-size: 11px;
    letter-spacing: -0.01em;
  }
}

@media (max-width: 420px) {

  .headline {
    letter-spacing: 0;
    line-height: 1.15;
    overflow: visible;
  }

  .stat-item {
    padding-left: 4px;
  }
}

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

  .brand {
    grid-column: 1 / -1;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .anim,
  .headline-line,
  .header,
  .cta-btn,
  .mobile-sheet,
  .trust-avatar,
  .brand__cta,
  .col__list a {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .headline {
    color: var(--color-surface-white) !important;
  }
}


/* --------------------------------------------------------------------------
   Emil Kowalski Craft & Accessibility Standards
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .headline-line,
  .trust-row,
  .cta-btn,
  .stat-item,
  .header {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Emil Kowalski Button Press Feedback (:active tactile response) */
.cta-btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 100ms;
}

.studio-cta-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px var(--shadow-wordmark-bottom);
  transition-duration: 100ms;
}

.sign-in-btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 100ms;
}

.logo-btn:active {
  transform: scale(0.95);
  transition-duration: 100ms;
}

.studio-tab-btn:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.chip:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}


/* --------------------------------------------------------------------------
   Sonner-Style Toast Notifications (Emil Kowalski Design)
   -------------------------------------------------------------------------- */
.sg-toaster {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

@media (max-width: 767px) {
  .sg-toaster {
    bottom: 88px;
    left: 20px;
    right: 20px;
    align-items: center;
  }
}

.sg-toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--color-surface-dark);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--color-surface-white);
  border: 1px solid var(--color-border-dark);
  border-radius: 999px;
  box-shadow: 0 12px 32px var(--color-overlay-dim), inset 0 1px 0 var(--color-border-dark);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
}

.sg-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sg-toast.hide {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

.sg-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--storm-teal);
  color: var(--color-surface-white);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}


/* Interactive Focus, Tactile Press, Disabled & Reduced Motion (Hallmark / Emil Polish) */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
button:active, .cta-btn:active, .studio-cta-btn:active, .studio-tab-btn:active, .deploy-submit-btn:active, .logo-btn:active, .sign-in-btn:active {
  transform: scale(0.97);
}
button:disabled, input:disabled, select:disabled, [disabled], [aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
