/*
Theme Name: VESL
Theme URI: https://veslai.com
Author: Klyra AI
Author URI: https://klyra.ai
Description: Voice Enabled Safety Layer - Maritime voice-biomarker AI. Cinematic dark-theme single-page website.
Version: 1.0.0
License: Proprietary
Text Domain: vesl
*/

/* ═══════════════════════════════════════════════════════════════════════
   VESL CINEMATIC CSS — Voice Enabled Safe Layer
   Single-page dark-theme cinematic website with GSAP ScrollTrigger
   No frameworks, no build step.
   ═══════════════════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
  --bg: #080C14;
  --bg-surface: #0F1520;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --primary: #0EA5E9;
  --accent: #06B6D4;
  --highlight: #22D3EE;
  --text: #F8FAFC;
  --text-secondary: #B0BEC5;
  --text-muted: rgba(255, 255, 255, 0.55);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 20px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.8s ease, color 0.8s ease;
}

/* Film grain texture overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

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

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(14, 165, 233, 0.3);
  color: #fff;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section + .section {
  border-top: none;
}

.section-alt {
  background: var(--bg-surface);
}

/* Technology section background */
#technology {
  padding-bottom: 80px;
  background: linear-gradient(180deg, rgba(15,21,32,0.6) 0%, rgba(15,21,32,0.5) 50%, rgba(15,21,32,0.65) 100%),
              url('https://images.unsplash.com/photo-1675223894754-7b0af6c38a90?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: var(--bg-surface);
}

#opportunity {
  padding-top: 80px;
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--highlight));
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

/* ── Cursor Glow ── */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s;
  will-change: transform;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   1. NAV — Sticky Glassmorphism
   ═══════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  height: 36px;
  width: auto;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.nav-logo:hover .logo-icon {
  opacity: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  width: 100%;
}

.nav-link[data-highlight] {
  color: var(--text);
  padding: 8px 20px;
  border: 1px solid var(--primary);
  border-radius: 100px;
  background: rgba(14, 165, 233, 0.12);
  transition: all 0.3s;
}

.nav-link[data-highlight]::after {
  display: none;
}

.nav-link[data-highlight]:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
  display: block;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Typography ── */
.h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 16px;
}

.accent-text {
  color: var(--primary);
}

.subtle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 640px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════
   2. HERO — Full Viewport with Voice Waveform
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8,12,20,0.25) 0%, rgba(8,12,20,0.5) 40%, rgba(8,12,20,0.75) 70%, #080C14 100%),
              url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: var(--bg);
}

/* Bird watermark behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 200px;
  background: url('assets/images/vesl-bird-white.svg') center/contain no-repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* Editorial line above headline */
.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--primary);
  margin: 0 auto 24px;
  opacity: 0.6;
}

/* Waveform background */
.hero-waveform {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 320px;
  pointer-events: none;
  opacity: 0.6;
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.2));
  z-index: 0;
}

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

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 80px 24px 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text-wrap {
  overflow: hidden;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 20px auto 0;
  text-align: center;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 16px auto 0;
  text-align: center;
  line-height: 1.6;
}

.hero-beta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 20px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.hero-beta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--highlight);
  animation: betaPulse 2s ease-in-out infinite;
}

@keyframes betaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

/* Hero stats bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
}

.odo-stat {
  text-align: center;
}

.odo-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--highlight);
  display: flex;
  align-items: baseline;
  justify-content: center;
  overflow: hidden;
  height: 1.15em;
}

.odo-digit {
  display: inline-block;
  overflow: hidden;
  height: 1.15em;
  position: relative;
}

.odo-strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.odo-strip span {
  display: block;
  height: 1.15em;
  line-height: 1.15;
}

.odo-prefix,
.odo-suffix {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--highlight);
  opacity: 0.7;
}

.odo-dot {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--highlight);
  line-height: 1.15;
}

.odo-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.odo-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Stats source reference — sits just above the stats bar */
.hero-stats-source {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
  z-index: 2;
  padding: 4px 24px;
  background: linear-gradient(180deg, transparent, rgba(8,12,20,0.4));
}

/* Science section: 2x2 grid for 4 cards */
#science .pillars {
  grid-template-columns: repeat(2, 1fr);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-hint span {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ═══════════════════════════════════════════════════════════════════════
   3. VISION — Two-Column Split (45/55)
   ═══════════════════════════════════════════════════════════════════════ */
/* Vision section — subtle background image */
#vision {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(8,12,20,0.55) 15%, rgba(8,12,20,0.55) 85%, var(--bg) 100%),
              url('https://images.unsplash.com/photo-1640888920087-9a53ad87f0e9?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: var(--bg);
}

.split {
  display: grid;
  grid-template-columns: 40fr 55fr;
  gap: 80px;
  align-items: start;
  position: relative;
}

/* Subtle vertical accent line on left edge */
.split::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--primary) 30%, var(--primary) 70%, transparent 100%);
  opacity: 0.2;
}

.split-left .h2 {
  text-align: left;
  white-space: nowrap;
}

.split-right p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feat-icon {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--highlight);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 56px;
}

.feat strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.feat p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   4. TECHNOLOGY — Three Pillar Cards
   ═══════════════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.header-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 16px auto 0;
  line-height: 1.6;
}

/* Left-aligned section header variant */
.section-header--left {
  text-align: left;
  max-width: 800px;
  margin-left: 0;
}

.section-header--left .header-sub {
  margin-left: 0;
}

.header-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 20px 0;
  border: none;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: border-color 0.3s, transform 0.3s;
}

.pillar-card:hover {
  border-color: rgba(14, 165, 233, 0.2);
  transform: translateY(-4px);
}

.pillar-num {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 14px;
  display: block;
  margin-bottom: 20px;
}

.pillar-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 12px;
}

.pillar-card p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════
   5. MARQUEE — Kinetic Marquee with Two Rows
   ═══════════════════════════════════════════════════════════════════════ */
.marquee-section {
  padding: 24px 0;
  overflow: hidden;
}

.marquee-row {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  padding: 12px 0;
}

.marquee-row + .marquee-row {
  margin-top: 4px;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-content span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 0 24px;
  color: var(--text);
}

.marquee-content span::after {
  content: '·';
  margin-left: 48px;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 400;
}

.marquee-row.outlined .marquee-content span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
}

.marquee-row.outlined .marquee-content span::after {
  color: rgba(255, 255, 255, 0.15);
  -webkit-text-stroke: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   6. OPPORTUNITY — Accordion Strips
   ═══════════════════════════════════════════════════════════════════════ */
.accordion-slider {
  display: flex;
  gap: 1px;
  height: 60vh;
  min-height: 380px;
  max-height: 560px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.svc-strip {
  flex: 1;
  background: var(--bg-surface);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-strip.active {
  flex: 5;
}

/* Accordion strip atmospheric backgrounds — all 7 verticals */
/* 01 Commercial Shipping */
.svc-strip:nth-child(1) {
  background: linear-gradient(180deg, rgba(15,21,32,0.35) 0%, rgba(15,21,32,0.6) 100%),
              url('https://images.unsplash.com/photo-1704716553676-4240c68ca57b?w=800&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: var(--bg-surface);
}
/* 02 Cruise Ships */
.svc-strip:nth-child(2) {
  background: linear-gradient(180deg, rgba(15,21,32,0.35) 0%, rgba(15,21,32,0.6) 100%),
              url('https://images.unsplash.com/photo-1548574505-5e239809ee19?w=800&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: var(--bg-surface);
}
/* 03 Commercial Fishing */
.svc-strip:nth-child(3) {
  background: linear-gradient(180deg, rgba(15,21,32,0.35) 0%, rgba(15,21,32,0.6) 100%),
              url('assets/images/commercial-fisherman.png') center/cover no-repeat;
  background-color: var(--bg-surface);
}
/* 04 Offshore Oil & Gas */
.svc-strip:nth-child(4) {
  background: linear-gradient(180deg, rgba(15,21,32,0.35) 0%, rgba(15,21,32,0.6) 100%),
              url('https://images.unsplash.com/photo-1723435732442-c0a7ca08e7e9?w=800&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: var(--bg-surface);
}
/* 05 Military / Coast Guard */
.svc-strip:nth-child(5) {
  background: linear-gradient(180deg, rgba(15,21,32,0.35) 0%, rgba(15,21,32,0.6) 100%),
              url('https://images.unsplash.com/photo-1758291462752-3a726bf1067b?w=800&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: var(--bg-surface);
}
/* 06 Insurance */
.svc-strip:nth-child(6) {
  background: linear-gradient(180deg, rgba(15,21,32,0.35) 0%, rgba(15,21,32,0.6) 100%),
              url('https://images.unsplash.com/photo-1559825481-12a05cc00344?w=800&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: var(--bg-surface);
}
/* 07 Maritime Medical */
.svc-strip:nth-child(7) {
  background: linear-gradient(180deg, rgba(15,21,32,0.35) 0%, rgba(15,21,32,0.6) 100%),
              url('https://images.unsplash.com/photo-1505142468610-359e7d316be0?w=800&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: var(--bg-surface);
}

.svc-vertical {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transform-origin: center center;
  transition: opacity 0.3s;
}

.svc-strip.active .svc-vertical {
  opacity: 0;
}

.svc-expanded {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
  background: linear-gradient(0deg, rgba(14, 165, 233, 0.08) 0%, transparent 100%);
}

.svc-strip.active .svc-expanded {
  opacity: 1;
  transform: translateY(0);
}

.svc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

.svc-expanded h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.svc-expanded p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 36ch;
}

/* ═══════════════════════════════════════════════════════════════════════
   7. FOUNDATION — Sticky Cards
   ═══════════════════════════════════════════════════════════════════════ */

/* Foundation section background */
#foundation {
  background: linear-gradient(180deg, rgba(15,21,32,0.5) 0%, rgba(8,12,20,0.65) 100%),
              url('https://images.unsplash.com/photo-1755531067026-11e5e2c314b5?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: var(--bg-surface);
}

/* Foundation header — left-aligned with pullquote */
.foundation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 80px;
}

.foundation-header-left {
  flex: 1;
}

.foundation-header-left .h2 {
  text-align: left;
}

.foundation-header-left .h2 em {
  font-style: italic;
  font-weight: 400;
}

.foundation-pullquote {
  flex-shrink: 0;
  text-align: right;
  padding-bottom: 8px;
}

.pullquote-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--highlight);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pullquote-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
  line-height: 1.4;
}

.cards-stack {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.stack-card {
  position: sticky;
  top: calc(100px + var(--card-index) * 20px);
  z-index: calc(var(--card-index) + 1);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  margin-bottom: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.1s ease;
  will-change: transform;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
  opacity: 0.7;
}

.stack-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
  color: var(--text);
}

.stack-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 55ch;
}

/* ═══════════════════════════════════════════════════════════════════════
   ABOUT — Split Layout with Content Blocks
   ═══════════════════════════════════════════════════════════════════════ */
.about-block {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.about-block:first-child {
  border-top: none;
  padding-top: 0;
}

.about-block-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.about-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 55ch;
}

/* ═══════════════════════════════════════════════════════════════════════
   8. CONTACT — Split Layout with Spotlight Form
   ═══════════════════════════════════════════════════════════════════════ */

/* Contact section background */
#contact {
  background: linear-gradient(180deg, rgba(8,12,20,0.45) 0%, rgba(8,12,20,0.6) 100%),
              url('https://images.unsplash.com/photo-1710081647293-a07a5915bcd6?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: var(--bg);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .h2 {
  text-align: left;
}

.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 480px;
}

.contact-details {
  margin-top: 32px;
}

.contact-detail {
  margin-bottom: 16px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.contact-detail a {
  color: var(--text);
  font-size: 1rem;
  transition: color 0.3s;
}

.contact-detail a:hover {
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  overflow: hidden;
  transform: translateY(-20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: radial-gradient(circle 250px at var(--mx, 50%) var(--my, 50%), rgba(14, 165, 233, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.contact-form:hover::before {
  opacity: 1;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  position: relative;
  z-index: 1;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

/* ═══════════════════════════════════════════════════════════════════════
   9. FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 44px;
  width: auto;
  opacity: 0.95;
}

.footer-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-meta a {
  color: var(--primary);
  transition: color 0.3s;
}

.footer-meta a:hover {
  color: var(--highlight);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1024px: Desktop/tablet transition ── */
@media (max-width: 1024px) {
  .accordion-slider {
    height: 50vh;
    min-height: 340px;
    max-height: 480px;
  }

  .pillar-card {
    padding: 32px;
  }

  .stack-card {
    padding: 40px 32px;
    min-height: 240px;
  }

  .contact-wrap {
    gap: 40px;
  }
}

/* ── 768px: Tablet/mobile transition ── */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  /* Nav hamburger */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 99;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .cursor-glow {
    display: none;
  }

  /* Hero responsive */
  .hero-content {
    padding: 80px 24px 120px;
  }

  .hero-headline {
    font-size: clamp(28px, 8vw, 48px);
  }

  .hero-headline br {
    display: none;
  }

  .hero-sub br {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero stats: 2x2 grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    padding: 20px 24px;
  }

  .odo-stat {
    flex: none;
  }

  .odo-divider {
    display: none;
  }

  .odo-value {
    font-size: 1.4rem;
  }

  /* Split layout stacks */
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split::before {
    display: none;
  }

  .split-left .h2 {
    white-space: normal;
  }

  .hero-stats-source {
    bottom: auto;
    position: relative;
    padding: 8px 16px;
  }

  /* Foundation header stacks */
  .foundation-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 48px;
  }

  .foundation-pullquote {
    text-align: left;
  }

  .pullquote-number {
    font-size: 3rem;
  }

  /* Contact form offset removed on mobile */
  .contact-form {
    transform: none;
  }

  /* Left-aligned header becomes centered on mobile */
  .section-header--left {
    text-align: center;
  }

  .section-header--left .header-sub {
    margin-left: auto;
  }

  .header-rule {
    margin: 20px auto;
  }

  /* Pillars stack to 1 column */
  .pillars,
  #science .pillars {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    padding: 28px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  /* Accordion strips: vertical stack (full-width expandable items) */
  .accordion-slider {
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .svc-strip {
    min-height: 56px;
    flex: none;
  }

  .svc-strip.active {
    min-height: 220px;
    flex: none;
  }

  .svc-vertical {
    transform: none;
    position: relative;
    bottom: auto;
    left: auto;
    padding: 16px 20px;
  }

  .svc-strip.active .svc-vertical {
    opacity: 0;
    position: absolute;
  }

  .svc-expanded {
    position: relative;
    padding: 20px;
    background: linear-gradient(0deg, rgba(14, 165, 233, 0.08) 0%, transparent 100%);
    display: none;
  }

  .svc-strip.active .svc-expanded {
    display: block;
  }

  .svc-expanded p {
    max-width: none;
  }

  /* Nav touch targets */
  .nav-toggle {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
  }

  .nav-link {
    padding: 8px 16px;
  }

  /* Contact button full-width */
  .contact-form .btn {
    align-self: stretch;
    justify-content: center;
  }

  /* Sticky cards: remove sticky, stack normally */
  .cards-stack {
    padding-bottom: 0;
  }

  .stack-card {
    position: relative;
    top: auto;
    padding: 32px 24px;
    min-height: auto;
  }

  /* Contact: form stacks below info */
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 28px;
  }

  /* Footer: stack columns */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-meta {
    text-align: left;
  }

  /* Scroll hint hidden on mobile (touch devices) */
  .scroll-hint {
    display: none !important;
  }
}

/* ── 480px: Small mobile ── */
@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .hero-content {
    padding: 60px 16px 100px;
  }

  .hero-headline {
    font-size: clamp(24px, 7vw, 36px);
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-stats {
    padding: 16px;
    gap: 12px 16px;
  }

  .odo-value {
    font-size: 1.2rem;
  }

  .odo-prefix,
  .odo-suffix {
    font-size: 1rem;
  }

  .odo-dot {
    font-size: 1.2rem;
  }

  .h2 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

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

  .header-sub {
    font-size: 15px;
  }

  .pillar-card {
    padding: 24px;
  }

  .pillar-card h3 {
    font-size: 18px;
  }

  .marquee-content span {
    font-size: clamp(24px, 7vw, 40px);
    padding: 0 16px;
  }

  .marquee-content span::after {
    margin-left: 32px;
  }

  .svc-expanded h3 {
    font-size: 17px;
  }

  .svc-expanded p {
    font-size: 13px;
  }

  .stack-card {
    padding: 24px 20px;
    margin-bottom: 20px;
  }

  .stack-card h3 {
    font-size: clamp(20px, 5vw, 26px);
  }

  .stack-card p {
    font-size: 14px;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px;
    font-size: 0.9rem;
  }

  .footer {
    padding: 40px 0;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
