/* TripleHelix — design system
   Light only. Lora (headings) + Inter (text). Everything is centred or on equal columns. */

:root {
  --white: #FFFFFF;
  --tint: #F8F4EA;
  --tint-2: #F1EAD7;
  --line: #E6DFCF;
  --ink: #16233B;
  --body: #3E4659;
  --muted: #655F52;
  --navy: #16355E;
  --blue: #1481AA;
  --blue-ink: #0F6B8E;
  --gold: #D69E12;
  --navy-soft: #E8EDF5;
  --blue-soft: #E7F2F7;
  --gold-soft: #FBF1D2;
  --serif: 'Lora Variable', 'Lora', Georgia, Cambria, 'Times New Roman', serif;
  --sans: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(22, 35, 59, 0.04), 0 10px 28px rgba(22, 35, 59, 0.07);
  --container: 1120px;
  --gutter: 24px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--body);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-top: env(safe-area-inset-top, 0px);
}
img, svg { max-width: 100%; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type scale ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 650; }
h4 { font-size: 1.1rem; line-height: 1.35; font-weight: 650; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--body); max-width: 40rem; margin-inline: auto; }
.eyebrow { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); }
.small { font-size: 0.92rem; color: var(--muted); }

/* the three-stick device from the logo, used as the one ornament */
.bars { display: inline-flex; gap: 6px; align-items: center; }
.bars i { display: block; width: 22px; height: 5px; border-radius: 3px; }
.bars i:nth-child(1) { background: var(--navy); }
.bars i:nth-child(2) { background: var(--blue); }
.bars i:nth-child(3) { background: var(--gold); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.25rem, 8vw, 7rem); }
.section--tint { background: var(--tint); }
.section--blue { background: var(--blue-soft); }
.section-head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.section-head .intro { color: var(--body); font-size: 1.12rem; max-width: 40rem; }
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
/* a three-up grid whose last card would sit alone on two columns: centre it */
@media (min-width: 641px) and (max-width: 900px) { .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 0.75rem); justify-self: center; width: 100%; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(22, 53, 94, 0.22); }
.btn--primary:hover { background: #0F2748; color: #fff; transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy-soft); color: var(--navy); }
.btn--sm { padding: 0.72rem 1.2rem; font-size: 0.93rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; padding-top: env(safe-area-inset-top, 0px); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(22, 35, 59, 0.05); }
.site-header .container { max-width: 1360px; }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); justify-self: start; }
.brand svg { height: 34px; width: 38.4px; flex: none; }
.btn { white-space: nowrap; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.005em; color: var(--ink); }
.nav-links { display: flex; gap: 0.25rem; list-style: none; margin: 0 auto; padding: 0; justify-content: center; }
.nav-links a { display: block; padding: 0.55rem 0.85rem; border-radius: 999px; font-size: 0.94rem; font-weight: 500; color: var(--body); text-decoration: none; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav-links a:hover { background: var(--tint); color: var(--ink); }
.nav-links a.active { color: var(--navy); background: var(--navy-soft); font-weight: 600; }
.nav-tools { display: flex; align-items: center; gap: 0.9rem; justify-self: end; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang button { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.06em; background: none; border: 0; color: var(--muted); padding: 0.5rem 0.8rem; border-radius: 999px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.2s, top 0.2s, opacity 0.2s; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1500px) {
  .nav-tools .btn { display: none; }
}
@media (max-width: 1240px) {
  .nav { justify-content: space-between; }
  .nav-tools { gap: 0.6rem; }
  .nav-tools .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0.75rem var(--gutter) 1.25rem; box-shadow: 0 18px 30px rgba(22, 35, 59, 0.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.95rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav-links a.active { background: none; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 6rem); text-align: center; }
.hero .container { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.hero h1 { max-width: 16ch; }
.hero .actions { margin-top: 0.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: 0.55rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1.05rem; font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--navy); }
.chip:nth-child(2)::before { background: var(--blue); }
.chip:nth-child(3)::before { background: var(--gold); }

/* ---------- cards ---------- */
.card { --accent: var(--navy); position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.1rem 1.9rem 2rem; display: flex; flex-direction: column; gap: 0.75rem; box-shadow: 0 1px 0 rgba(22, 35, 59, 0.02); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card::before { content: ""; position: absolute; left: 1.9rem; top: -1px; width: 56px; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D9CFB9; }
.grid > .card:nth-child(3n+2) { --accent: var(--blue); }
.grid > .card:nth-child(3n) { --accent: var(--gold); }
.grid-2 > .card:nth-child(2) { --accent: var(--blue); }
.grid-2 > .card:nth-child(3) { --accent: var(--gold); }
.grid-2 > .card:nth-child(4) { --accent: var(--navy); }
.grid-4 > .card:nth-child(4n+1) { --accent: var(--navy); }
.grid-4 > .card:nth-child(4n+2) { --accent: var(--blue); }
.grid-4 > .card:nth-child(4n+3) { --accent: var(--gold); }
.grid-4 > .card:nth-child(4n) { --accent: var(--navy); }
.card p { color: var(--body); }
.card .num { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--accent); letter-spacing: 0.04em; }
.card--plain:hover { transform: none; box-shadow: none; border-color: var(--line); }
.tint .card, .section--tint .card { background: #fff; }

/* mission / vision */
.mv-card { text-align: center; align-items: center; padding: 2.6rem 2.2rem; }
.mv-card::before { left: 50%; transform: translateX(-50%); }
.mv-card .tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }
.mv-card blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; color: var(--ink); font-style: italic; }
.mv-card:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* ---------- steps (used for both the cycle and the partnership flow) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { --accent: var(--navy); counter-increment: s; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.5rem 1.25rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; text-align: center; align-items: center; }
.step:nth-child(even) { --accent: var(--blue); }
.step:last-child { --accent: var(--gold); }
.step::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--serif); font-weight: 700; display: grid; place-items: center; }
.step:last-child::before { color: var(--ink); }
.step h3 { font-size: 1.12rem; }
.step p { font-size: 0.95rem; line-height: 1.55; color: var(--body); }
.step .when { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); }
.steps--compact .step { padding-block: 1.3rem; }
.steps--compact .step h3 { font-size: 1.02rem; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin-inline: auto; gap: 0.9rem; }
  .step { flex-direction: row; text-align: left; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.3rem; }
  .step::before { flex: none; }
  .step > div, .step > .text { display: flex; flex-direction: column; gap: 0.3rem; }
}
.step-body { display: flex; flex-direction: column; gap: 0.45rem; align-items: center; }
@media (max-width: 1000px) { .step-body { align-items: flex-start; } }

.note { text-align: center; margin-top: 2rem; font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--muted); }

/* ---------- challenges teaser band & outcomes ---------- */
.feature { text-align: center; }
.outcome { align-items: flex-start; }
.outcome h3 { display: flex; align-items: center; gap: 0.6rem; }
.outcome h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }

/* roles */
.role dl { margin: 0; display: grid; gap: 0.9rem; }
.role dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 0.15rem; }
.role dd { margin: 0; color: var(--body); font-size: 0.99rem; line-height: 1.6; }

/* owner asks */
.asks { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem); max-width: 56rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; text-align: center; display: flex; flex-direction: column; gap: 1.4rem; align-items: center; }
.asks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 2rem; text-align: left; width: 100%; max-width: 40rem; }
.asks li { display: flex; gap: 0.7rem; align-items: flex-start; }
.asks li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.5em; border-radius: 3px; background: var(--gold); }
@media (max-width: 640px) { .asks ul { grid-template-columns: minmax(0, 1fr); } }

/* board */
.slot { border: 1.5px dashed #C9BE9F; background: rgba(255, 255, 255, 0.7); border-radius: var(--radius); padding: 2rem; text-align: center; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.slot .pill { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--gold-soft); color: #7A5A06; padding: 0.35rem 0.8rem; border-radius: 999px; }
.slot h3 { font-size: 1.15rem; }
.slot p { color: var(--muted); font-size: 0.97rem; }

/* faq */
.faq { max-width: 50rem; margin-inline: auto; display: flex; flex-direction: column; gap: 0.8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 1.4rem; transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open] { border-color: #D2C7AB; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2rem 1.25rem 0; font-family: var(--serif); font-weight: 650; font-size: 1.12rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.2rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--body); max-width: 44rem; }

/* ---------- form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.75rem); max-width: 44rem; margin-inline: auto; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #D6CDB6; border-radius: 12px; padding: 0.85rem 1rem; width: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 129, 170, 0.15); }
.form-foot { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-top: 1.5rem; text-align: center; }
.mailrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem 0.9rem; }
.copy { font: 600 0.85rem/1 var(--sans); color: var(--navy); background: var(--navy-soft); border: 0; border-radius: 999px; padding: 0.55rem 0.95rem; cursor: pointer; }
.copy:hover { background: #D7E0EE; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding-block: 3.25rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.foot-grid > div { display: flex; flex-direction: column; gap: 0.65rem; }
.foot-grid > div:nth-child(1) { align-items: flex-start; }
.foot-grid > div:nth-child(2) { align-items: center; text-align: center; }
.foot-grid > div:nth-child(3) { align-items: flex-end; text-align: right; }
.site-footer h4 { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue-ink); text-decoration: underline; }
.foot-tag { font-family: var(--serif); font-style: italic; color: var(--muted); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .foot-grid > div:nth-child(n) { align-items: center; text-align: center; }
  .foot-bottom { justify-content: center; text-align: center; }
}

/* ---------- gtw statement ---------- */
.statement { max-width: 46rem; margin-inline: auto; text-align: center; font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.55; color: var(--ink); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation: none !important; }
}

/* lists and card links */
.bullets { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.bullets li { position: relative; padding-left: 1.15rem; color: var(--body); line-height: 1.5; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--navy)); }
.card .more { margin-top: auto; padding-top: 0.5rem; font-weight: 600; font-size: 0.97rem; color: var(--blue-ink); text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* v3: shorter pages */
.hero--short { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; align-items: start; }
.split-main { display: flex; flex-direction: column; gap: 1.1rem; }
.split-main .eyebrow { margin: 0; }
.facts { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.facts > div { padding: 1.4rem 1.7rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.35rem; }
.facts > div:first-child { border-top: 0; }
.facts h3 { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-ink); }
.partner { max-width: 54rem; margin: 0 auto; display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2.25rem; }
.partner > div:last-child { flex: 1 1 18rem; display: flex; flex-direction: column; gap: 0.4rem; }
.gtw-badge { flex: none; width: 92px; height: 92px; border-radius: 20px; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.75rem; color: var(--navy); }
