/* =====================================================================
   PhytoEdit Labs — Design System
   Brand: navy #0B3041 / #163E64 (logo), warm paper, sage + amber accents
   Type:  Spectral (serif display) · Hanken Grotesk (sans body/UI)
   ===================================================================== */

:root {
  /* ---- Brand navy scale ---- */
  --navy-950: #082130;
  --navy-900: #0b3041;   /* logo square */
  --navy-800: #0e3850;
  --navy-700: #163e64;   /* wordmark */
  --navy-600: #1f5378;

  /* ---- Neutrals ---- */
  --ink:      #14222c;
  --slate:    #51626c;
  --slate-2:  #6f7e87;
  --paper:    #f7f5ef;
  --paper-2:  #fbfaf5;
  --surface:  #ffffff;
  --line:     #e7e2d6;
  --line-2:   #efebe0;

  /* ---- Accents ---- */
  --sage-bg:  #eaf1ea;
  --sage:     #3e7a55;   /* muted natural green (ticks, plant nods) */
  --amber:    #c5862f;
  --amber-2:  #ad7022;
  --rose-no:  #b06a52;   /* muted "con" marker */

  /* ---- Type ---- */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* ---- Misc ---- */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20,34,44,.05), 0 6px 18px rgba(20,34,44,.05);
  --shadow-md: 0 10px 40px rgba(11,48,65,.10);
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 2000;
  background: var(--navy-700); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ---------------------------------------------------------------- type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--navy-700); }

.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: .76rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--sage);
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sage); display: inline-block; }
.eyebrow-light { color: #9ec8af; }
.eyebrow-light::before { background: #9ec8af; }

.section-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-title em { color: var(--sage); font-weight: 600; }
.accent-text { color: var(--amber-2); }

.section-intro { margin-top: 1.1rem; max-width: 60ch; color: var(--slate); font-size: 1.08rem; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.nav.scrolled {
  background: rgba(247,245,239,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(11,48,65,.06);
}
.nav-logo { display: inline-flex; align-items: center; gap: .65rem; }
.nav-logo-mark { width: 36px; height: 36px; border-radius: 9px; }
.nav-logo-word { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; color: var(--navy-700); }
/* hero is dark — invert logo wordmark until scrolled */
.nav:not(.scrolled) .nav-logo-word { color: #fff; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav-links > a { font-weight: 500; font-size: .98rem; color: var(--ink); position: relative; padding: .35rem 0; transition: color .2s; }
.nav:not(.scrolled) .nav-links > a { color: rgba(255,255,255,.9); }
.nav-links > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--amber); transition: width .25s var(--ease);
}
.nav-links > a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--amber); color: #fff !important; padding: .6rem 1.25rem; border-radius: 999px;
  font-weight: 600; transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--amber-2); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav.scrolled .nav-toggle span { background: var(--navy-700); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; padding: .85rem 1.6rem; border-radius: 999px;
  cursor: pointer; border: 1.5px solid transparent; transition: all .22s var(--ease); white-space: nowrap;
}
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-2); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(173,112,34,.32); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; color: #fff;
  background: radial-gradient(120% 120% at 80% -10%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  padding: clamp(8rem, 14vh, 11rem) 0 clamp(5rem, 10vh, 7.5rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-arc {
  position: absolute; border-radius: 50%; border: 1.5px solid rgba(158,200,175,.14);
}
.hero-arc-1 { width: 760px; height: 760px; right: -220px; top: -260px; }
.hero-arc-2 { width: 520px; height: 520px; right: -120px; top: -120px; border-color: rgba(197,134,47,.16); }
.hero-arc-3 { width: 300px; height: 300px; right: -10px; top: 20px; border-color: rgba(158,200,175,.10); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hero-inner { max-width: 880px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); color: #fff; line-height: 1.06; }
.hero-title em { color: #a7d8b9; }
.hero-sub { margin-top: 1.6rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.82); max-width: 62ch; }
.hero-pills { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-pills li {
  font-size: .92rem; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #e9f2ec;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-meta { margin-top: 2.6rem; font-size: .9rem; letter-spacing: .04em; color: rgba(255,255,255,.55); }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-tint { background: var(--paper-2); border-block: 1px solid var(--line-2); }
.section-head { margin-bottom: 3.2rem; }
.section-head-light .section-title { color: #fff; }

/* ---------------------------------------------------------------- grids + cards */
.grid { display: grid; gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8d2c2; }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { color: var(--slate); font-size: .98rem; }

.card-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-700); color: #fff; margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.icon-sage { background: var(--sage-bg); color: var(--sage); }

.challenge-card h3 { color: var(--navy-700); }

/* ---- stat strip ---- */
.shared-flow{
  max-width:1040px;
  margin:0 auto 1.6rem;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:1.4rem 1.6rem;
  box-shadow:var(--shadow-sm);
}

.shared-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.55rem;
  margin-top:1rem;
}

.flow-compare{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  max-width:1040px;
  margin:0 auto;
}

.flow-column{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:1.6rem;
  box-shadow:var(--shadow-sm);
}

.flow-column.flow-new{
  border-color:var(--sage);
  box-shadow:0 14px 40px rgba(62,122,85,.16);
  position:relative;
}

.flow-column.flow-new::before{
  content:"";
  position:absolute;
  inset:-1px -1px auto -1px;
  height:4px;
  background:var(--amber);
  border-radius:var(--radius) var(--radius) 0 0;
}

.vertical-flow{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.5rem;
  margin-top:1rem;
}

.vertical-flow .node{
  width:100%;
  justify-content:center;
  text-align:center;
  padding:.75rem 1rem;
}

.arrow-down{
  text-align:center;
  color:var(--slate-2);
  font-style:normal;
  font-weight:700;
  opacity:.65;
  line-height:1;
}

.arrow-on{
  color:var(--sage);
  opacity:1;
}

.flow-pain,
.flow-gain{
  margin-top:1.4rem;
  display:grid;
  gap:.5rem;
}

.flow-pain li,
.flow-gain li{
  position:relative;
  padding-left:1.5rem;
  font-size:.9rem;
  color:var(--slate);
}

.flow-pain li::before{
  content:"✕";
  position:absolute;
  left:0;
  color:var(--rose-no);
  font-weight:700;
}

.flow-gain li::before{
  content:"✓";
  position:absolute;
  left:0;
  color:var(--sage);
  font-weight:700;
}

@media (max-width:860px){
  .flow-compare{
    grid-template-columns:1fr;
  }

  .shared-row{
    flex-direction:column;
    align-items:stretch;
  }

  .shared-row .node{
    justify-content:center;
    text-align:center;
  }

  .shared-row .arrow{
    text-align:center;
    transform:rotate(90deg);
  }
}

/* ---- why grid ---- */
.why-grid { margin-top: 2.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.why-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sage);
  border-radius: var(--radius); padding: 2rem;
}
.why-card h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.why-card p { color: var(--slate); }

/* ---------------------------------------------------------------- evolution */
.gen-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; align-items: stretch; }
.gen-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.3rem; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm);
}
.gen-tag {
  font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate-2); margin-bottom: .6rem;
}
.gen-card h3 { font-size: 1.18rem; margin-bottom: .35rem; color: var(--navy-700); }
.gen-desc { font-size: .85rem; color: var(--slate-2); font-style: italic; margin-bottom: 1.1rem; }
.gen-list { display: flex; flex-direction: column; gap: .55rem; margin-top: auto; }
.gen-list li { position: relative; padding-left: 1.6rem; font-size: .9rem; color: var(--slate); }
.gen-list li::before {
  position: absolute; left: 0; top: .05em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; font-weight: 700; line-height: 1;
}
.gen-list li.yes { color: var(--ink); }
.gen-list li.yes::before { content: "✓"; background: var(--sage-bg); color: var(--sage); }
.gen-list li.no::before { content: "✕"; background: #f3e7e2; color: var(--rose-no); }

.gen-card-next {
  background: linear-gradient(180deg, #fff, #f5faf6);
  border-color: var(--sage); box-shadow: 0 14px 40px rgba(62,122,85,.16);
}
.gen-card-next::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 4px;
  background: var(--amber); border-radius: var(--radius) var(--radius) 0 0;
}
.gen-tag-next { color: var(--amber-2); }

/* ---------------------------------------------------------------- navy sections */
.section-navy {
  background: radial-gradient(120% 120% at 100% 0%, var(--navy-700), var(--navy-900) 70%);
  color: #fff;
}
.adv-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 2rem; transition: background .25s var(--ease), transform .25s var(--ease);
}
.adv-card:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.adv-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: .6rem; }
.adv-card p { color: rgba(255,255,255,.78); }

.traction {
  margin-top: 2.6rem; padding: 1.8rem 2rem; border-radius: var(--radius);
  background: rgba(167,216,185,.08); border: 1px solid rgba(167,216,185,.22);
}
.traction-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #9ec8af; margin-bottom: 1rem;
}
.traction-list { display: grid; gap: .7rem; }
.traction-list li { position: relative; padding-left: 1.8rem; color: rgba(255,255,255,.9); }
.traction-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--amber);
  background: rgba(197,134,47,.16); width: 1.3rem; height: 1.3rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.traction-list em { color: #cfe6d6; }

/* ---------------------------------------------------------------- service */
.service-client {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center;
  background: var(--navy-700); color: #fff; border-radius: var(--radius); padding: 1.6rem 2rem;
  margin-bottom: 2.2rem;
}
.client-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9ec8af;
}
.client-role h3 { color: #fff; font-size: 1.4rem; margin-top: .25rem; }
.client-flow { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.client-flow li { position: relative; padding-left: 1.5rem; color: rgba(255,255,255,.88); font-size: .95rem; }
.client-flow li::before { content: "→"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.tl-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.3rem; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; gap: 1rem;
}
.tl-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sage-bg); color: var(--sage);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center;
}
.tl-head h3 { font-size: 1.12rem; }
.tl-time { display: inline-block; margin-top: .25rem; font-size: .8rem; font-weight: 600; color: var(--slate-2); }
.tl-body > ul { display: grid; gap: .5rem; }
.tl-body > ul li { position: relative; padding-left: 1rem; font-size: .9rem; color: var(--slate); }
.tl-body > ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.tl-step-impact { background: linear-gradient(180deg,#fff,#fdf6ec); border-color: #f0dcbe; }
.tl-step-impact .tl-num { background: rgba(197,134,47,.14); color: var(--amber-2); }

.pledge-grid { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.pledge { padding: 1.6rem 1.8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--sage); }
.pledge h4 { font-size: 1.15rem; margin-bottom: .4rem; }
.pledge p { color: var(--slate); font-size: .96rem; }

/* ---------------------------------------------------------------- team */
.team-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-sm);
}
.team-top { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.3rem; }
.avatar {
  flex: 0 0 auto; width: 70px; height: 70px; border-radius: 16px;
  background: var(--navy-700); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .02em;
}
.team-card h3 { font-size: 1.28rem; }
.team-role { color: var(--sage); font-weight: 600; font-size: .95rem; margin-top: .15rem; }
.team-org { color: var(--slate-2); font-size: .9rem; }
.team-bio { color: var(--slate); margin-bottom: 1.3rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { font-size: .8rem; font-weight: 500; color: var(--navy-700); background: var(--sage-bg); border: 1px solid #dce8de; padding: .35rem .8rem; border-radius: 999px; }

.founder-name{
  display:flex;
  align-items:center;
  gap:8px;
}

.linkedin-link{
  display:inline-flex;
  align-items:center;
}

.linkedin-icon{
  width:18px;
  height:18px;
  object-fit:contain;
  margin-left:4px;
  opacity:.8;
  transition:opacity .2s ease;
}

.linkedin-icon:hover{
  opacity:1;
}

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-lead .section-title { color: #fff; }
.contact-lead .section-title em { color: #a7d8b9; }
.contact-copy { color: rgba(255,255,255,.82); margin-top: 1.2rem; max-width: 48ch; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.3rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-sm);
  transition: background .2s, border-color .2s, transform .2s;
}
a.contact-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.contact-k { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9ec8af; }
.contact-v { font-size: .98rem; word-break: break-word; }

.contact-form {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius); padding: 2rem;
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: #cfe0d6; margin-bottom: .45rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm); padding: .8rem 1rem; transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: rgba(255,255,255,.1); }
.field textarea { resize: vertical; }
.form-note { margin-top: .9rem; font-size: .9rem; color: #a7d8b9; min-height: 1.2em; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 3.5rem 0 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { max-width: 320px; }
.footer-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-content: flex-start; }
.footer-nav a { font-size: .95rem; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-top: 1.6rem; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------------------------------------------------------------- reveal anim */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ======================================================= responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gen-grid { grid-template-columns: repeat(2, 1fr); }
  .gen-card-next { grid-column: span 2; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .tl-step-impact { grid-column: span 2; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1.25rem,4vw,2.5rem) 1.25rem;
    transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a { color: var(--ink) !important; padding: .9rem 0; border-bottom: 1px solid var(--line-2); }
  .nav-links > a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: .8rem; }
  .nav:not(.scrolled) { background: rgba(247,245,239,.92); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
  .nav:not(.scrolled) .nav-logo-word { color: var(--navy-700); }
  .nav:not(.scrolled) .nav-toggle span { background: var(--navy-700); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-4, .grid-2, .gen-grid, .timeline, .pledge-grid { grid-template-columns: 1fr; }
  .gen-card-next, .tl-step-impact { grid-column: auto; }
  .stat-strip { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .stat-divider { display: none; }
  .contact-cards { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .team-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
