/* ==========================================================================
   v3. The homepage redesign.

   Loaded only by index.html, and loaded last: after style.css and after
   v2.css. Nothing in those two files is edited, so this layer is additive
   and the case study pages, which never load it, are untouched by
   everything below. As of 2026-10-21 this IS the live homepage; it was
   promoted out of index-v3.html, and the bento version it replaced is the
   index.html of commit 123a4aa.

   The order here is the order of the build spec, so a task number is a
   place in this file:
     1  tokens and fonts        5  component fixes
     2  the layout shell        6  the hero
     3  the grid and the tiles  7  the phone
     4  hierarchy and type      8  dark

   Crazy Mode lives in crazy.css, loaded after this.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. TOKENS

   ONE FAMILY, AND A HAND.
   The page already has two strong voices in it, the photograph and the
   drawn characters. Every face added beside them is a third voice
   competing with two that cannot be beaten, so there is one:

     Instrument Sans   every word on the page, 400 through 600
     Kalam             only where something is handwritten in the fiction:
                       the sticky notes and the WHOA. panel

   No serif, in any cut. No mono. His call, 2026-10-20: the mono was doing
   the label work and it read as a costume. Labels are now told apart from
   prose the way they should be, by weight, size, case and tracking, which
   is cheaper and quieter than a second family.

   A serif is allowed back only to make a statement, meaning one deliberate
   piece of display type that earns its own argument. It is not allowed as
   a texture, a label face or an accent word.

   --font-sans is re-pointed rather than added to, because this file is
   loaded by index.html alone: nothing else on the site sees it. The
   legacy --font-serif and --font-hand aliases are left pointing at
   --font-sans exactly as style.css set them, so no old rule changes face.
   -------------------------------------------------------------------------- */

:root {
  --font-sans: "Instrument Sans", ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  --font-script: "Kalam", "Bradley Hand", "Segoe Print", cursive;

  /* BEIGE GROUND, FOREST MARK. 2026-10-21, replacing the maroon/pink.
     Beige cannot be the accent: the accent has to carry light text on a
     filled button and survive as a focus ring, and beige does neither.
     Forest is the only one of the pair that can be the mark, so the pair
     splits by job rather than by taste. In dark mode they swap, which is
     the answer to "don't just lighten the forest" — a pale mint would
     have been the same mistake the pink was.

     Every ratio below is measured against --v3-surface, the card, because
     that is where every word on this page actually sits. */
  --v3-page: #EDE8DD;
  --v3-surface: #FBF8F1;
  --v3-surface-accent: #E3DDD0;
  --v3-border: #BCB4A2;
  --v3-border-soft: #D3CBBA;

  /* Five values carry every word on the page, and the sixth, --v3-muted,
     never carries one. It is 2.8:1 against the card and that is deliberate:
     it is for bullets, dots and disabled chrome, and the day it holds text
     is the day this page fails AA. */
  --v3-ink: #15120C;        /* 17.62 : 1 */
  --v3-text: #3C372B;       /* 11.16 : 1 */
  --v3-label: #4B4538;      /*  8.97 : 1 */
  --v3-text-2: #636051;     /*  5.96 : 1, and only at 15px and up */
  --v3-muted: #9C9684;      /*  2.78 : 1, decorative only */

  /* #2F6344 over a darker, "safer" forest on purpose. A 60px full stop is
     an 8px disc, and against #15120C ink a very dark green reads as black
     rather than as green, which kills the one joke on the page. 6.62:1
     clears AA for body text, let alone for display type. */
  --v3-accent: #2F6344;     /*  6.62 : 1 */
  --v3-accent-press: #1F4A32;
  --v3-accent-ink: #FBF8F1; /* bound to the card, so a filled button reads
                               as a card-coloured shape punched out of it */
  --v3-highlight: #DCE7DA;  /* ::selection; ink on it is 14.67 : 1 */
  --v3-focus: #2F6344;      /*  6.62 card, 5.75 page */
  --v3-grain-opacity: .05;

  --v3-window-max: 1120px;
  --v3-window-radius: 20px;
  --v3-window-shadow: 0 10px 34px -16px rgba(17, 17, 17, .18);
  --v3-window-pad: clamp(12px, 1.6vw, 20px);
  --v3-titlebar-h: 40px;

  --v3-tile-radius: 14px;
  --v3-inner-radius: 10px;   /* tile radius less the 4px of padding around it */
  --v3-btn-radius: 6px;
  --v3-gap: 16px;
  --v3-tile-pad: clamp(20px, 2vw, 28px);
  --v3-page-margin: clamp(16px, 4vw, 48px);

  --controls-h: 56px;        /* 44px of control plus 12px of air */
  --safe-b: env(safe-area-inset-bottom, 0px);

  --ease-standard: cubic-bezier(.4, 0, .2, 1);     /* 200ms, colour and small UI */
  --ease-emphasis: cubic-bezier(.22, 1, .36, 1);   /* 320ms, lifts and frames */
  --ease-tactile: cubic-bezier(.3, 0, .5, 1);      /*  90ms, the button press */

  /* 72 inside a 1120 window crowded everything under it. 60 is still the
     biggest thing on the page by a factor of three. */
  --fs-hero: clamp(40px, 1.6rem + 2.6vw, 60px);
  --fs-feature: clamp(26px, 1rem + 1.5vw, 36px);
  --fs-title: clamp(20px, .9rem + .6vw, 24px);
  --fs-lead: clamp(17px, .9rem + .35vw, 20px);
  --fs-body: 16px;
  --fs-meta: 13px;
  --fs-label: 11.5px;
  --fs-hand: clamp(20px, 1rem + .5vw, 26px);
  --lh-tight: 1.08;
  --lh-body: 1.6;
  --measure-title: 28ch;
  --measure-body: 62ch;
}

:root[data-theme="dark"] {
  /* Dark inverts the pair: deep forest ground, wheat-beige mark. The old
     dark accent measured 5.95:1; this one is 10.30:1.
     DO NOT put --v3-text-2 on --v3-surface-accent in dark: 4.48:1, under AA.
     Keep this block and the prefers-color-scheme mirror below identical. */
  --v3-page: #171C18;
  --v3-surface: #1E241F;
  --v3-surface-accent: #273028;
  --v3-border: #3C473D;
  --v3-border-soft: #2F392F;
  --v3-ink: #F3F0E7;        /* 13.88 : 1 */
  --v3-text: #CBC6B6;       /*  9.26 : 1 */
  --v3-label: #B4AF9F;      /*  7.21 : 1 */
  --v3-text-2: #989484;     /*  5.20 : 1 */
  --v3-muted: #5F665F;      /*  2.68 : 1, decorative only */
  --v3-accent: #DCD0AE;     /* 10.30 : 1 */
  --v3-accent-press: #C2B693;
  --v3-accent-ink: #171C18; /* 11.25 on the accent */
  --v3-highlight: rgba(220, 208, 174, .20);
  --v3-focus: #DCD0AE;
  --v3-grain-opacity: .03;
  --v3-window-shadow: 0 10px 34px -16px rgba(0, 0, 0, .45);
}

/* The head script always writes data-theme before paint, so the block above
   is the whole story for anyone with JS. This mirror is for the no-JS
   reader, and it follows the pattern the rest of the site already uses. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Mirror of the [data-theme="dark"] block above, for the no-JS reader.
       These two must stay identical: change one and JS and no-JS readers
       get different dark modes, invisibly. */
    --v3-page: #171C18;
    --v3-surface: #1E241F;
    --v3-surface-accent: #273028;
    --v3-border: #3C473D;
    --v3-border-soft: #2F392F;
    --v3-ink: #F3F0E7;
    --v3-text: #CBC6B6;
    --v3-label: #B4AF9F;
    --v3-text-2: #989484;
    --v3-muted: #5F665F;
    --v3-accent: #DCD0AE;
    --v3-accent-press: #C2B693;
    --v3-accent-ink: #171C18;
    --v3-highlight: rgba(220, 208, 174, .20);
    --v3-focus: #DCD0AE;
    --v3-grain-opacity: .03;
    --v3-window-shadow: 0 10px 34px -16px rgba(0, 0, 0, .45);
  }
}

/* --- The bridge -------------------------------------------------------
   Every rule in style.css and v2.css reads the old names. Pointing those
   names at the new palette re-skins the whole page without a single
   selector being rewritten, which is also what makes this file short
   enough to read. The three that change meaning rather than value:
   --c-body-soft and --c-label were #5C6066 and #666A71, both too light to
   carry running copy on paper, and --c-accent-deep was a second maroon
   (#8C2230) sitting next to the real one. */
:root,
:root[data-theme="dark"] {
  --c-bg: var(--v3-page);
  --c-surface: var(--v3-surface);
  --c-surface-2: var(--v3-surface-accent);
  --c-rule: var(--v3-border-soft);
  --c-rule-strong: var(--v3-border);
  --c-ghost: var(--v3-surface-accent);
  --c-ink: var(--v3-ink);
  --c-heading: var(--v3-ink);
  --c-body: var(--v3-text);
  --c-body-soft: var(--v3-text);
  --c-label: var(--v3-label);
  --c-muted: var(--v3-muted);
  --c-accent-deep: var(--v3-accent);
  --c-slot-bg: var(--v3-surface-accent);
  --c-slot-border: var(--v3-border);
  --c-slot-text: var(--v3-label);
  --c-pill-border: var(--v3-border);
  --c-pill-text: var(--v3-label);
  --v2-card-edge: var(--v3-border-soft);
  --c-tile: var(--v3-surface);
  --c-tile-edge: var(--v3-border-soft);
  --tile-radius: var(--v3-tile-radius);
  --grid-gap: var(--v3-gap);
}

body {
  background-color: var(--v3-page);
  color: var(--v3-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.v2-grain { opacity: var(--v3-grain-opacity); }
::selection { background: var(--v3-highlight); color: var(--v3-ink); }

/* THE LABEL TEXTURE.
   One rule, applied everywhere a word is furniture rather than prose. A
   label is told apart by being small, capitalised, tracked open and a
   little heavier than the prose around it. 0.12em rather than the 0.10
   the mono wanted, because caps in a grotesque close up faster. */
.bento--home .tile__eyebrow,
.bento--home .fact__k,
.window__bar,
.pile__hint,
.curtain__line {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.slot {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
}

.hand-note {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: var(--fs-hand);
  line-height: 1.15;
  color: var(--v3-accent);
}


/* --------------------------------------------------------------------------
   2. THE LAYOUT SHELL

   2.1 The zoom goes.
   style.css scales the whole grid to 80% above 1000px, which is why the
   column reads as narrow: it is not a 1160px page, it is a 928px page with
   12.8px body text. Widening is impossible while that is on, so it comes
   off here rather than in style.css, which keeps the rollback to a file.
   v2.js reads the computed zoom for the toybox, so it follows on its own.
   -------------------------------------------------------------------------- */

@media (min-width: 1000px) {
  .homewrap--curtained { zoom: 1; }
}

/* 2.2 and 2.3. The page is a window on the ground, and the window opens
   directly under the photograph. The gap that used to sit there was 64px
   of nothing and read as a section that failed to load; the title bar is
   now the first thing under the picture, which is an edge rather than a
   hole. The transient band during the 1.4x lift is untouched and stays,
   because that band is the whole concept. */
.homewrap {
  max-width: calc(var(--v3-window-max) + 2 * var(--v3-page-margin));
  margin: 0 auto;
  padding: 0 var(--v3-page-margin) calc(var(--controls-h) + 48px + var(--safe-b));
}

.homewrap--curtained { padding-top: clamp(16px, 2vw, 28px); }

.window {
  position: relative;
  z-index: 2;                       /* .v2-grain is fixed at 1, so grain stays on the ground */
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-window-radius);
  box-shadow: var(--v3-window-shadow);
  overflow: clip;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--v3-titlebar-h);
  padding: 0 14px;
  background: color-mix(in srgb, var(--v3-surface-accent) 70%, transparent);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
  border-bottom: 1px solid var(--v3-border-soft);
  font: 600 12px/1 var(--font-sans);
  letter-spacing: .02em;
  color: var(--v3-label);
}

.window__dots { display: inline-flex; gap: 6px; }

.window__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  background: var(--v3-muted);
}

.window__dots i:first-child { background: var(--v3-accent); }

.window__title { flex: 1; text-align: center; }
.window__spacer { width: 42px; }    /* the dots' own width, so the title centres on the bar */

.window__body { padding: var(--v3-window-pad); }

.window__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 10px var(--v3-window-pad) 14px;
  border-top: 1px solid var(--v3-border-soft);
  font: 500 13px/1.4 var(--font-sans);
  color: var(--v3-label);
}

/* 2.4 Twelve columns, rows sized by their content.
   The named-area map and the nine 204px tracks go. Both were written for a
   mosaic that no longer exists, and half the names in the map point at
   tiles that were deleted. */
.bento--home {
  grid-template-areas: none;
  grid-template-rows: none;
  grid-auto-rows: auto;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--v3-gap);
  align-items: stretch;
}

.bento--home > .tile { grid-area: auto; grid-column: 1 / -1; }

/* Four floors written for the old row unit. A tile's height is its content
   from here on, and a floor is what stops a row from levelling. */
.bento--home .tile--pair .tile__in,
.bento--home .tile--band .tile__in,
.bento--home .a-lurch .tile__in,
.bento--home .a-cat .tile__in { min-height: 0; }

/* 2.5 The card surface.
   .tile--sm kept its own 24px padding, which is a second padding value on
   four tiles out of thirteen and, once the tiles are in a subgrid, four
   tiles whose rows start 1.6px off their neighbours'. One value. */
.bento--home .tile--sm .tile__in { padding: var(--v3-tile-pad); }

.bento--home .tile__in {
  background: var(--v3-surface);
  border: 1px solid var(--v3-border-soft);
  border-radius: var(--v3-tile-radius);
  padding: var(--v3-tile-pad);
  box-shadow: none;
  transition:
    transform 320ms var(--ease-emphasis),
    border-color 200ms var(--ease-standard),
    box-shadow 320ms var(--ease-emphasis),
    background-color 200ms var(--ease-standard),
    color 200ms var(--ease-standard);
}

/* The per-card grain goes with the window: the sheet metaphor now belongs
   to the window itself, and two grains stacked inside one frame read as
   noise rather than as paper. */
.bento--home .tile__in::before { display: none; }

@media (hover: hover) and (pointer: fine) {
  .bento--home a.tile:hover .tile__in {
    border-color: var(--v3-border);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .28);
  }
}

.bento--home a.tile:focus-visible .tile__in {
  outline: 3px solid var(--v3-focus);
  outline-offset: 3px;
  border-color: var(--v3-border);
}

.bento--home .tile__media {
  border-radius: var(--v3-inner-radius);
  overflow: hidden;
  background: var(--v3-surface-accent);
}

.bento--home .tile__media img,
.bento--home .tile__media video { border-radius: 0; }   /* the container clips now */

.slot {
  border: 1px dashed var(--v3-border);
  background: var(--v3-surface-accent);
  color: var(--v3-label);
  border-radius: var(--v3-inner-radius);
  font-size: 12px;
}

/* The per-project accent wash goes.
   Five per cent of a project colour was a tint you felt rather than saw on
   #FFFFFF. On #FDFDF8, inside a window that is also #FDFDF8, it is a tint
   you see: six cards in six different colours, which is the opposite of
   what the window is for. The colour stays where it carries information,
   in the eyebrow, the arrow on hover and the featured frame. */
.bento--home .tile:not(.tile--plain) .tile__in::after { display: none; }


/* --------------------------------------------------------------------------
   3. THE GRID AND THE TILES

   3.1 The placement map. Five ratios and no others: 12, 6/6, 4/4/4, 4/8,
   8/4. DOM order is untouched, so tab order and the phone stack are too.
   -------------------------------------------------------------------------- */

.bento--home .a-supaca,
.bento--home .a-bizotico { grid-column: span 6; }

/* Koodai came out of the grid on 2026-10-20, so what was a 4/4/4 row is
   a pair. Vist Labs and Sintero take six each, which puts two 6/6 rows
   back to back under the featured card and gives the grid a steadier
   beat than it had with a triple wedged between them. */
.bento--home .a-vistlabs { grid-column: span 6; }

/* Sintero does not get a full row (his call, 2026-10-21). With Supaca
   promoted out of the six-column pool the remaining seven tiles are odd,
   so the row that absorbs it is Lurch instead: see §12.4. */
.bento--home .a-sintero { grid-column: span 6; }

.bento--home .a-cat,
.bento--home .a-desserts { grid-column: span 4; }

.bento--home .a-lurch,
.bento--home .a-moments { grid-column: span 8; }

.bento--home .a-intro,
.bento--home .tile--feature,
.bento--home .a-blog,
.bento--home .a-contact { grid-column: 1 / -1; }

/* Tablet keeps twelve columns and halves the spans, so no row can grow a
   hole. Vist Labs takes the full width there and runs as a band instead. */
@media (max-width: 1099px) {
  .bento--home .a-vistlabs,
  .bento--home .a-cat,
  .bento--home .a-lurch,
  .bento--home .a-moments,
  .bento--home .a-desserts { grid-column: span 6; }

  .bento--home .a-sintero { grid-column: span 6; }
}

@media (max-width: 699px) {
  .bento--home > .tile { grid-column: 1 / -1 !important; }
}

/* 3.2 One anatomy for every project tile: media at a stated ratio, then
   eyebrow, title, foot, and the outcome row if the tile has one. The old
   mix of thumb-left bands and 50/50 pairs is what made two tiles in one row
   look like two different components.

   On :where(). The rules these replace are three classes deep
   (.bento--home .tile--band .tile__media and friends), so an override has
   to reach three. Writing the exclusions inside :where() holds this rule at
   exactly three and lets it win on source order instead of on weight, which
   is what keeps the per-tile rules under it able to win in turn. Without
   it, a generic rule at five classes would outrank every specific one
   below, which is the wrong way round. */
.bento--home .tile:where(:not(.tile--feature):not(.tile--plain)) .tile__in {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
}

.bento--home .tile:where(:not(.tile--feature):not(.tile--plain)) .tile__media {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin: 0 0 20px;
  flex: none;
}

/* The four-column tiles get the squarer panel: at about 330px wide, 16/10
   is a letterbox and 4/3 is a picture. */
.bento--home .a-cat .tile__media { aspect-ratio: 4 / 3; }

/* The intro and contact leads are two-column grids of their own and are
   named out of this rule, which is a flex column for the project tiles. */
.bento--home .tile .tile__lead:where(:not(.intro):not(.contact)) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  grid-column: auto;
  grid-row: auto;
}

.bento--home .tile__foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.bento--home .tile .tile__more {
  grid-column: auto;
  grid-row: auto;
  align-self: stretch;
}

/* 3.3 One line per row.
   Three tiles side by side have three different amounts of copy, and two of
   the three have an outcome row while the third does not, so their
   eyebrows, titles and role lines all landed on different lines. A subgrid
   of three tracks, shared by every tile in the row, is what puts them back
   on one. Progressive: without subgrid the flex layout above still holds,
   and the title floor below keeps most of it.

   .a-lurch above 1100 and .a-vistlabs on tablet are excluded from the inner
   subgrid because they run as two-column bands (3.6); they still take the
   three rows, so the row stays level. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 700px) {
    /* Every exclusion sits inside :where(), so these rules stay at two and
       three classes and the band rules in 3.6 can still overrule them on
       source order. Written the obvious way they reach seven classes and
       nothing below this point can touch them. */
    .bento--home > .tile:where(:not(.a-intro):not(.tile--feature):not(.a-blog):not(.a-contact)) {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      row-gap: 0;
    }

    .bento--home > .tile:where(:not(.tile--plain):not(.a-intro):not(.tile--feature):not(.a-blog):not(.a-contact)) .tile__in {
      grid-row: 1 / -1;
      display: grid;
      grid-template-rows: subgrid;
      row-gap: 0;
    }

    /* row 1 media, row 2 the lead, row 3 the outcome. */
    .bento--home .tile .tile__in > .tile__media { grid-row: 1; }
    .bento--home .tile .tile__in > .tile__lead { grid-row: 2; }
    .bento--home .tile .tile__in > .tile__more { grid-row: 3; }

    /* The plain tiles have no three-part anatomy to align, so they take the
       whole span as one box and level their row that way. */
    .bento--home > .tile:where(.tile--plain:not(.a-intro):not(.a-blog):not(.a-contact)) .tile__in {
      grid-row: 1 / -1;
    }
  }
}

/* The fallback when subgrid is missing: two lines of title on every tile,
   so the foot of a one-line title does not ride up past its neighbour's. */
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 700px) {
    .bento--home .tile__title { min-height: calc(var(--fs-title) * 1.2 * 2); }
  }
}

/* 3.4 One measure for every title.
   This replaces 20ch, 22ch, 18ch and a hand-set clamp on Lurch, which is
   four answers to one question and the reason Sintero's title wrapped in
   about 160px while Produsa's ran to 500. */
.bento--home .tile__title,
.bento--home .tile--sm .tile__title,
.bento--home .tile--pair .tile__title,
.bento--home .a-lurch .tile__title,
.contact .tile__title {
  max-width: var(--measure-title);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.008em;
  color: var(--v3-ink);
  text-wrap: balance;
  margin-top: 10px;
}

/* 3.5 Labels, roles and outcomes.
   Eyebrows were 11px at 500; they are 12px at 650 now, which is the one
   change that makes them read as labels rather than as small text. */
.bento--home .tile__eyebrow {
  font: 600 var(--fs-label)/1.3 var(--font-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tile-acc, var(--v3-label));
  margin: 0 0 12px;
}

.bento--home .tile__role {
  font: 400 var(--fs-meta)/1.5 var(--font-sans);
  letter-spacing: 0;
  color: var(--v3-label);
}

.bento--home .tile__arrow {
  color: var(--v3-ink);
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: var(--v3-btn-radius);
  border: 1px solid var(--v3-border-soft);
  background: none;
  transition: background-color 200ms var(--ease-standard), color 200ms var(--ease-standard),
              border-color 200ms var(--ease-standard);
}

.bento--home .tile__arrow svg { width: 14px; height: 14px; }

.bento--home a.tile:hover .tile__arrow,
.bento--home a.tile:focus-visible .tile__arrow {
  background: var(--v3-accent);
  color: var(--v3-accent-ink);
  border-color: var(--v3-accent-press);
}

/* The outcome is a label and a sentence, and that is all it is. It was a
   bordered, tinted mini-table, which is a box drawn around four words
   inside a card that is already a box. Same call as the featured card:
   the label is small and tracked, the sentence is body size, and the
   difference between them is the whole design. */
.bento--home .tile .tile__more {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
  max-width: none;
}

.bento--home .fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
}

.bento--home .fact__k {
  font: 600 var(--fs-label)/1.3 var(--font-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--v3-label);
  margin: 0;
}

.bento--home .fact__v {
  font: 400 15px/1.5 var(--font-sans);
  color: var(--v3-text);
  margin: 0;
  max-width: 44ch;
}

/* 3.6 The two wide tiles run side by side, one to one. An eight-column
   tile with its picture on top is a very wide letterbox over three lines
   of copy; split evenly it is a band. */
@media (min-width: 1100px) {
  /* One row, two columns, and both said again because 3.3 has just put
     this card's picture in row 1 and its words in row 2. */
  .bento--home .a-lurch .tile__in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    column-gap: 24px;
    align-items: stretch;
  }
  /* No floor on the media. The tile__in spans the row group's three tracks,
     so a floor here is a floor on the whole row, and the four-column tile
     beside it ends up with a hole under its picture. The picture takes the
     height the row turns out to have instead. */
  .bento--home .a-lurch .tile__in > .tile__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
    margin: 0;
    align-self: stretch;
    grid-column: 1;
    grid-row: 1 / -1;
  }
  /* The row assignments from 3.3 put the picture and the words in rows 1
     and 2 of the subgrid, which is exactly what stacks them. Inside a band
     they go side by side instead, so both are said again here. */
  .bento--home .a-lurch .tile__in > .tile__lead {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Vist Labs used to take the whole width on tablet and run as a band,
   because Koodai and Sintero could not both fit beside it. With Koodai
   gone it pairs with Sintero at six columns each, at every width down to
   the phone, and the band rule it needed is deleted rather than left
   lying around for the next person to wonder about. */


/* --------------------------------------------------------------------------
   4. HIERARCHY AND TYPE

   4.1 The intro is the page title and is now set like one: the biggest
   thing on the page, at one weight, with the accent spent on punctuation.
   -------------------------------------------------------------------------- */

/* ONE WEIGHT, ONE BREAK, FOUR RED DOTS.
   The first pass emphasised this sentence four times in nine words: bold
   on the name, a blush pill behind the job, and two words in maroon italic
   serif. All four are gone. What is left is a line break after the
   comma-clause, which is what makes the last two words read as the
   afterthought they are, and the full stops set in maroon. Punctuation as
   the accent is the right joke for copy written as flat declaratives with
   the full stops doing the timing, and it rhymes with the ink in the
   drawings rather than competing with it. */
.intro__lead {
  font: 600 var(--fs-hero)/var(--lh-tight) var(--font-sans);
  letter-spacing: -0.018em;
  color: var(--v3-ink);
  max-width: 18ch;
  margin: 0;
}

/* Below 600 the sentence is three lines anyway and a forced break just
   makes a worse one, so the halves only become their own lines when there
   is room for the break to mean something. */
@media (min-width: 600px) {
  .intro__lead .ln { display: block; }
}

.intro__lead .pt { color: var(--v3-accent); }

.intro__claim {
  font-size: var(--fs-lead);
  color: var(--v3-ink);
  max-width: 46ch;
}

.intro__notes li {
  font-size: var(--fs-body);
  color: var(--v3-text);
}

.intro__notes li::before { background: var(--v3-accent); }

.intro__claim,
.intro__notes { border-top-color: var(--v3-border-soft) !important; }

/* 4.2 The intro card has the width now, so the claim and the notes take a
   7/5 split and the right-hand column is also the toybox's floor. v2.js
   measures the card, so a wider card is a wider floor with no change there. */
@media (min-width: 1000px) {
  .bento--home .a-intro .tile__in { padding: clamp(28px, 3.2vw, 48px); }
  .bento--home .tile__lead.intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 4vw, 64px);
  }
}

.a-intro .hand-note {
  display: inline-block;
  transform: rotate(-3deg);
  margin-top: 12px;
}

/* 4.3 The featured card.
   The tab strip is the frame's own label: the active tab is fused to a six
   pixel frame in the project's colour, and the mock sits in the seven
   columns with the argument in the five. One link, one focus ring. */
/* --feat was dead: nothing reads it. Removed with the eyebrow tints. */

.bento--home .tile--feature .tile__in {
  padding: clamp(28px, 3.2vw, 44px);
  display: block;
}

/* The tab strip and its frame are gone. What is left is the split, and
   the card leads on size and space instead: it is the only twelve-column
   project on the page and it has the most air inside it. No border, no
   wash, nothing drawn around it. */
.fframe {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: center;
  border: 0;
  padding: 0;
  background: none;
}

.fmock {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .35);
  transform: rotate(-0.6deg);
  transition: transform 320ms var(--ease-emphasis);
}

.fmock__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  background: var(--v3-surface-accent);
  border-bottom: 1px solid var(--v3-border-soft);
}

.fmock__chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--v3-muted); flex: none; }

.fmock__url {
  flex: 1;
  height: 14px;
  margin-left: 8px;
  border-radius: 4px;
  background: var(--v3-surface);
}

.bento--home .tile--feature .fmock .tile__media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  margin: 0;
  overflow: hidden;
}

.bento--home .tile--feature .tile__title {
  font-size: var(--fs-feature);
  line-height: 1.1;
  letter-spacing: -0.028em;
  max-width: 20ch;
  margin: 4px 0 20px;
}

/* The detail used to be a bordered table with tinted key cells, which put
   a box inside a frame inside a card. It is three lines of text now, told
   apart by size and colour alone, in the order they are worth reading:
   what happened, then who and where, then the way in. */
.fout {
  margin: 0 0 16px;
  font: 400 var(--fs-lead)/1.5 var(--font-sans);
  letter-spacing: -0.008em;
  color: var(--v3-text);
  max-width: 34ch;
}

.bento--home .tile--feature .tile__role { margin: 0 0 22px; }

.fcta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 15px/1 var(--font-sans);
  color: var(--v3-ink);
}

@media (hover: hover) and (pointer: fine) {
  .tile--feature:hover .fmock { transform: rotate(0deg) translateY(-3px); }
  /* The mock moves, not the card. A twelve-column card that lifts two
     pixels is the page twitching. */
  .bento--home .tile--feature:hover .tile__in { transform: none; box-shadow: none; }
}

/* 4.4 A section eyebrow is the same component as a project eyebrow. */
.bento--home .tile--plain .tile__eyebrow { color: var(--v3-label); }


/* --------------------------------------------------------------------------
   5. COMPONENTS

   5.1 Sintero needs no rule of its own: four columns, the stacked anatomy
   and one title measure between them are what fix it.

   5.2 Desserts. Four columns of which two thirds were empty paper, sitting
   next to an eight-column tile with a photograph in it. The panel is drawn
   in CSS and is decorative, so nothing is invented and nothing is redrawn.
   -------------------------------------------------------------------------- */

.bento--home .a-desserts .tile__in {
  display: flex;
  flex-direction: column;
}

/* Three classes deep because .bento--home .tile--pair .tile__media carries
   min-height: 0, and this panel is the one media box on the page that has
   to have a floor: there is no picture in it to give it a height. */
.bento--home .a-desserts .dessert-art {
  flex: 1 1 auto;
  min-height: 180px;
  margin: 0 0 20px;
  border-radius: var(--v3-inner-radius);
  background:
    radial-gradient(circle at 30% 35%, var(--v3-highlight) 0 22%, transparent 23%),
    radial-gradient(circle at 70% 65%, color-mix(in srgb, var(--v3-accent) 14%, transparent) 0 18%, transparent 19%),
    var(--v3-surface-accent);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.bento--home .a-desserts .dessert-art::after {
  content: "WHOA.";
  font: 700 clamp(44px, 4vw, 64px)/1 var(--font-script);
  color: var(--v3-accent);
  transform: rotate(-6deg);
}

/* 5.3 Also true, in eight columns: the pile on the left and everything that
   talks about it on the right, so the card uses the width it was given. */
@media (min-width: 1100px) {
  .bento--home .a-moments .tile__in {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 28px;
  }
  /* v2.js builds .pile__nav (the dots and the hint) and puts it after the
     caption, so every child of this card is named here. Auto-placement
     would put each one back under the pile, one row at a time. */
  .a-moments .tile__eyebrow { grid-column: 1 / -1; grid-row: 1; }
  .a-moments .pile { grid-column: 1; grid-row: 2 / span 2; margin-top: 0; align-self: center; }
  .a-moments .pile__cap { grid-column: 2; grid-row: 2; margin-top: 0; align-self: center; }
  .a-moments .pile__nav { grid-column: 2; grid-row: 3; align-self: start; }
}

.pile__cap { font-size: 16px; color: var(--v3-text); }
.pile__card { border-color: var(--v3-border); border-radius: var(--v3-inner-radius); }

/* 5.4 Writing: a reading column, then three equal stubs. */
.a-blog .tile__title { max-width: var(--measure-title); margin-bottom: 20px; }

.blog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--v3-gap);
  margin-top: 0;
}

.blog .slot { min-height: 160px; margin: 0; }

@media (max-width: 899px) {
  .blog { grid-template-columns: 1fr; }
  .blog .slot { min-height: 112px; }
}

/* 5.5 Contact. Three links on three baselines become three rows on one
   left edge, and the email becomes the button it always was. */
.bento--home .tile__lead.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: center;
  align-content: center;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-btn-radius);
  font: 600 15px/1 var(--font-sans);
  color: var(--v3-ink);
  text-decoration: none;
  transition: background-color 200ms var(--ease-standard), border-color 200ms var(--ease-standard);
}

.contact__row:hover,
.contact__row:focus-visible { background: var(--v3-surface-accent); border-color: var(--v3-ink); }

.contact__list .btn { width: 100%; justify-content: center; min-height: 48px; }

/* 5.6 Curved boxes that answer when you press them.
   His call, 2026-10-20: keep the feedback, lose the mechanical drop. The
   first pass gave every button a hard 3px bottom edge that fell away on
   :active, which is a toy-button idiom and the loudest small thing on the
   page. The press is now a tint and a hair of scale: it still answers
   under a thumb, it just does not clunk. Still transform-only, so there is
   no layout shift either way. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font: 600 15px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 10px;
  border: 1px solid var(--btn-edge);
  background: var(--btn-bg);
  color: var(--btn-ink);
  transform: scale(1);
  cursor: pointer;
  transition: transform 120ms var(--ease-standard), filter 200ms var(--ease-standard),
              background-color 200ms var(--ease-standard), border-color 200ms var(--ease-standard);
}

.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.975); filter: brightness(.94); }
.btn:focus-visible { outline: 3px solid var(--v3-focus); outline-offset: 3px; }

.btn--primary {
  --btn-bg: var(--v3-accent);
  --btn-ink: var(--v3-accent-ink);
  --btn-edge: var(--v3-accent);
}

.btn--secondary {
  --btn-bg: var(--v3-surface);
  --btn-ink: var(--v3-ink);
  --btn-edge: var(--v3-border);
}

/* 5.7 The two fixed controls join the same family. */
.bar__in {
  background: color-mix(in srgb, var(--v3-surface) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--v3-border);
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, .35);
}

.bar__in > a {
  border-radius: var(--v3-btn-radius);
  color: var(--v3-label);
  font-weight: 600;
  font-size: 14px;
  transition: color 200ms var(--ease-standard), background-color 200ms var(--ease-standard);
}

.bar__in > a:hover,
.bar__in > a:focus-visible { color: var(--v3-ink); background: var(--v3-surface-accent); }

/* Said through .bar__in > a, because that selector (one class and one
   element) outranks a bare .bar__cta and would otherwise paint the CTA's
   text in the label grey, on maroon, at 2.2:1. */
.bar__in > a.bar__cta,
.bar__in > a.bar__cta:hover,
.bar__in > a.bar__cta:focus-visible {
  background: var(--v3-accent);
  color: var(--v3-accent-ink);
  border: 1px solid var(--v3-accent);
  box-shadow: none;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 120ms var(--ease-standard), filter 200ms var(--ease-standard);
}

.bar__in > a.bar__cta:hover,
.bar__in > a.bar__cta:focus-visible { filter: brightness(1.05); }
.bar__in > a.bar__cta:active { transform: scale(.975); filter: brightness(.94); }

.dock__btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  box-shadow: 0 2px 10px -6px rgba(17, 17, 17, .3);
  color: var(--v3-ink);
  transition: transform 120ms var(--ease-standard), background-color 200ms var(--ease-standard),
              border-color 200ms var(--ease-standard);
}

.dock__btn:hover { border-color: var(--v3-ink); }
.dock__btn:active { transform: scale(.94); }
.dock__btn:focus-visible { outline: 3px solid var(--v3-focus); outline-offset: 3px; }


/* --------------------------------------------------------------------------
   6. THE HERO

   The photograph is untouched: no filter, the same 1.4x lift, the same crop
   budget. The overlay is a layer over it and the scrim is a second layer,
   which is why the no-filter rule still holds.
   -------------------------------------------------------------------------- */

.curtain__title {
  position: absolute;
  left: var(--margin);
  bottom: clamp(84px, 11vh, 128px);
  z-index: 2;
  display: grid;
  gap: 6px;
  color: var(--v3-surface);   /* was a hardcoded cool grey; follows the warm ground now */
  max-width: 22ch;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35);
  opacity: var(--cue, 1);     /* main.js writes --cue on .curtain__frame as you scroll */
  pointer-events: none;
}

.curtain__name {
  font: 600 clamp(28px, 1rem + 2.2vw, 44px)/1 var(--font-sans);
  letter-spacing: -0.02em;
}

.curtain__line {
  font: 600 13px/1.4 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .9;
}

/* A scrim under the overlay, not a filter on the photograph. It covers the
   bottom 40%, which is grass and bench: the part of the frame the crop
   budget already counts as spent. */
.curtain__frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .28), transparent);
}

/* 6.2 Mobile art direction.
   Option A of the spec, measured on the source: the band that has to
   survive runs x 0.235 to 0.75 and its centre is 0.493, which the existing
   object-position: 48% 50% at max-aspect-ratio 74/100 already centres to
   within half a per cent. At 390x844 the window is x 0.184 to 0.800, so
   both characters, WHOA. and him are inside it with about 5% of air each
   side. Nothing to do here, and no second hero file to ship.

   What does need a rule: the overlay sits lower in portrait, where the
   runway is short and the cue is bottom-left under it. */
@media (max-aspect-ratio: 74/100) {
  .curtain__title { bottom: 76px; left: 20px; max-width: 18ch; }
}

/* 6.3 The cue joins the button family. It keeps its place: style.css moved
   it to the page gutter on purpose, because a white pill in the middle of
   the frame sits on white planks. */
.curtain__cue {
  border-radius: var(--v3-btn-radius);
  background: color-mix(in srgb, var(--v3-surface) 92%, transparent);
  border: 1px solid rgba(21, 18, 12, .12);
  box-shadow: 0 3px 0 0 rgba(21, 18, 12, .18);
  font-size: 12px;
  color: var(--v3-ink);
}


/* --------------------------------------------------------------------------
   7. THE PHONE
   -------------------------------------------------------------------------- */

/* 7.1 The window dissolves. Thirty pixels of chrome is eight per cent of a
   390px screen, and the window's whole job, holding the page together on
   the ground, is one a phone does not have. */
@media (max-width: 699px) {
  :root {
    --v3-window-radius: 16px;
    --v3-tile-radius: 12px;
    --v3-gap: 12px;
    --v3-page-margin: 16px;
    --fs-body: 15px;
  }

  .window {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .window__bar { display: none; }
  .window__body { padding: 0; }
  .window__foot { border-top: 0; padding: 16px 0 0; justify-content: center; }
}

/* 7.2 The toybox keeps its room.
   The CSS reserve only. v2.js's well is bottom-right and the spec's
   alternative is a one-line change in v2.js, which index.html also loads,
   so it stays out of this version: a parallel page is not allowed to move
   the live one. 112px is two counters plus air at 390. */
@media (max-width: 999px) {
  .a-intro.has-toys .intro__notes { padding-bottom: 112px; }
}

/* 7.3 The bar and the dock share one row.
   The dock used to step up to bottom:80px and sit on top of the bar. They
   sit beside each other instead, and the bar reserves the dock's width so
   the pill can never run under it. The page's own floor moved to .homewrap
   in 2.2, so the old reserve on main comes off and is not paid twice. */
@media (max-width: 819px) {
  .dock { bottom: calc(12px + var(--safe-b)); right: 12px; gap: 8px; }
  .bar { bottom: calc(12px + var(--safe-b)); padding: 0 calc(12px + 44px * 2 + 8px + 8px) 0 12px; }
  .bar__in { margin: 0; width: 100%; max-width: 100%; justify-content: space-between; }
  .bar__in > a { padding: 0 10px; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
}

/* Under 360 the pill cannot hold three items and the dock. Desserts is in
   the menu sheet, two taps away, and is the one of the three that is. */
@media (max-width: 359px) {
  .bar__in > a:nth-child(2):not(.bar__cta) { display: none; }
}

html { scroll-padding-bottom: calc(var(--controls-h) + 24px + var(--safe-b)); }
.dock ~ main { padding-bottom: 0; }

/* 7.4 The arrow moves to the top right.
   At rest, the bottom-right arrow of the last card on screen sits under the
   dock column. On the eyebrow row it never can. */
@media (max-width: 699px) {
  /* :where() again, so this stays at three classes and the intro and
     contact leads below can still say something different. */
  .bento--home .tile:where(:not(.tile--feature)) .tile__lead:where(:not(.intro):not(.contact)) {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "eye   arrow"
      "title title"
      "role  role";
    column-gap: 12px;
  }
  .bento--home .tile__lead > .tile__eyebrow { grid-area: eye; align-self: center; margin: 0; }
  .bento--home .tile__lead > .tile__title { grid-area: title; margin-top: 10px; }
  .bento--home .tile__foot { display: contents; }
  .bento--home .tile__foot > .tile__role { grid-area: role; margin-top: 12px; }
  .bento--home .tile__foot > .tile__arrow { grid-area: arrow; align-self: center; }

  /* The two plain tiles have no .tile__lead grid to join. */
  .bento--home .a-intro .tile__lead,
  .bento--home .a-contact .tile__lead { display: grid; grid-template-areas: none; grid-template-columns: minmax(0, 1fr); }
}

/* 7.5 Padding and type. */
@media (max-width: 699px) {
  .bento--home .tile__in,
  .bento--home .tile--sm .tile__in { padding: 20px; }
  .bento--home .tile--feature .tile__in { padding: 20px; }
  .bento--home .tile__title { font-size: 21px; }
  .intro__lead { max-width: none; line-height: 1.1; }


  /* The featured card on one column: the tabs collapse to the active one,
     the frame thins, and the mock leads. */
  .fframe { grid-template-columns: 1fr; }
  .fmock { transform: none; }

  .bento--home .tile__lead.contact { grid-template-columns: 1fr; row-gap: 20px; }
  .contact__list .btn { white-space: nowrap; }
  .bento--home .a-desserts .dessert-art { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
}

/* 7.6 Reduced motion, outside Crazy Mode. Colour still changes; nothing
   moves. */
@media (prefers-reduced-motion: reduce) {
  .bento--home .tile__in, .fmock, .btn, .bar__cta, .dock__btn, .contact__row { transition: none !important; }
  .bento--home a.tile:hover .tile__in,
  .tile--feature:hover .fmock { transform: none !important; }
  .fmock { transform: none; }
  .btn:active, .bar__cta:active, .dock__btn:active { transform: none; }
}


/* --------------------------------------------------------------------------
   8. DARK
   The tokens carry almost all of it. Three things sit outside them.
   -------------------------------------------------------------------------- */

:root[data-theme="dark"] .curtain__cue {
  background: color-mix(in srgb, var(--v3-surface) 92%, transparent);
  color: var(--v3-ink);
  border-color: var(--v3-border);
  box-shadow: 0 3px 0 0 rgba(0, 0, 0, .35);
}

:root[data-theme="dark"] .bento--home .a-desserts .dessert-art::after { color: var(--v3-accent); }

/* The theme fades rather than cuts. .tile__in's transform transition is in
   the same list up in 2.5, because a second transition declaration on the
   same selector replaces the first rather than adding to it. */
body, .window, .bar__in, .dock__btn, .contact__row, .fact {
  transition: background-color 200ms var(--ease-standard),
              border-color 200ms var(--ease-standard),
              color 200ms var(--ease-standard);
}

@media (prefers-reduced-motion: reduce) {
  body, .window, .bar__in, .dock__btn, .contact__row, .fact { transition: none !important; }
}


/* ==========================================================================
   9. NO WINDOW, AND ONE TOOLBAR AT THE TOP
   His call, 2026-10-21, in two parts.

   Part one: the cards stay. The rounded surfaces, their edges and the
   grid they sit in are all exactly as they were. What goes is the fake
   browser window drawn around the whole grid, and the second fake browser
   drawn around the Produsa screenshot. Those were the "window style"; a
   card is not a window.

   Part two: the chrome collapses from three floating objects into one.
   The pill moves to the top of the screen, the dark mode switch moves
   into it, and the menu disc is deleted. It is shaped like a toolbar in
   a design app, because that is the idiom he asked for: a group of
   destinations, a divider, the tool that changes the view, then the one
   action that is not navigation.
   ========================================================================== */

/* 9.1 The window dissolves, but the element stays.
   Two jobs it was doing quietly, and both would break if it were deleted:
     z-index 2  — .v2-grain is fixed at z-index 1. Without this the grain
                  paints over every word on the page.
     overflow   — the toybox pile in the intro is thrown against the card's
                  walls, and this clip is the wall.
   Its padding stays too, so the grid keeps the exact measure it had. */
.window {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 9.2 The featured screenshot keeps its frame and loses its disguise.
   The chrome strip, its three traffic lights and the fake URL field are
   gone from the markup; the tilt goes with them. What is left is a plain
   framed picture, which is what it always was. */
.fmock { transform: none; }
.fmock__chrome, .fmock__url { display: none; }
.tile--feature:hover .fmock { transform: none; }

/* 9.3 The bar moves to the top.
   v2.js still owns when it appears: it stays away while the photograph
   owns the screen and arrives once the grid does. Only the direction
   changes, so it now drops in from above rather than rising from below. */
.bar--top {
  top: calc(16px + var(--safe-t, 0px));
  bottom: auto;
}

.js .bar--top { transform: translateY(-140%); }
.js .bar--top.is-up { transform: none; }

/* Nothing floats at the bottom any more, so the page stops reserving a
   strip for it. */
.homewrap { padding-bottom: clamp(48px, 6vw, 96px); }

/* 9.4 The toolbar itself.
   A rectangle with a modest radius, not a lozenge: 999px reads as a
   floating pill, and a toolbar reads as a piece of a tool. One surface,
   one hairline, one soft shadow, 6px of padding, and every control inside
   it sharing a single corner radius. */
.bar--top .bar__in {
  gap: 2px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--v3-border);
  background: color-mix(in srgb, var(--v3-surface) 92%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  backdrop-filter: blur(12px) saturate(1.05);
  box-shadow: 0 1px 2px rgba(17, 17, 17, .04),
              0 12px 28px -18px rgba(17, 17, 17, .40);
}

.bar--top .bar__in > a {
  border-radius: 8px;
  padding: 0 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
}

/* The divider. A toolbar groups its controls and then separates the
   groups with a hairline, which is the one place on this page where a
   line is allowed to mean "different kind of thing". */
.bar__sep {
  width: 1px;
  height: 20px;
  margin: 0 6px;
  background: var(--v3-border);
  flex: none;
}

/* 9.5 The dark mode switch, now a tool rather than a floating disc.
   Square-ish and icon-only, so it reads as an instrument beside the
   destinations rather than as a fourth link. main.js injects the sun and
   moon SVGs into .theme-toggle wherever it finds it. */
.bar__tool {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--v3-label);
  cursor: pointer;
  transition: background-color 200ms var(--ease-standard), color 200ms var(--ease-standard);
}

.bar__tool svg { width: 18px; height: 18px; display: block; }

.bar__tool:hover { background: var(--v3-surface-accent); color: var(--v3-ink); }
.bar__tool:focus-visible { outline: 2px solid var(--v3-focus); outline-offset: 2px; }
.bar__tool:active { transform: scale(.94); }

.bar--top .bar__in > a.bar__cta {
  border-radius: 8px;
  padding: 0 16px;
  min-height: 36px;
  margin-left: 4px;
}

/* 9.6 Narrow widths.
   The bar used to leave a gap on its right for two 44px discs. There are
   no discs now, so it centres like everything else. Under 420px the two
   secondary destinations drop and Work, the switch and the action stay:
   that is the smallest set that still does every job. */
@media (max-width: 700px) {
  .bar--top { padding: 0 12px; }
  .bar--top .bar__in { margin: 0 auto; width: max-content; max-width: 100%; }
  .bar--top .bar__in > a { padding: 0 12px; min-height: 36px; font-size: 14px; }
}

@media (max-width: 420px) {
  .bar--top .bar__in > a[href="/desserts.html"],
  .bar--top .bar__in > a[href="/studio.html"] { display: none; }
}


/* ==========================================================================
   10. HIERARCHY, AIR, AND A ROUNDED TOOLBAR
   His call, 2026-10-21: "higher intensity of font hierarchy, try smaller
   text lines... the attention should only go to the headlines of the
   projects, and secondarily below them... very clean, more space around...
   visually light and crisp."

   The old scale ran 60 / 36 / 24 / 20 / 16 / 13 / 11.5 — seven steps, each
   about 1.2x the last, which is a smooth ramp and therefore a flat one.
   Nothing in it was allowed to be loud because everything was nearly as
   loud as its neighbour. The fix is not to shout; it is to make everything
   that is not a project headline quieter, and then let the headline grow
   into the room that opens up.

   Up:   project title 24 -> 30, featured title 36 -> 44.
   Down: lead 20 -> 18, outcome 15 -> 14, role 13 -> 12, labels 11.5 -> 10.5.
   The gap between a title and the line under it goes from 1.6x to 2.5x.
   ========================================================================== */

:root {
  --fs-feature: clamp(28px, 1rem + 1.9vw, 44px);
  --fs-title:   clamp(22px, .95rem + .85vw, 30px);
  --fs-lead:    clamp(16px, .85rem + .3vw, 18px);
  --fs-meta:    12px;
  --fs-label:   10.5px;
  --measure-title: 22ch;

  /* More room inside every card, and more between them. The grid is
     untouched: twelve columns, same spans, same order. */
  --v3-tile-pad: clamp(24px, 2.6vw, 36px);
  --v3-gap: 20px;
}

/* 10.1 The one thing allowed to be loud.
   Bigger, tighter and closed up. Tracking goes negative as the size goes
   up, which is what keeps a 30px line crisp rather than airy, and the
   leading drops to 1.15 so a three-line title reads as one object. */
.bento--home .tile__title,
.bento--home .tile--sm .tile__title,
.bento--home .tile--pair .tile__title,
.bento--home .a-lurch .tile__title,
.contact .tile__title {
  font-size: var(--fs-title);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin-top: 0;
  margin-bottom: 0;
}

.bento--home .tile--feature .tile__title {
  font-size: var(--fs-feature);
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin: 0 0 24px;
}

/* 10.2 Everything else steps back.
   The label above the headline is the headline's competitor, so it loses
   a point of size and gains tracking: smaller and wider reads as a tag,
   not as small text. The role and the outcome drop to --v3-text-2, which
   is 5.6:1 and still passes, but visibly recedes from the title's 18.5:1. */
.bento--home .tile__eyebrow {
  font-size: var(--fs-label);
  letter-spacing: .14em;
  margin: 0 0 16px;
}

.bento--home .tile__role {
  font-size: var(--fs-meta);
  line-height: 1.45;
  color: var(--v3-text-2);
}

.bento--home .fact__k {
  font-size: var(--fs-label);
  letter-spacing: .14em;
}

/* v2.css:145 says this with three classes, so two is not enough to beat
   it. Matched here rather than reached for with !important. */
.bento--home .tile__more .fact__v {
  font-size: 14px;
  line-height: 1.5;
  color: var(--v3-text-2);
  max-width: 42ch;
}

.bento--home .tile--feature .fout {
  font-size: 17px;
  line-height: 1.5;
  color: var(--v3-text);
  margin: 0 0 20px;
}

/* 10.3 Air. A headline needs silence around it more than it needs size. */
.bento--home .tile__foot { padding-top: 24px; }
.bento--home .tile .tile__more { margin-top: 24px; }
.bento--home .tile__media + .tile__lead { margin-top: 24px; }

/* 10.4 The banner.
   Two fixes, both about even margins. The claim and the notes sat on a
   rule with 24px above and nothing measured below, so the block read as
   bottom-heavy inside a card with a deliberate void under it for the toy
   pile. They now carry the same 28px either side of their rule, and the
   notes share the claim's leading instead of running looser, so the two
   columns sit on the same baselines. */
.intro__lead {
  line-height: 1.06;
  letter-spacing: -0.026em;
  margin: 0 0 4px;
}

.intro__claim,
.intro__notes {
  padding-top: 28px;
  margin-top: 28px;
}

.intro__claim {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--v3-text);
  max-width: 38ch;
}

.intro__notes li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--v3-text-2);
}

/* The name over the photograph gets the same treatment, so the first two
   pieces of type a visitor meets are set the same way. */
.curtain__name { letter-spacing: -0.026em; }
.curtain__line { font-size: 12px; letter-spacing: .16em; }

/* 10.5 The toolbar goes round again, and everything in it lines up.
   His call: rounded, all aligned. One height for every control, 38px,
   so the links, the switch and the action share a centre line and the
   container's radius is simply half its own height. */
.bar--top .bar__in {
  align-items: center;
  border-radius: 999px;
  padding: 5px;
  gap: 2px;
}

.bar--top .bar__in > a {
  height: 38px;
  min-height: 0;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1;
}

.bar--top .bar__in > a.bar__cta {
  height: 38px;
  min-height: 0;
  border-radius: 999px;
  padding: 0 18px;
  margin-left: 4px;
}

.bar__tool {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.bar__sep { height: 22px; margin: 0 8px; }

@media (max-width: 700px) {
  .bar--top .bar__in > a,
  .bar--top .bar__in > a.bar__cta { height: 36px; padding: 0 13px; font-size: 13.5px; }
  .bar__tool { width: 36px; height: 36px; }
}


/* 10.6 The banner, placed on the grid instead of near it.
   Measured at 1440: the name over the photograph began at x=58, the cards
   below it at x=173, and the headline inside the first card at x=220.
   Three left edges down one page, because .curtain__title was positioned
   with --margin (style.css, max 72px) while the grid uses
   --v3-page-margin (max 48px) and then adds the window's own padding.

   It now centres on exactly the same maths as .homewrap — same max-width,
   same auto margins — and pads itself out to the grid's inner edge, so
   the name sits on the same line as every card below it. No 100vw: that
   counts the scrollbar and would push it a few pixels right of the grid
   it is supposed to match. */
.curtain__title {
  left: 0;
  right: 0;
  max-width: calc(var(--v3-window-max) + 2 * var(--v3-page-margin));
  margin: 0 auto;
  padding: 0 calc(var(--v3-page-margin) + var(--v3-window-pad));
  box-sizing: border-box;
  justify-items: start;
  gap: 12px;
}

/* The measure moves off the container, which is now full width, and onto
   the lines themselves. The 22ch was always for the name; the role line
   is 12px uppercase and needs about 330px, so a 22ch cap broke it into
   three stacked rows of tracked caps. It gets its own measure. */
.curtain__name { max-width: 22ch; }
.curtain__line { max-width: 46ch; }

/* One leading for both headlines. The name over the photograph and the
   headline in the card are the same sentence set twice, so they are set
   the same way: 1.06, tracking -0.026em. */
.curtain__name { line-height: 1.06; }

@media (max-width: 700px) {
  /* style.css put this at left:20px; the window has no padding at this
     width, so the grid edge is the page margin and nothing more. */
  .curtain__title {
    left: 0;
    right: 0;
    padding: 0 var(--v3-page-margin);
    max-width: none;
  }
  .curtain__name { max-width: 18ch; }
  .curtain__line { max-width: 28ch; }
}


/* ==========================================================================
   11. THE TWO SIDE PROJECTS
   Ezra and Lurch stop being placeholders. They are the only two tiles that
   link out to a live thing rather than to a case study, so they are the two
   that can show the product itself instead of a picture of a project.
   ========================================================================== */

/* 11.1 Lurch — a cutout, so it does not get a box.
   The phones are a transparent PNG with no baked shadow; alpha falls
   255 to 0 inside 3px. Dropping that into a grey rounded rectangle puts
   an object that was cut out back into a frame. The panel keeps its space
   and stops drawing.

   The 1fr 1fr band split above 1100 is deliberately NOT narrowed: taking
   width from the copy column pushes the headline from three lines to four,
   and the headline is the one thing allowed to be loud. The phones buy
   their size by bleeding left into the card's own padding instead, which
   costs the layout nothing.

   style.css:3117 puts overflow:hidden on every .tile__in and v3.css §2.5
   restates the selector without re-declaring overflow, so hidden survives.
   Overridden here for this one tile only: v2.css:666 depends on that same
   clip to keep the toy-box counters inside .a-intro. */
.bento--home .a-lurch .tile__in { overflow: visible; }

.bento--home .a-lurch .tile__media {
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  align-self: end;
  margin-left: calc(-1 * var(--v3-tile-pad));
  margin-bottom: calc(-1 * var(--v3-tile-pad));
  width: calc(100% + var(--v3-tile-pad));
}

.bento--home .a-lurch .tile__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* Above 1100 the band gives the picture a stretched grid cell, which would
   stretch a cutout. It takes its own height here and sits on the floor. */
/* v3.css:686 says `margin: 0` on `.a-lurch .tile__in > .tile__media`,
   which is four classes to the three above and wins on specificity no
   matter what the source order is. Matched here rather than reached for
   with !important, and the bleed is restated because that shorthand
   resets it. */
@media (min-width: 1100px) {
  .bento--home .a-lurch .tile__in > .tile__media {
    height: auto;
    align-self: end;
    margin: 0 0 calc(-1 * var(--v3-tile-pad)) calc(-1 * var(--v3-tile-pad));
    width: calc(100% + var(--v3-tile-pad));
  }
}

/* Below 1100 the band collapses and the picture sits above the words, so
   the left bleed would pull it out from under its own headline. */
@media (max-width: 1099px) {
  .bento--home .a-lurch .tile__media {
    margin-left: 0;
    width: 100%;
  }
}

/* 11.2 Ezra — the type, not the cat.
   The live site's illustration is a standing profile, and a crop of it
   would mean two cats on one 347px card the day the perch cutout lands.
   The headline column carries the idea on its own: "YOUR DESKTOP HAS AN
   OWNER NOW." The crop stops 2px short of the illustration panel, so no
   orange enters the frame. .a-cat .tile__media is already 4/3 at §3.2.

   THE PERCH IS NOT BUILT YET: it needs the cutout he is sending. The ask
   is in the spec beside this file. When it lands, she is a sibling of
   .tile__in and a direct child of the <a>, because .bento--home .tile is
   already overflow:visible and position:relative — no overflow override
   anywhere, and the clip on .a-cat .tile__in stays exactly as it is. */


/* 11.3 Sintero, now that it runs the full width.
   Stacked, a twelve-column tile puts a 1080px-wide picture above its own
   copy and the row grows to about 1000px tall — taller than either feature
   card, for the smallest project of the three. It takes the same band
   anatomy Lurch uses above 1100 instead: picture left, words right, one
   row. It deliberately does NOT get the featured treatment or the Lurch
   cutout bleed; it is a wide band, not a third hero. */
@media (min-width: 1100px) {
  .bento--home .a-sintero .tile__in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    column-gap: clamp(24px, 3vw, 48px);
    align-items: center;
  }

  .bento--home .a-sintero .tile__in > .tile__media {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
    margin: 0;
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
  }

  .bento--home .a-sintero .tile__in > .tile__lead {
    grid-column: 2;
    grid-row: 1;
  }

  .bento--home .a-sintero .tile__in > .tile__more {
    grid-column: 2;
    grid-row: 2;
  }
}


/* ==========================================================================
   12. THE PICTURE LEADS
   His call, 2026-10-21: "the image needs to be dominant, and just the text
   below. remove the rectangles under the case study text and image. remove
   the eyebrow texts, keep only what's necessary. sintero can't get a full
   row. let's play with colours in the grids, forest gradients, keep it
   mellow."

   So the card stops being a container and the picture becomes the tile.
   Everything a card used to do — hold an edge, carry a surface, separate
   one project from the next — the image now does by being large, and the
   words sit under it the way a caption sits under a plate.
   ========================================================================== */

/* 12.1 No rectangles. The surface, the edge, the radius and the padding
   all go; what is left is the content on the page's own ground. Zeroing
   the padding also puts every headline on the grid's left edge, which is
   where the name over the photograph was aligned to earlier, so the two
   finally share one line. */
.bento--home .tile__in {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

@media (hover: hover) and (pointer: fine) {
  .bento--home a.tile:hover .tile__in { transform: none; box-shadow: none; }
}

.bento--home a.tile:focus-visible .tile__in {
  outline: 2px solid var(--v3-focus);
  outline-offset: 6px;
}

/* 12.2 The eyebrows go.
   NOTE: these carried the client name — PRODUSA, SUPACA, VIST LABS — and
   no headline names its client. The name now survives only in the role
   line where it happens to appear (Produsa Labs) and in the link target.
   Worth deciding whether to fold it into the role line everywhere. */
.bento--home .tile__eyebrow { display: none; }

/* .a-moments uses its eyebrow as the section's only label, so that one
   stays: without it the photo pile has nothing saying what it is. */
.bento--home .a-moments .tile__eyebrow,
.bento--home .a-blog .tile__eyebrow,
.bento--home .a-contact .tile__eyebrow { display: block; }

/* 12.3 The feature cards stack. Side by side, a 7/5 split caps the picture
   at 58% of the row; stacked, it takes the whole twelve columns and the
   argument reads underneath it. That is the dominance he is asking for,
   and it costs the headline nothing because the headline gets the full
   measure too. */
.fframe {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.bento--home .tile--feature .fcopy {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

/* The headline takes the left column under the picture; the result, the
   role and the way in stack in the right one. Two columns of words under
   one wide picture, rather than a column of words beside a narrow one. */
.bento--home .tile--feature .tile__title { grid-column: 1; margin: 0; }
.bento--home .tile--feature .fout,
.bento--home .tile--feature .tile__role,
.bento--home .tile--feature .fcta { grid-column: 2; }
.bento--home .tile--feature .fout { margin: 0 0 16px; }
.bento--home .tile--feature .tile__role { margin: 0 0 18px; }

@media (max-width: 899px) {
  .bento--home .tile--feature .fcopy { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bento--home .tile--feature .tile__title,
  .bento--home .tile--feature .fout,
  .bento--home .tile--feature .tile__role,
  .bento--home .tile--feature .fcta { grid-column: 1; }
}

/* 12.4 Sintero is a half row again, so the odd tile has to be somewhere.
   The seven tiles after the two features are an odd number for a twelve
   column grid, and exactly one of them must take the full width or a row
   grows a hole. Lurch is the one that can afford it: it is already a band
   above 1100, its picture is a cutout that gets better with width, and it
   is the only one of the seven that is not client work. */
.bento--home .a-lurch { grid-column: 1 / -1; }
.bento--home .a-cat { grid-column: span 6; }

@media (max-width: 1099px) {
  .bento--home .a-lurch { grid-column: 1 / -1; }
  .bento--home .a-cat { grid-column: span 6; }
}

/* 12.5 Mellow forest in the grid.
   Colour arrives as light rather than as a panel: a soft forest wash under
   each picture, and a forest-tinted shadow instead of a neutral grey one.
   On an opaque screenshot you see only the tint in the shadow; on the
   Lurch cutout and on every placeholder the gradient itself shows through.
   Three mixes, cycled, so a row never repeats itself — and all of them
   within a few per cent of the ground, which is what keeps it mellow
   rather than decorative. */
.bento--home .tile__media,
.bento--home .fmock {
  border-radius: 14px;
  background-image: linear-gradient(158deg,
      color-mix(in srgb, var(--v3-accent) 9%, var(--v3-surface)) 0%,
      color-mix(in srgb, var(--v3-accent) 3%, var(--v3-surface)) 100%);
  box-shadow: 0 2px 6px -3px color-mix(in srgb, var(--v3-accent) 35%, transparent),
              0 18px 36px -20px color-mix(in srgb, var(--v3-accent) 45%, transparent);
}

.bento--home .a-supaca .tile__media,
.bento--home .a-vistlabs .tile__media,
.bento--home .a-lurch .tile__media {
  background-image: linear-gradient(158deg,
      color-mix(in srgb, var(--v3-accent) 13%, var(--v3-surface)) 0%,
      color-mix(in srgb, var(--v3-accent) 4%, var(--v3-surface)) 100%);
}

.bento--home .a-sintero .tile__media,
.bento--home .a-desserts .dessert-art {
  background-image: linear-gradient(158deg,
      color-mix(in srgb, var(--v3-accent) 6%, var(--v3-surface)) 0%,
      color-mix(in srgb, var(--v3-accent) 14%, var(--v3-surface)) 100%);
}

/* The Lurch cutout keeps no plate of its own: the gradient would sit in a
   rectangle behind a transparent PNG, which is the frame we took off it. */
.bento--home .a-lurch .tile__media {
  background-image: none;
  box-shadow: none;
}

/* 12.6 The placeholders now sit on the gradient, so they stop being grey
   holes and start reading as reserved space. */
.slot { background: none; }

/* 12.7 Three padding rules out-specify §12.1 and would keep the card's
   inset without its surface, which reads as a rectangle you cannot see.
   Matched here rather than reached for with !important:
     v3.css:361   .bento--home .tile--sm .tile__in
     v3.css:769   .bento--home .a-intro .tile__in   (inside a media query)
     v3.css:1261  .bento--home .tile--sm .tile__in  (max-width: 699px)
     v3.css:1262  .bento--home .tile--feature .tile__in */
.bento--home .tile--sm .tile__in,
.bento--home .tile--feature .tile__in,
.bento--home .a-intro .tile__in,
.bento--home .tile--plain .tile__in,
.bento--home .tile--band .tile__in,
.bento--home .tile--pair .tile__in { padding: 0; }

@media (max-width: 1099px) {
  .bento--home .a-intro .tile__in { padding: 0; }
}

@media (max-width: 699px) {
  .bento--home .tile--sm .tile__in,
  .bento--home .tile--feature .tile__in { padding: 0; }
}

/* 12.8 Stacked, a 4:3 picture across twelve columns is 745px tall and the
   card runs to 1170. Wide pictures want a wide ratio: 16:10 is the one the
   other band panels already use, so the page keeps one ratio for a
   full-width screenshot instead of two. */
.bento--home .tile--feature .fmock .tile__media { aspect-ratio: 16 / 10; }

/* 12.9 The dashed edge goes with the rectangles. The gradient plate is
   now what says "a picture belongs here", so the placeholder does not
   also need a dotted outline round it. */
.slot {
  border: 0;
  background: none;
  border-radius: 14px;
}

/* 12.10 The copy grid needs explicit rows.
   .fout, .tile__role and .fcta were auto-placing into rows 1, 2 and 3 of
   a grid whose first row is as tall as the headline, so the role and the
   link drifted 200px down the card. The headline spans all three rows and
   the right column packs to the top. */
.bento--home .tile--feature .fcopy {
  grid-auto-rows: min-content;
  align-content: start;
}

.bento--home .tile--feature .tile__title { grid-column: 1; grid-row: 1 / span 3; }
.bento--home .tile--feature .fout       { grid-column: 2; grid-row: 1; }
.bento--home .tile--feature .tile__role { grid-column: 2; grid-row: 2; }
.bento--home .tile--feature .fcta       { grid-column: 2; grid-row: 3; }

@media (max-width: 899px) {
  .bento--home .tile--feature .tile__title,
  .bento--home .tile--feature .fout,
  .bento--home .tile--feature .tile__role,
  .bento--home .tile--feature .fcta { grid-column: 1; grid-row: auto; }
}

/* 12.11 One gap value was setting both axes, so a 43px row gap stacked on
   top of the 16 and 18px margins and left the link floating 60px below the
   role. The columns keep the wide gutter; the rows close up. */
.bento--home .tile--feature .fcopy {
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: 14px;
}

.bento--home .tile--feature .fout { margin: 0; }
.bento--home .tile--feature .tile__role { margin: 0; }

/* ==========================================================================
   13. THE BENTO BOXES COME BACK
   His call, 2026-10-21: "we need the bento boxes for the case studies, and
   spaces between all."

   §12 read "remove the rectangles under the case study text and image" as
   the card itself. It meant the small panels INSIDE the card, under the
   words and under the picture. So the card comes back and those panels
   stay gone, which is the combination he has been asking for since the
   grid went to v3: a bento tile, with the picture dominant inside it.

   Everything §12 won is kept. The picture still leads, the feature image
   still stacks above its copy at the full width and 16:10, the eyebrows
   stay off, and the forest gradients stay. The only thing returning is
   the box those now sit in.
   ========================================================================== */

/* 13.1 More air between the boxes, which is the "spaces between all" half
   of the ask. 16px was the original, §10 took it to 20, and at 24 the
   gutter reads as deliberate space rather than as a seam between two
   things that nearly touch. */
:root {
  --v3-gap: 24px;
}

/* The phone override at §7.1 sets --v3-gap: 12px, but it sits ABOVE §10 in
   this file and a plain :root later in the source beats a :root inside a
   media query. So that value has been dead since §10 landed and the phone
   has been running the desktop gutter. Restated here, after both, where it
   actually applies. 16px, not 12: the boxes are back, so the gap now has
   two edges to separate instead of none. */
@media (max-width: 699px) {
  :root { --v3-gap: 16px; }
}

/* 13.2 The card surface, restored. This is §2.5's rule returning intact:
   the page's card colour, the soft border, the 14px radius and the one
   padding value. It goes on every tile, not only the case studies —
   boxing the projects and leaving the intro, the photo pile and the
   contact block bare reads as an unfinished pass, not as a decision. */
.bento--home .tile__in {
  background: var(--v3-surface);
  border: 1px solid var(--v3-border-soft);
  border-radius: var(--v3-tile-radius);
  padding: var(--v3-tile-pad);
  /* A shadow at rest, which he asked for when the lines round went in:
     "simple lines rounded, with shadow, clean, very minimal". Two layers.
     The 1px one is the card's contact with the page; the wide one is the
     light falling past it. Both are mixed from the ink rather than pure
     black, so they stay warm on the beige instead of going grey. */
  box-shadow:
    0 1px 2px -1px rgba(21, 18, 12, .05),
    0 10px 28px -18px rgba(21, 18, 12, .16);
}

/* 13.3 The padding, restored on every selector that out-specifies 13.2.
   Same list §12.7 had to match, in reverse: these are three-class rules
   and a two-class rule cannot reach them. */
.bento--home .tile--sm .tile__in,
.bento--home .tile--plain .tile__in,
.bento--home .tile--band .tile__in,
.bento--home .tile--pair .tile__in { padding: var(--v3-tile-pad); }

/* The feature and the intro carry more, as they did before: they are the
   twelve-column tiles and the padding is part of how they lead. */
.bento--home .tile--feature .tile__in { padding: clamp(28px, 3.2vw, 44px); }

@media (max-width: 1099px) {
  .bento--home .a-intro .tile__in { padding: clamp(28px, 3.2vw, 48px); }
}

/* On a phone the padding drops to 20px, and every variant has to be named
   or it keeps its own value: .tile--band and .tile--pair are three-class
   rules and a bare .bento--home .tile__in cannot reach them. That hole is
   in the original 7.1 block too, which is why Bizotico held 24px on a
   390px screen while its neighbours dropped. */
@media (max-width: 699px) {
  .bento--home .tile__in,
  .bento--home .tile--sm .tile__in,
  .bento--home .tile--plain .tile__in,
  .bento--home .tile--band .tile__in,
  .bento--home .tile--pair .tile__in,
  .bento--home .a-intro .tile__in,
  .bento--home .tile--feature .tile__in { padding: 20px; }
}

/* 13.4 The card lifts again. §12.1 cancelled the hover because there was
   no longer anything to lift; now there is. Transform plus a deeper
   shadow, and the border firms up, so the whole tile reads as one object
   rising rather than as an image growing. */
@media (hover: hover) and (pointer: fine) {
  .bento--home a.tile:hover .tile__in {
    border-color: var(--v3-border);
    transform: translateY(-2px);
    box-shadow:
      0 2px 4px -2px rgba(21, 18, 12, .07),
      0 18px 36px -20px rgba(21, 18, 12, .24);
  }
  .bento--home .tile--feature:hover .tile__in {
    border-color: var(--v3-border);
    transform: translateY(-2px);
    box-shadow:
      0 2px 4px -2px rgba(21, 18, 12, .07),
      0 18px 36px -20px rgba(21, 18, 12, .24);
  }
}

/* 13.5 The focus ring goes back to hugging the card. §12.1 pushed it 6px
   out because there was no edge for it to sit against; now it traces the
   border it belongs to. */
.bento--home a.tile:focus-visible .tile__in {
  outline: 3px solid var(--v3-focus);
  outline-offset: 3px;
  border-color: var(--v3-border);
}

/* 13.6 Dark mode gets an edge, not a shadow.
   A shadow is light falling on paper and a dark page has none: at these
   opacities it is invisible, and raising it only smears the tile. The
   card separates on the border instead, stepped up from border-soft to
   border, which is the same trade case.css already makes on dark case
   study pages. Both dark blocks, kept identical. */
:root[data-theme="dark"] .bento--home .tile__in {
  border-color: var(--v3-border);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  :root[data-theme="dark"] .bento--home a.tile:hover .tile__in,
  :root[data-theme="dark"] .bento--home .tile--feature:hover .tile__in {
    border-color: var(--v3-accent);
    box-shadow: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bento--home .tile__in {
    border-color: var(--v3-border);
    box-shadow: none;
  }
}

@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
  :root:not([data-theme="light"]) .bento--home a.tile:hover .tile__in,
  :root:not([data-theme="light"]) .bento--home .tile--feature:hover .tile__in {
    border-color: var(--v3-accent);
    box-shadow: none;
  }
}

/* 13.7 Reduced motion keeps the shadow and drops the lift, so the hover
   still answers without anything moving. §8's blanket rule kills the
   transition; this makes sure it does not also kill the feedback. */
@media (prefers-reduced-motion: reduce) {
  .bento--home a.tile:hover .tile__in,
  .bento--home .tile--feature:hover .tile__in { transform: none; }
}

/* 13.8 Lurch clips to the card again.
   §11.1 took overflow:hidden off this one tile so the cutout could bleed
   left and down out of the padding. With the card back, the bleed should
   stop AT the card's edge, not carry on past it: left and bottom are
   -1 * --v3-tile-pad exactly, so the clip lands the picture flush inside
   the border and follows the 14px corner instead of poking a square
   corner through a round one. */
.bento--home .a-lurch .tile__in { overflow: hidden; }

/* 13.9 Sintero stops being a band.
   §11.3 gave it picture-left, words-right at 1fr 1fr, which was right when
   it ran the full twelve columns. §12.4 put it back to six on his call, so
   that rule has since been splitting a 530px card into two 240px columns:
   a postage stamp beside a cramped headline. It goes back to the anatomy
   its neighbours use — picture above, words under — which is also what
   Bizotico, VIST and Ezra do at the same width. */
@media (min-width: 1100px) {
  .bento--home .a-sintero .tile__in {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    column-gap: 0;
    align-items: stretch;
  }

  .bento--home .a-sintero .tile__in > .tile__media {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
    margin: 0 0 20px;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    flex: none;
  }

  .bento--home .a-sintero .tile__in > .tile__lead,
  .bento--home .a-sintero .tile__in > .tile__more {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ==========================================================================
   14. THE FEATURE CARDS SPLIT AGAIN
   His call, 2026-10-21: "can we go back to image on the left, text on the
   right for the produsa and supaca case study blocks".

   §12.3 stacked them to make the picture dominant. The cards came back in
   §13, and inside a card the split works the way stacking was meant to:
   the picture is still the biggest object in the tile, it just has the
   argument beside it instead of underneath. This is §12.3 reverted, not a
   new layout.
   ========================================================================== */

/* 14.1 Seven columns of picture, five of words, which is the proportion
   this card was built on. The picture keeps the larger share, so it still
   leads; the copy gets a 5/12 column, which at 1440 is about 390px and
   holds the headline in three lines. Centred, because the copy is always
   shorter than the picture and aligning both to the top leaves the words
   floating against a tall panel. */
.fframe {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: center;
}

/* 14.2 The copy stacks in its own column again.
   §12.3 made .fcopy a 7/5 grid of its own and §12.10 pinned each child to
   a row, which was the right answer for two columns of words under one
   wide picture. In a 5/12 column it is one column, read top to bottom, so
   every one of those placements has to be undone or the role and the link
   stay pinned to a column 2 that no longer exists. */
.bento--home .tile--feature .fcopy {
  display: block;
  grid-template-columns: none;
  column-gap: 0;
  row-gap: 0;
}

.bento--home .tile--feature .tile__title,
.bento--home .tile--feature .fout,
.bento--home .tile--feature .tile__role,
.bento--home .tile--feature .fcta {
  grid-column: auto;
  grid-row: auto;
}

/* 14.3 The vertical rhythm comes back with it. §12.11 zeroed these
   margins because the two-column copy block used a row gap instead; a
   stack has no row gap, so without them the outcome, the role and the
   link sit flush against each other. */
.bento--home .tile--feature .fout { margin: 0 0 16px; }
.bento--home .tile--feature .tile__role { margin: 0 0 22px; }

/* 14.4 Back to 4:3, which un-crops Produsa.
   §12.8 went to 16:10 because a 4:3 picture across all twelve columns was
   745px tall. In seven columns that argument is gone: the panel is about
   550px wide, so 4:3 is 413px tall and the card does not grow.

   The ratio also matters more than it looks. produsa-band.webp is
   1200x900, natively 4:3, and .tile__media img is object-fit: cover with
   object-position: 50% 0 (style.css:3724). In a 16:10 box that quietly
   took about 17% off the bottom of the shot. At 4:3 it fits exactly and
   nothing is lost. */
.bento--home .tile--feature .fmock .tile__media { aspect-ratio: 4 / 3; }

/* 14.5 Below 900 it stacks.
   The original collapsed at 699, but at 860 the copy column is down to
   about 280px and a 28px headline breaks to five or six lines next to a
   390px picture. 900 is where the split stops being worth it. The 699
   rule in §7.5 still exists and now simply agrees with this one. */
@media (max-width: 899px) {
  .fframe {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  /* 4:3 holds here too, so the master is never cropped at any width.
     §12.8's reason for 16:10 was that 4:3 across all twelve columns is
     810px tall; stacking now only happens below 899, where the picture is
     at most about 725px wide and 4:3 is 544px tall. The crop costs more
     than the height saves. */
}

/* ==========================================================================
   15. THE HINGE, FUN MODE, AND THE PHARMACY
   His call, 2026-10-21, art-directed: Lurch stops taking a full row, the
   illustration card takes one instead and becomes a divider carrying a
   "fun mode" switch, and turning it on reveals Ezra, Lurch and a pharmacy
   that dispenses skill files for agents.

   Order below the client work is now:
     Sintero 6 + Moments 6 / Writing 12 / DIVIDER 12 /
     (revealed) Ezra 6 + Lurch 6 / (revealed) Pharmacy 12 / Contact 12

   Writing moved ABOVE the hinge deliberately. With it below, every flip of
   the switch shoved three essay slots a thousand pixels down the page;
   above it, flipping the switch moves Contact and nothing else. Moments
   also stays above the line: it carries the police-brutality article, and
   filing that under a toggle labelled "fun mode" is the one genuinely
   tasteless outcome available here.
   ========================================================================== */

/* 15.1 Spans. The note at 12.4 that "exactly one tile must take the full
   width or a row grows a hole" stops being true here: Desserts leaves the
   pair row for the hinge, so Sintero pairs with Moments and Ezra pairs
   with Lurch, and every row fills without anyone taking twelve. */
.bento--home .a-lurch { grid-column: span 6; }
.bento--home .a-cat { grid-column: span 6; }
.bento--home .a-moments { grid-column: span 6; }
.bento--home .a-desserts,
.bento--home .tile--divider,
.bento--home .a-pharmacy { grid-column: 1 / -1; }

@media (max-width: 1099px) {
  .bento--home .a-lurch { grid-column: span 6; }
  .bento--home .a-cat { grid-column: span 6; }
  .bento--home .a-moments { grid-column: span 6; }
}

/* 15.2 Lurch goes back to being an ordinary pair tile.
   11.1 gave it a cutout bleeding left and down out of the padding, tuned
   for a twelve-column row. At six columns that bleed is just a picture
   falling off the side, so the clip override, the negative margins and the
   band split all come off. What it keeps is the one thing still true: the
   picture is a cutout with real alpha, not a screenshot, so it must never
   be object-fit: cover. It stands on the floor of the plate instead. */
.bento--home .a-lurch .tile__in { overflow: hidden; }

.bento--home .a-lurch .tile__media,
.bento--home .a-lurch .tile__in > .tile__media {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  margin: 0 0 20px;
  width: 100%;
  align-self: auto;
  display: block;
}

.bento--home .a-lurch .tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
}

/* The band anatomy above 1100 has to go with it, and this is where the
   picture was actually breaking. Section 3 gives .a-lurch .tile__in
   `grid-template-columns: 1fr 1fr` and puts the media in column 1 spanning
   every row. In a 528px tile that grid is 456px wide, but a 4:3 media with
   a row-spanned height of 496px has a min-content width of 661px, and a
   1fr track is minmax(AUTO, 1fr): the auto floor let the picture blow the
   track to 661px and collapse the second column to 0. Back to a flex
   column, like every other pair tile. */
@media (min-width: 1100px) {
  .bento--home .a-lurch .tile__in {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    column-gap: 0;
    align-items: stretch;
  }

  .bento--home .a-lurch .tile__in > .tile__media {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 0 20px;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    flex: none;
  }

  .bento--home .a-lurch .tile__in > .tile__lead {
    grid-column: auto;
    grid-row: auto;
  }
}

/* 15.3 Moments at six columns.
   5.3 splits this card into a 5fr/3fr inner grid above 1100px, which was
   written for eight columns. At six that split crushes the pile and the
   caption against each other, so the card goes back to stacked: pile
   above, caption under it. If the three photographs ever land, promote it
   back to twelve and 5.3 returns on its own. */
@media (min-width: 1100px) {
  .bento--home .a-moments .tile__in {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    column-gap: 0;
  }
  .a-moments .tile__eyebrow,
  .a-moments .pile,
  .a-moments .pile__cap,
  .a-moments .pile__nav {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
  }
  .a-moments .pile { margin-top: 0; }
  .a-moments .pile__cap { margin-top: 16px; }
}

/* ---- 15.4 The hinge ---------------------------------------------------
   A filled band, not a bordered card. Fill-without-border is the one
   material move this system had not spent, so it reads as a different kind
   of object without inventing geometry. In light it sits darker than both
   the page and the cards; in dark it sits lighter than the cards. Either
   way it reads as a different substance.

   It keeps the normal left and right padding. The strongest asset this
   page has is one unbroken left edge from the h1 down to the contact card,
   and a full-bleed band would spend it. The division is made with space
   and material, not width. */
:root {
  --div-space: 72px;   /* plus the 24px gutter = 96px of air on each side */
  --div-pad-y: 64px;
}

.bento--home .tile--divider {
  margin-top: var(--div-space);
  margin-bottom: var(--div-space);
  transition: margin-bottom 320ms var(--ease-emphasis);
}

/* The divider and the pharmacy each have their own anatomy, so neither
   joins the three-row subgrid that levels the project tiles. */
.bento--home > .tile--divider,
.bento--home > .a-pharmacy {
  grid-row: auto;
  grid-template-rows: none;
  display: block;
}

.bento--home .tile--divider .tile__in,
.bento--home .a-pharmacy .tile__in {
  grid-row: auto;
  display: block;
}

.bento--home .tile--divider .tile__in {
  background: var(--v3-surface-accent);
  border: 0;
  box-shadow: none;
  border-radius: var(--v3-tile-radius);
  padding: var(--div-pad-y) var(--v3-tile-pad);
  transition: background-color 200ms var(--ease-standard);
}

/* Seven columns of words, five for the mark. */
@media (min-width: 900px) {
  .bento--home .tile--divider .tile__in {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 3.4vw, 56px);
    align-items: center;
  }
}

/* The hinge earns the biggest heading on the page below the intro h1, and
   must not pass it. Emphasis here comes from size and space, which is this
   system's own rule. */
.bento--home .tile--divider .tile__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.028em;
  max-width: 14ch;
  margin: 4px 0 18px;
  color: var(--v3-ink);
}

/* 12.2 hides every eyebrow except on the three tiles where it is the
   section's only label. The hinge and the pharmacy are two more of those,
   so they are named back in: "Desserts" and "Pharmacy" are what tell you
   what each one is. */
.bento--home .tile--divider .tile__eyebrow,
.bento--home .a-pharmacy .tile__eyebrow { display: block; color: var(--v3-label); }

.divider__line {
  margin: 0 0 32px;
  font: 400 var(--fs-lead)/1.55 var(--font-sans);
  color: var(--v3-text);
  max-width: 54ch;
}

.divider__link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font: 600 15px/1 var(--font-sans);
  color: var(--v3-ink);
  text-decoration: none;
}
.divider__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* WHOA. set bare on the band, lifted out of the gradient panel it used to
   sit inside. Kalam appears exactly once on this page, and this is it. */
.divider__whoa {
  margin: 0;
  font: 700 clamp(72px, 9vw, 132px)/0.9 var(--font-script);
  color: var(--v3-accent);
  text-align: right;
  transform: rotate(-6deg);
  transform-origin: 70% 50%;
  transition: transform 320ms var(--ease-emphasis);
  user-select: none;
}

@media (max-width: 899px) {
  .bento--home .tile--divider .tile__in { display: flex; flex-direction: column-reverse; }
  .bento--home .tile--divider .divider__copy { width: 100%; }
  .divider__whoa {
    text-align: left;
    font-size: clamp(56px, 16vw, 88px);
    margin: 0 0 12px;
  }
}

@media (max-width: 699px) {
  :root { --div-space: 40px; --div-pad-y: 40px; }   /* 40 + 16 gutter = 56 */
}

/* ---- 15.5 The switch --------------------------------------------------
   Track and thumb, label on the left, sitting inline in the reading flow
   rather than in a corner: a corner makes it furniture, inline makes it a
   statement. Deliberately not a pull cord or a light switch. This system
   is deadpan and the wit lives in the words, and a novelty mechanism would
   need a plate to mount on, which is the one thing nothing inside a card
   is allowed to have. */
.funswitch {
  /* A block-level flex box trimmed to its contents, NOT inline-flex: the
     link below it is inline-flex too, and two inline boxes share a line,
     which put "See the drawings" on the same baseline as the switch. The
     fit-content width keeps the hit area on the control instead of
     stretching it across all seven columns. */
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--v3-ink);
  font: 600 20px/1.2 var(--font-sans);
  letter-spacing: -0.012em;
  text-align: left;
}

.funswitch__track {
  position: relative;
  width: 52px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  background: var(--v3-surface);
  border: 1.5px solid var(--v3-border);
  transition: background-color 200ms var(--ease-standard),
              border-color 200ms var(--ease-standard);
}

.funswitch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--v3-ink);
  transition: transform 200ms var(--ease-standard),
              background-color 200ms var(--ease-standard);
}

.funswitch[aria-checked="true"] .funswitch__track {
  background: var(--v3-accent);
  border-color: var(--v3-accent);
}
.funswitch[aria-checked="true"] .funswitch__thumb {
  transform: translateX(22px);
  background: var(--v3-accent-ink);
}

/* The band is already surface-accent, so the usual focus treatment has
   nothing left to fill against. Here the ring is ink only. */
.funswitch:focus-visible {
  outline: 2px solid var(--v3-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 699px) {
  .funswitch { font-size: 17px; gap: 12px; }
}

.u-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- 15.6 The on state ------------------------------------------------
   Two small things change on the card itself: the band warms from
   surface-accent to highlight, and WHOA sits up straighter. Both tokens
   already exist, so no hue is invented and the one-accent discipline
   holds. That is the entire animation budget on the hinge. */
:root[data-fun="on"] .bento--home .tile--divider .tile__in {
  background: var(--v3-highlight);
}

:root[data-fun="on"] .divider__whoa {
  transform: rotate(3deg) scale(1.06);
}

/* Attached to the hinge rather than floating below it. */
:root[data-fun="on"] .bento--home .tile--divider {
  margin-bottom: var(--v3-gap);
}

/* ---- 15.7 The revealed box -------------------------------------------
   The hidden attribute carries display:none, which keeps the whole block
   out of the tab order and out of the accessibility tree while the switch
   is off. Height is driven in pixels by the script so it can animate from
   0 up to the real content height and then be released back to auto; the
   CSS only says how fast. */
.funbox {
  grid-column: 1 / -1;
  margin-bottom: var(--div-space);
  overflow: hidden;
}

.funbox[hidden] { display: none; }

.funbox.is-animating { transition: height 320ms var(--ease-emphasis); }

/* The inner grid is a .bento--home of its own, so the three tiles inside
   inherit every span rule, the subgrid levelling and all the breakpoints
   with no second grid to keep in sync. */
.funbox__grid { width: 100%; }

/* The cards rise and fade. Nothing above the hinge moves by a pixel. The
   stagger is 60ms, past the point where it reads as simultaneous and short
   of where it reads as a queue: it reads as the row arriving. */
.funbox .tile {
  opacity: 0;
  transform: translateY(8px);
}

:root[data-fun="on"] .funbox .tile {
  opacity: 1;
  transform: none;
  transition: opacity 280ms var(--ease-emphasis),
              transform 280ms var(--ease-emphasis);
}

:root[data-fun="on"] .funbox .a-cat { transition-delay: 120ms; }
:root[data-fun="on"] .funbox .a-lurch { transition-delay: 180ms; }
:root[data-fun="on"] .funbox .a-pharmacy { transition-delay: 240ms; }

/* Closing is faster and plainer: the whole block fades as one object. A
   reverse cascade on the way out is fussy, and by then the decision has
   already been made. */
.funbox.is-closing .tile {
  opacity: 0;
  transform: none;
  transition: opacity 160ms var(--ease-standard);
  transition-delay: 0ms;
}

/* ---- 15.8 The pharmacy ------------------------------------------------
   An ordinary bordered card, because it is another card: the hinge is the
   only de-bordered thing on this page and has to stay the only one.

   Zero pharmacy iconography. No pill shapes, no green cross, no mortar and
   pestle. The form is the typographic convention of a medicine label, so
   name, directions and warnings in smaller type, which is pure type and
   space and therefore what this system is already made of. A medicine
   label is also structurally the opposite of a pricing table: it has no
   price and no tiers, it has directions. */
.pharm__line {
  margin: 0 0 14px;
  font: 400 var(--fs-lead)/1.55 var(--font-sans);
  color: var(--v3-text);
  max-width: 68ch;
}

.pharm__meta {
  margin: 0 0 40px;
  font: 400 var(--fs-meta)/1.5 var(--font-sans);
  color: var(--v3-text-2);
}

.pharm__shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;      /* tops align, bottoms stay ragged, on purpose */
}

@media (min-width: 1100px) {
  .pharm__shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }
}

/* A label, not a card: no border, no fill, no shadow, nothing drawn around
   it. Told apart from its neighbours by space alone. */
.pharm__item { margin: 0; max-width: 46ch; }

.pharm__name {
  margin: 0 0 8px;
  font: 600 20px/1.25 var(--font-sans);
  letter-spacing: -0.014em;
  color: var(--v3-ink);
}

.pharm__dir {
  margin: 0 0 8px;
  font: 400 16px/1.5 var(--font-sans);
  color: var(--v3-text);
}

.pharm__side {
  margin: 0 0 14px;
  font: italic 400 13px/1.5 var(--font-sans);
  color: var(--v3-text-2);
}

.pharm__take {
  margin: 0;
  font: 600 15px/1 var(--font-sans);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pharm__take a {
  color: var(--v3-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--v3-border);
  padding-bottom: 2px;
}
.pharm__take a:hover { border-bottom-color: var(--v3-ink); }

.pharm__size {
  font-weight: 400;
  font-size: var(--fs-meta);
  color: var(--v3-text-2);
}

.pharm__foot {
  margin: 40px 0 0;
  font: 400 var(--fs-meta)/1.5 var(--font-sans);
  color: var(--v3-text-2);
}

/* ---- 15.9 Dark mode on the band --------------------------------------
   The token block records that --v3-text-2 on --v3-surface-accent is
   4.48:1 in dark, under AA. The hinge is surface-accent, so every word on
   it is ink or text and never text-2 or muted. The highlight fill it takes
   when the switch is on is the same story. */
:root[data-theme="dark"] .bento--home .tile--divider .tile__eyebrow,
:root[data-theme="dark"] .bento--home .tile--divider .divider__line {
  color: var(--v3-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bento--home .tile--divider .tile__eyebrow,
  :root:not([data-theme="light"]) .bento--home .tile--divider .divider__line {
    color: var(--v3-text);
  }
}

/* ---- 15.10 Reduced motion --------------------------------------------
   This file's own policy at 7.6: colour still changes, nothing moves. The
   content appears instantly, with no height animation, no rotation and no
   scroll nudge. */
@media (prefers-reduced-motion: reduce) {
  .funbox.is-animating { transition: none !important; }
  .funbox .tile,
  :root[data-fun="on"] .funbox .tile {
    transition: none !important;
    transform: none !important;
    transition-delay: 0ms !important;
  }
  .funbox .tile { opacity: 1; }
  .divider__whoa,
  :root[data-fun="on"] .divider__whoa {
    transition: none !important;
    transform: rotate(-6deg) !important;
  }
  .bento--home .tile--divider { transition: none !important; }
  .funswitch__track, .funswitch__thumb { transition: none !important; }
}

/* The old .dessert-art panel is gone from the markup. Its rules higher up
   this file no longer match anything, and are left only so the history of
   that card stays readable. */
