/* HUMAMA — shared styles
   Layout: an institutional manifesto. Full-bleed bands that move like the film, from paper (day)
   to night and back to dawn, on a wide grid. One recurring sign: the red dot is always the human. */
:root {
  --paper: #F5F2EB;      /* page ground */
  --bone: #EAE5D9;       /* alternate band, the HMID icon's paper */
  --ink: #161614;        /* type, pillars of the H */
  --ink-2: #57534B;      /* secondary text */
  --ink-3: #8C877C;      /* tertiary, captions */
  --rule: #D8D1C2;       /* hairlines on paper */
  --red: #BE3A2B;        /* the human dot. Accent only */
  --red-deep: #9F2E21;
  --night: #131312;      /* dark bands */
  --night-2: #1E1D1B;
  --on-night: #F2EEE5;
  --on-night-2: #A9A397;
  --rule-night: #36332E;
  --device: #0B0B0A;

  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", "Iowan Old Style", Georgia, serif;

  --wrap: 1200px;
  --band-pad: clamp(4rem, 2.5rem + 5vw, 8rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--night);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.06; margin: 0; text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem); }
h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.eyebrow {
  display: flex; align-items: center; gap: .65em;
  font-family: var(--display); font-weight: 600; font-size: .75rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--red); flex: none;
}
.lede { font-size: clamp(1.15rem, 1rem + .45vw, 1.35rem); line-height: 1.55; max-width: 36em; color: var(--ink-2); }
.measure { max-width: 65ch; }
.label {
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.quiet { color: var(--ink-2); }
.dot {
  display: inline-block; width: .2em; height: .2em; border-radius: 50%;
  background: var(--red); margin-left: .05em;
}
.stack > * + * { margin-top: 1.25rem; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: .95em 1.55em; border-radius: 2px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm { padding: .7em 1.15em; font-size: .85rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.text-link {
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.text-link:hover { color: var(--red); }

/* ---------- Header: dark bar, white menu, white logo ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; isolation: isolate;
  color: var(--on-night); border-bottom: 1px solid var(--rule-night);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--night); transition: opacity .3s;
}
/* Home page: the header floats over the photo, then turns solid once you scroll (site.js adds .is-solid) */
.site-header:has(+ main > .hero-photo) {
  position: fixed; left: 0; right: 0; border-bottom-color: transparent; transition: border-color .3s;
  background: transparent;
}
.site-header:has(+ main > .hero-photo):not(.is-solid) .nav a { text-shadow: 0 1px 12px rgba(13, 10, 7, .6); }
.site-header:has(+ main > .hero-photo):not(.is-solid) .logo { filter: drop-shadow(0 1px 6px rgba(13, 10, 7, .85)) drop-shadow(0 0 14px rgba(13, 10, 7, .55)); }
.site-header:has(+ main > .hero-photo)::before { opacity: 0; }
.site-header:has(+ main > .hero-photo).is-solid { border-bottom-color: var(--rule-night); }
.site-header:has(+ main > .hero-photo).is-solid::before { opacity: 1; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 84px; position: relative; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--on-night); margin-right: auto; }
.brand .logo { height: 56px; width: auto; max-width: none; }
@media (max-width: 820px) { .site-header .wrap { height: 72px; } .brand .logo { height: 46px; } }
.hmark { height: 32px; width: auto; color: var(--ink); flex: none; }
.nav { display: flex; gap: 1.75rem; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--on-night);
  padding-block: .4rem; border-bottom: 2px solid transparent;
}
.nav a { white-space: nowrap; }
@media (min-width: 821px) and (max-width: 1060px) { .nav { gap: 1.1rem; } .nav a { font-size: .86rem; } }
.nav a:hover { border-bottom-color: var(--on-night-2); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.menu-btn {
  display: none; font-family: var(--display); font-weight: 600; font-size: .85rem;
  background: transparent; border: 1.5px solid var(--on-night); color: var(--on-night);
  padding: .55em .9em; border-radius: 2px; cursor: pointer;
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--night);
    border-bottom: 1px solid var(--rule-night);
    padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding-block: .85rem; border-bottom: 1px solid var(--rule-night); font-size: 1.05rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule-night); box-shadow: inset 3px 0 0 var(--red); padding-left: .85rem; }
}
@media (max-width: 420px) {
  .site-header .wrap { gap: .75rem; }
  .brand .logo { height: 40px; }
  .site-header .btn-sm { padding: .6em .9em; }
}

/* ---------- Bands ---------- */
.band { padding-block: var(--band-pad); }
.band-bone { background: var(--bone); }
.band-night { background: var(--night); color: var(--on-night); }
.band-night .eyebrow, .band-night .lede, .band-night .quiet { color: var(--on-night-2); }
.band-night .label { color: var(--on-night-2); }
.band-night .btn-ghost { color: var(--on-night); }
.band-night .btn-ghost:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.band-night .hmark { color: var(--on-night); }
.band-red { background: var(--red); color: var(--paper); }
.band-red .eyebrow { color: var(--paper); }
.band-red .eyebrow::before { background: var(--paper); }
.band-red .lede { color: var(--paper); }
.section-head { display: grid; gap: 1.25rem; max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem); align-items: center;
}
.hook { display: grid; gap: .9rem; }
.hook .l1 {
  display: block; font-weight: 600; letter-spacing: -0.015em; color: var(--ink-2);
  font-size: clamp(1.45rem, 1rem + 1.6vw, 2.3rem); line-height: 1.15;
}
.hook .l2 {
  display: block; font-weight: 800; letter-spacing: -0.035em; color: var(--ink);
  font-size: clamp(2.75rem, 1.2rem + 5.4vw, 5.6rem); line-height: .98;
}
.hero-copy { display: grid; gap: 2rem; min-width: 0; }
.hero-copy .lede { color: var(--ink-2); }
.hero-note { font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hero-figure { margin: 0; display: grid; gap: 1rem; justify-items: center; min-width: 0; }
.heart-mark { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.hero-figure .heart-mark { max-width: 500px; }
.hero-figure figcaption { font-family: var(--display); font-size: .82rem; font-weight: 500; color: var(--ink-2); text-align: center; max-width: 26em; }

.mission-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4.5rem); border-top: 2px solid var(--ink);
}
.mission-strip a {
  display: grid; gap: .35rem; padding: 1.1rem 1.25rem 0 0; text-decoration: none;
}
.mission-strip a + a { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.mission-strip strong { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.mission-strip a:hover strong { color: var(--red); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure .heart-mark { max-width: 280px; }
}
@media (max-width: 640px) {
  .mission-strip { grid-template-columns: minmax(0, 1fr); }
  .mission-strip a, .mission-strip a + a { padding: .9rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- Hero: headline beside a small drawn vignette (assets/hero-scene.js) ---------- */
.hero-photo {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(600px, 90vh, 900px); padding-top: 84px; color: var(--on-night);
  background:
    radial-gradient(42% 55% at 74% 50%, rgba(190, 58, 43, .13), rgba(190, 58, 43, 0) 70%),
    linear-gradient(180deg, #151311 0%, #0D0A07 100%);
}
.hero-photo .wrap { width: 100%; padding-block: clamp(3rem, 6vw, 6rem); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero-photo .hero-copy { max-width: 38rem; gap: 1.75rem; }
.hero-photo .eyebrow { color: var(--on-night-2); margin: 0; }
.hero-photo .hook .l1 { color: #D8D1C3; }
.hero-photo .hook .l2 { color: var(--on-night); font-size: clamp(2.6rem, 1rem + 4.2vw, 4.8rem); }
.hero-photo .lede { color: #E4DED2; max-width: 30em; }
.hero-photo .btn-ghost { color: var(--on-night); }
.hero-photo .btn-ghost:hover { background: var(--on-night); color: var(--ink); border-color: var(--on-night); }
/* "Watch the whole story" waits, invisible and flat, until the hero drawing has played to its end */
.btn-watch { max-height: 5em; transition: opacity .8s ease, transform .8s ease, max-height .6s ease, padding .6s ease, border-width .6s ease, background-color .2s, color .2s; }
.hero-photo .actions .btn-watch.is-waiting { opacity: 0; transform: translateY(8px); visibility: hidden; max-height: 0; padding-block: 0; border-width: 0; overflow: hidden; }
.btn-watch .play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-right: .1em; }

.hero-scene { position: relative; justify-self: center; width: min(100%, 560px); }
.scene { margin: 0; }
.scene svg { display: block; width: 100%; height: auto; overflow: visible; }   /* glows fade out past the frame, no hard edge */
.scene-cap {
  margin: .25rem 0 0; min-height: 2.7em; text-align: center; padding-inline: 2.5rem; text-wrap: balance;
  font-family: var(--body); font-style: italic; font-size: clamp(1.15rem, 1rem + .55vw, 1.55rem); line-height: 1.3; color: var(--on-night);
}
.scene-pause {
  position: absolute; right: 0; bottom: .15rem; width: 30px; height: 30px; padding: 0; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(242, 238, 229, .5); background: transparent; color: var(--on-night);
}
.scene-pause:hover { border-color: var(--on-night); }
.scene-pause svg { width: 10px; height: 10px; fill: currentColor; }
.scene-pause .i-play, .scene-pause[aria-pressed="true"] .i-pause { display: none; }
.scene-pause[aria-pressed="true"] .i-play { display: block; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-scene { width: min(100%, 440px); }
}
@media (max-width: 760px) {
  .hero-photo { min-height: 0; padding-top: 72px; }
  .hero-photo .eyebrow { display: none; }
  .hero-photo .wrap { padding-block: 2rem 2.5rem; }
  .hero-photo .hero-copy { gap: 1.25rem; }
  .hero-photo .actions .btn { padding: .85em 1.2em; font-size: .9rem; }
}

/* Intro band under the photo */
.intro { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.intro .hero-figure .heart-mark { max-width: 360px; }
.intro-copy { display: grid; gap: 1.25rem; min-width: 0; }
.intro-copy .eyebrow { margin: 0; }
.intro-text {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.18;
  font-size: clamp(1.55rem, 1.05rem + 1.7vw, 2.5rem); max-width: 22em; text-wrap: balance;
}
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .intro .hero-figure .heart-mark { max-width: 240px; }
}

/* ---------- Why now ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.curve-fig { margin: 0; position: relative; }
.curve-svg { width: 100%; height: auto; overflow: visible; }
.curve-svg .axis { stroke: var(--rule-night); stroke-width: 2; fill: none; }
.curve-svg .human { stroke: var(--on-night-2); stroke-width: 1.5; stroke-dasharray: 4 6; fill: none; }
.curve-svg .curve { stroke: var(--on-night); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.curve-svg .halo { fill: var(--red); opacity: .25; transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; }
.curve-svg .here { fill: var(--red); }
@keyframes halo { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.4); opacity: 0; } }
.curve-label {
  position: absolute; font-family: var(--display); font-size: clamp(.68rem, .6rem + .3vw, .82rem);
  font-weight: 600; letter-spacing: .06em; color: var(--on-night-2); white-space: nowrap;
  transform: translate(-50%, -50%);
}
.curve-label.here-label { color: var(--on-night); font-weight: 700; transform: translate(calc(-100% - 14px), -50%); }
.curve-label.human-label { transform: translate(0, -135%); }
.curve-label.y-label { transform: translate(0, 0); }
.curve-label.x-label { transform: translate(-100%, 40%); }
.curve-fig figcaption { margin-top: 1.25rem; font-family: var(--display); font-size: .75rem; color: var(--on-night-2); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.stat { display: grid; gap: .6rem; align-content: start; border-top: 1px solid var(--rule-night); padding-top: 1.25rem; min-width: 0; }
.stat .num {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(2.5rem, 1.8rem + 2.2vw, 3.6rem); font-variant-numeric: tabular-nums;
}
.stat .num small { font-size: .5em; letter-spacing: 0; margin-left: .08em; }
.stat p { font-size: 1rem; line-height: 1.5; }
.src { font-family: var(--display); font-size: .72rem; letter-spacing: .02em; color: var(--on-night-2); line-height: 1.45; }
.src a { text-decoration-color: var(--rule-night); text-underline-offset: 2px; }
.src a:hover { color: var(--on-night); }
.pull {
  font-family: var(--body); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.6rem); line-height: 1.22; letter-spacing: -0.01em;
  max-width: 22em; margin-top: clamp(3.5rem, 6vw, 6rem); padding-top: 2.5rem; border-top: 1px solid var(--rule-night);
}
@media (max-width: 900px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }

/* ---------- Purpose & two roads ---------- */
.statement { font-size: clamp(1.9rem, 1.1rem + 3.1vw, 3.6rem); line-height: 1.08; max-width: 19em; }
.statement .soft { color: var(--ink-3); font-weight: 700; }
.purpose-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.purpose-body .lede { color: var(--ink); }
.roads {
  margin-top: clamp(3.5rem, 7vw, 6rem); display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem); align-items: stretch;
}
.roads-title { grid-column: 1 / -1; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .5rem; }
.road { display: grid; gap: .75rem; align-content: start; padding: 1.75rem; border: 1px solid var(--rule); background: var(--paper); }
.road h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.road p { font-size: 1rem; color: var(--ink-2); }
.road-wrong { border-color: var(--ink-3); background: transparent; }
.road-wrong .label, .road-right .label { color: var(--ink-2); }
.fork-svg { width: 100%; height: 100%; min-height: 220px; }
.fork-svg .road-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.fork-svg .road-line.dim { stroke: var(--ink-3); stroke-dasharray: 2 9; }
.fork-svg .here { fill: var(--red); }
.fork-svg text { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .14em; fill: var(--ink-2); }
.at-stake { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.at-stake p { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-right: .5rem; }
.chip {
  font-family: var(--display); font-weight: 600; font-size: .85rem; padding: .45em .9em;
  border: 1.5px solid var(--ink); border-radius: 999px; white-space: nowrap;
}
@media (max-width: 860px) {
  .purpose-body { grid-template-columns: minmax(0, 1fr); }
  .roads { grid-template-columns: minmax(0, 1fr); }
  .fork-wrap { display: none; }
}

/* ---------- Missions ---------- */
.missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 3rem); }
.mission { display: flex; flex-direction: column; gap: 1rem; border-top: 3px solid var(--ink); padding-top: 1.75rem; min-width: 0; }
.mission .mark { width: 72px; height: 72px; }
.mission h3 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; }
.mission > p { font-size: 1.02rem; color: var(--ink-2); }
.programs { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--rule); }
.programs li {
  display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule);
  font-family: var(--display); font-weight: 600; font-size: .88rem;
}
.programs li span { color: var(--ink-3); font-weight: 500; text-align: right; }
.mark .ink { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.mark .fill-red { fill: var(--red); }
.mark .ink-fill { fill: var(--ink); }
.aside-ai {
  margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem 1.5rem; align-items: start; padding: 1.75rem; border: 1px dashed var(--ink-3);
}
.aside-ai .ai-tag {
  font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .45em .7em; border: 1.5px solid var(--ink); white-space: nowrap;
}
.aside-ai p { font-style: italic; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 900px) { .missions { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .aside-ai { grid-template-columns: minmax(0, 1fr); } .aside-ai .ai-tag { justify-self: start; } }

/* ---------- HMID ---------- */
.hmid-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.app-id { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.app-icon { width: 76px; height: 76px; border-radius: 22%; flex: none; display: grid; place-items: center; padding: 8px; background: #FFFFFF; }
.app-icon img { width: 100%; height: auto; }
.app-id strong { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.app-id span { font-family: var(--display); font-size: .8rem; color: var(--on-night-2); }
.steps { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; gap: 0; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0;
  border-top: 1px solid var(--rule-night); counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 700;
  font-size: .85rem; color: var(--red); padding-top: .2rem; letter-spacing: .06em;
}
.steps strong { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.steps p { color: var(--on-night-2); font-size: 1rem; }
.band-night .steps p { color: var(--on-night-2); }
.motto { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.01em; margin-bottom: 2rem; }
.motto .soft { color: var(--on-night-2); font-weight: 600; }
@media (max-width: 900px) { .hmid-grid { grid-template-columns: minmax(0, 1fr); } }

/* Phone mock */
.phone {
  width: min(320px, 100%); margin-inline: auto; aspect-ratio: 9 / 19; border-radius: 46px;
  background: var(--device); padding: 11px; position: relative;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55), inset 0 0 0 1.5px #3A3833;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; width: 88px; height: 24px; transform: translateX(-50%);
  border-radius: 20px; background: var(--device); z-index: 2;
}
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; padding: 52px 20px 20px; gap: .8rem; font-family: var(--display);
}
.screen-top { display: flex; align-items: center; justify-content: space-between; font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-2); }
.screen-top .screen-heart { height: 22px; width: auto; }
.screen .badge { width: 50%; height: auto; margin: .2rem auto 0; }
.screen .who { text-align: center; display: grid; gap: .15rem; }
.screen .who strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.screen .who span { font-size: .72rem; color: var(--ink-2); }
.status {
  display: inline-flex; align-items: center; gap: .45em; justify-self: center; margin-top: .4rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .45em .8em; border-radius: 999px; background: var(--ink); color: var(--paper);
}
.status::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--red); }
.screen .ai-use { font-size: .68rem; line-height: 1.45; padding: .65rem .75rem; border: 1px solid var(--rule); border-radius: 10px; color: var(--ink-2); }
.screen .ai-use b { color: var(--ink); }
.backers { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .68rem; color: var(--ink-2); }
.faces { display: flex; }
.face {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: .55rem; font-weight: 700; color: var(--paper); background: var(--ink); border: 2px solid var(--paper);
}
.face + .face { margin-left: -7px; }
.face.alt { background: var(--ink-2); }
.face.more { background: var(--bone); color: var(--ink); }
.screen .btn { margin-top: auto; width: 100%; font-size: .8rem; padding: .85em 1em; border-radius: 12px; }
.example-tag { text-align: center; margin-top: 1rem; font-family: var(--display); font-size: .72rem; color: var(--on-night-2); }

/* ---------- Join ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.way { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--rule); background: var(--paper); min-width: 0; }
.way .who { font-family: var(--display); font-weight: 700; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.way blockquote { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.12; letter-spacing: -0.02em; }
.way ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: 1rem; display: grid; gap: .35rem; }
.way .text-link { margin-top: auto; align-self: flex-start; }
.way .mini { width: 44px; height: 44px; }
/* Join: the three Humama App tiers */
.tiers { align-items: stretch; }
.tier-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.price { font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .02em; padding: .3em .8em; border: 1.5px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.tier-for { color: var(--ink-2); font-size: 1rem; }
.incl { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .02em; color: var(--ink); margin-top: .25rem; }
.way ul.feats { list-style: none; padding: 0; gap: .5rem; }
.feats li { position: relative; padding-left: 1.2rem; }
.feats li::before { content: ""; position: absolute; left: 0; top: .62em; width: .42rem; height: .42rem; border-radius: 50%; background: var(--red); }
.feats strong { color: var(--ink); font-weight: 600; }
.tier-creator { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.price b { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.tier-creator .price { border-color: var(--paper); }
.tier-creator .tier-for, .tier-creator .feats { color: var(--on-night-2); }
.tier-creator .incl, .tier-creator .feats strong { color: var(--paper); }
.tier-creator .text-link { color: var(--paper); }
/* the call to partners under the tiers */
.partner-call { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(1.75rem, 3vw, 2.25rem); border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; }
.partner-call-text { flex: 1 1 30rem; min-width: 0; display: grid; gap: .6rem; }
.partner-call h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.partner-call p { margin: 0; color: var(--ink-2); font-size: 1.05rem; max-width: 40em; }
.partner-call .btn { flex: none; }
@media (max-width: 900px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Urgency + pledge ---------- */
.urgent-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.year {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: .82;
  font-size: clamp(5.5rem, 3rem + 13vw, 13rem); font-variant-numeric: tabular-nums; margin-bottom: 1.5rem;
}
.urgent-grid h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem); margin-bottom: 1.25rem; }
.card-form {
  background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; gap: 1.1rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .4);
}
.card-form h3 { font-size: 1.5rem; font-weight: 800; }
.card-form .pro { font-family: var(--display); font-weight: 800; letter-spacing: .14em; font-size: .78rem; color: var(--red); }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--display); font-weight: 600; font-size: .8rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .8em .9em; border: 1.5px solid var(--rule); border-radius: 2px;
  background: #FFFDF8; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(190, 58, 43, .18); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.form-note { font-family: var(--display); font-size: .72rem; color: var(--ink-3); line-height: 1.5; }
.form-done { display: grid; gap: .6rem; padding: 1rem 0; }
.form-done strong { font-family: var(--display); font-size: 1.4rem; font-weight: 800; }
@media (max-width: 900px) { .urgent-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2.5rem; }
.site-footer .brand { color: var(--on-night); }
.site-footer .brand .logo { height: 56px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-grid .tagline { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.2; margin-top: 1.5rem; letter-spacing: -0.01em; }
.footer-grid .tagline span { display: block; color: var(--on-night-2); font-weight: 600; font-size: 1rem; margin-top: .3rem; letter-spacing: 0; }
.footer-col { display: grid; gap: .6rem; align-content: start; }
.footer-col h4 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--on-night-2); margin-bottom: .4rem; }
.footer-col a { text-decoration: none; font-family: var(--display); font-size: .92rem; font-weight: 500; }
.footer-col a:hover { color: var(--red); }
.footer-small {
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule-night);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  font-family: var(--display); font-size: .75rem; color: var(--on-night-2); line-height: 1.6;
}
.footer-small p { max-width: 60ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Sub-page heroes and content ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.8vw, 5.2rem); letter-spacing: -0.035em; line-height: .98; max-width: 14em; }
.page-hero .lede { margin-top: 1.75rem; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.split { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split > h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); position: sticky; top: 100px; }
@media (max-width: 860px) { .two-col, .split { grid-template-columns: minmax(0, 1fr); } .split > h2 { position: static; } }
.prose { display: grid; gap: 1.25rem; max-width: 65ch; }
.prose p { font-size: 1.1rem; line-height: 1.65; }
.prose strong { font-weight: 600; }
.big-quote { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 22em; }
.big-quote .soft { color: var(--ink-3); }
.band-night .big-quote .soft { color: var(--on-night-2); }

.list-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.list-rows li { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1rem 2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); }
.list-rows li strong { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.list-rows li p { color: var(--ink-2); font-size: 1.02rem; }
.band-night .list-rows { border-top-color: var(--on-night); }
.band-night .list-rows li { border-bottom-color: var(--rule-night); }
.band-night .list-rows li p { color: var(--on-night-2); }
@media (max-width: 600px) { .list-rows li { grid-template-columns: minmax(0, 1fr); gap: .35rem; } }

.mission-block { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 3px solid var(--ink); }
.mission-block:first-of-type { border-top-width: 3px; }
.mission-block .mark { width: 88px; height: 88px; margin-bottom: 1.5rem; }
.mission-block h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); }
.mission-block .we-will { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .75rem; }
.program { display: grid; gap: .5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.program:first-child { padding-top: 0; }
.program h3 { font-size: 1.2rem; }
.program p { color: var(--ink-2); font-size: 1.02rem; }
.program .eg { font-family: var(--display); font-size: .82rem; color: var(--ink); border-left: 3px solid var(--red); padding-left: .8rem; margin-top: .3rem; line-height: 1.5; }
@media (max-width: 860px) { .mission-block { grid-template-columns: minmax(0, 1fr); } }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.principles > div { padding: 1.5rem 1.5rem 1.5rem 0; display: grid; gap: .5rem; align-content: start; border-bottom: 1px solid var(--rule); }
.principles > div:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.principles strong { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.principles p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles > div, .principles > div:not(:nth-child(3n+1)) { padding: 1.25rem 0; border-left: 0; }
}

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); max-width: 16em; }

/* Badge formats (HMID page): profile, pin, tag */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.format { display: grid; grid-template-rows: 240px auto auto; gap: .6rem; min-width: 0; }
.format > strong { font-family: var(--display); font-size: 1.1rem; font-weight: 800; margin-top: 1rem; }
.format > p { color: var(--ink-2); font-size: 1rem; }
.format img { width: 100%; height: auto; }
.f-profile {
  align-self: center; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
  background: #FFFFFF; border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(22, 22, 20, .45);
}
.f-profile img { width: 72px; flex: none; }
.f-profile div { display: grid; gap: .15rem; min-width: 0; font-family: var(--display); }
.f-profile strong { font-size: 1rem; font-weight: 800; }
.f-profile span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); }
.f-profile em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--red); }
.f-pin {
  align-self: center; justify-self: center; width: 210px; height: 210px; border-radius: 50%;
  display: grid; place-items: center; padding: 30px; background: #FFFFFF;
  box-shadow: inset 0 0 0 7px var(--ink), inset 0 0 0 10px #FFFFFF, inset 0 0 0 11px var(--rule), 0 18px 40px -20px rgba(22, 22, 20, .5);
}
.f-tag {
  align-self: center; justify-self: center; width: 150px; height: 230px; position: relative;
  background: #FFFFFF; border-radius: 6px 6px 10px 10px; padding: 44px 18px 16px;
  display: grid; justify-items: center; align-content: start; gap: .55rem; text-align: center;
  box-shadow: 0 18px 40px -22px rgba(22, 22, 20, .5); transform: rotate(-4deg);
}
.f-tag::before {
  content: ""; position: absolute; top: 16px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--bone); box-shadow: inset 0 0 0 2px var(--rule);
}
.f-tag img { width: 92px; }
.f-tag .t1 { font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.f-tag .t2 { font-family: var(--display); font-weight: 500; font-size: .66rem; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 860px) {
  .formats { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .format { grid-template-rows: auto auto auto; }
  .f-profile { justify-self: start; max-width: 340px; }
}

.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.level { padding: 1.75rem; border: 1px solid var(--rule-night); display: grid; gap: .75rem; align-content: start; }
.level .pips { display: flex; gap: 6px; }
.level .pips i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--on-night-2); }
.level .pips i.on { background: var(--red); border-color: var(--red); }
.level strong { font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.level p { color: var(--on-night-2); font-size: 1rem; }
@media (max-width: 860px) { .levels { grid-template-columns: minmax(0, 1fr); } }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--red); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 65ch; }

/* Partners: loop + allocation */
.loop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.loop-svg { width: 100%; max-width: 440px; margin-inline: auto; }
.loop-svg .ring { fill: none; stroke: var(--rule-night); stroke-width: 2; }
.loop-svg .arc { fill: none; stroke: var(--on-night); stroke-width: 2.5; stroke-linecap: round; }
.loop-svg .node { fill: var(--night); stroke: var(--on-night); stroke-width: 2.5; }
.loop-svg .node-n { font-family: var(--display); font-size: 15px; font-weight: 800; fill: var(--on-night); }
.loop-svg .node-t { font-family: var(--display); font-size: 15px; font-weight: 700; fill: var(--on-night); letter-spacing: .02em; }
.loop-svg .center-t { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .2em; fill: var(--on-night-2); }
.loop-svg .runner { fill: var(--red); }
@media (max-width: 860px) { .loop-grid { grid-template-columns: minmax(0, 1fr); } }


.means { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.means > div { padding: 1.75rem; display: grid; gap: .9rem; align-content: start; }
.means .yes { background: var(--ink); color: var(--paper); }
.means .no { border: 1.5px solid var(--ink); }
.means h3 { font-size: 1.15rem; }
.means ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: 1rem; }
.means .yes ul { color: var(--on-night); }
.means .no ul { color: var(--ink-2); }
@media (max-width: 760px) { .means { grid-template-columns: minmax(0, 1fr); } }


/* Profile page */
.notice {
  background: var(--ink); color: var(--paper); font-family: var(--display); font-size: .8rem; font-weight: 600;
  text-align: center; padding: .7rem 16px; letter-spacing: .02em;
}
.profile-head { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.profile-badge { background: var(--bone); border-radius: 28px; padding: 12%; position: relative; }
.profile-badge .heart-mark { width: 100%; }
.hmid-code { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; color: var(--ink-2); text-align: center; margin-top: 1rem; }
.profile-head h1 { font-size: clamp(2.4rem, 1.4rem + 3.5vw, 4.2rem); letter-spacing: -0.03em; }
.profile-head .role { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink-2); margin-top: .5rem; }
.cred { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 2rem; }
.cred > div { border: 1.5px solid var(--ink); padding: .9rem 1rem; display: grid; gap: .25rem; }
.cred > div.off { border-color: var(--rule); color: var(--ink-3); }
.cred strong { font-family: var(--display); font-size: .82rem; font-weight: 800; display: flex; align-items: center; gap: .45rem; }
.cred strong::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--red); flex: none; }
.cred .off strong::before { background: transparent; border: 1.5px solid var(--ink-3); }
.cred span { font-family: var(--display); font-size: .74rem; color: var(--ink-2); }
.cred .off span { color: var(--ink-3); }
@media (max-width: 760px) { .profile-head { grid-template-columns: minmax(0, 1fr); } .profile-badge { max-width: 280px; } .cred { grid-template-columns: minmax(0, 1fr); } }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { display: grid; gap: 1.1rem; }
.panel h2 { font-size: 1.5rem; padding-bottom: .75rem; border-bottom: 2px solid var(--ink); }
.ai-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.ai-table th, .ai-table td { text-align: left; padding: .75rem .5rem .75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ai-table th { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); width: 9rem; }
.vouch { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.vouch .face { width: 44px; height: 44px; font-size: .8rem; border: 0; }
.vouch strong { font-family: var(--display); font-weight: 700; font-size: .95rem; }
.vouch .rel { font-family: var(--display); font-size: .76rem; color: var(--ink-3); display: block; margin-top: .1rem; }
.vouch p { font-size: .98rem; color: var(--ink-2); margin-top: .35rem; font-style: italic; }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.work { display: grid; gap: .5rem; }
.work .ph { aspect-ratio: 4 / 5; background: var(--bone); display: grid; place-items: end start; padding: .75rem; position: relative; overflow: hidden; }
.work .ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.work strong { font-family: var(--display); font-size: .88rem; font-weight: 700; }
.work span { font-family: var(--display); font-size: .74rem; color: var(--ink-3); }
@media (max-width: 520px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

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

/* Partner film */
.film-frame { margin: 0; display: grid; gap: 1rem; }
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.film-frame figcaption { font-family: var(--display); font-size: .78rem; color: var(--on-night-2); line-height: 1.5; }

/* Partners: where your support goes */
.flow { list-style: none; margin: 0 0 clamp(3.5rem, 7vw, 5.5rem); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); position: relative; }
.flow::before { content: ""; position: absolute; left: 7px; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--red), var(--rule) 70%); }
.flow li { display: grid; gap: .5rem; align-content: start; position: relative; min-width: 0; }
.flow-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--red); margin-bottom: .9rem; position: relative; z-index: 1; }
.flow li:first-child .flow-dot { background: var(--red); }
.flow strong { font-family: var(--display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.flow p { color: var(--ink-2); font-size: 1rem; }
.fund-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.75rem; }
.fund { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.fund-col { display: grid; gap: .9rem; align-content: start; border-top: 3px solid var(--ink); padding-top: 1.5rem; min-width: 0; }
.fund-col .mark { width: 56px; height: 56px; }
.fund-col .label { color: var(--ink); font-size: .78rem; }
.fund-col ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .55rem; color: var(--ink-2); font-size: 1rem; }
.promise-line { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); display: flex; gap: .7rem; align-items: baseline; max-width: 52rem; }
.promise-line .dot { width: .55em; height: .55em; flex: none; margin: 0; }
@media (max-width: 860px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-left: 2.25rem; }
  .flow::before { left: 7px; right: auto; top: 7px; bottom: 7px; width: 2px; height: auto; background: linear-gradient(180deg, var(--red), var(--rule) 70%); }
  .flow-dot { position: absolute; left: -2.25rem; top: 0; margin: 0; }
  .fund { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Mission 3 → HUMAMA:VAULT link ---------- */
.programs a { text-decoration: none; border-bottom: 2px solid var(--red); }
.programs a:hover { color: var(--red); }
.program h3 a { text-decoration: none; border-bottom: 3px solid var(--red); }
.footer-small .ai-more { color: var(--on-night); text-decoration: none; border-bottom: 1.5px solid var(--red); padding-bottom: 1px; margin-left: .25rem; }
.footer-small .ai-more:hover { color: var(--red); }

/* ---------- Our own HUMAMA:ID: where we use AI (our-id.html, and the modal behind "Learn more") ---------- */
.id-page { background: radial-gradient(60% 40% at 20% 0%, rgba(190, 58, 43, .12), rgba(190, 58, 43, 0) 70%), var(--night); color: var(--on-night); padding-block: calc(var(--band-pad) * .6) var(--band-pad); }
.id-profile { display: grid; gap: clamp(2.5rem, 5vw, 4rem); color: var(--on-night); }
.idp-scanned { font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-night-2); display: flex; align-items: center; gap: .6rem; margin: 0; }
.idp-scanned::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(190, 58, 43, .25); animation: idp-pulse 1.6s ease-out 3; }
@keyframes idp-pulse { 0% { box-shadow: 0 0 0 0 rgba(190, 58, 43, .55); } 100% { box-shadow: 0 0 0 10px rgba(190, 58, 43, 0); } }

.idp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.idp-badge {
  position: relative; width: clamp(130px, 16vw, 190px); aspect-ratio: 1; padding: clamp(18px, 2.2vw, 30px); border-radius: 22%;
  background: var(--paper); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.idp-badge img { display: block; width: 100%; height: auto; }
.idp-badge::before {   /* the scanner's corner brackets */
  content: ""; position: absolute; inset: -12px; pointer-events: none;
  --c: var(--red); --l: 26px; --w: 2.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
}
.idp-scan { position: absolute; left: -8%; right: -8%; top: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(227, 91, 71, 0), #E35B47 30%, #FFD9CF 50%, #E35B47 70%, rgba(227, 91, 71, 0)); box-shadow: 0 0 18px 5px rgba(227, 91, 71, .45); opacity: 0; animation: idp-scan 1.5s cubic-bezier(.45, 0, .55, 1) .25s 2 both; }
@keyframes idp-scan { 0% { top: 2%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 98%; opacity: 0; } }
.idp-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; letter-spacing: .12em; color: var(--on-night-2); margin: 0; }
.idp-name { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); letter-spacing: -0.035em; line-height: .95; margin: .35rem 0 .5rem; color: var(--on-night); }
.idp-role { font-family: var(--display); font-weight: 600; color: var(--on-night-2); margin: 0; }
.idp-cred { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.idp-cred li { border: 1px solid var(--rule-night); border-radius: 4px; padding: .7rem .85rem; display: grid; gap: .2rem; opacity: .55; }
.idp-cred li.on { opacity: 1; border-color: rgba(190, 58, 43, .7); background: rgba(190, 58, 43, .1); }
.idp-cred strong { font-family: var(--display); font-size: .82rem; display: flex; align-items: center; gap: .45rem; }
.idp-cred strong::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; border: 1.5px solid var(--on-night-2); flex: none; }
.idp-cred li.on strong::before { background: var(--red); border-color: var(--red); }
.idp-cred span { font-size: .8rem; line-height: 1.4; color: var(--on-night-2); }
.idp-seal { width: clamp(110px, 12vw, 150px); height: auto; overflow: visible; animation: idp-turn 1.8s cubic-bezier(.2, .7, .2, 1) both; }
.idp-seal .ring { fill: none; stroke: var(--on-night-2); stroke-width: 1.3; }
.idp-seal .ring.thin { stroke-dasharray: 2 4; }
.idp-seal text { font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .12em; fill: var(--on-night); }
.idp-seal .red { fill: var(--red); }
@keyframes idp-turn { from { transform: rotate(-120deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }

.idp-sec { display: grid; gap: 1.75rem; border-top: 1px solid var(--rule-night); padding-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.idp-sec-head { display: grid; gap: .6rem; max-width: 46rem; }
.idp-sec-head h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; color: var(--on-night); }
.idp-sec-head p { color: #CFC9BC; font-size: 1.05rem; }

/* the line between people and machine: hand-drawn red-dot line (people) hands over to a crisp grey line (machine) */
.mix { display: block; width: 100%; }
.mix svg { display: block; width: 100%; height: auto; overflow: visible; }
.mix .h { fill: none; stroke: var(--on-night); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mix .m { fill: none; stroke: #9AA4A9; stroke-width: 1.8; stroke-linecap: round; }
.mix .d { fill: var(--red); }
.mix path { transition: stroke-dashoffset 1s cubic-bezier(.4, 0, .2, 1); transition-delay: var(--delay, 0s); }
.idp-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem 1.5rem; }
.idp-legend li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; align-items: center; padding: .8rem .9rem; border: 1px solid var(--rule-night); border-radius: 4px; }
.idp-legend .mix { grid-column: 1 / -1; }
.idp-legend b { font-family: var(--display); font-size: .8rem; font-weight: 700; }
.idp-legend i { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1; color: var(--on-night); }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px) 11.5rem; gap: .5rem clamp(1rem, 3vw, 2.5rem); align-items: center; padding-block: 1.05rem; border-bottom: 1px solid var(--rule-night); }
.ledger li:first-child { border-top: 1px solid var(--rule-night); }
.lg-text { display: grid; gap: .2rem; min-width: 0; }
.lg-text strong { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--on-night); }
.lg-text span { color: var(--on-night-2); font-size: .96rem; line-height: 1.45; }
.ledger .lvl { font-family: var(--display); font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--on-night-2); }
.idp-rules { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.idp-rules li { counter-increment: r; display: grid; gap: .45rem; align-content: start; padding: 1.3rem 1.25rem 1.4rem; background: var(--night-2); border-radius: 4px; border-top: 3px solid var(--red); }
.idp-rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .1em; color: var(--red); }
.idp-rules strong { font-family: var(--display); font-weight: 800; font-size: 1.08rem; color: var(--on-night); line-height: 1.25; }
.idp-rules span { color: #CFC9BC; font-size: .98rem; line-height: 1.5; }
.idp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; border-top: 1px solid var(--rule-night); padding-top: 1.75rem; }
.idp-sign { font-family: var(--display); font-weight: 800; font-size: 1.05rem; margin: 0 0 .3rem; }
.idp-ver { font-family: var(--display); font-size: .78rem; color: var(--on-night-2); margin: 0; max-width: 40rem; line-height: 1.5; }

@media (max-width: 960px) {
  .idp-head { grid-template-columns: auto minmax(0, 1fr); }
  .idp-seal { display: none; }
  .idp-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger li { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); }
  .ledger .lvl { grid-column: 2; margin-top: -.3rem; }
}
@media (max-width: 640px) {
  .idp-head { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .idp-cred, .idp-rules { grid-template-columns: minmax(0, 1fr); }
  .ledger li { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger .lg-text { grid-column: 1 / -1; }
  .ledger .mix { max-width: 260px; }
  .ledger .lvl { grid-column: auto; margin: 0; text-align: right; }
}

/* the modal: "Learn more" in the footer opens our own HUMAMA:ID over any page */
.id-modal {
  width: min(1080px, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 12px;
  background: var(--night); color: var(--on-night); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9); overflow: auto; overscroll-behavior: contain;
}
.id-modal[open] { animation: idm-in .35s cubic-bezier(.2, .7, .2, 1); }
.id-modal::backdrop { background: rgba(8, 6, 5, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes idm-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.idm-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem clamp(1.25rem, 3.5vw, 3rem); background: rgba(19, 19, 18, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule-night); }
.idm-bar a { font-family: var(--display); font-size: .78rem; font-weight: 600; color: var(--on-night-2); text-decoration: none; border-bottom: 1.5px solid var(--rule-night); }
.idm-bar a:hover { color: var(--on-night); border-bottom-color: var(--red); }
.idm-close { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(242, 238, 229, .4); background: transparent; color: var(--on-night); display: grid; place-items: center; cursor: pointer; flex: none; }
.idm-close:hover { border-color: var(--on-night); }
.idm-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.idm-body { padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3rem); }
html.idm-lock { overflow: hidden; }
