/* Geeqers homepage proposals: shared brand foundation.
   Mirrors the live site's paper-blue theme (src/app/globals.css at 0f63f3a) so every
   mockup looks like the real site. Link it from a proposal page as ../_shared/base.css. */

@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Variable.woff") format("woff"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-Variable.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  /* paper-blue theme */
  --canvas: #F3F7FB; --surface: #FFFFFF;
  --ink: #0E2027; --ink-soft: #4C6570;
  --line: rgba(14,32,39,.14); --line-strong: rgba(14,32,39,.28);
  --accent: #03A4FC;          /* brand blue: fills, graphics, accent on dark. Never small text on light */
  --accent-deep: #0369A1;     /* small accent text, links, button fills on light (4.5:1) */
  --accent-display: #0395E6;  /* LARGE accent text on light only (3:1) */
  --accent-lite: #95D9FE;     /* accent text on dark/panel */
  --accent-soft: #E1F4FF;     /* the only accent-tinted fill; never text */
  --accent-ink: #FFFFFF;
  --btn-fill: #0369A1; --btn-fill-hover: #0375B3;
  --panel: #072A47; --select: #C7E8FE;
  --on-dark: #F2F9F8; --on-dark-soft: rgba(242,249,248,.82);

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif; /* the hero h1 ONLY */

  --container: 1520px; --gutter: clamp(24px, 5vw, 72px); --sec: clamp(72px, 7.2vw, 116px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 56px; --s7: 72px; --s8: 96px; --s9: 128px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;

  /* the site's motion vocabulary (src/components/motion/tokens.ts) */
  --ease: cubic-bezier(.22,1,.36,1);        /* ease-transition: nearly every reveal */
  --ease-settle: cubic-bezier(.31,.75,.22,1);
  --ease-fade: cubic-bezier(.76,0,.24,1);
  --ease-leave: cubic-bezier(.55,0,.7,0);
  --t-fast: .3s; --t-normal: .65s; --t-slow: 1.075s; --t-slower: 1.25s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #b7c4cf transparent; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--select); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus, var(--accent-deep)); outline-offset: 3px; border-radius: 4px; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }

/* type scale (DESIGN.md) */
.t-display  { font-weight: 500; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.t-numeral  { font-weight: 500; font-size: clamp(4.5rem, 9.5vw, 8.5rem); line-height: .86; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.t-headline { font-weight: 500; font-size: clamp(1.85rem, 2.9vw, 2.7rem); line-height: 1.06; letter-spacing: -.038em; text-wrap: balance; }
.t-title    { font-weight: 600; font-size: clamp(1.15rem, 1.4vw, 1.4rem); line-height: 1.25; letter-spacing: -.02em; }
.t-lede     { font-size: clamp(1.02rem, 1.15vw, 1.12rem); line-height: 1.5; color: var(--ink-soft); max-width: 58ch; text-wrap: pretty; }
.t-body     { font-size: 17px; line-height: 1.55; max-width: 64ch; text-wrap: pretty; }
.t-small    { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.t-label    { font-weight: 600; font-size: .8rem; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.accent     { color: var(--accent-display); }

/* dark surfaces */
.on-dark { background: var(--panel); color: var(--on-dark); --focus: var(--accent); }
.on-dark .t-lede, .on-dark .t-label, .on-dark .t-small { color: var(--on-dark-soft); }
.on-dark .accent { color: var(--accent-lite); }

/* buttons: the site's 54px pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: var(--r-pill); border: 1px solid transparent; font: 600 16px/1 var(--font-sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-solid { background: var(--btn-fill); color: var(--accent-ink); }
.btn-solid:hover { background: var(--btn-fill-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--on-dark); color: var(--ink); }  /* the hero's off-white pill */
.btn-light:hover { background: #fff; }
.on-dark .btn-ghost { color: var(--on-dark); border-color: rgba(242,249,248,.42); }
.on-dark .btn-ghost:hover { border-color: var(--on-dark); }
.btn-compact { height: 42px; padding: 0 18px; font-size: 14px; }

/* The content line (set by the hero, 2026-09-24): a 4-column grid inside .container with a 24px gap.
   Column 2 starts at x=402 at 1440, exactly where the floating header's nav links start.
   Chapter number in column 1; label, statement and body from column 2. */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
.grid4 > .chapter-num { grid-column: 1; }
.grid4 > .from-line { grid-column: 2 / -1; }
@media (max-width: 767px) { .grid4 { grid-template-columns: 1fr; } .grid4 > .chapter-num, .grid4 > .from-line { grid-column: 1; } }

/* Chapter anatomy (founder, 2026-09-24: the label sits ABOVE the big sentence, not tucked into its first line).
   <div class="grid4 chapter-head">
     <p class="chapter-num">1.<sup>1</sup></p>
     <div class="from-line"><p class="chapter-label">Roles we fill</p><h2 class="chapter-statement">…</h2></div>
   </div> */
.chapter-num { margin: 0; font-weight: 500; font-size: clamp(28px, 2.64vw, 38px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.chapter-num sup { font-size: .5em; line-height: 0; vertical-align: top; position: relative; top: .35em; margin-left: .03em; }
.chapter-label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: .8rem; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.chapter-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.chapter-statement { margin: var(--s3) 0 0; font-weight: 500; font-size: clamp(1.85rem, 2.9vw, 2.7rem); line-height: 1.06; letter-spacing: -.038em; text-wrap: balance; }
.on-dark .chapter-label { color: var(--on-dark-soft); }
.on-dark .chapter-label::before { background: var(--accent-lite); }

/* SplitText line masks (GQ.splitLines → linesClass "ln", so masks are .ln-mask) clip descenders at the
   headline's 1.06 line-height: extend each mask downward without moving the layout (found by the promises session). */
.ln-mask { padding-bottom: .12em; margin-bottom: -.12em; }

/* The recruiter's pen (founder, 2026-09-24): the page's signature mark, one stroke everywhere.
   <svg …><path class="pen" d="…"/></svg>, drawn with GQ.pen(path) in proto.js. Rules in BORROW.md. */
.pen { fill: none; stroke: var(--accent); stroke-width: 1.8px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.on-dark .pen { stroke: var(--accent-lite); }

/* The floating header is 18px from the top and 72px tall: anchors and light-topped pages clear 108px. */
:root { --header-clear: 108px; }
[id] { scroll-margin-top: var(--header-clear); }

.rule { height: 1px; border: 0; margin: 0; background: var(--line); }
.rule.is-accent { background: var(--accent); }
.on-dark .rule { background: rgba(242,249,248,.16); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- proposal chrome (not part of the design) ---------- */
.pbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 4px; max-width: calc(100vw - 24px); overflow-x: auto; padding: 6px; border-radius: 999px; background: rgba(12,14,16,.9); backdrop-filter: blur(10px); color: #fff; font: 500 13px/1 system-ui, sans-serif; box-shadow: 0 12px 32px rgba(0,0,0,.28); scrollbar-width: none; }
.pbar a { color: #fff; text-decoration: none; padding: 9px 13px; border-radius: 999px; opacity: .72; white-space: nowrap; }
.pbar a:hover { opacity: 1; background: rgba(255,255,255,.1); }
.pbar a[aria-current="page"] { background: #fff; color: #111; opacity: 1; }
.pbar .pbar-title { padding: 0 8px 0 12px; opacity: .55; white-space: nowrap; }
.pbar .pbar-sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); margin: 0 4px; flex: none; }
