/* ============================================================
   BUILD DESIGN — MAIN STYLESHEET
   Premium Architecture Studio · 빌드디자인
   v2.0 — Fixed class names, performance-optimized
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&family=Noto+Sans+KR:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body, h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

ol[role="list"],
ul[role="list"] {
  list-style: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Navigation */
  --nav-height: 72px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0.0, 1, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back:  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Fonts */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'DM Sans', 'Noto Sans KR', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ── Dark Theme (default) ─────────────────────────────────── */
[data-theme="dark"] {
  --bg-primary:    #070c14;
  --bg-secondary:  #0d1520;
  --bg-surface:    #111d2e;
  --bg-card:       #162030;
  --bg-card-hover: #1c2a3f;

  --accent-primary:   #00d4ff;
  --accent-secondary: #0055cc;
  --accent-gold:      #c8a96e;
  --accent-glow:      rgba(0, 212, 255, 0.08);
  --accent-glow-lg:   rgba(0, 212, 255, 0.04);

  --text-primary:   #e8f4fd;
  --text-secondary: #7a9ab5;
  --text-muted:     #3d5a72;
  --text-inverse:   #070c14;

  --border:         rgba(0, 212, 255, 0.12);
  --border-subtle:  rgba(0, 212, 255, 0.06);
  --border-strong:  rgba(0, 212, 255, 0.25);

  --shadow:      0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);

  --grid-color: rgba(0, 212, 255, 0.04);
  --grid-size:  60px;
}

/* ── Light Theme ─────────────────────────────────────────── */
[data-theme="light"] {
  --bg-primary:    #f0f4f8;
  --bg-secondary:  #ffffff;
  --bg-surface:    #e4ecf4;
  --bg-card:       #ffffff;
  --bg-card-hover: #f5f8fb;

  --accent-primary:   #0055aa;
  --accent-secondary: #003d7a;
  --accent-gold:      #9a7a4a;
  --accent-glow:      rgba(0, 85, 170, 0.08);
  --accent-glow-lg:   rgba(0, 85, 170, 0.04);

  --text-primary:   #0a1628;
  --text-secondary: #4a6278;
  --text-muted:     #8aa0b5;
  --text-inverse:   #f0f4f8;

  --border:         rgba(0, 85, 170, 0.15);
  --border-subtle:  rgba(0, 85, 170, 0.07);
  --border-strong:  rgba(0, 85, 170, 0.30);

  --shadow:      0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 40px rgba(0, 85, 170, 0.10);

  --grid-color: rgba(0, 85, 170, 0.05);
  --grid-size:  60px;
}

/* ── Theme Transition ─────────────────────────────────────── */
/* Only transition color-related properties; exclude layout/transform */
*:not(canvas):not(img):not(video):not(iframe):not(.hero-section) {
  transition:
    background-color 0.35s var(--ease-inout),
    color            0.20s var(--ease-inout),
    border-color     0.20s var(--ease-inout);
}

/* Hard opt-out for elements that must never transition */
canvas, img, video, iframe,
.hero-section,
.no-transition,
.no-transition * {
  transition: none !important;
}

/* ── Body Base ────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Blueprint Grid — static, no animation ─────────────────
   Applied via body::before to avoid a DOM node.
   Performance: background-image is GPU-composited; no JS.
   ─────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  opacity: 1;
  /* NO animation — prevents continuous GPU repaints */
}

/* ── Ambient orbs — static, no orbFloat animation ──────────
   Removed infinite animation; use CSS filter only.
   ─────────────────────────────────────────────────────────── */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.06;
  /* No animation: eliminates constant GPU repaint */
}

.ambient-orb--1 {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -200px;
  right: -100px;
}

.ambient-orb--2 {
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  bottom: 10%;
  left: -100px;
}

/* ── Navigation — matches exact HTML class names ───────────
   head.php structure:
     <nav class="main-nav">
       <div class="nav-container">
         <a class="nav-logo"> ... </a>
         <ul class="nav-links"> ... </ul>
         <div class="nav-controls">
           <button class="theme-toggle">
             <svg class="icon-sun"> ... </svg>
             <svg class="icon-moon"> ... </svg>
           </button>
           <a class="nav-cta"> ... </a>
           <button class="nav-hamburger">
             <span class="hamburger-bar"> x3 </span>
           </button>
         </div>
       </div>
       <div class="mobile-menu">
         <div class="mobile-menu-inner">
           <ul class="mobile-nav-links"> ... </ul>
           <div class="mobile-menu-footer"> ... </div>
         </div>
       </div>
       <div class="mobile-menu-backdrop"> ... </div>
     </nav>
   <div class="nav-spacer"> ... </div>
   ─────────────────────────────────────────────────────────── */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 900;
  /* Transparent by default */
  transition:
    background 0.4s var(--ease-inout),
    box-shadow 0.4s var(--ease-inout),
    backdrop-filter 0.4s var(--ease-inout);
  will-change: backdrop-filter;
}

/* Frosted glass on scroll — JS adds .is-scrolled */
.main-nav.is-scrolled {
  background: rgba(7, 12, 20, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .main-nav.is-scrolled {
  background: rgba(240, 244, 248, 0.88);
}

/* ── Nav container (replaces old .nav-inner) ─────────────── */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  position: relative;
}

/* ── Logo ─────────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  z-index: 1;
}

/* 빌딩 이미지 로고 */
.logo-building-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}

.logo-text strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.logo-text span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
}

/* ── Desktop nav links ────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  display: inline-block;
}

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

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

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

/* ── Dropdown ─────────────────────────────────────────────── */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  list-style: none;
  padding: var(--space-2) 0;
  z-index: 100;
  box-shadow: var(--shadow-card);
}

.nav-item-dropdown:hover .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown li a:hover {
  color: var(--accent-primary);
  background: var(--accent-glow);
}

/* ── Nav controls ─────────────────────────────────────────── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* ── Theme toggle button ──────────────────────────────────── */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* Sun icon: shown in light mode (tap to go dark) */
.icon-sun  { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ── Nav CTA button ───────────────────────────────────────── */

/* ── Admin link (admin only) ─────────────────────────────── */
.nav-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: transparent;
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-admin-link:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 22px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent-primary);
  clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
}

.nav-cta:hover {
  background: #33ddff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

[data-theme="light"] .nav-cta:hover {
  box-shadow: 0 8px 24px rgba(0, 85, 170, 0.3);
}

/* ── Hamburger button — HIDDEN on desktop ─────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}

/* Bars via .hamburger-bar (not bare span) */
.hamburger-bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease-inout), opacity 0.3s, width 0.3s;
}

.hamburger-bar:nth-child(2) { width: 70%; }
.hamburger-bar:nth-child(3) { width: 85%; }

/* Open state — JS adds .is-open */
.nav-hamburger.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 100%;
}

.nav-hamburger.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.nav-hamburger.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 100%;
}

/* ── Nav spacer (compensates for fixed nav) ───────────────── */
.nav-spacer {
  height: var(--nav-height);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   MOBILE MENU — HIDDEN by default, shown when .is-open
   ══════════════════════════════════════════════════════════ */
.mobile-menu {
  display: none;              /* CRITICAL: invisible by default */
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(7, 12, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-inout);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* JS adds .is-open to show the menu */
.mobile-menu.is-open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

[data-theme="light"] .mobile-menu {
  background: rgba(240, 244, 248, 0.97);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
  width: 100%;
  max-width: 400px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: block;
  text-align: center;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: var(--accent-primary);
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  width: 100%;
}

.mobile-phone {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.mobile-phone:hover {
  color: var(--accent-primary);
}

.mobile-cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ── Mobile menu backdrop ─────────────────────────────────── */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 799;
  background: transparent;
}

.mobile-menu-backdrop.is-active {
  display: block;
}

/* ══════════════════════════════════════════════════════════
   FOOTER — matches tail.php class names exactly
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Accent line at top of footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.4;
  pointer-events: none;
}

/* ── Footer main area ─────────────────────────────────────── */
.footer-main {
  padding: var(--space-20) 0 var(--space-12);
}

/* ── Footer container (layout wrapper) ───────────────────── */
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
}

/* ── Footer brand column ──────────────────────────────────── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-logo .logo-building-img {
  height: 40px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-tagline em {
  font-style: normal;
  color: var(--accent-gold);
}

/* ── Social links ─────────────────────────────────────────── */
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.social-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.social-link:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow);
}

.social-link svg {
  width: 15px;
  height: 15px;
}

/* ── Footer navigation columns ────────────────────────────── */
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav-list a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s, padding-left 0.2s;
}

.footer-nav-list a:hover {
  color: var(--text-primary);
  padding-left: var(--space-2);
}

/* ── Footer contact column ────────────────────────────────── */
.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-address {
  font-style: normal;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.contact-item--address {
  align-items: flex-start;
}

.contact-label {
  flex-shrink: 0;
  width: 20px;
  color: var(--accent-primary);
}

.contact-label svg {
  width: 16px;
  height: 16px;
}

.contact-item dd {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-item dd a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-item dd a:hover {
  color: var(--accent-primary);
}

.footer-biz-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.biz-divider {
  color: var(--border-strong);
}

/* ── Footer divider ───────────────────────────────────────── */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 var(--space-8);
}

/* ── Footer bottom bar ────────────────────────────────────── */
.footer-bottom {
  padding: var(--space-6) 0;
}

.footer-bottom .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-template-columns: none;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-legal-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-legal-nav a {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-legal-nav a:hover {
  color: var(--text-secondary);
}

.legal-divider {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ── Back-to-top button ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 500;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, color 0.2s;
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ══════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ══════════════════════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.container--wide {
  max-width: 1400px;
}

.container--narrow {
  max-width: 760px;
}

/* ── Section primitives ───────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-4);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent-primary);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-top: var(--space-4);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-eyebrow {
  margin: 0 auto var(--space-4);
}

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

/* ── Accessibility utility ────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity  0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-32px);
}

.reveal--left.revealed {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(32px);
}

.reveal--right.revealed {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.95);
}

.reveal--scale.revealed {
  transform: scale(1);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.reveal-stagger.revealed > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.reveal-stagger.revealed > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.reveal-stagger.revealed > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.19s; }
.reveal-stagger.revealed > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
.reveal-stagger.revealed > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.33s; }
.reveal-stagger.revealed > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }

/* ── Overlay utility ──────────────────────────────────────── */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,12,20,0.9) 0%, rgba(7,12,20,0.3) 60%, transparent 100%);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0;
}

.divider--accent {
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.3;
}

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

/* ── 1200px: footer reflow ────────────────────────────────── */
@media (max-width: 1200px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

/* ── 1024px: switch to mobile nav ─────────────────────────── */
@media (max-width: 1024px) {
  /* Hide desktop links */
  .nav-links {
    display: none;
  }

  /* Hide desktop CTA */
  .nav-cta {
    display: none;
  }

  /* Show hamburger */
  .nav-hamburger {
    display: flex;
  }
}

/* ── 768px: mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .container {
    padding: 0 var(--space-6);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .back-to-top {
    bottom: var(--space-6);
    right: var(--space-6);
  }
}

/* ══════════════════════════════════════════════════════════
   ACCESSIBILITY & SYSTEM PREFERENCES
   ══════════════════════════════════════════════════════════ */

/* Reduced motion: disable all animations and transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ambient-orb {
    display: none;
  }
}

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

/* ── Text selection ───────────────────────────────────────── */
::selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* ── Custom scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
