/* ═══════════════════════════════════════════════════════════
   KAFFRA PRODUCTION — Design System v3.0
   Editorial refinement — spacing rhythm, chapter markers,
   page transitions, premium type scale
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  /* Color — dark mode default */
  --bg:          #0D1B3E;
  --bg-deep:     #080F20;
  --bg-card:     #1E2D55;
  --bg-card2:    #162040;
  --text:        #FFFFFF;
  --text-body:   rgba(255,255,255,0.62);
  --text-muted:  rgba(255,255,255,0.38);
  --gold:        #C8A96E;
  --gold-light:  #E0C98B;
  --gold-dark:   #A07840;
  --gold-muted:  #B89A5E;
  --border:      rgba(200,169,110,0.18);
  --border-hard: rgba(200,169,110,0.45);
  --navy:        #0D1B3E;

  /* Motion */
  --ease-editorial: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-ui:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:    cubic-bezier(0.34, 1.3, 0.64, 1);
  --dur-fast:       200ms;
  --dur-base:       400ms;
  --dur-slow:       700ms;
  --dur-editorial:  900ms;

  /* Spacing rhythm */
  --space-section:  clamp(120px, 14vh, 180px);
  --space-block:    clamp(56px, 7vh, 96px);
  --space-element:  clamp(20px, 3vh, 32px);
  --gutter:         clamp(24px, 5vw, 60px);

  /* Container */
  --container:      1440px;

  /* Type scale — 1.333 perfect fourth */
  --fs-xs:   11px;
  --fs-sm:   13px;
  --fs-base: 15px;
  --fs-md:   17px;
  --fs-lg:   22px;
  --fs-xl:   clamp(28px, 3vw, 40px);
  --fs-2xl:  clamp(40px, 5vw, 64px);
  --fs-3xl:  clamp(56px, 7vw, 96px);
  --fs-4xl:  clamp(72px, 10vw, 140px);
}

/* Light mode */
[data-theme="light"] {
  --bg:          #F5F0E8;
  --bg-deep:     #FFFFFF;
  --bg-card:     #EDE8DF;
  --bg-card2:    #E4DDD3;
  --text:        #0D1B3E;
  --text-body:   rgba(13,27,62,0.70);
  --text-muted:  rgba(13,27,62,0.42);
  --gold:        #A07840;
  --gold-light:  #C8A96E;
  --gold-dark:   #7A5A28;
  --gold-muted:  #8A6530;
  --border:      rgba(160,120,64,0.22);
  --border-hard: rgba(160,120,64,0.50);
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  font-size: var(--fs-base);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Reduced motion honor */
@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;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════
   PAGE TRANSITION CURTAIN
   Overlay slides up/down to mask route changes
   ═══════════════════════════════════════════════════════════ */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  transform: translateY(100%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-curtain.entering {
  /* After navigation lands — slide DOWN off screen */
  animation: curtainExit 700ms var(--ease-editorial) forwards;
}
.page-curtain.leaving {
  /* Before navigation — slide UP into view */
  animation: curtainEnter 550ms var(--ease-editorial) forwards;
  pointer-events: all;
}
@keyframes curtainEnter {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes curtainExit {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}
.page-curtain-logo {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: clamp(48px, 8vw, 110px);
  letter-spacing: 6px;
  color: var(--gold);
  opacity: 0;
  transform: translateY(20px);
}
.page-curtain.leaving .page-curtain-logo {
  animation: curtainLogoIn 350ms 150ms var(--ease-editorial) forwards;
}
@keyframes curtainLogoIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll progress rail (top) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  z-index: 9500;
  transition: width 80ms linear;
}

/* ═══════════════════════════════════════════════════════════
   JS-READY GATE — content always visible without JS
   ═══════════════════════════════════════════════════════════ */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-editorial) var(--ease-editorial),
              transform var(--dur-editorial) var(--ease-editorial);
  will-change: opacity, transform;
}
.js-ready [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children via CSS delay */
.js-ready [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-editorial) var(--ease-editorial),
              transform var(--dur-editorial) var(--ease-editorial);
}
.js-ready [data-reveal-stagger].revealed > * { opacity: 1; transform: translateY(0); }
.js-ready [data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0ms; }
.js-ready [data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 80ms; }
.js-ready [data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 160ms; }
.js-ready [data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 240ms; }
.js-ready [data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 320ms; }
.js-ready [data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 400ms; }
.js-ready [data-reveal-stagger].revealed > *:nth-child(7) { transition-delay: 480ms; }
.js-ready [data-reveal-stagger].revealed > *:nth-child(8) { transition-delay: 560ms; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse {
  0%,100% { opacity: 1; height: 52px; }
  50%      { opacity: 0.3; height: 32px; }
}
@keyframes driftSlow {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(-12px, -8px); }
}

/* ═══════════════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-wide { max-width: 1600px; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR — refined
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--dur-base) var(--ease-ui),
              padding var(--dur-base) var(--ease-ui),
              border-color var(--dur-base) var(--ease-ui);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(8,15,32,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 14px var(--gutter);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(245,240,232,0.85);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 42px; height: 42px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: 15px;
  color: #0D1B3E;
  letter-spacing: 1px;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-spring);
}
.logo:hover .logo-mark { transform: rotate(-4deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .lt-name {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: 18px;
  letter-spacing: 3.5px;
  color: var(--text);
}
.logo-text .lt-sub {
  font-size: 8px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  transition: color var(--dur-base) var(--ease-ui);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--dur-base) var(--ease-editorial);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 10px 24px !important;
  font-size: 10px !important;
  letter-spacing: 2.2px !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all var(--dur-base) var(--ease-ui) !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: #0D1B3E !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-base) var(--ease-ui);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--gold);
  display: block;
  transition: all var(--dur-base) var(--ease-ui);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 850;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: 36px;
  letter-spacing: 4px;
  color: var(--text);
  text-decoration: none;
  transition: color var(--dur-base);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY SYSTEM
   ═══════════════════════════════════════════════════════════ */
.chapter-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
.chapter-mark::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--gold);
}
.chapter-num {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.7;
}

.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.display-xl {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: var(--fs-4xl);
  line-height: 0.88;
  letter-spacing: 2px;
  color: var(--text);
}
.display-lg {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: var(--fs-3xl);
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--text);
}
.display-md {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: var(--fs-2xl);
  line-height: 1;
  letter-spacing: 2px;
  color: var(--text);
}
.display-sm {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: var(--fs-xl);
  line-height: 1.05;
  letter-spacing: 1.5px;
  color: var(--text);
}
.serif-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.outline-txt {
  -webkit-text-stroke: 1.5px var(--text-muted);
  color: transparent;
}

.lede {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: 1.45;
  color: var(--text-body);
  max-width: 640px;
}
.body-lg {
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--text-body);
}
.body-md {
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--text-body);
}
.body-sm {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text-body);
}

.gold-rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 20px 0;
  border: none;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 16px 34px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-ui),
              border-color var(--dur-base) var(--ease-ui);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: 'Montserrat', sans-serif;
}
.btn-primary {
  background: var(--gold);
  color: #0D1B3E;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  transform: translateX(-101%);
  transition: transform var(--dur-slow) var(--ease-editorial);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}
.btn-outline:hover {
  background: var(--gold);
  color: #0D1B3E;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
}
.btn-ghost:hover { color: var(--gold); }

.btn-arrow {
  transition: transform var(--dur-base) var(--ease-spring);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════
   FLOATING WHATSAPP
   ═══════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,0.35);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-ui);
}
.wa-float:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}
.wa-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(37,211,102,0.35);
  border-radius: 50%;
  animation: waRing 2.4s var(--ease-editorial) infinite;
}
@keyframes waRing {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   CHAPTER / SECTION RHYTHM
   ═══════════════════════════════════════════════════════════ */
.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  position: relative;
}
.section-tight {
  padding-top: var(--space-block);
  padding-bottom: var(--space-block);
}
.section-dark {
  background: var(--bg-deep);
}

/* Section header — consistent across all pages */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: var(--space-block);
}
.section-header-stacked {
  display: block;
  text-align: center;
  margin-bottom: var(--space-block);
}

/* Divider between chapters */
.chapter-divider {
  height: 1px;
  background: var(--border);
  max-width: var(--container);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 72px var(--gutter) 36px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-brand p {
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 20px;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--dur-base);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.6;
}
.footer-contact-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 12px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-ui);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,169,110,0.08);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none !important; }
  footer { padding: 56px 24px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .section-header { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE-SCOPED STYLES (moved from inline)
   ═══════════════════════════════════════════════════════════ */

/* --- HERO (common to all page heroes) --- */
.page-hero {
  position: relative;
  padding: 180px var(--gutter) var(--space-block);
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 30%, rgba(200,169,110,0.08) 0%, transparent 60%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg) 70%);
  pointer-events: none;
}
[data-theme="light"] .page-hero-bg {
  background:
    radial-gradient(ellipse at 85% 30%, rgba(160,120,64,0.08) 0%, transparent 60%),
    linear-gradient(160deg, #F5F0E8 0%, #FFFFFF 100%);
}
.page-hero-ghost {
  position: absolute;
  right: -30px; bottom: -60px;
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: clamp(200px, 28vw, 420px);
  color: rgba(255,255,255,0.02);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
[data-theme="light"] .page-hero-ghost { color: rgba(13,27,62,0.03); }

/* --- CHAPTER MARKER POSITIONING --- */
.chapter-pin {
  position: absolute;
  top: 110px;
  left: var(--gutter);
  z-index: 3;
}

/* --- SPLIT ROWS (editorial pattern) --- */
.split-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 48px;
  padding: var(--space-block) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.split-row:last-child { border-bottom: none; }
.split-row-num {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: 48px;
  color: var(--gold-muted);
  opacity: 0.5;
  line-height: 1;
  padding-top: 6px;
}
@media (max-width: 768px) {
  .split-row { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .split-row-num { font-size: 36px; }
}

/* ═══════════════════════════════════════════════════════════
   CASE STUDY PAGES — shared styles
   ═══════════════════════════════════════════════════════════ */
body.case-page { padding-top: 84px; }

.case-hero {
  padding: 140px var(--gutter) var(--space-block);
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.case-hero-ghost {
  position: absolute;
  right: var(--gutter); top: 90px;
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: clamp(80px, 13vw, 180px);
  color: rgba(200,169,110,0.05);
  letter-spacing: 8px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.case-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-editorial) 0.3s forwards;
}
.case-breadcrumb a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--dur-base);
}
.case-breadcrumb a:hover { text-decoration: underline; }
.case-breadcrumb .sep { color: var(--text-muted); opacity: 0.5; }

.case-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-editorial) 0.5s forwards;
}
.case-cat {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.case-year {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.case-title {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: 2px;
  margin-bottom: 28px;
  max-width: 900px;
}
.case-title .l1 { display:block; opacity:0; animation: fadeUp 0.9s var(--ease-editorial) 0.7s forwards; }
.case-title .l2 { display:block; opacity:0; animation: fadeUp 0.9s var(--ease-editorial) 0.9s forwards; }

.case-client {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--text-body);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-editorial) 1.1s forwards;
}

/* HERO IMAGE */
.case-hero-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-deep));
  position: relative;
  overflow: hidden;
  margin: 0 var(--gutter) var(--space-section);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - (var(--gutter) * 2));
}
.case-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.case-hero-image-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: clamp(48px, 7vw, 96px);
  color: rgba(200,169,110,0.15);
  letter-spacing: 6px;
  text-align: center;
  line-height: 1;
  z-index: 1;
}

/* BRIEF + STATS */
.case-intro {
  padding: 0 var(--gutter) var(--space-section);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.case-intro-left .chapter-mark { margin-bottom: 20px; }
.case-intro-left h2 {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 1.5px;
  line-height: 1;
  margin-bottom: 28px;
}
.case-intro-left h2 em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.case-intro-left p {
  font-size: var(--fs-md);
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 20px;
}
.case-intro-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}
.case-stat {
  background: var(--bg);
  padding: 28px 28px 32px;
}
.case-stat .k {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}
.case-stat .v {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 1.5px;
  color: var(--gold);
  line-height: 1.1;
}

/* CHAPTER BLOCKS */
.case-chapter {
  padding: var(--space-section) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.case-chapter-alt { background: var(--bg-deep); max-width: 100%; }
.case-chapter-alt > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.case-chapter-head { margin-bottom: var(--space-block); max-width: 780px; }
.case-chapter-head .chapter-mark { margin-bottom: 20px; }
.case-chapter-head h2 {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 1.5px;
  line-height: 1;
  margin-bottom: 28px;
}
.case-chapter-head h2 em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

/* LONG FORM TEXT */
.case-body-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.case-body-grid aside {
  position: sticky;
  top: 120px;
}
.case-body-grid aside h4 {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}
.case-body-grid aside ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-body-grid aside ul li {
  font-size: 13px;
  color: var(--text-body);
  padding: 10px 14px;
  border-left: 1px solid var(--border);
}
.case-body-grid aside ul li strong {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 3px;
}
.case-body p {
  font-size: var(--fs-md);
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 22px;
}
.case-body p strong { color: var(--text); }
.case-body h3 {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: 24px;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin: 40px 0 16px;
}

/* GALLERY */
.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.case-gallery-big { grid-column: span 2; }
.gallery-frame {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-deep));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-gallery-big .gallery-frame { aspect-ratio: 16/9; }
.gallery-frame .ph {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: clamp(20px, 2.5vw, 40px);
  color: rgba(200,169,110,0.12);
  letter-spacing: 3px;
  text-align: center;
  line-height: 1.1;
}

/* OUTCOME / QUOTE */
.case-quote {
  padding: var(--space-section) var(--gutter);
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.case-quote-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.case-quote-inner::before {
  content: '"';
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 140px;
  color: var(--gold);
  opacity: 0.3;
  line-height: 0.6;
  display: block;
  margin-bottom: 20px;
}
.case-quote-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 40px;
}
.case-quote-attrib {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.case-quote-attrib::before {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: var(--gold);
  margin: 0 auto 18px;
}

/* NEXT PROJECT */
.case-next {
  padding: var(--space-section) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.case-next-link {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all var(--dur-base) var(--ease-ui);
}
.case-next-link:hover {
  padding: 48px 16px;
  background: rgba(200,169,110,0.03);
}
.case-next-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.case-next-title {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 1.5px;
  line-height: 1;
  transition: color var(--dur-base);
}
.case-next-link:hover .case-next-title { color: var(--gold); }
.case-next-arrow {
  color: var(--gold);
  transition: transform var(--dur-base) var(--ease-spring);
}
.case-next-link:hover .case-next-arrow { transform: translateX(8px); }

@media (max-width: 1024px) {
  .case-intro { grid-template-columns: 1fr; gap: 48px; }
  .case-body-grid { grid-template-columns: 1fr; gap: 40px; }
  .case-body-grid aside { position: static; }
}
@media (max-width: 768px) {
  .case-intro-right { grid-template-columns: 1fr; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery-big { grid-column: auto; }
  .case-next-link { grid-template-columns: 1fr; gap: 16px; text-align: center; }
}
