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

/* ── DESIGN TOKENS ───────────────────────── */
:root {
  --bg:             #faf9f7;
  --surface:        #ffffff;
  --surface-2:      #f3f1ee;
  --border:         #e4e0d9;
  --border-strong:  #ccc8c0;
  --text:           #1a1814;
  --text-muted:     #6b6560;
  --text-dim:       #696159;
  --accent:         #c74634;
  --accent-dark:    #e05a47;
  --accent-soft:    rgba(199,70,52,0.07);
  --accent-mid:     rgba(199,70,52,0.18);
  --accent-callout: #b33d2c;
  --dark-bg:        #141210;
  --dark-surface:   #1e1b18;
  --dark-border:    #2e2a26;
  --dark-text:      #ede9e3;
  --dark-muted:     #8f887f;
  --dark-dim:       #8c8479;
  --serif: Georgia, 'DM Serif Display', serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --r: 10px;
}

/* ── BASE ────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 48px; background: rgba(250,249,247,0.9);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.nav-name { font-size: 24px; letter-spacing: 0.01em; text-transform: lowercase; color: var(--text); text-decoration: none; line-height: 1; }
.nav-name strong { font-weight: 700; }
.nav-name span { font-weight: 300; }
.nav-cta { font-size: 13px; font-weight: 600; color: var(--surface); background: var(--text); text-decoration: none; padding: 8px 20px; border-radius: 100px; transition: all 0.2s; border: 1px solid var(--text); }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }

/* ── HERO ────────────────────────────────── */
.hero { padding: 148px 48px 72px; max-width: 880px; margin: 0 auto; }
.hero-eyebrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 32px; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); padding: 5px 13px; border-radius: 100px; }
.tag.red { color: var(--accent); border-color: rgba(199,70,52,0.25); background: var(--accent-soft); }
h1.hero-title { font-family: var(--serif); font-size: clamp(38px, 5.5vw, 62px); font-weight: 300; line-height: 1.1; color: var(--text); margin-bottom: 24px; }
.hero-subtitle { font-size: 19px; color: var(--text-muted); font-weight: 300; line-height: 1.65; max-width: 620px; margin-bottom: 48px; }
.meta-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--border); }
.meta-item { padding: 20px 26px; background: var(--surface); border-right: 1px solid var(--border); }
.meta-item:last-child { border-right: none; }
.meta-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 5px; }
.meta-value { font-size: 15px; color: var(--text); }

/* ── IMAGE PLACEHOLDERS ──────────────────── */
.img-ph { width: 100%; background: var(--surface-2); border: 1.5px dashed var(--border-strong); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; padding: 32px 24px; }
.img-ph::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(199,70,52,0.04) 0%, transparent 55%); pointer-events: none; }
.img-ph-icon { font-size: 26px; opacity: 0.3; }
.img-ph-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); text-align: center; }
.img-ph-desc { font-size: 13px; color: var(--text-muted); font-style: italic; text-align: center; line-height: 1.55; max-width: 520px; }
.img-caption { font-size: 13px; color: var(--text-dim); font-style: italic; margin-top: 10px; line-height: 1.5; }
.img-real { width: 100%; border-radius: var(--r); border: 1px solid var(--border); display: block; }
.dark-section .img-ph { background: var(--dark-surface); border-color: var(--dark-border); }
.dark-section .img-ph-label { color: var(--dark-muted); }
.dark-section .img-ph-desc { color: var(--dark-muted); }
.dark-section .img-caption { color: var(--dark-muted); }
.dark-section .img-real { border-color: var(--dark-border); }
.hero-img-wrap { max-width: 1060px; margin: 0 auto; padding: 0 48px 80px; }
.img-wrap { margin: 36px 0 0; }
.img-wide .img-ph { aspect-ratio: 21/7; }
.img-single .img-ph { aspect-ratio: 16/8; }
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0 0; }
.img-pair .img-ph { aspect-ratio: 4/3; }

/* ── CONTENT SECTIONS ────────────────────── */
.case-body { max-width: 880px; margin: 0 auto; padding: 0 48px; }
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section:first-child { border-top: none; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: block; }
h2.section-title { font-family: var(--serif); font-size: clamp(26px, 3.5vw, 40px); font-weight: 400; line-height: 1.18; color: var(--text); margin-bottom: 22px; }
.lead-text { font-size: 20px; line-height: 1.6; color: var(--text-muted); font-weight: 300; font-style: italic; margin-bottom: 20px; }
p.body-text { font-size: 16px; line-height: 1.85; color: var(--text-muted); margin-bottom: 20px; }

/* ── STATS ───────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-top: 40px; gap: 1px; }
.stat { background: var(--surface); padding: 28px 20px; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 44px; color: var(--text); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 13px; color: var(--text-muted); line-height: 1.45; }

/* ── QUOTES ──────────────────────────────── */
.quote-block { border-left: 2px solid var(--accent); padding: 18px 24px; margin: 24px 0; background: var(--surface); border-radius: 0 var(--r) var(--r) 0; }
.quote-text { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--text); line-height: 1.55; margin-bottom: 8px; }
.quote-attr { font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

/* ── CALLOUT ─────────────────────────────── */
.callout { background: var(--accent-soft); border: 1px solid var(--accent-mid); border-radius: var(--r); padding: 22px 26px; margin: 28px 0; display: flex; gap: 14px; align-items: flex-start; }
.callout-icon { font-size: 15px; margin-top: 3px; flex-shrink: 0; color: var(--accent-callout); }
.callout-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-callout); margin-bottom: 5px; }
.callout-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; font-style: italic; }

/* ── DATA TABLE ──────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px; }
.data-table th { text-align: left; padding: 11px 16px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); border-bottom: 1.5px solid var(--border-strong); background: var(--surface-2); }
.data-table td { padding: 13px 16px; color: var(--text-muted); border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }

/* ── DECISIONS ───────────────────────────── */
.decisions-list { margin-top: 40px; }
.decision-item { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--border); }
.decision-item:first-child { border-top: 1px solid var(--border); }
.decision-num { font-family: var(--serif); font-size: 30px; color: var(--text-dim); padding-top: 4px; }
.decision-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 5px; }
.decision-title { font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 9px; line-height: 1.35; }
.decision-body { font-size: 15px; color: var(--text-muted); line-height: 1.75; }

/* ── REFLECTIONS ─────────────────────────── */
.reflections-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.reflection-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.reflection-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.reflection-item::before { content: ''; color: var(--accent); flex-shrink: 0; font-weight: 600; }

/* ── DARK SECTIONS ───────────────────────── */
.dark-section { background: var(--dark-bg); color: var(--dark-text); padding: 96px 0; }
.dark-inner { max-width: 880px; margin: 0 auto; padding: 0 48px; }
.dark-section .section-label { color: var(--accent-dark); }
.dark-section h2.section-title { color: var(--dark-text); }
.dark-section .lead-text { color: rgba(237,233,227,0.6); }
.dark-section p.body-text { color: var(--dark-muted); }
.dark-section .quote-block { background: var(--dark-surface); }
.dark-section .quote-text { color: var(--dark-text); }
.dark-section .quote-attr { color: var(--dark-dim); }
.dark-section .callout { background: rgba(199,70,52,0.09); border-color: rgba(199,70,52,0.2); }
.dark-section .callout-icon { color: var(--accent-dark); }
.dark-section .callout-label { color: var(--accent-dark); }
.dark-section .callout-text { color: rgba(237,233,227,0.78); }
.dark-section .data-table th { background: var(--dark-surface); color: var(--dark-muted); border-color: var(--dark-border); }
.dark-section .data-table td { color: var(--dark-muted); border-color: rgba(255,255,255,0.05); }
.dark-section .data-table td:first-child { color: var(--dark-text); }
.dark-section .data-table tr:hover td { background: rgba(255,255,255,0.025); }
.dark-section .decision-item { border-color: var(--dark-border); }
.dark-section .decision-num { color: var(--dark-dim); }
.dark-section .decision-tag { color: var(--dark-dim); }
.dark-section .decision-title { color: var(--dark-text); }
.dark-section .decision-body { color: var(--dark-muted); }
.dark-section .reflection-col h4 { color: var(--dark-dim); border-color: var(--dark-border); }
.dark-section .reflection-item { color: var(--dark-muted); }

/* ── CTA ─────────────────────────────────── */
.cta { background: var(--dark-bg); text-align: center; padding: 100px 48px; }
.cta-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); color: var(--dark-text); margin-bottom: 12px; font-weight: 400; line-height: 1.2; }
.cta-title em { color: var(--accent); font-style: italic; }
.cta-sub { font-size: 16px; color: var(--dark-muted); margin-bottom: 36px; font-weight: 300; }
.cta-btn { display: inline-block; font-size: 14px; font-weight: 500; color: var(--dark-text); text-decoration: none; border: 1px solid var(--dark-border); padding: 10px 28px; border-radius: 100px; transition: all 0.2s; }
.cta-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── FOOTER ──────────────────────────────── */
footer { background: var(--dark-bg); padding: 28px 48px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--dark-border); font-size: 13px; color: var(--dark-dim); }
footer a { color: var(--dark-dim); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--dark-text); }
.footer-right { display: flex; gap: 20px; }

/* ── ANIMATIONS ──────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow { animation: fadeUp 0.5s ease both; }
h1.hero-title  { animation: fadeUp 0.5s 0.1s ease both; }
.hero-subtitle { animation: fadeUp 0.5s 0.2s ease both; }
.meta-row      { animation: fadeUp 0.5s 0.3s ease both; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 720px) {
  nav { padding: 16px 24px; }
  .nav-name { font-size: 20px; }
  .hero, .case-body { padding-left: 24px; padding-right: 24px; }
  .hero-img-wrap { padding: 0 24px 60px; }
  .dark-inner { padding: 0 24px; }
  .meta-row { grid-template-columns: 1fr; }
  .meta-item { border-right: none; border-bottom: 1px solid var(--border); }
  .meta-item:last-child { border-bottom: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .img-pair { grid-template-columns: 1fr; }
  .reflections-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 14px; text-align: center; }
  .cta { padding: 72px 24px; }
}
