/* BrightBee / BrightPath website. A calm editorial layout: warm off-white
   pages, navy text, brand blue for actions, and soft accents taken from the
   illustrated rooms. One readable column (max 1180px) with full-width bands. */

@font-face { font-family: "Lexend"; src: url("../fonts/lexend-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #FBF8F3;
  --bg-soft: #F3EEE5;
  --surface: #FFFFFF;
  --ink: #14284B;
  --muted: #4B5B73;
  --line: #E2DACD;
  --blue: #1F5FE0;
  --blue-deep: #1749B4;
  --blue-soft: #E7EEFC;
  --honey: #E9A923;
  --honey-soft: #FBF1D9;
  --sage: #E6F0E8;
  --sage-ink: #2F6B45;
  --on-blue: #FFFFFF;
  --danger: #A3352B;
  --ok: #23703F;
  --display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --maxw: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1828; --bg-soft: #142036; --surface: #18263E; --ink: #E8EEF8; --muted: #AEBBD0; --line: #2A3A56;
    --blue: #7FA8FF; --blue-deep: #A9C4FF; --blue-soft: #1C2D50; --honey-soft: #3A3020; --sage: #1B3328; --sage-ink: #8FD3A8;
    --on-blue: #0B1730; --danger: #F29387; --ok: #74D39B; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1828; --bg-soft: #142036; --surface: #18263E; --ink: #E8EEF8; --muted: #AEBBD0; --line: #2A3A56;
  --blue: #7FA8FF; --blue-deep: #A9C4FF; --blue-soft: #1C2D50; --honey-soft: #3A3020; --sage: #1B3328; --sage-ink: #8FD3A8;
  --on-blue: #0B1730; --danger: #F29387; --ok: #74D39B; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* nav.js measures the sticky header, so anchors land just below it. */
html { scroll-padding-top: calc(var(--header-h, 72px) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.015em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p, ul, ol, dl, figure { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; z-index: 50; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.stack { display: grid; gap: 1rem; }
.eyebrow { font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.lede, .lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.fine { font-size: .92rem; color: var(--muted); margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }

/* Buttons: one primary style for the main action, everywhere. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.2; border-radius: 999px; padding: .85em 1.5em; border: 2px solid transparent; cursor: pointer; text-decoration: none; min-height: 48px; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-deep); color: var(--on-blue); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-quiet { background: var(--blue-soft); color: var(--ink); }
.btn-quiet:hover { color: var(--ink); border-color: var(--blue); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Status chips: shape and text, not colour alone. */
.status { display: inline-flex; align-items: center; gap: .4em; font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: .2em .7em; border: 1.5px solid currentColor; white-space: nowrap; }
.status::before { content: ""; width: .7em; height: .7em; border-radius: 50%; border: 2px solid currentColor; }
.status[data-status="demonstrated"] { color: var(--sage-ink); background: var(--sage); }
.status[data-status="demonstrated"]::before { background: currentColor; }
.status[data-status="prototype"] { color: var(--ink); background: var(--honey-soft); border-color: var(--honey); }
.status[data-status="prototype"]::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status[data-status="planned"] { color: var(--muted); border-style: dashed; }
/* Small labels next to images and scenes. */
.tag { display: inline-block; font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .03em; border-radius: 6px; padding: .15em .55em; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.tag-research { border-style: dashed; color: var(--muted); }
.tag-proto { background: var(--honey-soft); border-color: var(--honey); }
.tag-demo { background: var(--sage); border-color: var(--sage-ink); color: var(--sage-ink); }

/* Status banner and header */
.status-banner { background: var(--bg-soft); color: var(--ink); font-size: .9rem; border-bottom: 1px solid var(--line); }
.status-banner .wrap { padding-block: .45rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: .75rem 1.5rem; padding-block: .65rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-mark img { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.05; }
.brand-name small { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-nav ul { list-style: none; padding: 0; display: flex; gap: .25rem 1.2rem; align-items: center; flex-wrap: wrap; }
/* With nav.js the menu collapses below 1100px, so above that it stays on one line
   (no reflow when the web fonts arrive). */
@media (min-width: 1101px) { .site-nav ul { flex-wrap: nowrap; white-space: nowrap; } }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .96rem; padding: .4rem 0; display: inline-block; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--blue); text-decoration: underline; }
.site-nav .btn { padding: .55em 1.1em; font-size: .92rem; min-height: 42px; }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: var(--on-blue); }
.site-nav .btn-quiet[aria-current="page"] { border-color: var(--blue); }
/* Compact menu on narrow screens (nav.js; without it the full menu shows). */
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-family: var(--display); font-weight: 600; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-header.nav-collapsible .site-nav { display: none; }
.site-header.nav-collapsible.nav-open .site-nav { display: block; width: 100%; padding-bottom: .5rem; }
.site-header.nav-collapsible .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
.site-header.nav-collapsible .site-nav li a:not(.btn) { display: block; padding: .75rem .25rem; border-top: 1px solid var(--line); }
.site-header.nav-collapsible .site-nav .btn { margin-top: .5rem; width: 100%; display: flex; }

/* Bands */
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band-soft { background: var(--bg-soft); }
.section-head { display: grid; gap: .7rem; max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Homepage (editorial) ---------- */
.eyebrow-bar::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--honey); margin-top: .7rem; }
.center-head { display: grid; gap: .8rem; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.center-head .lede { margin: 0 auto; }
.fine.center { justify-content: center; text-align: center; }
.fine-inline { font-size: .92rem; color: var(--muted); }
.arrow-link { font-family: var(--display); font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.arrow-link::after, .btn.arrow::after { content: " →"; }
/* Labels on composite and concept images. */
.media-tag { position: absolute; left: 16px; bottom: 16px; font-family: var(--display); font-size: .82rem; font-weight: 600; color: #14284B; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: .3em .85em; }

/* Opening: copy on the left, a large scene bleeding to the right edge. */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; min-height: min(78vh, 760px); }
.hero-copy { display: grid; gap: 1.3rem; align-content: center; padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4rem) clamp(2rem, 5vw, 4rem) max(20px, calc((100vw - var(--maxw)) / 2 + 20px)); }
.hero h1 { font-size: clamp(2.2rem, 3.7vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; }
.hero-lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.hero-status { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .92rem; color: var(--muted); }
.hero-media { position: relative; min-height: 420px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 2rem 20px 1.75rem; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Statement band */
.statement { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem); text-align: center; }
.statement h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; }
.statement-lead { font-size: 1.2rem; color: var(--muted); max-width: 54ch; margin: 1rem auto 0; }
.statement-facts { list-style: none; padding: 0; margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
.statement-facts li { display: grid; gap: .25rem; padding: .4rem 1rem; border-left: 1px solid var(--line); }
.statement-facts li:first-child { border-left: 0; }
.statement-facts b { font-family: var(--display); font-size: 1.15rem; }
.statement-facts span { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .statement-facts { grid-template-columns: 1fr; gap: .8rem; } .statement-facts li { border-left: 0; } }

/* What is BrightPath */
.what { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.what-media { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; align-items: end; }
.what-render { background: radial-gradient(80% 70% at 50% 60%, #E7EEFC 0%, #F3EEE5 70%); border-radius: 28px; padding: 1.5rem 1rem .8rem; display: grid; gap: .5rem; justify-items: center; }
.what-render img { max-height: 520px; width: auto; }
.what-render figcaption, .what-photo figcaption { font-size: .85rem; color: var(--muted); }
.what-photo { display: grid; gap: .6rem; }
.what-photo img { border-radius: 20px; width: 100%; aspect-ratio: 3 / 4.6; object-fit: cover; }
.what-copy { display: grid; gap: 1.1rem; }
.what-sub { font-size: 1.05rem; margin-top: .5rem; }
.what-list { padding-left: 1.2rem; display: grid; gap: .45rem; }
@media (max-width: 900px) { .what { grid-template-columns: 1fr; } }

/* Learning experiences: tabs, one large scene and its explanation. */
.exp-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.025em; margin: .6rem 0 1.6rem; }
.exp-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.exp-tabs button { font: inherit; font-family: var(--display); font-weight: 600; font-size: 1.02rem; min-height: 48px; padding: 0 1.4rem; border-radius: 10px; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; }
.exp-tabs button span { color: var(--muted); margin-right: .35rem; }
.exp-tabs button[aria-selected="true"] { background: var(--blue); color: var(--on-blue); }
.exp-tabs button[aria-selected="true"] span { color: inherit; opacity: .8; }
.exp-panels { display: grid; gap: clamp(3rem, 6vw, 4rem); }
.exp { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.exp-media { position: relative; }
.exp-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; }
.exp-copy { display: grid; gap: 1rem; }
.exp-label { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-family: var(--display); font-weight: 600; color: var(--muted); }
.exp-copy h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
.exp-copy > p:not(.exp-label):not(.exp-example) { font-size: 1.08rem; }
.exp-example { color: var(--muted); }
.exp-example span::after { content: " / "; }
.exp-more { margin-top: 1.6rem; }
/* With JS (home.js): one scene at a time, crossfading as the tab changes. */
.exp-js .exp-panels { gap: 0; }
.exp-js .exp[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .exp-js .exp:not([hidden]) { animation: exp-in .5s ease; } }
@keyframes exp-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) { .exp { grid-template-columns: 1fr; } }

/* Activity flow: icons and short text, no boxes. */
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow li { display: grid; gap: .6rem; align-content: start; padding: 0 1.25rem; border-left: 1px solid var(--line); }
.flow li:first-child { border-left: 0; padding-left: 0; }
.flow-ico { width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; background: radial-gradient(circle at 70% 60%, var(--blue-soft) 0 40%, transparent 41%); }
.flow h3 { font-size: 1.12rem; }
.flow h3 span { color: var(--blue); margin-right: .25rem; }
.flow p { color: var(--muted); font-size: .98rem; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } .flow li:nth-child(odd) { border-left: 0; padding-left: 0; } }
@media (max-width: 600px) { .flow { grid-template-columns: 1fr; } .flow li { border-left: 0; padding-left: 0; } }

/* Skills: four columns separated by rules. */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.skill { display: grid; gap: .5rem; align-content: start; padding-top: 1.1rem; border-top: 3px solid var(--blue); }
.skill:nth-child(2) { border-color: #E8735A; }
.skill:nth-child(3) { border-color: var(--honey); }
.skill:nth-child(4) { border-color: #5E9C6A; }
.skill-sub { font-family: var(--display); font-size: .92rem; color: var(--muted); }
.skill p:not(.skill-sub) { font-size: .98rem; }
.skill .status { justify-self: start; margin-top: .3rem; }
@media (max-width: 1000px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .skills { grid-template-columns: 1fr; } }

/* Split: explore on a soft blue field, status on the page colour. */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-explore { background: linear-gradient(160deg, #DCE8FB 0%, #C9DBF5 100%); display: grid; grid-template-columns: minmax(140px, .7fr) 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem) max(20px, calc((100vw - var(--maxw)) / 2 + 20px)); }
.split-explore img { max-height: 380px; width: auto; justify-self: center; }
.split-explore > div { display: grid; gap: 1rem; justify-items: start; }
.split-explore h2, .split-status h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: #14284B; }
.split-explore p { color: #23385E; }
.split-explore .btn-secondary { color: #14284B; border-color: #14284B; }
.split-explore .btn-secondary:hover { background: #14284B; color: #FFFFFF; }
.split-explore .muted { color: #3D5175; font-style: italic; }
.split-status { padding: clamp(2.5rem, 5vw, 4rem) max(20px, calc((100vw - var(--maxw)) / 2 + 20px)) clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem); display: grid; gap: 1.2rem; align-content: center; }
.split-status h2 { color: var(--ink); }
.status-rows { list-style: none; padding: 0; display: grid; }
.status-rows li { display: grid; grid-template-columns: 11.5rem 1fr; gap: 1rem; align-items: baseline; padding: .95rem 0; border-top: 1px solid var(--line); }
.status-rows .status { justify-self: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } .split-explore, .split-status { padding-inline: 20px; } }
@media (max-width: 560px) { .status-rows li { grid-template-columns: 1fr; gap: .4rem; } .split-explore { grid-template-columns: 1fr; } .split-explore img { max-height: 260px; } }

/* Adult roles: four columns with a thin rule. */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.role { display: grid; gap: .5rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line); }
.role p { color: var(--muted); font-size: .98rem; }
@media (max-width: 1000px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .roles { grid-template-columns: 1fr; } }

/* About and FAQ side by side */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-copy { display: grid; gap: 1rem; }
.principles { list-style: none; padding: 0; display: grid; gap: .7rem; margin-top: .4rem; }
.principles li { padding-left: 1rem; border-left: 3px solid var(--honey); }
.faq { display: grid; gap: 1rem; }
.faq-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.faq-list { display: grid; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 1rem 0; font-family: var(--display); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 48px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 1.1rem; color: var(--muted); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* Closing band and contact */
.contact { background: #14284B; color: #E8EEF8; padding-block: clamp(3rem, 7vw, 5rem); }
.contact h2 { color: #FFFFFF; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; max-width: 22ch; }
.contact .lede, .contact .muted { color: #C9D4E8; }
.contact a:not(.btn) { color: #A9C4FF; }
.contact .btn-primary { background: #5B8DEF; color: #0B1730; }
.contact .btn-primary:hover { background: #A9C4FF; color: #0B1730; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-grid > div:first-child { display: grid; gap: 1rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-card { background: var(--surface); color: var(--ink); border-radius: 18px; padding: clamp(1.2rem, 3vw, 1.8rem); display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-family: var(--display); font-weight: 600; font-size: .95rem; }
.hint { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: .65rem .8rem; min-height: 46px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); }
[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .9rem; min-height: 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: .85rem 1rem; font-size: .95rem; background: var(--honey-soft); color: var(--ink); border: 1px solid var(--honey); }
.notice-ok { background: var(--sage); border-color: var(--ok); }
.notice-error { background: var(--surface); border-color: var(--danger); }
.notice h3 { font-size: 1rem; margin-bottom: .25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-block: 2.5rem; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: .98rem; color: var(--ink); margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Text pages (research, privacy, 404) */
.prose { display: grid; gap: 1rem; max-width: 72ch; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { margin-top: 1.25rem; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.prose ul { display: grid; gap: .4rem; padding-left: 1.25rem; }
.pending { background: var(--honey-soft); border-radius: 6px; padding: 0 .35em; font-weight: 700; }
.refs { list-style: none; padding: 0 !important; display: grid; gap: 1rem; }
.refs li { display: grid; gap: .3rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.refs .principle { font-family: var(--display); font-weight: 600; }
.refs cite { font-style: normal; color: var(--muted); font-size: .95rem; }
.refs .supports { font-size: .95rem; }

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

/* Location cues and direct routes remain available on every page. */
.breadcrumbs { display:flex; flex-wrap:wrap; gap:.6rem; padding-block:16px; font-size:.9rem; color:var(--muted); }
.breadcrumbs a { color:var(--ink); }
.page-tools { position:fixed; bottom:max(14px,env(safe-area-inset-bottom)); right:16px; left:16px; z-index:25; display:flex; justify-content:space-between; align-items:flex-end; pointer-events:none; gap:12px; }
.page-tools > * { pointer-events:auto; }
.back-top,.section-menu summary { display:block; border:1px solid #163858; border-radius:24px; padding:10px 16px; min-height:44px; background:#fff; color:#102d4e; font-size:.88rem; font-weight:700; box-shadow:0 3px 14px #16385820; cursor:pointer; text-decoration:none; }
.back-top[hidden] { display:none; }
.section-menu { position:relative; }
.section-menu summary::after { content:' +'; }
.section-menu[open] summary::after { content:' −'; }
.section-menu-links { position:absolute; bottom:calc(100% + 8px); left:0; width:min(285px,calc(100vw - 32px)); max-height:min(65vh,560px); overflow:auto; padding:8px; background:white; border:1px solid #b5c8d4; border-radius:16px; box-shadow:0 8px 32px #16385825; }
.section-menu-links a { display:block; padding:11px 12px; min-height:44px; color:#173858; border-radius:8px; text-decoration:none; }
.section-menu-links a:hover,.section-menu-links a[aria-current] { background:#e1f0eb; color:#102d4e; }
.site-footer { padding-bottom:90px; }

/* Original header identity; the painted artwork remains in About. */
.about-brand-art { width:100%; height:auto; border-radius:16px; margin-block:8px; }
.site-header .brand { width:224px; min-height:92px; flex-shrink:0; }
.site-header .brand-mark { width:60px; height:60px; }
.site-header .brand-mark img { width:54px; height:54px; }
.site-header.is-compact .wrap { padding-block:4px; }
.site-header.is-compact .brand { min-height:44px; }
.site-header.is-compact .brand-mark { display:none; }
.site-header { overflow-anchor:none; }
@media(max-width:600px) {
 .site-header .brand { width:190px; min-height:78px; }
 .site-header .brand-mark { width:44px; height:44px; }
 .site-header .brand-mark img { width:38px; height:38px; }
 .site-header .brand-name { font-size:1.05rem; }
}
/* Opening the mobile menu must not shift the scroll position or resize scenes. */
.site-header.nav-collapsible.nav-open .site-nav { position:absolute; top:100%; left:0; right:0; width:100%; padding:12px 20px 20px; max-height:calc(100dvh - var(--header-h,72px)); overflow-y:auto; background:var(--bg); border-bottom:1px solid var(--line); box-shadow:0 10px 20px #14284b18; }
/* Keep the viewport stable when the sticky identity or mobile menu changes. */
body { overflow-anchor:none; }

/* Blend the original white-backed mark into every selectable page color. */
.site-header .brand-mark { background:transparent; border:0; border-radius:0; }
.site-header .brand-mark img { mix-blend-mode:multiply; }
.site-header .brand-name small { font-size:.5em; letter-spacing:.03em; text-transform:none; }
.site-header.is-compact .brand-name small { display:inline; margin-left:.5em; white-space:nowrap; }
