/* ==========================================================================
   Flixal — site styles
   The system comes from the logo: a purple tile, an orange F built from
   round-capped bars, and a mint half-pill tab. Outfit throughout, light page,
   flat colour. Light only.
   ========================================================================== */

:root {
  /* Logo palette */
  --purple: #8D55AD; --purple-700: #7A4699; --purple-ink: #4E2A66; --purple-wash: #F3ECF8; --purple-line: #E2D5EC;
  --orange: #FFAE56; --orange-hover: #FFA23F; --orange-ink: #9A5512; --orange-wash: #FFF1E0; --orange-line: #FFDDB5;
  --mint: #A1E4A9; --mint-hover: #8FDA98; --mint-ink: #1F6B3A; --mint-wash: #E6F7E8; --mint-line: #C6EECB;
  --paper: #FBF9FD; --card: #FFFFFF; --ink: #1B1326; --ink-2: #5A5068; --ink-3: #776D87; --line: #E6DEEF; --line-strong: #CBBFDA;

  /* Names the page components use, mapped onto the palette above */
  --purple-deep: var(--purple-700); --purple-dark: var(--purple-ink); --purple-pale: var(--purple-line); --purple-bg: var(--purple-wash);
  --orange-dark: var(--orange-ink); --orange-pale: var(--orange-line); --orange-bg: var(--orange-wash);
  --green: var(--mint); --green-dark: var(--mint-ink); --green-pale: var(--mint-line); --green-bg: var(--mint-wash);
  --bg: var(--paper); --bg-card: var(--card); --bg-elevated: #F0ECF5;
  --text: var(--ink); --text-muted: var(--ink-2); --text-dim: var(--ink-3);
  --border: var(--line); --border-strong: var(--line-strong);
  --card-shadow: 0 2px 12px rgba(141,85,173,.05);
  --card-shadow-hover: 0 14px 40px rgba(141,85,173,.10);

  /* Type scale */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --h1: clamp(2.75rem, 1.3rem + 5vw, 6.25rem);
  --h2: clamp(2rem, 1.35rem + 2.4vw, 3.5rem);
  --h3: clamp(1.35rem, 1.12rem + .8vw, 1.8rem);
  --lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);

  /* Layout */
  --container: 1240px;
  --gutter: max(clamp(20px, 4vw, 48px), env(safe-area-inset-left), env(safe-area-inset-right));
  --section: clamp(80px, 10vw, 148px);
  --nav-h: 72px;
  --r: 16px; --r-m: 22px; --r-l: 32px; --r-xl: 44px;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: linear(0, .034 2.1%, .138 4.4%, .58 12.4%, .82 17.6%, .957 22.4%, 1.04 27.4%, 1.075 31.9%, 1.08 35.4%, 1.067 40.2%, 1.018 51.3%, .997 61.5%, .992 70.2%, 1);
  color-scheme: light;
  interpolate-size: allow-keywords;
}
/* Cross-fade between pages where the browser supports it */
@view-transition { navigation: auto; }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 20px); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: .95; letter-spacing: -.045em; }
h2 { font-size: var(--h2); line-height: .98; letter-spacing: -.04em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-weight: 700; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.nav :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top)); }

/* Inline links: underlined, with a few px of extra tap area that does not move the text (hit slop) */
.note a, .faq__a a, .gb-update a { color: var(--purple-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; padding-block: 8px; margin-block: -8px; }
/* Hover styles only where there is real hover: on touch screens they stick after a tap */
@media (hover: hover) { .note a:hover, .faq__a a:hover, .gb-update a:hover { color: var(--purple); } }

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */
.section-head { text-align: center; max-width: 860px; margin: 0 auto clamp(36px, 4.5vw, 56px); }
.section-title { display: inline-block; position: relative; padding-bottom: 16px; margin-bottom: 18px; color: var(--ink); }
.section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 120px); height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--purple) 0 34%, var(--orange) 34% 67%, var(--mint) 67% 100%); }  /* three flat colour blocks, no fade */
.section-sub { font-size: var(--lead); color: var(--ink-2); line-height: 1.45; }
.sub-title { font-size: var(--h3); margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   Buttons and tags
   -------------------------------------------------------------------------- */
.btn { --r: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 0; border-radius: var(--r); font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out); }
.btn:active { transform: scale(.97); transition-duration: .08s; }   /* feedback on press, not on release */
.btn--orange { background: var(--orange); color: var(--ink); }
@media (hover: hover) { .btn--orange:hover { background: var(--orange-hover); } }
.btn--purple { background: var(--purple); color: #fff; }
@media (hover: hover) { .btn--purple:hover { background: var(--purple-700); } }
.btn--green { background: var(--mint); color: var(--ink); }
@media (hover: hover) { .btn--green:hover { background: var(--mint-hover); } }
.btn--on-purple { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
@media (hover: hover) { .btn--on-purple:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px #fff; } }
.btn--sm { --r: 13px; min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.tag { --r: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--r); font-size: .875rem; font-weight: 500; line-height: 1; white-space: nowrap; background: var(--purple-wash); color: var(--ink-2); }
.tag--purple { background: var(--purple-line); color: var(--purple-ink); }
.tag--orange { background: var(--orange-wash); color: var(--orange-ink); }
.tag--green { background: var(--mint-wash); color: var(--mint-ink); }
.tag svg, .tag img { width: 14px; height: 14px; flex: none; }

/* --------------------------------------------------------------------------
   Top bar: purple, and part of the hero tile while you are at the top
   -------------------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; padding-top: env(safe-area-inset-top); background: var(--purple); color: #fff; transition: box-shadow .25s var(--ease-out); }
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(27,19,38,.16); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-right: auto; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -.035em; }
.nav__logo { width: 42px; height: 42px; margin-left: -6px; }
.nav__links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 500; transition: background-color .2s var(--ease-out); }
@media (hover: hover) { .nav__links a:hover { background: rgba(255,255,255,.12); } }
/* The current section gets a small mint tab, like the logo's, that slides between links (js/site.js) */
.nav__marker { position: absolute; left: 0; bottom: 2px; width: 22px; height: 6px; border-radius: 0 3px 3px 0; background: var(--mint); opacity: 0; pointer-events: none; transition: transform .45s var(--spring), opacity .2s; }
.nav__marker.is-on { opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { --r: 14px; display: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--r); background: rgba(255,255,255,.14); color: #fff; cursor: pointer; align-items: center; justify-content: center; touch-action: manipulation; }
@media (hover: hover) { .nav__toggle:hover { background: rgba(255,255,255,.22); } }
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle .ico-close, .nav__toggle[aria-expanded="true"] .ico-menu { display: none; }
.nav__toggle[aria-expanded="true"] .ico-close { display: block; }
/* Without JS the menu cannot open: hide its toggle and keep "Careers" in the bar (the footer has every link) */
html:not(.js) .nav__toggle { display: none; }

/* --------------------------------------------------------------------------
   Hero: the logo tile at page scale
   -------------------------------------------------------------------------- */
.hero { --mark: min(54vw, 820px, 82svh); position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: min(80svh, 860px); padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(32px, 5vh, 80px)) 0 clamp(48px, 8vh, 104px); background: var(--purple); color: #fff; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.hero__inner { position: relative; z-index: 1; }
/* Headline also capped by viewport height so the hero stays short of the fold on wide, short screens */
.hero__title { max-width: 9.5ch; font-size: min(var(--h1), max(2.75rem, 11svh)); line-height: .9; letter-spacing: -.05em; }
.hero__lede { max-width: 33ch; margin-top: clamp(22px, 3.2vh, 36px); font-size: var(--lead); line-height: 1.45; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4.5vh, 48px); }
/* The mark is drawn in the logo's 500-unit box: the F spans x 100-400, y 50-450, the tab y 200-300.
   Placed so the arm sits level with the second headline line, the caps stay clear of the edge
   and only the stem runs off the bottom. */
.hero__mark { position: absolute; z-index: 0; width: var(--mark); aspect-ratio: 1; right: calc(var(--mark) * -.14); top: calc(50% - var(--mark) * .3); pointer-events: none; }
.hero__mark path { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .hero__mark .mark-f { transform-origin: 50% 100%; animation: f-rise 1.05s var(--spring) .15s both; }
  .hero__mark .mark-tab { transform-origin: 0 50%; animation: tab-out .8s var(--spring) .75s both; }
}
@keyframes f-rise { from { transform: translateY(42%); } to { transform: none; } }
@keyframes tab-out { from { transform: scaleX(0); } to { transform: none; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.page-top { padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(48px, 6vw, 80px)); }
.section--alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* application page: the Google Form's sections as cards, in the site's own form style */
.apply { padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(36px, 5vw, 60px)) 0 var(--section); }
.apply__inner { max-width: 760px; }
.apply__back { display: inline-block; padding: 12px 0; margin: -12px 0 6px; font-size: .9375rem; font-weight: 600; color: var(--purple-ink); }
@media (hover: hover) { .apply__back:hover { text-decoration: underline; text-underline-offset: 2px; } }
.apply__title { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem); margin-bottom: 14px; }
.apply__lede { color: var(--ink-2); font-size: var(--lead); line-height: 1.45; margin-bottom: 36px; }
.apply__form { display: grid; gap: 22px; }
.apply-card { --r: 22px; display: grid; gap: 26px; padding: clamp(22px, 4vw, 34px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.apply-card__title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 800; }
.apply-card__step { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--purple-line); color: var(--purple-ink); font-size: .9rem; }
.apply .field input, .apply .field textarea { background: var(--paper); }
.apply .field label, .field--choice legend { font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.field--choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.field--choice legend { padding: 0; margin-bottom: 8px; }
.field__help { font-size: .875rem; color: var(--ink-2); line-height: 1.55; margin-top: -2px; }
.field__help a { color: var(--purple-ink); text-decoration: underline; text-underline-offset: 2px; }
.req { color: var(--purple); }
.opt { font-weight: 400; color: var(--ink-3); font-size: .9em; }
.choices { display: grid; gap: 8px; }
.choices--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); }
.choice { --r: 12px; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); font-size: .95rem; cursor: pointer; transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out); }
@media (hover: hover) { .choice:hover { border-color: var(--line-strong); } }
.choice:has(input:checked) { border-color: var(--purple); background: var(--purple-wash); }
.choice input[type=radio], .choice input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; flex: none; accent-color: var(--purple); }
.choice--other { grid-column: 1 / -1; }
.choice--other span { flex: none; }
.choice .choice__other { flex: 1; min-width: 0; min-height: 36px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 1rem; color: var(--ink); }
.choice .choice__other:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(141,85,173,.2); }
.field--choice.is-invalid .choice { border-color: #E3A39C; }
.apply__foot { display: grid; justify-items: center; gap: 14px; margin-top: 6px; }
.apply__foot .form__status { width: 100%; }
.apply__done { --r: 22px; text-align: center; padding: clamp(28px, 5vw, 48px); border-radius: var(--r); background: var(--card); border: 1px solid var(--mint); box-shadow: var(--card-shadow); }
.apply__done:focus { outline: none; }
.apply__done h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 12px; }
.apply__done p { color: var(--ink-2); margin: 0 auto 24px; max-width: 46ch; line-height: 1.7; }

/* privacy page: one readable column of long-form text */
.legal { padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(40px, 6vw, 72px)) 0 var(--section); }
.legal__inner { max-width: 760px; }
.legal__title { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem); margin-bottom: 10px; }
.legal__updated { color: var(--ink-3); font-size: .9375rem; margin-bottom: 32px; }
.legal h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); line-height: 1.1; letter-spacing: -.025em; margin: 48px 0 14px; }
.legal h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.3em; margin: 12px 0; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--purple-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal__summary, .legal__callout { --r: 16px; padding: 20px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.legal__summary h2 { margin-top: 0; font-size: 1.25rem; }
.legal__callout { margin: 16px 0; border-color: var(--purple-line); }
/* 404 page */
.notfound { min-height: 70vh; display: flex; align-items: center; padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(40px, 6vw, 72px)) 0 var(--section); text-align: center; }
.notfound__inner { max-width: 720px; }
.notfound__code { font-size: clamp(4.5rem, 2rem + 9vw, 8rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--purple); margin-bottom: 16px; }
.notfound__title { font-size: var(--h2); margin-bottom: 16px; }
.notfound__lede { color: var(--ink-2); font-size: var(--lead); line-height: 1.45; margin: 0 auto 32px; max-width: 40ch; }
.notfound .hero__cta { justify-content: center; margin-top: 0; }
.note { margin-top: 32px; text-align: center; color: var(--ink-2); line-height: 1.7; }

/* --------------------------------------------------------------------------
   About: his layout. Big title beside the lede, mission and vision as ruled
   rows, values under colour bars, leaders as small photo tiles, the map
   beside its caption, and giving with the figure in a mint block.
   -------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(24px, 4vw, 64px); align-items: end; }
.about__title { max-width: 14ch; font-size: clamp(2.2rem, 1.35rem + 3.2vw, 4.25rem); line-height: .95; letter-spacing: -.045em; }
.about__lede { max-width: 30ch; padding-bottom: .3em; font-size: var(--lead); line-height: 1.45; color: var(--ink-2); }

.statements { margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.statement { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; padding-block: clamp(28px, 3.4vw, 44px); border-bottom: 1px solid var(--line); }
.statement dt { padding-top: .35em; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--purple-ink); }
.statement dd { max-width: 32ch; font-size: clamp(1.1rem, 1.02rem + .35vw, 1.35rem); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }

.values-title { margin-top: clamp(80px, 10vw, 136px); font-size: var(--h3); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); margin-top: clamp(28px, 3vw, 40px); }
.value::before { content: ""; display: block; height: 16px; margin-bottom: clamp(22px, 2.4vw, 32px); border-radius: 0 8px 8px 0; background: var(--c); }
.value--purple { --c: var(--purple); } .value--orange { --c: var(--orange); } .value--mint { --c: var(--mint); }
.value h4 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.85rem); letter-spacing: -.035em; line-height: 1.02; }
.value p { max-width: 34ch; margin-top: 14px; color: var(--ink-2); }
@media (min-width: 901px) {
  .values { grid-template-rows: repeat(3, auto); row-gap: 0; }
  .value { display: grid; grid-row: span 3; grid-template-rows: subgrid; }   /* text starts level even when a heading wraps */
}

/* Leaders: photo tiles that share the full width of the row (three per row on phones) */
.leaders__head p { max-width: 34ch; margin-top: 12px; font-size: var(--lead); line-height: 1.45; color: var(--ink-2); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px clamp(16px, 2vw, 28px); margin-top: clamp(28px, 3vw, 40px); }
.person__photo { --r: 22px; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--purple-wash); }
.person h4 { margin-top: 14px; font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.person p { margin-top: 3px; font-size: .9375rem; line-height: 1.35; color: var(--ink-2); }

/* Global team: caption beside the map */
.remote { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin: clamp(88px, 10vw, 144px) 0 0; }
.remote__text h3 { max-width: 12ch; font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.85rem); line-height: 1; letter-spacing: -.04em; }
.remote__text p { max-width: 32ch; margin-top: 18px; font-size: var(--lead); line-height: 1.45; color: var(--ink-2); }
.remote__map { width: 100%; height: auto; }

/* Giving: a white card with the figure in a mint block, like the logo's tab beside the F */
.giving { --r: var(--r-l); display: grid; grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr); margin-top: clamp(80px, 10vw, 136px); overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.giving__figure { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: clamp(28px, 3.5vw, 48px) 24px; background: var(--mint); color: var(--ink); text-align: center; }
.giving__num { font-size: clamp(3rem, 2rem + 2.6vw, 4.5rem); font-weight: 800; line-height: .95; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.giving__text { display: grid; align-content: center; justify-items: start; gap: 10px; padding: clamp(28px, 4vw, 56px); }
.giving__text h4 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.giving__text p { max-width: 34ch; font-size: clamp(1.1rem, 1.02rem + .3vw, 1.3rem); font-weight: 500; line-height: 1.35; letter-spacing: -.015em; }
.giving__text .btn { margin-top: 8px; }

/* --------------------------------------------------------------------------
   Giving Back page: summary tiles, steps, updates
   -------------------------------------------------------------------------- */
.gb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.gb-stat { --r: 18px; display: grid; gap: 6px; padding: 24px 26px; border-radius: var(--r); border: 1px solid transparent; text-align: center; }
.gb-stat--orange { background: var(--orange-wash); border-color: var(--orange-line); }
.gb-stat--purple { background: var(--purple-wash); border-color: var(--purple-line); }
.gb-stat--green { background: var(--mint-wash); border-color: var(--mint-line); }
.gb-stat__label { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.gb-stat__value { font-size: 1.35rem; font-weight: 800; letter-spacing: -.015em; }
.gb-stat--orange .gb-stat__value { color: var(--orange-ink); } .gb-stat--purple .gb-stat__value { color: var(--purple-ink); } .gb-stat--green .gb-stat__value { color: var(--mint-ink); }
.gb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.gb-step { --r: 22px; padding: 28px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.gb-step__num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--purple-line); color: var(--purple-ink); font-weight: 800; margin-bottom: 16px; }
.gb-step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.gb-step p { color: var(--ink-2); line-height: 1.7; }
.gb-updates { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.gb-update { --r: 16px; padding: 22px 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--orange); box-shadow: var(--card-shadow); }
.gb-update__date { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.gb-update h3 { font-size: 1.2rem; margin-bottom: 6px; }
.gb-update p { color: var(--ink-2); line-height: 1.7; }
.gb-update p + p { margin-top: 10px; }

/* --------------------------------------------------------------------------
   Careers page: his open-roles band. Heading beside the intro, each role a
   card with title, tags and pay in the summary, plus a +/- button.
   -------------------------------------------------------------------------- */
/* Plain sections that follow each other share one gap rather than two */
.section:not(.section--alt):not(.section--band) + .section:not(.section--alt):not(.section--band) { padding-top: 0; }
.section--band { margin: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(12px, 1.6vw, 24px)) clamp(8px, 1.4vw, 20px) clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 72px); border-radius: var(--r-xl); background: var(--purple-wash); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px clamp(24px, 4vw, 64px); align-items: end; max-width: none; margin: 0; text-align: left; }
.section-head--split h1 { font-size: var(--h2); line-height: .98; letter-spacing: -.04em; }
.section-head--split p { max-width: 34ch; padding-bottom: .3em; font-size: var(--lead); line-height: 1.45; color: var(--ink-2); }
.section--band .statements { margin-top: clamp(28px, 3.5vw, 48px); }
.section--band .note { text-align: left; }
.section--band .note + .note { margin-top: 12px; }

.roles { display: grid; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.role { --r: var(--r-m); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s var(--ease-out); }
.role[open] { border-color: var(--purple-line); }
@media (hover: hover) { .role:hover { border-color: var(--purple-line); } }
.role summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "title pay plus" "tags pay plus"; align-items: center; gap: 10px 28px; min-height: 96px; padding: 22px 22px 22px 30px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.role summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.role__title { grid-area: title; font-size: clamp(1.125rem, 1.02rem + .3vw, 1.3rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.role__tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 6px; }
.role__pay { grid-area: pay; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.role summary .plus { grid-area: plus; }
/* Focus rings the whole card, following its corners (browsers without :has() keep the plain ring) */
@supports selector(:has(a)) {
  .role summary:focus-visible { outline: none; }
  .role:has(> summary:focus-visible) { outline: 3px solid var(--purple); outline-offset: 3px; }
}
.role__body { padding: 4px 30px 34px; }
.role__intro { max-width: 60ch; font-size: 1.0625rem; line-height: 1.55; }
.role__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; margin-top: 30px; }
.role__lists h4 { font-size: 1rem; font-weight: 700; letter-spacing: -.005em; }
.role__lists ul { margin-top: 12px; display: grid; gap: 10px; }
.role__lists li { position: relative; padding-left: 24px; color: var(--ink-2); line-height: 1.5; }
.role__lists li::before { content: ""; position: absolute; left: 0; top: .6em; width: 11px; height: 7px; border-radius: 0 4px 4px 0; background: var(--purple); }
.role__body .btn { margin-top: 32px; }

/* The +/- button used by roles and questions */
.plus { --r: 12px; position: relative; flex: none; width: 44px; height: 44px; border-radius: var(--r); background: var(--purple-wash); transition: background-color .25s var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; margin: -1.25px 0 0 -8px; border-radius: 2px; background: var(--purple-ink); transition: transform .35s var(--ease-out), background-color .25s; }
.plus::after { transform: rotate(90deg); }
@media (hover: hover) { summary:hover .plus { background: var(--purple-line); } }
details[open] > summary .plus { background: var(--purple); }
details[open] > summary .plus::before, details[open] > summary .plus::after { background: #fff; }
details[open] > summary .plus::after { transform: rotate(0deg); }

/* Open and close animate (and can be reversed mid-way) where the browser supports it */
@supports selector(::details-content) {
  .role::details-content, .faq::details-content { block-size: 0; overflow-y: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .role[open]::details-content, .faq[open]::details-content { block-size: auto; }
}

/* --------------------------------------------------------------------------
   Questions: sticky heading on the left, ruled list of questions on the right
   -------------------------------------------------------------------------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.faq-layout__head { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top) + 32px); }
.faq-layout__head h2 { font-size: var(--h2); line-height: .98; letter-spacing: -.04em; }
.faqs { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; padding: 16px 14px; margin-inline: -14px;   /* room for the focus ring; text stays put */ cursor: pointer; list-style: none; font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); font-weight: 600; line-height: 1.3; letter-spacing: -.012em; -webkit-tap-highlight-color: transparent; }
.faq summary:focus-visible { border-radius: 12px; }
.faq__a { max-width: 62ch; padding: 0 68px 28px 0; color: var(--ink-2); line-height: 1.7; }

/* --------------------------------------------------------------------------
   Contact: heading and intro on the left, the form in a white card
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.contact__head h2 { font-size: var(--h2); line-height: .98; letter-spacing: -.04em; }
.contact__head p { max-width: 28ch; margin-top: 18px; font-size: var(--lead); line-height: 1.45; color: var(--ink-2); }
.form { --r: var(--r-l); display: grid; gap: 22px; padding: clamp(24px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.form .field input, .form .field textarea { background: var(--paper); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: .9375rem; font-weight: 600; }
.field input, .field textarea { --r: 14px; width: 100%; min-height: 54px; padding: 14px 16px; border: 1.5px solid #948AA3;   /* 3:1 against the page (WCAG 1.4.11) */ border-radius: var(--r); background: var(--card); color: var(--ink); font: inherit; font-size: 1.0625rem; transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }  /* 16px+: no iOS zoom on focus */
.field textarea { resize: vertical; min-height: 168px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
@media (hover: hover) { .field input:hover, .field textarea:hover { border-color: #6F6580; } }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); background: #fff; box-shadow: 0 0 0 3px rgba(141,85,173,.2); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #C7443A; box-shadow: 0 0 0 3px rgba(199,68,58,.12); }
.field__error { display: none; font-size: .9375rem; color: #A8362D; }
.field.is-invalid .field__error { display: block; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form__hint { font-size: .9375rem; color: var(--ink-2); }
.form__status { --r: 14px; font-size: 1rem; padding: 14px 16px; border-radius: var(--r); text-align: center; border: 1px solid var(--line-strong); }
.form__status.is-ok { border-color: var(--mint); background: var(--mint-wash); color: var(--mint-ink); }
.form__status.is-err { border-color: #E3A39C; background: #FCEDEB; color: #A8362D; }

/* --------------------------------------------------------------------------
   Footer: the purple tile again, closing the page
   -------------------------------------------------------------------------- */
.footer { padding: clamp(48px, 6vw, 80px) 0 calc(28px + env(safe-area-inset-bottom)); background: var(--purple); color: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.75rem; letter-spacing: -.035em; }
.footer__logo { width: 50px; height: 50px; margin-left: -8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-right: -12px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 500; transition: background-color .2s var(--ease-out); }
@media (hover: hover) { .footer__links a:hover { background: rgba(255,255,255,.12); } }
.footer__copy { margin-top: clamp(32px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.24); font-size: .9375rem; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* --------------------------------------------------------------------------
   Continuous (squircle) corners where the browser can draw them
   -------------------------------------------------------------------------- */
@supports (corner-shape: squircle) {
  .btn, .tag, .nav__toggle, .field input, .field textarea, .choice, .form__status,
  .apply-card, .apply__done, .legal__summary, .legal__callout, .giving, .person__photo,
  .gb-stat, .gb-step, .gb-update, .plus, .role, .form { corner-shape: squircle; border-radius: calc(var(--r) * 1.6); }
  .section--band { corner-shape: squircle; border-radius: calc(var(--r-xl) * 1.6); }
  .hero { corner-shape: squircle; border-radius: 0 0 calc(var(--r-xl) * 1.6) calc(var(--r-xl) * 1.6); }
  .footer { corner-shape: squircle; border-radius: calc(var(--r-xl) * 1.6) calc(var(--r-xl) * 1.6) 0 0; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero { --mark: min(58vw, 82svh); }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  html:not(.js) .nav__actions .btn { display: inline-flex; }
  .hero { --mark: min(70vw, 480px, 36svh); align-items: start; min-height: 0; padding-bottom: calc(var(--mark) * .68); }
  .hero__title { max-width: 10ch; }
  .hero__mark { top: auto; bottom: calc(var(--mark) * -.3); right: calc(var(--mark) * -.12); }
  .statement { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .statement dt { padding-top: 0; }
  .values { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .about, .remote, .faq-layout, .contact, .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .faq-layout__head { position: static; }
}
@media (max-width: 800px) {
  .gb-stats, .gb-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .giving { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
  .person__photo { --r: 16px; }
  .person h4 { margin-top: 8px; font-size: .9375rem; }
  .person p { font-size: .8125rem; }
  .role summary { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title plus" "tags tags" "pay pay"; padding: 20px 16px 20px 20px; }
  .role__body { padding: 4px 20px 28px; }
  .role__lists { grid-template-columns: minmax(0, 1fr); }
  .faq__a { padding-right: 0; }
  .faq summary { padding-inline: 10px; margin-inline: -10px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .notfound .hero__cta .btn { flex: 1 1 auto; }
  .footer__links { margin-right: 0; margin-left: -12px; }
}

/* --------------------------------------------------------------------------
   Forced colours (Windows high contrast): the system repaints backgrounds,
   so redraw what is drawn with them (bullets, markers, button edges)
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
  .btn, .nav__toggle, .sheet .sheet__cta { border: 2px solid currentColor; }
  .plus::before, .plus::after, .role__lists li::before, .section-title::after, .value::before, .nav__marker, .sheet__handle::before, .sheet__links a.is-active::before { forced-color-adjust: none; background: CanvasText; }
  details[open] > summary .plus::before, details[open] > summary .plus::after { background: CanvasText; }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .role::details-content, .faq::details-content { transition: none !important; }
  .nav__marker { transition: opacity .2s; }
  .btn, .plus::before, .plus::after { transition: none; }
}
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
