/* ===============================================================
   COMPONENTS (Breno, 2026-11-07)
   The pieces of the new visual language, shared by every page. Load it
   right after case-shared.css (which holds the base tokens: --radius,
   --section-gap, --title-lg / --title-md and .t-lg / .t-md, the button
   tokens and the border beam).

   Tokens here
     --line           hairline stroke on light surfaces
     --line-strong    stroke on outline buttons and active edges
     --shadow-frame   a white box: hairline + soft lift
     --shadow-phone   a phone (or screen) lifted off a card
     --green          the site green (About, case accents)
   Components
     .surface         a white box with the hairline frame and --radius
     .mono            a small GT America Mono label
   Text roles: .t-lg .t-md (case-shared.css), .t-sm, .num-lg, .num-md,
     .text-body, .text-body-sm, .mono. Prefixed where a bare name
     (.body, .frame, .label) was already taken by a page.
     .cs / .cx        the case cards (home): wide (B) and cover (D)
   =============================================================== */
@font-face { font-family: "GT America Mono"; font-weight: 400; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Mono-Regular.otf") format("opentype"); }

:root {
  --line: rgba(28, 3, 3, 0.12);
  --line-strong: rgba(28, 3, 3, 0.3);
  --shadow-frame: 0 0 0 1px var(--line), 0 1px 2px rgba(28, 3, 3, 0.04), 0 16px 40px -20px rgba(28, 3, 3, 0.18);
  --shadow-frame-up: 0 0 0 1px var(--line), 0 2px 4px rgba(28, 3, 3, 0.05), 0 24px 48px -20px rgba(28, 3, 3, 0.26);
  --shadow-phone: 0 30px 60px -30px rgba(0, 0, 0, 0.6); /* the case cards' phones (2026-11-10: one token for every phone) */
  --green: #004233;
  --ds-blue: #003961; /* N26 Design System: its hero and its case cards (Breno, 2026-11-10) */
  /* TEXT COLOUR (audit, 2026-11-08): the few strengths text takes, on light
     and on dark surfaces. Use these instead of raw rgba values */
  --text: #1c0303;                          /* titles, numbers, names */
  --text-soft: rgba(28, 3, 3, 0.7);         /* body copy, labels under numbers */
  --text-faint: rgba(28, 3, 3, 0.6);        /* mono labels, roles, sources */
  --on-dark: #fff;                          /* titles and numbers on green or ink */
  --on-dark-soft: rgba(255, 255, 255, 0.75);/* body on green or ink */
  --on-dark-faint: rgba(255, 255, 255, 0.6);/* labels on green or ink */
  --line-on-dark: rgba(255, 255, 255, 0.16);/* hairlines on green or ink */
  /* ACCENT TONES (2026-11-10): N26 red and two colours in its tone (same
     strength and lightness), for categories in charts and tags. They read
     on white, grey, green and ink alike */
  --tone-red: #dd4f52;
  --tone-mint: #4fbf98;
  --tone-violet: #8f7fe0;
}

/* (named .surface, not .frame: the scene cases use .frame for their own layout) */
.surface { border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-frame); }

/* ---------------------------------------------------------------
   TYPE SCALE (Breno, 2026-11-07). One family, GT America, plus GT
   America Mono for labels. Every text on the site takes one of these
   roles; heroes and data charts (sizes that encode a value) keep their
   own size but use the same family, weight and tracking.

     role            size (1440 wide)   weight  tracking  where
     display         hero only          300/400 -0.045    page heroes
     title-lg        60  (--title-lg)   300     -0.03     section titles
     title-md        30  (--title-md)   300     -0.02     titles in a box or card
     title-sm   new  20                 400     -0.01     item titles, names
     number-lg  new  56                 300     -0.04     headline results
     number-md  new  40                 300     -0.04     results in a list
     body            18 / 1.4           300     -0.01     paragraphs
     body-sm    new  15 / 1.4           300     -0.005    captions, labels under numbers
     label           12 mono            400     0.01      kickers, roles, sources, tags

   Case pages scale everything with the stage (--u), so they read these
   as --cs-* (case-v2.css): the same roles, in frame units.
   --------------------------------------------------------------- */
:root {
  --title-sm: 20px;
  --number-lg: 56px;
  --number-md: 40px;
  --body: 18px;
  --body-sm: 15px;
  --label: 12px;
}
.t-sm { font-family: "GT America"; font-weight: 400; font-size: var(--title-sm); line-height: 1.3; letter-spacing: -0.01em; }
.num-lg, .num-md { font-family: "GT America"; font-weight: 300; line-height: 1; letter-spacing: -0.04em; }
.num-lg { font-size: var(--number-lg); }
.num-md { font-size: var(--number-md); }
.text-body { font-family: "GT America"; font-weight: 300; font-size: var(--body); line-height: 1.4; letter-spacing: -0.01em; }
.text-body-sm { font-family: "GT America"; font-weight: 300; font-size: var(--body-sm); line-height: 1.4; letter-spacing: -0.005em; }
.mono { font-family: "GT America Mono"; font-weight: 400; font-size: var(--label, 12px); letter-spacing: 0.01em; color: var(--text-faint); }

/* ---------------------------------------------------------------
   Cases (test, 2026-11-07): directions B and D as one family.
   Each card sits on its product's colour; same title, role, result,
   lock pill and Read more everywhere. The old scroll cases are hidden.
   --------------------------------------------------------------- */
.cs {
  --n: clamp(0.75, var(--u, 1), 1.5);
  display: grid; gap: 16px;
  padding: 16px calc(var(--n) * 16px) 96px;
  background: var(--grey);
  scroll-margin-top: 90px;
}
/* "See all cases": under the home cases and under "More cases" (below) */
.cs__all { margin: 0; padding-top: 16px; display: flex; justify-content: center; }
.cs__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cx { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); color: var(--white); }
.cx--n26 { background: linear-gradient(180deg, #003a2d 0%, #004a3a 100%); }
.cx--oorbi { background: linear-gradient(180deg, #1a0f0f 0%, #301614 100%); }
.cx--mem { background: linear-gradient(180deg, #141818 0%, #1f2928 100%); }
.cx--ds { background: var(--ds-blue); } /* N26 Design System: its own blue (Breno, 2026-11-10) */
.cx--nuri { background: #2b2235; } /* Nuri: the aubergine of its ways-of-working slides (2026-12-01) */

.cx__top { display: grid; gap: 6px; justify-items: start; }
.cx__lock {
  position: absolute; top: 40px; right: 40px; z-index: 3; /* the same corner on every private case, so titles line up */
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px;
  border-radius: 999px; font-family: "GT America Mono"; font-size: 12px; letter-spacing: 0.01em;
  background: var(--line-on-dark); color: var(--white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cx__lock svg { width: 12px; height: 12px; }
.cx__title { margin: 0; font-weight: 300; font-size: 44px; letter-spacing: -0.03em; line-height: 1.02; color: var(--white); }
.cx__role { margin: 0; font-size: 15px; color: var(--on-dark-soft); }
.cx__line { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); max-width: 24em; }
.cx__bottom { display: grid; gap: 20px; justify-items: start; }
.cx__big { margin: 0; font-weight: 300; font-size: 56px; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; color: var(--white); }
.cx__lbl { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--on-dark-soft); }
/* The one CTA: a white pill (the green beam on hover, as the other secondary buttons) */
.cx__cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px;
  background: var(--white); color: var(--black); font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-xs);
}
.cx__cta:hover, .cx__cta:focus-visible { background: var(--surface-soft); }
.cx__cta:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.cx__phone {
  border-radius: 40px; border: 7px solid #070707; background: #000; overflow: hidden;
  box-shadow: var(--shadow-phone);
}
.cx__phone video, .cx__phone img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Wide (B): the product plays in an inset stage, the brief on the right */
.cx--wide { display: grid; grid-template-columns: 7fr 5fr; min-height: 620px; }
.cx__stage { margin: 8px; border-radius: calc(var(--radius) - 4px); background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; overflow: hidden; }
.cx--wide .cx__phone { width: 250px; transition: translate var(--dur-l) var(--ease-out); }
.cx--wide:hover .cx__phone { translate: 0 -12px; }
/* a photo instead of a phone (Nuri): it fills the stage and leans in on hover */
.cx__stage--photo { position: relative; background: none; }
.cx__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale var(--dur-l) var(--ease-out); }
.cx--wide:hover .cx__photo { scale: 1.03; }
.cx--wide .cx__info { display: flex; flex-direction: column; justify-content: space-between; padding: 40px 40px 40px 32px; }
.cx--wide .cx__title { padding-right: 132px; } /* clear of the Private case pill, also for longer names (N26 Design System) */
.cx--wide .cx__res { width: 100%; } /* no divider: the result sits as on the cover cards (Breno, 2026-11-08) */

/* Cover (D): text on the colour, the phone rising out of the bottom edge */
.cx--cover { height: 640px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.cx--cover .cx__top, .cx--cover .cx__bottom { position: relative; z-index: 2; }
.cx--cover .cx__phone {
  position: absolute; right: 40px; bottom: -120px; width: 230px; z-index: 1;
  transition: translate var(--dur-l) var(--ease-out);
}
.cx--cover:hover .cx__phone { translate: 0 -40px; }

@media (max-width: 1023px) {
  .cs__pair { grid-template-columns: 1fr; }
  .cx--wide { grid-template-columns: 1fr; }
  .cx__stage { min-height: 460px; }
}
@media (max-width: 767px) {
  .cs { padding: 8px 8px 64px; gap: 8px; }
  .cs__pair { gap: 8px; }
  .cx--wide .cx__info, .cx--cover { padding: 28px 24px; }
  .cx__stage { min-height: 360px; }
  .cx--wide .cx__phone { width: 200px; }
  .cx__title { font-size: 34px; }
  .cx__big { font-size: 44px; }
  .cx--cover { height: 560px; }
  .cx--cover .cx__phone { width: 150px; right: 20px; bottom: -170px; }
  /* phones: the pill stays top-right as a round lock badge, so the titles
     still line up and a long title never runs under it */
  .cx__lock { top: 26px; right: 22px; width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .cx__lock svg { width: 13px; height: 13px; }
  .cx__top { padding-right: 44px; }
  .cx--cover .cx__res { max-width: 55%; }
  .cx--cover .cx__big { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .cx__phone { transition: none; } }

/* Both cover phones share one shape (oorbi's), so they stand at the same
   height; the Memberships screen is cropped from the top */
.cx--cover .cx__phone { aspect-ratio: 580 / 1258; }
.cx--cover .cx__phone img { object-position: top; }


/* ===============================================================
   BUTTON (Breno, 2026-11-07): the one button component on the site,
   the home header's buttons. Every button uses it except the social
   cards (GitHub, Substack, LinkedIn in "What I'm up to").

     <a class="button button--primary button--lg">See my work</a>
     looks   button--primary    ink fill, white text
             button--secondary  outline on the surface
             button--paper      white fill, hairline (on dark or photos)
     sizes   button--lg 52 tall (header CTAs) · button--sm 40 tall
   Hover: the fill shifts a step and the green border beam fades in
   (case-shared.js wires it); press 98%; keyboard focus a 2px red ring.
   On the scroll stages it scales with the page (--bs = --u there).
   The colour tokens (--btn-*) live in case-shared.css.
   The selector is heavy on purpose: older page sheets styled their own
   buttons, and this has to win over all of them.
   =============================================================== */
html.is-stage .page, html.hero-framed main, html.is-scenes main { --bs: var(--u, 1); }
:where(.button) { position: relative; }
:root:root:root body .button.button {
  --b: var(--bs, 1);
  display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--b) * 8px);
  width: auto; min-width: 0; margin: 0;
  border: 0; border-radius: 999px;
  font-family: "GT America"; font-weight: 400; font-style: normal; letter-spacing: 0; line-height: 1;
  text-decoration: none; text-transform: none; white-space: nowrap; cursor: pointer;
  filter: none; translate: none;
  transition: background-color var(--btn-speed, var(--dur-xs)), box-shadow var(--btn-speed, var(--dur-xs)), color var(--btn-speed, var(--dur-xs)), scale var(--dur-xs);
}
:root:root:root body .button.button--lg { height: calc(var(--b) * 52px); padding: 0 calc(var(--b) * 28px); font-size: calc(var(--b) * 17px); }
:root:root:root body .button.button--sm { height: calc(var(--b) * 40px); padding: 0 calc(var(--b) * 20px); font-size: calc(var(--b) * 15px); }
:root:root:root body .footer .fbtn.button.button--sm { width: calc(var(--b) * 40px); height: calc(var(--b) * 40px); padding: 0; gap: 0; }
/* icon-only: a square of the size's height (close buttons, the footer's
   icons) */
:root:root:root body .button.button--icon.button--sm { width: calc(var(--b) * 40px); padding: 0; gap: 0; justify-content: center; }
:root:root:root body .button.button--icon svg { width: 16px; height: 16px; }
:root:root:root body .button.button :is(img, svg) { width: calc(var(--b) * 16px); height: calc(var(--b) * 16px); scale: none; }
:root:root:root body .button.button--primary { background-color: var(--btn-primary-bg); color: var(--btn-primary-fg); box-shadow: none; }
:root:root:root body .button.button--primary:is(:hover, :focus-visible) { background-color: var(--btn-primary-bg-hover); }
:root:root:root body .button.button--secondary { background-color: transparent; color: var(--btn-secondary-fg); box-shadow: inset 0 0 0 1px var(--btn-stroke); }
:root:root:root body .button.button--secondary:is(:hover, :focus-visible) { background-color: var(--btn-secondary-bg-hover); box-shadow: inset 0 0 0 1px var(--btn-stroke-hover); }
:root:root:root body .button.button--paper { background-color: var(--btn-paper-bg); color: var(--btn-paper-fg); box-shadow: inset 0 0 0 1px var(--btn-hairline); }
:root:root:root body .button.button--paper:is(:hover, :focus-visible) { background-color: var(--btn-paper-bg-hover); box-shadow: inset 0 0 0 1px var(--btn-stroke); }
:root:root:root body .button.button:active { scale: var(--btn-press, 1); }
/* press: one more step of the fill, no movement */
:root:root:root body .button.button--primary:active { background-color: #0d0101; }
:root:root:root body .button.button--secondary:active { background-color: rgba(28, 3, 3, 0.1); }
:root:root:root body .button.button--paper:active { background-color: #e9e7e7; }
:root:root:root body .button.button:focus-visible { outline: var(--btn-focus); outline-offset: var(--btn-focus-offset); }
/* on phones the header CTAs step down to the small size, and the nav Contact pill fits the 48px bar */
@media (max-width: 767px) {
  :root:root:root body .button.button--lg { height: 48px; padding: 0 22px; font-size: 16px; }
  :root:root:root body .nav .button.button--sm { height: 32px; padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { :root:root:root body .button.button { scale: none !important; } }


/* ===============================================================
   SCROLL CUE (Breno, 2026-11-11). A bare arrow nudging down, centred on
   the bottom edge of a page's first card (the home header, a case hero):
   half on the card, half on the page around it, in a small circle the
   colour of that page.

     <a class="scroll-cue" href="#cases" aria-label="Scroll to the cases">
       <svg viewBox="0 0 16 16" …>arrow</svg></a>
     <button type="button" class="scroll-cue" aria-label="Scroll down">…</button>

   It is fixed to the window, so put it where no parent has a transform
   (straight after the nav). Knobs:
   - --scroll-cue-edge: the card's bottom gap to the window (16 frame units)
   - --scroll-cue-bg: the circle, the page's white by default (home: grey)
   case-shared.js fades it over the first scroll and sends a click to the
   href's target, or one window down. Desktop only: smaller screens
   already show the page running on. .scroll-cue--inline: in the flow, for
   the library.
   =============================================================== */
.scroll-cue { display: none; }
@media (min-width: 1024px) {
  .scroll-cue {
    --scroll-cue-edge: calc(var(--u, 1) * 16px);
    position: fixed;
    z-index: 46; /* over the page and the home's white mat (45), under the nav (50) */
    left: 50%;
    bottom: calc(var(--scroll-cue-edge) - 16px); /* half of its 32px box */
    translate: -50% 0;
    display: grid;
    place-items: center;
    width: 32px;   /* a comfortable click target around the 16px arrow */
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--scroll-cue-bg, var(--white));
    color: var(--black);
    opacity: var(--scroll-cue-show, 1);
    cursor: pointer;
  }
  .scroll-cue[data-gone] { visibility: hidden; }
}
.scroll-cue--inline { position: relative; left: auto; bottom: auto; translate: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--scroll-cue-bg, var(--white)); color: var(--black); }
.scroll-cue:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.scroll-cue svg { display: block; animation: scroll-cue-nudge calc(var(--dur-xl) * 2) var(--ease-in-out) infinite; }
@keyframes scroll-cue-nudge {
  0%, 55%, 100% { translate: 0 0; }
  25% { translate: 0 4px; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }


/* ===============================================================
   TABS (Breno, 2026-11-07; rebuilt 2026-11-08). The pill tab bar of the
   home header, as one component.

     <ol class="tabs tabs--dark" role="tablist">
       <li class="tabs__tab" role="tab">Knowledge</li> ...
     </ol>

   case-shared.js tabs() adds two layers and measures the real tabs:
   - the thumb, a white pill that slides under the tab in focus
   - the ink, the labels drawn again in the active colour, each one placed
     exactly over its tab, and clipped to the thumb
   Both move on the same spring, so the active colour can only ever show
   where the thumb is: no flash, no drift. The component resets its own
   layout (doubled class) so page sheets that styled the old lists (as a
   grid, with bars) cannot pull it apart.
   tabs--dark: on a dark or coloured card. Scales with --bs on the stages.
   =============================================================== */
.tabs { position: relative; }
.tabs.tabs {
  --t: var(--bs, 1);
  --tabs-fg: var(--text-faint); --tabs-on: var(--black); --tabs-thumb: var(--white); --tabs-line: var(--line);
  --tabs-ease: var(--ease-out-expo);   /* fluid, no bounce: the thumb glides */
  --tabs-dur: 0.5s;
  display: inline-flex; flex-wrap: nowrap; align-items: stretch; gap: 0;
  grid-template-columns: none; width: max-content; max-width: none; height: auto;
  margin: 0; padding: calc(var(--t) * 4px); list-style: none;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--tabs-line); background: none;
  font-family: "GT America"; font-weight: 400; font-style: normal;
  font-size: calc(var(--t) * 15px); line-height: 1; letter-spacing: 0; text-transform: none; color: var(--tabs-fg);
}
.tabs.tabs--dark { --tabs-fg: var(--on-dark-soft); --tabs-on: var(--green); --tabs-line: rgba(255, 255, 255, 0.24); }
.tabs.tabs > .tabs__tab {
  position: relative; z-index: 1; flex: none; display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 0 calc(var(--t) * 20px); height: calc(var(--t) * 36px);
  border-radius: 999px; white-space: nowrap; color: inherit; background: none;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-xs);
}
.tabs.tabs > .tabs__tab::before, .tabs.tabs > .tabs__tab::after { content: none; }
.tabs.tabs > .tabs__tab:hover { color: var(--tabs-on); }
.tabs.tabs--dark > .tabs__tab:hover { color: var(--white); }
.tabs.tabs > .tabs__tab:focus-visible { outline: 2px solid currentColor; outline-offset: calc(var(--t) * 2px); }
.tabs.tabs > .tabs__thumb, .tabs.tabs > .tabs__ink {
  position: absolute; z-index: 2; top: 0; left: 0; margin: 0; padding: 0; pointer-events: none;
}
.tabs.tabs > .tabs__thumb {
  height: var(--th, 0px); width: var(--tw, 0px);
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  border-radius: 999px; background: var(--tabs-thumb);
  /* the home header's thumb (.seg__thumb): a hairline and a short lift */
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 calc(var(--t) * 2px) calc(var(--t) * 6px) calc(var(--t) * -2px) rgba(28, 3, 3, 0.2);
  will-change: transform, width;
  transition: transform var(--tabs-dur) var(--tabs-ease), width var(--tabs-dur) var(--tabs-ease);
}
.tabs.tabs > .tabs__ink {
  z-index: 3; width: 100%; height: 100%; color: var(--tabs-on);
  clip-path: inset(var(--ty, 0px) calc(100% - var(--tx, 0px) - var(--tw, 0px)) calc(100% - var(--ty, 0px) - var(--th, 0px)) var(--tx, 0px) round 999px);
  transition: clip-path var(--tabs-dur) var(--tabs-ease);
}
.tabs.tabs > .tabs__ink > span {
  position: absolute; display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
.tabs:not(.is-ready) > :is(.tabs__thumb, .tabs__ink) { transition: none; }
/* the parts of a tab bar never animate on their own (page entrances that
   staggered list items would pull the thumb off its tab): the bar enters
   as one piece */
.tabs.tabs > li { opacity: 1; translate: none; transform: none; transition-delay: 0s; }
.tabs:not(.has-tab) > :is(.tabs__thumb, .tabs__ink) { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .tabs.tabs > :is(.tabs__thumb, .tabs__ink) { transition: none; } }

/* on a dark card the hairline would read as a ring: only the lift */
.tabs.tabs--dark > .tabs__thumb { box-shadow: 0 calc(var(--t) * 2px) calc(var(--t) * 6px) calc(var(--t) * -2px) rgba(0, 0, 0, 0.35); }
@media (max-width: 899px) {
  html:not(.is-scenes) .tabs.tabs,
  .org-modal .tabs.tabs {
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
    border-radius: 20px;
  }
}
@media (max-width: 767px) {
  html:not(.is-scenes) .tabs.tabs,
  .org-modal .tabs.tabs {
    font-size: 13px;
    padding: 4px;
    border-radius: 18px;
  }
  html:not(.is-scenes) .tabs.tabs > .tabs__tab,
  .org-modal .tabs.tabs > .tabs__tab {
    height: 32px;
    padding: 0 12px;
  }
}


/* ===============================================================
   CASE PARTS (moved here from case-v2.css, 2026-11-08, so every case
   page shares them: N26 Investments and N26 Memberships)

   Case type scale  --cs-*: the type roles above in frame units (--u), for
                    the scroll stages, which scale with the window
   Org overlay      .og-*: "See my org", a white card with the three
                    teams; .og-team--case marks the team of this case
   End cards        .next-pair: the two other cases as the home's cover
                    cards, scaled with the stage
   =============================================================== */
:root {
  --cs-stat: calc(var(--u) * 76px);
  --cs-title-lg: calc(var(--u) * 56px);
  --cs-title-md: calc(var(--u) * 28px);
  --cs-title-sm: calc(var(--u) * 20px);
  --cs-num-lg: calc(var(--u) * 56px);
  --cs-num-md: calc(var(--u) * 40px);
  --cs-body: calc(var(--u) * 18px);
  --cs-body-sm: calc(var(--u) * 15px);
  --cs-label: calc(var(--u) * 12px);
}
html:not(.is-scenes):not(.is-stage) {
  --cs-stat: 56px;
  --cs-title-lg: var(--title-lg);
  --cs-title-md: 26px;
  --cs-title-sm: 19px;
  --cs-num-lg: 48px;
  --cs-num-md: 34px;
  --cs-body: 17px;
  --cs-body-sm: 15px;
  --cs-label: 12px;
}
@media (max-width: 767px) {
  html:not(.is-scenes):not(.is-stage) {
    --cs-stat: 44px;
    --cs-title-lg: var(--title-lg);
    --cs-title-md: 22px;
    --cs-title-sm: 18px;
    --cs-num-lg: 40px;
    --cs-num-md: 30px;
    --cs-body: 16px;
    --cs-body-sm: 14px;
    --cs-label: 12px;
  }
}

/* ---------- My org overlay, v2 ---------- */
html body .org-modal { width: min(1080px, calc(100vw - 32px)); }
html body .org-modal__card.og {
  padding: 32px 32px 36px; border-radius: var(--radius); background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(28, 3, 3, 0.45);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  /* it scrolls on its own, also by touch (Breno, 2026-11-10: it didn't on a
     phone): the page's smooth scroll leaves it alone (data-lenis-prevent on
     the dialog), and it never hands the scroll on to the page behind */
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
}
/* titles left, the close button right; the legend on its own line under
   them, its right edge on the close button's (Breno, 2026-11-10) */
.og-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 24px; }
.og-head .og-legend { order: 3; width: 100%; justify-content: flex-end; padding-bottom: 0; }
.og-titles { margin-right: auto; display: grid; gap: 6px; }
.og-kicker, .og-role, .og-legend, .og-sum, .og-tag, .og-seat span {
  font-family: "GT America Mono"; font-size: 12px; letter-spacing: 0.01em; color: var(--text-faint); margin: 0;
}
.og-title { margin: 0; font-family: "GT America"; font-weight: 300; font-size: var(--title-lg); line-height: 1; letter-spacing: -0.03em; color: var(--black); }
.og-legend { list-style: none; padding: 0; display: flex; gap: 18px; padding-bottom: 8px; }
.og-legend li { display: flex; align-items: center; gap: 8px; }
.og-dot { width: 14px; height: 14px; border-radius: 50%; }
.og-dot--dotted { border: 1.5px dashed var(--green); }
.og-dot--open { border: 1.5px dashed rgba(28, 3, 3, 0.35); }
/* relative, like every .button: the hover beam is drawn inside it (static
   let the beam spread over the whole overlay card, 2026-11-10) */
html body .og .org-modal__close { position: relative; margin: 0; }

.og-me { display: flex; align-items: center; gap: 14px; margin: 28px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.og-me img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.og-name { margin: 0; font-family: "GT America"; font-weight: 400; font-size: 17px; color: var(--black); }
.og-sum { margin-left: auto; }

.og-teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.og-team { display: grid; align-content: start; gap: 18px; padding: 20px; border-radius: var(--radius); background: var(--grey-bg, #f3f2f2); }
.og-team--case { box-shadow: inset 0 0 0 1.5px var(--green); background: #eef5f1; }
.og-team__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.og-team__name { margin: 0; font-family: "GT America"; font-weight: 300; font-size: var(--title-md); line-height: 1.1; letter-spacing: -0.02em; color: var(--black); }
.og-tag { flex: none; height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--green); color: var(--white); }
.og-lead { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.og-lead img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.og-lead--none .og-role { align-self: center; }
/* the faces line up with the lead above: the first starts at the card's
   text edge, the last ends at its right edge, the rest share the space
   (Breno, 2026-11-10) */
.og-seats { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 8px; }
.og-seat { flex: none; width: 48px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.og-seat span { white-space: nowrap; }
.og-seat img, .og-seat i { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; }
.og-seat img { box-shadow: 0 0 0 1px var(--line); }
.og-seat--dotted img { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--green); }
.og-seat--open i { border: 1.5px dashed rgba(28, 3, 3, 0.35); box-sizing: border-box; }

/* opening: the team cards and faces rise in, one after another */
.og-me, .og-team, .og-seat { opacity: 0; translate: 0 10px; transition: opacity var(--dur-m) var(--ease-out, ease), translate var(--dur-l) var(--ease-out, ease); }
.org-modal.is-open :is(.og-me, .og-team, .og-seat) { opacity: 1; translate: none; }
.org-modal.is-open .og-me { transition-delay: 0.08s; }
.org-modal.is-open .og-team:nth-child(1) { transition-delay: 0.14s; }
.org-modal.is-open .og-team:nth-child(2) { transition-delay: 0.2s; }
.org-modal.is-open .og-team:nth-child(3) { transition-delay: 0.26s; }
.org-modal.is-open .og-seat { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .og-me, .og-team, .og-seat { transition: none; opacity: 1; translate: none; } }
@media (max-width: 860px) {
  .og-teams { grid-template-columns: 1fr; }
  .og-head { flex-wrap: wrap; }
  .og-legend { order: 3; width: 100%; }
  .og-sum { display: none; }
  html body .org-modal__card.og { padding: 24px 20px 28px; }
}
html body .org-modal { --line: rgba(28, 3, 3, 0.12); }
html body .og .org-modal__close { width: 40px; height: 40px; }
html body .og .org-modal__close svg { width: 16px; height: 16px; }
/* My org: "This case" pinned to the top right of its card, on the title's
   first line (Breno, 2026-11-08) */
.og-team__head { align-items: flex-start; }
.og-tag { margin-top: calc((var(--title-md) * 1.1 - 26px) / 2); }

/* ---------- the end: the other two cases ---------- */
/* The home's square cover cards side by side; case.js moves the pair */
html.is-scenes body .next-pair {
  top: calc(var(--u) * 110px);
  width: calc(var(--u) * 1200px); height: calc(var(--u) * 500px);
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 16px);
}
html body .next-pair > * { position: relative; }
html.is-scenes body .next-pair .cx--cover { height: 100%; padding: calc(var(--u) * 40px); }
html.is-scenes body .next-pair .cx__title { font-size: calc(var(--u) * 44px); }
html.is-scenes body .next-pair .cx__big { font-size: calc(var(--u) * 52px); }
html.is-scenes body .next-pair .cx__phone { width: calc(var(--u) * 210px); right: calc(var(--u) * 40px); bottom: calc(var(--u) * -130px); }
html.is-scenes body .next-pair .cx__lock { top: calc(var(--u) * 40px); right: calc(var(--u) * 40px); }
html.is-scenes body .next-pair .cx__cta { height: var(--btn-sm-h); padding: 0 var(--btn-sm-px); font-size: var(--btn-sm-fs); }
/* the end cards live on the scaled stage: every size follows --u, also on
   phones (components.css switches the home cards to fixed phone sizes) */
html.is-scenes body .next-pair :is(.cx__role, .cx__line, .cx__lbl) { font-size: calc(var(--u) * 15px); }
html.is-scenes body .next-pair .cx__line { margin-top: calc(var(--u) * 4px); line-height: 1.4; }
html.is-scenes body .next-pair .cx__top { gap: calc(var(--u) * 6px); padding-right: 0; }
html.is-scenes body .next-pair .cx__bottom { gap: calc(var(--u) * 20px); }
html.is-scenes body .next-pair .cx__lbl { margin-top: calc(var(--u) * 6px); }
html.is-scenes body .next-pair .cx__cta { height: calc(var(--u) * 40px); padding: 0 calc(var(--u) * 20px); font-size: calc(var(--u) * 15px); }
html.is-scenes body .next-pair .cx__lock {
  width: auto; height: calc(var(--u) * 30px); padding: 0 calc(var(--u) * 12px) 0 calc(var(--u) * 10px);
  gap: calc(var(--u) * 7px); font-size: calc(var(--u) * 12px);
}
html.is-scenes body .next-pair .cx__lock svg { width: calc(var(--u) * 12px); height: calc(var(--u) * 12px); }
html.is-scenes body .next-pair .cx__big { white-space: nowrap; }
html.is-scenes body .next-pair .cx--cover .cx__res { max-width: none; }
/* three cases (2026-11-10, with N26 Design System): narrower cards, so the
   lock is a round icon, the title and number smaller, the phone smaller
   and the result kept clear of it */
html.is-scenes:root body .outro .next-pair.next-pair--3 { grid-template-columns: repeat(3, 1fr); }
html.is-scenes:root body .next-pair--3 .cx--cover { padding: calc(var(--u) * 32px); }
html.is-scenes:root body .next-pair--3 .cx__title { font-size: calc(var(--u) * 34px); padding-right: calc(var(--u) * 40px); }
html.is-scenes:root body .next-pair--3 .cx__big { font-size: calc(var(--u) * 44px); }
html.is-scenes:root body .outro .next-pair.next-pair--3 { height: calc(var(--u) * 420px); } /* less air between the title and the result (Breno, 2026-11-10) */
/* "See all cases" is the last row of the end cards, however many cards
   there are (scripts/sync-cases.mjs writes it). On the stage the cards keep
   the full height of the pair and the row hangs under them, moving with them */
.next-pair > .cs__all { grid-column: 1 / -1; }
html.is-scenes body .next-pair { grid-template-rows: 100%; grid-auto-rows: auto; }
html.is-scenes body .next-pair > .cs__all { padding-top: 0; }
html.is-scenes:root body .next-pair--3 .cx__phone { width: calc(var(--u) * 150px); right: calc(var(--u) * 24px); bottom: calc(var(--u) * -70px); } /* the phones sit higher */
html.is-scenes:root body .next-pair--3 .cx--cover .cx__res { max-width: calc(var(--u) * 170px); }
html.is-scenes:root body .next-pair--3 .cx__lbl { white-space: normal; }
html.is-scenes:root body .next-pair--3 .cx__lock {
  top: calc(var(--u) * 32px); right: calc(var(--u) * 28px); width: calc(var(--u) * 32px); height: calc(var(--u) * 32px);
  padding: 0; justify-content: center; gap: 0; font-size: 0;
}
/* the whole end card opens its case (case-shared.js); the button stays the
   keyboard's way in */
.next-pair--link .cx { cursor: pointer; }
html:not(.is-scenes) body .next-pair {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (max-width: 767px) {
  html:not(.is-scenes) body .next-pair { gap: 8px; }
}
/* On stacked case layouts and tablet/mobile viewports, section titles should not
   scale to 2.25x width via [data-shrink], and case-title__mask should allow room
   for descenders on wrapped subtitles */
html:not(.is-scenes) {
  --title-shrink-from: 1;
}
html:not(.is-scenes) [data-shrink] {
  scale: 1 !important;
  transform: none !important;
}
html:not(.is-scenes) .case-title__mask {
  clip-path: inset(-0.3em -0.3em -0.25em -0.3em);
}
@media (max-width: 1023px) {
  :root {
    --title-shrink-from: 1;
  }
  [data-shrink] {
    scale: 1 !important;
    transform: none !important;
  }
}


/* ===============================================================
   CASE BLOCKS (audit, 2026-11-08). The pieces the N26 cases built, as
   library blocks, so the next case (oorbi) uses them by name. Each has a
   neutral kit-* name; the Memberships names are aliases of the same rule.
   Sizes follow the case type scale (--cs-*), so they scale on the stages
   and read at 1 elsewhere.

     .kit-card      white card: mono kicker, title, a person at the foot
     .kit-chips     a row of outline pills (segments, tags)
     .kit-rules     rows of icon + name + line; .kit-rules--dark on ink/green
     .kit-phone     a phone frame for a screen image or video
     .kit-result    white result card: image, name, numbers
     .kit-outcome   the closing statement on green: kicker, line, numbers
   =============================================================== */
:is(.kit-card, .stream) {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-frame);
}
:is(.kit-card__kicker, .stream__kicker) { margin: 0; font-family: "GT America Mono"; font-weight: 400; font-size: var(--cs-label); letter-spacing: 0.01em; color: var(--text-faint); }
:is(.kit-card__title, .stream__title) { margin: 0; font-family: "GT America"; font-weight: 300; font-size: var(--cs-title-md); line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
:is(.kit-card, .stream) .person { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.kit-streams, .streams { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }

:is(.kit-chips, .chips) { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
:is(.kit-chips, .chips) li {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: "GT America"; font-weight: 400; font-size: 15px; line-height: 1; color: var(--text);
}

:is(.kit-rules, .iu__rules) { list-style: none; margin: 0; padding: 0; display: grid; }
:is(.kit-rule, .iu__rule) { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
:is(.kit-rule__icon, .iu__icon) { width: 28px; height: 28px; color: var(--text); }
:is(.kit-rule__name, .iu__name) { margin: 0 0 4px; font-family: "GT America"; font-weight: 400; font-size: var(--cs-title-sm); line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
:is(.kit-rule__text, .iu__text) { margin: 0; font-family: "GT America"; font-weight: 300; font-size: var(--cs-body-sm); line-height: 1.4; letter-spacing: -0.005em; color: var(--text-soft); }
/* on a dark card (Memberships' Instant upgrade is one) */
:is(.kit-rules--dark, .iu__rules) :is(.kit-rule, .iu__rule) { border-top-color: var(--line-on-dark); }
:is(.kit-rules--dark, .iu__rules) :is(.kit-rule__icon, .iu__icon, .kit-rule__name, .iu__name) { color: var(--on-dark); }
:is(.kit-rules--dark, .iu__rules) :is(.kit-rule__text, .iu__text) { color: var(--on-dark-soft); }

:is(.kit-phone, .iu__phone) {
  position: relative; width: 240px; aspect-ratio: 480 / 1040; overflow: hidden;
  border-radius: 34px; border: 6px solid #070707; background: #000;
  box-shadow: var(--shadow-phone), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
:is(.kit-phone, .iu__phone) > :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }

.kit-result { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-frame); }
.kit-result > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) - 6px); }
.kit-result__name { margin: 0; font-family: "GT America"; font-weight: 400; font-size: var(--cs-title-sm); line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.kit-result__metric { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.kit-result__metric + .kit-result__metric { padding-top: 12px; border-top: 1px solid var(--line); }
.kit-num { font-family: "GT America"; font-weight: 300; font-size: var(--cs-num-md); line-height: 1; letter-spacing: -0.04em; color: var(--text); }
.kit-num-label { font-family: "GT America"; font-weight: 300; font-size: var(--cs-body-sm); line-height: 1.4; letter-spacing: -0.005em; color: var(--text-soft); }

.kit-outcome { display: grid; gap: 28px; padding: 48px; border-radius: var(--radius); background: var(--green); color: var(--on-dark); }
.kit-outcome__kicker { margin: 0; font-family: "GT America Mono"; font-size: var(--cs-label); letter-spacing: 0.01em; color: var(--on-dark-soft); }
.kit-outcome__line { margin: 0; font-family: "GT America"; font-weight: 300; font-size: var(--cs-title-lg); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; color: var(--on-dark); }
.kit-outcome__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 28px 0 0; list-style: none; border-top: 1px solid var(--line-on-dark); }
.kit-outcome__nums li { display: flex; flex-direction: column; gap: 8px; }
.kit-outcome .kit-num { font-size: var(--cs-num-lg); color: var(--on-dark); }
.kit-outcome .kit-num-label { color: var(--on-dark-soft); }
@media (max-width: 767px) { .kit-outcome { padding: 28px 24px; } .kit-outcome__nums { grid-template-columns: 1fr; } }


/* CHIPS AND LABELS (2026-11-10, v2). Two tags for the whole site. They are
   not buttons, so they never look like one: buttons are outlined pills
   (the button component); tags are soft filled rectangles with a small
   radius and no outline. Sizes are in em of their type role, so they
   scale with the case stages like the text around them.
     chip   content tags (segments, tools, topics, craft, signals):
            GT America, body-sm; --dark on green or ink
     label  status and kickers (From / To, This case, Added later,
            handles): GT America Mono, label size; --dark on green or ink,
            --solid for the one that matters
   Older names are aliases below; new work uses .chip / .label-pill. */
:root {
  --chip-h: 1.95em;      /* 29 at 15px */
  --chip-px: 0.7em;      /* 10.5 at 15px */
  --chip-radius: 6px;
  --chip-bg: rgba(28, 3, 3, 0.07);
  --chip-bg-dark: rgba(255, 255, 255, 0.1);
  --label-h: 2.1em;      /* 25 at 12px */
  --label-px: 0.7em;
  --label-radius: 4px;
}
html:root:root:root body :is(.chip, .chips li, .kit-chips li, .cc__craft li, .ds-topics li, .ai .tag, .stack .move__tools li, .lead__card .ship-pill) {
  display: inline-flex; align-items: center; gap: 0.5em;
  height: var(--chip-h); padding: 0 var(--chip-px); border: 0; border-radius: var(--chip-radius);
  font-family: "GT America"; font-style: normal; font-weight: 400; font-size: var(--cs-body-sm, 15px);
  line-height: 1; letter-spacing: 0; text-transform: none; white-space: nowrap;
  background: var(--chip-bg); box-shadow: none; filter: none; color: var(--text);
}
/* on green or ink */
html:root:root:root body :is(.chip--dark, .ds-topics li, .ai .tag, .stack .move__tools li, .lead__card .ship-pill, .lead__card .lead-step__pills .ship-pill) {
  background: var(--chip-bg-dark); box-shadow: none; color: var(--on-dark);
}
html:root:root:root body :is(.label-pill, .tag, .pill, .og-tag, .social .pill) {
  display: inline-flex; align-items: center; gap: 0.5em; width: fit-content;
  height: var(--label-h); padding: 0 var(--label-px); border: 0; border-radius: var(--label-radius);
  font-family: "GT America Mono"; font-style: normal; font-weight: 400; font-size: var(--cs-label, 12px);
  line-height: 1; letter-spacing: 0.01em; text-transform: none; white-space: nowrap;
  background: var(--chip-bg); box-shadow: none; filter: none; color: var(--text);
}
html:root:root:root body :is(.label-pill--dark, .card--black .tag, .card--green .tag, .ai .tag-label) {
  background: var(--chip-bg-dark); box-shadow: none; color: var(--on-dark-soft);
}
html:root:root:root body :is(.label-pill--solid, .og-tag, .shift__box--to .tag, .shift2__box--to .tag) {
  background: var(--green); box-shadow: none; color: var(--white);
}
/* on ink, the solid label is white (the To box on My approach) */
html:root:root:root body .card--black .shift__box--to .tag { background: var(--white); color: var(--black); }

/* EMPHASIS (2026-11-10): a key phrase inside body copy stands out by colour,
   never by weight, so a paragraph keeps one weight (the site's one-weight
   rule). Light surfaces: full text colour; green and ink: full white */
html:root:root body main :is(p, li) :is(b, strong) { font-weight: inherit; color: var(--text); }
html:root:root body main :is(.card--black, .card--green, .cx, .kit-outcome) :is(p, li) :is(b, strong) { color: var(--on-dark); }

/* QUOTES (2026-11-10): an opening quote mark hangs outside the text, so
   the letters line up with the text around them, never the mark. Wrap it:
   <span class="quote__open">“</span>; its parent becomes the anchor */
:has(> .quote__open) { position: relative; }
.quote__open { position: absolute; right: 100%; }

/* Let's talk (Breno, 2026-11-11): the closing block on the home page and
   About. Title (type .t-lg), one line, then the contact card below.
   Centred, no box. Copy the whole .talk block when using it on a page */
.talk { display: grid; gap: 24px; justify-items: center; width: 100%; }
.talk__title { margin: 0; color: var(--black); text-align: center; --shrink-origin: 50% 0; }
.talk__text { margin: 0; max-width: 34ch; text-align: center; font-family: "GT America"; font-weight: 300; font-size: 1.25rem; line-height: 1.35; color: var(--text-soft); }
.talk .mailcard { margin-top: 16px; }

/* Contact card (Breno, 2026-11-11), on the home page and About: the mail
   composer from his reference, in the site's language: white card,
   hairline rows, mono labels, ink button. On the home stage it scales with
   the frame (--u); elsewhere --u is unset and it is 1. Behaviour in
   contact.js */
.mailcard {
  --mc: var(--u, 1);
  width: 100%; max-width: calc(var(--mc) * 720px); margin-top: 0;
  padding: calc(var(--mc) * 16px) calc(var(--mc) * 40px) calc(var(--mc) * 40px);
  /* the site's white card surface: hairline, soft shadow, shared radius
     (as .facts on About) (Breno, 2026-11-11) */
  background: var(--white); border-radius: var(--radius, calc(var(--mc) * 28px)); box-shadow: var(--shadow-frame);
  text-align: left; display: flex; flex-direction: column;
}
.mailcard__row {
  display: grid; grid-template-columns: calc(var(--mc) * 112px) 1fr auto; align-items: center;
  min-height: calc(var(--mc) * 64px); border-bottom: 1px solid var(--line);
  cursor: text;
}
.mailcard__row:first-child { cursor: default; }
.mailcard__row--msg { align-items: start; padding-top: calc(var(--mc) * 21px); border-bottom: 0; }
.mailcard__label {
  font-family: "GT America Mono"; font-size: calc(var(--mc) * 13px); letter-spacing: 0.01em;
  color: var(--text-faint);
}
.mailcard__to, .mailcard__field {
  font-family: "GT America"; font-weight: 400; font-size: calc(var(--mc) * 19px);
  letter-spacing: -0.01em; color: var(--text);
}
.mailcard__field {
  grid-column: 2 / 4; width: 100%; margin: 0; padding: 0; border: 0; background: none;
  outline: none; resize: none; line-height: 1.4;
}
.mailcard__row--msg .mailcard__field { min-height: calc(var(--mc) * 132px); margin-top: calc(var(--mc) * -3px); }
.mailcard__field::placeholder { color: var(--text-faint); opacity: 1; }
.mailcard__row:focus-within { border-bottom-color: var(--line-strong); }
.mailcard__copy {
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: "GT America Mono"; font-size: calc(var(--mc) * 13px); letter-spacing: 0.01em;
  color: var(--text-faint); transition: color var(--dur-xs);
}
.mailcard__copy:hover { color: var(--text); }
.mailcard__copy:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
/* Send, and beside it how the sending went (contact.js) */
.mailcard__foot { display: flex; align-items: center; flex-wrap: wrap; gap: calc(var(--mc) * 8px) calc(var(--mc) * 20px); margin-top: calc(var(--mc) * 16px); }
.mailcard__send { order: 2; margin-left: auto; } /* right edge lines up with "Copy" above */
.mailcard__send:disabled { opacity: 0.5; cursor: progress; }
.mailcard__status {
  margin: 0; flex: 1 1 calc(var(--mc) * 240px);
  font-family: "GT America Mono"; font-size: calc(var(--mc) * 13px); letter-spacing: 0.01em; line-height: 1.4;
  color: var(--text-faint);
}
.mailcard__status[data-kind="ok"] { color: #004233; } /* site green */
.mailcard__status[data-kind="error"] { color: var(--text); }
/* the bot trap: kept off screen, not display:none (some bots skip those) */
.mailcard__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
html:not(.is-stage) .mailcard { --mc: 1; }
@media (max-width: 767px) {
  html:not(.is-stage) .mailcard { padding: 8px 20px 24px; }
  html:not(.is-stage) .mailcard__row { grid-template-columns: 76px 1fr auto; min-height: 56px; }
  html:not(.is-stage) .mailcard__to, html:not(.is-stage) .mailcard__field { font-size: 17px; }
}
