/* =========================================
   GYDS — Cinematic Dark Studio Portfolio
   Pure custom CSS. No frameworks.
   ========================================= */

:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --bg-card: #111111;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-faint: #666666;
  --accent: #FF3B00;
  --accent-dim: #c22f00;
  --line: rgba(255,255,255,0.16);
  --line-strong: rgba(255,255,255,0.32);
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1420px;
  --nav-h: 100px;
  --ease: cubic-bezier(0.23, 1.0, 0.32, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Lenis must control scrolling completely. Any native smooth scrolling causes the page to "stop" between wheel events. */
html, body { scroll-behavior: auto !important; }
body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; padding: 0; cursor: pointer; color: inherit; }
[data-hover]{cursor: pointer;}
::selection { background: var(--accent); color: #000; }

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-mark {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
/* Preloader is intentionally a dark cinematic curtain */
html.light .preloader-mark { color: var(--text) !important; }
.preloader-line {
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 18px auto 0;
  animation: preline 1.2s var(--ease) infinite;
}
@keyframes preline {
  0% { transform: translateX(-40px); opacity: 0.3; }
  50% { transform: translateX(40px); opacity: 1; }
  100% { transform: translateX(-40px); opacity: 0.3; }
}

.modal-backdrop {
  /* The shader and modal backdrop share the same dark blurred style, so we can reuse the class for both. */
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
}
/* Navigation */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-h);
  background: linear-gradient(0deg, transparent 0%, var(--bg-elev) 95%);
  /*
  background: rgba(0,0,0,0.01);
  backdrop-filter: blur(20px);
  */
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(32px, 4vw, 64px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Group lets-talk + theme toggle as one visual cluster on the right */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  min-height: 36px;
  background: transparent;
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
html.light .theme-toggle {
  color: var(--text-muted);
  border-color: var(--line-strong);
}
html.light .theme-toggle:hover {
  color: var(--accent);
}

.nav-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--text);
  transition: 0.3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 26px; }

/* Dark and Light Toggle */
.theme-switch {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 44px;
  cursor: pointer;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
}
.theme-switch input[type="checkbox"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.theme-switch .switch-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 20px;
}
.theme-switch .switch-icon.sun {
  display: inline-flex;
  color: var(--accent);
}
.theme-switch input[type="checkbox"]:checked ~ .switch-icon.sun {
  display: none;
}
.theme-switch input[type="checkbox"]:checked ~ .switch-icon.moon {
  display: inline-flex;
  color: var(--accent);
}


/* Custom Cursor */
#cursor {
  position: fixed;
  left: 0; top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
  opacity: 0.9;
}
#cursor.active {
  width: 42px;
  height: 42px;
  background: #fff;
}

/* Ray-marched nebula shader — opaque fullscreen background */
#shader {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  /* Opaque nebula renders directly — no blending, blur, or filter needed */
  opacity: 1;
  mix-blend-mode: exclusion;
  filter: hue-rotate(135deg);
}
html.light #shader { 
  filter: grayscale(1) contrast(1);
  mix-blend-mode: plus-lighter;
}
#shader-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-elev) 7.5%, transparent 50%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
  min-height: 48px;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover { 
  background: transparent; 
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px); 
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line-strong);
}
html.light .btn-secondary { color: var(--text); }
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Typography & Sections */
#main{
  position: relative;
  z-index: 1;
}
.section-header { 
  margin-bottom: 64px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 0 4px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: #fff;
}
html.light .section-title { color: var(--text) !important; }
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
}

/* HERO */
#hero {
  /* min-height: 100vh; */
  padding-top: var(--nav-h);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(32px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
}
.hero-content{
  margin-bottom: 10vw;
}
.hero-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 0 -6px 28px;
  color: #fff;
}
/* Hero always uses dark overlay + white text for cinematic impact, even in light mode */
html.light .hero-headline { color: #fff !important; }
.hero-subheadline {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-trust {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.hero-artworks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto;
  gap: clamp(48px, 8vw, 128px);
}
.artwork {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.art-frame {
  position: absolute;
  inset: 18px;
  /* border: 1px solid rgba(255,255,255,0.2); */
  /* background: linear-gradient(145deg, rgba(255,255,255,0.02), transparent); */
  z-index: 1;
  pointer-events: none;
}
.art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: saturate(0.95) contrast(0.97);
  transition: transform 0.7s var(--ease);
  /* background: #111; */
}
/* .artwork:hover .art-img {
  transform: scale(1.035);
} */
.art-dot {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,59,0,0.15);
}
.art-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 100px;
  padding: 4px 16px;
}

.scroll-hint {
  position: sticky;
  bottom: 40px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.5;
  margin-top: 24px;
}

/* PHILOSOPHY */
#philosophy {
  padding: clamp(48px, 8vw, 128px) clamp(32px, 4vw, 64px) 0;
  max-width: var(--max-w);
  margin: 0 auto;
  /* Let the prominent interactive liquid shader breathe through */
}
.phrase {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: clamp(40px, 10vw, 240px);
  max-width: 520px;
}
.phrase:nth-child(odd) { margin-right: auto; }
.phrase:nth-child(even) { margin-left: auto; color: #ccc; }

html.light .phrase { color: var(--text) !important; }
html.light .phrase:nth-child(even) { color: #333 !important; }

/* WORKS — sticky container + scroll-scrubbed horizontal track */
#works {
  position: relative;
  /* height set dynamically by JS based on track width */
}
/* Sticky wrapper fills the viewport while the section provides scroll room */
.works-sticky {
  position: sticky;
  top: 40px;
  /* height: 100vh; */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 0 60px;
  z-index: 1;
}
#works .section-header {
  flex-shrink: 0;
  width: 100%;
  max-width: var(--max-w);
  padding: clamp(32px, 4vw, 64px) clamp(32px, 4vw, 64px);
  margin: auto;
}

#works .section-inner {
  width: 100%;
  max-width: var(--max-w);
  padding: 0 clamp(32px, 4vw, 64px);
  margin: auto;
}
.works-scroll-area {
  flex: 1;
  display: flex;
  align-items: center;
  /* overflow: hidden; */
}
.works-track {
  display: flex;
  gap: clamp(48px, 8vw, 128px);
  will-change: transform;
}
.work {
  flex-shrink: 0;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.work:hover { transform: translateY(-4px); }

.work-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.work-media-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #222 0%, #0a0a0a 100%);
  transition: transform 0.7s var(--ease);
}
.work:hover .work-media-inner { transform: scale(1.06); }

/* Real client screenshots from Playwright - must be visible and crisp */
.work-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.7s var(--ease);
}
/* .work:hover .work-media-img {
  transform: scale(1.06);
} */

/* .work-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
} */
.work-overlay {
  position: absolute;
  top: auto; left: 20px; right: auto; bottom: 20px;
  width: auto;
  height: auto;
  display: flex;
  align-items: flex-end;
  padding: 4px 16px;
  border-radius: 100px;
  transition: opacity 0.4s ease;
  background: var(--bg-elev);
  color: var(--text);
}
.work-overlay-text {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.work-info {
  padding: 24px;
}
/* .work-info {
  position: absolute;
  width: 100%; 
  bottom: 0;
  padding: 128px 24px 24px; 
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 25%, transparent 100%);
} */
.work-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.work-niche {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.work-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
}


/* STUDIO / PIPELINE */
#studio {
  padding: clamp(48px, 8vw, 128px) clamp(32px, 4vw, 64px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(48px, 6vw, 96px);
  margin-top: 60px;
}
.step {
  position: relative;
  padding: clamp(16px, 2vw, 32px) clamp(12px, 1.5vw, 24px);
  background: var(--bg-elev);
  border: 1px solid transparent;
  min-height: 260px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 700;
}
.step-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.25vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.step-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* APPROACH */
#approach {
  padding: clamp(48px, 8vw, 128px) clamp(32px, 4vw, 64px);
}
.approach-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.approach-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ddd;
}

/* ENGAGEMENTS / PRICING */
#engagements {
  padding: clamp(48px, 8vw, 128px) clamp(32px, 4vw, 64px);
  max-width: var(--max-w);
  margin: 0 auto;
}
#engagements .section-header{
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.pricing-card {
  background: var(--bg-elev);
  border: 1px solid transparent;
  padding: 42px 36px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.pricing-card.primary:hover {
  border-color: var(--accent);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  right: 72px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.pricing-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pricing-price-group{
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 12px 0 8px;
}
.pricing-price .cur { font-size: 22px; vertical-align: super; margin-right: 2px; }
.pricing-price .type {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 6px;
  margin-left: 15px;
}
.pricing-desc {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}
.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: #ccc;
}
.pricing-features li:last-child { border-bottom: none; }

.pricing-guarantee {
  margin-top: auto;
  font-size: 13px;
  color: var(--text-faint);
  max-width: 380px;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

/* CTA */
#cta {
  padding: clamp(48px, 8vw, 128px) clamp(32px, 4vw, 64px);
}
.cta-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.cta-form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  margin-top: 42px;
}
.cta-form input {
  flex: 1 1 clamp(56px, 6vw, 96px);
  min-height: 56px;
  padding: 0 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}
.cta-form input:focus { border-color: var(--accent); }
.cta-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-faint);
}

/* FOOTER */
#footer {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 48px) 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(32px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { transition: color 0.2s ease; color: var(--text); }
.footer-links a:hover { color: var(--accent); }

/* Responsive */
@media (min-width: 1024px) {
  .nav-logo{
    min-width: 192px;
  }
  .artwork.a1 { 
    grid-column: 5 / span 2;
    grid-row: 2 / span 1;
  }
  .artwork.a2 {
    grid-column: 1 / span 4; 
    grid-row: 1 / span 3;
  }
  .artwork.a3 { 
    grid-column: 3 / span 3;
    grid-row: 4 / span 1;
  }
  .footer-brand{
    min-width: 202px;
  }
}

@media (max-width: 1440px) {
  .hero-inner{
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 96px);
  }
}

@media (max-width: 1280px) {
  .hero-artworks{gap: clamp(32px, 4vw, 64px);}
  .works-sticky { position: static; height: auto; padding: 40px 0; }
  .works-scroll-area { display: block; overflow: visible; }
  .works-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); }
  .work { width: 100%; }
  .works-sticky::before,
  .works-sticky::after { display: none; }
}

@media (max-width: 1024px) {
  .hero-content { margin-bottom: 0; }
  .hero-inner { width: 100%; grid-template-columns: 1fr; }
  .hero-artworks { grid-template-columns: repeat(3, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #nav{background: var(--bg-elev);}
  .section-title br,
  .approach-text br{display: none;}
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .hero-artworks { grid-template-columns: 1fr; }
  .artwork{aspect-ratio: 2 / 1;}
  .works-track { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card{ border-color: var(--accent); }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .works-track { grid-template-columns: 1fr; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .artwork, .work, .step, .pricing-card {
    transition: none !important;
  }
  #cursor { display: none; }
  .preloader-line { animation: none; }
}

/* Light mode (toggleable) — comprehensive text + surface fixes so nothing becomes invisible */
html.light {
  --bg: #f0efea;
  --bg-elev: #e8e7e2;
  --bg-card: #ffffff;
  --text: #111111;
  --text-muted: #4a4a4a;
  --text-faint: #6b6b6b;
  --line: rgba(0,0,0,0.08);
  --line-strong: rgba(0,0,0,0.14);
}
html.light body { background: var(--bg); color: var(--text); }
html.light .nav-link { color: var(--text-muted); }
html.light .nav-link:hover { color: var(--text); }
html.light .nav-cta { border-color: var(--line-strong); color: var(--text); }
html.light .nav-cta:hover { border-color: var(--accent); color: var(--accent); }
html.light .btn-secondary { border-color: var(--line-strong); color: var(--text); }
html.light .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* All major text that had hard-coded light values must be forced dark in light mode */
html.light .section-title,
html.light .section-subheadline,
html.light .phrase,
html.light .work-title,
html.light .hero-headline,
html.light .hero-subheadline,
html.light .step-title,
html.light .step-desc,
html.light .work-niche,
html.light .pricing-name,
html.light .pricing-desc,
html.light .pricing-description,
html.light .pricing-guarantee,
html.light .cta-note,
html.light .footer-meta,
html.light .approach-text {
  color: var(--text) !important;
}

/* Muted text */
html.light .section-label,
html.light .work-tag,
html.light .stat-context,
html.light .pricing-features li,
html.light .footer-links a {
  color: var(--text-muted) !important;
}

html.light .artwork,
html.light .work,
html.light .pricing-card,
html.light .step {
  background: var(--bg-card);
}

/* Opaque nebula is the same in both themes — it's the fixed background */
/* Old button style cleanup (in case any remnant) */
html.light .theme-toggle { color: var(--text-muted); border-color: var(--line-strong); }
html.light .theme-toggle:hover { color: var(--accent); }

/* Works: sticky header (fixed via .is-stuck) + independent horizontal scroller for cards.
   Native overflow-x on viewport. No pinning or vertical-to-horizontal scrubbing of the page. */

/* Cinematic Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
}
.modal-content {
  position: relative;
  z-index: 1;
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  padding: clamp(24px, 3vw, 48px);
  max-width: 720px;
  width: 100%;
  color: #ddd;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}
.modal-close {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 28px;
  line-height: 1;
  color: #666;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--accent); }