/* ═══════════════════════════════════════════════════
   PEEQ.WORK — Style System
   Dual Theme: Geometry (day) · Ocean (night)
═══════════════════════════════════════════════════ */

/* ── THEME TOKENS ─────────────────────────────── */
[data-theme="geometry"] {
  --bg:         #FAF8F3;
  --bg-alt:     #F3F1EC;
  --bg-card:    #FFFFFF;
  --bg-card-border: rgba(108, 71, 255, 0.1);
  --text:       #1a1a2e;
  --text-muted: #6B6B8A;
  --accent:     #6C47FF;
  --accent-glow: rgba(108, 71, 255, 0.18);
  --accent2:    #D4A853;
  --nav-bg:     rgba(250, 248, 243, 0.85);
  --nav-border: rgba(108, 71, 255, 0.12);
  --btn-primary-bg:    #6C47FF;
  --btn-primary-text:  #FFFFFF;
  --btn-ghost-border:  #1a1a2e;
  --btn-ghost-text:    #1a1a2e;
  --hero-orb1: radial-gradient(circle, rgba(108,71,255,0.18) 0%, transparent 70%);
  --hero-orb2: radial-gradient(circle, rgba(212,168,83,0.14) 0%, transparent 70%);
  --hero-orb3: radial-gradient(circle, rgba(108,71,255,0.1) 0%, transparent 70%);
  --hero-orb4: radial-gradient(circle, rgba(212,168,83,0.08) 0%, transparent 70%);
  --grid-color: rgba(108, 71, 255, 0.05);
  --dot-geometry-active: #6C47FF;
  --dot-ocean-active: #6B6B8A;
  --vision-marker: #D4A853;
  --program-type-bg: rgba(108,71,255,0.08);
}

[data-theme="ocean"] {
  --bg:         #0B1929;
  --bg-alt:     #0F2035;
  --bg-card:    rgba(255,255,255,0.05);
  --bg-card-border: rgba(0, 212, 255, 0.15);
  --text:       #C8E6FF;
  --text-muted: #6A9AB8;
  --accent:     #00D4FF;
  --accent-glow: rgba(0, 212, 255, 0.2);
  --accent2:    #FF7A5C;
  --nav-bg:     rgba(11, 25, 41, 0.88);
  --nav-border: rgba(0, 212, 255, 0.12);
  --btn-primary-bg:    #00D4FF;
  --btn-primary-text:  #0B1929;
  --btn-ghost-border:  rgba(200, 230, 255, 0.5);
  --btn-ghost-text:    #C8E6FF;
  --hero-orb1: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  --hero-orb2: radial-gradient(circle, rgba(255,122,92,0.12) 0%, transparent 70%);
  --hero-orb3: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  --hero-orb4: radial-gradient(circle, rgba(11,62,120,0.4) 0%, transparent 70%);
  --grid-color: rgba(0, 212, 255, 0.04);
  --dot-geometry-active: #6A9AB8;
  --dot-ocean-active: #00D4FF;
  --vision-marker: #FF7A5C;
  --program-type-bg: rgba(0,212,255,0.08);
}

/* ── GLOBAL TRANSITION ────────────────────────── */
*, *::before, *::after {
  transition:
    background-color 0.6s ease,
    border-color 0.6s ease,
    color 0.6s ease,
    box-shadow 0.6s ease;
  box-sizing: border-box;
}

/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles this */
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── UTILITIES ────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.mono-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.desktop-br { display: block; }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  opacity: 0.92;
}

.btn--ghost {
  background-color: transparent;
  color: var(--btn-ghost-text);
  border-color: var(--btn-ghost-border);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.btn--large {
  font-size: 1rem;
  padding: 0.9rem 2.25rem;
  border-radius: 5px;
}

/* ── SECTION BASE ─────────────────────────────── */
.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.section--alt { background-color: var(--bg-alt); }

.section__header {
  max-width: 680px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section__eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}
.section__title {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

/* Balanced two-line wrapping for philosophy title */
.section__title .title-line-1,
.section__title .title-line-2 {
  display: inline;
}
@media (max-width: 640px) {
  .section__title .title-line-2 {
    display: block;
  }
}
.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* ── SCROLL REVEAL ────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ NAVIGATION ═══════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}
.nav.is-scrolled {
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--nav-border);
  padding: 0.85rem 0;
  box-shadow: 0 1px 24px rgba(0,0,0,0.06);
}

.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  font-family: 'Newsreader', serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav__logo-dot { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ── Theme Toggle Dots ───────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 100px;
  background-color: var(--bg-alt);
  border: 1px solid var(--nav-border);
  transition: background-color 0.3s, border-color 0.3s;
}

.theme-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  background-color: transparent;
  padding: 0;
}

.theme-dot--geometry {
  background-color: var(--dot-geometry-active);
  box-shadow: 0 0 0 0 transparent;
}
.theme-dot--ocean {
  background-color: var(--dot-ocean-active);
  box-shadow: 0 0 0 0 transparent;
}

[data-theme="geometry"] .theme-dot--geometry {
  box-shadow: 0 0 6px var(--accent-glow), 0 0 0 2px var(--bg-alt), 0 0 0 3px var(--accent);
  transform: scale(1.2);
}
[data-theme="ocean"] .theme-dot--ocean {
  box-shadow: 0 0 6px var(--accent-glow), 0 0 0 2px var(--bg-alt), 0 0 0 3px var(--accent);
  transform: scale(1.2);
}

.theme-dot:hover { transform: scale(1.15); }
[data-theme="geometry"] .theme-dot--geometry:hover { transform: scale(1.25); }
[data-theme="ocean"] .theme-dot--ocean:hover { transform: scale(1.25); }

/* ── Hamburger ───────────────────────────────── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Mobile Menu ─────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.mobile-menu__link {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.mobile-menu__link:hover { opacity: 1; color: var(--accent); }
.mobile-menu__theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.mobile-menu__theme-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.theme-toggle--large { padding: 8px 14px; }
.theme-toggle--large .theme-dot {
  width: 14px;
  height: 14px;
}

/* ═══ HERO ═════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 3rem;
}

/* Animated gradient orbs */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero__orb--1 {
  width: 55vmax;
  height: 55vmax;
  top: -20%;
  left: -15%;
  background: var(--hero-orb1);
  animation: orbFloat1 22s ease-in-out infinite;
}
.hero__orb--2 {
  width: 45vmax;
  height: 45vmax;
  top: 10%;
  right: -20%;
  background: var(--hero-orb2);
  animation: orbFloat2 27s ease-in-out infinite;
}
.hero__orb--3 {
  width: 40vmax;
  height: 40vmax;
  bottom: -15%;
  left: 20%;
  background: var(--hero-orb3);
  animation: orbFloat3 19s ease-in-out infinite;
}
.hero__orb--4 {
  width: 30vmax;
  height: 30vmax;
  bottom: 5%;
  right: 10%;
  background: var(--hero-orb4);
  animation: orbFloat4 32s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(4%, 3%) scale(1.04); }
  66%       { transform: translate(-2%, 5%) scale(0.97); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-5%, 4%) scale(1.06); }
  70%       { transform: translate(3%, -3%) scale(0.95); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%       { transform: translate(6%, -4%) scale(1.05); }
  60%       { transform: translate(-3%, 2%) scale(0.96); }
}
@keyframes orbFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-4%, -5%) scale(1.08); }
}

/* Geometry grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  padding: 0 1.5rem;
}

.hero__eyebrow {
  margin-bottom: 1.75rem;
  animation: heroFadeIn 1s ease 0.2s both;
}

.hero__title {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  animation: heroFadeUp 1s ease 0.35s both;
  color: var(--text);
  position: relative;
}
/* hero__title-dot styles moved to Interactive Hero Dot Effect section below */
.hero__title-line2 { display: inline-block; font-weight: 500; }

.hero__tagline {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--text-muted);
  margin-bottom: 1rem;
  animation: heroFadeUp 1s ease 0.5s both;
}

/* hero__sub styles moved to Interactive Hero Dot Effect section below */

.hero__cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeUp 1s ease 0.8s both;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: heroFadeIn 1.5s ease 1.2s both;
  z-index: 1;
}
.hero__scroll-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

/* ── Interactive Hero Dot Effect ──────────────── */
.hero__title-dot {
  color: var(--accent);
  position: relative;
  cursor: default;
  display: inline;
  transition: color 0.3s ease, filter 0.3s ease;
}
.hero__title-dot.is-sparkling {
  color: var(--accent2);
  filter:
    drop-shadow(0 0 8px var(--accent2))
    drop-shadow(0 0 20px rgba(212, 168, 83, 0.5));
  animation: dotSparkle 0.6s ease-out;
}
@keyframes dotSparkle {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.6); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Permanent golden state: dot stays gold after full de-blur */
.hero__title-dot.is-golden {
  color: var(--accent2);
  filter:
    drop-shadow(0 0 6px rgba(212, 168, 83, 0.4))
    drop-shadow(0 0 16px rgba(212, 168, 83, 0.2));
}

/* Sparkle particles container */
.hero__dot-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10;
}
.hero__dot-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 6px var(--accent2);
  animation: particleBurst 0.8s ease-out forwards;
}
@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--px), var(--py)) scale(0);
  }
}

/* Trigger zone: covers tagline + dot area */
.hero__trigger-zone {
  cursor: default;
  display: inline-block;
}
.hero__tagline-up {
  position: relative;
  display: inline;
}

/* Subtle golden shockwave from dot */
.hero__shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(
    circle,
    rgba(212, 168, 83, 0.25) 0%,
    rgba(212, 168, 83, 0.08) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
}
.hero__shockwave.is-active {
  animation: shockwaveExpand 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes shockwaveExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.6;
  }
  60% {
    width: 160px;
    height: 160px;
    opacity: 0.2;
  }
  100% {
    width: 220px;
    height: 220px;
    opacity: 0;
  }
}

/* ── Progressive subtitle de-blur system ───────── */
/* Starts very blurry (anxiety). Each hover cycle halves the blur.
   Level 0 (initial): blur(3px)  — almost unreadable
   Level 1:           blur(1.5px)
   Level 2:           blur(0.7px)
   Level 3:           blur(0.3px)
   Level 4 (clear):   blur(0) — anxiety gone, text stays crisp */

.hero__sub {
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 1s ease 0.65s both;
  /* Default: very blurry — anxiety state */
  filter: blur(3px);
  transition: filter 0.5s ease, letter-spacing 0.5s ease, color 0.6s ease, text-shadow 0.6s ease;
}

/* Mouse-in state: always crystal clear */
.hero__sub.is-hovering {
  filter: blur(0) !important;
  letter-spacing: 0.03em;
}

/* Progressive resting blur levels (set via JS data attribute) */
.hero__sub[data-blur="3"] { filter: blur(3px); }
.hero__sub[data-blur="2"] { filter: blur(1.5px); }
.hero__sub[data-blur="1"] { filter: blur(0.7px); }
.hero__sub[data-blur="0"] { filter: blur(0); }

/* Letter glow: subtle warmth that builds as blur decreases */
.hero__sub[data-blur="2"] {
  color: var(--text-muted);
}
.hero__sub[data-blur="1"] {
  text-shadow: 0 0 12px rgba(212, 168, 83, 0.06);
}
.hero__sub[data-blur="0"] {
  text-shadow: 0 0 10px rgba(212, 168, 83, 0.08);
  letter-spacing: 0.03em;
}

/* Punctuation always gets vivid accent when clear */
.hero__sub-punct {
  font-weight: 600;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.hero__sub[data-blur="3"] .hero__sub-punct,
.hero__sub[data-blur="2"] .hero__sub-punct {
  color: var(--text-muted);
}
.hero__sub[data-blur="1"] .hero__sub-punct {
  color: var(--accent2);
  text-shadow: 0 0 6px rgba(212, 168, 83, 0.2);
}
.hero__sub[data-blur="0"] .hero__sub-punct {
  color: var(--accent2);
  text-shadow: 0 0 8px rgba(212, 168, 83, 0.35);
}

/* Hovering state: punctuation always vivid, letters get glow */
.hero__sub.is-hovering .hero__sub-punct {
  color: var(--accent2);
  text-shadow: 0 0 8px rgba(212, 168, 83, 0.35);
}
.hero__sub.is-hovering {
  text-shadow: 0 0 10px rgba(212, 168, 83, 0.1);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(0.6) translateY(8px); }
}

/* ═══ PHILOSOPHY ════════════════════════════════ */
.philosophy__statement {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  margin-top: 1.5rem;
  max-width: 620px;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.philosophy__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.philosophy__card {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.philosophy__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
  border-color: var(--accent);
}
.philosophy__card-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.philosophy__card-title {
  font-family: 'Newsreader', serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
}
.philosophy__card-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══ SERVICES ══════════════════════════════════ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 2rem 1.75rem 1.75rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
  border-color: var(--accent);
}
.service-card:hover::before { opacity: 1; }

.service-card__num {
  font-size: 0.65rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-card__title {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.service-card__label {
  font-size: 0.65rem;
  color: var(--accent2);
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  display: block;
}
.service-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.service-card__tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  border: 1px solid rgba(108,71,255,0.12);
}
[data-theme="ocean"] .service-card__tags li {
  border-color: rgba(0,212,255,0.15);
}

/* ═══ PROGRAMS ══════════════════════════════════ */
.programs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.program-card {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
  border-color: var(--accent);
}

.program-card__header {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--bg-card-border);
}
.program-card__type {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--accent);
  background: var(--program-type-bg);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.program-card__title {
  font-family: 'Newsreader', serif;
  font-size: 1.4rem;
  font-weight: 500;
}
.program-card__text {
  font-size: 0.895rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 1.25rem 1.75rem;
}
.program-card__list {
  list-style: none;
  padding: 0 1.75rem 1.5rem;
  flex: 1;
}
.program-card__list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.program-card__list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}
.program-card__footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--bg-card-border);
  margin-top: auto;
}
.program-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: letter-spacing 0.2s ease !important;
}
.program-card__cta:hover { letter-spacing: 0.05em; }

/* ═══ ABOUT ═════════════════════════════════════ */
.about__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about__portrait-frame {
  aspect-ratio: 1;
  max-width: 280px;
  border-radius: 50%;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about__portrait-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about__portrait-glyph {
  width: 75%;
  height: 75%;
  color: var(--accent);
}
.about__initials {
  position: absolute;
  font-family: 'Newsreader', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.05em;
  opacity: 0.2;
}

.about__affiliation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.about__affiliation-sep {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.about__role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent2);
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.about__bio {
  font-size: 1.025rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border);
  background-color: var(--bg-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.about__link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.about__link-icon {
  color: var(--accent);
  flex-shrink: 0;
}
.about__link-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.about__link-title {
  font-weight: 600;
  font-size: 0.925rem;
}
.about__link-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.about__link-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease !important;
}
.about__link:hover .about__link-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* ═══ VISION ════════════════════════════════════ */
.vision__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.vision__statement {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.vision__list {
  padding-top: clamp(0rem, 3vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vision__item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--bg-card-border);
  align-items: baseline;
}
.vision__item:first-child { border-top: 1px solid var(--bg-card-border); }
.vision__item-marker {
  font-family: 'JetBrains Mono', monospace;
  color: var(--vision-marker);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}
.vision__item-text {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══ AUDIENCE ══════════════════════════════════ */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.audience-card {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 2.25rem 2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
  border-color: var(--accent);
}
.audience-card__icon {
  color: var(--accent);
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}
.audience-card__title {
  font-family: 'Newsreader', serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.audience-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══ CONTACT ═══════════════════════════════════ */
.contact__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact__inner .section__eyebrow {
  display: block;
  margin-bottom: 1rem;
}
.contact__title {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.contact__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Contact Form ─────────────────────────────── */
.contact__form {
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}
.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact__field {
  margin-bottom: 1.25rem;
}
.contact__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
}
.contact__optional {
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.72rem;
}
.contact__input,
.contact__textarea {
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.925rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.6s ease, color 0.6s ease !important;
}
.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}
.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.contact__textarea {
  resize: vertical;
  min-height: 120px;
}
.contact__submit {
  margin-top: 0.5rem;
}

/* Ocean theme form overrides */
[data-theme="ocean"] .contact__input,
[data-theme="ocean"] .contact__textarea {
  background-color: rgba(255,255,255,0.04);
  border-color: rgba(0, 212, 255, 0.15);
}
[data-theme="ocean"] .contact__input:focus,
[data-theme="ocean"] .contact__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

/* ═══ FOOTER ════════════════════════════════════ */
.footer {
  background-color: var(--bg);
  border-top: 1px solid var(--nav-border);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__logo {
  font-family: 'Newsreader', serif;
  font-size: 1.1rem;
  font-weight: 500;
}
.footer__logo-dot { color: var(--accent); }
.footer__tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-style: italic;
  font-family: 'Newsreader', serif;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer__link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease !important;
}
.footer__link:hover { color: var(--accent); }
.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.footer__copy {
  font-size: 0.67rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ═══ RESPONSIVE ════════════════════════════════ */
@media (max-width: 900px) {
  .about__layout {
    grid-template-columns: 1fr;
  }
  .about__portrait-frame {
    max-width: 200px;
  }
  .vision__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .audience__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

@media (max-width: 680px) {
  .hero__title { font-size: clamp(2rem, 10vw, 3.25rem); }
  .hero__cta-group { flex-direction: column; align-items: center; }
  .desktop-br { display: none; }
  .services__grid,
  .programs__grid,
  .philosophy__cards {
    grid-template-columns: 1fr;
  }
  .contact__form-row {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__right { align-items: center; }
}

@media (max-width: 420px) {
  .btn--large { width: 100%; justify-content: center; }
  .about__affiliation { justify-content: center; }
}

/* ═══ OCEAN GLASS CARDS ═════════════════════════ */
[data-theme="ocean"] .philosophy__card,
[data-theme="ocean"] .service-card,
[data-theme="ocean"] .program-card,
[data-theme="ocean"] .audience-card,
[data-theme="ocean"] .about__link {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(0, 212, 255, 0.12);
}
[data-theme="ocean"] .philosophy__card:hover,
[data-theme="ocean"] .service-card:hover,
[data-theme="ocean"] .program-card:hover,
[data-theme="ocean"] .audience-card:hover,
[data-theme="ocean"] .about__link:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.06);
}

/* ═══ OCEAN WAVE ANIMATION ══════════════════════ */
/* In Ocean theme the orbs shift to cool/deep colors via CSS vars — already handled */

/* ═══ SCROLL PARALLAX ═══════════════════════════ */
.hero__bg { will-change: transform; }

/* ═══ ACCESSIBILITY ═════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hero__orb { animation: none; }
  .reveal-up {
    opacity: 1;
    transform: none;
  }
  * { transition-duration: 0.01ms !important; }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ═══ HERO TEXT CONTRAST BOOST ══════════════════ */
[data-theme="ocean"] .hero__title {
  color: #E8F4FF;
}
[data-theme="ocean"] .hero__tagline {
  color: #8AB8D4;
}

/* Ensure hero animations start immediately with shorter delays */
.hero__eyebrow { animation-delay: 0.1s !important; }
.hero__title   { animation-delay: 0.2s !important; }
.hero__tagline { animation-delay: 0.35s !important; }
.hero__sub     { animation-delay: 0.5s !important; }
.hero__cta-group { animation-delay: 0.6s !important; }
