/* ==========================================================================
   Ambica Nexgen — design system
   Palette and type per brief §33–§35. Static, no build step.
   ========================================================================== */

:root {
  /* colour */
  --forest:      #12352B;
  --forest-deep: #0C231C;
  --ivory:       #F7F4EC;
  --ivory-warm:  #FCFAF4;
  --white:       #FFFFFF;
  --charcoal:    #171B19;
  --green:       #2F7D5C;
  --green-ink:   #1E5B41;
  --amber:       #E6A23C;
  --terracotta:  #D96C4F;

  --ink:     var(--charcoal);
  --ink-72:  rgba(23,27,25,0.72);
  --ink-62:  rgba(23,27,25,0.62);
  --ink-14:  rgba(23,27,25,0.14);
  --ink-08:  rgba(23,27,25,0.08);

  --paper-72: rgba(247,244,236,0.72);
  --paper-58: rgba(247,244,236,0.58);
  --paper-18: rgba(247,244,236,0.18);

  /* type */
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  --t-hero:  clamp(40px, 6.6vw, 92px);
  --t-h1:    clamp(36px, 5.2vw, 66px);
  --t-h2:    clamp(29px, 3.9vw, 50px);
  --t-h3:    clamp(21px, 2.3vw, 31px);
  --t-h4:    clamp(18px, 1.5vw, 21px);
  --t-body:  clamp(17px, 1.08vw, 19px);
  --t-lead:  clamp(19px, 1.55vw, 23px);
  --t-small: 14px;

  /* space */
  --gutter:  clamp(20px, 5vw, 52px);
  --section: clamp(60px, 8.5vw, 128px);
  --measure: 68ch;

  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--green-ink); text-decoration: none; transition: color 0.16s var(--ease); }
a:hover { color: var(--terracotta); }

::selection { background: var(--amber); color: var(--charcoal); }

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--forest); color: var(--ivory);
  padding: 12px 20px; font-size: 15px; font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--ivory); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- layout ---------- */

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: var(--section); }
.section-flush { padding-block: 0; }
.rule { border: 0; border-top: 1px solid var(--ink-14); }

.section-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(34px, 4.6vw, 60px); }
.section-head.wide { max-width: 100%; }

/* ---------- type ---------- */

h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -0.032em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.026em; line-height: 1.14; }
h4 { font-size: var(--t-h4); letter-spacing: -0.018em; line-height: 1.25; }

p { text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.52; color: var(--ink-72); font-weight: 400; }
.muted { color: var(--ink-72); }
.measure { max-width: var(--measure); }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green-ink);
}
.eyebrow-amber { color: #8A5A08; }

.stack { display: grid; gap: 20px; align-content: start; }
.stack-sm { display: grid; gap: 12px; align-content: start; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,244,236,0.90);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--ink-14); box-shadow: 0 8px 28px -22px rgba(18,53,43,0.5); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 13px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; flex: none; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.035em; line-height: 1.06; display: block; }
.brand-sub { font-weight: 600; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-62); display: block; }

.nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 24px); }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-72);
  letter-spacing: -0.008em; padding-block: 7px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--forest); font-weight: 700; border-bottom-color: var(--green); }
.nav .btn { padding: 10px 17px; font-size: 14px; border-bottom: 0; }
.nav .btn:hover { color: var(--ivory); }

.nav-toggle {
  display: none; background: none; cursor: pointer;
  border: 1px solid var(--ink-14); border-radius: var(--radius);
  padding: 9px 13px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink);
}

@media (max-width: 1080px) {
  .site-header { position: sticky; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--ink-14);
    padding: 6px var(--gutter) 22px;
    box-shadow: 0 20px 40px -30px rgba(18,53,43,0.6);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; font-size: 16.5px; border-bottom: 1px solid var(--ink-08); }
  .nav a.active { border-bottom-color: var(--ink-08); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: block; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15.5px; font-weight: 700; letter-spacing: -0.012em;
  padding: 14px 24px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn .arw { transition: transform 0.22s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover { background: var(--green); color: var(--white); }
.btn-accent { background: var(--terracotta); color: #FFF7F3; }
.btn-accent:hover { background: var(--forest); color: var(--ivory); }
.btn-outline { border-color: var(--ink-14); color: var(--ink); }
.btn-outline:hover { border-color: var(--forest); background: var(--forest); color: var(--ivory); }
.btn-light { background: var(--ivory); color: var(--forest); }
.btn-light:hover { background: var(--amber); color: var(--charcoal); }
.btn-ghost-light { border-color: var(--paper-58); color: var(--ivory); }
.btn-ghost-light:hover { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */

.hero { position: relative; padding-block: 0; background: var(--forest-deep); }
.hero-media { position: relative; display: grid; min-height: clamp(500px, 78vh, 760px); }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(94deg, rgba(9,26,20,0.95) 0%, rgba(9,26,20,0.88) 46%, rgba(9,26,20,0.62) 100%),
    linear-gradient(180deg, rgba(9,26,20,0.55) 0%, rgba(9,26,20,0) 34%);
}
.hero-body {
  position: relative; align-self: center; width: 100%;
  padding-block: clamp(56px, 8vw, 104px);
  display: grid; gap: 26px; grid-template-columns: minmax(0, 780px);
}
.hero-body h1 { color: var(--ivory-warm); font-size: var(--t-hero); }
.hero-body p { color: var(--ivory-warm); }
.hero-body .eyebrow { color: var(--amber); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 6px;
  padding-top: 22px; border-top: 1px solid var(--paper-18);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper-72);
}

.page-hero { padding-block: clamp(52px, 7vw, 96px) clamp(34px, 4vw, 56px); border-bottom: 1px solid var(--ink-14); }
.page-hero .inner { display: grid; gap: 18px; max-width: 860px; }

.crumbs { font-size: 13.5px; font-weight: 600; color: var(--ink-62); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--ink-62); }
.crumbs a:hover { color: var(--green-ink); }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(24px, 3vw, 44px); }
.stat { display: grid; gap: 7px; padding-top: 22px; border-top: 2px solid currentColor; }
.stat-num { font-weight: 800; font-size: clamp(38px, 5.2vw, 64px); letter-spacing: -0.045em; line-height: 0.98; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--ink-72); letter-spacing: -0.005em; line-height: 1.35; }
.stat-note { font-size: 12.5px; font-weight: 500; color: var(--ink-62); }

.on-dark .stat { border-top-color: var(--paper-58); }
.on-dark .stat-num { color: var(--ivory-warm); }
.on-dark .stat-label { color: var(--paper-72); }
.on-dark .stat-note { color: var(--paper-58); }

/* ---------- bands ---------- */

.band-forest { background: var(--forest); color: var(--ivory-warm); }
.band-deep   { background: var(--forest-deep); color: var(--ivory-warm); }
.band-forest h2, .band-forest h3, .band-forest h4,
.band-deep h2, .band-deep h3, .band-deep h4 { color: var(--ivory-warm); }
.band-forest p, .band-deep p { color: var(--paper-72); }
.band-forest .lead, .band-deep .lead { color: rgba(247,244,236,0.84); }
.band-forest .eyebrow, .band-deep .eyebrow { color: var(--amber); }
.band-forest a, .band-deep a { color: var(--amber); }
.band-forest a:hover, .band-deep a:hover { color: var(--ivory); }
.band-ivory { background: var(--ivory-warm); }

/* ---------- grids & cards ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(22px, 3vw, 44px); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: clamp(22px, 2.6vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: clamp(20px, 2.2vw, 30px); }

.card {
  background: var(--white); border: 1px solid var(--ink-14); border-radius: var(--radius);
  padding: clamp(24px, 2.7vw, 36px); display: grid; gap: 13px; align-content: start;
}
.card p { color: var(--ink-72); font-size: 16.5px; }
.on-dark .card { background: rgba(247,244,236,0.06); border-color: var(--paper-18); }
.on-dark .card p { color: var(--paper-72); }

.step { display: grid; gap: 13px; align-content: start; padding-top: 24px; border-top: 1px solid var(--ink-14); }
.step-num { font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; color: var(--green-ink); }
.step p { color: var(--ink-72); font-size: 16.5px; }
.on-dark .step { border-top-color: var(--paper-18); }
.on-dark .step-num { color: var(--amber); }
.on-dark .step p { color: var(--paper-72); }

/* ---------- feature rows ---------- */

.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 4.2vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(52px, 7.5vw, 104px); }
.feature-body { display: grid; gap: 17px; align-content: start; }
.feature-body p { color: var(--ink-72); }
.feature-media img { width: 100%; border-radius: var(--radius); }
@media (min-width: 900px) { .feature-flip .feature-media { order: 2; } .feature-flip .feature-body { order: 1; } }

/* ---------- media frame (never upscales) ---------- */

.frame {
  background: var(--white); border: 1px solid var(--ink-14); border-radius: var(--radius);
  display: grid; place-items: center; padding: clamp(16px, 2vw, 28px); overflow: hidden;
}
.frame img { width: 100%; height: auto; border-radius: 2px; }
.on-dark .frame { background: rgba(247,244,236,0.06); border-color: var(--paper-18); }

/* ---------- journey (signature scroll section) ---------- */

.journey { display: grid; gap: 0; position: relative; }
.journey-step {
  display: grid; grid-template-columns: minmax(0, 92px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 48px); align-items: start;
  padding-block: clamp(26px, 3.4vw, 44px);
  border-top: 1px solid var(--paper-18);
  transition: opacity 0.5s var(--ease);
}
.journey-step:last-child { border-bottom: 1px solid var(--paper-18); }
.journey-index { font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.05em; color: var(--amber); line-height: 1; font-variant-numeric: tabular-nums; }
.journey-body { display: grid; gap: 9px; }
.journey-body h3 { font-size: clamp(21px, 2.5vw, 32px); }
.journey-body p { max-width: 62ch; }

/* ---------- project cards ---------- */

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: clamp(22px, 2.6vw, 34px); }

.project-card {
  display: grid; grid-template-rows: auto 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--ink-14); border-radius: var(--radius);
  overflow: hidden; color: var(--ink);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.project-card:hover { color: var(--ink); border-color: var(--green); transform: translateY(-3px); box-shadow: 0 22px 44px -34px rgba(18,53,43,0.65); }
.project-card .pc-media { background: var(--ivory); display: block; height: 208px; overflow: hidden; }
.project-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .pc-media img { transform: scale(1.045); }
.project-card .pc-media.is-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--forest) 0%, var(--green) 100%);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.project-card .pc-media.is-placeholder,
.project-card .pc-media.is-placeholder span { color: var(--ivory); }
.pc-body { padding: clamp(20px, 2.2vw, 26px); display: grid; gap: 11px; align-content: start; grid-template-rows: auto auto 1fr auto; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-62); }
.pc-title { font-size: clamp(19px, 1.7vw, 23px); font-weight: 800; letter-spacing: -0.026em; line-height: 1.16; }
.pc-desc { font-size: 16px; color: var(--ink-72); line-height: 1.55; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid var(--ink-08); }
.pc-stat { font-size: 13.5px; font-weight: 700; color: var(--forest); }
.pc-cta { font-size: 14.5px; font-weight: 700; color: var(--green-ink); display: inline-flex; gap: 7px; align-items: center; }
.project-card:hover .pc-cta .arw { transform: translateX(4px); }
.pc-cta .arw { transition: transform 0.22s var(--ease); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(47,125,92,0.12); color: var(--green-ink); border: 1px solid rgba(47,125,92,0.26);
}
.chip-amber { background: rgba(230,162,60,0.16); color: #6E4506; border-color: rgba(230,162,60,0.4); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- filters ---------- */

.filter-bar { display: grid; gap: 18px; padding-block: clamp(22px, 2.6vw, 32px); border-block: 1px solid var(--ink-14); }
.filter-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end; }
.filter-group { display: grid; gap: 7px; min-width: 172px; flex: 1 1 172px; }
.filter-group label { font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-62); }
.filter-group select, .filter-search input {
  font-family: var(--sans); font-size: 15.5px; font-weight: 500; color: var(--ink);
  background: var(--white); border: 1px solid var(--ink-14); border-radius: var(--radius);
  padding: 11px 13px; width: 100%; cursor: pointer;
}
.filter-search input { cursor: text; }
.filter-status { font-size: 14.5px; font-weight: 600; color: var(--ink-72); }
.filter-clear { background: none; border: 0; cursor: pointer; font-family: var(--sans); font-size: 14.5px; font-weight: 700; color: var(--terracotta); padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.filter-clear:hover { color: var(--forest); }

.empty-state { padding: clamp(40px, 6vw, 80px) 0; text-align: center; display: grid; gap: 14px; justify-items: center; }

/* ---------- project detail ---------- */

.snapshot { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--ink-14); border: 1px solid var(--ink-14); border-radius: var(--radius); overflow: hidden; }
.snapshot > div { background: var(--ivory-warm); padding: clamp(18px, 2vw, 26px); display: grid; gap: 6px; align-content: start; }
.snapshot dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-62); }
.snapshot dd { font-size: 16.5px; font-weight: 600; line-height: 1.4; }

.bullets { display: grid; gap: 12px; list-style: none; }
.bullets li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink-72); }
.bullets li::before { content: ""; width: 9px; height: 9px; margin-top: 9px; border-radius: 2px; background: var(--green); }
.on-dark .bullets li { color: var(--paper-72); }
.on-dark .bullets li::before { background: var(--amber); }

/* ---------- team ---------- */

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: clamp(20px, 2.3vw, 32px); }
.member { display: grid; gap: 13px; grid-template-rows: auto auto; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.member-name { font-weight: 800; font-size: 17.5px; letter-spacing: -0.026em; }
.member-role { font-size: 12.5px; font-weight: 600; color: var(--ink-62); letter-spacing: 0.11em; text-transform: uppercase; }

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery figure { display: grid; gap: 9px; }
.gallery .frame { height: 210px; }
.gallery .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery a:hover .frame img { transform: scale(1.05); }
.gallery figcaption { font-size: 13.5px; font-weight: 500; color: var(--ink-72); line-height: 1.4; }

/* ---------- quote ---------- */

.quote { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.quote img { width: 100%; max-width: 429px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.quote blockquote { font-weight: 700; font-size: clamp(22px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.032em; color: var(--ivory-warm); }
.quote cite { display: block; margin-top: 22px; font-style: normal; font-size: 13.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--paper-72); }

/* ---------- forms ---------- */

.form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-72); }
.field .req { color: var(--terracotta); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16.5px; font-weight: 400; color: var(--ink);
  background: var(--white); border: 1px solid var(--ink-14); border-radius: var(--radius);
  padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field-hint { font-size: 13.5px; color: var(--ink-62); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 5vw, 76px); align-items: start; }
.detail-list { display: grid; gap: 20px; }
.detail { display: grid; gap: 4px; }
.detail dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-62); }
.detail dd { font-size: 17px; line-height: 1.5; }

.form-note {
  padding: 16px 18px; border-radius: var(--radius);
  background: rgba(230,162,60,0.13); border: 1px solid rgba(230,162,60,0.4);
  font-size: 15px; color: #5C3A05;
}

/* ---------- footer ---------- */

.site-footer { background: var(--forest-deep); color: var(--paper-72); padding-block: clamp(52px, 6.5vw, 88px) 34px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.footer-brand { display: grid; gap: 15px; align-content: start; }
.footer-brand .brand-name { color: var(--ivory-warm); font-size: 23px; }
.footer-brand p { font-size: 16px; max-width: 36ch; color: var(--paper-72); }
.footer-col h4 { color: var(--ivory-warm); font-size: 12.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-links span { color: var(--paper-72); font-size: 15.5px; font-weight: 500; }
.footer-links a:hover { color: var(--amber); }
.site-footer a { color: var(--paper-72); }
.site-footer a:hover { color: var(--amber); }
.footer-reg { font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--paper-58); }
.footer-bottom {
  margin-top: clamp(38px, 4.6vw, 60px); padding-top: 26px;
  border-top: 1px solid var(--paper-18);
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--paper-58);
}
.social { display: flex; flex-wrap: wrap; gap: 18px; }
.social a { font-size: 13.5px; font-weight: 600; }

/* ---------- motion ---------- */

/* Entrance motion is pure CSS with fill-mode: both. No JS hiding layer — the
   page's scroll container is document.body, not the viewport, so an
   IntersectionObserver keyed to the viewport root never fires for anything
   below the fold and content pinned at opacity 0 would never come back. */
@keyframes an-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
[data-reveal] { animation: an-rise 0.66s var(--ease) both; }
[data-reveal][data-reveal-delay="60"]  { animation-delay: 0.06s; }
[data-reveal][data-reveal-delay="70"]  { animation-delay: 0.07s; }
[data-reveal][data-reveal-delay="100"] { animation-delay: 0.10s; }
[data-reveal][data-reveal-delay="120"] { animation-delay: 0.12s; }
[data-reveal][data-reveal-delay="140"] { animation-delay: 0.14s; }
[data-reveal][data-reveal-delay="180"] { animation-delay: 0.18s; }
[data-reveal][data-reveal-delay="240"] { animation-delay: 0.24s; }
[data-reveal][data-reveal-delay="300"] { animation-delay: 0.30s; }
[data-reveal][data-reveal-delay="360"] { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { animation: none; }
}

/* ---------- print ---------- */

@media print {
  .site-header, .site-footer, .nav-toggle, .filter-bar { display: none; }
  body { background: #fff; color: #000; }
}


/* ==========================================================================
   Project data model additions
   Year archive, journey timeline, SDG chips, representative-image label,
   intended-impact callout. Brief §14, §21, §37, §38.
   ========================================================================== */

/* ---------- year archive ---------- */

.year-archive { display: flex; flex-wrap: wrap; gap: 10px; }
.year-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 78px; min-height: 46px; padding: 0 16px;
  font-size: 16px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--forest); background: var(--white);
  border: 1px solid var(--ink-14); border-radius: var(--radius);
  cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.year-pill:hover { border-color: var(--green); color: var(--green-ink); }
.year-pill[aria-pressed="true"] { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.year-pill .yp-count {
  margin-left: 8px; font-size: 12px; font-weight: 600;
  color: var(--ink-62); font-variant-numeric: tabular-nums;
}
.year-pill[aria-pressed="true"] .yp-count { color: var(--paper-58); }
.year-archive-note { font-size: 14px; color: var(--ink-62); margin-top: 18px; max-width: 60ch; }

/* ---------- journey timeline ---------- */

.journey { display: grid; gap: 0; margin-top: clamp(28px, 3.4vw, 44px); }
.journey-row {
  display: grid; grid-template-columns: minmax(96px, 128px) 1fr;
  gap: clamp(18px, 3vw, 44px);
  padding-block: clamp(22px, 2.6vw, 34px);
  border-top: 1px solid var(--paper-18);
  align-items: start;
}
.journey-row:last-child { border-bottom: 1px solid var(--paper-18); }
.journey-year {
  font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; line-height: 1;
  letter-spacing: -0.02em; color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.journey-items { display: grid; gap: 14px; }
.journey-item { display: grid; gap: 5px; }
.journey-item a {
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; line-height: 1.35;
  color: var(--ivory-warm); text-decoration: none;
}
.journey-item a:hover { color: var(--amber); }
.journey-item .ji-meta {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--paper-58);
}
.on-dark .journey-year { color: var(--amber); }

@media (max-width: 560px) {
  .journey-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- SDG chips ---------- */

.sdg-row { display: flex; flex-wrap: wrap; gap: 9px; }
.sdg-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius);
  background: rgba(47,125,92,0.10); border: 1px solid rgba(47,125,92,0.24);
  font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--green-ink);
}
.sdg-chip .sdg-num {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green); white-space: nowrap;
}
.on-dark .sdg-chip {
  background: rgba(247,244,236,0.08); border-color: var(--paper-18); color: var(--ivory-warm);
}
.on-dark .sdg-chip .sdg-num { color: var(--amber); }

/* ---------- notices ---------- */

.notice {
  display: grid; gap: 7px;
  padding: clamp(15px, 1.6vw, 20px) clamp(17px, 1.8vw, 22px);
  border: 1px solid rgba(230,162,60,0.42); border-left-width: 1px;
  background: rgba(230,162,60,0.10); border-radius: var(--radius);
}
.notice h4 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #6E4506;
}
.notice p { font-size: 15px; line-height: 1.55; color: var(--ink-72); }

.media-credit {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-62); margin-top: 10px;
}
.hero-media .media-credit {
  position: absolute; right: var(--gutter); bottom: 14px; z-index: 3;
  color: rgba(247,244,236,0.72); margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ---------- gallery placeholder ---------- */

.frame.is-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--forest) 0%, var(--green) 100%);
}
.frame.is-placeholder span {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper-72); text-align: center; padding: 0 18px;
}
