@font-face {
  font-family: 'SuisseIntl';
  src: url('/fonts/SuisseIntl-Thin.woff2') format('woff2'),
       url('/fonts/SuisseIntl-Thin.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SuisseIntl';
  src: url('/fonts/SuisseIntl-Light.woff2') format('woff2'),
       url('/fonts/SuisseIntl-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SuisseIntl';
  src: url('/fonts/SuisseIntl-Book.woff2') format('woff2'),
       url('/fonts/SuisseIntl-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== DESIGN TOKENS ===== */
:root {
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 60px;
  --space-3xl: 80px;
  --space-4xl: 100px;
  --space-5xl: 120px;
  --space-6xl: 160px;
  --space-7xl: 200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 100px;
  --font-display: 200;
  --font-body: 300;
  --font-label: 400;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  --transition-reveal: 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  --page-pad: 48px;
}

/* ===== THEMES ===== */
[data-theme="light"] {
  --bg: #f0f0f0;
  --bg-surface: #f5f5f5;
  --bg-elevated: #fafafa;
  --bg-hover: rgba(0, 0, 0, 0.04);
  --text-primary: #0a0a0a;
  --text-secondary: rgba(10, 10, 10, 0.55);
  --text-muted: rgba(10, 10, 10, 0.3);
  --border: rgba(0, 0, 0, 0.12);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --card-bg: #f5f5f5;
  --card-border: rgba(0,0,0,0.06);
  --card-hover-bg: #000000;
  --card-hover-text: #ffffff;
  --card-hover-text-secondary: rgba(255,255,255,0.6);
  --shadow-card: 0 0 0 1px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 0 0 1px rgba(0,0,0,0.12), 0 24px 48px -12px rgba(0,0,0,0.12);
}
[data-theme="dark"] {
  --bg: #000000;
  --bg-surface: #0a0a0a;
  --bg-elevated: #111111;
  --bg-hover: rgba(255, 255, 255, 0.04);
  --text-primary: #fafafa;
  --text-secondary: rgba(250, 250, 250, 0.55);
  --text-muted: rgba(250, 250, 250, 0.3);
  --border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --card-bg: #0a0a0a;
  --card-border: rgba(255,255,255,0.08);
  --card-hover-bg: #ffffff;
  --card-hover-text: #000000;
  --card-hover-text-secondary: rgba(0,0,0,0.6);
  --shadow-card: 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-card-hover: 0 0 0 1px rgba(255,255,255,0.12), 0 24px 48px -12px rgba(0,0,0,0.5);
}
[data-theme="dim"] {
  --bg: #1a0a2e;
  --bg-surface: rgba(0,0,0,0.2);
  --bg-elevated: rgba(0,0,0,0.25);
  --bg-hover: rgba(255, 255, 255, 0.06);
  --text-primary: #fafafa;
  --text-secondary: rgba(250, 250, 250, 0.6);
  --text-muted: rgba(250, 250, 250, 0.35);
  --border: rgba(255, 255, 255, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(0,0,0,0.2);
  --card-border: rgba(255,255,255,0.1);
  --card-hover-bg: rgba(255,255,255,0.95);
  --card-hover-text: #000000;
  --card-hover-text-secondary: rgba(0,0,0,0.6);
  --shadow-card: 0 0 0 1px rgba(255,255,255,0.08);
  --shadow-card-hover: 0 0 0 1px rgba(255,255,255,0.15), 0 24px 48px -12px rgba(0,0,0,0.5);
}
[data-theme="dim"] body {
  background: linear-gradient(180deg, #2d0845 0%, #6b1540 25%, #c43e2a 50%, #e8651a 70%, #f59b0a 100%);
  background-attachment: fixed;
  background-size: 100% 100vh;
  min-height: 100vh;
}
@supports (-webkit-touch-callout: none) {
  [data-theme="dim"] body {
    background-attachment: scroll;
    background-size: 100% 100vh;
    background-repeat: no-repeat;
  }
  [data-theme="dim"]::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, #2d0845 0%, #6b1540 25%, #c43e2a 50%, #e8651a 70%, #f59b0a 100%);
    z-index: -1;
  }
}

/* ===== GLOBAL ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
::selection { background: var(--text-primary); color: var(--bg); }

body {
  font-family: 'SuisseIntl', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-weight: var(--font-label);
  line-height: 1.6;
  transition: background var(--transition-base), color var(--transition-base);
  overflow-x: clip;
}

/* ===== WORD-BY-WORD SCROLL REVEAL ===== */
.reveal-text .word {
  display: inline-block;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  margin-right: 0.27em;
}
.reveal-text .word.visible {
  opacity: 1;
}

/* ===== LARGE TYPE — one size for everything ===== */
.large-type {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: var(--font-label);
  line-height: 1.12;
  letter-spacing: -2px;
}


/* ===== SITE ICON (animated: hero → bottom-right corner) ===== */
.site-icon-wrap {
  position: fixed;
  z-index: 99;
  pointer-events: none;
  /* Start state set by JS; these are fallback final values */
  bottom: 40px;
  right: 48px;
  width: 40px;
  height: 40px;
}
.site-icon {
  width: 100%;
  height: auto;
  display: block;
}
.site-icon-light { display: block; }
.site-icon-dark { display: none; }
.site-icon-dim { display: none; }
[data-theme="dark"] .site-icon-light, [data-theme="dark"] .site-icon-dim { display: none; }
[data-theme="dark"] .site-icon-dark { display: block; }
[data-theme="dim"] .site-icon-light, [data-theme="dim"] .site-icon-dark { display: none; }
[data-theme="dim"] .site-icon-dim { display: block; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--space-lg) + env(safe-area-inset-top)) var(--page-pad) var(--space-lg);
  z-index: 100;
  background: transparent;
  transition: background var(--transition-base);
  border-bottom: none;
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
  z-index: -1;
  pointer-events: none;
}
nav.scrolled {
  background: transparent;
}
#safe-area-tint { display: none; }
.nav-logo { height: 16px; display: flex; align-items: center; flex-shrink: 0; overflow: visible; }
.nav-logo img { height: 14px; width: auto; opacity: 1 !important; }
.nav-logo img:hover { opacity: 1 !important; }
/* wordmark-dark uses white SVG — no invert needed */
.nav-right {
  display: flex; gap: var(--space-sm); align-items: center;
}

/* ===== NAV ACTION BUTTONS ===== */
/* Nav action buttons — match mode switcher height (40px) */
.nav-action-btn {
  height: 40px;
  padding: 0 20px !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box;
}
.nav-action-btn .btn-arrow { display: none; }

/* ===== LIQUID GLASS BUTTONS (from shell template) ===== */
.glass-btn-wrap { position: relative; display: inline-block; }
.glass-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-family: inherit; font-size: 13px; font-weight: 400;
  letter-spacing: 0.02em; color: var(--text-primary); text-decoration: none;
  border-radius: 100px; background: rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 8px rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.15);
  cursor: pointer; overflow: hidden; isolation: isolate; transition: all 0.35s ease;
}
[data-theme="dark"] .glass-btn, [data-theme="dim"] .glass-btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); box-shadow: 0 0 8px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.08); }
.glass-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  backdrop-filter: blur(12px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(180%) brightness(1.08); z-index: -2;
}
.glass-btn::after {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.4) 70%, transparent 100%);
  opacity: 0.5; transition: opacity 0.3s ease;
}
[data-theme="dark"] .glass-btn::after, [data-theme="dim"] .glass-btn::after { opacity: 0.2; }
.glass-shine {
  position: absolute; width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
  pointer-events: none; opacity: 0; transition: opacity 0.2s ease;
  z-index: 1; transform: translate(-50%, -50%);
}
.glass-btn:hover .glass-shine { opacity: 1; }
[data-theme="dark"] .glass-btn:hover .glass-shine, [data-theme="dim"] .glass-btn:hover .glass-shine { opacity: 0.15; }
.glass-btn:hover { background: rgba(0,0,0,0.1); transform: translateY(-1px); }
[data-theme="dark"] .glass-btn:hover, [data-theme="dim"] .glass-btn:hover { background: rgba(255,255,255,0.12); }
.glass-btn:hover::after { opacity: 0.8; }
.glass-btn:active { transform: translateY(0); }
.btn-arrow { transition: transform 0.25s ease; font-size: 14px; }
.glass-btn:hover .btn-arrow { transform: translateX(2px); }

/* Nav links as glass buttons */
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  padding: 10px 20px; font-family: inherit; font-size: 13px;
  font-weight: var(--font-label); letter-spacing: 0.02em;
  color: var(--text-primary); text-decoration: none;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 8px rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.06); cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: all 0.35s ease;
}
[data-theme="dark"] .nav-link, [data-theme="dim"] .nav-link { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); box-shadow: 0 0 8px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.08); }
.nav-link::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  backdrop-filter: blur(12px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(180%) brightness(1.08); z-index: -2;
}
.nav-link::after {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.4) 70%, transparent 100%);
  opacity: 0.5; transition: opacity 0.3s ease;
}
[data-theme="dark"] .nav-link::after, [data-theme="dim"] .nav-link::after { opacity: 0.2; }
.nav-link:hover { background: rgba(0,0,0,0.1); transform: translateY(-1px); }
[data-theme="dark"] .nav-link:hover, [data-theme="dim"] .nav-link:hover { background: rgba(255,255,255,0.12); }
.nav-link:hover::after { opacity: 0.8; }

/* ===== GLASS SWITCHER ===== */
.glass-switcher {
  position: relative; display: flex; align-items: center; gap: 2px; padding: 4px;
  height: 40px; box-sizing: border-box;
  border-radius: var(--radius-pill); background: rgba(0,0,0,0.06); overflow: hidden; isolation: isolate;
  backdrop-filter: blur(12px) saturate(180%) brightness(1.08); -webkit-backdrop-filter: blur(12px) saturate(180%) brightness(1.08);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 8px rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.15);
}
[data-theme="dark"] .glass-switcher, [data-theme="dim"] .glass-switcher { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); box-shadow: 0 0 8px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.08); }
.glass-switcher-option {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: transparent; color: var(--text-muted); cursor: pointer;
  transition: color 0.3s ease; z-index: 1; padding: 0;
}
.glass-switcher-option svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.glass-switcher-option[data-theme-value="dim"] svg { fill: currentColor; stroke: none; }
.glass-switcher-option:hover { color: var(--text-secondary); }
.glass-switcher-option.active { color: var(--text-primary); }
.glass-switcher-pill {
  position: absolute; top: 4px; left: 4px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(0,0,0,0.08);
  backdrop-filter: blur(4px) saturate(150%); -webkit-backdrop-filter: blur(4px) saturate(150%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 0;
}
[data-theme="dark"] .glass-switcher-pill, [data-theme="dim"] .glass-switcher-pill { background: rgba(255,255,255,0.12); }
.glass-switcher-pill::after {
  content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  opacity: 0.4; border-radius: 1px;
}
[data-theme="dark"] .glass-switcher-pill::after, [data-theme="dim"] .glass-switcher-pill::after { opacity: 0.2; }
.glass-switcher-pill[data-pos="0"] { transform: translateX(0); }
.glass-switcher-pill[data-pos="1"] { transform: translateX(34px); }
.glass-switcher-pill[data-pos="2"] { transform: translateX(68px); }
@keyframes glass-switch-pop { 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } }
.glass-switcher-option.popping { animation: glass-switch-pop 0.25s ease; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  padding: 50vh var(--page-pad) var(--space-5xl) var(--page-pad);
  max-width: 1400px;
}

/* ===== SECTIONS ===== */
.section-pad { padding: var(--space-7xl) var(--page-pad); }
.section-label {
  font-size: 12px; font-weight: var(--font-label);
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--space-3xl);
  display: flex; align-items: center; gap: var(--space-md);
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--text-muted); flex-shrink: 0; }

/* ===== METRICS — full bleed, ticker numbers ===== */
.metrics {
  padding: var(--space-5xl) var(--page-pad);
}
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); text-align: left; }
.metric-item { text-align: left; padding: 0; }
/* Airport code flipper — 3D flip */
#airportFlipper { display: inline-block; perspective: 600px; }
.metric-number {
  font-size: clamp(56px, 6vw, 96px);
  font-weight: var(--font-label); letter-spacing: -3px;
  line-height: 1; margin-bottom: var(--space-sm);
}
.metric-label { font-size: 15px; font-weight: var(--font-body); color: var(--text-primary); line-height: 1.5; }


/* ===== STACKING CASE STUDY CARDS (Deck layout + Nitro sticky) ===== */
.case-studies { padding: var(--space-3xl) 0 0; }
.case-stack { position: relative; padding-bottom: calc(100vh - 100px); }
.case-card {
  position: sticky;
  top: 100px;
  width: calc(100% - var(--page-pad) * 2);
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 60px;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
}
.case-card:last-child { margin-bottom: 0; }
.case-card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.case-card-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.case-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  pointer-events: none;
}
.case-card-content {
  position: relative;
  z-index: 2;
  background: var(--card-bg, #fff);
  padding: 48px 40px;
  border-radius: 16px;
  max-width: 460px;
  margin-left: 48px;
  color: #000;
}
.case-card-meta {
  font-size: 14px; font-weight: var(--font-body); letter-spacing: 0.02em;
  color: #666; margin-bottom: var(--space-md);
}
.case-card-name {
  font-size: 40px; font-weight: 500; margin-bottom: 8px;
  letter-spacing: -0.03em; color: #000;
}
.case-card-subhead {
  font-size: 18px; font-weight: 400; color: #333; margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.case-card-desc {
  font-size: 14px; font-weight: 300; color: #333; line-height: 1.7;
  margin-bottom: 24px;
}
.case-card-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0;
}
.case-tag {
  padding: 6px 16px; font-size: 12px; font-weight: 400;
  letter-spacing: 0.3px; border-radius: 100px;
  border: 1px solid #ddd; color: #555;
  background: transparent;
}
/* ===== FOOTER ===== */
footer {
  position: relative;
  padding: var(--space-7xl) var(--page-pad) var(--space-xl);
}
.cta-dock { display: flex; justify-content: center; margin-bottom: var(--space-xl); }
.footer-cta { margin-bottom: var(--space-7xl); }
.footer-wordmark { margin-bottom: var(--space-7xl); }
.footer-wordmark img { width: 100%; height: auto; }
.footer-wordmark-dark { display: none; }
.footer-wordmark-light { display: block; }
[data-theme="dark"] .footer-wordmark-dark, [data-theme="dim"] .footer-wordmark-dark { display: block !important; }
[data-theme="dark"] .footer-wordmark-light, [data-theme="dim"] .footer-wordmark-light { display: none !important; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; margin-top: 50px; margin-bottom: var(--space-7xl); }
.footer-contact-links, .footer-social-links { display: flex; flex-direction: column; }
.footer-metrics { margin-bottom: var(--space-7xl); }
.footer-link { display: block; color: var(--text-primary); text-decoration: none; font-size: 14px; line-height: 2; transition: color var(--transition-base); }
.footer-link:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: flex-start; align-items: center;
}
.footer-bottom-text { font-size: 12px; color: var(--text-muted); }
.footer-logo { height: 16px; display: flex; align-items: center; overflow: visible; }
.footer-logo img { height: 14px; width: auto; }

/* ===== GLOWING CTA (S&O orange glow — matches contracts page + brand audit) ===== */
.glow-cta {
  position: fixed; bottom: var(--space-xl); left: 50%; transform: translateX(-50%);
  z-index: 50; opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: var(--radius-pill);
}
.glow-cta.visible {
  opacity: 1;
  pointer-events: auto;
}
.glow-cta.docked {
  position: absolute !important; bottom: auto !important;
  left: 50% !important; transform: translateX(-50%) !important;
  opacity: 1 !important; pointer-events: auto !important;
}
/* Rainbow glow — outer ring only, masked out inside the button */
.glow-cta .glow-ring {
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  pointer-events: none;
  filter: blur(12px);
  opacity: 0.65;
}
.glow-cta .glow-ring::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 250%; height: 600%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, #0894FF, #C959DD, #FF2E54, #FF9004, #0894FF);
  animation: rainbowSpin 4s linear infinite;
}
.glow-cta .glow-ring-soft {
  position: absolute;
  inset: -14px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  pointer-events: none;
  filter: blur(24px);
  opacity: 0.35;
}
.glow-cta .glow-ring-soft::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 250%; height: 600%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 180deg, #0894FF, #C959DD, #FF2E54, #FF9004, #0894FF);
  animation: rainbowSpin 4s linear infinite reverse;
}
@keyframes rainbowSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.bounce-float {
  display: inline-block;
  animation: gentleBounce 1s ease-in-out infinite;
}
.glow-cta .glass-btn {
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-size: 14px;
  position: relative;
  z-index: 2;
}
/* Override glass background on CTA so rainbow doesn't bleed through */
.glow-cta .glass-btn::before {
  backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
  background: rgba(255,255,255,0.85);
}
[data-theme="dark"] .glow-cta .glass-btn::before {
  background: rgba(20,20,20,0.88);
}
[data-theme="dim"] .glow-cta .glass-btn::before {
  background: rgba(30,30,30,0.85);
}

/* ===== FADE-IN (non-text elements) ===== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== TICKER ANIMATION ===== */
@keyframes countUp {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root { --page-pad: var(--space-lg); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-contact { flex-direction: column; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; gap: var(--space-md); align-items: flex-start; }
  .case-card-content { max-width: 100%; margin-left: 24px; margin-right: 24px; padding: 32px 24px; }
}
@media (max-width: 480px) {
  :root { --page-pad: var(--space-md); }

  /* Safe area + nav tint — real DOM element covering full nav, backgroundColor set by JS in setTheme().
     Sits behind nav content (z-index:-1), on top of ::before blur. Provides consistent
     tint from top of screen through entire nav. */
  #safe-area-tint {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: rgba(240, 240, 240, 0.15);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
  }

  /* Nav glass — stronger blur on ::before for the nav content zone */
  nav::before {
    -webkit-backdrop-filter: saturate(250%) blur(30px);
    backdrop-filter: saturate(250%) blur(30px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
  }

  /* Nav — hide Get in touch, hide glass switcher, show mobile toggle */
  .nav-action-btn { display: none !important; }
  .glass-switcher { display: none !important; }
  .mobile-theme-toggle { display: flex !important; }

  /* Hero */
  .hero { padding-top: 40vh; }
  .large-type { font-size: clamp(28px, 7vw, 40px); letter-spacing: -1px; }

  /* Section spacing — cut whitespace before Gen Z and Selected Work in half */
  .section-pad { padding-top: 100px; padding-bottom: 100px; }
  .case-studies { padding-top: var(--space-xl); }
  .case-stack { padding-bottom: 0; }

  /* Grids */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }

  /* Case cards — full-width, butted up, no gray gaps */
  .case-card {
    position: relative;
    top: auto;
    border-radius: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    margin-bottom: 0;
    width: 100%;
    padding: 0;
    background: var(--card-bg, #fff);
  }
  .case-card-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: 360px;
    border-radius: 0;
    overflow: hidden;
  }
  .case-card-overlay { display: none; }
  .case-card-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: -30px 0 0 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 16px 16px 0 0;
    padding: 28px 20px;
    z-index: 2;
  }
  .case-card-name { font-size: 28px; }
  .case-card-subhead { font-size: 15px; }
  .case-card-desc { font-size: 13px; line-height: 1.6; }
  .case-tag { padding: 4px 12px; font-size: 11px; }

  /* Footer spacing — balanced CTA positioning */
  #contact { padding-top: var(--space-xl); }
  .footer-cta { margin-bottom: var(--space-lg); }
  .cta-dock { margin-top: var(--space-xl); margin-bottom: var(--space-3xl); }
  .footer-wordmark { margin-bottom: var(--space-xl); }
  .footer-metrics { margin-bottom: var(--space-xl); }

  /* Glow CTA — mobile styling. Tone down glow. */
  .glow-cta .glass-btn {
    padding: 10px 24px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: var(--radius-pill);
  }
  .glow-cta .glow-ring { inset: -4px; filter: blur(8px); opacity: 0.4; }
  .glow-cta .glow-ring-soft { inset: -8px; filter: blur(16px); opacity: 0.2; }

  /* Mobile dock state: CTA is moved into #ctaDock via JS,
     displayed as a static centered element in the footer flow.
     No fixed positioning, no overlap with copy. */
  .glow-cta.in-dock {
    position: relative !important;
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
    top: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: fit-content;
    margin: 0 auto;
  }

  /* Icon — static bottom-right on mobile, no animation */
  .site-icon-wrap { bottom: 30px !important; right: 20px !important; width: 28px !important; height: 28px !important; }
}

/* Mobile theme toggle — single tap-to-cycle button */
.mobile-theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  padding: 0;
  color: var(--text-primary);
  transition: all 0.3s ease;
}
[data-theme="dark"] .mobile-theme-toggle,
[data-theme="dim"] .mobile-theme-toggle {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.mobile-theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-theme-toggle .mobile-icon[data-mode="dim"] { fill: currentColor; stroke: none; }
.mobile-theme-toggle .mobile-icon { display: none; }
.mobile-theme-toggle .mobile-icon.active { display: block; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-text .word, .fade-in { opacity: 1 !important; transform: none !important; }
  .bounce-float { animation: none !important; }
}
