/* ============================================================
   HOʻOMANA KAHUA — "Foundation"
   Warm editorial. Sand ground, lava ink, kalo green, ʻōlena ochre.
   ============================================================ */

:root {
  --sand:      #f4efe6;   /* page ground         */
  --sand-2:    #ebe3d5;   /* raised / alt ground */
  --paper:     #fbf8f2;
  --ink:       #2a211b;   /* lava brown          */
  --ink-soft:  #574a40;
  --ink-mute:  #85776b;
  --kalo:      #3f5a36;   /* kalo green          */
  --kalo-deep: #2f4529;
  --olena:     #b5762d;   /* ʻōlena ochre        */
  --night:     #1d1915;   /* dark bands          */
  --on-dark:   #f1ebe0;
  --on-dark-soft: #c9bfb1;
  --line:      rgba(42, 33, 27, 0.14);
  --line-dark: rgba(241, 235, 224, 0.16);

  --font-display: "Source Serif 4", "Georgia", serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;

  --shell: 1160px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--kalo); color: #fff; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--kalo); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8em 1.5em; border-radius: 999px;
  font: 600 0.95rem/1 var(--font-body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--kalo); color: #fff; }
.btn-solid:hover { background: var(--kalo-deep); }
.btn-line { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-line-dark { border-color: var(--ink); color: var(--ink); margin-top: 1.5rem; }
.btn-line-dark:hover { background: var(--ink); color: var(--sand); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, color .3s;
  color: #fff;
}
.topbar.is-scrolled {
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.topbar-inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: block; line-height: 0; }
.brand img { height: 28px; width: auto; }
.brand .brand-dark { display: none; }
.topbar.is-scrolled .brand .brand-light { display: none; }
.topbar.is-scrolled .brand .brand-dark { display: block; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.topbar-cta { padding: .65em 1.2em; font-size: .88rem; }

.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; color: inherit;
  flex-direction: column; justify-content: center; gap: 6px; align-items: center;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .3s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--sand); color: var(--ink);
  padding: .5rem clamp(16px, 4vw, 48px) 1.25rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: .8rem 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(29,25,21,.55) 0%, rgba(29,25,21,.25) 30%, rgba(29,25,21,.7) 60%, rgba(29,25,21,.85) 100%);
}
.hero-inner { position: relative; padding-top: 140px; padding-bottom: clamp(56px, 10vh, 110px); }
.kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #f0d3a8; margin-bottom: 1.25rem;
}
.hero-title {
  font: 400 clamp(3rem, 8vw, 6.4rem)/1.0 var(--font-display);
  letter-spacing: -0.02em; max-width: 15ch;
}
.hero-title em { font-style: italic; color: #f0d3a8; }
.hero-sub { max-width: 58ch; margin-top: 1.5rem; font-size: 1.12rem; color: rgba(255,255,255,.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 18px; margin: 0 auto;
  text-align: right; font-size: .8rem; letter-spacing: .06em; color: rgba(255,255,255,.7);
}

/* ---------- Section scaffolding ---------- */
section { padding: clamp(72px, 11vw, 140px) 0; }
.sec-kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--olena); margin-bottom: .9rem;
}
.sec-kicker-light { color: #e3b679; }
.sec-title {
  font: 400 clamp(2rem, 4.2vw, 3.3rem)/1.08 var(--font-display);
  letter-spacing: -0.015em;
}
.sec-lede { margin-top: 1rem; max-width: 52ch; color: var(--ink-soft); font-size: 1.1rem; }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); }
.about-grid .sec-head { margin-bottom: 0; }
.about-body > p { color: var(--ink-soft); max-width: 62ch; }
.about-body > p + p { margin-top: 1.2rem; }
.sec-title em { font-style: italic; color: var(--kalo); }
.meaning { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.meaning div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; }
.meaning dt { font: 500 1.6rem/1.1 var(--font-display); color: var(--kalo); }
.meaning dd { margin-top: .5rem; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Work ---------- */
.work { background: var(--sand-2); }
.pillars { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar {
  background: var(--paper); border-radius: 16px; padding: 1.75rem 1.5rem 2rem;
  border-top: 4px solid var(--kalo);
}
.pillar:nth-child(even) { border-top-color: var(--olena); }
.pillar-num { font: 400 .9rem/1 var(--font-display); color: var(--ink-mute); }
.pillar h3 { font: 500 1.35rem/1.2 var(--font-display); margin: 1.6rem 0 .6rem; }
.pillar p { color: var(--ink-soft); font-size: .98rem; }

.reciprocity {
  margin-top: clamp(36px, 5vw, 56px); max-width: 64ch;
  font: 300 clamp(1.2rem, 2vw, 1.45rem)/1.5 var(--font-display); color: var(--ink);
}
.reciprocity em { color: var(--kalo); }

/* ---------- Kalo quote ---------- */
.kalo { display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--night); color: var(--on-dark); }
.kalo-photo { min-height: 420px; }
.kalo-photo img { width: 100%; height: 100%; object-fit: cover; }
.kalo-body { padding: clamp(48px, 7vw, 100px) clamp(20px, 5vw, 80px); align-self: center; }
.kalo blockquote p { font: 300 clamp(1.1rem, 1.6vw, 1.3rem)/1.6 var(--font-display); }
.kalo blockquote strong { font-weight: 500; color: #e3b679; }
.kalo blockquote footer { margin-top: 1.5rem; font-size: .9rem; color: var(--on-dark-soft); }
.kalo blockquote footer::before { content: "— "; }

/* ---------- NHO ---------- */
.nho { background: var(--night); color: var(--on-dark); }
.nho-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.nho-grid .sec-head { margin-bottom: 0; }
.nho-list { list-style: none; }
.nho-list li { padding: 1.4rem 0; border-top: 1px solid var(--line-dark); }
.nho-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.nho-list h3 { font: 500 1.4rem/1.2 var(--font-display); }
.nho-list p { color: var(--on-dark-soft); margin-top: .35rem; }

/* ---------- Hokua ---------- */
.hokua-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.hokua-mark {
  background: var(--night); border-radius: 24px; aspect-ratio: 1;
  display: grid; place-items: center; padding: 18%;
}
.hokua-mark img { width: 100%; height: auto; }
.hokua-grid p:not(.sec-kicker) { color: var(--ink-soft); margin-top: 1rem; max-width: 60ch; }

/* ---------- Board ---------- */
.board { background: var(--sand-2); }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.member { background: var(--paper); border-radius: 18px; padding: 1.5rem 1.5rem 1.9rem; }
.member-photo {
  aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; margin-bottom: 1.4rem;
  background: var(--sand-2);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.member-photo--initials {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--kalo) 0%, var(--kalo-deep) 100%);
}
.member-photo--initials span { font: 300 3.6rem/1 var(--font-display); color: rgba(255,255,255,.85); letter-spacing: .04em; }
.member h3 { font: 500 1.4rem/1.2 var(--font-display); }
.member-role { color: var(--olena); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: .35rem 0 1rem; }
.member { display: flex; flex-direction: column; }
.member > p:not(.member-role), .member details p { color: var(--ink-soft); font-size: .96rem; }
.member details { margin-top: 1rem; }
.member details p { margin-top: .9rem; }
.member summary {
  cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--kalo);
  list-style: none; display: inline-flex; align-items: center; gap: .4rem;
}
.member summary::-webkit-details-marker { display: none; }
.member summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.member details[open] summary::after { content: "−"; }
.member details a { color: var(--kalo); font-weight: 600; }
.member-link {
  margin-top: auto; padding-top: 1.25rem; font-weight: 600; font-size: .9rem;
  text-decoration: none; color: var(--ink);
}
.member-link:hover { color: var(--kalo); }

/* ---------- Forms ---------- */
.hp { position: absolute; left: -9999px; }
.field { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; font-weight: 600; }
.field input, .field textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem 1rem; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--kalo); outline-offset: 0; border-color: transparent; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--kalo-deep); color: var(--on-dark); padding: clamp(64px, 8vw, 100px) 0; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.news-grid p:not(.sec-kicker) { color: var(--on-dark-soft); margin-top: .9rem; }
.news-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: end; }
.news-form .btn { background: var(--olena); height: 52px; }
.news-form .btn:hover { background: #9c6324; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); }
.contact-grid .sec-head { margin-bottom: 0; }
address { font-style: normal; color: var(--ink-soft); margin-top: 1.75rem; line-height: 1.7; }
address strong { color: var(--ink); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--wide { grid-column: 1 / -1; }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-dark-soft); padding: 2.5rem 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer-brand img { height: 24px; width: auto; }

/* ---------- Simple page (thanks / 404) ---------- */
.simple { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem 16px; }
.simple img { margin: 0 auto 1.5rem; height: 72px; width: auto; }
.simple p { color: var(--ink-soft); margin: 1rem auto 2rem; max-width: 42ch; }

/* ---------- Reveals (gated behind .js so content shows without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav, .topbar-cta { display: none; }
  .menu-toggle { display: flex; }
  .pillars { grid-template-columns: 1fr; }
  .kalo { grid-template-columns: 1fr; }
  .kalo-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .board-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .about-grid, .nho-grid, .hokua-grid, .contact-grid { grid-template-columns: 1fr; }
  .hokua-mark { max-width: 200px; }
  .pillars, .board-grid, .meaning { grid-template-columns: 1fr; }
  .news-form, .contact-form { grid-template-columns: 1fr; }
  .member-photo { aspect-ratio: 1; }
}
