/*
 * Populus website v3: shared design system.
 * Mostly cream, ink for the words, one accent (magenta). The ownable device comes from the
 * logo: the p is a person whose arm wraps around. A magenta stroke with a dot "wraps around"
 * the moments that matter. Ink appears in two places only: the open How we work column and the footer.
 */
@font-face { font-family: 'General Sans'; src: url('fonts/GeneralSans-Variable.woff2') format('woff2'); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('fonts/GeneralSans-VariableItalic.woff2') format('woff2'); font-weight: 200 700; font-style: italic; font-display: swap; }
.website-v9 {
  /* Colour: Populus brand palette only */
  --canvas: #FDFBF7;
  --surface: #FAF6F0;
  --sand: #F3ECDF;
  --track: #E7E0D3;
  --white: #FFFFFF;
  --ink: #14161B;
  --ink-2: #5C574D;
  --ink-3: #6E695F;
  --line: rgba(20, 22, 27, 0.10);
  --line-strong: rgba(20, 22, 27, 0.18);
  --magenta: #E5318A;
  --magenta-button: #DB2682;
  --magenta-text: #B81B68;
  --magenta-press: #9A1456;
  --tint: #F9E3EE;
  --tint-2: #FDF3F8;
  --night: #14161B;
  --on-night: #FDFBF7;
  --on-night-2: rgba(253, 251, 247, 0.7);
  --on-night-line: rgba(253, 251, 247, 0.14);

  /* Type */
  --display: 'General Sans', 'Hanken Grotesk', sans-serif;
  --body: 'Hanken Grotesk', sans-serif;
  --mono: 'Geist Mono', monospace;
  /* DESIGN.md scale_website: hero 88/44 · section 56/34 · title 28/22 · card title 20/18 · lead 19/17 · body 16 */
  --t-hero: clamp(44px, 6.1vw, 88px);
  --t-h2: clamp(34px, 3.9vw, 56px);
  --t-h3: clamp(22px, 1.95vw, 28px);
  --t-card: clamp(18px, 1.4vw, 20px);
  --t-lead: clamp(17px, 1.32vw, 19px);
  --t-body: 16px;
  --t-small: 14px;
  --t-label: 12px;

  /* Space and shape */
  --gutter: 48px;
  --max: 1312px;
  --section: clamp(96px, 10vw, 152px);
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-float: 0 32px 64px -36px rgba(20, 22, 27, 0.28), 0 10px 20px -12px rgba(20, 22, 27, 0.08);

  /* v9 layout: one spacing scale, section rhythm, grid gaps, hairlines (Labrina structure) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section-y: clamp(72px, 7.5vw, 112px);
  --head-gap: var(--s-7);
  --grid-gap: var(--s-6);
  --grid-gap-lg: var(--s-7);
  --rule: 1px solid var(--line);
  --rule-on-night: 1px solid var(--on-night-line);
  --t-statement: clamp(28px, 3vw, 44px);
  --t-fact: clamp(32px, 3.4vw, 48px);
  --measure: 34em;
  /* v9 page pieces (pages.css uses tokens only) */
  --page-top: clamp(120px, 12vw, 160px);
  --cols-h: clamp(110px, 15vw, 220px);
  --cols-gap: clamp(6px, 0.8vw, 12px);
  --r-sm: 10px;
  --icon-tile: 48px;
  --icon: 22px;
  --plus: 32px;
  --chip-h: 38px;
  --field-h: 52px;
  --btn-lg-h: 60px;
  --drop-w: 340px;
  --sheet-sub: 26px;
  --sheet-link: 40px;
  --t-quote: clamp(20px, 1.6vw, 24px);
  --t-faq: clamp(18px, 1.5vw, 22px);
  --t-input: 20px;
  --t-eyebrow: 15px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 1099px) { .website-v9 { --gutter: 32px; } }
@media (max-width: 699px) { .website-v9 { --gutter: 20px; --t-body: 16px; --head-gap: var(--s-6); } }

.website-v9 *, .website-v9 *::before, .website-v9 *::after { box-sizing: border-box; }
.website-v9 { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
.website-v9.lenis, .website-v9.lenis { height: auto; }
.website-v9 .lenis.lenis-smooth { scroll-behavior: auto !important; }
.website-v9 { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--body); font-size: var(--t-body); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
.website-v9 h1, .website-v9 h2, .website-v9 h3, .website-v9 h4, .website-v9 p, .website-v9 ol, .website-v9 ul, .website-v9 figure, .website-v9 blockquote, .website-v9 dl, .website-v9 dd { margin: 0; padding: 0; }
.website-v9 ol, .website-v9 ul { list-style: none; }
.website-v9 a { color: inherit; text-decoration: none; }
.website-v9 button, .website-v9 input, .website-v9 select, .website-v9 textarea { font: inherit; color: inherit; }
.website-v9 img { max-width: 100%; display: block; }
.website-v9 ::selection { background: var(--magenta); color: var(--white); }
.website-v9 :focus-visible { outline: 2px solid var(--magenta-text); outline-offset: 3px; border-radius: 6px; }
.website-v9 .on-ink :focus-visible { outline-color: var(--magenta); }
.website-v9 [hidden]:not(.pane) { display: none !important; }
.website-v9 .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.website-v9 .wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.website-v9 .section { padding-block: var(--section); }
.website-v9 .band-surface { background: var(--surface); }

/* The one faint glow (brand signature): magenta from the top left, behind page headers only */
.website-v9 .glow-head { position: relative; isolation: isolate; }
.website-v9 .glow-head::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto 0; height: min(900px, 100%); background: radial-gradient(70% 80% at 0% 0%, rgba(229, 49, 138, 0.08), transparent 70%); pointer-events: none; }

/* ---------- Type ---------- */
.website-v9 .hero-title, .website-v9 .h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; font-synthesis: none; }
.website-v9 .hero-title { font-size: var(--t-hero); letter-spacing: -0.03em; line-height: 1.02; }
.website-v9 .h2 { font-size: var(--t-h2); letter-spacing: -0.02em; line-height: 1.06; }
.website-v9 .h3 { font-family: var(--display); font-weight: 500; font-size: var(--t-h3); letter-spacing: -0.01em; line-height: 1.15; font-synthesis: none; }
.website-v9 .card-title { font-family: var(--display); font-weight: 500; font-size: var(--t-card); letter-spacing: -0.005em; line-height: 1.25; font-synthesis: none; }
/* The magenta italic word: hero and the final call to action only */
.website-v9 .accent { font-style: italic; color: var(--magenta); padding-right: 0.04em; }
.website-v9 .lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.website-v9 .body-2 { color: var(--ink-2); text-wrap: pretty; }
.website-v9 .label { font-family: var(--mono); font-weight: 500; font-size: var(--t-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.website-v9 .label-ex { color: var(--magenta-text); }
.website-v9 .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.website-v9 .kicker i { width: 10px; height: 10px; border-radius: 50%; background: var(--magenta); }

/* ---------- v9 layout primitives (tokens only: check.mjs scans up to the end marker) ---------- */
/* One 12-column grid. Dividers are hairlines, not boxes: no resting shadow, no card inside a card. */
.website-v9 .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); }
/* Head over 5 of the 12 columns, body over 7. Sized by the track, not by placing children,
   so the older .split in pages.css (still used by the area, about and book pages) keeps working. */
.website-v9 .split { display: grid; grid-template-columns: minmax(0, calc((100% - 11 * var(--grid-gap)) * 5 / 12 + 4 * var(--grid-gap))) minmax(0, 1fr); column-gap: var(--grid-gap); align-items: start; }
.website-v9 .cols-2, .website-v9 .cols-3, .website-v9 .cols-4, .website-v9 .cols-5 { display: grid; column-gap: var(--grid-gap); }
.website-v9 .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.website-v9 .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.website-v9 .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.website-v9 .cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.website-v9 .cols-2 > * + *, .website-v9 .cols-3 > * + *, .website-v9 .cols-4 > * + *, .website-v9 .cols-5 > * + * { border-inline-start: var(--rule); padding-inline-start: var(--grid-gap); }
.website-v9 .rule-top { border-block-start: var(--rule); padding-block-start: var(--s-5); }
.website-v9 .section-head { margin-block-end: var(--head-gap); }
.website-v9 .stack > * + * { margin-block-start: var(--s-4); }
.website-v9 .statement { font-family: var(--display); font-weight: 400; font-size: var(--t-statement); letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; font-synthesis: none; }
/* Metrics sit in one strip with hairlines between them, never as tiles */
.website-v9 .fact-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: var(--grid-gap); border-block: var(--rule); padding-block: var(--s-6); }
.website-v9 .fact-strip > * + * { border-inline-start: var(--rule); padding-inline-start: var(--grid-gap); }
.website-v9 .fact-value { font-family: var(--display); font-weight: 500; font-size: var(--t-fact); letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; font-synthesis: none; }
.website-v9 .fact-label { margin-block-start: var(--s-2); font-size: var(--t-small); color: var(--ink-2); max-width: 22em; text-wrap: pretty; }
.website-v9 .on-ink .cols-2 > *, .website-v9 .on-ink .cols-3 > *, .website-v9 .on-ink .cols-4 > *, .website-v9 .on-ink .cols-5 > *, .website-v9 .on-ink .fact-strip, .website-v9 .on-ink .fact-strip > * { border-color: var(--on-night-line); }
.website-v9 .on-ink .rule-top { border-block-start: var(--rule-on-night); }
.website-v9 .on-ink .fact-label { color: var(--on-night-2); }
@media (max-width: 899px) {
  .website-v9 .grid, .website-v9 .split, .website-v9 .cols-2, .website-v9 .cols-3, .website-v9 .cols-4, .website-v9 .cols-5 { grid-template-columns: minmax(0, 1fr); }
  .website-v9 .grid > * { grid-column: 1 / -1; }
  .website-v9 .split { row-gap: var(--head-gap); }
  .website-v9 .fact-strip { grid-auto-flow: row; grid-auto-columns: auto; padding-block: 0; }
  .website-v9 .cols-2 > * + *, .website-v9 .cols-3 > * + *, .website-v9 .cols-4 > * + *, .website-v9 .cols-5 > * + *, .website-v9 .fact-strip > * + * { border-inline-start: 0; padding-inline-start: 0; border-block-start: var(--rule); }
  .website-v9 .cols-2 > *, .website-v9 .cols-3 > *, .website-v9 .cols-4 > *, .website-v9 .cols-5 > *, .website-v9 .fact-strip > * { padding-block: var(--s-5); }
  .website-v9 .cols-2 > :first-child, .website-v9 .cols-3 > :first-child, .website-v9 .cols-4 > :first-child, .website-v9 .cols-5 > :first-child { padding-block-start: 0; }
  .website-v9 .cols-2 > :last-child, .website-v9 .cols-3 > :last-child, .website-v9 .cols-4 > :last-child, .website-v9 .cols-5 > :last-child { padding-block-end: 0; }
}
/* ---------- end v9 layout primitives ---------- */

/* ---------- Buttons ---------- */
.website-v9 .btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border: 0; border-radius: var(--r-pill); font-weight: 600; font-size: 16px; cursor: pointer; transition: transform 160ms var(--ease-out); }
.website-v9 .btn:active { transform: scale(0.97); }
.website-v9 .btn .arr { display: inline-block; transition: transform 300ms var(--ease-out); }
.website-v9 .btn-primary { background: var(--magenta-button); color: var(--white); box-shadow: 0 14px 28px -16px rgba(219, 38, 130, 0.7); }
.website-v9 .btn-primary::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--magenta-press); opacity: 0; transition: opacity 250ms var(--ease-out); }
.website-v9 .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.website-v9 .btn-ghost::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--white); opacity: 0; transition: opacity 250ms var(--ease-out); }
.website-v9 .btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .website-v9 .btn-primary:hover::before, .website-v9 .btn-ghost:hover::before { opacity: 1; } .website-v9 .btn:hover .arr { transform: translateX(4px); } }
.website-v9 .text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .website-v9 .text-link:hover { background-size: 100% 1.5px; } }

/* ---------- Nav ---------- */
.website-v9 .nav { position: fixed; z-index: 50; top: max(14px, env(safe-area-inset-top, 0px)); left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; transition: transform 300ms var(--ease-out); }
.website-v9 .nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.website-v9 .nav-bar { pointer-events: auto; width: min(calc(100% - 2 * var(--gutter)), 1120px); display: flex; align-items: center; gap: 24px; height: 62px; padding: 0 10px 0 22px; border-radius: var(--r-pill); background: rgba(253, 251, 247, 0.84); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 0 0 1px var(--line), 0 16px 36px -28px rgba(20, 22, 27, 0.35); }
.website-v9 .brand { display: inline-flex; align-items: center; }
.website-v9 .brand img { height: 24px; width: auto; }
.website-v9 .nav-links { display: flex; gap: 4px; margin-left: auto; }
.website-v9 .nav-links a { position: relative; padding: 8px 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color 200ms; }
.website-v9 .nav-links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1.5px; background: var(--magenta); transform: scaleX(0); transform-origin: right; transition: transform 250ms var(--ease-out); }
.website-v9 .nav-links a[aria-current="page"] { color: var(--ink); }
.website-v9 .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .website-v9 .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; } .website-v9 .nav-links a:hover { color: var(--ink); } }
.website-v9 .nav-menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.website-v9 .nav-menu span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: var(--ink); transition: transform 300ms var(--ease-out); }
.website-v9 .nav-menu[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.website-v9 .nav-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.website-v9 .nav-sheet { display: none; }
@media (max-width: 899px) {
  .website-v9 .nav-links, .website-v9 .nav-bar > .btn { display: none; }
  .website-v9 .nav-menu { display: block; }
  .website-v9 .nav-bar { height: 56px; }
  .website-v9 .nav-sheet { position: fixed; z-index: 49; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 96px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); background: var(--canvas); opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease-out), visibility 0s linear 300ms; }
  .website-v9 .nav-sheet.is-open { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease-out); }
  .website-v9 .nav-sheet a:not(.btn) { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: -0.02em; line-height: 1.2; }
  .website-v9 .nav-sheet .btn { margin-top: 28px; }
}

/* ---------- Spine card (brand signature: a thick magenta edge on a titled panel) ---------- */
.website-v9 .spine { position: relative; background: var(--white); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); border-left: 6px solid var(--magenta); }

/* ---------- Footer (ink) ---------- */
.website-v9 .footer { background: var(--night); color: var(--on-night); padding-top: 96px; overflow: hidden; position: relative; }
.website-v9 .footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 40px; }
.website-v9 .footer p { color: var(--on-night-2); max-width: 26em; }
.website-v9 .footer h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-2); margin-bottom: 18px; }
.website-v9 .footer li + li { margin-top: 10px; }
.website-v9 .footer-logo { display: block; margin-top: 96px; padding-bottom: 36px; overflow: hidden; }
.website-v9 .footer-logo img { width: 100%; height: auto; }
.website-v9 .footer-base { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--on-night-line); font-size: 13px; color: var(--on-night-2); }
@media (max-width: 899px) { .website-v9 .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.website-v9 .field { display: grid; gap: 8px; }
.website-v9 .field label { font-size: 14px; font-weight: 600; }
.website-v9 .field input, .website-v9 .field select, .website-v9 .field textarea { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 16px; transition: box-shadow 200ms var(--ease-out); }
.website-v9 .field textarea { height: 120px; padding: 14px 16px; resize: vertical; }
.website-v9 .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314161B' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.website-v9 .field input:focus-visible, .website-v9 .field select:focus-visible, .website-v9 .field textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--magenta); }
.website-v9 .field .hint { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.website-v9 .field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #C4301C; }

/* ---------- Motion starting states (only with JS and motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .website-v9 .js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); }
  .website-v9 .js [data-split] { visibility: hidden; }
}
