/* ==========================================================================
   OUCOST STUDIO — EDITORIAL × EXPERIMENTAL × PREMIUM DESIGN SYSTEM
   ========================================================================== */

/* 1. ROOT DESIGN TOKENS & SYSTEM */
:root {
  /* Colors */
  --bg-primary: #10100F;        /* Warm Black */
  --text-primary: #F2EFE8;      /* Soft Ivory */
  --accent-lime: #D8FF3E;       /* Electric Lime */
  --text-muted: #8E8D88;        /* Warm Secondary Grey */
  --border-subtle: rgba(242, 239, 232, 0.12);
  --border-active: rgba(216, 255, 62, 0.5);
  --surface-dark: rgba(22, 22, 20, 0.7);
  --surface-hover: rgba(255, 255, 255, 0.04);
  
  /* Ivory Chapter Theme Colors */
  --ivory-bg: #F2EFE8;
  --ivory-text: #10100F;
  --ivory-muted: #6B6964;
  --ivory-border: rgba(16, 16, 15, 0.12);
  --ivory-surface: #E8E5DD;

  /* Typography */
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* Fluid Spacing */
  --container-pad: clamp(1.25rem, 4vw, 4.5rem);
  --section-pad: clamp(5rem, 12vw, 12rem);

  /* Easing & Physics (§32) */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.76, 0, 0.24, 1);
  --transition-fast: 180ms var(--ease-expo);
  --transition-normal: 350ms var(--ease-expo);
  --transition-slow: 650ms var(--ease-expo);
}

/* 2. BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  position: relative;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #2A2A28;
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-lime);
}

/* Typography Utility */
.font-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 4px;
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 2rem;
  background: var(--accent-lime);
  color: #10100F;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  z-index: 99999;
  transition: top var(--transition-fast);
  text-decoration: none;
}
.skip-to-content:focus {
  top: 1.5rem;
}

/* 3. CUSTOM CONTEXTUAL FOLLOWER CURSOR (§24) */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, input, select, textarea, [data-cursor] {
    cursor: none;
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

@media (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

.cursor-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--accent-lime);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 120ms ease-out, opacity 200ms ease;
  will-change: transform;
}

.cursor-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.5rem 0.9rem;
  background-color: var(--accent-lime);
  color: #10100F;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 220ms var(--ease-expo), opacity 200ms ease;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(216, 255, 62, 0.3);
}

/* Cursor Context States */
body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(3.5);
  background-color: rgba(216, 255, 62, 0.4);
  mix-blend-mode: difference;
}

body.cursor-active-badge .cursor-dot {
  opacity: 0;
}
body.cursor-active-badge .cursor-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 4. MINIMAL PRELOADER (§28) */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 600ms var(--ease-in-out-smooth), visibility 600ms;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: min(320px, 80vw);
}

.loader-brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--text-primary);
}

.loader-bar-wrap {
  width: 100%;
  height: 2px;
  background: rgba(242, 239, 232, 0.1);
  overflow: hidden;
  position: relative;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-lime);
  transition: width 100ms linear;
}

.loader-percentage {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* 5. CURTAIN TRANSITION OVERLAY (§27) */
.transition-curtain {
  position: fixed;
  inset: 0;
  background: #10100F;
  transform: translateY(100%);
  z-index: 9990;
  pointer-events: none;
  transition: transform 600ms var(--ease-in-out-smooth);
}

.transition-curtain.active {
  transform: translateY(0%);
}

/* 6. HEADER & NAVIGATION (§5) */
.studio-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease, padding 300ms ease;
  padding: 2.2rem 0;
  border-bottom: 1px solid transparent;
}

.studio-header.scrolled {
  padding: 1.1rem 0;
  background: rgba(16, 16, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}
.brand-link:hover {
  transform: skewX(-4deg);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--accent-lime);
}

.desktop-nav .nav-links {
  display: flex;
  list-style: none;
  gap: 2.75rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-index {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-lime);
  transition: width 240ms var(--ease-expo);
}

.nav-link:hover {
  color: var(--accent-lime);
}
.nav-link:hover::after {
  width: 100%;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(242, 239, 232, 0.03);
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--accent-lime);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-lime);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.3); }
}

.status-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 250ms ease, background-color 250ms ease;
}

.mobile-menu-btn.active .bar-1 {
  transform: translateY(3.5px) rotate(45deg);
}
.mobile-menu-btn.active .bar-2 {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 7. FULLSCREEN MOBILE DRAWER (§29) */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: #10100F;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 0 3rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}

.drawer-brand {
  font-weight: 900;
  letter-spacing: 0.15em;
  font-size: 1.25rem;
}

.drawer-close-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 3rem 0;
}

.drawer-link {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.drawer-link .link-idx {
  font-size: 1rem;
  color: var(--accent-lime);
  font-family: var(--font-sans);
  font-weight: 400;
}

.drawer-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.drawer-email {
  color: var(--accent-lime);
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 600;
}

/* 8. HERO STAGE (§6, §7) */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
  padding-top: 12rem;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-background-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: radial-gradient(#F2EFE8 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Floating Visual Object (§7) */
.hero-floating-container {
  position: absolute;
  top: 12%;
  right: -5%;
  width: min(720px, 55vw);
  max-width: 820px;
  pointer-events: none;
  z-index: 1;
}

.floating-wrapper {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 400ms cubic-bezier(0.1, 0.9, 0.2, 1);
}

.floating-image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.9));
  mask-image: radial-gradient(circle at center, black 65%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at center, black 65%, transparent 95%);
}

.floating-halo {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(216, 255, 62, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.eyebrow-logo {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

.eyebrow-line {
  width: 60px;
  height: 1px;
  background: var(--accent-lime);
  transform-origin: left;
  animation: expand-line 900ms 300ms var(--ease-expo) forwards;
  transform: scaleX(0);
}

@keyframes expand-line {
  to { transform: scaleX(1); }
}

.eyebrow-desc {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* Giant Typography (§6) */
.hero-typography {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.75rem, 13.5vw, 13.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  user-select: none;
}

.hero-line {
  overflow: hidden;
}

.reveal-word {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  will-change: transform, opacity;
  animation: word-reveal 1000ms var(--ease-expo) forwards;
}

.word-we { animation-delay: 450ms; }
.word-make { animation-delay: 600ms; }
.word-ideas { animation-delay: 750ms; }
.word-visible { animation-delay: 900ms; }

@keyframes word-reveal {
  to {
    transform: translateY(0%);
    opacity: 1;
  }
}

.dot-accent {
  color: var(--accent-lime);
}

.hero-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: clamp(3rem, 6vh, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-manifesto-micro {
  max-width: 440px;
}
.hero-manifesto-micro p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.scroll-explore {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.scroll-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.scroll-explore:hover .scroll-tag {
  color: var(--accent-lime);
}

.scroll-line-indicator {
  width: 1px;
  height: 48px;
  background: rgba(242, 239, 232, 0.2);
  position: relative;
  overflow: hidden;
}
.scroll-line-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent-lime);
  animation: scroll-drop 1.8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scroll-drop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* 9. SECTION HEADERS & LABELS */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.label-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-lime);
  font-family: var(--font-sans);
}

.label-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.dark-label .label-number {
  color: #10100F;
}
.dark-label .label-text {
  color: var(--ivory-muted);
}

/* 10. INTRO KINETIC STATEMENT (§8) */
.intro-section {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.intro-statement-wrap {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.intro-statement {
  font-size: clamp(2rem, 5.2vw, 5.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.35em;
}

.intro-statement .word {
  color: var(--text-muted);
  transition: color 400ms ease, transform 400ms var(--ease-expo);
  will-change: color, transform;
}

.intro-statement .word.active {
  color: var(--text-primary);
}

.intro-sub-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
}

.intro-lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.intro-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-lime);
}
.meta-sep {
  color: var(--border-subtle);
}

/* 11. WORK / EDITORIAL PORTFOLIO GRID (§9, §10, §11, §12) */
.work-section {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
  margin-bottom: 4rem;
}

.archive-count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.editorial-portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 8rem);
}

/* Project Card Base */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-media-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #181816;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 700ms var(--ease-expo), filter 700ms ease;
  will-change: transform;
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-hover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 15, 0.2);
  transition: background 400ms ease;
}
.project-card:hover .project-hover-backdrop {
  background: rgba(16, 16, 15, 0);
}

/* Specific Card Asymmetric Proportions */
.project-bleed .project-media-wrap {
  aspect-ratio: 16 / 9;
  max-height: 80vh;
}

.portfolio-asymmetric-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: flex-start;
}

.project-col-left .project-media-wrap {
  aspect-ratio: 4 / 5;
}

.project-col-right {
  margin-top: 5rem;
}
.project-col-right .project-media-wrap {
  aspect-ratio: 1 / 1;
}

.project-wide .project-media-wrap {
  aspect-ratio: 21 / 9;
}

/* Project Metadata Row */
.project-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  transition: border-color var(--transition-fast);
}

.project-card:hover .project-meta-row {
  border-bottom-color: var(--accent-lime);
}

.meta-primary {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.project-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-lime);
}

.project-title {
  font-size: clamp(1.4rem, 2.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}
.project-card:hover .project-title {
  transform: translateX(6px);
}

.meta-secondary {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.project-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.meta-action {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.arrow {
  display: inline-block;
  transition: transform 250ms var(--ease-expo);
}
.project-card:hover .arrow {
  transform: translate(4px, -4px);
}

/* 12. SERVICES: VERTICAL ACCORDION (§13, §14) */
.services-section {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.services-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
}

.services-lead {
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.services-interactive-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 300ms ease;
}

.service-item:hover {
  background-color: var(--surface-hover);
}

.service-header {
  width: 100%;
  background: none;
  border: none;
  padding: clamp(2rem, 3.5vw, 3.2rem) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.service-num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-lime);
  width: 4rem;
}

.service-title-wrap {
  flex-grow: 1;
  display: flex;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
}

.service-title {
  font-size: clamp(1.5rem, 3.8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  transition: transform 300ms var(--ease-expo);
}

.service-item:hover .service-title {
  transform: translateX(8px);
}

.service-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  color: var(--text-muted);
}

.service-icon {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 300ms var(--ease-expo), color 200ms ease;
}

.service-item.open .service-icon {
  transform: rotate(45deg);
  color: var(--accent-lime);
}

/* Service Accordion Drawer */
.service-drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 500ms var(--ease-in-out-smooth), opacity 400ms ease;
}

.service-item.open .service-drawer {
  max-height: 600px;
  opacity: 1;
}

.drawer-content {
  padding-bottom: 3.5rem;
  padding-left: 4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.drawer-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.capability-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.capability-tags li {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.drawer-preview {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: #181816;
}
.drawer-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 13. STUDIO CHAPTER: SOFT IVORY (#F2EFE8) (§15, §16, §17) */
.studio-chapter.ivory-theme {
  background-color: var(--ivory-bg);
  color: var(--ivory-text);
  padding: var(--section-pad) 0;
  position: relative;
  transition: background-color 600ms ease, color 600ms ease;
}

.studio-intro-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(3rem, 6vw, 6rem);
  margin-bottom: clamp(5rem, 9vw, 9rem);
  align-items: center;
}

.studio-huge-statement {
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
}

.studio-body-text {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ivory-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.studio-quote-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.75rem;
  background: var(--ivory-surface);
  border-left: 3px solid #10100F;
}

.badge-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ivory-muted);
}

.badge-quote {
  font-size: 1.2rem;
  color: #10100F;
}

.studio-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.studio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #F2EFE8;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

/* Studio Manifesto (§16) */
.manifesto-wrap {
  border-top: 1px solid var(--ivory-border);
  padding-top: clamp(4rem, 7vw, 7rem);
  margin-bottom: clamp(5rem, 8vw, 8rem);
}

.manifesto-headline-box {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 5rem;
}

.manifesto-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--ivory-muted);
  display: block;
  margin-bottom: 1.25rem;
}

.manifesto-statement {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.15;
  color: #10100F;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.principle-card {
  border-top: 2px solid var(--ivory-border);
  padding-top: 1.5rem;
  transition: border-color 300ms ease, transform 300ms var(--ease-expo);
}

.principle-card:hover {
  border-top-color: #10100F;
  transform: translateY(-4px);
}

.principle-idx {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ivory-muted);
  display: block;
  margin-bottom: 1rem;
}

.principle-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #10100F;
}

.principle-desc {
  font-size: 0.95rem;
  color: var(--ivory-muted);
  line-height: 1.5;
}

/* Verified Numbers Section (§17) */
.numbers-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--ivory-border);
  padding-top: 4rem;
}

.number-item {
  display: flex;
  flex-direction: column;
}

.number-val, .number-val-infinity {
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #10100F;
  display: inline-flex;
}

.number-suffix {
  font-size: clamp(2rem, 4vw, 4rem);
  color: #10100F;
  font-weight: 700;
}

.number-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--ivory-muted);
  margin-top: 0.5rem;
}

/* 14. CLIENTS MARQUEE (§18) */
.marquee-section {
  background: var(--bg-primary);
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.marquee-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
}

.marquee-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--accent-lime);
}

.marquee-status {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.marquee-item:hover {
  color: var(--accent-lime);
}

.marquee-sep {
  color: var(--accent-lime);
  font-size: 1.5rem;
}

/* 15. TESTIMONIALS SLIDER (§19) */
.testimonials-section {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.testimonials-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.testimonial-counter {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.testimonial-arrows {
  display: flex;
  gap: 0.5rem;
}

.t-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.t-btn:hover {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: #10100F;
}

.testimonials-viewport {
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease-expo), transform 500ms var(--ease-expo), visibility 500ms;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

.testimonial-quote {
  font-size: clamp(1.8rem, 3.8vw, 3.6rem);
  line-height: 1.25;
  color: var(--text-primary);
  max-width: 1300px;
}

.testimonial-author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-lime);
}

.author-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* 16. CONTACT — FINAL SCENE & CONVERSATIONAL FORM (§20, §21, §22) */
.contact-section {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
  position: relative;
}

.contact-intro-box {
  margin-bottom: 5rem;
}

.contact-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--accent-lime);
  display: block;
  margin-bottom: 1.5rem;
}

.contact-big-title {
  font-size: clamp(2.8rem, 7.5vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 3rem;
}

.contact-hero-cta {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 1.25rem 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  transition: all var(--transition-normal);
}

.contact-hero-cta:hover {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: #10100F;
  transform: scale(1.02);
}

.cta-arrow {
  transition: transform var(--transition-fast);
}
.contact-hero-cta:hover .cta-arrow {
  transform: translateX(6px);
}

/* Conversational Form Styling (§22) */
.conversational-form-wrap {
  background: #151514;
  border: 1px solid var(--border-subtle);
  padding: clamp(2.5rem, 5vw, 5rem);
  border-radius: 4px;
}

.form-header-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
  margin-bottom: 3.5rem;
}

.form-heading {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

.form-close-prompt {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.conversational-form {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.sentence-block {
  font-size: clamp(1.4rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 0.8rem;
}

.sentence-block .phrase {
  color: var(--text-muted);
}

.input-inline input {
  background: none;
  border: none;
  border-bottom: 2px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 700;
  padding: 0 0.5rem 0.2rem;
  outline: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  min-width: 260px;
}

.input-inline input:focus {
  border-bottom-color: var(--accent-lime);
  color: var(--accent-lime);
}

.full-width-inline {
  flex-grow: 1;
}
.full-width-inline input {
  width: 100%;
}

.select-inline select {
  background: none;
  border: none;
  border-bottom: 2px solid var(--border-subtle);
  color: var(--accent-lime);
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 700;
  padding: 0 0.5rem 0.2rem;
  outline: none;
  cursor: pointer;
}

.select-inline select option {
  background-color: #1A1A18;
  color: #F2EFE8;
  font-size: 1rem;
}

.pills-selection {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.5rem 0;
}

.pill-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  border-color: var(--accent-lime);
}

.pill-btn.active {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: #10100F;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.submit-action-btn {
  background: var(--text-primary);
  color: #10100F;
  border: none;
  border-radius: 999px;
  padding: 1.25rem 2.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-normal);
}

.submit-action-btn:hover {
  background: var(--accent-lime);
  transform: scale(1.02);
}

.submit-feedback {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-lime);
}

/* 17. FOOTER (§23, §40) */
.studio-footer {
  background: #0B0B0A;
  border-top: 1px solid var(--border-subtle);
  padding: clamp(5rem, 9vw, 9rem) 0 3.5rem;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.footer-logo {
  font-size: clamp(3.5rem, 11vw, 11rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  user-select: none;
  transition: color var(--transition-fast);
}

.footer-logo:hover {
  color: var(--accent-lime);
}

.footer-tagline {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  color: var(--text-muted);
}

.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.col-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-direct-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-direct-link:hover {
  color: var(--accent-lime);
}

.col-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-link {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}
.social-link:hover {
  color: var(--accent-lime);
  transform: translateX(4px);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.reg-number {
  color: rgba(142, 141, 136, 0.6);
}

.footer-credits {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.easter-text {
  letter-spacing: 0.15em;
  font-weight: 600;
  transition: color 200ms ease;
}

.back-to-top-btn {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
}
.back-to-top-btn:hover {
  color: var(--accent-lime);
}

/* 18. PROJECT MODAL / DEEP-DIVE OVERLAY (§11, §12) */
.project-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: #10100F;
  color: #F2EFE8;
  border: none;
  margin: 0;
  padding: 0;
  z-index: 10001;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 600ms var(--ease-in-out-smooth), opacity 400ms ease;
}

.project-modal[open] {
  opacity: 1;
  transform: translateY(0);
}

.modal-scroller {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background: rgba(16, 16, 15, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-close-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: #F2EFE8;
  padding: 0.5rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: #10100F;
}

.modal-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.modal-hero-container {
  position: relative;
  width: 100%;
  height: clamp(450px, 70vh, 800px);
  overflow: hidden;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #10100F 5%, rgba(16, 16, 15, 0.4) 60%, transparent 100%);
}

.modal-hero-titles {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-category-badge {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-lime);
}

.modal-title {
  font-size: clamp(2.5rem, 6.5vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.modal-year-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.modal-body {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  margin-bottom: 4.5rem;
}

.meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-head {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-lime);
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-statement-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.modal-lead {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.25;
  color: var(--text-primary);
}

.modal-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Visual Story Stream (§12) */
.visual-story-stream {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 4.5rem;
}

.story-chapter {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chapter-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.chap-idx {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-lime);
}

.chap-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.chapter-media {
  width: 100%;
}

.story-img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

.chapter-dual-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.story-caption {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.modal-footer-action {
  display: flex;
  justify-content: center;
  margin-top: 6rem;
}

.modal-return-btn {
  background: var(--accent-lime);
  color: #10100F;
  border: none;
  border-radius: 999px;
  padding: 1.25rem 3rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  transition: transform var(--transition-fast);
}
.modal-return-btn:hover {
  transform: scale(1.03);
}

/* 19. RESPONSIVE BREAKPOINTS (§31) */

/* Laptop (1024px - 1439px) */
@media (max-width: 1439px) {
  .hero-floating-container {
    width: 50vw;
    right: -8%;
  }
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .numbers-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-floating-container {
    width: 65vw;
    opacity: 0.6;
    top: 5%;
  }
  .portfolio-asymmetric-row {
    grid-template-columns: 1fr;
  }
  .project-col-right {
    margin-top: 0;
  }
  .intro-sub-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-top {
    grid-template-columns: 1fr;
  }
  .drawer-content {
    grid-template-columns: 1fr;
  }
  .studio-intro-split {
    grid-template-columns: 1fr;
  }
  .modal-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-statement-row {
    grid-template-columns: 1fr;
  }
  .footer-top-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
  :root {
    --container-pad: 1.25rem;
    --section-pad: 4.5rem;
  }

  .header-status .availability-badge {
    display: none;
  }

  .hero-section {
    padding-top: 8rem;
  }

  .hero-floating-container {
    position: relative;
    top: auto;
    right: auto;
    width: 90vw;
    margin: 0 auto 2rem;
    opacity: 0.85;
  }

  .hero-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .numbers-section {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .project-meta-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .conversational-form-wrap {
    padding: 1.5rem;
  }

  .sentence-block {
    font-size: 1.25rem;
  }

  .input-inline input {
    min-width: 100%;
  }

  .footer-nav-columns {
    grid-template-columns: 1fr;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .chapter-dual-media {
    grid-template-columns: 1fr;
  }
}

/* 20. PREFERS-REDUCED-MOTION ACCESSIBILITY (§38) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .custom-cursor {
    display: none !important;
  }

  .reveal-word {
    transform: none !important;
    opacity: 1 !important;
  }

}

/* 21. LEGAL & PRIVACY POLICY STYLING */
.legal-page-main {
  padding-top: 9rem;
  padding-bottom: 8rem;
  background: var(--bg-primary);
}

.legal-article {
  max-width: 1080px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2.5rem;
}

.legal-title {
  font-size: clamp(2.6rem, 6.5vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.legal-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.status-lime {
  color: var(--accent-lime);
}

.meta-dot {
  color: var(--accent-lime);
  font-size: 0.8rem;
}

.legal-highlight-box {
  background: #161615;
  border: 1px solid rgba(216, 255, 62, 0.25);
  border-left: 4px solid var(--accent-lime);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 4px;
  margin-bottom: 5rem;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-lime);
  margin-bottom: 1.25rem;
}

.highlight-lead {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.highlight-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.highlight-text strong {
  color: #FFFFFF;
}

.legal-body-content {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.legal-clause {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
}

.clause-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-lime);
  font-family: var(--font-sans);
}

.clause-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.clause-body p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.legal-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0;
  padding-left: 0.5rem;
}

.legal-bullets li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.legal-bullets li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-lime);
  font-size: 0.8rem;
}

.legal-bullets li strong {
  color: var(--text-primary);
}

.legal-contact-card {
  background: #161615;
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  border-radius: 4px;
  margin-top: 2rem;
}

.contact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-brand {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.card-reg {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-field.full-width {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.field-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-lime);
}

.field-val, .field-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.field-link:hover {
  color: var(--accent-lime);
}

.legal-footer-nav {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

.back-home-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 1.1rem 2.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: all var(--transition-fast);
}

.back-home-btn:hover {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: #10100F;
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .legal-clause {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-card-grid {
    grid-template-columns: 1fr;
  }
}
