@font-face { font-family: "Host Grotesk"; src: url("/assets/fonts/host-grotesk-300-800.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

/* Genesis Home Tutors website. Clean white paper, deep ink, the logo's purple, soft lavender cards with rounded corners,
   and a conversation running down the page: each section opens with a question someone would actually ask.
   Colours are RGB channels, so rgb(var(--ink-900)) and rgb(var(--ink-200) / .7) both work. A hex in a component is a bug.
   Dark mode redefines the same tokens; it follows the device unless someone picks with the switch in the header. */
:root {
  --surface: 255 255 255;
  --soft: 247 246 251;
  --lilac: 239 233 251;     /* the soft lavender of feature cards */
  --lilac-2: 228 236 252;   /* its cooler partner in gradients */
  --ink-900: 22 14 40;      /* a very deep shade of the logo's purple: text, titles */
  --ink-700: 59 50 79;
  --ink-500: 98 90 118;
  --ink-400: 120 112 138;
  --ink-200: 230 227 237;
  --ink-100: 242 240 246;
  --brand-500: 108 62 180;  /* lines, icons, chart strokes */
  --brand-600: 66 23 115;   /* #421773, the logo. button fills: white on it is 12:1 */
  --brand-700: 50 15 92;    /* hover darkens, never lightens */
  --brand-fg: 92 44 160;    /* purple text and links */
  --brand-50: 243 238 250;
  --teal-500: 6 150 72;     /* the logo's green, deepened: ticks and "good" signals */
  --teal-100: 222 247 232;
  --coral-500: 191 138 23;  /* a warm gold: stars, one accent word */
  --poster: 22 8 44;        /* the dark testimonial and cover panels */
  --on-dark: 255 255 255;
  --success: 14 122 62;
  --warning: 154 91 0;
  --danger: 180 35 49;
  --shadow: 26 16 46;
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 24px;
  --radius-sm: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --surface: 14 11 22; --soft: 22 18 34; --lilac: 36 28 60; --lilac-2: 26 32 58;
  --ink-900: 242 238 250; --ink-700: 212 205 228; --ink-500: 166 158 188; --ink-400: 140 132 162; --ink-200: 52 46 72; --ink-100: 34 29 50;
  --brand-500: 176 140 240; --brand-600: 122 72 200; --brand-700: 104 58 178; --brand-fg: 204 180 250; --brand-50: 40 28 66;
  --teal-500: 70 205 128; --teal-100: 20 54 38; --coral-500: 230 186 80; --poster: 30 18 56;
  --success: 92 210 140; --warning: 236 178 72; --danger: 246 112 122; --shadow: 0 0 0;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: 14 11 22; --soft: 22 18 34; --lilac: 36 28 60; --lilac-2: 26 32 58;
    --ink-900: 242 238 250; --ink-700: 212 205 228; --ink-500: 166 158 188; --ink-400: 140 132 162; --ink-200: 52 46 72; --ink-100: 34 29 50;
    --brand-500: 176 140 240; --brand-600: 122 72 200; --brand-700: 104 58 178; --brand-fg: 204 180 250; --brand-50: 40 28 66;
    --teal-500: 70 205 128; --teal-100: 20 54 38; --coral-500: 230 186 80; --poster: 30 18 56;
    --success: 92 210 140; --warning: 236 178 72; --danger: 246 112 122; --shadow: 0 0 0;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font-family: "Host Grotesk", system-ui, -apple-system, sans-serif; font-size: 1.0625rem; line-height: 1.55; color: rgb(var(--ink-900)); background: rgb(var(--surface)); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color 250ms, color 250ms; }
img { display: block; max-width: 100%; height: auto; }
a { color: rgb(var(--brand-fg)); text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -0.125em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: rgb(var(--surface)); padding: 10px 14px; border-radius: 10px; transition: transform 150ms var(--ease-settle); }
.skip-link:focus { transform: translateY(72px); }
:focus-visible { outline: 2px solid rgb(var(--brand-500)); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: rgb(var(--ink-500)); }
.optional { color: rgb(var(--ink-500)); font-weight: 400; font-size: .875em; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--brand-fg)); }
.accent { color: rgb(var(--brand-fg)); }

/* Reveal: a short rise, once. Nothing stays hidden if scripts fail, because the class is added by script. */
.will-reveal { opacity: 0; transform: translateY(18px); }
.is-revealed { opacity: 1; transform: none; transition: opacity 700ms var(--ease-settle), transform 900ms var(--ease-settle); transition-delay: var(--d, 0ms); }

/* A thin line across the top of a journal article, filling as you read. Pure CSS; does nothing where scroll-timelines or motion aren't wanted. */
.read-progress { position: fixed; top: 0; left: 0; z-index: 90; width: 100%; height: 3px; background: rgb(var(--brand-600)); transform-origin: 0 0; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .read-progress { animation: read-progress linear both; animation-timeline: scroll(root); }
    @keyframes read-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ---------- Logos: the white one on dark ---------- */
.logo-white { display: none; }
:root[data-theme="dark"] .logo-ink { display: none; }
:root[data-theme="dark"] .logo-white { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-ink { display: none; } :root:not([data-theme="light"]) .logo-white { display: block; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 180ms, color 180ms, border-color 180ms, transform 120ms, box-shadow 180ms; touch-action: manipulation; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: rgb(var(--brand-600)); color: #fff; box-shadow: 0 6px 18px rgb(var(--brand-600) / .22); }
.btn-primary:hover:not(:disabled) { background: rgb(var(--brand-700)); }
.btn-ghost { border-color: rgb(var(--ink-200)); color: rgb(var(--ink-900)); background: rgb(var(--surface)); }
.btn-ghost:hover:not(:disabled) { border-color: rgb(var(--ink-900)); }
.btn-quiet { color: rgb(var(--danger)); background: none; }
.btn-on-photo { background: #fff; color: rgb(22 14 40); }
.btn-on-photo:hover { background: rgb(243 238 250); }
.btn.is-busy { opacity: .6; pointer-events: none; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: rgb(var(--brand-fg)); text-decoration: none; }
.text-link .ring { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; transition: transform 220ms var(--ease-settle); }
.text-link .ring .i { font-size: .8rem; }
.text-link:hover .ring { transform: translateX(4px); }
.row-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: rgb(var(--ink-900)); text-decoration: none; white-space: nowrap; }
.row-link .i { transition: transform 200ms var(--ease-settle); }
.row-link:hover { color: rgb(var(--brand-fg)); }
.row-link:hover .i { transform: translateX(4px); }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; color: rgb(var(--ink-900)); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 150ms; font-size: 1.125rem; }
.icon-btn:hover:not(:disabled) { background: rgb(var(--ink-100)); }
.icon-btn:disabled { color: rgb(var(--ink-200)); cursor: default; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; background: rgb(var(--surface) / .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgb(var(--ink-200) / .7); }
.nav-inner { display: flex; align-items: center; gap: 20px; max-width: 1240px; margin-inline: auto; padding: 0 var(--gutter); min-height: 72px; }
.nav-logo { flex: none; display: block; width: 150px; }
.nav-logo img { width: 100%; height: auto; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a { color: rgb(var(--ink-700)); text-decoration: none; font-weight: 500; font-size: .9688rem; padding: 8px 12px; border-radius: 10px; transition: color 180ms, background-color 180ms; }
.nav-links a:hover { color: rgb(var(--ink-900)); background: rgb(var(--ink-100)); }
.nav-links a[aria-current] { color: rgb(var(--brand-fg)); background: rgb(var(--brand-50)); }
.nav-end { display: flex; align-items: center; gap: 6px; }
.nav-signin { color: rgb(var(--ink-900)); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav-signin:hover { background: rgb(var(--ink-100)); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; } }
.nav-menu { display: none; }
.nav-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: rgb(var(--ink-900)); border-radius: 12px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-sheet { position: fixed; inset: 72px 0 0 0; z-index: 30; background: rgb(var(--surface)); padding: 20px var(--gutter) 40px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.nav-sheet[hidden] { display: none; }
/* .nav-sheet can never outrank Genie's floating pieces by z-index alone: it's stuck inside .nav's own stacking
   context (position + z-index on an ancestor caps every descendant). Hide Genie outright while the menu is open. */
body.nav-open .genie-launcher, body.nav-open .genie-hello, body.nav-open .genie-panel { display: none; }
.nav-sheet nav { display: flex; flex-direction: column; margin-bottom: 14px; }
.nav-sheet nav a { font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: rgb(var(--ink-900)); text-decoration: none; padding: 8px 0; border-bottom: 1px solid rgb(var(--ink-200)); }
.nav-sheet nav a[aria-current] { color: rgb(var(--brand-fg)); }
.nav-sheet-phone { text-align: center; padding: 10px; font-weight: 500; }

/* ---------- The navigation over a cover: transparent, white type, until the page scrolls past it ---------- */
body:not(.has-cover) main { padding-top: 72px; }
.has-cover .nav.is-on-cover { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-cover .nav.is-on-cover .logo-ink { display: none; }
.has-cover .nav.is-on-cover .logo-white { display: block; }
.has-cover .nav.is-on-cover .nav-links a, .has-cover .nav.is-on-cover .nav-signin, .has-cover .nav.is-on-cover .icon-btn, .has-cover .nav.is-on-cover .nav-menu summary { color: #fff; }
.has-cover .nav.is-on-cover .nav-links a:hover, .has-cover .nav.is-on-cover .nav-signin:hover, .has-cover .nav.is-on-cover .icon-btn:hover { background: rgb(255 255 255 / .14); }
.has-cover .nav.is-on-cover .nav-links a[aria-current] { background: rgb(255 255 255 / .18); color: #fff; }
.has-cover .nav.is-on-cover .nav-book { background: #fff; color: rgb(22 14 40); box-shadow: none; }
.has-cover .nav-menu[open] ~ * { display: none; }

/* ---------- The magazine cover: full bleed, one enormous statement ---------- */
.cover { position: relative; display: flex; isolation: isolate; overflow: hidden; color: #fff; background: rgb(var(--poster)); }
.cover.is-full, .cover.is-masthead { min-height: 100dvh; }
.cover.is-tall { min-height: 88dvh; }
.cover-photo { position: absolute; inset: 0; z-index: -2; }
.cover-photo img { width: 100%; height: 112%; top: -6%; position: relative; object-fit: cover; }
/* A slow drift as the photo scrolls by. Pure CSS, skipped entirely by anything that can't do scroll-timelines or wants less motion. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cover-photo img { animation: cover-parallax linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes cover-parallax { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
  }
}
.cover.is-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(22 8 44 / .55) 0%, rgb(22 8 44 / .25) 40%, rgb(22 8 44 / .62) 100%); }
.cover.is-blue { background: rgb(66 23 115); }
.cover.is-teal { background: rgb(var(--teal-500)); color: rgb(18 12 34); }
.cover-body { position: relative; width: 100%; max-width: 1680px; margin-inline: auto; padding: clamp(104px, 12vw, 136px) var(--gutter) clamp(36px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: clamp(40px, 7vw, 96px); }
.cover-title { font-weight: 700; font-size: clamp(3.5rem, 11.5vw, 13rem); line-height: .86; letter-spacing: -0.04em; text-wrap: initial; }
.cover-line { display: block; }
.cover-line.is-accent { color: rgb(196 166 246); }
.cover.is-teal .cover-line.is-accent { color: #fff; }
.cover-note { font-size: clamp(1.125rem, 1.6vw, 1.4rem); line-height: 1.34; font-weight: 500; letter-spacing: -0.01em; max-width: 32ch; }
.cover-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px clamp(24px, 4vw, 56px); }
.cover-lines { display: flex; flex-wrap: wrap; gap: 8px clamp(24px, 3vw, 44px); margin-left: auto; }
.cover-lines a { display: block; color: inherit; text-decoration: none; border-top: 2px solid currentColor; padding-top: 10px; min-width: 140px; transition: transform 220ms var(--ease-settle); }
.cover-lines strong { display: block; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.012em; }
.cover-lines span { font-size: .9375rem; opacity: .9; }
.cover.is-masthead .cover-title { font-size: clamp(4.25rem, 14vw, 17rem); line-height: .84; }
.cover.is-masthead .cover-line { white-space: nowrap; }
/* The first cover keeps its button clear of Genie's launcher in the corner. */
main > .cover:first-child .cover-body { padding-bottom: clamp(96px, 9vw, 112px); }
.cover.has-side .cover-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34%); grid-template-rows: 1fr auto; gap: clamp(24px, 3vw, 44px) 0; }
.cover.has-side .cover-title { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; align-self: start; }
.cover-side { grid-column: 2; grid-row: 1 / 3; align-self: end; position: relative; z-index: 1; margin-top: clamp(40px, 12vw, 200px); }
.cover-side img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.cover.has-side .cover-foot { grid-column: 1; grid-row: 2; align-self: end; }
@media (hover: hover) and (pointer: fine) { .cover-lines a:hover { transform: translateY(-4px); } }

/* ---------- Sections ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; max-width: 16ch; }
.statement { padding-block: var(--section) clamp(48px, 7vw, 96px); }
.statement-text { font-size: clamp(2rem, 4.8vw, 4.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; max-width: 22ch; }
.band { margin-top: clamp(40px, 6vw, 72px); border-radius: 32px; padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center;
  background: radial-gradient(60% 140% at 18% 110%, rgb(var(--brand-500) / .32) 0%, transparent 60%), radial-gradient(40% 90% at 62% 130%, rgb(226 150 206 / .22) 0%, transparent 70%), rgb(var(--soft)); }
.band div { display: flex; flex-direction: column-reverse; }
.band dd { margin: 0; font-size: clamp(2.25rem, 4.6vw, 3.75rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.band dt { margin-top: 8px; color: rgb(var(--ink-700)); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: rgb(var(--brand-fg)); text-decoration: none; }
.text-link .ring { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; transition: transform 220ms var(--ease-settle); }
.text-link .ring .i { font-size: .8rem; }
@media (hover: hover) and (pointer: fine) { .text-link:hover .ring { transform: translateX(4px); } }
.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: rgb(var(--ink-700)); }
.ticks li .i { color: rgb(var(--teal-500)); margin-top: 4px; }

/* ---------- "More than home tutoring": big photo cards that slide sideways ---------- */
.rail-section { padding-block: var(--section) clamp(48px, 7vw, 96px); }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 4vw, 44px); }
.rail-head h2 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.rail-nav { display: flex; gap: 10px; flex: none; }
.round-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgb(var(--ink-100)); color: rgb(var(--ink-900)); display: inline-flex; align-items: center; justify-content: center; font-size: 1.125rem; cursor: pointer; transition: background-color 180ms, opacity 180ms, transform 140ms var(--ease-settle); }
.round-btn:active { transform: scale(0.95); }
.round-btn:disabled { opacity: .4; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round-btn:hover:not(:disabled) { background: rgb(var(--ink-200)); } }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(820px, 82vw); gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track:focus-visible { outline-offset: -2px; }
.photo-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1.42; padding: clamp(24px, 3vw, 44px); border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; scroll-snap-align: start; }
.photo-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-settle); }
.photo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(70 30 22 / .82) 0%, rgb(70 30 22 / .35) 55%, transparent 100%); }
.photo-card.is-plum::before { background: linear-gradient(90deg, rgb(120 30 120 / .82) 0%, rgb(140 40 140 / .3) 60%, transparent 100%); }
.photo-card.is-ink::before { background: linear-gradient(90deg, rgb(22 14 40 / .86) 0%, rgb(22 14 40 / .35) 60%, transparent 100%); }
.photo-card-label { font-size: .875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.photo-card-text { font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.02em; max-width: 22ch; }
@media (hover: hover) and (pointer: fine) { .photo-card:hover img { transform: scale(1.04); } }

/* ---------- How it works: three soft cards, each a real screen, each with a note ---------- */
.how { padding-block: var(--section); }
.how-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 24px clamp(24px, 4vw, 64px); align-items: start; margin-bottom: clamp(32px, 5vw, 56px); }
.how-head h2 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; color: rgb(var(--ink-900)); }
.how-head p { color: rgb(var(--ink-700)); font-size: 1.125rem; max-width: 40ch; margin-top: 10px; }
.how-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.how-card { position: relative; display: flex; flex-direction: column; min-height: 520px; border-radius: var(--radius); background: rgb(var(--soft)); overflow: hidden; }
.how-title { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 26px 26px 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: rgb(var(--ink-900)); text-decoration: none; }
.how-card:first-child .how-title { color: rgb(var(--brand-fg)); }
.how-title .i { font-size: 1rem; transition: transform 220ms var(--ease-settle); }
@media (hover: hover) and (pointer: fine) { a.how-title:hover .i { transform: translateX(4px); } }
.how-art { position: relative; flex: 1; margin: 22px 0 0 26px; border-radius: 16px 0 0 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgb(var(--surface)); }
.how-art.is-lilac { background: linear-gradient(160deg, rgb(var(--lilac)) 0%, rgb(var(--soft)) 100%); }
.how-art.is-teal { background: linear-gradient(160deg, rgb(var(--teal-100)) 0%, rgb(var(--soft)) 100%); }
.how-art.is-coral { background: linear-gradient(160deg, rgb(var(--coral-500) / .16) 0%, rgb(var(--soft)) 100%); }
.how-ill { width: 58%; max-width: 216px; height: auto; }
.ill-paper { fill: rgb(var(--surface)); }
.ill-outline { fill: none; stroke: rgb(var(--ink-900)); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ill-fill-soft { fill: rgb(var(--ink-200)); }
.ill-fill-brand { fill: rgb(var(--brand-500)); }
.ill-fill-teal { fill: rgb(var(--teal-500)); }
.ill-fill-coral { fill: rgb(var(--coral-500)); }
.ill-stroke-on-brand { fill: none; stroke: rgb(var(--surface)); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ill-trend { fill: none; stroke: rgb(var(--ink-900)); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ill-pencil { transform-origin: 150px 150px; }
.how-note { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: rgb(var(--surface)); color: rgb(var(--ink-700)); font-size: .9688rem; line-height: 1.45; box-shadow: 0 10px 30px rgb(var(--shadow) / .08); }
.round { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgb(var(--ink-100)); display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--ink-900)); font-size: 1.125rem; }

/* ---------- Showcase: one real screen, big ---------- */
.showcase { padding-block: clamp(48px, 7vw, 96px) var(--section); background: linear-gradient(180deg, transparent 0%, rgb(var(--soft)) 40%, rgb(var(--soft)) 100%); }
.showcase-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.showcase-head h2 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; max-width: 14ch; }
.showcase-head p { color: rgb(var(--ink-700)); font-size: 1.125rem; max-width: 56ch; }
.showcase-shot { margin-top: clamp(32px, 5vw, 56px); }
.showcase-shot figcaption { margin-top: 12px; text-align: center; color: rgb(var(--ink-500)); font-size: .875rem; }
.browser { position: relative; border-radius: 18px; overflow: hidden; background: rgb(var(--surface)); border: 1px solid rgb(var(--ink-200)); box-shadow: 0 30px 80px rgb(var(--shadow) / .14); }
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgb(var(--ink-100)); background: rgb(var(--surface)); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--ink-200)); }
.browser img { width: 100%; height: auto; display: block; }

/* ---------- Job board: centred headline, then a soft glowing panel with the real board ---------- */
.jobs-feature { padding-block: var(--section); }
.jobs-feature-title { text-align: center; font-size: clamp(2.5rem, 6.4vw, 5.25rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; margin-bottom: clamp(40px, 6vw, 80px); }
.jobs-feature-title span { display: block; color: rgb(var(--brand-fg)); }
.glow-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; border-radius: 32px; overflow: hidden; padding: clamp(32px, 5vw, 80px) 0 0 clamp(32px, 5vw, 80px);
  background: linear-gradient(120deg, rgb(var(--lilac-2)) 0%, rgb(var(--lilac)) 55%, rgb(var(--lilac-2)) 100%); border: 1px solid rgb(var(--ink-200) / .6); }
.glow-panel-text { padding-bottom: clamp(32px, 5vw, 80px); align-self: stretch; display: flex; flex-direction: column; }
.glow-panel-text .eyebrow { font-size: .875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--brand-fg)); }
.glow-panel-text h3 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; margin-top: 18px; max-width: 14ch; }
.glow-panel-text p { margin-top: 18px; color: rgb(var(--ink-700)); font-size: 1.125rem; max-width: 38ch; }
.glow-panel-text .text-link { margin-top: auto; padding-top: 40px; }
.glow-panel-art { position: relative; align-self: end; min-height: 420px; }
.browser.is-tilted { position: absolute; left: 0; right: -30%; bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.job-float { position: absolute; left: -12%; bottom: 40px; width: min(340px, 72%); display: grid; gap: 10px; padding: 22px; border-radius: 20px; background: rgb(var(--surface)); border: 1px solid rgb(var(--ink-200)); box-shadow: 0 24px 60px rgb(var(--shadow) / .18); color: inherit; text-decoration: none; transition: transform 300ms var(--ease-settle); }
.job-float-kind { font-size: .8125rem; font-weight: 600; color: rgb(var(--teal-500)); }
.job-float strong { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.25; }
.job-float dl { display: grid; gap: 8px; border-top: 1px solid rgb(var(--ink-100)); padding-top: 10px; }
.job-float dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.job-float dt { color: rgb(var(--ink-500)); }
.job-float dd { margin: 0; font-weight: 500; text-align: right; }
.job-float-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: rgb(var(--brand-fg)); font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) { .job-float:hover { transform: translateY(-4px); } }

/* The jobs page's own panel */
.panel-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; border-radius: 32px; padding: clamp(28px, 5vw, 64px); background: linear-gradient(135deg, rgb(var(--lilac)) 0%, rgb(var(--lilac-2)) 100%); overflow: hidden; margin-top: clamp(40px, 6vw, 72px); }
.panel-feature h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }
.panel-feature .lead { margin-top: 16px; color: rgb(var(--ink-700)); font-size: 1.0625rem; max-width: 42ch; }
.panel-feature .text-link { margin-top: 28px; }
.panel-feature .mock { border-radius: 20px; overflow: hidden; }
.panel-feature .mock img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }

/* Jobs list */
.job-list { display: grid; gap: 12px; }
.job { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; border-radius: 20px; border: 1px solid rgb(var(--ink-200)); background: rgb(var(--surface)); scroll-margin-top: 110px; transition: border-color 180ms, box-shadow 180ms; }
.job:target { border-color: rgb(var(--brand-500)); box-shadow: 0 0 0 4px rgb(var(--brand-500) / .12); }
.job .round { width: 52px; height: 52px; border-radius: 14px; background: rgb(var(--brand-50)); color: rgb(var(--brand-fg)); }
.job h3 { font-size: 1.1875rem; letter-spacing: -0.015em; }
.job-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; color: rgb(var(--ink-500)); font-size: .9375rem; }
.job-summary { grid-column: 2 / -1; color: rgb(var(--ink-700)); font-size: .9688rem; }
.job-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgb(var(--teal-100)); color: rgb(var(--teal-500)); font-size: .8125rem; font-weight: 600; margin-left: 8px; vertical-align: middle; }

/* What we offer */
.contents, .journal { padding-block: var(--section); }
.contents { padding-top: 0; }

/* Testimonials: one at a time on a deep panel */
.voices-section { padding-block: var(--section); }
.voices { position: relative; border-radius: 32px; background: rgb(22 14 40); color: #fff; padding: clamp(32px, 6vw, 88px); overflow: hidden; }
:root[data-theme="dark"] .voices { background: rgb(var(--soft)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .voices { background: rgb(var(--soft)); } }
.voices::after { content: ""; position: absolute; right: -10%; bottom: -40%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgb(160 110 240 / .32), transparent); pointer-events: none; }
.voices-track { display: grid; }
.voice { grid-area: 1 / 1; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity 500ms var(--ease-settle), transform 600ms var(--ease-settle), visibility 500ms; }
.voice.is-on { opacity: 1; visibility: visible; transform: none; }
.voice-mark { width: 180px; aspect-ratio: 1; border-radius: 28px; background: linear-gradient(135deg, rgb(120 70 200), rgb(66 23 115)); display: flex; align-items: center; justify-content: center; font-size: 4.5rem; font-weight: 700; letter-spacing: -0.05em; color: rgb(255 255 255 / .92); }
.voice p { font-size: clamp(1.25rem, 2.2vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.voice footer { margin-top: 24px; }
.voice footer b { display: block; font-weight: 600; }
.voice footer span { color: rgb(255 255 255 / .66); }
.voices-nav { position: relative; z-index: 1; display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; }
.voices-nav .round-btn { background: rgb(255 255 255 / .12); color: #fff; }
@media (hover: hover) and (pointer: fine) { .voices-nav .round-btn:hover { background: rgb(255 255 255 / .22); } }
.voices-dots { display: flex; gap: 6px; margin-right: auto; align-items: center; }
.voices-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgb(255 255 255 / .3); transition: background-color 300ms, transform 300ms var(--ease-settle); }
.voices-dots i.is-on { background: #fff; transform: scale(1.35); }

/* "You name it": quote cards in one slow marquee */
.asks { padding-block: 0 var(--section); }
.asks h2 { text-align: center; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.04; margin-bottom: clamp(32px, 5vw, 56px); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.quote-chip { display: flex; flex-direction: column; width: 300px; min-height: 190px; padding: 28px; border-radius: 22px; border: 1px solid rgb(var(--ink-200)); background: rgb(var(--surface)); color: rgb(var(--brand-fg)); text-decoration: none; font-size: 1.625rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; transition: border-color 180ms; }
.quote-chip::before { content: "\201D"; font-size: 2.5rem; line-height: .6; margin-bottom: 14px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .quote-chip:hover { border-color: rgb(var(--brand-500)); } }

/* Big quiet background type, with a card of its own stated plainly on top: the lead-in to the testimonials below. */
.bigword-section { position: relative; padding-block: clamp(72px, 11vw, 140px); overflow: hidden; display: flex; align-items: center; }
.bigword-bg { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; }
.bigword-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 80s linear infinite; }
.bigword-track span { font-size: clamp(3.25rem, 10.5vw, 8.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: rgb(var(--ink-200)); }
.bigword-overlap { position: relative; z-index: 1; display: flex; justify-content: center; }
.bigword-card { max-width: 620px; padding: clamp(28px, 4vw, 44px) clamp(28px, 5vw, 52px); border-radius: var(--radius); background: rgb(var(--surface)); border: 1px solid rgb(var(--ink-200)); box-shadow: 0 24px 64px rgb(var(--shadow) / .14); text-align: center; }
.bigword-card p { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.32; color: rgb(var(--ink-900)); }

/* Journal */
.journal-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 48px); }
.journal-grid .is-lead { grid-row: span 2; }
.journal-grid.is-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.journal-grid.is-full .is-lead { grid-column: span 2; grid-row: auto; }
.post-card a { display: block; color: inherit; text-decoration: none; }
.post-image { overflow: hidden; background: rgb(var(--soft)); aspect-ratio: 16 / 10; border-radius: 20px; }
.post-card.is-lead .post-image { aspect-ratio: 4 / 3; }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-settle); }
@media (hover: hover) and (pointer: fine) { .post-card a:hover img { transform: scale(1.04); } }
.post-card h3 { font-size: 1.3125rem; margin-top: 16px; line-height: 1.18; }
.post-card.is-lead h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -0.035em; }
.post-meta { color: rgb(var(--ink-500)); font-size: .9375rem; margin-top: 8px; }
.post-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: 999px; background: rgb(var(--soft)); color: rgb(var(--brand-fg)); font-size: .8125rem; font-weight: 600; margin-top: 16px; }
.post-tag .i, .post-tag svg { font-size: .9375rem; width: 14px; height: 14px; }
.post-excerpt { color: rgb(var(--ink-700)); margin-top: 10px; font-size: 1.0625rem; line-height: 1.45; max-width: 52ch; }

/* ---------- Journal (blog) page: a pill-tagged hero, a featured-article carousel, a grid + spotlight, a CTA ---------- */
.pill-tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 16px; border-radius: 999px; background: rgb(var(--soft)); color: rgb(var(--brand-fg)); font-size: .875rem; font-weight: 600; margin-bottom: 18px; }
.journal-feature { position: relative; }
.journal-feature-card.voice { display: block; }
.journal-feature-card.voice a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; color: inherit; text-decoration: none; }
.journal-feature-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: rgb(var(--soft)); }
.journal-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.journal-feature-body h2 { font-size: clamp(1.75rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; margin-top: 16px; }
.journal-feature-card.voice p { color: rgb(var(--ink-700)); font-size: 1.0625rem; font-weight: 400; margin-top: 14px; max-width: 48ch; }
.journal-byline { display: flex; align-items: center; gap: 8px; color: rgb(var(--ink-500)); font-size: .875rem; margin-top: 20px; }
.journal-byline .i, .journal-byline svg { width: 15px; height: 15px; }
.voices-dots.is-standalone { justify-content: center; margin: 24px auto 0; }
@media (max-width: 860px) { .journal-feature-card.voice a { grid-template-columns: minmax(0, 1fr); } .journal-feature-media { aspect-ratio: 16 / 10; } }
.journal-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 40px); }
.spotlight { border-radius: var(--radius); background: rgb(var(--soft)); padding: clamp(24px, 3vw, 32px); }
.spotlight h2 { font-size: 1.0625rem; margin-bottom: 4px; }
.spotlight ul { list-style: none; padding: 0; }
.spotlight li { border-top: 1px solid rgb(var(--ink-200)); }
.spotlight a { display: grid; gap: 6px; padding: 18px 0; color: inherit; text-decoration: none; }
.spotlight-cat { display: inline-flex; align-items: center; gap: 6px; color: rgb(var(--brand-fg)); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.spotlight-cat .i, .spotlight-cat svg { width: 13px; height: 13px; }
.spotlight-title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; transition: color 180ms; }
.spotlight-date { color: rgb(var(--ink-500)); font-size: .8125rem; }
@media (hover: hover) and (pointer: fine) { .spotlight a:hover .spotlight-title { color: rgb(var(--brand-fg)); } }
@media (max-width: 860px) { .journal-layout, .post-grid { grid-template-columns: minmax(0, 1fr); } }
.journal-cta { border-radius: 32px; background: linear-gradient(135deg, rgb(var(--brand-700)), rgb(var(--brand-500))); color: #fff; padding: clamp(40px, 6vw, 72px); text-align: center; display: grid; justify-items: center; gap: 14px; }
.journal-cta h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.04em; max-width: 24ch; }
.journal-cta p { color: rgb(255 255 255 / .82); font-size: 1.0625rem; max-width: 46ch; }
.journal-cta .btn { margin-top: 10px; }
.btn-light { background: #fff; color: rgb(var(--brand-fg)); }
.btn-light:hover:not(:disabled) { background: rgb(255 255 255 / .88); }

/* FAQ: hairlines and a plus */
.faq-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; padding-block: var(--section); }
.faq-head { position: sticky; top: 104px; }
.faq-head .faq-icon { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, rgb(var(--lilac)), rgb(var(--teal-100))); display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--brand-fg)); font-size: 1.75rem; margin-bottom: 20px; }
.faq-head h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); letter-spacing: -0.045em; line-height: 1.02; }
.faq-head p { color: rgb(var(--ink-500)); margin-top: 14px; }
.faq details { border-bottom: 1px solid rgb(var(--ink-200)); }
.faq details:first-child { border-top: 1px solid rgb(var(--ink-400) / .6); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; padding: 18px 0; cursor: pointer; list-style: none; font-size: clamp(1.125rem, 1.7vw, 1.3125rem); font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { font-size: 1.5rem; transition: transform 250ms var(--ease-settle); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq p { padding: 0 0 24px; color: rgb(var(--ink-700)); max-width: 62ch; }

/* Footer */
.footer { padding-block: 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 48px); padding-block: clamp(48px, 6vw, 72px); }
.footer-brand img { width: 170px; }
.footer-brand p { color: rgb(var(--ink-500)); margin-top: 16px; max-width: 30ch; }
.footer-col h2 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: rgb(var(--ink-500)); text-decoration: none; padding: 5px 0; font-size: .9688rem; }
.footer-col a:hover { color: rgb(var(--brand-fg)); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding-top: 22px; border-top: 1px solid rgb(var(--ink-200)); color: rgb(var(--ink-500)); font-size: .9375rem; }
.footer-legal nav { display: flex; gap: 18px; }
.footer-legal a { color: inherit; }
.socials { display: flex; gap: 6px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--ink-500)); transition: background-color 150ms, color 150ms; }
.socials a:hover { background: rgb(var(--ink-100)); color: rgb(var(--ink-900)); }
.bubble-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgb(var(--brand-50)); color: rgb(var(--brand-fg)); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8125rem; }
.section { padding-block: var(--section); }
.section.is-tight { padding-block: clamp(32px, 4.5vw, 60px); }


/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(44px, 7vw, 96px) clamp(28px, 4vw, 56px); }
.page-title { font-size: clamp(2.75rem, 7.5vw, 6rem); font-weight: 700; letter-spacing: -0.05em; line-height: .96; max-width: 15ch; }
.page-line { font-size: clamp(1.125rem, 1.8vw, 1.375rem); color: rgb(var(--ink-500)); margin-top: clamp(16px, 2vw, 24px); max-width: 46ch; line-height: 1.35; }
.crumb { margin-bottom: 16px; }
.crumb a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: rgb(var(--ink-700)); text-decoration: none; font-weight: 500; }
.crumb a:hover { color: rgb(var(--brand-fg)); }
.prose { max-width: 68ch; color: rgb(var(--ink-700)); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); color: rgb(var(--ink-900)); margin-top: 1.6em; }
.prose h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); color: rgb(var(--ink-900)); margin-top: 1.5em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: 16px; }
.prose .lead { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 500; line-height: 1.22; letter-spacing: -0.022em; color: rgb(var(--ink-900)); }
.signoff { font-style: italic; color: rgb(var(--ink-900)); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px !important; }
.prose-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(36px, 6vw, 96px); padding-block: clamp(24px, 4vw, 56px) var(--section); align-items: start; }
.prose-side { border-radius: var(--radius); background: rgb(var(--soft)); padding: 24px; display: grid; gap: 10px; }
.prose-side h2 { font-size: 1.25rem; margin-top: 8px; }
.prose-side p { color: rgb(var(--ink-700)); }
.contents-list { border-top: 1px solid rgb(var(--ink-200)); }
.contents-list li { border-bottom: 1px solid rgb(var(--ink-200)); }
.contents-list a { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 28px; gap: 8px 20px; align-items: baseline; padding: clamp(18px, 2vw, 26px) 0; color: inherit; text-decoration: none; }
.contents-num { color: rgb(var(--ink-500)); font-variant-numeric: tabular-nums; font-size: .9375rem; }
.contents-name { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; transition: color 180ms, transform 280ms var(--ease-settle); }
.contents-sub { color: rgb(var(--ink-500)); font-size: 1rem; line-height: 1.42; }
.contents-list .i { font-size: 1.375rem; align-self: center; color: rgb(var(--ink-400)); transition: color 180ms, transform 240ms var(--ease-settle); }
.contents-list a:hover .contents-name { color: rgb(var(--brand-fg)); transform: translateX(8px); }
.contents-list a:hover .i { color: rgb(var(--brand-fg)); transform: translate(3px, -3px); }

/* ---------- Legal pages (terms, privacy): numbered sections + a sticky jump rail ---------- */
.legal-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 14px; border-radius: 999px; background: rgb(var(--warning) / .12); color: rgb(var(--ink-700)); font-size: .8125rem; font-weight: 600; margin-bottom: 16px; }
.legal-badge i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--warning)); flex: none; }
.legal-body { counter-reset: legal; }
.legal-section { counter-increment: legal; scroll-margin-top: 96px; }
.legal-section + .legal-section { margin-top: 2.4em; padding-top: 2.4em; border-top: 1px solid rgb(var(--ink-200)); }
.legal-section h2 { display: flex; align-items: baseline; gap: 14px; margin-top: 0; }
.legal-section h2::before { content: counter(legal, decimal-leading-zero); font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; color: rgb(var(--brand-fg)); letter-spacing: .02em; transform: translateY(-2px); }
.legal-nav { position: sticky; top: 96px; }
.legal-nav h2 { font-size: 1.0625rem; margin-top: 0; }
.legal-nav ol { list-style: none; padding: 0; margin-top: 4px; display: grid; gap: 2px; counter-reset: legalnav; }
.legal-nav li { counter-increment: legalnav; }
.legal-nav a { display: flex; align-items: baseline; gap: 10px; min-height: 40px; padding: 0 4px; border-radius: 10px; color: rgb(var(--ink-700)); text-decoration: none; font-size: .9375rem; transition: color 150ms, background-color 150ms; }
.legal-nav a::before { content: counter(legalnav, decimal-leading-zero); font-size: .75rem; font-variant-numeric: tabular-nums; color: rgb(var(--ink-400)); flex: none; }
.legal-nav a:hover { color: rgb(var(--brand-fg)); background: rgb(var(--surface)); }
.legal-contact { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgb(var(--ink-200)); }
@media (max-width: 860px) { .legal-nav { position: static; } }
.article { padding-block: clamp(36px, 6vw, 72px) 0; }
.article-title { font-size: clamp(2.5rem, 6.5vw, 5.5rem); font-weight: 700; letter-spacing: -0.05em; line-height: .98; max-width: 17ch; }
.article-title.is-post { font-size: clamp(2.25rem, 5.4vw, 4.75rem); max-width: 20ch; line-height: 1.02; }
.article-image { margin-block: clamp(28px, 4vw, 48px); }
.article-image img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: var(--radius); }
.article-body { padding-bottom: clamp(32px, 5vw, 64px); margin-inline: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.team-card { border-radius: var(--radius); background: rgb(var(--soft)); border: 1px solid rgb(var(--ink-200) / .7); padding: 24px; }
.team-photo { width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(135deg, rgb(var(--lilac)), rgb(var(--lilac-2))); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initial { font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; color: rgb(var(--brand-fg)); }
.team-card h3 { font-size: 1.375rem; margin-top: 18px; }
.team-card p { color: rgb(var(--ink-500)); margin-top: 4px; }
.team-social { display: flex; gap: 8px; margin-top: 14px !important; }
.team-social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgb(var(--surface)); border: 1px solid rgb(var(--ink-200)); color: rgb(var(--ink-700)); transition: color 150ms, border-color 150ms; }
.team-social a .i { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) { .team-social a:hover { color: rgb(var(--brand-fg)); border-color: rgb(var(--brand-500)); } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); padding-bottom: var(--section); align-items: start; }
.contact-big { display: block; font-size: clamp(1.375rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.2; color: rgb(var(--ink-900)); text-decoration: none; overflow-wrap: anywhere; }
.contact-big:hover { color: rgb(var(--brand-fg)); }
.contact-address { margin-top: 10px; color: rgb(var(--ink-700)); max-width: 34ch; }
.contact-details h2 { font-size: 1.25rem; margin: 32px 0 6px; }
.form-card { border-radius: var(--radius); background: rgb(var(--soft)); border: 1px solid rgb(var(--ink-200) / .7); padding: clamp(20px, 3vw, 36px); }
.form-card h2 { font-size: 1.625rem; margin-bottom: 18px; }

/* ---------- Plain forms ---------- */
.field { margin-bottom: 16px; min-width: 0; }
.field label, .field-label { display: block; font-weight: 500; margin-bottom: 6px; }
input:not([type="radio"], [type="checkbox"], [type="file"]), textarea, select { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: inherit; background: rgb(var(--surface)); border: 1px solid rgb(var(--ink-200)); border-radius: 12px; transition: border-color 150ms, box-shadow 150ms; }
input:not([type="radio"], [type="checkbox"]):focus, textarea:focus, select:focus { outline: none; border-color: rgb(var(--brand-500)); box-shadow: 0 0 0 4px rgb(var(--brand-500) / .14); }
.field-note { color: rgb(var(--ink-500)); font-size: .9375rem; margin-top: 8px; }
.form-error { color: rgb(var(--danger)); font-weight: 500; margin-block: 12px; }
.form-ok { color: rgb(var(--success)); font-weight: 500; margin-block: 12px; }
.trap { position: absolute; left: -9999px; }

/* Checkboxes and radios: one custom look */
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; width: 20px; height: 20px; border: 1.5px solid rgb(var(--ink-400)); border-radius: 6px;
  background: rgb(var(--surface)) center / 13px 13px no-repeat; cursor: pointer; transition: background-color 120ms, border-color 120ms;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked { background-color: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
input[type="radio"]:checked { border-color: rgb(var(--brand-600)); background-color: rgb(var(--brand-600)); box-shadow: inset 0 0 0 4px rgb(var(--surface)); }

/* ---------- Step forms: request a tutor, become a tutor, schools ---------- */
.form-page { padding-bottom: var(--section); }
.stepform { max-width: 760px; scroll-margin-top: 96px; }
.sf-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sf-count { flex: none; font-size: .875rem; font-weight: 600; color: rgb(var(--ink-500)); font-variant-numeric: tabular-nums; min-width: 92px; }
.sf-bar { flex: 1; height: 4px; border-radius: 4px; background: rgb(var(--ink-100)); overflow: hidden; }
.sf-bar i { display: block; height: 100%; background: rgb(var(--brand-600)); transform-origin: left; transform: scaleX(0); transition: transform 420ms var(--ease-settle); }
.sf-step { border-radius: 28px; background: rgb(var(--surface)); border: 1px solid rgb(var(--ink-200)); box-shadow: 0 24px 60px rgb(var(--shadow) / .06); padding: clamp(24px, 4.5vw, 48px);
  transition: opacity 260ms var(--ease-settle), transform 320ms var(--ease-settle), filter 260ms var(--ease-settle); }
.sf-step.sf-enter { opacity: 0; transform: translateX(14px); filter: blur(2px); }
.sf-step.sf-enter[data-dir="back"] { transform: translateX(-14px); }
.sf-title { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; outline: none; }
.sf-lead { margin-top: 10px; color: rgb(var(--ink-500)); font-size: 1.0625rem; max-width: 52ch; }
.sf-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 16px; margin-top: clamp(24px, 3.5vw, 36px); }
.sf-field { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.sf-field.is-wide { grid-column: 1 / -1; }
.sf-field > label, .sf-field legend, .sf-label-wrap { font-weight: 600; font-size: .9688rem; padding: 0; }
.sf-field legend { margin-bottom: 8px; }
.sf-optional { font-weight: 400; color: rgb(var(--ink-500)); }
.sf-hint { color: rgb(var(--ink-500)); font-size: .875rem; margin-top: -2px; }
.sf-error { color: rgb(var(--danger)); font-size: .875rem; font-weight: 500; }
.sf-field input[aria-invalid], .sf-field textarea[aria-invalid] { border-color: rgb(var(--danger)); }
.sf-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-choice { position: relative; display: inline-flex; cursor: pointer; }
.sf-choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.sf-choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgb(var(--ink-200)); background: rgb(var(--surface)); font-weight: 500; color: rgb(var(--ink-700)); transition: background-color 150ms, border-color 150ms, color 150ms, transform 120ms var(--ease-settle); }
.sf-choice input:checked + span { background: rgb(var(--ink-900)); border-color: rgb(var(--ink-900)); color: rgb(var(--surface)); }
.sf-choice input[type="checkbox"]:checked + span::before { content: ""; width: 14px; height: 14px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.sf-choice input:focus-visible + span { outline: 2px solid rgb(var(--brand-500)); outline-offset: 2px; }
.sf-choice:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .sf-choice:hover input:not(:checked) + span { border-color: rgb(var(--ink-400)); color: rgb(var(--ink-900)); } }
.sf-file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 8px 0 18px; border-radius: 14px; border: 1.5px dashed rgb(var(--ink-400) / .7); background: rgb(var(--soft)); color: rgb(var(--ink-700)); cursor: pointer; }
.sf-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sf-file:focus-within { border-color: rgb(var(--brand-500)); }
.sf-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-file-btn { flex: none; padding: 8px 14px; border-radius: 10px; background: rgb(var(--surface)); border: 1px solid rgb(var(--ink-200)); font-weight: 600; font-size: .875rem; }
.sf-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: clamp(28px, 4vw, 40px); padding-top: 20px; border-top: 1px solid rgb(var(--ink-100)); }
.sf-actions .btn .i { font-size: .95em; }
.sf-review { display: grid; gap: 12px; margin-top: 24px; }
.sf-review-group { border-radius: 18px; background: rgb(var(--soft)); padding: 18px 20px; }
.sf-review-group header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sf-review-group h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.sf-edit { border: 0; background: none; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; font: inherit; font-weight: 600; color: rgb(var(--brand-fg)); cursor: pointer; }
.sf-edit:hover { background: rgb(var(--brand-50)); }
.sf-review dl { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 6px 18px; }
.sf-review dt { color: rgb(var(--ink-500)); font-size: .9375rem; }
.sf-review dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.sf-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sf-done-mark { width: 64px; height: 64px; border-radius: 50%; background: rgb(var(--teal-100)); color: rgb(var(--teal-500)); display: inline-flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 14px; }
.sf-done .btn { margin-top: 24px; }
.sf-job { display: flex; gap: 12px; align-items: center; max-width: 760px; margin-bottom: 16px; padding: 14px 18px; border-radius: 16px; background: rgb(var(--teal-100)); }
.sf-job .i { color: rgb(var(--teal-500)); font-size: 1.25rem; }
.page-head.is-compact { padding-block: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 32px); }
.page-head.is-compact .page-title { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.page-head.is-compact .page-line { font-size: 1.125rem; margin-top: 12px; }


/* ---------- Comments and sharing under a post ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 8px 28px; }
.share > span { color: rgb(var(--ink-500)); font-size: .9375rem; margin-right: 6px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(var(--ink-200)); background: rgb(var(--surface)); color: rgb(var(--ink-900)); font: inherit; font-size: .9375rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color 150ms, background-color 150ms; }
.share a:hover, .share button:hover { border-color: rgb(var(--ink-900)); }
.share .is-copied { border-color: rgb(var(--success)); color: rgb(var(--success)); }
.comments { max-width: 760px; padding-bottom: var(--section); }
.comments h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.035em; }
.comment-list { display: grid; gap: 14px; margin: 24px 0 36px; }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.comment .bubble-avatar { width: 40px; height: 40px; font-size: 1rem; }
.comment-body { border-radius: 4px 18px 18px 18px; background: rgb(var(--soft)); padding: 12px 16px; }
.comment-body b { font-weight: 600; }
.comment-body time { color: rgb(var(--ink-500)); font-size: .875rem; margin-left: 8px; }
.comment-body p { margin-top: 4px; color: rgb(var(--ink-700)); white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { border-radius: var(--radius); background: rgb(var(--soft)); padding: clamp(18px, 3vw, 28px); }
.comment-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* ---------- Genie, the AI assistant ---------- */
.genie-orb { flex: none; width: 22px; height: 22px; border-radius: 50%; position: relative; isolation: isolate;
  background: conic-gradient(from var(--orb-a, 0deg), rgb(150 92 255), rgb(240 120 200), rgb(80 200 170), rgb(110 140 255), rgb(150 92 255));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35), 0 2px 8px rgb(120 70 200 / .35); animation: orb-spin 8s linear infinite; }
.genie-orb::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: rgb(255 255 255 / .55); filter: blur(3px); }
.genie-orb.is-lg { width: 56px; height: 56px; }
.genie-orb.is-md { width: 30px; height: 30px; }
.genie-orb.is-thinking { animation: orb-spin 1.6s linear infinite, orb-breathe 1.6s ease-in-out infinite; }
@property --orb-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orb-spin { to { --orb-a: 360deg; } }
@keyframes orb-breathe { 50% { transform: scale(.86); } }

.genie-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 14px; border: 1px solid rgb(255 255 255 / .1); border-radius: 999px;
  background: rgb(22 14 40); color: #fff; font: inherit; font-weight: 600; letter-spacing: -0.01em; box-shadow: 0 12px 34px rgb(22 14 40 / .3); cursor: pointer;
  transition: transform 200ms var(--ease-settle), opacity 160ms ease-out, box-shadow 200ms; }
.genie-launcher:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .genie-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgb(22 14 40 / .36); } }
.genie-launcher[aria-expanded="true"] { opacity: 0; transform: scale(.9); pointer-events: none; }
:root[data-theme="dark"] .genie-launcher { background: rgb(var(--ink-900)); color: rgb(var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .genie-launcher { background: rgb(var(--ink-900)); color: rgb(var(--surface)); } }
.genie-hello { position: fixed; right: 20px; bottom: 84px; z-index: 70; display: flex; gap: 12px; align-items: flex-start; max-width: 320px; padding: 14px 40px 14px 14px; border-radius: 18px; background: rgb(var(--surface)); border: 1px solid rgb(var(--ink-200)); box-shadow: 0 16px 40px rgb(var(--shadow) / .16); font-size: .9375rem; line-height: 1.45; cursor: pointer;
  transform-origin: bottom right; animation: genie-pop 260ms var(--ease-settle); }
.genie-hello b { display: block; margin-bottom: 2px; }
.genie-hello .icon-btn { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; font-size: .875rem; color: rgb(var(--ink-500)); }

.genie-panel { position: fixed; right: 20px; bottom: 20px; z-index: 71; width: min(420px, calc(100vw - 24px)); height: min(680px, calc(100dvh - 40px)); display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden; background: rgb(var(--surface)); border: 1px solid rgb(var(--ink-200)); box-shadow: 0 30px 90px rgb(var(--shadow) / .26), 0 2px 6px rgb(var(--shadow) / .06);
  transform-origin: bottom right; animation: genie-pop 240ms var(--ease-settle); }
.genie-panel.is-closing { animation: genie-out 150ms ease-out forwards; }
.genie-panel.is-wide { width: min(760px, calc(100vw - 40px)); height: calc(100dvh - 40px); }
@keyframes genie-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes genie-out { to { opacity: 0; transform: translateY(6px) scale(.97); } }
.genie-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; border-bottom: 1px solid rgb(var(--ink-100)); }
.genie-head b { display: block; font-size: .9688rem; letter-spacing: -0.01em; }
.genie-head small { display: block; color: rgb(var(--ink-500)); font-size: .8125rem; }
.genie-live { display: flex !important; align-items: center; gap: 5px; }
.genie-live i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--teal-500)); flex: none; animation: genie-live-pulse 2s ease-in-out infinite; }
@keyframes genie-live-pulse { 50% { opacity: .35; } }
.genie-head .tools { margin-left: auto; display: flex; gap: 2px; }
.genie-head .icon-btn { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; color: rgb(var(--ink-500)); }
.genie-head .icon-btn:hover { color: rgb(var(--ink-900)); }
.genie-log { flex: 1; overflow-y: auto; padding: 20px 18px 8px; display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth; overscroll-behavior: contain; }
.genie-panel.is-wide .genie-log { padding-inline: max(18px, calc((100% - 640px) / 2)); }
.genie-empty { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 12px 4px; }
.genie-empty h3 { font-size: 1.5rem; letter-spacing: -0.03em; margin-top: 8px; }
.genie-empty p { color: rgb(var(--ink-500)); font-size: .9375rem; max-width: 34ch; }
.genie-suggest { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 14px; }
.genie-suggest a, .genie-suggest button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid rgb(var(--ink-200)); background: rgb(var(--soft)); color: rgb(var(--ink-900)); font: inherit; font-size: .875rem; font-weight: 500; line-height: 1.3; text-align: left; text-decoration: none; cursor: pointer; transition: border-color 150ms, background-color 150ms, transform 120ms var(--ease-settle); }
.genie-suggest .i { color: rgb(var(--brand-fg)); font-size: 1rem; }
.genie-suggest a:active, .genie-suggest button:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .genie-suggest a:hover, .genie-suggest button:hover { border-color: rgb(var(--brand-500) / .6); background: rgb(var(--brand-50)); } }
.g-msg { display: flex; gap: 10px; animation: g-in 220ms var(--ease-settle); }
@keyframes g-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.g-msg.is-user { justify-content: flex-end; }
.g-msg.is-user .g-text { max-width: 82%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: rgb(var(--ink-100)); }
.g-msg.is-ai .genie-orb { margin-top: 2px; }
.g-msg.is-ai .g-body { min-width: 0; flex: 1; display: grid; gap: 10px; }
.g-text { font-size: .9688rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.g-text a { color: rgb(var(--brand-fg)); font-weight: 600; text-underline-offset: 3px; }
.g-thinking { color: rgb(var(--ink-500)); font-size: .9375rem; animation: thinking 1.4s ease-in-out infinite; }
@keyframes thinking { 50% { opacity: .45; } }
.g-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.g-opts button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(var(--ink-200)); background: rgb(var(--surface)); color: rgb(var(--ink-900)); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; transition: border-color 150ms, background-color 150ms; }
.g-opts button:hover:not(:disabled) { border-color: rgb(var(--brand-500)); }
.g-opts button:disabled { opacity: .45; cursor: default; }
.g-opts button.is-picked { background: rgb(var(--ink-900)); color: rgb(var(--surface)); border-color: transparent; opacity: 1; }
.genie-composer { margin: 8px 12px 6px; display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 20px; border: 1px solid rgb(var(--ink-200)); background: rgb(var(--surface)); box-shadow: 0 2px 10px rgb(var(--shadow) / .05); transition: border-color 150ms, box-shadow 150ms; }
.genie-composer:focus-within { border-color: rgb(var(--brand-500)); box-shadow: 0 0 0 4px rgb(var(--brand-500) / .12); }
.genie-composer textarea { flex: 1; min-height: 36px !important; max-height: 140px; padding: 7px 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; resize: none; font-size: .9688rem; line-height: 1.45; border-radius: 0 !important; }
.genie-panel.is-wide .genie-composer, .genie-panel.is-wide .genie-note { width: min(640px, calc(100% - 24px)); margin-inline: auto; }
.genie-send { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(var(--ink-900)); color: rgb(var(--surface)); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity 150ms, transform 120ms var(--ease-settle); }
.genie-send:disabled { opacity: .25; cursor: default; }
.genie-send:active:not(:disabled) { transform: scale(0.92); }
.genie-note { padding: 0 16px 12px; text-align: center; font-size: .75rem; color: rgb(var(--ink-500)); }


/* ---------- Toasts and dialogs ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: rgb(var(--ink-900)); color: rgb(var(--surface)); padding: 14px 16px; border-radius: 14px; box-shadow: 0 16px 40px rgb(var(--shadow) / .2); animation: toast-in 250ms var(--ease-settle); }
.toast.is-bad { background: rgb(var(--danger)); color: #fff; }
.toast.is-leaving { opacity: 0; transition: opacity 200ms var(--ease-exit); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
dialog.dialog { border: 0; padding: 0; width: min(520px, calc(100vw - 32px)); color: inherit; background: rgb(var(--surface)); border-radius: 22px; box-shadow: 0 24px 60px rgb(var(--shadow) / .28); }
dialog.dialog::backdrop { background: rgb(var(--shadow) / .5); }
.dialog-grabber { display: none; }
.dialog-head { display: flex; justify-content: space-between; gap: 12px; padding: 22px 22px 6px; }
.dialog-head h2 { font-size: 1.5rem; }
.dialog-body { padding: 8px 22px 16px; }
.dialog-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 8px 22px 22px; }
.state { padding: 28px 0; }
.state h3 { font-size: 1.25rem; margin-bottom: 6px; }
.state-icon { display: none; }

@view-transition { navigation: auto; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .nav-links, .nav-signin { display: none; }
  .nav-menu { display: block; }
  .nav-end { margin-left: auto; }
}
@media (max-width: 960px) {
  .prose-split, .contact-grid, .faq-section, .glow-panel, .panel-feature, .how-head { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .how-cards { grid-template-columns: minmax(0, 1fr); }
  .how-card { min-height: 460px; }
  .band { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .journal-grid, .journal-grid.is-full { grid-template-columns: minmax(0, 1fr); }
  .journal-grid .is-lead, .journal-grid.is-full .is-lead { grid-row: auto; grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .voice { grid-template-columns: minmax(0, 1fr); }
  .voice-mark { width: 88px; font-size: 2.25rem; border-radius: 20px; }
  .glow-panel { padding-right: clamp(32px, 5vw, 80px); }
  .glow-panel-art { min-height: 360px; margin-inline: 0 calc(-1 * clamp(32px, 5vw, 80px)); }
  .job-float { left: 0; }
  .contents-list a { grid-template-columns: minmax(0, 1fr) 24px; }
  .contents-sub { grid-column: 1; grid-row: 2; }
  .contents-list .i { grid-column: 2; grid-row: 1; }
}
@media (max-width: 720px) {
  .nav-inner { min-height: 64px; gap: 8px; }
  body:not(.has-cover) main { padding-top: 64px; }
  .nav-sheet { inset: 64px 0 0 0; }
  .nav-logo { width: 124px; }
  .nav-book { min-height: 40px; padding: 0 12px; font-size: .875rem; }
  .cover.has-side .cover-body { display: flex; }
  .cover-side { margin-top: 0; width: 72%; align-self: flex-end; order: 2; }
  .cover.has-side .cover-foot { order: 3; }
  .cover-title { font-size: clamp(3.5rem, 18vw, 6.5rem); }
  .cover.is-masthead .cover-title { white-space: normal; font-size: clamp(3.25rem, 16.5vw, 6.5rem); }
  .cover-lines { margin-left: 0; width: 100%; }
  .cover-lines li { flex: 1 1 100%; }
  .cover-lines a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .cover-foot .btn { width: 100%; }
  .rail-nav { display: none; }
  .photo-card { aspect-ratio: 0.82; }
  .rail-track { grid-auto-columns: 84vw; }
  .sf-fields { grid-template-columns: minmax(0, 1fr); }
  .sf-step { border-radius: 22px; }
  .sf-actions .btn-lg { flex: 1; }
  .sf-review dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .sf-review dd { margin-bottom: 8px; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .job .round { display: none; }
  .job-summary { grid-column: auto; }
  .comment-form .row { grid-template-columns: minmax(0, 1fr); }
  .genie-panel, .genie-panel.is-wide { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .genie-launcher > span:not(.genie-orb) { display: none; }
  .genie-launcher { padding: 0; width: 56px; min-height: 56px; justify-content: center; right: 16px; bottom: 16px; }
  .genie-launcher .genie-orb { width: 26px; height: 26px; }
  .genie-hello { right: 16px; left: 16px; max-width: none; bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .will-reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
@media print { .nav, .genie-launcher, .genie-panel, .genie-hello, .share, .comment-form, .footer, .cover { display: none !important; } }

