/* CSS Variables & Tokens */
:root {
    --bg: #0b0b0b;
    --text: #ffffff;
    --muted: rgba(255,255,255,0.68);
    --line: rgba(255,255,255,0.12);
    --accent: #ffe500;
    --container: 1440px;
    --wide: 1760px;
    --gutter: clamp(20px, 5vw, 84px);
    --sectionY: clamp(84px, 10vw, 160px);
    --nav-pad-x: clamp(24px, 3vw, 48px);

    /* Glassmorphic pill colors (dark theme) */
    --pill-bg: rgba(255, 255, 255, 0.08);
    --pill-bg-hover: rgba(255, 255, 255, 0.16);
    --pill-text: #ffffff;
    --pill-border: #00ffd5;
    --pill-glow: rgba(0, 255, 213, 0.4);
    --pill-dot: #00ffd5;
    --pill-dot-glow: rgba(0, 255, 213, 0.6);
}

/* Light Theme Override */
:root[data-theme="light"] {
    --bg: #ffffff;
    --text: #0b0b0b;
    --muted: rgba(0,0,0,0.68);
    --line: rgba(0,0,0,0.12);

    /* Glassmorphic pill colors (light theme) */
    --pill-bg: rgba(0, 0, 0, 0.08);
    --pill-bg-hover: rgba(0, 0, 0, 0.16);
    --pill-text: #0b0b0b;
    --pill-border: #00bfa6;
    --pill-glow: rgba(0, 191, 166, 0.35);
    --pill-dot: #00bfa6;
    --pill-dot-glow: rgba(0, 191, 166, 0.5);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

/* Typography */
.display {
    font-size: clamp(48px, 6vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
}

.heading-1 {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}

.heading-2 {
    font-size: clamp(28px, 2.6vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
}

.body-large {
    font-size: clamp(18px, 1.3vw, 22px);
    line-height: 1.6;
    font-weight: 400;
}

.body {
    font-size: 16px;
    line-height: 1.75;
}

.label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--muted);
}

.accent-underline {
    background-image: linear-gradient(transparent calc(100% - 6px), var(--accent) 6px);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: inline;
    padding-bottom: 1px;
}


/* Layout Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.wide {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.fullbleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

section {
    padding: var(--sectionY) 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 11, 11, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--line);
}

:root[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    padding: clamp(28px, 4vh, 40px) var(--nav-pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.logo img {
    height: 120px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: clamp(2.5rem, 4.5vw, 4rem);
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: clamp(15px, 1.1vw, 17px);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.active {
    color: var(--text);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 3vw, 3rem);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.theme-toggle:hover {
    color: var(--muted);
    border-color: var(--muted);
}

.theme-toggle:focus {
    outline: 2px solid var(--line);
    outline-offset: 2px;
}

/* Buttons */
.button {
    display: inline-block;
    padding: clamp(16px, 2vh, 20px) clamp(36px, 5vw, 48px);
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(15px, 1.1vw, 17px);
    transition: all 0.3s ease;
}

.button:hover {
    background-color: var(--text);
    color: var(--bg);
}

/* CTA Section */
.cta-section {
    background-color: var(--bg);
    text-align: center;
}

.cta-content {
    max-width: 720px;
    margin: 0 auto;
}

.cta-section h2 {
    margin-bottom: clamp(24px, 3.5vh, 36px);
}

/* Footer */
footer {
    padding: clamp(72px, 9vw, 104px) 0;
    border-top: 1px solid var(--line);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-contact a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    display: block;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--text);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo img {
        height: 72px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 14px;
    }

     .nav-container {
    gap: 16px;
  }

    section {
        padding: clamp(64px, 12vw, 96px) 0;
    }
}

/* ------------------------------
   Scroll reveal utilities
-------------------------------- */
/* Old IntersectionObserver system removed - GSAP handles all animations */

/* ------------------------------
   SVG draw utilities (GSAP handles)
-------------------------------- */
/* Old draw system removed - GSAP handles path animations */

/* Disable the straight highlight underline ONLY for the hero 'seen' word */
.accent-underline--no-line {
  background-image: none !important;
}

/* Anchor for the scribble positioning */
.seen-anchor {
  position: relative;
  display: inline-block;
}

/* Yellow scribble line positioned under the word */
.scribble-underline {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -14px;
  pointer-events: none;
  display: block;
}

.scribble-underline svg {
  display: block;
}

.scribble-path {
  fill: none;
  stroke: var(--accent);   /* your yellow */
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Inline icon styling */
.inline-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: -4px;
  margin-right: 10px;
}

.inline-icon path,
.inline-icon line,
.inline-icon polyline {
  stroke: #00ffd5;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

:root[data-theme="light"] .inline-icon path,
:root[data-theme="light"] .inline-icon line,
:root[data-theme="light"] .inline-icon polyline {
  stroke: #00bfa6;
}

/* ------------------------------
   Reduced motion
-------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}


/* ------------------------------
   GSAP Interaction Utilities
------------------------------- */

/* Theme wash overlay for smooth theme transitions */
#theme-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  transition: none;
}

/* Chapter scrim (COMPLETELY DISABLED - v2) */
#chapter-scrim {
  opacity: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  display: none !important;
  visibility: hidden !important;
}

/* Reveal curtain for image mask animations */
.reveal-curtain {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2;
  pointer-events: none;

  /* SAFETY: if JS/ScrollTrigger fails, never block the image */
  transform-origin: top;
  transform: scaleY(0);
  will-change: transform;
}

:root[data-theme="light"] .reveal-curtain {
  background: rgba(247, 243, 234, 0.95);
}

/* Ensure reveal containers are positioning contexts */
[data-reveal="mask"] {
  position: relative;
  overflow: hidden;
}

