/* =========================================================
   Tupuna Pai — site styles
   One font (Nunito Sans, self-hosted), one type scale,
   one palette. Mobile-first.
   ========================================================= */

@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* palette */
  --plum: #2b1a3c;
  --plum-2: #3a2752;
  --navy: #1b1f2e;
  --panel: #2e2a3a;
  --sky: #8ed1f2;
  --olive: #7a8b3a;
  --olive-dark: #4f5f22;
  --forest: #1f3a27;
  --forest-2: #2c4a30;
  --green: #0a9c2e;
  --cream: #f4f2ee;
  --cream-2: #ebe7df;
  --ink: #241a33;
  --muted: #5d566b;
  --white: #ffffff;

  /* type scale */
  --fs-hero: clamp(2.3rem, 6.2vw, 4.6rem);
  --fs-h2: clamp(1.85rem, 4vw, 3rem);
  --fs-h3: 1.22rem;
  --fs-lede: clamp(1.1rem, 1.9vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  /* spacing */
  --section: clamp(72px, 10vw, 128px);
  --max: 1160px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: var(--section) 0; position: relative; }
.center { text-align: center; }
.lede { font-size: var(--fs-lede); line-height: 1.55; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: var(--fs-small); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--olive);
  margin-bottom: 1rem;
}
.on-dark { color: var(--cream); }
.on-dark .eyebrow { color: var(--sky); }
.on-dark .muted { color: rgba(244,242,238,.75); }
.head-block { max-width: 760px; margin: 0 auto 3.5rem; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.5em; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn-primary { background: var(--cream); color: var(--plum); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { border-color: rgba(244,242,238,.55); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--plum); color: var(--cream); }
.btn-dark:hover { background: var(--plum-2); }
.btn-outline { border-color: var(--plum); color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--plum); color: var(--cream); }
.site-header.overlay { position: absolute; inset: 0 0 auto 0; background: transparent; }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 14px;
}
.logo img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 700; color: var(--cream); opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--sky); }
.nav .btn { opacity: 1; min-height: 42px; padding: 0 1.25em; }
.nav .btn-primary { color: var(--plum); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; border: 1.5px solid rgba(244,242,238,.35);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block; width: 20px; height: 2px; background: var(--cream); border-radius: 2px; position: relative; content: "";
}
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { top: 0; transform: rotate(45deg); }
.menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.menu .panel {
  position: absolute; right: 0; top: 56px; min-width: 220px;
  background: var(--white); border-radius: 16px; padding: 10px;
  box-shadow: 0 18px 50px rgba(20,10,35,.28);
}
.menu .panel a {
  display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none;
  font-weight: 700; color: var(--plum);
}
.menu .panel a:hover { background: var(--cream); }
.menu .panel a.cta { background: var(--plum); color: var(--cream); text-align: center; margin-top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--cream);
  min-height: min(100svh, 960px);
  display: flex; align-items: flex-start;
  background: linear-gradient(180deg, #24152f 0%, #3a2752 45%, #6b5a6e 78%, #9a8a74 100%);
}
.hero .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .hero-inner { position: relative; z-index: 2; padding-top: clamp(120px, 16vh, 170px); padding-bottom: clamp(220px, 38vh, 380px); }
.hero .eyebrow { color: var(--sky); }
.hero h1 { max-width: 17ch; margin-bottom: .45em; }
.hero .lede { max-width: 34ch; color: rgba(244,242,238,.9); margin-bottom: 2rem; }
.sun { animation: glow 8s ease-in-out infinite alternate; transform-origin: center; }
@keyframes glow { from { opacity: .75; } to { opacity: 1; } }
.drift { animation: drift 40s linear infinite alternate; }
@keyframes drift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }

/* ---------- Pillars ---------- */
.pillars { background: var(--cream); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--cream-2);
}
.pillar .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--plum); display: grid; place-items: center; margin-bottom: 20px; }
.pillar .icon svg { width: 28px; height: 28px; }
.pillar h3 { color: var(--plum); }
.pillar p { color: var(--muted); font-size: 1rem; }

/* ---------- Connected chain ---------- */
.connected { background: var(--white); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.chain { list-style: none; margin: 0; padding: 0; position: relative; }
.chain::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px;
  background: linear-gradient(var(--olive), var(--sky));
}
.chain li { position: relative; display: flex; align-items: center; gap: 18px; padding: 8px 0; }
.chain .dot {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--olive);
  display: grid; place-items: center; position: relative; z-index: 1;
}
.chain .dot svg { width: 26px; height: 26px; }
.chain strong { font-size: 1.15rem; color: var(--plum); }
.chain span { display: block; color: var(--muted); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps-sec { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--olive) 0 10px, transparent 10px 18px);
}
.step { text-align: center; position: relative; }
.step .badge {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--green); color: var(--white); font-weight: 900; font-size: 1.5rem;
  display: grid; place-items: center; border: 6px solid var(--cream); position: relative; z-index: 1;
}
.step h3 { color: var(--plum); }
.step p { color: var(--muted); font-size: 1rem; max-width: 26ch; margin: 0 auto; }

/* ---------- Stewardship ---------- */
.stewardship { background: var(--forest); color: var(--cream); overflow: hidden; }
.stewardship .topo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; }
.stewardship .wrap { position: relative; }
.partner {
  background: var(--white); border-radius: 14px; padding: 14px 18px; display: inline-block; margin-bottom: 28px;
}
.partner img { height: 64px; width: auto; }
.stewardship p { font-size: 1.12rem; color: rgba(244,242,238,.9); }
.stewardship .statement {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.3; color: var(--cream);
  border-left: 4px solid var(--sky); padding-left: 22px; margin-top: 8px;
}

/* ---------- Quote ---------- */
.quote { background: var(--navy); color: var(--cream); }
.quote blockquote {
  margin: 0 auto; max-width: 900px; position: relative;
  font-size: clamp(1.45rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
}
.quote blockquote::before {
  content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--sky); margin-bottom: .2em;
}
.quote cite { display: block; font-style: normal; font-weight: 800; margin: 1.8rem 0 2rem; color: var(--sky); }

/* ---------- Icon cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--cream-2); display: flex; flex-direction: column;
}
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; margin-bottom: 20px; }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { color: var(--plum); }
.card p { color: var(--muted); font-size: 1rem; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 800; color: var(--plum); text-decoration: none; }
.audiences { background: var(--white); }
.governance { background: var(--plum); color: var(--cream); }
.governance .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.governance .card h3 { color: var(--cream); }
.governance .card p { color: rgba(244,242,238,.78); }
.governance .card .icon { background: rgba(142,209,242,.14); }
.governance .card .more { color: var(--sky); }

/* ---------- Closing ---------- */
.closing { background: var(--cream); overflow: hidden; padding-bottom: 0; }
.closing .two-col { align-items: start; padding-bottom: var(--section); }
.closing h2 { color: var(--plum); }
.closing .body p { font-size: 1.12rem; color: var(--muted); }
.hills-band { display: block; width: 100%; height: clamp(60px, 9vw, 120px); }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--plum); color: var(--cream); position: relative; overflow: hidden; }
.page-hero .wrap { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 18ch; }
.page-hero p { font-size: var(--fs-lede); max-width: 60ch; color: rgba(244,242,238,.88); }
.page-hero .hills-band { margin-bottom: -1px; }
.content { padding: clamp(48px, 7vw, 88px) 0 var(--section); }
.content .wrap { max-width: 820px; }
.content h2 { font-size: 1.45rem; color: var(--plum); margin-top: 2em; }
.content h2:first-child { margin-top: 0; }
.content p, .content li { font-size: 1.08rem; color: #3a3247; }
.content a:not(.btn) { color: var(--plum); font-weight: 700; }
.numbered { list-style: none; counter-reset: n; padding: 0; margin: 0; }
.numbered li { counter-increment: n; position: relative; padding: 0 0 0 64px; margin-bottom: 30px; }
.numbered li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--white);
  font-weight: 900; display: grid; place-items: center;
}
.numbered strong { display: block; color: var(--plum); font-size: 1.2rem; margin-bottom: .2em; }
.contact-card { background: var(--cream); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); margin-bottom: 8px; }
.contact-card h2 { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(244,242,238,.82); padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 54px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: var(--cream); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .7em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: var(--fs-small); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .pillar-grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
  .logo img { height: 52px; }
  .hero { min-height: 92svh; }
  .hero .hero-inner { padding-top: 112px; padding-bottom: 30vh; }
  .hero .sun { transform: translate(-330px, 80px); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .pillar-grid, .cards, .steps { grid-template-columns: 1fr; }
  .step { text-align: left; display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; }
  .step .badge { margin: 0; grid-row: span 2; }
  .step p { margin: 0; max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .partner img { height: 52px; }
}
