/* ============================================================
   DSNG Sustainability Report 2025 — Design System
   Aesthetic: Quiet Luxury · Editorial · Sustainable
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Palette — Forest & Cream */
  --ink:         #0a1f14;
  --ink-2:       #142b1e;
  --ink-3:       #1e3a2a;
  --paper:       #f5f0e6;
  --paper-2:     #ebe4d3;
  --paper-3:     #dfd6bf;
  --gold:        #c9a961;
  --gold-2:      #b8954a;
  --moss:        #4a6b4f;
  --sage:        #8fa387;
  --rust:        #a85a3c;
  --line:        rgba(10, 31, 20, 0.12);

  /* Theme variables (light default) */
  --bg:          var(--paper);
  --bg-2:        var(--paper-2);
  --fg:          var(--ink);
  --fg-2:        rgba(10, 31, 20, 0.72);
  --fg-3:        rgba(10, 31, 20, 0.55);
  --accent:      var(--gold-2);
  --accent-2:    var(--gold);
  --surface:     #ffffff;
  --surface-2:   rgba(255,255,255,0.6);
  --border:      var(--line);

  /* Typography scale (1.25 ratio) */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.35rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  4rem;
  --fs-5xl:  5.5rem;
  --fs-hero: clamp(3rem, 8vw, 8rem);

  /* Spacing */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  /* Radius */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 32px; --r-full: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur: 400ms;
  --dur-slow: 800ms;

  /* Layout */
  --nav-h: 72px;
  --side-w: 280px;
  --max-w: 1440px;
  --content-w: 880px;
}

/* Dark theme */
[data-theme="dark"] {
  --bg:        var(--ink);
  --bg-2:      var(--ink-2);
  --fg:        var(--paper);
  --fg-2:      rgba(245, 240, 230, 0.72);
  --fg-3:      rgba(245, 240, 230, 0.55);
  --surface:   var(--ink-2);
  --surface-2: rgba(20, 43, 30, 0.6);
  --border:    rgba(245, 240, 230, 0.12);
  --accent:    var(--gold);
  --accent-2:  var(--gold-2);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--ink); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-full); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--fg-3); }

/* ---------- GRAIN TEXTURE ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="dark"] .grain { opacity: 0.18; }

/* ---------- CURSOR (desktop) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 32px; height: 32px;
  border: 1px solid var(--fg); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 250ms var(--ease), height 250ms var(--ease),
              background 250ms var(--ease), border-color 250ms var(--ease);
  mix-blend-mode: difference;
  display: none;
}
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } body { cursor: none; } a, button { cursor: none; } }
.cursor--hover { width: 64px; height: 64px; background: var(--fg); border-color: var(--fg); }

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transition: opacity 600ms var(--ease), visibility 600ms;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; }
.loader__mark {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(3rem, 10vw, 6rem); letter-spacing: -0.04em;
  margin-bottom: var(--s-5);
  animation: loaderFade 1.2s var(--ease) infinite alternate;
}
.loader__bar { width: 200px; height: 1px; background: rgba(245,240,230,0.2); margin: 0 auto; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; background: var(--gold); animation: loaderSlide 1.4s var(--ease) infinite; }
.loader__caption { margin-top: var(--s-4); font-size: var(--fs-xs); letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.6; }
@keyframes loaderFade { to { opacity: 0.4; } }
@keyframes loaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------- TOP BAR ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--s-6); z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: var(--s-3); }
.topbar__center { display: flex; gap: var(--s-1); }
@media (max-width: 1100px) { .topbar__center { display: none; } }

.brand { display: flex; align-items: center; gap: var(--s-3); }
.brand__logo { height: 28px; width: auto; }
.brand__logo--light { display: none; }
[data-theme="dark"] .brand__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--light { display: block; }
.brand__divider { width: 1px; height: 20px; background: var(--border); }
.brand__text { font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.01em; }
.brand__text em { font-style: normal; color: var(--accent); font-weight: 600; }

.topnav__item {
  padding: var(--s-2) var(--s-3); font-size: var(--fs-xs);
  letter-spacing: 0.02em; color: var(--fg-2);
  border-radius: var(--r-sm); transition: all var(--dur-fast) var(--ease);
  position: relative;
}
.topnav__item:hover { color: var(--fg); }
.topnav__item.active { color: var(--fg); }
.topnav__item.active::after {
  content: ''; position: absolute; left: 50%; bottom: -4px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
}

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r-full); border: 1px solid var(--border);
  transition: all var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.05em; }

.hamburger { width: 40px; height: 40px; display: none; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
.hamburger span { display: block; height: 1.5px; background: var(--fg); transition: transform var(--dur) var(--ease); }
@media (max-width: 1100px) { .hamburger { display: flex; } }

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: fixed; top: var(--nav-h); left: 0; bottom: 0;
  width: var(--side-w); padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--bg); z-index: 50;
  overflow-y: auto;
}
@media (max-width: 1100px) { .sidebar { display: none; } }

.sidebar__head { margin-bottom: var(--s-6); }
.sidebar__year {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs); letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: var(--s-2);
}
.sidebar__title {
  font-family: 'Fraunces', serif; font-size: var(--fs-lg);
  font-weight: 400; letter-spacing: -0.02em;
}

.sidebar__nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sidebar__item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-3); border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--fg-2);
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}
.sidebar__item:hover { color: var(--fg); background: var(--bg-2); }
.sidebar__item.active { color: var(--fg); background: var(--bg-2); }
.sidebar__item.active::before {
  content: ''; position: absolute; left: -20px; top: 50%;
  width: 3px; height: 20px; background: var(--accent);
  transform: translateY(-50%); border-radius: var(--r-full);
}
.sidebar__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs); color: var(--fg-3);
  min-width: 28px;
}

.sidebar__foot { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--border); }
.sidebar__progress { height: 2px; background: var(--border); border-radius: var(--r-full); overflow: hidden; margin-bottom: var(--s-3); }
.sidebar__progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width 200ms var(--ease); }
.sidebar__meta { font-size: var(--fs-xs); color: var(--fg-3); display: flex; justify-content: space-between; }
.sidebar__meta strong { color: var(--fg); font-weight: 500; }

/* ---------- DRAWER (mobile) ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden; }
.drawer.open { pointer-events: auto; visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10,31,20,0.5); backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--dur) var(--ease); }
.drawer.open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 85vw);
  background: var(--bg); padding: var(--s-5); overflow-y: auto;
  transform: translateX(-100%); transition: transform var(--dur) var(--ease-out);
}
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-6); }
.drawer__nav { display: flex; flex-direction: column; gap: 2px; }

/* ---------- STAGE (main content) ---------- */
.stage {
  margin-left: var(--side-w);
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
}
@media (max-width: 1100px) { .stage { margin-left: 0; } }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; padding: var(--s-9) var(--s-8);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
    radial-gradient(ellipse at 80% 70%, color-mix(in srgb, var(--moss) 20%, transparent), transparent 50%),
    var(--bg);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg));
}
.hero__inner { position: relative; z-index: 1; max-width: 1100px; width: 100%; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-xs);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s-5);
}
.hero__eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--accent);
}
.hero__title {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: var(--fs-hero); line-height: 0.95; letter-spacing: -0.04em;
  margin-bottom: var(--s-6);
}
.hero__title em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero__subtitle {
  font-size: var(--fs-lg); color: var(--fg-2);
  max-width: 620px; margin-bottom: var(--s-7); line-height: 1.5;
}
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 500;
  transition: all var(--dur) var(--ease);
  border: 1px solid transparent;
}
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { border-color: var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.btn svg { width: 16px; height: 16px; }

.hero__meta {
  position: absolute; bottom: var(--s-7); right: var(--s-8);
  display: flex; flex-direction: column; gap: var(--s-2);
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-xs);
  color: var(--fg-3); text-align: right;
}
@media (max-width: 768px) { .hero__meta { display: none; } }

/* ---------- SECTION ---------- */
.section {
  padding: var(--s-10) var(--s-8);
  border-top: 1px solid var(--border);
  position: relative;
}
.section:first-child { border-top: 0; }
@media (max-width: 768px) { .section { padding: var(--s-7) var(--s-5); } }

.section__head { max-width: var(--content-w); margin-bottom: var(--s-8); }
.section__num {
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-xs);
  letter-spacing: 0.3em; color: var(--accent); margin-bottom: var(--s-3);
  text-transform: uppercase;
}
.section__title {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: var(--s-4);
}
.section__title em { font-style: italic; color: var(--accent); }
.section__lede {
  font-size: var(--fs-md); color: var(--fg-2);
  max-width: 640px; line-height: 1.6;
}

/* ---------- BLOCKS ---------- */
.block { margin-bottom: var(--s-7); }
.block:last-child { margin-bottom: 0; }

/* Text block */
.block-text { max-width: var(--content-w); }
.block-text h3 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: var(--fs-2xl); letter-spacing: -0.02em;
  margin: var(--s-7) 0 var(--s-4); line-height: 1.15;
}
.block-text h3:first-child { margin-top: 0; }
.block-text p { margin-bottom: var(--s-4); color: var(--fg-2); line-height: 1.75; }
.block-text p:last-child { margin-bottom: 0; }
.block-text strong { color: var(--fg); font-weight: 600; }
.block-text ul, .block-text ol { margin: var(--s-4) 0 var(--s-4) var(--s-5); color: var(--fg-2); }
.block-text li { margin-bottom: var(--s-2); }

/* Quote */
.block-quote {
  max-width: var(--content-w); padding: var(--s-7) 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: var(--s-7) 0;
}
.block-quote__mark {
  font-family: 'Fraunces', serif; font-size: 4rem;
  color: var(--accent); line-height: 0.5; margin-bottom: var(--s-4);
}
.block-quote__text {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: var(--fs-2xl); line-height: 1.3; letter-spacing: -0.02em;
  font-style: italic; margin-bottom: var(--s-4);
}
.block-quote__cite {
  font-size: var(--fs-sm); color: var(--fg-3);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* Stats (bento) */
.block-stats {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: var(--s-7) 0;
}
.stat {
  padding: var(--s-6); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.stat:hover { transform: translateY(-4px); border-color: var(--accent); }
.stat--accent { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.stat--accent .stat__label { color: color-mix(in srgb, currentColor 60%, transparent); }
.stat__label {
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-xs);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: var(--s-3);
}
.stat__value {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: var(--fs-4xl); line-height: 1; letter-spacing: -0.03em;
  margin-bottom: var(--s-2);
}
.stat__unit { font-size: var(--fs-lg); color: var(--accent); margin-left: var(--s-2); }
.stat__desc { font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.5; }

/* Cards */
.block-cards {
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: var(--s-7) 0;
}
.card {
  padding: var(--s-6); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(10,31,20,0.15); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent); display: grid; place-items: center;
  margin-bottom: var(--s-4);
}
.card__icon svg { width: 24px; height: 24px; }
.card__title {
  font-family: 'Fraunces', serif; font-size: var(--fs-xl);
  font-weight: 400; letter-spacing: -0.02em; margin-bottom: var(--s-3);
}
.card__body { font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.65; }

/* Charts */
.chart-wrap {
  margin: var(--s-7) 0; padding: var(--s-6);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.chart-wrap__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--s-5); flex-wrap: wrap; gap: var(--s-3);
}
.chart-wrap__title {
  font-family: 'Fraunces', serif; font-size: var(--fs-xl);
  font-weight: 400; letter-spacing: -0.02em;
}
.chart-wrap__sub { font-size: var(--fs-xs); color: var(--fg-3); font-family: 'JetBrains Mono', monospace; }
.chart-wrap__body { width: 100%; }
.chart-wrap__body svg { width: 100%; height: auto; display: block; }
.chart-legend {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border);
}
.chart-legend__item { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--fg-2); }
.chart-legend__dot { width: 10px; height: 10px; border-radius: 50%; }

/* Accordion */
.accordion { margin: var(--s-7) 0; border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%; padding: var(--s-5) 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Fraunces', serif; font-size: var(--fs-lg); font-weight: 400;
  letter-spacing: -0.01em; text-align: left;
  transition: color var(--dur-fast) var(--ease);
}
.accordion__trigger:hover { color: var(--accent); }
.accordion__trigger svg { width: 20px; height: 20px; transition: transform var(--dur) var(--ease); flex-shrink: 0; }
.accordion__item.open .accordion__trigger svg { transform: rotate(45deg); }
.accordion__content {
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}
.accordion__item.open .accordion__content { max-height: 1000px; }
.accordion__body { padding-bottom: var(--s-5); color: var(--fg-2); line-height: 1.7; }

/* Table */
.table-wrap {
  margin: var(--s-7) 0; overflow-x: auto;
  border: 1px solid var(--border); border-radius: var(--r-lg);
}
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table thead { background: var(--bg-2); }
.table th {
  padding: var(--s-4) var(--s-5); text-align: left;
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-xs);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3);
  font-weight: 600; border-bottom: 1px solid var(--border);
}
.table td {
  padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border);
  color: var(--fg-2);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur-fast) var(--ease); }
.table tbody tr:hover { background: var(--bg-2); }
.table td:first-child { color: var(--fg); font-weight: 500; }

/* Timeline */
.timeline { margin: var(--s-7) 0; position: relative; padding-left: var(--s-7); }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.timeline__item { position: relative; padding-bottom: var(--s-6); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ''; position: absolute; left: -27px; top: 6px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline__year {
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-xs);
  color: var(--accent); letter-spacing: 0.2em; margin-bottom: var(--s-2);
}
.timeline__title {
  font-family: 'Fraunces', serif; font-size: var(--fs-lg);
  font-weight: 400; margin-bottom: var(--s-2);
}
.timeline__body { color: var(--fg-2); font-size: var(--fs-sm); line-height: 1.65; }

/* Badges */
.badges {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin: var(--s-5) 0;
}
.badge {
  padding: var(--s-2) var(--s-4); border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 500;
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.badge--gold { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); border-color: transparent; }

/* Gallery */
.gallery {
  display: grid; gap: var(--s-3); margin: var(--s-7) 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.gallery__item {
  aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-2); position: relative;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }

/* Video */
.video-wrap {
  margin: var(--s-7) 0; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16/9; background: var(--ink);
}
.video-wrap iframe, .video-wrap video { width: 100%; height: 100%; border: 0; }

/* SDG */
.sdg-grid {
  display: grid; gap: var(--s-3); margin: var(--s-7) 0;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.sdg {
  aspect-ratio: 1; border-radius: var(--r-md);
  display: grid; place-items: center; text-align: center;
  color: white; font-family: 'Fraunces', serif;
  font-size: var(--fs-2xl); font-weight: 600;
  transition: transform var(--dur) var(--ease);
}
.sdg:hover { transform: scale(1.05) rotate(-2deg); }

/* Download */
.download {
  margin: var(--s-7) 0; padding: var(--s-6);
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-lg);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-5); flex-wrap: wrap;
}
.download__info h4 {
  font-family: 'Fraunces', serif; font-size: var(--fs-xl);
  font-weight: 400; margin-bottom: var(--s-2);
}
.download__info p { font-size: var(--fs-sm); opacity: 0.7; }
.download .btn { background: var(--gold); color: var(--ink); }
.download .btn:hover { background: var(--paper); }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

/* ---------- FOOTER ---------- */
.footer {
  margin-left: var(--side-w);
  background: var(--ink); color: var(--paper);
  padding: var(--s-9) var(--s-8) var(--s-6);
}
@media (max-width: 1100px) { .footer { margin-left: 0; } }
.footer__inner { max-width: var(--max-w); margin: 0 auto; }
.footer__brand { margin-bottom: var(--s-8); max-width: 400px; }
.footer__brand img { height: 36px; filter: brightness(0) invert(1); margin-bottom: var(--s-4); }
.footer__brand p { color: rgba(245,240,230,0.6); font-family: 'Fraunces', serif; font-style: italic; font-size: var(--fs-md); }
.footer__grid {
  display: grid; gap: var(--s-7);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-bottom: var(--s-7); border-bottom: 1px solid rgba(245,240,230,0.1);
  margin-bottom: var(--s-6);
}
.footer__grid h4 {
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-xs);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--s-4);
}
.footer__grid a { display: block; padding: var(--s-2) 0; color: rgba(245,240,230,0.7); font-size: var(--fs-sm); transition: color var(--dur-fast) var(--ease); }
.footer__grid a:hover { color: var(--paper); }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  font-size: var(--fs-xs); color: rgba(245,240,230,0.5);
}

/* ---------- UTILITIES ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}