/* site.css: built by the forge (forge/scripts/build.mjs) from seed.json (kind tutoring). The brand's colors are the tokens
   in :root below, written from the seed; nothing after this block names a color. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fraunces-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/figtree-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/figtree-latin-600-normal.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --bg: #f8f3ec;
  --bg-2: #fffcf6;
  --bg-3: #efe7da;
  --line: #ddd3c3;
  --line-2: #8c8270;
  --text: #06142c;
  --text-2: #44506a;
  --accent: #0a1c38;
  --accent-2: #f5d656;
  --accent-3: #22406f;
  --accent-ink: #f8f3ec;
  --focus: #0a1c38;
  --mask: #000000;
  --radius: 999px;
  --radius-card: 20px;
  --control: 2.75rem;
  --gutter: 16px;
  --measure: 62ch;
  --beats-h: min(46svh, 24rem);
  --font-display: 'Fraunces', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-weight: 600;
  --display-stretch: 100%;
  --display-case: none;
  --display-tracking: -0.012em;
  --object-w: 1280;
  --object-h: 720;
  --stage-h: 304svh;
  --focus-x: 60%;
  --focus-y: 50%;
}
@media (max-height: 720px) {
  :root {
    --beats-h: min(58svh, 22rem);
  }
}

/* ---- base.css: what every kind shares (forge/kinds/_shared). Tokens only: every color is a var() from the
   :root block above, written from the seed, so a light seed is only other values. Gold Coast's look, generalized. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* display type: the seed's face, weight, width and case (condensed caps are allowed here, never in body copy) */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  line-height: 1.04;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
/* the one accent inside a sentence: a word a title marks with *asterisks* */
em.accent {
  font-style: normal;
  color: var(--accent);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 50;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: var(--gutter);
}

/* ---- buttons: ONE filled accent button per viewport (the primary action); every other one is a ghost --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--control);
  padding: 0 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  padding-block: 0.45rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition-property: background-color, border-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.btn:active {
  scale: 0.96;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.btn-primary:hover {
  background: var(--accent-3);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: transparent;
  font-variant-numeric: tabular-nums;
}
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--line-2), var(--text) 35%);
  background: var(--bg-3);
}

/* ---- header: over the stage, frosted ------------------------------------------------------------------ */
:root {
  --top-h: 4.5rem;
}
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--top-h);
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.top .brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-radius: 4px;
  text-decoration: none;
}
.top .brand img {
  height: 2.7rem;
  width: auto;
}
.wordmark {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  font-size: 1.15rem;
  line-height: 1.1;
}
.demo-tag {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.top .btn {
  min-height: 2.75rem;
  font-size: 0.9rem;
  white-space: nowrap; /* a header button never wraps: the wordmark gives way instead */
}
.top .brand {
  min-width: 0;
}
@media (max-width: 599px) {
  .top .brand img {
    height: 2.1rem;
  }
  .hide-sm {
    display: none;
  }
  .wordmark {
    font-size: 1rem;
  }
}
@media (max-width: 419px) {
  .top .demo-tag {
    display: none; /* the footer still says it is a demo */
  }
}

/* ---- the stage's copy (its layout is stage.css) ---------------------------------------------------------- */
main {
  margin-top: calc(-1 * var(--top-h)); /* the header sits over the stage */
}
.beat h1,
.beat h2 {
  font-size: clamp(1.75rem, 0.9rem + 3.2vw, 3rem);
  color: var(--text);
}
@media (max-height: 620px) {
  .beat h1,
  .beat h2 {
    font-size: 1.55rem;
  }
}
.beat .lede {
  margin: 1rem auto 0;
  max-width: 38rem;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  line-height: 1.5;
  color: var(--text-2);
}
.eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-height: 620px) {
  .eyebrow {
    margin-bottom: 0.55rem;
  }
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

/* ---- after the stage ------------------------------------------------------------------------------------- */
.after {
  position: relative;
  background: var(--bg);
}
.wrap {
  position: relative;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 5rem 0 2rem;
}
.section h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
}
.section h2 + p {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--text-2);
  font-size: 1.05rem;
}

.services {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3rem;
}
@media (min-width: 720px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}
.services li {
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.services h3 {
  font-size: 1.15rem;
}
.services p {
  margin-top: 0.4rem;
  color: var(--text-2);
}

.reviews {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reviews p {
  flex: 1 1 22rem;
  color: var(--text-2);
}
.quote {
  margin: 2rem 0 0;
  max-width: var(--measure);
}
.quote blockquote {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
}
.quote figcaption {
  margin-top: 0.6rem;
  color: var(--text-2);
}

.card {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .card {
    grid-template-columns: 1fr 1fr;
    padding: 2.25rem;
  }
}
.card h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.card address {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.35rem;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.25;
}
.card .map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.card .lines {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.35rem;
}
.card h3 + .lines {
  margin-top: 0.6rem;
}
.card .lines a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: clamp(1rem, 0.6rem + 1.6vw, 1.2rem);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.card .lines a:hover {
  color: var(--accent-3);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hours {
  margin: 0.6rem 0 0;
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.hours th,
.hours td {
  padding: 0.55rem 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.hours tr:first-child th,
.hours tr:first-child td {
  border-top: 0;
}
.hours th {
  color: var(--text-2);
  width: 55%;
}
.open-state {
  margin-top: 0.9rem;
  min-height: 1.5rem;
  color: var(--text-2);
}
.open-state[data-open='true'] {
  color: var(--accent-3);
}
.map {
  grid-column: 1 / -1;
  margin: 0;
}
.map iframe {
  width: 100%;
  height: 22rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-3);
}

/* ---- footer ---------------------------------------------------------------------------------------------- */
.foot .foot-row {
  margin-top: 4rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.85rem;
  color: var(--text-2);
}
.foot img {
  height: 2rem;
  width: auto;
}
.foot p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.foot a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.demo-line {
  padding: 0 0 2rem;
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ---- 404 ------------------------------------------------------------------------------------------------- */
main.lost {
  margin-top: 0;
  padding: 6rem 0 4rem;
}
.lost h1 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem);
}
.lost p {
  margin-top: 1rem;
  color: var(--text-2);
}
.lost .actions {
  justify-content: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ---- tutoring (forge/kinds/tutoring): the composer first, the film behind, the page on the light glass ------------ */
/* Copied from the practice kind and adapted. The film runs behind the whole page (stage/backdrop.css). The FIRST thing
   on the page is the consultation composer: its words sit on the film's first frame, the brand's paper as their ink,
   over a soft shade, and the composer itself is ONE solid paper card, the only card on the page. Then the beats (h2)
   on the film, and the page on the light glass in one wide column with hairlines between its parts.
   Two accents, one per ground: on the paper the filled button is --accent; on the film (the composer's words, the
   beats, the header over the film) the accent is --accent-2, its ink --accent (the build checks that pair, kind.json
   "filmAccent"). */
:root {
  --band: var(--accent); /* the accent as the paper knows it, kept for the film's button ink */
  --gold: var(--accent-2); /* the accent on the film: the marked word, the dots, the filled button there */
  --accent-on-film: var(--gold);
  --shade: color-mix(in srgb, var(--text) 30%, var(--mask));
}

/* words on the film (the composer's words and its call line, the beats, and the header while it is over the film): the
   paper is the ink, by the tokens, so every rule that reads them follows; the filled button there is the film's accent
   with the paper's accent as its ink */
.consult-words,
.consult-call,
.stage.backdrop .stage-pin,
.js[data-stage='backdrop']:not(.on-glass) .top {
  --text: var(--bg);
  --text-2: color-mix(in srgb, var(--bg) 86%, transparent);
  --line: color-mix(in srgb, var(--bg) 22%, transparent);
  --line-2: color-mix(in srgb, var(--bg) 70%, transparent);
  --bg-3: color-mix(in srgb, var(--bg) 16%, transparent);
  --focus: var(--bg);
  --accent: var(--gold);
  --accent-3: color-mix(in srgb, var(--gold) 82%, var(--bg));
  --accent-ink: var(--band);
  color: var(--text);
}

/* the header: always a strip, so the composer's card and the beats never pass under bare words. Over the film it is the
   brand's band (the paper is its ink); from the moment the stage leaves it is a strip of the light glass. Reduced motion
   is on the glass from the start (stage.js glass()); without JavaScript it is the glass's strip too. */
.top {
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
}
.js[data-stage='backdrop']:not(.on-glass) .top {
  background: var(--band);
  border-bottom-color: color-mix(in srgb, var(--gold) 55%, transparent);
}
.on-glass .top,
:root:not(.js)[data-glass] .top {
  background: var(--glass-bar);
  border-bottom-color: var(--line);
}
.top nav {
  gap: 0.15rem;
}
.top nav .btn {
  border-color: transparent;
}
.top .call {
  font-variant-numeric: tabular-nums;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 1.2rem;
  color: var(--text);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .wordmark {
    font-size: 1.05rem;
  }
}
@media (max-width: 480px) {
  .top .call-words {
    display: none;
  }
  .top .call {
    padding-inline: 0.6rem;
  }
}
@media (max-width: 359px) {
  .wordmark {
    font-size: 0.95rem;
  }
  .top {
    gap: 0.5rem;
  }
}

/* the shade: on the copy's side of the frame, never a box. Desktop: from the left, where the composer's words and the
   beats sit, plus a band under the header. Phones: from the top. Reduced motion or no JavaScript: even. */
.stage.backdrop .object::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--shade) 45%, transparent) 0, transparent 7rem),
    linear-gradient(90deg, color-mix(in srgb, var(--shade) 72%, transparent) 0%, color-mix(in srgb, var(--shade) 60%, transparent) 42%, color-mix(in srgb, var(--shade) 24%, transparent) 62%, transparent 80%);
}
@media (max-width: 700px) {
  .stage.backdrop .object::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--shade) 70%, transparent) 0%, color-mix(in srgb, var(--shade) 50%, transparent) 40%, color-mix(in srgb, var(--shade) 18%, transparent) 70%, transparent 90%);
  }
}
.stage.backdrop.static .object::after,
:root:not(.js) .stage.backdrop .object::after {
  background: color-mix(in srgb, var(--shade) 58%, transparent);
}

/* ---- the composer: first on the page, its words on the film, its card the one clean page ------------------------ */
/* the header is fixed over the page's top, so the composer starts below it */
.consult {
  position: relative;
  z-index: 1;
  padding: calc(var(--top-h) + clamp(1.25rem, 5svh, 3.5rem)) 0 clamp(2.5rem, 9svh, 6rem);
}
.consult-in {
  width: min(72rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  display: grid;
  gap: 1.25rem 4rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 900px) {
  .consult-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 29rem);
    min-height: calc(100svh - var(--top-h) - 8svh);
  }
  .consult-words {
    grid-column: 1;
    grid-row: 1;
  }
  /* the call line sits under the card, as on a phone */
  .consult-card {
    grid-column: 2;
    grid-row: 1;
  }
  .consult-call {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    text-align: center;
  }
}
.consult-words h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.4rem);
  line-height: 1.02;
  max-width: 14ch;
}
/* 25ch: the ad's two short sentences, one to a line */
.consult-words .lede {
  margin-top: 1rem;
  max-width: 25ch;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  color: var(--text-2);
}
.consult-words h1,
.consult-words .lede,
.consult-words .eyebrow,
.consult-call {
  text-shadow: 0 1px 22px color-mix(in srgb, var(--shade) 70%, transparent);
}
.consult-call {
  margin: 0;
  font-size: 1rem;
  color: var(--text-2);
}
.consult-call a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-underline-offset: 4px;
}
@media (max-width: 899px) {
  .consult-words h1 {
    max-width: 18ch;
  }
  .consult-call {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .consult {
    padding-top: calc(var(--top-h) + 1rem);
  }
  .consult-in {
    gap: 1rem;
  }
  .consult-words .eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
  .consult-words h1 {
    font-size: clamp(1.7rem, 1.1rem + 3vw, 2.1rem);
  }
  .consult-words .lede {
    margin-top: 0.5rem;
    font-size: 1rem;
  }
}

/* the card: the ad's paper, the one solid surface on the page. Radii are concentric (28 = the fields' 10 + the
   card's 18 of padding on a phone); depth is a soft two-layer shadow, never a border; the ad's gold rule across its top */
.consult-card {
  position: relative;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
  padding: 1.6rem 1.125rem 1.25rem;
  border-radius: 28px;
  background: var(--bg);
  color: var(--text);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--mask) 18%, transparent),
    0 24px 60px -12px color-mix(in srgb, var(--mask) 45%, transparent);
  overflow: hidden;
}
.consult-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--gold);
}
@media (min-width: 481px) {
  .consult-card {
    padding: 2rem 1.75rem 1.6rem;
    border-radius: 38px;
  }
}
.consult-card h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1.1;
}
.consult-sub {
  margin-top: 0.4rem;
  color: var(--text-2);
}
.composer {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.8rem;
}
.field {
  display: grid;
  gap: 0.3rem;
}
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.field input,
.field select,
.field .pick,
.field textarea {
  width: 100%;
  min-height: var(--control);
  margin: 0;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16 px: a phone never zooms in on focus */
  line-height: 1.4;
  transition-property: border-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.field textarea {
  resize: vertical;
  min-height: calc(2 * 1.4em + 1.1rem);
}
/* the native select's own look, for a page whose dropdown script did not run; the forge's dropdown (stage/pick.js,
   stage/pick.css) replaces it with a button and a list of ours, styled with the inputs above */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 52%,
    calc(100% - 0.8rem) 52%;
  background-size: 0.36rem 0.36rem;
  background-repeat: no-repeat;
}
.field input:hover,
.field select:hover,
.field .pick:hover,
.field textarea:hover {
  border-color: var(--text-2);
}
.field input:focus-visible,
.field select:focus-visible,
.field .pick:focus-visible,
.field .pick[aria-expanded='true'],
.field textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
}
.field [aria-invalid='true'] {
  border-color: var(--text);
  border-width: 2px;
}
.field-error {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.field-error::before {
  content: '!';
  flex: none;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.field-error[hidden] {
  display: none;
}
.composer-actions,
.composer-plain {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.composer-actions .btn,
.composer-plain .btn {
  flex: 1 1 12rem;
  font-size: 1rem;
}
.composer-status {
  min-height: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.composer-status:empty {
  min-height: 0;
}
/* the composer shows once composer.js runs (it sets data-ready); until then, and without JavaScript, the plain links */
.composer:not([data-ready]) {
  display: none;
}
.composer[data-ready] + .composer-plain {
  display: none;
}

/* ---- the beats on the film --------------------------------------------------------------------------------------- */
.stage {
  --beats-x: start;
  --beats-y: center;
  --beats-w: 38rem;
  --beats-inset: max(var(--gutter), 6vw);
}
@media (max-width: 700px) {
  .stage {
    --beats-x: center;
    --beats-y: start;
    --beats-inset: var(--gutter);
  }
}
/* `.stage .beat`, not `.beat`: stage.css centers `.beat` and is concatenated AFTER this file */
.stage .beat {
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}
.stage .beat h2,
.stage .beat .lede,
.stage .beat .eyebrow {
  text-shadow: 0 1px 22px color-mix(in srgb, var(--shade) 70%, transparent);
}
.stage .beat h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  line-height: 1.05;
}
.stage .beat em.accent {
  color: var(--accent-on-film);
}
.beat .lede {
  margin-left: 0;
  color: var(--text-2);
}
.beat .actions {
  justify-content: flex-start;
}
@media (max-width: 700px) {
  .stage .beat h2 {
    font-size: clamp(1.75rem, 1.2rem + 3vw, 2.25rem);
  }
  .beat .lede {
    margin-top: 0.6rem;
    font-size: 1rem;
  }
  .beat .actions {
    margin-top: 1rem;
  }
}
/* small caps text is the second ink: the accent is the marked word and the one filled button */
.eyebrow {
  color: var(--text-2);
}
.dots span {
  background: var(--line-2);
}
.dots span[data-active='true'] {
  background: var(--gold);
}

/* ---- the page on the light glass: one wide column, no panels, hairlines between its parts ----------------------- */
/* the film ends on a morning frame whose left half is a dark wall: under the engine's 62% paper that half reads as a
   muddy gray, so this kind's glass is mostly the ad's paper, the window's light still warm through it (:root to
   outrank backdrop.css, which comes after this file) */
:root[data-glass='light'] {
  --glass-tint: color-mix(in srgb, var(--bg) 86%, transparent);
}
.after {
  padding-bottom: 12svh;
}
.after .section {
  padding: 10svh 0 4svh;
}
.after .section:first-child {
  padding-top: 22svh;
}
.after .section > .wrap {
  width: min(72rem, calc(100% - 2 * var(--gutter)));
}
.after .section + .section > .wrap {
  padding-top: 10svh;
  border-top: 1px solid var(--line-2);
}
.after h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
}
.after .intro {
  margin-top: 1.25rem;
  max-width: var(--measure);
  font-size: 1.1rem;
  color: var(--text);
}
.list-title {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

/* a list of plain lines (the topics, what the team teaches): two columns on a wide screen, a hairline above each */
.topics {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0 2.5rem;
}
@media (min-width: 760px) {
  .topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.topics li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
}
.topic-line {
  color: var(--text-2);
}

/* why choose us: a name and its line, two by two on a wide screen, no boxes */
.reasons {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0 3rem;
}
@media (min-width: 760px) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.reasons li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.reasons h3 {
  font-size: 1.3rem;
  line-height: 1.15;
}
.reasons p {
  margin-top: 0.5rem;
  color: var(--text-2);
}
.rating {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rating a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-underline-offset: 4px;
}

/* the mission and the bios: prose at a reading measure */
.prose {
  margin-top: 1.5rem;
  max-width: var(--measure);
  display: grid;
  gap: 1rem;
  font-size: 1.05rem;
}

/* the team: a person's name and role, the bio, what they teach. A photo, when the seed gives one, sits beside the
   words on a wide screen and above them on a phone; without one the words take the whole measure */
.person {
  margin-top: 2rem;
  display: grid;
  gap: 0 3rem;
  grid-template-columns: minmax(0, 1fr);
}
.person-photo {
  width: min(100%, 18rem);
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-card);
  outline: 1px solid color-mix(in srgb, var(--mask) 10%, transparent);
  outline-offset: -1px;
}
@media (min-width: 900px) {
  .person.has-photo {
    grid-template-columns: 18rem minmax(0, 1fr);
  }
  .person.has-photo .person-photo {
    grid-row: 1 / span 3;
  }
}
.person-head h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}
.person-role {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.person .prose {
  margin-top: 1rem;
}
.person-list {
  margin-top: 1.5rem;
}

/* contact: the doors, then the note under them */
.doors {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.doors .line {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  text-underline-offset: 4px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.note {
  margin-top: 1.25rem;
  color: var(--text-2);
}

/* a fact the seed does not have yet, in a draft only (the build refuses one in a site that is not a draft) */
.pending {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1.5px dashed var(--line-2);
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--text);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* the footer: on the glass too, below a hairline */
.foot .wrap {
  width: min(72rem, calc(100% - 2 * var(--gutter)));
  border-top: 1px solid var(--line-2);
}
.foot .foot-row {
  margin-top: 0;
  padding: 1.25rem 0;
}
.demo-line {
  padding-bottom: 1.25rem;
}

/* stage.css: the scroll stage's layout (forge/stage/stage.js drives it). Tokens only: nothing here names a
   color. It is inlined LAST in site.css, so a kind tunes the stage through the variables below (set on .stage
   or :root in kind.css), never by restating these rules:
     --top-h               the header's height, which sits over the stage (default 4.5rem)
     --object-overscan     how far the object's box may run past the column, 1 = not at all (wide screens)
     --object-overscan-sm  the same on phones
     --object-fill         how much of the frame's width the object fills, as 1 / fraction (a car filling the
                           middle 80% of its frame is 1.25), so the box can grow until the object, not the
                           frame, meets the copy
     --feather-x, --feather-top  how far the frame's edges feather out (0% = a hard edge, for a photograph)
     --object-room         the height the copy leaves the object besides the beats (default 3rem: a frame whose top
                           band is empty may tuck under the header; a photograph sets the header's height and more)
   The build writes --object-w / --object-h (the still's size), --stage-h (by beat count) and --beats-h. */

.stage {
  position: relative;
  min-height: 100svh;
}
.js .stage:not(.static) {
  height: var(--stage-h, 440svh);
}
.stage-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.object {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  padding: var(--top-h, 4.5rem) var(--gutter) 0.25rem;
}
/* the frame keeps the still's shape at every size (nothing is stretched) and never pushes the copy off the
   screen; it may run past the column (the pin clips it) when the kind says the object is narrower than its frame */
.object-frame {
  position: relative;
  flex: none;
  width: min(
    calc(100% * var(--object-overscan, 1)),
    1180px,
    calc(58svh * var(--object-w, 32) / var(--object-h, 15)),
    calc((100svh - var(--beats-h) - var(--object-room, 3rem)) * var(--object-w, 32) / var(--object-h, 15) * var(--object-fill, 1))
  );
  aspect-ratio: var(--object-w, 32) / var(--object-h, 15);
}
.object-canvas,
.object-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* the frame's edges feather out, so a part that leaves the frame never ends in a cut */
  mask-image: linear-gradient(
      to right,
      transparent,
      var(--mask) var(--feather-x, 6%),
      var(--mask) calc(100% - var(--feather-x, 6%)),
      transparent
    ),
    linear-gradient(to bottom, transparent, var(--mask) var(--feather-top, 8%));
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      var(--mask) var(--feather-x, 6%),
      var(--mask) calc(100% - var(--feather-x, 6%)),
      transparent
    ),
    linear-gradient(to bottom, transparent, var(--mask) var(--feather-top, 8%));
  -webkit-mask-composite: source-in;
}
.js .object-canvas {
  opacity: 0; /* until the first frame is painted, so an empty box never shows */
  transition-property: opacity;
  transition-duration: 400ms;
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
.js .object-canvas.ready {
  opacity: 1;
}
/* the canvas plays the sequence; the still stands in without JavaScript, under reduced motion, on a still-only
   stage (no canvas) and when frame 0 cannot load (`still-only`) */
.js .stage:not(.static):not(.still-only) .object-canvas ~ .object-still,
.stage.static .object-canvas,
.stage.still-only .object-canvas,
:root:not(.js) .object-canvas {
  display: none;
}

.beats {
  position: relative;
  width: 100%;
  max-width: 56rem;
  height: var(--beats-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.beat {
  position: absolute;
  inset-inline: var(--gutter);
  bottom: 7svh;
  text-align: center;
  will-change: opacity, transform; /* a beat is a small layer; never put this on the object */
}
@media (max-height: 620px) {
  .beat {
    bottom: 3svh;
  }
}
/* phones: an object is usually wider than it is tall, so on a portrait screen it can never fill the height.
   The object and its copy become one group centered in the screen, each headline right under the object, and
   the spare height goes around the group instead of between the header and the object. */
@media (max-width: 700px) {
  .stage-pin {
    grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr);
  }
  .object {
    grid-row: 2;
  }
  .beats {
    grid-row: 3;
  }
  .beat {
    top: 0.75rem;
    bottom: auto;
  }
  .object-frame {
    width: min(
      calc(100% * var(--object-overscan-sm, 1)),
      calc((100svh - var(--beats-h) - 5rem) * var(--object-w, 32) / var(--object-h, 15))
    );
  }
}

.dots {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  translate: 0 -50%;
}
@media (min-width: 900px) {
  .dots {
    display: flex;
  }
}
.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-2);
  transition-property: background-color, scale;
  transition-duration: 300ms;
}
.dots span[data-active='true'] {
  background: var(--accent);
  scale: 1.3;
}

/* with the script running, the first beat is on stage until stage.js writes every beat's opacity. Hidden by a
   .js-scoped rule, never an inline style: an inline opacity would beat the reduced-motion stacking below. */
.js .stage:not(.static) .beat:not(:first-child) {
  opacity: 0;
  visibility: hidden;
}

/* reduced motion, or no JavaScript: the still once, the beats stacked under it, nothing pinned */
.stage.static .stage-pin,
:root:not(.js) .stage-pin {
  position: static;
  height: auto;
  display: block;
}
.stage.static .object,
:root:not(.js) .object {
  padding-top: calc(var(--top-h, 4.5rem) + 1.5rem);
}
.stage.static .object-frame,
:root:not(.js) .object-frame {
  width: min(calc(100% * var(--object-overscan, 1)), 1180px);
}
.stage.static .beats,
:root:not(.js) .beats {
  height: auto;
  padding-bottom: 2rem;
}
.stage.static .beat,
:root:not(.js) .beat {
  position: static;
  margin-top: 3.5rem;
  opacity: 1;
  visibility: visible;
}
.stage.static .dots,
:root:not(.js) .dots {
  display: none;
}

/* ---- after the stage: each section rises in once, the first time it arrives (stage.js reveal()) ------- */
[data-reveal] {
  transition-property: opacity, translate;
  transition-duration: 700ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal='out'] {
  opacity: 0;
  translate: 0 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .dots span,
  .js .object-canvas {
    transition: none;
  }
}

/* backdrop.css: the stage's BACKDROP mode (stage-config "mode": "backdrop"; forge/README.md). build.mjs appends it
   after stage.css ONLY for a backdrop site, so a pinned stage's site.css is untouched. Tokens only.
   The object leaves the pinned column and becomes ONE fixed full-viewport layer behind the whole page, scrubbed by
   the document's scroll (stage.js); the hero's beats keep their own pinned section. The pairing (its source is in
   forge/README.md; this file ships, so it names no other project): the layer sits at z-index 0, the page above it
   at z-index 1. The layer is inside the sticky pin (the contract DOM), and a sticky element is a stacking context,
   so everything that must read above the film after the stage (the sections, the footer) is lifted to z-index 1.
   A kind places the hero's copy through these variables (set on .stage in kind.css), never by restating rules:
     --beats-x   where the copy sits across the screen: start · center · end (default center)
     --beats-y   and up and down: start · center · end (default end)
     --beats-w   the copy's widest measure (default 40rem)
     --beats-inset  the room between the copy and the screen's sides (default the gutter)
   The build writes --focus-x / --focus-y (the still's crop, the same point the canvas crops at). */

/* the layer: fixed to the large viewport, so a phone's collapsing bars never resize (and clear) the canvas */
.stage.backdrop .object {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100lvh;
  padding: 0;
  pointer-events: none;
}
.stage.backdrop .object .object-frame {
  position: absolute;
  inset: 0;
  width: auto;
  aspect-ratio: auto;
}
/* a film that fills the screen has no edges to feather */
.stage.backdrop .object .object-canvas,
.stage.backdrop .object .object-still {
  mask-image: none;
  -webkit-mask-image: none;
}
.stage.backdrop .object .object-still {
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
}
/* with a narrow film the still sits in a <picture>, out of reach of stage.css's `canvas ~ still` rule: hidden here
   the same way, so the lazy still is never fetched while the film plays */
.js .stage.backdrop:not(.static):not(.still-only) .object-still {
  display: none;
}

/* the page above the film */
[data-stage='backdrop'] .after,
[data-stage='backdrop'] .foot {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* the hero's copy: one cell under the header, the beats placed in it by the kind's variables */
.stage.backdrop .stage-pin {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  padding: calc(var(--top-h, 4.5rem) + 1rem) var(--beats-inset, var(--gutter)) 6svh;
}
/* the beats share ONE grid cell (as tall as the tallest beat) and cross-fade in place, each aligned in it by
   --beats-y: a short beat sits where the kind put the copy, never adrift in a fixed-height box */
.stage.backdrop .beats {
  grid-row: 1;
  grid-column: 1;
  align-self: var(--beats-y, end);
  justify-self: var(--beats-x, center);
  display: grid;
  width: min(100%, var(--beats-w, 40rem));
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
.stage.backdrop .beat {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
  align-self: var(--beats-y, end);
}

/* reduced motion or no JavaScript: the still stays fixed behind the page, the beats stack in the hero */
.stage.backdrop.static .stage-pin,
:root:not(.js) .stage.backdrop .stage-pin {
  display: block;
  padding: calc(var(--top-h, 4.5rem) + 1.5rem) var(--gutter) 2rem;
}
.stage.backdrop.static .beats,
:root:not(.js) .stage.backdrop .beats {
  display: block;
  width: min(100%, var(--beats-w, 40rem));
  margin-inline: auto;
}
.stage.backdrop.static .beat,
:root:not(.js) .stage.backdrop .beat {
  position: relative;
  margin-top: 1.5rem;
}

/* the GLASS (the seed's stage.glass; <html data-glass="dark|light">): a fixed layer over the film that rises as the
   page after the stage arrives (stage.js glass(): one opacity; .on-glass on <html> from the moment the stage leaves).
   Its picture is the film's last frame blurred ahead of time (frost.webp; the build sets it on .frost.lit, which
   stage.js adds after load, so the picture is never part of the first paint) under the tone's tint. It is last in the
   body at z-index 0: over the film's pinned layer, under the sections and the footer (z-index 1). */
:root {
  --glass-deep: color-mix(in srgb, var(--text) 30%, var(--mask));
}
/* --glass-bar: the header's strip on the glass, solid (at 94% a line of text passing under it still showed) */
[data-glass='dark'] {
  --glass-tint: color-mix(in srgb, var(--glass-deep) 72%, transparent);
  --glass-bar: var(--glass-deep);
}
[data-glass='light'] {
  --glass-tint: color-mix(in srgb, var(--bg) 62%, transparent);
  --glass-bar: var(--bg);
}
.frost {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background-position: var(--focus-x, 50%) var(--focus-y, 50%);
  background-size: cover;
  background-repeat: no-repeat;
}
.frost::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-tint);
}
/* no JavaScript: no layer rises, so the page after the stage carries the tint itself */
:root:not(.js)[data-glass] .after,
:root:not(.js)[data-glass] .foot {
  background: var(--glass-bar);
}
/* dark glass: the brand's paper becomes the ink of everything on the glass (the tokens, so every rule follows) */
[data-glass='dark'] .after,
[data-glass='dark'] .foot {
  --text: var(--bg);
  --text-2: color-mix(in srgb, var(--bg) 84%, transparent);
  --line: color-mix(in srgb, var(--bg) 22%, transparent);
  --line-2: color-mix(in srgb, var(--bg) 40%, transparent);
  --bg-3: color-mix(in srgb, var(--bg) 14%, transparent);
  color: var(--text);
}
@media (max-width: 700px) {
  :root {
    --focus-x: 50%;
    --focus-y: 50%;
  }
}
.frost.lit {
  background-image: url('/restore/v1/frost.webp');
}
@media (max-width: 700px) {
  .frost.lit {
    background-image: url('/restore/tall-v1/frost.webp');
  }
}

/* ---- pick.css: the forge's own dropdown (stage/pick.js; forge/README.md "Dropdowns"). build.mjs appends it to
   site.css, after the kind's own styles, on a page that has a <select>. Tokens only. The button's border, paper and
   radius come from the kind's field styles (.field .pick, beside its inputs); this file gives it its inside and draws
   the list under it (wide) and the sheet from the bottom (a phone). */

/* the native control stays as the value's home, out of sight and out of reach (pick.js makes it inert) */
select.pick-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.pick {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: var(--control);
  margin: 0;
  text-align: left;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* a long choice wraps: the button never cuts its words */
.pick-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pick.is-prompt .pick-value {
  color: var(--text-2);
}
.pick-chevron,
.pick-check,
.pick-close svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pick-chevron {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2;
  color: var(--text-2);
  transition: transform 150ms ease-out;
}
.pick[aria-expanded='true'] .pick-chevron {
  transform: rotate(180deg);
}
.pick:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* the rows, wide and in the sheet */
.pick-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.pick-option > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pick-option.is-active {
  background: var(--bg-3);
}
.pick-option:focus,
.pick-option:focus-visible {
  outline: none;
}
.pick-option[aria-selected='true'] {
  font-weight: 600;
}
.pick-option[aria-disabled='true'] {
  color: var(--text-2);
  cursor: not-allowed;
}
.pick-check {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.25;
}

/* wide: a layer that only closes the list, and the list fixed under its button (pick.js places it) */
.pick-layer,
.pick-sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.pick-dismiss {
  position: absolute;
  inset: 0;
}
.pick-pop {
  position: fixed;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--text);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--line-2) 35%, transparent),
    0 2px 4px color-mix(in srgb, var(--mask) 8%, transparent),
    0 18px 40px -12px color-mix(in srgb, var(--mask) 35%, transparent);
  transform-origin: top center;
  animation: pick-in 140ms cubic-bezier(0.2, 0, 0, 1);
}
.pick-pop.up {
  transform-origin: bottom center;
  animation-name: pick-in-up;
}

/* a phone: the sheet from the bottom, over a scrim; the page under it holds still */
.pick-lock,
.pick-lock body {
  overflow: hidden;
}
.pick-scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--mask) 45%, transparent);
  touch-action: none;
  animation: pick-fade 200ms ease-out;
}
.pick-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  max-height: 80svh;
  padding: 0.5rem 0.75rem max(1rem, env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 -12px 40px -8px color-mix(in srgb, var(--mask) 35%, transparent);
  animation: pick-rise 280ms cubic-bezier(0.32, 0.72, 0, 1);
}
.pick-sheet::before {
  content: '';
  flex: none;
  align-self: center;
  width: 2.25rem;
  height: 4px;
  margin-bottom: 0.25rem;
  border-radius: 999px;
  background: var(--line);
}
.pick-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding-left: 0.75rem;
}
.pick-title {
  font-weight: 600;
  font-size: 1.0625rem;
}
.pick-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pick-close svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.25;
}
.pick-sheet .pick-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pick-sheet .pick-option {
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 1.0625rem;
}
/* in the sheet the finger is the pointer: the row under it lights up, the keyboard's row only for a keyboard */
.pick-sheet .pick-option.is-active {
  background: none;
}
.pick-sheet .pick-option:active,
.pick-sheet .pick-option:focus-visible {
  background: var(--bg-3);
}

/* the way out: quicker and smaller than the way in */
.pick-layer[data-state='closing'],
.pick-sheet-wrap[data-state='closing'] {
  pointer-events: none;
}
.pick-layer[data-state='closing'] .pick-pop {
  opacity: 0;
  transition: opacity 120ms ease-out;
}
.pick-sheet-wrap[data-state='closing'] .pick-scrim {
  opacity: 0;
  transition: opacity 150ms ease-out;
}
.pick-sheet-wrap[data-state='closing'] .pick-sheet {
  opacity: 0;
  transform: translateY(16px);
  transition-property: opacity, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

@keyframes pick-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}
@keyframes pick-in-up {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
}
@keyframes pick-rise {
  from {
    transform: translateY(100%);
  }
}
@keyframes pick-fade {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pick-pop,
  .pick-sheet,
  .pick-scrim {
    animation: none;
  }
  .pick-chevron {
    transition: none;
  }
}
