/* youdede — system layer.
   Everything here is either a media-query layout, a hover/focus state, a pseudo-element or a
   scroll-driven animation: the things an inline style cannot express. Anything an inline style
   CAN express stays inline in the component, so a component reads as one self-contained object.
   The tokens this file consumes live in ../tokens/. Ported verbatim from the product's
   src/app/globals.css; the only edits are the token blocks and @font-face rules moving out,
   and asset urls gaining one ../ because this file moved down a directory. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* --- In-page navigation ----------------------------------------------------
   Smooth scrolling belongs on the scroller, not on the links, so it also applies to the
   skip link and to a pasted #hash. scroll-margin-top is the other half and the one people
   forget: without it every anchor lands with its heading tucked under the sticky header.
   72px is the 56px bar plus 16px of air, so the target arrives with room above it rather
   than pinned to the bar. */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.theme-light, .yd-root { background: var(--canvas); color: var(--ink); }
.yd-root { font-family: var(--sans); overflow-x: clip; }

/* --- The page's dot field -------------------------------------------------
   One grid behind the hero, not a texture repeated per panel. Every section carries
   .yd-root, which paints the canvas; the hero alone goes transparent so the grid shows
   through it. That the other sections stay opaque is also what lets the portrait slide
   down and disappear BEHIND the next one instead of over it — they are later siblings,
   so they paint on top.
   The children are position:relative WITHOUT a z-index: they must sit above an
   absolutely-positioned layer, and a z-index would make each one a stacking context —
   which would cut the hero video off from the backdrop it has to blend with. */
.yd-page { position: relative; }
.yd-page .yd-hero { background: transparent; }
/* Every section mount is positioned, with no z-index. Positioned elements paint above
   static ones whatever the DOM order, so while the section wrappers inside <main> were
   static the hero's positioned media painted straight over the next section's
   background and spilled past the hairline that divides them. Positioned, they paint in
   document order and the boundary cuts the portrait exactly. No z-index anywhere: a
   stacking context here would cut the hero video off from the page backdrop it masks
   over.
   The page's own two mounts collapse instead. A sticky element is constrained by its
   containing block, and the header's wrapper is exactly 57px tall — the header could
   stick within its own height, which is to say not at all. display:contents makes the
   header a child of the page and gives it the whole document to stick against. */
.yd-page > .sc-host { display: contents; }
.yd-page > main, .yd-page main > .sc-host { position: relative; }
.yd-page::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--dot-field, 860px); z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--hairline-strong) 1px, transparent 1px); background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black 0%, black 42%, transparent 100%); }
/* Pages whose first section is short can end the grid at the header instead of running it
   into the content. --dot-field is the height of the field; the mask still fades the last
   58% of it, so the cut is a fade, not an edge. */
/* Pages whose first section is short end the grid at the header instead of running it into
   the content. The field moves onto the header itself, so it follows the header's real
   height at every width, and it is cut flat at the section boundary: no fade, the rule
   under the header is the edge. */
.yd-page--dots-header::before { display: none; }
.yd-page--dots-header .yd-ph { position: relative; }
.yd-page--dots-header .yd-ph::before { content: ""; position: absolute; inset: 0; top: -57px; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--hairline-strong) 1px, transparent 1px); background-size: 24px 24px; }
.yd-page--dots-header .yd-ph > * { position: relative; z-index: 1; }
/* Service pages tint the same grid with the brand instead of ink. Low alpha only: the
   fade to transparent is the mask's job, so the colour change is the only difference. */
.yd-page--brand-dots::before { background-image: radial-gradient(color-mix(in oklch, var(--brand) 24%, transparent) 1px, transparent 1px); }

/* --- Type -----------------------------------------------------------------
   Fluid between the two ends DESIGN.md specifies (h1 32→46, h2 24→32) instead
   of pinned at the desktop end. At 375px a 32px h2 over a 20ch measure broke to
   five ragged lines; the clamp lands it at 24px, which is the documented value.

   MICRO-TYPOGRAPHY. Four rules, all of them things the browser gets wrong by
   default and none of them a change to a documented value:
   · text-wrap: balance on headings — every title on the page is capped at 18–24ch,
     which is exactly the width where the last line ends up carrying one word.
     Balance evens the lines instead. It applies to short blocks only, so it costs
     nothing on body copy.
   · text-wrap: pretty on running copy — same problem at the paragraph scale: it
     stops a lone word ending a paragraph.
   · tabular-nums on everything mono — the build log's M0–M6, the 01–05 indices and
     the metric values sit in columns, and proportional digits make them jitter.
   · Letter-spacing on headings stays at normal, per DESIGN.md. The reference sets
     none, and negative tracking on a 46px medium weight reads as a different brand.
     The only tracking on the page is the 0.08em on mono uppercase, which is not a
     style choice: uppercase mono at 11–12px needs it to stay legible, and 11px gets
     slightly more than 12px because the smaller the size, the more it needs.
   -------------------------------------------------------------------------- */
.yd-h1 { font-size: clamp(32px, 6.2vw, 46px); font-weight: 500; line-height: 1.05; letter-spacing: normal; text-wrap: balance; margin: 0; }
.yd-h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: normal; text-wrap: balance; margin: 0; }
.yd-h3 { font-size: 15px; font-weight: 500; line-height: 22.5px; letter-spacing: normal; text-wrap: balance; margin: 0; }
.yd-lede { font-size: 15px; font-weight: 450; line-height: 23px; color: var(--ink-muted); text-wrap: pretty; margin: 0; }
@media (min-width: 1024px) { .yd-lede { font-size: 16px; line-height: 24px; } }
.yd-body { font-size: 14px; font-weight: 450; line-height: 20px; color: var(--ink-muted); text-wrap: pretty; margin: 0; }
.yd-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--ink-muted); margin: 0; }
.yd-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--brand); }
.yd-serif { font-family: var(--serif); font-size: 19px; line-height: 1.55; text-wrap: pretty; margin: 0; }
/* Every 11px mono run: chips, kickers, badges, roles. Slightly more tracking than the
   12px scale, and tabular figures so numbers in adjacent cards line up. */
.yd-w-chip, .yd-w-kind, .yd-w-tag, .yd-mcol, .yd-badge { letter-spacing: 0.09em; font-variant-numeric: tabular-nums; }

/* Applied by element too, not only by helper class: several components set their own
   size inline (the 22px lead-case title, the 20px service title, the 17px claim), and
   those headings need balancing just as much as the ones that use .yd-h2. */
.yd-root h1, .yd-root h2, .yd-root h3, .yd-root h4 { letter-spacing: normal; text-wrap: balance; }
.yd-root p, .yd-root blockquote, .yd-root dd { text-wrap: pretty; }

/* Componentised list items mount inside a wrapper div. Inside a list that wrapper
   breaks two things at once: the <li> stops being a child of the <ol>, so every
   `.yd-proc > li` rule misses, and the list stops being a list for assistive tech —
   an <ol> whose only children are <div> announces no item count. display:contents
   removes the wrapper from the box tree and from the accessibility tree, which
   promotes the <li> back to a real child. Same for <dl>, where a dt/dd two divs
   deep is invalid. */
ol > .sc-host, ul > .sc-host, dl > .sc-host { display: contents; }

/* --- Hero -----------------------------------------------------------------
   The portrait is a background layer, not a framed object: it sits in the first grid
   column, bleeds off the left edge of the viewport, and fills the section from its top
   border to its bottom one. No radius, no frame — a frame would make it a card again.
   The left bleed is the container's own gutter, computed the same way the container
   computes it. 100vw overshooting by the scrollbar width is harmless here: the section
   is overflow:clip, so the surplus is cut rather than scrolled. */
/* overflow-y stays visible so the portrait can slide down past the section edge as it
   leaves and be cut by the viewport instead of by its own box; overflow-x still clips,
   which is what contains the left bleed. */
.yd-hero { position: relative; overflow-x: clip; overflow-y: visible; border-bottom: 1px solid var(--hairline); }
/* A single soft glow at the top left, behind the portrait and above the dot field, so
   the grid reads through it. Kept at 0.16 on the dark canvas and 0.06 on light paper,
   where a dark green blur turns into a smudge rather than a light. It is the page's only
   radial gradient. */
/* The hero light is fixed, not animated: one corner wash plus five skewed streaks of
   brand light, each masked into an irregular comb so the set reads as a single raking beam
   rather than five bars. It sits under the page's dot grid, and fades out well before the
   hero ends. */
.yd-hero-glow { position: absolute; top: -57px; left: 0; right: 0; height: 700px; pointer-events: none; overflow: clip;
  background: radial-gradient(100% 100% at 0% 0%, color-mix(in oklab, var(--brand) 7%, transparent) 0%, transparent 100%);
  mask-image: radial-gradient(125% 100% at 0% 0%, #000 0%, rgba(0,0,0,0.22) 88%, transparent 100%); }
.yd-hero-beam { position: absolute; inset: 0; opacity: 0.11; transform: skewX(45deg); transform-origin: top left;
  will-change: translate, opacity; animation: yd-beam-drift 26s ease-in-out infinite alternate; }
/* Five different periods and offsets, all long: the comb never repeats visibly and the
   light reads as breathing rather than looping. Translate only — the skew stays in
   transform so the two do not fight. */
.yd-hero-beam:nth-child(1) { animation-duration: 26s; animation-delay: 0s; }
.yd-hero-beam:nth-child(2) { animation-duration: 34s; animation-delay: -6s; }
.yd-hero-beam:nth-child(3) { animation-duration: 41s; animation-delay: -13s; }
.yd-hero-beam:nth-child(4) { animation-duration: 29s; animation-delay: -19s; }
.yd-hero-beam:nth-child(5) { animation-duration: 37s; animation-delay: -24s; }
@keyframes yd-beam-drift {
  0%   { translate: -3% 0; opacity: 0.07; }
  50%  { translate: 2% 0;  opacity: 0.13; }
  100% { translate: 5% 0;  opacity: 0.09; }
}
@media (prefers-reduced-motion: reduce) { .yd-hero-beam { animation: none; } }
.theme-light .yd-hero-beam { opacity: 0.08; }
.yd-hero-beam:nth-child(1) {
  background: linear-gradient(var(--beam) 0%, transparent 62%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, transparent 36%, #000 55%, rgba(0,0,0,0.13) 67%, #000 78%, transparent 97%); }
.yd-hero-beam:nth-child(2) {
  background: linear-gradient(var(--beam) 0%, transparent 62%);
  mask-image: linear-gradient(90deg, transparent 11%, #000 25%, rgba(0,0,0,0.55) 41%, rgba(0,0,0,0.13) 67%, #000 78%, transparent 97%); }
.yd-hero-beam:nth-child(3) {
  background: linear-gradient(var(--beam) 0%, transparent 62%);
  mask-image: linear-gradient(90deg, transparent 9%, #000 20%, rgba(0,0,0,0.55) 28%, rgba(0,0,0,0.42) 40%, #000 48%, rgba(0,0,0,0.27) 54%, rgba(0,0,0,0.13) 78%, #000 88%, transparent 97%); }
.yd-hero-beam:nth-child(4) {
  background: linear-gradient(var(--beam) 0%, transparent 62%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 17%, rgba(0,0,0,0.55) 26%, #000 35%, transparent 47%, rgba(0,0,0,0.13) 69%, #000 79%, transparent 97%); }
.yd-hero-beam:nth-child(5) {
  background: linear-gradient(var(--beam) 0%, transparent 62%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, rgba(0,0,0,0.55) 27%, #000 42%, transparent 48%, rgba(0,0,0,0.13) 67%, #000 74%, #000 82%, rgba(0,0,0,0.47) 88%, transparent 97%); }

.yd-hero-grid { display: grid; gap: 32px; padding-top: clamp(48px, 7vw, 72px); padding-bottom: clamp(48px, 7vw, 72px); }
.yd-hero-media { position: relative; overflow: clip; background: transparent;
  margin-left: calc(-1 * max(24px, (100vw - 1280px) / 2)); aspect-ratio: 4 / 3; max-width: 380px; }
@media (min-width: 1024px) {
  .yd-hero-grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
  /* The vertical bleed belongs to the two-column layout only. Stacked, the media is a
     grid ROW, and a negative bottom margin there pulls the copy up underneath it. */
  .yd-hero-media { aspect-ratio: auto; max-width: none; align-self: stretch; min-height: 480px;
    margin-top: calc(-1 * clamp(48px, 7vw, 72px)); margin-bottom: calc(-1 * clamp(48px, 7vw, 72px)); }
}
.yd-hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block;
  /* A fifth smaller. Scaling the element rather than narrowing its box is what actually
     shrinks the face: with object-fit: cover a narrower box crops the sides instead of
     scaling the picture. The mask is painted with the element, so it scales too and
     stays registered. The origin is the bottom edge, so the figure stays planted on the
     foot of the frame instead of floating with a gap under it. */
  scale: 0.9; transform-origin: 50% 100%; }
/* The copy column is positioned too, with no z-index. Without it the column is static
   and the media — positioned — paints over the headline the moment it translates. No
   z-index, so no stacking context, so the video keeps the page backdrop it masks over. */
.yd-hero-grid > div:not(.yd-hero-media) { position: relative; }
/* A video element with no decoded frames paints an OPAQUE box, not a transparent one,
   so while it loads it would hide the fallback beneath it. It fades in only once it
   reports a frame. */
/* The clip's background is cut by a matte keyed from the clip itself, not by a blend
   mode. mix-blend-mode: lighten worked — the ground is rgb(23,19,13) against a --canvas
   of rgb(23,19,15), so max() returned the canvas exactly — but it also erases anything
   darker than the page, which on this subject is his hair, and it only ever works on a
   dark theme.
   hero-matte-auto.png is keyed from a frame of this clip, on HUE rather than brightness.
   A brightness key took the shadow with the man: the ground is lit unevenly, so a
   shadow sits 85–110 away from the corner colour while a plain threshold cuts at 46,
   and everything in between was read as subject — a dark halo around the whole figure.
   The ground and its shadows are all the same warm colour at different intensities, so
   the test is the direction of the RGB vector, not its length: cos > 0.997 against the
   ground's own direction, capped at max channel 95, with an unconditional floor only
   below length 2. That floor used to be 6, which was the other half of the bug: hair at
   the crown samples as low as (3,1,0), so it fell under the floor, was read as ground,
   and gave the fill a path into the head — the top right came out half transparent.
   Below length 2 there is nothing left to key. The subject is then dilated one pixel to
   give back the rim the fill takes. His shirt is green and fails that
   test at any brightness, which a luminance key could never manage — dark green sits
   within a few points of the ground. Dark hair does match the ground's hue, so the
   candidates are then flood-filled inward from the border: hair enclosed by the face is
   never reached and stays. A 1.4px blur gives the edge.
   Deriving it from the video rather than from a supplied cut-out is what makes it exact
   — a trimmed cut-out has to be fitted back onto the frame by measurement, and the
   estimate left a visible halo. Being 1:1 with the frame, the mask can use the same
   geometry as the picture, cover at 50% 20%, and stay registered at any box size.
   Two mask layers, intersected: the silhouette, and a fade on the left and right edges,
   which is where the crop cuts his shoulders off. The fade used to run along the bottom
   instead and was wrong twice over: the shoulders leave the box at the sides, not the
   foot, and a bottom fade starting at 62% began at box y 195 while his chin sits at 227,
   so it dissolved the lower half of the face. Where mask-composite is not supported the
   layers add instead and only the edge fade is lost.
   position:relative puts the video into the painting order as a positioned element, so
   being last in the DOM it lands ABOVE the absolutely-positioned dot grid instead of
   under it. z-index 0 keeps it below the pause control at 1. */
.yd-hero-media video { position: relative; z-index: 0; opacity: 0; transition: opacity 500ms var(--ease);
  mask-image: url("../assets/hero-matte-auto.png"), linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-size: cover, 100% 100%; mask-position: 50% 20%, 0 0; mask-repeat: no-repeat, no-repeat;
  mask-composite: intersect; }
/* The light theme is a different clip, shot on white, so it needs its own matte. Same
   keyer, mirrored: on a light ground the candidates are the BRIGHT neutrals, so the test
   becomes min channel > 190 rather than max channel < 95, and the unconditional band is
   above 250 instead of below 2. Everything else — hue direction, flood fill from the
   border, one-pixel dilation, 1.4px blur — is identical. */
.yd-hero-media[data-theme="light"] video { mask-image: url("../assets/hero-matte-light.png"), linear-gradient(to right, transparent, black 12%, black 88%, transparent); }
.yd-hero-media[data-media="ready"] video { opacity: 1; }
/* And the fallback is the mirror of that: the dot grid and the status line are
   absolutely positioned, so they paint above a static video whatever the DOM order.
   They have to be switched off once there is something to look at. */
/* The dots' 0.35 lives here, not inline: an inline opacity beats a stylesheet rule, so
   the fallback could never be switched off from CSS. */
.yd-hero-fallback { transition: opacity 400ms var(--ease); pointer-events: none; }
.yd-hero-media .yd-dots.yd-hero-fallback { opacity: 0.35; }
.yd-hero-media[data-media="ready"] .yd-hero-fallback { opacity: 0; }
/* No edge fades beyond the matte's own: the silhouette ends where the man ends, so
   there is no ground to hide on any side. Only the bottom needs one, and it rides in
   the mask stack above rather than as an overlay — an overlay would paint solid canvas
   over the dot grid that is meant to run behind him. */

/* The pause control. Hidden until hover or keyboard focus on pointer devices, always
   visible where there is no hover: it is the page's WCAG 2.2.2 mechanism for stopping a
   clip that auto-starts and loops indefinitely. */
.yd-portrait-btn { opacity: 0; z-index: 1; transition: opacity 200ms var(--ease), color 200ms var(--ease); }
.yd-hero-media:hover .yd-portrait-btn, .yd-portrait-btn:focus-visible { opacity: 1; }
.yd-portrait-btn:hover { color: var(--brand); }
@media (hover: none) { .yd-portrait-btn { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .yd-portrait-btn { opacity: 1; } }
/* Same problem in a grid: the mount wrapper becomes the grid item and stretches to the
   row, but the card inside it keeps its own auto height, so three cards whose chip
   lists wrap to different line counts ended up different heights. display:contents
   promotes the card itself to be the grid item. */
.yd-svgrid > .sc-host, .yd-work > .sc-host, .yd-w-rest > .sc-host, .yd-track .sc-host { display: contents; }

/* --- Structure ------------------------------------------------------------ */
/* --- The header ------------------------------------------------------------
   Three states, set from JS and read here as a data attribute.
   top     — sitting on the hero. No fill, no blur, no border: the glow and the dot grid
             run straight under it, and a bar drawn over its own background at the very
             top is a line the page does not need.
   pinned  — scrolled, moving up. Now it IS over content, so it earns the fill: canvas at
             72% behind a 14px blur, plus the hairline and a shadow so the edge is legible
             against whatever is passing beneath.
   hidden  — scrolled down past the fold. Translated fully out; nothing fades, because a
             half-transparent bar over live content reads as a rendering fault.
   Only translate and colour animate, both cheap, and the reduced-motion rule below
   flattens the durations. */
.yd-head { position: sticky; top: 0; z-index: 40; width: 100%; background: transparent;
  border-bottom: 1px solid transparent;
  transition: translate 340ms var(--ease), background 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease), backdrop-filter 240ms var(--ease); }
.yd-head[data-head="pinned"] { background: color-mix(in oklab, var(--canvas) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--hairline);
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.9); }
.yd-head[data-head="hidden"] { translate: 0 -100%; }
/* An open mobile sheet always needs its own surface, whatever the scroll state. */
.yd-menu-toggle:checked ~ .yd-container { background: color-mix(in oklab, var(--canvas) 92%, transparent); }

/* 40px gutters, not 24: at 1280px the content is already at its max width, so the gutter
   is the only thing holding the page off the viewport edge, and 24 read as a crop.
   Phones keep 20 — there the gutter competes with the measure. */
.yd-container { margin: 0 auto; width: 100%; max-width: 1280px; padding-left: 40px; padding-right: 40px; }
@media (max-width: 640px) { .yd-container { padding-left: 20px; padding-right: 20px; } }
.yd-section { border-bottom: 1px solid var(--hairline); padding-top: var(--section-y); padding-bottom: var(--section-y); }
/* The wall already ends in a fade through the bottom edge of its own clip; the section's
   bottom padding then reads as empty canvas under a section that never visually closed. */
.yd-section--flush { padding-bottom: 0; }
.yd-dots { background-image: radial-gradient(var(--hairline-strong) 1px, transparent 1px); background-size: 24px 24px; }
.yd-rules { background-image: linear-gradient(to right, var(--hairline) 1px, transparent 1px); background-size: 25% 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: color-mix(in oklab, var(--brand) 78%, var(--ink)); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--canvas); }

/* Skip link: the page opens with a pinned header and a long hero, so a keyboard
   visitor otherwise tabs through the whole nav on every load. */
.yd-skip { position: absolute; left: 12px; top: -60px; z-index: 60; border-radius: 8px; border: 1px solid var(--brand-border); background: var(--brand-solid); color: var(--accent-foreground); padding: 8px 14px; font-size: 14px; transition: top 160ms var(--ease); }
.yd-skip:focus { top: 12px; color: var(--accent-foreground); }

/* --- Navigation ----------------------------------------------------------- */
.yd-navlinks { display: none; }
.yd-avail { display: none; }
/* A checkbox disclosure rather than a handler: an inline onclick written into a
   template is not a valid React prop and never reaches the DOM. The input stays
   focusable — hiding it from the tab order made the mobile menu unreachable by
   keyboard — and its focus ring is drawn on the label that stands in for it. */
.yd-menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.yd-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; color: var(--ink); cursor: pointer; }
.yd-menu-btn:hover { background: var(--surface-raised); }
.yd-menu-toggle:focus-visible ~ * .yd-menu-btn { outline: 2px solid var(--brand); outline-offset: 2px; }
.yd-sheet { display: none; }
.yd-menu-toggle:checked ~ .yd-sheet { display: block; }
/* 13px at 550, not 14 at 400. In a 56px bar the nav is a row of short labels read at a
   glance, not prose: one step down in size with two steps up in weight keeps the same
   optical presence in less room, and holds its edges against a blurred backdrop where a
   400 weight goes soft. The extra 0.005em of tracking is what stops the heavier weight
   reading as tight. */
.yd-navlink { font-size: 13px; font-weight: 550; letter-spacing: 0.005em; color: var(--ink-muted); position: relative; transition: color 200ms var(--ease); }
/* The link box is the full 56px of the bar, so the rule sits on the header's own
   bottom border — the same line the reading progress draws on. */
.yd-navlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brand); transform: scaleX(0); transform-origin: left center; transition: transform 260ms var(--ease); }
.yd-navlink:hover { color: var(--ink); }
.yd-navlink:hover::after, .yd-navlink:focus-visible::after { transform: scaleX(1); }
@media (min-width: 1024px) {
  .yd-navlinks { display: block; }
  .yd-avail { display: inline-flex; }
  .yd-menu-btn, .yd-sheet { display: none !important; }
}

/* --- Menus ----------------------------------------------------------------
   Two hover languages, switchable with the hoverStyle prop.
   · rule    — a 1px line draws itself under the item. The vocabulary the rest of the
                page speaks: the progress rule, the section rails, the article rows.
   · surface — a rounded fill appears behind the item and the panel grows out of it.
                Warmer, more app-like; the only place on the site where anything fills.

   Opening is :hover OR :focus-within, so the keyboard reaches every panel with no
   JavaScript.

   THE GAP PROBLEM. The panel sits --menu-offset below the item, and that strip is
   outside both of them: moving the pointer down crossed dead space and the menu shut.
   Two fixes, both here. An invisible bridge fills the strip so the hover never breaks,
   and the close transition carries a --menu-out delay while the open one carries a
   shorter --menu-in, so a pointer passing across the bar does not fire four menus and
   a pointer leaving one has time to come back.
   -------------------------------------------------------------------------- */
.yd-menus { --menu-offset: 10px; --menu-in: 90ms; /* @kind other */ --menu-out: 260ms; /* @kind other */ }
.yd-mi { position: relative; }
.yd-caret { flex: none; opacity: 0.7; transition: rotate 260ms var(--ease); }
.yd-mi:hover .yd-caret, .yd-mi:focus-within .yd-caret { rotate: 180deg; }

.yd-panel { position: absolute; top: 100%; margin-top: var(--menu-offset);
  opacity: 0; translate: 0 6px; visibility: hidden;
  border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
  transition: opacity 180ms var(--ease) var(--menu-out),
              translate 180ms var(--ease) var(--menu-out),
              visibility 0s linear calc(var(--menu-out) + 180ms); }
.yd-mi:hover .yd-panel, .yd-mi:focus-within .yd-panel {
  opacity: 1; translate: 0 0; visibility: visible;
  transition: opacity 180ms var(--ease) var(--menu-in),
              translate 180ms var(--ease) var(--menu-in),
              visibility 0s linear var(--menu-in); }
/* The bridge. Transparent, exactly the height of the gap, and part of the panel so it
   only exists while the panel does. */
.yd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--menu-offset) - 2px); height: calc(var(--menu-offset) + 2px); }
.yd-panel--sub { width: 320px; padding: 8px; }
.yd-panel--mega { width: min(920px, calc(100vw - 48px)); padding: 24px; display: grid; grid-template-columns: 1fr 1fr 260px; gap: 28px; }

/* Where the panel hangs off its item. "page" pins the mega to the page centre instead
   of the item, which is the only option that does not move as the nav labels change. */
.yd-al-start .yd-panel { left: -14px; }
.yd-al-center .yd-panel { left: 50%; transform: translateX(-50%); }
.yd-al-end .yd-panel { right: -14px; left: auto; }
/* "page" pins the mega to the page centre and flush against the header's bottom border.
   Flush is not a style choice: aligned to its item, a 920px panel overflows the right
   edge at any viewport under about 1180px, and with no gap between header and panel
   there is no dead strip to bridge in the first place. */
/* Width is a percentage of the containing block, NOT 100vw. The header carries a
   backdrop-filter, which makes it the containing block for this fixed panel, so 100%
   is the header's own box — the content column. 100vw includes the scrollbar gutter,
   which pushed the panel's edges 7.5px outside every other element on the page. Same
   trap as the testimonial wall, same rule.
   It keeps the offset and the radius of every other panel: the mega is the same object
   as a submenu, only wider, and flush square corners made it read as a second header. */
.yd-al-page .yd-panel--mega { position: fixed; top: 56px; left: 50%; right: auto; transform: translateX(-50%); width: min(1232px, calc(100% - 48px)); }
.yd-al-page .yd-panel--sub { left: -14px; }

.yd-mrow { display: block; padding: 10px 12px; border-radius: 10px; transition: background 160ms var(--ease); }
.yd-mrow:hover { background: var(--surface-raised); }
.yd-mrt { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.yd-mrd { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: 3px; }
.yd-mra { flex: none; opacity: 0; translate: -3px 0; color: var(--brand); transition: opacity 200ms var(--ease), translate 200ms var(--ease); }
.yd-mrow:hover .yd-mra { opacity: 1; translate: 0 0; }
.yd-mcol { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin: 0 0 6px 12px; }
/* The rail is an aside, not a column to be filled: it sizes to its own content, so the
   menu no longer shows a tall empty box under the button. */
.yd-mrail { align-self: start; border-radius: 12px; border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--ink) 4%, transparent); padding: 18px; display: flex;
  flex-direction: column; gap: 8px; }

/* Hover language: rule (default) */
.yd-nav--rule .yd-navlist { gap: 26px; }
.yd-nav--rule .yd-navlink { height: 56px; }
.yd-nav--rule .yd-navlink::after { bottom: -1px; }

/* Hover language: surface */
/* Hover language: surface. The pill is 34px but its <li> stretches to the full 56px of
   the bar: the mega is anchored to the header, not to the item, so a 34px trigger left
   a 9px dead band between the pill and the panel's bridge — and the 11px above each
   pill triggered nothing at all. The hit area is the bar; the pill is only its look. */
.yd-nav--surface .yd-navlist { gap: 4px; }
.yd-nav--surface .yd-mi { align-self: stretch; display: flex; align-items: center; }
.yd-nav--surface .yd-navlink { height: auto; padding: 8px 12px; border-radius: 10px; transition: background 200ms var(--ease), color 200ms var(--ease); }
.yd-nav--surface .yd-navlink::after { display: none; }
.yd-nav--surface .yd-mi:hover .yd-navlink, .yd-nav--surface .yd-mi:focus-within .yd-navlink { color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); }
.yd-nav--surface .yd-panel { border-radius: 16px; }
.yd-nav--surface .yd-mrow:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }
/* The nav and its list stretch to the full bar so an <li> can be the hit area. Without
   this the nav is only as tall as its content and align-self on the item does nothing. */
.yd-navlinks { align-self: stretch; }
.yd-navlist { display: flex; align-items: stretch; height: 100%; list-style: none; margin: 0; padding: 0; }
.yd-nav--rule .yd-mi, .yd-nav--surface .yd-mi { display: flex; align-items: center; }
.yd-navlink { display: inline-flex; align-items: center; gap: 5px; }

/* Mobile: the mega menu becomes an accordion inside the sheet. A second checkbox per
   group, for the same reason as the sheet itself — an inline handler is not a valid
   prop and never reaches the DOM. */
.yd-acc { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.yd-acc-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border-bottom: 1px solid var(--hairline); padding: 15px 0; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.yd-acc-btn svg { flex: none; opacity: 0.6; transition: rotate 240ms var(--ease); }
.yd-acc:checked + .yd-acc-btn svg { rotate: 180deg; }
.yd-acc:focus-visible + .yd-acc-btn { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.yd-acc-panel { display: none; padding: 6px 0 10px 14px; border-left: 1px solid var(--hairline); margin: 8px 0 12px; }
.yd-acc:checked ~ .yd-acc-panel { display: block; }
.yd-acc-link { display: block; padding: 9px 0; font-size: 14px; color: var(--ink-muted); }
.yd-acc-link:hover { color: var(--ink); }

/* --- Actions --------------------------------------------------------------
   Minimum 40px tall on the button pair, so the primary action clears the 44px
   touch target once its 2px focus ring is counted. */
/* font-family and cursor are set explicitly: these classes are worn by <a> and, in the
   service-page forms, by <button>, and a form control inherits neither. */
.yd-btn-p, .yd-btn-s, .yd-btn-g, .yd-btn-t, .yd-cta-sm { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; font-family: inherit; cursor: pointer; font-weight: 450; transition: background-color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease); }
.yd-btn-p, .yd-btn-s, .yd-btn-g, .yd-btn-t { padding: 10px 18px; font-size: 15px; min-height: 44px; }
.yd-btn--sm { padding: 8px 14px; font-size: 14px; min-height: 40px; }
.yd-cta-sm { border: 1px solid var(--brand-border); background: var(--brand-solid); color: var(--accent-foreground); padding: 8px 14px; font-size: 14px; min-height: 36px; }
.yd-btn-p { border: 1px solid var(--brand-border); background: var(--brand-solid); color: var(--accent-foreground); }
.yd-btn-s { border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink); }
/* Ghost: no border, no fill, but still a button — the same box, padding and 44px target
   as the other two, so a row of mixed variants keeps one baseline. It carries a
   transparent border rather than none, or it would sit 2px shorter than its neighbours.
   The hover fill is the same ink mix the cards use, not a colour of its own. */
.yd-btn-g { border: 1px solid transparent; background: transparent; color: var(--ink); }
.yd-btn-g:hover { color: var(--ink); background: var(--surface-raised); border-color: var(--hairline); }
/* Tonal: the brand as a wash instead of a fill, label in the brand. It reads as an action
   without claiming the page's one primary fill, which is what the section head holds.
   The wash is mixed into --surface, not into transparent: this button straddles the seam
   over the drawing, and a translucent fill let the animation show through it. Opaque, it
   is a solid chip sitting on the card. The border stays transparent so the height matches
   the outlined variant. */
/* The border is the brand at half the strength of --brand-border, which the filled
   primary carries: same colour family, visibly the quieter of the two. */
.yd-btn-t { border: 1px solid color-mix(in oklab, var(--brand) 16%, transparent); background: color-mix(in oklab, var(--brand) 12%, var(--surface)); color: var(--brand);
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease), color 260ms var(--ease); }
/* Hovering anywhere on the card fills the button: tonal at rest, the solid primary once
   the card is the one you are reading. The transition is on colour only, so the button
   does not move. */
.yd-sv:hover .yd-btn-t, .yd-sv:focus-within .yd-btn-t, .yd-btn-t:hover {
  border-color: var(--brand-border); background: var(--brand-solid); color: var(--accent-foreground); }
/* A ray crossing the button, not an outline running around it: one soft diagonal band of
   light sweeps the fill in half a second and then the button is quiet for four. The sweep
   is a gradient in a pseudo-element clipped to the button, so it lights the tonal fill
   itself. The three fire 0.4s apart, left to right. */
.yd-sv-foot .yd-btn-t { position: relative; overflow: clip; }
.yd-sv-foot .yd-btn-t::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 8%,
    color-mix(in oklab, var(--brand) 18%, transparent) 28%,
    color-mix(in oklab, var(--brand) 42%, transparent) 46%,
    color-mix(in oklab, var(--ink) 24%, transparent) 52%,
    color-mix(in oklab, var(--brand) 18%, transparent) 72%, transparent 92%);
  translate: -140% 0;
  animation: yd-sweep 11s cubic-bezier(0.66, 0, 0.86, 0.4) infinite;
}
/* The pass itself still takes ~2.4s; the rest of the 11s cycle is the pause between
   passes, which is what keeps a permanent loop from reading as a busy interface. */
@keyframes yd-sweep { 0% { translate: -140% 0; } 22%, 100% { translate: 140% 0; } }
/* Not a third of the cycle apart any more: 0.4s each, so the light crosses the three
   cards left to right as one ray passing over the row rather than three separate flashes. */
.yd-svgrid > :nth-child(2) .yd-btn-t::before { animation-delay: 0.4s; }
.yd-svgrid > :nth-child(3) .yd-btn-t::before { animation-delay: 0.8s; }
@media (prefers-reduced-motion: reduce) { .yd-sv-foot .yd-btn-t::before { animation: none; opacity: 0; } }
.yd-btn-p:hover, .yd-cta-sm:hover { color: var(--accent-foreground); background: color-mix(in oklab, var(--brand-solid) 85%, var(--ink)); }
.yd-btn-s:hover { color: var(--ink); background: var(--surface-raised); }
.yd-btn-p:active, .yd-btn-s:active, .yd-cta-sm:active { transform: scale(0.985); }
.yd-link { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; color: var(--brand); }
.yd-arrow { flex: none; align-self: center; margin-top: 0.5px; transition: translate 220ms var(--ease); }
.yd-link:hover .yd-arrow, .yd-btn-p:hover .yd-arrow, .yd-btn-s:hover .yd-arrow, .yd-w-row:hover .yd-arrow, .yd-sv:hover .yd-arrow { translate: 3px 0; }

/* --- Section layouts ------------------------------------------------------ */
.yd-2col, .yd-7-5, .yd-5-7, .yd-split { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .yd-split { grid-template-columns: 5fr 7fr; gap: 48px; }
  .yd-2col  { grid-template-columns: 5fr 7fr; gap: 64px; }
  .yd-7-5   { grid-template-columns: 7fr 5fr; gap: 48px; }
  .yd-5-7   { grid-template-columns: 5fr 7fr; gap: 48px; }
  .yd-sticky { position: sticky; top: 96px; align-self: start; }
  .yd-order1 { order: 1; }
  .yd-order2 { order: 2; }
}
.yd-head-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
/* Centred variant. The head's ch-based max-widths stay — they are what keep the title
   two lines and the lede three — so centring is margin-inline:auto on the measures
   themselves, not text-align on a full-width block. The side link drops below the lede
   rather than sitting opposite it: there is no opposite edge in a centred head. */
.yd-head-c { flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.yd-head-c .yd-h2, .yd-head-c .yd-lede { margin-inline: auto; }

/* The portrait is a 4/5 frame. Below 1024px the column is full width, which made an
   empty PLACEHOLDER box roughly two viewport heights tall on a tablet. The cap is on
   WIDTH, not height: with an aspect-ratio and an auto width, clamping the height makes
   the browser re-derive the width from the ratio, which shrink-wrapped the frame to
   416px and left the rest of the column bare. Centred, so the row does not read as a
   broken grid. */
.yd-5-7 .yd-order1 > div { max-width: 416px; margin-inline: auto; }
@media (min-width: 1024px) { .yd-5-7 .yd-order1 > div { max-width: none; margin-inline: 0; } }

/* --- Services -------------------------------------------------------------
   Three services of equal standing: same before/after diptych as Selected Work,
   but with no lead card — none of the three outranks the others.
   -------------------------------------------------------------------------- */
.yd-sgrid { display: flex; flex-direction: column; gap: 104px; }
.yd-sgrid-head { display: grid; gap: 24px; }
@media (min-width: 1024px) { .yd-sgrid-head { grid-template-columns: 6fr 5fr; gap: 64px; align-items: end; } }
.yd-svgrid { display: grid; gap: 24px; }
@media (min-width: 760px)  { .yd-svgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .yd-svgrid { grid-template-columns: repeat(3, 1fr); } }
/* Staircase. Only at three columns: at two the offset pairs the wrong cards, at one it
   is just a gap. align-items:start is required — a stretched grid item ignores the
   descent, and it also lets the three cards keep their natural heights, which is what
   makes the steps read as steps rather than as three cards hung from one rail. */
@media (min-width: 1080px) {
  .yd-svgrid--steps { align-items: start; }
  .yd-svgrid--steps > :nth-child(2) > .yd-sv { margin-top: 44px; }
  .yd-svgrid--steps > :nth-child(3) > .yd-sv { margin-top: 88px; }
}
/* The head's right column is bottom-aligned, so the nudge is a negative bottom margin,
   which drops it 20px into the 40px gap below rather than adding height to the row. */
@media (min-width: 1024px) { .yd-sgrid-cta { margin-bottom: -20px; } }
.yd-sv { display: flex; flex-direction: column; overflow: clip; border-radius: 20px 20px 40px 40px; border: 1px solid var(--hairline); background: var(--surface); transition: border-color 200ms var(--ease); }
/* No glow under the card on hover: the travelling ring is the whole response. A green
   bloom behind a card that was only pointed at reads as a selected state. */
/* The card's edge stays a hairline at rest. On hover a single arc of brand light travels
   around it instead of the whole outline turning green: a static green ring reads as a
   selected state on a card nobody selected.

   .yd-sv-ring is the border box, cut out of the content box by an excluding mask, so what
   survives is exactly one pixel wide and follows the 20/40 radius. The mask applies to the
   whole subtree, so the arc itself is an oversized square pseudo-child rotating inside a
   frame that does not rotate. It was an animated <angle> custom property before; the arc
   was never a design token, and one node keeps the ring out of the token layer. */
@keyframes yd-sv-ring { to { rotate: 360deg; } }
.yd-sv-ring {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; padding: 1px; opacity: 0;
  transition: opacity 260ms var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* 150% of the card and centred on it, so the arc's own centre is the card's centre and the
   square still covers all four corners at every angle. */
.yd-sv-ring::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 150%; aspect-ratio: 1;
  margin: -75% 0 0 -75%;
  background: conic-gradient(
    transparent 0turn,
    color-mix(in oklab, var(--brand) 30%, transparent) 0.06turn,
    var(--brand) 0.13turn,
    color-mix(in oklab, var(--brand) 30%, transparent) 0.2turn,
    transparent 0.3turn, transparent 1turn);
}
.yd-sv:hover .yd-sv-ring, .yd-sv:focus-within .yd-sv-ring { opacity: 1; }
.yd-sv:hover .yd-sv-ring::before, .yd-sv:focus-within .yd-sv-ring::before { animation: yd-sv-ring 3.2s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .yd-sv:hover .yd-sv-ring::before, .yd-sv:focus-within .yd-sv-ring::before { animation: none; background: var(--brand-border); }
}
/* One bloom behind every drawing, in the same place on all three cards: the light comes
   from under the artwork rather than from each scene inventing its own. It doubles on
   hover, which is what makes the three respond as one row. */
.yd-sv-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 78% at 50% 108%, color-mix(in oklab, var(--brand) 15%, transparent) 0%, transparent 68%);
  opacity: 0.55; transition: opacity 420ms var(--ease);
}
.yd-sv:hover .yd-sv-art::before, .yd-sv:focus-within .yd-sv-art::before { opacity: 1; }
/* The drawing dissolves into the card at its own top edge instead of being cut by the
   hairline: the same fade the dot fields use, so nothing in the system has a hard seam. */
.yd-sv-art > .sc-host { mask-image: linear-gradient(to bottom, transparent 0%, #000 14%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%); }
/* The same ray, over the whole card, at a fraction of the strength — the button's sweep
   is the visible one and this is its echo, on the same clock and the same 0.4s stagger so
   the two read as one pass of light rather than two effects. Ink, not brand: at 4% a
   green wash tints the copy, a neutral one only lifts it. */
.yd-sv { position: relative; }
.yd-sv::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(105deg, transparent 12%,
    color-mix(in oklab, var(--ink) 2%, transparent) 32%,
    color-mix(in oklab, var(--ink) 5%, transparent) 50%,
    color-mix(in oklab, var(--ink) 2%, transparent) 68%, transparent 88%);
  translate: -140% 0;
  /* The head band and the drawing are matte: the sweep is masked out of the top 64px
     (the number + title row) and the bottom 269px (the art panel and its hairline), so the
     light only crosses the written middle of the card. Three materials in one object —
     matte, reflective, matte — which is what stops the card reading as one printed sheet.
     The two masked bands get their own duller sweep below, on the same clock. The cuts are
     hard and land exactly on the two hairlines (64px = the head's 20+28+16; 269px = the art
     panel plus its border), so the change of material happens on a line that is already
     drawn — a soft fade there left a visible band that belonged to neither. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0 64px, #000 64px, #000 calc(100% - 269px), transparent calc(100% - 269px));
  mask-image: linear-gradient(to bottom, transparent 0 64px, #000 64px, #000 calc(100% - 269px), transparent calc(100% - 269px));
  animation: yd-sweep 11s cubic-bezier(0.66, 0, 0.86, 0.4) infinite;
}
.yd-svgrid > :nth-child(2) .yd-sv::after { animation-delay: 0.4s; }
.yd-svgrid > :nth-child(3) .yd-sv::after { animation-delay: 0.8s; }
@media (prefers-reduced-motion: reduce) { .yd-sv::after { animation: none; opacity: 0; } }
/* The drawing sits at the FOOT of the card, under the chips and the link: the card's job
   is to be read, and a 188px animation above the title took the first fixation before
   the title had it. Last, it is the thing you look at once the words have landed. Its
   hairline flips to the top edge for the same reason. */
/* 268px tall and NO padding: the air is added inside each drawing's viewBox instead
   (y -40, height 268, floor rect grown to match), so the isometric floor runs edge to
   edge. Padding on the frame left two empty bands where the floor stopped. */
.yd-sv-art > .sc-host { height: 100%; }
.yd-sv-art { position: relative; height: 268px; overflow: clip; border-top: 1px solid var(--hairline); background: color-mix(in oklab, var(--surface) 88%, var(--canvas)); }
.yd-sv-head { position: relative; overflow: clip; display: flex; align-items: center; gap: 10px; padding: 20px 22px 16px; }
/* Matte, not unlit: the head and the drawing catch the same ray as the middle of the card,
   but as a broad diffuse lift with no bright core — the difference between a sheet of
   paper and a sheet of glass under the same light. Same clock, same stagger. */
.yd-sv-head::after, .yd-sv-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  translate: -140% 0;
  animation: yd-sweep 11s cubic-bezier(0.66, 0, 0.86, 0.4) infinite;
}
.yd-sv-head::after { background: linear-gradient(105deg, transparent 4%,
  color-mix(in oklab, var(--ink) 2.5%, transparent) 46%,
  color-mix(in oklab, var(--ink) 2.5%, transparent) 56%, transparent 96%); }
.yd-sv-art::after { background: linear-gradient(105deg, transparent 2%,
  color-mix(in oklab, var(--ink) 1.5%, transparent) 40%,
  color-mix(in oklab, var(--brand) 4%, transparent) 52%,
  color-mix(in oklab, var(--ink) 1.5%, transparent) 62%, transparent 98%); }
.yd-svgrid > :nth-child(2) .yd-sv-head::after, .yd-svgrid > :nth-child(2) .yd-sv-art::after { animation-delay: 0.4s; }
.yd-svgrid > :nth-child(3) .yd-sv-head::after, .yd-svgrid > :nth-child(3) .yd-sv-art::after { animation-delay: 0.8s; }
@media (prefers-reduced-motion: reduce) { .yd-sv-head::after, .yd-sv-art::after { animation: none; opacity: 0; } }
.yd-sv-half { padding: 16px 22px; border-top: 1px solid var(--hairline); }
.yd-sv-half--on { background: color-mix(in oklab, var(--surface) 78%, var(--canvas)); flex: 1; }
/* The action is an outlined button centred ON the hairline between the chips and the
   drawing, half in each: the two halves of the card foot are what it connects — the kinds
   of work above, the picture of the work below — and a button sitting on the seam belongs
   to neither block, which is what makes it read as the way out of the card. Its negative
   bottom margin is exactly the foot's padding plus half the button height (18 + 19), so
   the seam runs through its middle. The chip list keeps the full width. */
.yd-sv-foot { align-items: center; }
.yd-sv-foot > :last-child { margin-bottom: -37px; position: relative; z-index: 1; }
.yd-sv-foot .yd-w-chips { align-self: stretch; }
.yd-sv-foot { margin-top: auto; border-top: 1px solid var(--hairline); padding: 18px 22px; display: flex; flex-direction: column; gap: 34px; }

/* --- Selected work -------------------------------------------------------- */
.yd-work { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 1024px) { .yd-work { grid-template-columns: 7fr 5fr; } }
.yd-w-rest { display: grid; gap: 16px; }
.yd-w-lead, .yd-w-row { border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface); transition: border-color 200ms var(--ease); }
.yd-w-lead:hover, .yd-w-row:hover, .yd-w-lead:focus-within, .yd-w-row:focus-within { border-color: var(--hairline-strong); }
.yd-w-lead { display: flex; flex-direction: column; overflow: clip; }
.yd-w-lead-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 24px 24px 20px; }
.yd-w-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--brand); }
.yd-w-kind { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin: 0; }
.yd-w-dip { display: grid; border-top: 1px solid var(--hairline); }
@media (min-width: 640px) { .yd-w-dip { grid-template-columns: 1fr 1fr; } }
.yd-w-half { padding: 20px 24px; }
.yd-w-half--after { border-top: 1px solid var(--hairline); background: color-mix(in oklab, var(--surface) 78%, var(--canvas)); }
@media (min-width: 640px) { .yd-w-half--after { border-top: 0; border-left: 1px solid var(--hairline); } }
.yd-w-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin: 0; }
.yd-w-tag--on { color: var(--brand); }
.yd-w-text { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: 8px 0 0; }
.yd-w-text--on { color: var(--ink); }
.yd-w-foot { margin-top: auto; border-top: 1px solid var(--hairline); padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.yd-w-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.yd-w-chip { border-radius: 6px; background: var(--surface-raised); padding: 3px 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-muted); }
.yd-w-row { display: flex; flex-direction: column; padding: 22px 24px; }
.yd-w-row-head { display: flex; align-items: baseline; gap: 10px; }
.yd-w-row-out { margin-top: 16px; border-top: 1px solid var(--hairline); padding-top: 14px; }
.yd-w-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--ink); transition: color 200ms var(--ease); }
.yd-w-row:hover .yd-w-link, .yd-sv:hover .yd-w-link, .yd-w-link:hover { color: var(--brand); }

/* --- Process --------------------------------------------------------------
   Selectors are written host-agnostic: `.yd-proc li` rather than `.yd-proc > li`,
   and `:nth-child` on whatever the direct child happens to be. In the app the direct
   child IS the <li>; here it is the mount wrapper. Both match, so the design file and
   the built component share one stylesheet.
   -------------------------------------------------------------------------- */
.yd-proc { display: grid; gap: 0; position: relative; list-style: none; margin: 0; padding: 0; }
.yd-proc li { position: relative; padding: 0 0 28px 32px; }
.yd-proc > :last-child li { padding-bottom: 0; }
.yd-proc li .yd-node { position: absolute; left: 0; top: 4px; }
.yd-proc-track, .yd-proc-fill, .yd-bead { display: none; }
.yd-proc-vtrack { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--hairline-strong); }
.yd-proc-vfill { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--brand); transform-origin: top center; }
.yd-bead-track { container-type: inline-size; }
@media (min-width: 1024px) {
  .yd-proc { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .yd-proc li { padding: 0; }
  .yd-proc li .yd-node { position: static; display: block; }
  .yd-proc li > span:nth-of-type(2) { margin-top: 20px; }
  .yd-proc-track, .yd-proc-fill, .yd-bead { display: block; }
  .yd-proc-vtrack, .yd-proc-vfill { display: none; }
}

/* --- Testimonials ---------------------------------------------------------
   Two marquees running in opposite directions: the volume is the argument, and
   opposing motion reads as a wall rather than one queue. Each track is duplicated
   and shifted by exactly -50%, so the loop has no seam; the durations differ so
   the two never fall into phase. Pointer OR keyboard focus pauses both.
   Full bleed via margin-inline against the container width, not 100vw, which
   includes the scrollbar gutter and would push the wall past the left edge.
   -------------------------------------------------------------------------- */
/* --- Recommendation wall (static) ----------------------------------------
   Five columns, each a plain flex stack, offset in a shallow V (0/46/92/46/0) so no
   two card tops line up across the wall — the stagger is what makes it read as a wall
   of separate voices rather than a five-column table. The block is clipped to a fixed
   height and masked on three edges: cards run off the bottom and the sides, which says
   there are more than the fifteen shown without printing a count. Two masks composited
   with intersect — a single gradient cannot fade both axes. Cards drop their fixed
   380px here (that width exists for the marquee's loop pitch, which this has no loop). */
.yd-wall2 { --wall-gap: 16px; margin-top: 80px; margin-inline: calc(50% - 50vw); padding-inline: 40px;
  height: 580px; overflow: clip; align-items: start;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--wall-gap);
  mask-image: linear-gradient(to bottom, black 38%, transparent),
              linear-gradient(to right, transparent, black 7%, black 93%, transparent);
  mask-composite: intersect; }
.yd-wallcol { display: flex; flex-direction: column; gap: var(--wall-gap); }
.yd-wallcol > .sc-host { display: contents; }
.yd-wallcol:nth-child(2), .yd-wallcol:nth-child(4) { margin-top: 46px; }
.yd-wallcol:nth-child(3) { margin-top: 92px; }
.yd-wall2 .yd-rev { width: auto; padding: 24px 22px 20px; }
.yd-wall2 .yd-rev-q { font-size: 14px; line-height: 1.6; }
.yd-wall2 .yd-rev-q--serif { font-size: 16px; }
.yd-wall2 .yd-rev-by { padding-top: 20px; }
/* In the wall the attribution is a caption, not a byline: one step down from the quote
   and two weights up, so the eye reads the words first and the name only when it wants
   to know who said them. */
.yd-wall2 .yd-rev-name { font-size: 13px; font-weight: 600; }
.yd-wall2 .yd-rev-role { font-size: 12px; }
@media (max-width: 1180px) { .yd-wall2 { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 620px; }
  .yd-wallcol:nth-child(n+4) { display: none; } }
/* One column at phone width: the stagger and the side fade have nothing to act on, and
   clipping a single column would hide most of the section. It ends where it ends. */
@media (max-width: 720px) { .yd-wall2 { grid-template-columns: minmax(0, 1fr); height: auto; mask-image: none; padding-inline: 20px; }
  .yd-wallcol:nth-child(n+2) { display: none; } .yd-wallcol { margin-top: 0 !important; } }

.yd-wall { --wall-gap: 16px; margin-top: 40px; margin-inline: calc(50% - 50vw); display: flex; flex-direction: column; gap: var(--wall-gap); }
.yd-marquee { overflow: clip; mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent); }
.yd-track { display: flex; gap: var(--wall-gap); width: max-content; padding-right: var(--wall-gap); }
/* -50% is NOT the repeat pitch. width:max-content on a gapped flex row spans
   (N-1) x pitch + cardWidth, so it omits one trailing gap and half of it falls short by
   gap/2 — the wall snapped 8px at every loop boundary. The trailing padding restores the
   missing gap, so 50% is exactly the distance from one card to its duplicate. */
@keyframes yd-scroll-a { from { translate: 0 0; } to { translate: -50% 0; } }
@keyframes yd-scroll-b { from { translate: -50% 0; } to { translate: 0 0; } }
.yd-track--a { animation: yd-scroll-a 110s linear infinite; }
.yd-track--b { animation: yd-scroll-b 132s linear infinite; }
.yd-wall:hover .yd-track, .yd-wall:focus-within .yd-track { animation-play-state: paused; }
/* The card is built out of translucency rather than a second set of flat colours:
   a 3.5% ink fill, no border at all. Layering one ink over the canvas means the card
   follows any background tone without a variant, and the two themes need no separate
   values. Dropping the border removes twelve outlines from a moving wall. Text colours
   stay on their tokens — opacity there would break the measured contrast. */
.yd-rev { flex: none; width: 380px; margin: 0; display: flex; flex-direction: column; position: relative;
  border-radius: 18px; padding: 30px 28px 26px;
  background: color-mix(in oklab, var(--ink) 3.5%, transparent);
  transition: background 240ms var(--ease); }
.yd-rev:hover, .yd-rev:focus-within { background: color-mix(in oklab, var(--ink) 6.5%, transparent); }
/* Sans, not the serif. Palatino stays on the page but only in the About paragraphs:
   at card size its thin strokes and large x-height read as older than the rest of the
   interface. 17px against the 14px body is the step that says "this is a quotation". */
.yd-rev-q { font-size: 17px; font-weight: 450; line-height: 1.55; color: var(--ink); margin: 0; text-wrap: pretty; }
/* The serif alternative, switchable per card via the quoteFace prop. 19px, not 17:
   Palatino has a large x-height and a wide set width, so it runs optically larger than
   the sans and needs both a different size and tighter leading to sit at the same
   weight. 19px also keeps it clear of the 18px floor where its strokes shimmer on the
   dark canvas. */
.yd-rev-q--serif { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.5; }
.yd-rev-by { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 26px; }
.yd-rev-face { flex: none; width: 34px; height: 34px; border-radius: 999px; object-fit: cover; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; color: var(--ink-muted);
  background: color-mix(in oklab, var(--ink) 7%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent); }
.yd-rev-name { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.yd-rev-role { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 1px; }
/* In the attribution row, not floated over the quote. Anchored in the corner it sat on
   top of the text whenever an excerpt ran long, and it was unreachable on touch, where
   there is no hover to reveal it. --ink-muted, not an ink mix: this is the card's one
   interactive control, so it has a 3:1 floor to clear, and no single mix percentage
   cleared it in both themes (34% is 2.85:1 dark and 2.14:1 light). The token is
   5.97:1 dark and 5.37:1 light. */
.yd-rev-link { margin-left: auto; flex: none; display: inline-flex; padding: 6px; border-radius: 8px; color: var(--ink-muted); transition: color 200ms var(--ease), background 200ms var(--ease); }
.yd-rev-link:hover { color: var(--brand); background: color-mix(in oklab, var(--ink) 7%, transparent); }

/* --- Writing + footer ----------------------------------------------------- */
.yd-art-grid { display: grid; gap: 8px; }
/* 220px, not 160: the meta pair is a mono label plus a category, and "PLACEHOLDER ·
   ENGINEERING" measures 205px — at 160 the second label overflowed its column and sat on
   top of the title, at 200 that row wrapped and left the divider dangling. 220 keeps the
   longest pair on one line with slack; the wrap stays as a safety, not the normal case. */
@media (min-width: 1024px) { .yd-art-grid { grid-template-columns: 220px 1fr; gap: 40px; align-items: baseline; } }
.yd-art-title { color: var(--ink); }
.yd-art:hover .yd-art-title, .yd-art:focus-within .yd-art-title { color: var(--brand); }
.yd-art-lit { transition: transform 420ms var(--ease); }
.yd-art:hover .yd-art-lit, .yd-art:focus-within .yd-art-lit { transform: scaleX(1); }
.yd-cta-grid { display: grid; gap: 32px; padding: 40px 28px; }
@media (min-width: 1024px) { .yd-cta-grid { grid-template-columns: 7fr 4fr; gap: 64px; padding: 56px 48px; } }
.yd-foot-top { display: grid; gap: 48px; }
.yd-foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 1024px) { .yd-foot-top { grid-template-columns: 4fr 8fr; } .yd-foot-cols { grid-template-columns: repeat(3, 1fr); } }
.yd-flink { font-size: 14px; color: var(--ink-muted); }
.yd-flink:hover { color: var(--ink); }
.yd-mail { display: inline-block; margin-top: 20px; font-size: 20px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--hairline-strong); padding-bottom: 2px; transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.yd-mail:hover { color: var(--brand); border-color: var(--brand); }

/* --- Motion ---------------------------------------------------------------
   Native scroll-driven only. Every rule is additive: without animation-timeline
   the rails render full and the nodes keep their hairline ring, which is the
   finished resting state.
   -------------------------------------------------------------------------- */
@keyframes yd-rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes yd-drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes yd-drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* A rail whose paint is a pattern cannot be drawn by scaleY: scaling squashes the dashes
   and only lets go at the end. Clipping reveals the same paint at its true pitch, so the
   solid stretch and the dashed tail arrive exactly as they will rest. */
@keyframes yd-clipY { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes yd-lit { from { background: var(--canvas); border-color: var(--hairline-strong); } to { background: var(--brand); border-color: var(--brand); } }
@keyframes yd-run { from { translate: 0 0; } to { translate: calc(100cqw - 7px) 0; } }
@keyframes yd-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes yd-hero-exit { to { translate: 0 180px; } }
.yd-pulse { animation: yd-pulse 2.6s ease-in-out infinite; }
@supports (animation-timeline: view()) {
  .yd-stagger > * { animation: yd-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .yd-stagger > *:nth-child(2) { animation-range: entry 5% entry 60%; }
  .yd-stagger > *:nth-child(3) { animation-range: entry 10% entry 65%; }
  .yd-stagger > *:nth-child(4) { animation-range: entry 15% entry 70%; }
  .yd-stagger > *:nth-child(5) { animation-range: entry 20% entry 75%; }
  .yd-rail-h { animation: yd-drawX linear both; animation-timeline: view(); animation-range: entry 20% cover 60%; }
  .yd-rail-v { animation: yd-drawY linear both; animation-timeline: view(); animation-range: entry 10% cover 55%; }
  .yd-rail-v--dash { animation-name: yd-clipY; transform: none; }
  /* The Context dots light as the rail passes them, not on a stagger of their own: each
     window is placed at the fraction of the rail's own range where that dot sits. */
  .yd-ctx-steps > :nth-child(1) .yd-node { animation-range: cover 2% cover 8%; }
  .yd-ctx-steps > :nth-child(2) .yd-node { animation-range: cover 22% cover 28%; }
  .yd-ctx-steps > :nth-child(3) .yd-node { animation-range: cover 41% cover 47%; }
  .yd-step .yd-node { animation: yd-lit linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  .yd-stagger > :nth-child(2) .yd-node, .yd-step:nth-child(3) .yd-node { animation-range: entry 26% cover 50%; }
  .yd-stagger > :nth-child(3) .yd-node, .yd-step:nth-child(4) .yd-node { animation-range: entry 32% cover 55%; }
  .yd-stagger > :nth-child(4) .yd-node, .yd-step:nth-child(5) .yd-node { animation-range: entry 38% cover 60%; }
  .yd-stagger > :nth-child(5) .yd-node, .yd-step:nth-child(6) .yd-node { animation-range: entry 44% cover 65%; }
  .yd-proc li .yd-node { animation: yd-lit linear both; animation-timeline: view(); animation-range: entry 25% cover 45%; }
  .yd-proc > :nth-child(2) .yd-node { animation-range: entry 30% cover 50%; }
  .yd-proc > :nth-child(3) .yd-node { animation-range: entry 35% cover 55%; }
  .yd-proc > :nth-child(4) .yd-node { animation-range: entry 40% cover 60%; }
  .yd-proc > :nth-child(5) .yd-node { animation-range: entry 45% cover 65%; }
  .yd-bead { animation: yd-run linear both; animation-timeline: view(); animation-range: entry 20% cover 60%; }
  .yd-glow { animation: yd-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  .yd-progress { animation: yd-drawX linear both; animation-timeline: scroll(root); }
  /* The portrait slides down as you scroll and is swallowed by the next section, which
     is opaque and paints after it. It does not fade: it goes behind something.
     Above 1024px only. Stacked, the media is a grid ROW sitting above the copy, so
     translating it down moves it into the headline rather than toward the next section
     — and that boundary is 429px away, further than any tasteful slide. The effect
     assumes the two-column geometry, where the media is a side column stretched to the
     full section height, so it is scoped to it.
     scroll(root) with a pixel range rather than view(), because the hero is already
     fully on screen at scrollTop 0 — a view() progress would start at whatever fraction
     the viewport height happened to make it, and the effect would differ on every
     screen. */
  @media (min-width: 1024px) {
    .yd-hero-media { animation: yd-hero-exit linear both; animation-timeline: scroll(root); animation-range: 0px 620px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .yd-track { animation: none !important; }
  /* Scroll-driven animations ignore animation-duration, so the blanket rule above does
     not reach them. The portrait's resting state is simply present. */
  .yd-hero-media { animation: none !important; }
}

/* --- Toolkit ---------------------------------------------------------------
   The catalogue of Claude Code artefacts, replacing the Lab. Same vocabulary as the
   rest of the page: hairlines, one accent, no new colours. */
.yd-tk-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 760px) { .yd-tk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .yd-tk-grid { grid-template-columns: repeat(3, 1fr); } }
.yd-tk-card { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface); padding: 22px; transition: border-color 220ms var(--ease), background 220ms var(--ease); }
.yd-tk-card:hover { border-color: var(--hairline-strong); background: var(--surface-raised); }
.yd-tk-kicker { display: flex; align-items: baseline; gap: 10px; }
.yd-tk-n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--brand); }
.yd-tk-count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-muted); margin-left: auto; }
.yd-tk-members { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px;
  border-top: 1px solid var(--hairline); }
.yd-tk-members li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--ink); }
.yd-tk-members span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-muted); }
.yd-tk-foot { margin-top: auto; padding-top: 18px; }

/* An artefact row. One list rule, reused by the index, the category page and the agent
   page — which is why it is a component and the cards above are not.
   Denser and more technical than the article rows it started from: an artefact is an
   identifier you type, not a headline you read, so the name is mono and the row is 14px
   of padding rather than 18. The hover language is the surface fill the header already
   uses — a tinted 10px well bleeding into the gutters — not the underline, because a row
   in a scannable catalogue needs the whole band to react, not a line at its foot.
   Typography, by the system's own rules: mono at 14px carries -0.01em, because a
   monospaced face runs optically wide and an identifier should read tight; the summary is
   13/19, a 1.46 ratio and the floor for two lines of prose; every uppercase mono label
   keeps its 0.08em; the metric uses tabular figures so a column of numbers aligns. */
/* The list is a table: a bordered panel with a header row of column labels, rows divided
   by hairlines and no outer margins, so the hover fill runs edge to edge. That is the
   long-standing convention for a directory of records, and it is what lets four columns
   stay legible without repeating their names on every row.
   Not a real <table>: the cells are a name with a summary under it, two chips and a number,
   which no table layout algorithm handles well. The header is aria-hidden and each row is
   still a list item, so the semantics stay honest. */
.yd-artable { border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); overflow: clip; }
.yd-arhead { display: none; }
@media (min-width: 760px) {
  .yd-arhead { display: grid; grid-template-columns: 40px 1fr 168px 104px 28px; gap: 20px;
    align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--hairline);
    background: color-mix(in oklab, var(--ink) 3%, transparent);
    font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
}
.yd-ar { display: grid; gap: 6px 20px; padding: 18px; margin: 0; border-radius: 0;
  position: relative; transition: background 180ms var(--ease); }
.yd-ar + .yd-ar { box-shadow: 0 -1px 0 var(--hairline); }
@media (min-width: 760px) { .yd-ar { grid-template-columns: 40px 1fr 168px 104px 28px; align-items: center; } }
/* One glyph per domain, in a 40px well. It is a wayfinding mark, not decoration: at a
   glance the eye sorts the list by shape before it reads a word. Stroke 1.6 to sit at the
   same weight as the hairlines around it, and --ink-subtle so six of them down a column
   never outshout the names. */
.yd-ar-i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink-subtle);
  transition: color 180ms var(--ease), box-shadow 180ms var(--ease); }
.yd-ar:hover .yd-ar-i { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-border); }
.yd-ar:hover, .yd-ar:focus-within { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.yd-ar-t { display: inline-block; font-family: var(--mono); font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 20px; color: var(--ink); }
.yd-ar:hover .yd-ar-t { color: var(--brand); }
.yd-ar-d { font-size: 13px; line-height: 20px; letter-spacing: 0; color: var(--ink-muted); margin: 3px 0 0; max-width: 64ch; }
/* The domain and the kind sit on one line now, not stacked: at 20px of padding the row has
   the height for it, and one line keeps the three columns on a single baseline. */
.yd-ar-c { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; line-height: 14px; color: var(--ink-muted); }
.yd-ar-k { display: inline-flex; align-items: center; border-radius: 5px; padding: 2px 7px;
  background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--hairline);
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-subtle); }
.yd-ar-m { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
  color: var(--ink-muted); margin: 0; text-align: left; }
@media (min-width: 760px) { .yd-ar-m { text-align: right; } }
.yd-ar:hover .yd-ar-m, .yd-ar:focus-within .yd-ar-m { color: var(--brand); }
/* The arrow holds a 28px column of its own rather than being absolutely positioned, so it
   can never land on top of a long number. Hidden from assistive tech: the row's link
   already says where it goes, and a second announcement would be noise. */
.yd-ar-go { display: none; }
@media (min-width: 760px) {
  .yd-ar-go { display: grid; place-items: center; color: var(--brand); opacity: 0; translate: -6px 0;
    transition: opacity 180ms var(--ease), translate 180ms var(--ease); }
  .yd-ar:hover .yd-ar-go, .yd-ar:focus-within .yd-ar-go { opacity: 1; translate: 0 0; }
}

/* --- Blocks ---------------------------------------------------------------
   A row of bordered panels carrying one fact each. Same 14px radius and hairline as every
   other panel in the system; the number is the only thing at display size, so a row of
   four reads as a readout rather than as four cards. */
.yd-blocks { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 640px) { .yd-blocks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .yd-blocks { grid-template-columns: repeat(4, 1fr); } }
.yd-block { border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); padding: 20px;
  display: flex; flex-direction: column; gap: 8px; transition: border-color 200ms var(--ease), background 200ms var(--ease); }
.yd-block:hover { border-color: var(--hairline-strong); background: var(--surface-raised); }
.yd-block-n { font-family: var(--mono); font-size: 26px; line-height: 30px; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--ink); }
.yd-block-t { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin: 0; }
.yd-block-b { font-size: 13px; line-height: 20px; color: var(--ink-muted); margin: 0; }

/* The search field. Its own shape, not a card: a single 12px-radius well with the accent
   only on focus, so an empty field never looks like a button waiting to be pressed. */
.yd-tk-search { display: flex; align-items: center; gap: 12px; border: 1px solid var(--hairline-strong);
  border-radius: 12px; background: var(--surface); padding: 0 14px; height: 52px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease); }
.yd-tk-search:focus-within { border-color: var(--brand-border); background: var(--surface-raised); }
.yd-tk-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none;
  color: var(--ink); font-family: var(--sans); font-size: 15px; }
.yd-tk-search input::placeholder { color: var(--ink-muted); }
.yd-kbd { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); border: 1px solid var(--hairline-strong);
  border-radius: 5px; padding: 2px 6px; }

.yd-tk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.yd-tk-filter { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 12px;
  background: none; cursor: pointer; transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease); }
.yd-tk-filter:hover { color: var(--ink); border-color: var(--hairline-strong); }
.yd-tk-filter[aria-pressed="true"] { color: var(--brand); border-color: var(--brand-border);
  background: color-mix(in oklab, var(--brand-solid) 18%, transparent); }

/* A command to copy. Mono, one hairline, no window chrome — it is a line to run, not a
   screenshot of a terminal. */
.yd-code { display: flex; align-items: center; gap: 12px; border: 1px solid var(--hairline-strong); border-radius: 10px;
  background: var(--canvas); padding: 12px 14px; font-family: var(--mono); font-size: 13px; color: var(--ink);
  overflow-x: auto; }
.yd-code b { color: var(--brand); font-weight: 400; }

/* --- The assistant ---------------------------------------------------------
   One instance, page-wide, bottom right. Collapsed it is a 48px button; open it is a
   360px panel. It is fixed, so it sits outside the page's paint order entirely and needs
   the only high z-index in the system. */
.yd-chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.yd-chat-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--brand-border); background: var(--brand-solid); color: var(--accent-foreground);
  font-family: var(--sans); font-size: 14px; font-weight: 500; cursor: pointer;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9); transition: background 200ms var(--ease); }
.yd-chat-btn:hover { background: color-mix(in oklab, var(--brand-solid) 85%, var(--ink)); }
.yd-chat-panel { width: min(360px, calc(100vw - 40px)); max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; border: 1px solid var(--hairline-strong); border-radius: 16px;
  background: var(--surface); box-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.75); overflow: hidden; }
.yd-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.yd-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
/* The assistant's turn is a <p>, so it carried the global paragraph margin — which pushed the
   text 14px below its own row and made the avatar look like it was floating above. */
.yd-chat-msg { font-size: 14px; line-height: 21px; max-width: 92%; margin: 0; animation: yd-msg-in 260ms var(--ease) both; }
/* Each turn is a row: avatar then message, reversed for the visitor's own turns so both
   columns read from their own edge inwards. */
.yd-chat-row { display: flex; align-items: flex-start; gap: 13px; }
.yd-chat-row[data-from="you"] { flex-direction: row-reverse; }
.yd-chat-row .yd-chat-msg { align-self: auto; }
.yd-chat-row .yd-chat-msg[data-pending] { margin: 9px 0 9px 6px; }
.yd-chat-av { flex: none; width: 27px; height: 27px; border-radius: 999px; display: grid; place-items: center;
  position: relative; overflow: hidden; }
/* Both avatars sit on the first line of their own message, which is 10px lower inside the
   visitor's padded bubble than in the assistant's plain text. */
/* The avatar is 27px against a 21px line box, so centring it on the first line means lifting it
   by half the difference — plus the visitor bubble's own top padding on that side. */
.yd-chat-row { align-items: flex-start; }
.yd-chat-row[data-from="kit"] .yd-chat-av { margin-top: -1px; }
.yd-chat-row[data-from="you"] .yd-chat-av { margin-top: 9px; }
/* The studio's own avatar is the mark in white on a dark tile — the green mark inside a green
   ring read as a second accent. Squircle rather than a circle: the mark is drawn square.
   No shadow: it sits inside a panel that already has one. */
.yd-chat-av[data-from="kit"] { border-radius: 9px; border: 1px solid var(--brand-border);
  background: color-mix(in oklab, var(--brand) 15%, transparent); box-shadow: none; }
.yd-chat-av[data-from="kit"] svg { color: #fff !important; }
/* The visitor's avatar comes from DiceBear's "shapes" set, seeded by the name given at the
   gate: stable for one person, different for the next, and abstract on purpose. The palette is
   the brand green, so it belongs to this page rather than to DiceBear's defaults. */
.yd-chat-av--live { border-radius: 9px; border: 1px solid var(--hairline-strong); background: var(--canvas); }
.yd-chat-av--live img { width: 100%; height: 100%; display: block; }
/* The visitor's avatar: see .yd-chat-av--live above. */
@keyframes yd-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* The pending turn is three dots drawn from the bubble itself plus its two pseudo-elements,
   so the waiting state has no text to be read out or measured. */
.yd-chat-msg[data-pending] { position: relative; width: 5px; height: 5px; padding: 0; margin: 8px 0 8px 10px;
  border-radius: 50%; background: var(--ink-muted); font-size: 0;
  animation: yd-msg-in 260ms var(--ease) both, yd-dot 1150ms var(--ease) 190ms infinite; }
.yd-chat-msg[data-pending]::before, .yd-chat-msg[data-pending]::after { content: ""; position: absolute; top: 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-muted); }
.yd-chat-msg[data-pending]::before { left: -10px; animation: yd-dot 1150ms var(--ease) 0ms infinite; }
.yd-chat-msg[data-pending]::after { left: 10px; animation: yd-dot 1150ms var(--ease) 380ms infinite; }
@keyframes yd-dot { 0%, 100% { opacity: 0.22; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
/* The attribute lands on the arriving reply only, so the animation starts when the rule
   starts applying — the reveal is CSS, with no timer in the render path to lose. */
.yd-chat-msg[data-reveal] { animation: yd-reply-in 420ms var(--ease) both; }
@keyframes yd-reply-in { from { opacity: 0; transform: translateY(4px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .yd-chat-msg, .yd-chat-msg[data-pending], .yd-chat-msg[data-reveal] { animation: none; }
  .yd-chat-msg[data-pending]::before, .yd-chat-msg[data-pending]::after { animation: none; }
}
.yd-chat-msg[data-from="you"] { align-self: flex-end; background: color-mix(in oklab, var(--ink) 8%, transparent);
  border-radius: 12px 12px 4px 12px; padding: 10px 12px; color: var(--ink); }
.yd-chat-msg[data-from="kit"] { color: var(--ink-muted); }
/* The studio's turn carries the mark alone, on the first line of its own text: a tile and a
   portrait side by side read as a messaging app, which this is not. */
.yd-chat-mark { flex: none; width: 14px; margin-top: 4px; color: var(--brand); display: flex; opacity: 0.9; }
/* Waiting, not typing: three muted dots that breathe on the mark's own centre line. The mark
   renders 21px tall, so a 22px box with a 4px lift puts them on that line. */
.yd-chat-wait { display: flex; align-items: center; gap: 6px; height: 22px; margin-top: 4px; }
.yd-chat-wait i { width: 5px; height: 5px; border-radius: 999px; background: var(--ink-muted); display: block;
  animation: yd-breathe 1600ms cubic-bezier(0.45, 0, 0.35, 1) infinite; }
.yd-chat-wait i:nth-child(2) { animation-delay: 200ms; }
.yd-chat-wait i:nth-child(3) { animation-delay: 400ms; }
@keyframes yd-breathe {
  0%, 100% { opacity: 0.22; transform: scale(0.86); }
  45% { opacity: 0.8; transform: scale(1); }
}
/* The gate enters as parts, each the way its own kind of element should: the portrait settles
   in scale, text and controls rise, the button lands last. */
/* 60ms per line, written out rather than computed from a per-child custom property: the
   index was not a design token and every extra --* under a structural selector reads as one.
   A ninth line keeps the base rule's 420ms, which is where the eighth already sits. */
.yd-chat-gate > * { animation: yd-rise 300ms var(--ease) both; animation-delay: 420ms; }
.yd-chat-gate > *:nth-child(1) { animation: yd-settle 340ms var(--ease) 60ms both; }
.yd-chat-gate > *:nth-child(2) { animation-delay: 120ms; }
.yd-chat-gate > *:nth-child(3) { animation-delay: 180ms; }
.yd-chat-gate > *:nth-child(4) { animation-delay: 240ms; }
.yd-chat-gate > *:nth-child(5) { animation-delay: 300ms; }
.yd-chat-gate > *:nth-child(6) { animation-delay: 360ms; }
.yd-chat-gate > *:nth-child(7) { animation-delay: 420ms; }
.yd-chat-gate > *:nth-child(8) { animation-delay: 480ms; }
@keyframes yd-rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes yd-settle { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
/* Passing the gate is the conversation's first moment, so its parts arrive in order. The
   attribute is set by accept only: a returning visitor was never gated and gets none of this. */
.yd-cchat[data-started="1"] .yd-chat-logouter { animation: yd-rise 300ms var(--ease) 40ms both; }
.yd-cchat[data-started="1"] .yd-cchat-starters { animation: yd-rise 300ms var(--ease) 110ms both; }
.yd-cchat[data-started="1"] .yd-chat-form { animation: yd-rise 300ms var(--ease) 175ms both; }
@media (prefers-reduced-motion: reduce) {
  .yd-chat-wait i, .yd-chat-gate > *,
  .yd-cchat[data-started="1"] .yd-chat-logouter,
  .yd-cchat[data-started="1"] .yd-cchat-starters,
  .yd-cchat[data-started="1"] .yd-chat-form { animation: none; }
}
/* The visitor's bubble stops short of the panel edge, so the two speakers keep their own
   columns. The 18px turn rhythm is set where the log's own flex rule lives, further down. */
.yd-cchat .yd-chat-msg[data-from="you"] { max-width: 84%; padding: 9px 12px; }
.yd-chat-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px; border-top: 1px solid var(--hairline); }
.yd-chat-form textarea { flex: 1; min-width: 0; height: 72px; resize: none; border: 1px solid var(--hairline-strong); border-radius: 10px;
  background: var(--canvas); color: var(--ink); padding: 10px 12px; font-family: var(--sans); font-size: 14px; line-height: 21px; outline: none; }
.yd-chat-form textarea:focus { border-color: var(--brand-border); }
.yd-chat-form input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--hairline-strong); border-radius: 10px;
  background: var(--canvas); color: var(--ink); padding: 0 12px; font-family: var(--sans); font-size: 14px; outline: none; }
.yd-chat-form input:focus { border-color: var(--brand-border); }
.yd-chat-send { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--brand-border); background: var(--brand-solid); color: var(--accent-foreground); cursor: pointer; }

/* --- Sub-page header ------------------------------------------------------- */
.yd-ph { border-bottom: 1px solid var(--hairline); padding-top: 56px; padding-bottom: 48px; }
/* Pages whose first section carries its own top rule ask the header to drop its own. */
.yd-ph--flush { border-bottom: 0; }
.yd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.yd-crumb a { color: var(--ink-muted); }
.yd-crumb a:hover { color: var(--brand); }


/* --- Service pages (Build / Modernize / Automate) --------------------------
   One structure, three angles. Everything here is layout that inline styles cannot
   express: the responsive columns, the hairline rhythm between rows, and the form
   controls' focus states.
   -------------------------------------------------------------------------- */
.yd-sp-meta { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 14px; overflow: clip; }
@media (min-width: 760px) { .yd-sp-meta { grid-template-columns: repeat(3, 1fr); } }
.yd-sp-meta > div { background: var(--surface); padding: 20px 22px 22px; }
.yd-sp-meta p { margin: 0; }
/* Two levels per cell: the answer, then the condition on it. One long sentence in a mono
   label's shadow read as a caption; this reads as a fact with its terms attached. */
.yd-sp-v { margin-top: 10px !important; font-size: 17px; line-height: 23px; letter-spacing: -0.01em; color: var(--ink); }
.yd-sp-s { margin-top: 8px !important; font-size: 13px; line-height: 19px; color: var(--ink-muted); text-wrap: pretty; }

/* Two columns that say the same thing from opposite sides. They are separate boxes
   rather than one list with ticks and crosses: a rejected fit is not a failure state,
   it is the other column. */
.yd-fit { display: grid; gap: 16px; }
@media (min-width: 860px) { .yd-fit { grid-template-columns: 1fr 1fr; } }
.yd-fit-col { border: 1px solid var(--hairline); border-radius: 18px; padding: 24px; background: var(--surface); }
.yd-fit-col--no { background: color-mix(in oklab, var(--surface) 78%, var(--canvas)); }

/* The qualification section on Build: no cards. Two identical boxes with identical dashes gave
   both answers the same authority and left the reader to do the sorting; the columns are told
   apart by mark and by ink, with one hairline between them and one per item so a two-line entry
   cannot read as two. Its own class — .yd-fit is a shared two-column utility. */
/* The dividers are drawn, not bordered: a token-coloured box masked by a stroked
   sine. Masking rather than colouring the SVG keeps the theme token in charge —
   a data-URI stroke colour would have to be a literal and would break in light
   theme. --hairline-strong, not --hairline: a curve reads fainter than a
   straight line of the same alpha once antialiased. */
.yd-fitq { display: grid; gap: 34px; }
@media (min-width: 900px) { .yd-fitq { grid-template-columns: 1fr 9px 1fr; gap: 0 48px; } }
.yd-fit-rule { background: var(--hairline-strong);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='18'%3E%3Cpath d='M4.5 0 Q0.6 4.5 4.5 9 T4.5 18' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='18'%3E%3Cpath d='M4.5 0 Q0.6 4.5 4.5 9 T4.5 18' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-size: 9px 18px; mask-size: 9px 18px;
  -webkit-mask-repeat: repeat-y; mask-repeat: repeat-y; }
/* Padding, not a rule, is what groups these now: the gap between two items has to
   clear the 23px line-height inside one, or a three-line entry reads as two
   items. 16px each side gives a 32px boundary against 23px of internal leading. */
.yd-fit-li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 0 12px; padding: 16px 0; }
/* No rule between items: the mark column already separates them, and eight faint
   lines competed with the one that matters — the wave between the columns. */
.yd-fit-li p { margin: 0; font-size: 15px; line-height: 23px; text-wrap: pretty; }
.yd-fit-li--yes p { color: var(--ink); }
.yd-fit-li--no p { color: var(--ink-muted); }
.yd-fit-m { display: flex; align-items: center; justify-content: center; height: 23px; }

/* Bulleted lists elsewhere on the site (engagement models, FAQ) keep the dash. */
.yd-ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.yd-ul li { position: relative; padding-left: 18px; font-size: 14px; line-height: 20px; color: var(--ink-muted); text-wrap: pretty; }
.yd-ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 1px; background: var(--ink-muted); }
.yd-ul--on li::before { background: var(--brand); }

/* Steps: a 56px number column and a hairline between rows. No connecting rail — that
   belongs to the home page's Process, and repeating it here would claim the two are
   the same diagram. */
.yd-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.yd-steps li { display: grid; gap: 6px 20px; padding: 22px 0; border-top: 1px solid var(--hairline); }
.yd-steps li:last-child { border-bottom: 1px solid var(--hairline); }
@media (min-width: 760px) { .yd-steps li { grid-template-columns: 56px 1fr; } .yd-steps li > :first-child { grid-row: span 3; } }

/* Terms without cards: the models reuse the deliverables' hairline rows so they read as the same
   kind of list, and the instalments are not repeated here at all — they are drawn on the plan's
   calendar lane, which is the only place they can also show that they miss the milestones. */
.yd-terms { display: grid; gap: 34px; }
@media (min-width: 860px) { .yd-terms { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 0 64px; } }
.yd-terms p { margin: 0; }
.yd-mod { display: grid; grid-template-columns: minmax(0, 180px) 1fr; gap: 0 24px; padding: 13px 0; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.yd-mod-n { font-size: 15px; line-height: 22px; color: var(--ink); }
.yd-mod-d { font-size: 14px; line-height: 21px; color: var(--ink-muted); text-wrap: pretty; }

.yd-defs { display: grid; gap: 16px; }
@media (min-width: 760px) { .yd-defs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .yd-defs { grid-template-columns: repeat(3, 1fr); } }
.yd-def { border: 1px solid var(--hairline); border-radius: 16px; padding: 22px; background: var(--surface); }

/* FAQ on <details>: it opens without script, keyboard included, and it prints open. */
.yd-faq { border-top: 1px solid var(--hairline); }
.yd-faq details { border-bottom: 1px solid var(--hairline); }
.yd-faq summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: baseline; justify-content: space-between; padding: 20px 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.yd-faq summary::-webkit-details-marker { display: none; }
.yd-faq summary::after { content: "+"; font-family: var(--mono); font-size: 16px; color: var(--ink-muted); }
.yd-faq details[open] summary::after { content: "–"; color: var(--brand); }
.yd-faq details > p { margin: 0 0 20px; max-width: 72ch; }

/* Form: one column on phones, name/email side by side above 640. The controls carry
   their own focus ring rather than the global one — they are already outlined, so a
   second outline outside the border read as a doubled box. */
.yd-form { display: grid; gap: 14px; }
@media (min-width: 640px) { .yd-form { grid-template-columns: 1fr 1fr; } .yd-form .yd-field--wide { grid-column: 1 / -1; } }
.yd-field { display: flex; flex-direction: column; gap: 7px; }
.yd-field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.yd-field input, .yd-field textarea, .yd-field select {
  width: 100%; border: 1px solid var(--hairline-strong); border-radius: 10px; background: var(--canvas); color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 20px; padding: 12px 14px; outline: none;
  transition: border-color 200ms var(--ease); }
.yd-field textarea { min-height: 132px; resize: vertical; }
.yd-field input:focus, .yd-field textarea:focus, .yd-field select:focus { border-color: var(--brand-border); }
.yd-field input::placeholder, .yd-field textarea::placeholder { color: color-mix(in oklab, var(--ink-muted) 70%, transparent); }


/* --- Inline intake chat (service pages) -----------------------------------
   The fixed assistant's panel styles are reused for the log and the composer; only the
   shell differs — this one sits in the page as the contact block, so it has no shadow,
   no viewport cap and a fixed log height that does not move as the conversation grows.
   -------------------------------------------------------------------------- */
/* The panel is a fixed 560px and the log takes whatever is left, so neither a longer
   conversation nor the starters disappearing after the first message changes the height of
   the section around it. */
.yd-cchat { display: flex; flex-direction: column; height: 604px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface); overflow: clip; }
.yd-cchat .yd-chat-log { flex: 1 1 auto; height: auto; min-height: 0; scroll-behavior: smooth; }
.yd-cchat .yd-chat-head, .yd-cchat .yd-chat-form, .yd-cchat-starters, .yd-cchat-note, .yd-chat-closed { flex: none; }
.yd-cchat-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.yd-cchat-starter { border: 1px solid var(--hairline-strong); border-radius: 999px; background: transparent; color: var(--ink-muted);
  font-family: inherit; font-size: 12px; line-height: 16px; padding: 7px 12px; cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease); }
.yd-cchat-starter:hover { border-color: var(--brand-border); color: var(--ink); }
/* Visually hidden, still read: the contact section is a panel with its own heading inside,
   but the section still needs an accessible name. */
.yd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.yd-cchat-note { padding: 0 16px 14px; }
/* Full-bleed mount: the panel runs the width of the viewport, so the side borders and the
   radius have nothing to describe. Its contents keep the page's own measure and gutters —
   the surface is full width, the transcript is not: a 14px reply set across 1280px is 185
   characters to a line. */
.yd-cchat-bleed .yd-cchat { border-radius: 0; border-left: none; border-right: none; }
.yd-cchat-bleed .yd-chat-head, .yd-cchat-bleed .yd-chat-log, .yd-cchat-bleed .yd-chat-form,
.yd-cchat-bleed .yd-cchat-starters, .yd-cchat-bleed .yd-cchat-note, .yd-cchat-bleed .yd-chat-closed {
  padding-left: max(40px, (100% - 1200px) / 2); padding-right: max(40px, (100% - 1200px) / 2); }
/* Boxed mount, without the internal rules: the panel's own border already says where the
   conversation is, so the head and composer are separated by space instead of hairlines.
   500px, not a ch value: 1ch in Plus Jakarta Sans is 10.25px against a ~6.7px average
   glyph, so 68ch bought 104 characters to a line. */
.yd-cchat-plain .yd-chat-head { padding: 26px 24px 22px; }
.yd-cchat .yd-chat-head { border-bottom: none; position: relative; }
.yd-cchat .yd-chat-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(to right, color-mix(in oklab, #fff 9%, transparent), transparent); }
.yd-cchat-plain .yd-chat-log { padding: 24px; }
.yd-cchat-plain .yd-chat-form { padding: 6px 24px 16px; }
.yd-cchat-plain .yd-cchat-starters, .yd-cchat-plain .yd-cchat-note, .yd-cchat-plain .yd-chat-closed { padding-left: 24px; padding-right: 24px; }
/* The log's top and bottom edges fade instead of cutting, so a scrolled transcript reads as
   continuing rather than as a clipped box. The fade sits inside the padding, so no message is
   ever half-visible at rest. */
/* The fades are siblings of the scrolling element, not a mask on it: a mask is applied to the
   scrollbar as well, which is what made the thumb read white at the edges and dark over the
   content. They stop short of the scrollbar gutter for the same reason. */
/* Scrolling belongs to the wrapper, which the plugin owns; the log inside it is a plain
   column that React keeps filling. */
.yd-chat-logouter { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.yd-chat-logwrap { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.yd-cchat .yd-chat-log { display: flex; flex-direction: column; gap: 18px; height: auto; flex: none; overflow: visible; }
.yd-chat-fade { position: absolute; left: 0; right: 10px; height: 26px; pointer-events: none; z-index: 2; }
/* The top fade only exists to say the transcript continues above. When the log is at the top —
   or does not scroll at all — there is nothing above, so it would just read as a shadow under
   the divider. The class comes off in both cases. */
.yd-chat-fade[data-edge="top"] { top: 0; opacity: 0; transition: opacity 260ms var(--ease); background: linear-gradient(to bottom, var(--surface), color-mix(in oklab, var(--surface) 0%, transparent)); } }
.yd-chat-fade[data-edge="top"][data-on] { opacity: 1; }
.yd-chat-fade[data-edge="bottom"] { bottom: 0; background: linear-gradient(to top, var(--surface), color-mix(in oklab, var(--surface) 0%, transparent)); }
/* Chrome ignores the ::-webkit-scrollbar pseudo-elements as soon as scrollbar-color is set,
   and then repaints the thumb darker on its own hover — which is where the "light, then dark"
   came from. So the webkit rules own the colour here and every state is pinned to the same
   one; scrollbar-color is scoped to Firefox, which has no pseudo-elements to use instead. */
/* Hover-only native scrollbar on the wrapper. Chrome ignores the ::-webkit-scrollbar
   pseudo-elements as soon as scrollbar-color is set, and then repaints the thumb on its own
   hover — which is where the "light, then dark" came from. So the webkit rules own the colour
   and every state is pinned to one value; scrollbar-color is scoped to Firefox. */
.yd-chat-logwrap, .yd-chat-form textarea { scrollbar-gutter: stable; }
.yd-chat-logwrap::-webkit-scrollbar, .yd-chat-form textarea::-webkit-scrollbar { width: 10px; }
.yd-chat-logwrap::-webkit-scrollbar-track, .yd-chat-form textarea::-webkit-scrollbar-track { background: transparent; }
.yd-chat-logwrap::-webkit-scrollbar-thumb, .yd-chat-form textarea::-webkit-scrollbar-thumb {
  background-color: transparent; border-radius: 999px; border: 3px solid transparent; background-clip: content-box;
  transition: background-color 420ms cubic-bezier(0.33, 0, 0.2, 1); }
.yd-chat-logouter:hover .yd-chat-logwrap::-webkit-scrollbar-thumb,
.yd-chat-logwrap:focus-within::-webkit-scrollbar-thumb,
.yd-chat-logwrap::-webkit-scrollbar-thumb:hover,
.yd-chat-logwrap::-webkit-scrollbar-thumb:active,
.yd-chat-form textarea:hover::-webkit-scrollbar-thumb,
.yd-chat-form textarea:focus::-webkit-scrollbar-thumb,
.yd-chat-form textarea::-webkit-scrollbar-thumb:hover,
.yd-chat-form textarea::-webkit-scrollbar-thumb:active {
  background-color: color-mix(in oklab, var(--surface) 86%, #000); background-clip: content-box; }
@supports (scrollbar-color: auto) and (not selector(::-webkit-scrollbar)) {
  .yd-chat-logwrap, .yd-chat-form textarea { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  .yd-chat-logouter:hover .yd-chat-logwrap, .yd-chat-logwrap:focus-within,
  .yd-chat-form textarea:hover, .yd-chat-form textarea:focus {
    scrollbar-color: color-mix(in oklab, var(--surface) 86%, #000) transparent; }
}
/* Shimmer rather than a blinking label: the pending dots already say something is happening,
   so this only has to say what. */
.yd-chat-thinking { margin-left: auto; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  background: linear-gradient(100deg, var(--ink-subtle) 24%, var(--ink) 46%, var(--ink-subtle) 68%);
  background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: yd-shimmer 1700ms linear infinite; }
@keyframes yd-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.yd-chat-send:disabled { opacity: 0.35; cursor: not-allowed; }
/* Only appears once the transcript has been scrolled away from its end. */
.yd-chat-tobottom { position: absolute; bottom: 12px; left: 50%; translate: -50% 0; z-index: 3; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--canvas); color: var(--ink-muted);
  cursor: pointer; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.8);
  animation: yd-msg-in 200ms var(--ease) both; transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.yd-chat-tobottom:hover { color: var(--ink); border-color: var(--brand-border); }
.yd-cchat-plain .yd-chat-form { border-top: none; padding-top: 6px; }
.yd-cchat-plain .yd-chat-msg { max-width: 500px; }
@media (max-width: 640px) {
  .yd-cchat-bleed .yd-chat-head, .yd-cchat-bleed .yd-chat-log, .yd-cchat-bleed .yd-chat-form,
  .yd-cchat-bleed .yd-cchat-starters, .yd-cchat-bleed .yd-cchat-note, .yd-cchat-bleed .yd-chat-closed { padding-left: 20px; padding-right: 20px; }
}
/* The consent gate's only button. Disabled until the box is ticked, so the state of the
   checkbox is visible in the thing you are about to press. */
.yd-chat-gate-go { font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--brand-border); background: var(--brand-solid); color: var(--accent-foreground); cursor: pointer;
  transition: opacity 200ms var(--ease); }
.yd-chat-gate-go:disabled { opacity: 0.4; cursor: not-allowed; }
.yd-chat-gate-in { width: 100%; height: 38px; border: 1px solid var(--hairline-strong); border-radius: 10px;
  background: var(--canvas); color: var(--ink); padding: 0 12px; font-family: var(--sans); font-size: 14px; outline: none; }
.yd-chat-gate-in:focus { border-color: var(--brand-border); }


/* --- Service page dominant objects ----------------------------------------
   One per service, and deliberately three different objects: Build gets a time table,
   Modernize a priority grid, Automate a flow. The three buyers arrive with different
   fears, and the shape of the answer is part of the answer.
   -------------------------------------------------------------------------- */

/* Build — the ledger. Three columns: when, what happens, what exists at the end. The
   third column is the point of the whole object, so it is the one in mono and in ink;
   the middle column is prose and stays muted. Rows are hairline-separated rather than
   carded — a card per week would read as seven offers. */
.yd-led { display: grid; border: 1px solid var(--hairline); border-radius: 16px; overflow: clip; background: var(--hairline); gap: 1px; }
.yd-led-r { background: var(--surface); display: grid; gap: 4px; padding: 18px 20px; }
.yd-led-r--h { background: color-mix(in oklab, var(--surface) 76%, var(--canvas)); padding: 12px 20px; }
/* 136px, not 92: the week cell also carries a chip, and "Priced separately" broke onto two
   lines inside a 92px column — which read as a layout fault rather than as a label. */
@media (min-width: 860px) { .yd-led-r { grid-template-columns: 136px 1fr 300px; gap: 24px; align-items: baseline; } }
.yd-led-w { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--brand); }
.yd-led-d { font-size: 14px; line-height: 20px; color: var(--ink-muted); text-wrap: pretty; }
.yd-led-o { font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 450; text-wrap: pretty; }

/* Modernize — the sheet and the branches, side by side above 1020px and stacked below it. The
   one rule the fortnight instrument cannot express inline: a media query has no inline form, and
   the figure it replaced stacked at this width. */
.yd-mzfig { display: grid; gap: 34px; align-items: start; }
@media (min-width: 1020px) { .yd-mzfig { grid-template-columns: minmax(0, 580px) minmax(360px, 1fr); gap: 44px; } }
/* The trunk crosses the column gap to reach the branch panel, so it only exists while there are two
   columns to cross; stacked, the three ways forward simply follow the manifest. */
.yd-mztrunk { display: none; }
@media (min-width: 1020px) { .yd-mztrunk { display: block; } }

/* Modernize — the readiness questions. Deliberately not the Positions component Build uses:
   two service pages running the same −/+ rows under the same heading read as one template with
   the nouns swapped. This is a different object doing a different job — the reader answers it
   themselves, about their own system, without buying anything. Set as a form rather than as
   prose: numbered, ruled, one question per row, nothing beside it. */
.yd-q { border-top: 1px solid var(--hairline); }
.yd-q-r { display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; padding: 22px 0; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.yd-q-r p { margin: 0; }
.yd-q-n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--brand); }
.yd-q-t { font-size: 19px; line-height: 28px; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; max-width: 56ch; }

/* Modernize — the evidence rows. Cases, not case studies: what the state was, what changed,
   and what the record does and does not measure. Rows rather than cards because the three run
   to different lengths and a card grid would have forced them even, which is the shape of a
   brochure. The limit line is mono and last, so the thing a reader would ask next is already
   answered before they ask it. */
.yd-ev { border-top: 1px solid var(--hairline); }
.yd-ev-r { display: grid; gap: 14px 44px; padding: 30px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 900px) { .yd-ev-r { grid-template-columns: 230px 1fr; } }
.yd-ev-r p { margin: 0; }
.yd-ev-m { margin-top: 8px !important; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.yd-ev-t { font-size: 17px; line-height: 25px; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.yd-ev-b { display: grid; gap: 10px; }
.yd-ev-l { display: grid; grid-template-columns: 26px 1fr; gap: 0 14px; margin-top: 6px; }
.yd-ev-l span { font-family: var(--mono); font-size: 12px; line-height: 19px; color: var(--ink-muted); max-width: 74ch; }
.yd-ev-l span:first-child { color: color-mix(in oklab, var(--ink-muted) 70%, transparent); text-align: center; }

/* The ratchet's evidence, set as a subtraction rather than as three statistics in a row. The
   argument IS a subtraction — findings on the change, minus findings on what it branched from,
   equals what the author is asked to answer for — so the figures are stacked over a rule with
   the result under it, the way a ledger line reads. A stat row would have shown the same three
   numbers and hidden the operation between them. */
.yd-sub { display: grid; max-width: 470px; }
.yd-sub-r { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; padding: 11px 0; }
.yd-sub-r--t { border-top: 1px solid color-mix(in oklab, var(--ink) 34%, transparent); padding-top: 14px; }
.yd-sub p { margin: 0; }
.yd-sub-l { font-size: 14px; line-height: 21px; color: var(--ink-muted); text-wrap: pretty; }
.yd-sub-v { font-family: var(--mono); font-size: 20px; line-height: 21px; font-variant-numeric: tabular-nums; color: var(--ink); }
.yd-sub-r--t .yd-sub-l { color: var(--ink); }
.yd-sub-r--t .yd-sub-v { font-size: 27px; color: var(--brand); }


/* Modernize — one audit's findings and what happens to them. Three objects stood here before
   this one: a five-gate specification, a seven-row example page of the document, and a funnel
   before that. All three said the same thing at different lengths — most of what an audit sees
   never becomes work — and two of them said it with quantities nobody had measured.
   This row asserts no quantity. Forty-four marks, interleaved rather than grouped, because
   grouping them by outcome would turn the row into a bar chart of proportions and put the
   invented numbers straight back. Mixed, it reads as a set of findings each with an outcome,
   which is exactly what it is, and the eye takes the point without counting anything. */
.yd-findrow { display: flex; gap: 4px; }
.yd-find { flex: 1; height: 52px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 9%, transparent); }
.yd-find--do { background: var(--brand); }
/* Named as not worth doing: outlined, not filled. It is a deliverable, so it is not simply
   dimmed out with the ones that failed a gate — it is marked, and marked differently. */
.yd-find--never { background: transparent; box-shadow: inset 0 0 0 1px var(--brand-border); }
.yd-findkey { display: grid; gap: 10px 30px; margin-top: 18px; }
@media (min-width: 900px) { .yd-findkey { grid-template-columns: repeat(3, 1fr); } }
.yd-findkey p { margin: 0; display: grid; grid-template-columns: 10px 1fr; gap: 0 12px; align-items: start;
  font-size: 13px; line-height: 19px; color: var(--ink-muted); text-wrap: pretty; }
.yd-findkey .yd-find { flex: none; width: 10px; height: 19px; border-radius: 2px; }

/* The four questions that do the cutting. Deliberately not a table: a table would invite the
   reader to look for a column of answers, and the answers are the point of the engagement. */
.yd-cuts { display: grid; gap: 26px 40px; }
@media (min-width: 780px) { .yd-cuts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .yd-cuts { grid-template-columns: repeat(4, 1fr); gap: 0 34px; } }
.yd-cuts > div { border-top: 1px solid var(--hairline); padding-top: 16px; }
.yd-cuts p { margin: 0; }
.yd-cuts-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--brand); font-variant-numeric: tabular-nums; }
.yd-cuts-t { margin-top: 10px !important; font-size: 16px; line-height: 23px; color: var(--ink); text-wrap: pretty; }
.yd-cuts-d { margin-top: 9px !important; font-size: 13px; line-height: 20px; color: var(--ink-muted); text-wrap: pretty; }

/* Automate — the cut line. Three lanes, and the human lane is the one that carries the
   accent: on this page the human checkpoint is the product, not a caveat. The lanes are
   equal width on purpose — a narrow human column would say the opposite of the copy. */
/* Same reasoning as the proof strip: three lanes need roughly 1100px of container, not a
   900px viewport. Equal fractions once they fit — a narrow human lane would say the
   opposite of the copy. */
.yd-cut { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
@media (min-width: 1120px) { .yd-cut { grid-template-columns: repeat(3, 1fr); } }
.yd-lane { border: 1px solid var(--hairline); border-radius: 16px; padding: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.yd-lane--human { border-color: var(--brand-border); background: color-mix(in oklab, var(--brand) 5%, var(--surface)); }
.yd-lane-step { font-size: 14px; line-height: 20px; color: var(--ink); border-top: 1px solid var(--hairline); padding-top: 10px; text-wrap: pretty; }
.yd-lane--human .yd-lane-step { border-color: color-mix(in oklab, var(--brand) 24%, transparent); }

/* Proof strip — one anonymous case, one recommendation line, one article. Three unequal
   kinds of evidence side by side, because no single one of them is strong enough alone. */
/* Intrinsic columns: at a 900px viewport the container is 829px, so three fractional cells
   resolved to 234px each — a 23-character measure. The count now follows the cell width, and
   the case card only takes its extra weight where three real columns fit. */
.yd-proof { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 1180px) { .yd-proof { grid-template-columns: 1.4fr 1fr 1fr; } }
.yd-proof-c { border: 1px solid var(--hairline); border-radius: 16px; padding: 22px; background: var(--surface); display: flex; flex-direction: column; }
.yd-ex { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }


/* --- Engagement plan (EngagementPlan.dc.html) -----------------------------
   One component, two controls: how long the engagement is, and which drawing of it you are
   looking at. Three views because they answer different questions and different rooms want
   different answers — the board for "when is that happening", the spine for a deck, the
   ledger for reading on a phone. Shared: the month scale, the milestone cadence derived from
   the numbers rather than asserted, and the direction sprint sitting outside the line.
   -------------------------------------------------------------------------- */
.yd-ep--board, .yd-ep--spine, .yd-ep--ledger,
.yd-ep { border: 1px solid var(--hairline); border-radius: 22px; background: var(--surface); overflow: clip;
  box-shadow: 0 40px 80px -60px rgba(0, 0, 0, 0.9); }
.yd-ep-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between;
  padding: 26px 34px; border-bottom: 1px solid var(--hairline); background: color-mix(in oklab, var(--surface) 72%, var(--canvas)); }
.yd-ep-stats { display: flex; align-items: stretch; }
.yd-ep-stat { padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--hairline); }
.yd-ep-stat p { margin: 0; }
.yd-ep-fig { font-family: var(--mono); font-size: 26px; line-height: 30px; letter-spacing: -0.01em; color: var(--ink); }
.yd-ep-fig--on { color: var(--brand); }
.yd-ep-figl { margin-top: 8px !important; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted); }
.yd-ep-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.yd-seg { display: flex; gap: 3px; border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 3px; }
.yd-seg button { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; padding: 7px 13px; border: none;
  border-radius: 999px; background: transparent; color: var(--ink-muted); cursor: pointer;
  transition: color 200ms var(--ease), background 200ms var(--ease); }
.yd-seg button:hover { color: var(--ink); }
.yd-seg button[data-on="1"] { background: color-mix(in oklab, var(--brand) 15%, var(--surface)); color: var(--brand); }
/* A model that is not offered at this length stays visible and inert: hiding it would leave the
   reader wondering whether it exists, which is the question the disabled state answers. */
.yd-seg button[data-off="true"] { color: var(--ink-muted); opacity: 0.4; cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }
.yd-seg button[data-off="true"]:hover { color: var(--ink-muted); }
.yd-seg svg { flex: none; }
.yd-seg-l { display: flex; flex-direction: column; gap: 7px; }
.yd-seg-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
/* The legend is a row of keys with equal air, and each key's swatch is the exact object it
   names — a legend drawn from different parts than the drawing is worse than none. */
.yd-ep-foot { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; padding: 22px 34px;
  border-top: 1px solid var(--hairline); background: color-mix(in oklab, var(--surface) 86%, var(--canvas)); }
.yd-ep-foot p { margin: 0; }
.yd-ep-note { display: flex; flex-wrap: wrap; gap: 20px; align-items: baseline; justify-content: space-between; padding: 26px 34px 6px; }
.yd-ep-note p { margin: 0; }
/* Right-aligned as the right-hand end of a two-part row. Declared here rather than inline, so
   the narrow-width rule that turns it back to left wins by ordinary cascade order. */
.yd-ep-note > div { text-align: right; }

/* The selected model, stated once under the plan. A caption, not a section: the model decides how
   you pay and nothing else on this surface, so it sits quietly under the payment lane at caption
   size rather than claiming a row of its own. */
.yd-ep-model { display: grid; gap: 5px; margin: 0 34px 22px; padding: 22px 0; border-top: 1px dashed var(--hairline); }
/* The payment lane's 96px track centres its cells, so it already breathes equally above and below.
   The drawing's own bottom padding was adding a second helping of that air below the cells only,
   which is what made the caption look pushed away. Board drops it; the caption then carries its own
   symmetric padding and nothing else. */
.yd-ep--models .yd-epb { padding-bottom: 0; }
.yd-ep--models .yd-epl { padding-bottom: 10px; }
/* The ledger closes its last row with a rule of its own, so the caption's dashed line would be the
   second divider in 20px. */
.yd-ep--ledger .yd-ep-model { border-top: none; padding-top: 4px; }
.yd-ep--models .yd-eps { padding-bottom: 12px; }
.yd-ep--models .yd-ep-paybox { margin-bottom: 10px; }
@media (min-width: 760px) { .yd-ep-model { grid-template-columns: 132px 1fr; gap: 0 26px; align-items: baseline; } }
.yd-ep-model p { margin: 0; }
.yd-ep-model .yd-label { font-size: 10px; color: color-mix(in oklab, var(--brand) 78%, var(--ink-muted)) !important; }
.yd-ep-model .yd-body { font-size: 12.5px; line-height: 19px; color: var(--ink-muted); max-width: 88ch; }

/* Board */
.yd-epb { display: grid; padding: 4px 34px 34px; }
.yd-epb-h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted);
  padding: 22px 0 14px; text-align: center; }
.yd-epb-h--rail { text-align: left; }
.yd-epb-rail { padding: 18px 34px 18px 0; align-self: center; }
/* The payment rail carries the rule that closes the lane, so it needs air under the line rather
   than the tracks' symmetrical padding. */
.yd-epb-rail--pay { padding: 26px 34px 26px 0; }
.yd-epb-rail p { margin: 0; }
.yd-epb-tn { font-size: 15px; line-height: 21px; color: var(--ink); font-weight: 450; }
.yd-epb-ta { margin-top: 7px !important; font-size: 13px; line-height: 19px; color: var(--ink-muted); text-wrap: pretty; }
.yd-epb-line { border-left: 1px solid color-mix(in oklab, var(--hairline) 60%, transparent); }

/* Board: the payment lane is an ordinary track row, cut off by a brighter rule that crosses the
   rail as well — the way a total is ruled off in a ledger. Its cells are the same object as the
   phase bars, tinted plain, so the money reads as another row of the drawing rather than as a
   bracket bolted under it. */
.yd-epb-pay, .yd-eps-payseg { position: relative; z-index: 2; align-self: center; margin-right: 6px; min-width: 0; height: 42px;
  display: flex; align-items: center; gap: 10px; padding: 0 13px; border-radius: 9px;
  background: linear-gradient(color-mix(in oklab, var(--surface) 52%, var(--canvas)), color-mix(in oklab, var(--surface) 66%, var(--canvas)));
  border: 1px solid var(--hairline-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.yd-epb-pay p, .yd-eps-payseg p { margin: 0; }
.yd-epb-payf { font-family: var(--mono); font-size: 12px; color: var(--brand); }
.yd-epb-payw { font-size: 11px; line-height: 15px; color: var(--ink-muted); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A cell narrower than an eighth of the plan cannot hold a figure and a label on one line, so it
   keeps the figure and the wording stays in the rail note. */
.yd-epb-pay--tight { padding: 0 8px; justify-content: center; }
.yd-epb-pay--tight .yd-epb-payw { display: none; }

/* Payment in its own box under the plan, on the same calendar as the drawing above: each segment
   spans the months its instalment covers, and the segments start on month lines while milestones
   sit mid-cell — the picture of the rule the terms state, that payment follows the calendar. */
.yd-ep-paybox { margin: 0 34px 14px; padding: 18px 20px 20px; border: 1px solid var(--hairline); border-radius: 14px;
  background: color-mix(in oklab, var(--surface) 70%, var(--canvas)); }
.yd-ep-paybox p { margin: 0; }
.yd-ep-paybox-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.yd-ep-payn { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-muted); }
.yd-ep-payb { display: flex; gap: 10px; margin-top: 16px; }
.yd-ep-payseg { min-width: 0; padding: 9px 0 0 11px; border-top: 1px solid var(--hairline-strong); border-left: 2px solid var(--brand); }
.yd-ep-payf { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.yd-ep-payw { margin-top: 3px !important; font-size: 11px; line-height: 15px; color: var(--ink-muted); }
.yd-ep-payfoot { margin-top: 16px !important; font-size: 12px; line-height: 18px; color: var(--ink-muted); max-width: 78ch; text-wrap: pretty; }
.yd-epb-bar { position: relative; z-index: 2; height: 38px; align-self: center; border-radius: 9px; display: flex; align-items: center;
  margin-right: 6px; min-width: 0;
  background: linear-gradient(color-mix(in oklab, var(--brand) 17%, var(--surface)), color-mix(in oklab, var(--brand) 11%, var(--surface)));
  border: 1px solid color-mix(in oklab, var(--brand) 26%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--brand) 18%, transparent); }
.yd-epb-bar--plain { background: linear-gradient(color-mix(in oklab, var(--surface) 52%, var(--canvas)), color-mix(in oklab, var(--surface) 66%, var(--canvas)));
  border-color: var(--hairline-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.yd-epb-bar--ghost { background: transparent; border-style: dashed; border-color: var(--hairline-strong); box-shadow: none; }
.yd-epb-code { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink); padding: 0 13px; opacity: 0.85; }
/* Static labels, restored to their chip: the name lives outside the bar so a one-month bar carries
   a four-word phase name without truncation. Centred on the row's top rule rather than floating in
   the cell — the bar is centred in a 96px row, so half that gap less half the chip's height puts
   the chip astride the line. */
.yd-ep-tip { position: absolute; bottom: calc(100% + 15px); left: 50%; translate: -50% 0; display: flex; align-items: baseline; gap: 8px;
  white-space: nowrap; padding: 6px 11px; border-radius: 9px; background: color-mix(in oklab, var(--surface) 40%, var(--canvas));
  border: 1px solid var(--hairline-strong); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.85); }
.yd-ep-tip--r { left: auto; right: 0; translate: 0 0; }
.yd-ep-tip--l { left: 0; translate: 0 0; }
.yd-ep-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -3px; width: 7px; height: 7px; rotate: 45deg;
  margin-top: -4px; background: color-mix(in oklab, var(--surface) 40%, var(--canvas));
  border-right: 1px solid var(--hairline-strong); border-bottom: 1px solid var(--hairline-strong); }
.yd-ep-tip--r::after { left: auto; margin-left: 0; right: 16px; }
.yd-ep-tip--l::after { left: 16px; margin-left: 0; }
.yd-ep-tip-n { font-size: 12.5px; line-height: 16px; color: var(--ink); }
.yd-ep-tip-r { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.yd-ep-dia { width: 12px; height: 12px; rotate: 45deg; border-radius: 2px; background: var(--brand);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--brand) 12%, transparent); }
/* Milestone names on demand: eight bubbles cannot coexist on one lane, and a name that is
   only wanted when asked for is the definition of a tooltip. */
.yd-ep-ms { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; align-self: center; z-index: 3; }
.yd-ep-ms p { margin: 0; }
.yd-ep-msid { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--brand); }
.yd-ep-mst { position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 0; white-space: nowrap;
  padding: 7px 12px; border-radius: 9px; background: color-mix(in oklab, var(--surface) 34%, var(--canvas));
  border: 1px solid var(--brand-border); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.9);
  font-size: 12.5px; line-height: 16px; color: var(--ink); opacity: 0; pointer-events: none;
  transition: opacity 160ms var(--ease), translate 160ms var(--ease); z-index: 5; }
.yd-ep-ms:hover .yd-ep-mst, .yd-ep-ms:focus-visible .yd-ep-mst { opacity: 1; translate: -50% -3px; }

/* Spine */
.yd-eps { padding: 40px 34px 36px; }
.yd-eps-grid { display: grid; grid-template-rows: auto 34px 1px 34px auto; column-gap: 32px; }
/* grid-auto-rows: 0 with align-content: center — the box is 1px but its implicit row was
   content-sized to the tallest child (13px) and laid out from the top edge, so align-items
   centred the nodes inside that row rather than on the line, leaving every diamond and tick
   hanging 6px below the spine. A zero-height track centred in the box makes centred children
   straddle the rule. */
.yd-eps-axis { height: 1px; background: var(--hairline-strong); display: grid; grid-auto-rows: 0; align-content: center; align-items: center; }
.yd-eps-tick { width: 1px; height: 9px; background: var(--hairline-strong); justify-self: center; }
/* Spine: payment is its own lane under the month scale, named and ruled off. As bubbles on the
   axis it was a mark among marks — nothing said it was money, and it collided with the callout
   hanging below the line. */
.yd-eps-paylane { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--hairline-strong); }
.yd-eps-paylane p { margin: 0; }
.yd-eps-paylane-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.yd-eps-payrow { display: grid; margin-top: 12px; }
.yd-eps-node { width: 13px; height: 13px; rotate: 45deg; border-radius: 2px; background: var(--brand);
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 10px color-mix(in oklab, var(--brand) 10%, transparent);
  justify-self: center; align-self: center; }
.yd-eps-stem { width: 1px; background: var(--hairline-strong); justify-self: center; }
.yd-eps-card { border: 1px solid var(--hairline); border-radius: 16px; padding: 22px 22px 20px; background: var(--surface);
  box-shadow: 0 24px 48px -34px rgba(0, 0, 0, 0.8); }
.yd-eps-card p { margin: 0; }
.yd-eps-card .yd-eps-n { margin-top: 12px !important; font-size: 18px; line-height: 25px; color: var(--ink); letter-spacing: -0.01em; }
.yd-eps-card .yd-eps-a { margin-top: 10px !important; font-size: 13px; line-height: 19px; color: var(--ink-muted); text-wrap: pretty; }
.yd-eps-scale { display: grid; margin-top: 22px; }
.yd-eps-scale p { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); text-align: center; }

/* Ledger */
.yd-epl { padding: 4px 34px 34px; }
.yd-epl-row { display: grid; gap: 28px 48px; padding: 40px 0; border-top: 1px solid var(--hairline); align-items: baseline; }
.yd-epl-row:last-child { border-bottom: 1px solid var(--hairline); }
.yd-epl-row { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 1140px) { .yd-epl-row { grid-template-columns: 168px 1fr 240px; } }
.yd-epl-row p { margin: 0; }
.yd-epl-meter { height: 3px; border-radius: 2px; background: var(--hairline-strong); overflow: clip; margin: 14px 0 10px; }
.yd-epl-meter > span { display: block; height: 3px; background: var(--brand); }
.yd-epl-mono { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.yd-epl-rng { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.yd-epl-n { font-size: 26px; line-height: 32px; letter-spacing: -0.02em; color: var(--ink); }
.yd-epl-d { margin-top: 14px !important; font-size: 15px; line-height: 23px; color: var(--ink-muted); max-width: 56ch; text-wrap: pretty; }
.yd-epl-a { margin-top: 12px !important; font-size: 14px; line-height: 20px; color: var(--ink); text-wrap: pretty; }
.yd-epl-pay { display: grid; gap: 14px 40px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.yd-epl-payi { padding-left: 12px; border-left: 2px solid var(--brand); }
.yd-epl-payf { font-family: var(--mono); font-size: 15px; color: var(--ink); }
.yd-epl-payw { margin-top: 4px !important; font-size: 13px; line-height: 19px; color: var(--ink-muted); }

/* Base state first: which legend keys and notes belong to which view, stated once. Each key's
   swatch is the exact object it names. This block must precede the narrow-width overrides —
   a media query adds no specificity, so whichever copy comes last decides. */
.yd-ep-fn--narrow, .yd-ep-viewnote, .yd-ep-narrow { display: none; }
/* Board, spine and ledger each draw their own instalments, so the box is the narrow fallback only. */
.yd-ep--board .yd-ep-paybox, .yd-ep--spine .yd-ep-paybox, .yd-ep--ledger .yd-ep-paybox { display: none; }
/* The legend's own type and swatches. These were defined in the superseded plan block and went
   with it, leaving four unstyled sentences in a row and no keys at all. */
.yd-key { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.yd-key-s { width: 18px; height: 10px; border-radius: 3px; flex: none;
  background: color-mix(in oklab, var(--brand) 15%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--brand) 26%, transparent); }
.yd-key-s--plain { background: color-mix(in oklab, var(--surface) 58%, var(--canvas)); border-color: var(--hairline-strong); }
.yd-key-s--ghost { background: transparent; border-style: dashed; border-color: var(--hairline-strong); }
.yd-key-d { width: 9px; height: 9px; rotate: 45deg; border-radius: 2px; background: var(--brand); flex: none; }
.yd-key--board, .yd-key--meter, .yd-key--ms { display: none; }
.yd-ep--board .yd-key--board, .yd-ep--board .yd-key--ms,
.yd-ep--spine .yd-key--ms, .yd-ep--ledger .yd-key--meter { display: inline-flex; }
.yd-key-s--meter { height: 3px; border: none; background: var(--brand); border-radius: 2px; }

/* Below the desktop width the board would need a sideways drag to keep readable columns, so
   it falls back to the ledger, which is the view built for a narrow measure. */
@media (max-width: 1079px) {
  .yd-epb, .yd-eps { display: none; }
  .yd-ep-narrow { display: block; }
  /* The ledger view is already visible at this width, so the fallback would render a second
     copy of it underneath. */
  .yd-epl:not(.yd-ep-narrow) { display: none; }
  /* The view control cannot be offered here: board and spine are hidden, so two of its three
     buttons would change nothing. A line says which view is on screen instead, and the legend
     follows what is rendered rather than what is selected — the fallback draws a share meter,
     no bars, and nothing to hover. */
  .yd-ep-viewctl, .yd-ep-vn, .yd-ep-fn { display: none; }
  .yd-ep-viewnote { display: block; align-self: flex-end; padding-bottom: 9px; }
  .yd-ep-fn--narrow { display: block; }
  .yd-ep--board .yd-ep-paybox, .yd-ep--spine .yd-ep-paybox, .yd-ep--ledger .yd-ep-paybox { display: block; }
  .yd-ep--board .yd-key--board, .yd-ep--board .yd-key--ms, .yd-ep--spine .yd-key--ms { display: none; }
  .yd-ep--board .yd-key--meter, .yd-ep--spine .yd-key--meter { display: inline-flex; }
  .yd-ep-note { justify-content: flex-start; }
  .yd-ep-note > div { text-align: left; }
}

/* Positions — each one written as a correction, the way this audience already reads them: a
   minus line for the assumption, a plus line for the position, and the mechanism as a comment
   underneath. No red — the palette has one accent, and the gutter mark carries the sign.
   One outlined glyph per position rather than a number: taken together the three glyphs are
   the argument (a single figure, a checked document, a clock). */
/* No panel here. Two framed panels in consecutive sections made the page look like a stack of
   widgets, and the differentiation that costs nothing is to give each section the form its content
   asks for: the plan is an instrument, so it keeps its frame; these are three sentences, so they
   sit on the page itself, separated by rules that run the full measure.
   The one drawn gesture is that the corrected line bleeds wider than the assumption above it — the
   position is literally the widest thing in the section. */
.yd-pos { display: flex; flex-direction: column; }
.yd-pos-r { position: relative; padding: 34px 0; border-top: 1px solid var(--hairline); }
.yd-pos-r:last-child { border-bottom: 1px solid var(--hairline); }
.yd-pos-r p { margin: 0; }
.yd-pos-tag { display: flex; align-items: center; gap: 10px; }
.yd-pos-ic { flex: none; color: var(--ink-muted); opacity: 0.75; }
.yd-pos-line { display: grid; grid-template-columns: 26px 1fr; gap: 0 14px; align-items: baseline; padding: 8px 0; }
.yd-pos-line--minus { color: var(--ink-muted); padding-right: 64px; }
.yd-pos-line--plus { background: linear-gradient(to right, color-mix(in oklab, var(--brand) 9%, transparent), transparent 96%);
  margin-inline: -18px; padding: 10px 18px; border-radius: 10px; }
.yd-pos-mark { font-family: var(--mono); font-size: 14px; line-height: 24px; text-align: center; }
.yd-pos-line--plus .yd-pos-mark { color: var(--brand); }
.yd-pos-t { font-size: 16px; line-height: 24px; text-wrap: pretty; max-width: 76ch; }
.yd-pos-line--plus .yd-pos-t { color: var(--ink); font-size: 17px; line-height: 26px; }
.yd-pos-cm { display: grid; grid-template-columns: 26px 1fr; gap: 0 14px; margin-top: 14px; }
.yd-pos-cm span { font-family: var(--mono); font-size: 12px; line-height: 19px; color: var(--ink-muted); max-width: 74ch; }
}
.yd-pos-cm span:first-child { color: color-mix(in oklab, var(--ink-muted) 70%, transparent); text-align: center; }

/* Variant: one figure per position beside the claim. Each figure states its own argument —
   hands added against a decider unchanged, a track split where the work sits, two clocks from
   one start — drawn from a single kit of hairlines, a mono caption and one use of the accent.
   No measured quantities: the proportions are labelled. */
/* Glass rather than a filled card: a translucent wash over whatever the page has behind it,
   blurred so the dot grid and the section's own background read through it softly. Kept to 6%
   ink so the copy inside keeps its contrast on both themes. */
.yd-posx-r p { margin: 0; }
.yd-posx-s { margin-top: 12px !important; font-size: 22px; line-height: 30px; letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }
.yd-posx-w { margin-top: 12px !important; font-size: 14px; line-height: 21px; color: var(--ink-muted); text-wrap: pretty; }

/* Package tiles — the deliverables as objects with a kind, not as a bulleted list. The
   kind label is what makes the list checkable: a document, something running, a session.
   Two columns, because six tiles in one column read as a menu. */
/* Three across the full width, not two in half of it: at two columns the six tiles ran
   600px tall beside a 300px acceptance card and left a void the height of a screen. */
.yd-pkg { display: grid; gap: 12px; }
@media (min-width: 700px) { .yd-pkg { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .yd-pkg { grid-template-columns: repeat(3, 1fr); } }
.yd-pkg-t { border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
/* The tiles space themselves with gap; the inherited paragraph margin doubled it and made
   three tight lines read as three unrelated blocks. */
.yd-pkg-t p { margin: 0; }
.yd-pkg-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.yd-pkg-n { font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 450; }
.yd-pkg-d { font-size: 13px; line-height: 19px; color: var(--ink-muted); text-wrap: pretty; }

/* Deliverables on the axis the plan already owns: three moments, each with the objects that land
   there. Six tiles of equal weight answered what and never when, and made the repeated kind label
   the loudest thing in the section. The acceptance rule is no longer a band — it is what the
   middle moment means, so it sits inside it. */
/* Fit, immediately above, is an open two-column comparison on bare hairlines. If this section
   used the same open rows it read as a second helping of the same list, so the six objects sit
   inside one framed sheet: the same rhythm, a different object. */
.yd-lands-sheet { border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface); overflow: clip; }
.yd-lands { display: grid; gap: 18px; padding: 26px 24px; border-top: 1px solid var(--hairline); }
.yd-lands:first-child { border-top: none; }
@media (min-width: 760px) { .yd-lands { grid-template-columns: 210px 1fr; gap: 0 40px; padding: 28px 32px; } }
.yd-lands p { margin: 0; }
.yd-lands-w { margin-top: 8px !important; font-size: 16px; line-height: 24px; color: var(--ink); font-weight: 500; text-wrap: pretty; }
.yd-lands-o { display: grid; gap: 14px; }
@media (min-width: 1040px) { .yd-lands-o { grid-template-columns: 1fr 1fr; gap: 14px 40px; } }
/* The two documents that demonstrate the acceptance rule, entered from inside it. Tiles rather
   than thumbnails: a reader who wants the weekly update wants the update, not a picture of one. */
.yd-samp-t { display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; cursor: pointer;
  border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); padding: 18px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease); font: inherit; color: inherit; }
.yd-samp-t:hover { border-color: var(--hairline-strong); background: var(--surface-raised); }
/* Capped, because a 700px-wide tile holding one sentence looks like a mistake. */
.yd-samp-t--sm { flex: 1 1 250px; max-width: 340px; padding: 14px 16px; gap: 6px; background: transparent; }
.yd-samp-t p { margin: 0; }
.yd-samp-k { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.yd-samp-t:hover .yd-samp-a { color: var(--brand); }
.yd-samp-c { font-size: 13px; line-height: 19px; color: var(--ink-muted); text-wrap: pretty; }

/* One recommendation, not a wall of three cards. The proof section was a case study with no
   numbers, a quote, and a link to an article: three placeholders arguing the same point. A single
   quote at reading size, on the page rather than in a card, is the only one of the three that a
   visitor would actually read. */
.yd-one { display: grid; gap: 18px; padding-top: 30px; border-top: 1px solid var(--hairline); }
@media (min-width: 900px) { .yd-one { grid-template-columns: 200px 1fr; gap: 14px 48px; } }
.yd-one-q { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 38px; color: var(--ink);
  max-width: 46ch; text-wrap: pretty; }
@media (min-width: 1024px) { .yd-one-q { font-size: 29px; line-height: 42px; } }
.yd-one-by { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }

/* Reading dialog. The document is the real page in an iframe, so what a visitor reads here is
   byte-for-byte what they would read on its own — no abridged preview to maintain separately. */
.yd-rd { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; padding: 3vh 3vw;
  background: color-mix(in oklab, var(--canvas) 72%, black); backdrop-filter: blur(3px); }
.yd-rd-s { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: clip;
  border: 1px solid var(--hairline-strong); border-radius: 16px; background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.yd-rd-b { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--hairline); }
.yd-rd-t { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 500; }
.yd-rd-m { margin: 2px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.yd-rd-x { flex: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted);
  border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 7px 13px; background: transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.yd-rd-x:hover { color: var(--ink); border-color: var(--ink-subtle); }
.yd-rd-f { flex: 1; min-height: 0; border: none; width: 100%; background: var(--canvas); }

/* Six numbered objects, not another checklist: the Fit section directly above already owns
   the icon-marker list, so an inventory reads better counted than ticked. */
.yd-lands-i { display: grid; grid-template-columns: 26px 1fr; gap: 0 12px; }
.yd-lands-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; line-height: 23px;
  font-variant-numeric: tabular-nums; color: var(--ink-subtle); margin: 0; }
.yd-lands-n { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink); }
/* A flat document mark on the rows that are documents, so the inventory says which four of the
   six can be opened without the reader having to try each one. */
.yd-lands-n { display: flex; align-items: baseline; gap: 8px; }
.yd-lands-ic { flex: none; display: inline-flex; align-self: center; font-size: 13px; line-height: 1; color: var(--ink-subtle); opacity: 0.6; }
.yd-samp-k .yd-lands-ic { margin-right: 7px; opacity: 0.5; }
.yd-lands-i--doc:hover .yd-lands-ic, .yd-samp-t:hover .yd-lands-ic { color: var(--brand); opacity: 0.85; }
.yd-lands-d { margin-top: 2px !important; font-size: 13px; line-height: 20px; color: var(--ink-muted); text-wrap: pretty; }
.yd-lands-terms { display: grid; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.yd-lands-terms p { font-size: 14px; line-height: 22px; color: var(--ink-subtle); max-width: 80ch; text-wrap: pretty; }

/* Four sentences of equal weight read as an argument nobody started. The rule leads at full
   strength; the three consequences are keyed rows underneath, which is a hierarchy rather
   than a defence. */
.yd-rule-lead { font-size: 15px !important; line-height: 23px !important; color: var(--ink) !important; max-width: 68ch; }
.yd-rule-r { display: grid; gap: 2px 16px; padding: 11px 0; border-top: 1px solid var(--hairline); }
@media (min-width: 700px) { .yd-rule-r { grid-template-columns: 150px 1fr; } }
.yd-rule-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.yd-rule-t { font-size: 13.5px !important; line-height: 21px !important; color: var(--ink-muted) !important; max-width: 74ch; }

/* Inventory rows that have a document behind them are buttons. The affordance is one mono
   word on the right, brand on hover — the row must not start looking like a card. */
.yd-lands-i--doc { cursor: pointer; width: 100%; text-align: left; font: inherit; color: inherit;
  background: none; border: none; padding: 0; grid-template-columns: 26px 1fr auto; align-items: start; }
.yd-lands-r { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-subtle); line-height: 23px; transition: color 180ms var(--ease); }
.yd-lands-i--doc:hover .yd-lands-r { color: var(--brand); }
.yd-lands-i--doc:hover .yd-lands-n { color: var(--brand); }

/* The acceptance rule as a full-width band under the tiles: the rule in the left rail,
   its four consequences in a 2×2 grid beside it. As a right-hand card it was a short
   column next to a tall one; as a band it closes the section. */
.yd-accept { border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface); padding: 26px; display: grid; gap: 24px; }
@media (min-width: 900px) { .yd-accept { grid-template-columns: 300px 1fr; gap: 40px; } }
/* Intrinsic columns, so the measure is decided by the cell rather than by the viewport or
   by a container query aimed at the wrong element: the 2-up appears only when there is room
   for two 300px columns, which is the condition that actually matters. */
.yd-accept-g { display: grid; gap: 20px 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.yd-accept-g p { margin: 0; }

/* Payment — segmented bars, because the question is proportion and timing, not amount.
   Percentages are printed on the segments: a bar without its numbers is decoration. */
.yd-pay { display: flex; flex-direction: column; gap: 14px; }
.yd-pay-r { display: flex; flex-direction: column; gap: 7px; }
.yd-pay-b { display: flex; gap: 3px; }
.yd-pay-s { height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  background: color-mix(in oklab, var(--brand) 14%, var(--surface)); color: var(--brand);
  border: 1px solid color-mix(in oklab, var(--brand) 18%, transparent); }
.yd-pay-s--late { background: color-mix(in oklab, var(--surface) 70%, var(--canvas)); color: var(--ink-muted); border-color: var(--hairline); }

/* Document preview — a page-shaped thumbnail of the real sample, at a size where the
   structure is legible and the words are not. It is a promise the download has to keep,
   so the thumbnail is built from the actual document's block order rather than drawn. */
.yd-docprev { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .yd-docprev { grid-template-columns: 236px 1fr; } }
.yd-doc-thumb { border: 1px solid var(--hairline); border-radius: 8px; background: var(--surface); aspect-ratio: 8.5 / 11;
  padding: 18px 16px; display: flex; flex-direction: column; gap: 7px; overflow: clip;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.7); }
.yd-doc-line { height: 4px; border-radius: 2px; background: var(--hairline-strong); }
.yd-doc-line--h { height: 7px; background: var(--ink-muted); }
.yd-doc-line--on { background: var(--brand); }
.yd-doc-rule { height: 1px; background: var(--hairline); margin: 3px 0; }

/* Ledger — week 0 is a separately priced product, so it is set apart rather than sitting
   in the run of included weeks. Milestone chips ride in the week cell instead of taking a
   fourth column, which at 1280 would have squeezed the outcome column below its measure. */
.yd-led-r--pre { background: color-mix(in oklab, var(--surface) 70%, var(--canvas)); }
.yd-led-chip { display: inline-flex; align-items: center; white-space: nowrap; gap: 5px; margin-top: 7px; font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
  border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 3px 8px; }
.yd-led-chip--m { color: var(--brand); border-color: var(--brand-border); }


/* --- Chat: the message kinds beyond prose ---------------------------------
   Specified in Chat spec.dc.html. Defined here rather than in the component so the states
   page and the live panel cannot drift apart. */

/* Closed questions — timing, role, budget band, source — are faster to tap than to type, so
   they arrive as chips under the question. The composer stays live beside them: a chip is a
   shortcut, never the only way to answer. Indented to the text column, so they read as part
   of the assistant's turn rather than as page furniture. */
.yd-chat-choices { display: flex; flex-wrap: wrap; gap: 7px; padding-left: 40px; margin-top: -4px; }
.yd-chat-choice { font-family: var(--sans); font-size: 12.5px; color: var(--ink-muted); cursor: pointer;
  border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 6px 13px; background: transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease); }
.yd-chat-choice:hover { color: var(--ink); border-color: var(--brand-border); background: color-mix(in oklab, var(--brand) 8%, transparent); }

/* The summary at wrap-up. A card, because it is the one turn the visitor is meant to check
   rather than read: the label says what it is, the rows are scannable, and the correction
   invitation is part of the card so it cannot be missed. */
.yd-chat-card { margin-left: 40px; border: 1px solid var(--hairline-strong); border-radius: 12px;
  padding: 14px 15px; display: grid; gap: 9px; background: color-mix(in oklab, var(--ink) 3%, transparent); }
.yd-chat-card-l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.yd-chat-card-g { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 13px; line-height: 20px; color: var(--ink-subtle); }
.yd-chat-card-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); line-height: 20px; }
.yd-chat-card-f { font-size: 12.5px; line-height: 19px; color: var(--brand); }

/* Not a participant: centred, mono, no avatar. Degraded mode, the reopen seam, a rate limit,
   the transcript being sent. */
.yd-chat-sys { display: flex; align-items: center; gap: 12px; margin: 2px 0; }
.yd-chat-sys::before, .yd-chat-sys::after { content: ""; height: 1px; flex: 1; background: var(--hairline); }
.yd-chat-sys span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-muted); }

/* A failed turn replaces the pending dots in place — it belongs to the turn that failed, so it
   is never a toast. Amber would add a colour the page does not have; the hairline goes solid
   and the retry sits inside the message. */
.yd-chat-err { margin-left: 40px; border: 1px solid var(--hairline-strong); border-left: 2px solid var(--ink-subtle);
  border-radius: 4px 12px 12px 4px; padding: 12px 14px; display: grid; gap: 9px; }
.yd-chat-err p { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-subtle); }
.yd-chat-retry { align-self: start; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; color: var(--ink); background: transparent;
  border: 1px solid var(--hairline-strong); border-radius: 8px; padding: 6px 11px; }
.yd-chat-retry:hover { border-color: var(--brand-border); color: var(--brand); }

/* Closed. The composer is gone, because a live composer in a finished conversation invites a
   message nobody is waiting for. Two ways on: reopen, which appends to this same transcript,
   and the transcript itself. */
.yd-chat-closed { display: grid; justify-items: start; gap: 14px; padding: 4px 16px 18px; }
.yd-chat-closed p { margin: 0; max-width: 52ch; font-size: 14px; line-height: 22px; color: var(--ink-subtle); text-wrap: pretty; }
.yd-chat-closed-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.yd-chat-closed-a { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--sans);
  font-size: 13.5px; color: var(--ink); background: transparent; border: 1px solid var(--hairline-strong);
  border-radius: 10px; padding: 9px 15px; min-height: 38px; transition: border-color 180ms var(--ease), color 180ms var(--ease); }
.yd-chat-closed-a:hover { border-color: var(--brand-border); color: var(--brand); }
.yd-chat-closed-a[data-primary] { border-color: var(--brand-border); background: color-mix(in oklab, var(--brand) 12%, transparent); }

/* Expand. Sits at the far end of the header, where it is available from the first turn and
   invisible until wanted. */
.yd-chat-expand { margin-left: auto; flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink-muted); cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease); }
.yd-chat-expand:hover { color: var(--ink); border-color: var(--hairline-strong); }
.yd-chat-thinking + .yd-chat-expand { margin-left: 14px; }

/* Degraded: the note under the composer is where the panel says which of the two answered, so
   the label lives there and not in a banner over the transcript. */
.yd-cchat-note[data-degraded] p { color: var(--ink); }
.yd-cchat-note[data-degraded] p::before { content: "Placeholder"; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand); border: 1px solid var(--brand-border);
  border-radius: 999px; padding: 2px 8px; margin-right: 9px; }


/* The note under the composer carries two different things: a caution about the answers, and
   who provides the model. They were a baseline-aligned row, which broke the moment the caution
   wrapped — the second line ran under the credit and the mark sat off the text's centre.
   One row, centred, with the credit held on one line and given its own column. */
/* One sentence, not a row with two ends: the caution and the credit are the same aside, so they
   run inline and wrap together, separated by a dot. */
.yd-cchat-note-row { display: block; }
.yd-cchat-note-row > p { margin: 0; max-width: 100%; font-size: 12px; line-height: 19px; text-wrap: pretty;
  color: var(--ink-muted); }
/* Plain inline, not inline-flex: an inline-flex box carries its own baseline, which is what
   pushed the credit off the caution's line. Inline keeps both runs on the paragraph's baseline,
   and the mark is nudged with vertical-align so it centres on the lowercase. */
.yd-cchat-credit { white-space: nowrap; margin-left: 10px;
  font-size: 12px; line-height: 19px; color: color-mix(in oklab, var(--ink-muted) 68%, var(--surface)); }
.yd-cchat-credit img { height: 14px; width: 14px; display: inline-block; vertical-align: -3px;
  margin-right: 6px; filter: invert(1); opacity: 0.34; }
/* Under the panel's own breakpoint the credit drops below the caution rather than squeezing it
   into three lines. */



/* The panel's own title. It was .yd-h2 in the page and a hardcoded 17px in the states gallery,
   which is how the two drifted. One class, one variable: the size is set on the panel, not on
   the heading, so a mount changes it in one place and every panel state agrees.
   sm suits a boxed panel beside other content; lg is the page-width contact block. */
.yd-cchat { --chat-title: 26px; /* @kind font */ }
.yd-cchat[data-title="sm"] { --chat-title: 17px; /* @kind font */ }
.yd-cchat[data-title="md"] { --chat-title: 21px; /* @kind font */ }
.yd-cchat[data-title="lg"] { --chat-title: clamp(24px, 3.2vw, 32px); /* @kind font */ }
.yd-chat-title { margin: 0; font-family: var(--sans); font-size: var(--chat-title); font-weight: 500;
  line-height: 1.15; letter-spacing: normal; color: var(--ink); text-wrap: balance; }

.yd-chat-sys + .yd-chat-closed { margin-top: 0; }
.yd-chat-log > .yd-chat-sys:last-child { margin-top: 8px; }

/* The delivered state of Modernize's fortnight instrument: a sheen crossing the filled channel
   and a light running its rim. Keyframes rather than clock-driven, so a completed figure costs
   no frames of JavaScript. Percentages on the sheen resolve against the band's own width, which
   is why 330% is what clears the far edge. */
@keyframes yd-sheen { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(330%); } }
@keyframes yd-rim { 0% { background-position: 0% 50%; } 100% { background-position: -200% 50%; } }

/* Modernize — the marked-up run. Two rules that inline styles cannot express, and nothing more: a
   descendant hover. The animation shows each finding's reason as it is cut, but a reader who lands on
   the section after it has played would otherwise be looking at eight crossed-out ghosts with no
   explanation anywhere. Hovering any line brings its reason back and lifts the text with it, so the
   argument survives without the animation. */
.yd-mk:hover .yd-mk-why, .yd-mk:focus-visible .yd-mk-why { opacity: 1 !important; }
.yd-mk:hover .yd-mk-t, .yd-mk:focus-visible .yd-mk-t { color: var(--ink) !important; }


/* A very slow wash across the manifest's item chips: no border, just a soft gradient that drifts.
   Inline styles cannot hold keyframes, which is why this lives here. */
@keyframes yd-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.yd-chip { animation: yd-drift 11s ease-in-out infinite alternate; }
.yd-chip:nth-of-type(2) { animation-delay: -2.6s; }
.yd-chip:nth-of-type(3) { animation-delay: -5.2s; }
.yd-chip:nth-of-type(4) { animation-delay: -7.8s; }
@media (prefers-reduced-motion: reduce) { .yd-chip { animation: none; } }


/* One section washes very slowly between the canvas black and a lighter tone of it — no hue, just
   light. Keyframes cannot be inline, which is why it lives here. */
@keyframes yd-wash { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.yd-wash { animation: yd-wash 22s ease infinite; }
@media (prefers-reduced-motion: reduce) { .yd-wash { animation: none; } }


/* ── Contact drawer ─────────────────────────────────────────────────────────────
   The header CTA opens the intake from the right on every page instead of jumping
   to the section at the foot of it. Someone who clicks a pinned button is
   interrupting the page, not finishing it: the drawer opens over what they were
   reading and closing it puts them back on the same line. The in-page contact
   sections stay exactly where they are, for the reader who arrives by reading. */
@keyframes yd-dw-scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes yd-dw-scrim-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes yd-dw-in { from { opacity: 0; translate: 14px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes yd-dw-out { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 10px 0; } }
.yd-dw-scrim { position: fixed; inset: 0; z-index: 200; border: 0; cursor: default;
  background: color-mix(in oklab, var(--canvas) 34%, transparent);
  backdrop-filter: blur(6px) saturate(0.9); animation: yd-dw-scrim-in 200ms var(--ease) both; }
.yd-dw-scrim[data-state="out"] { animation: yd-dw-scrim-out 200ms var(--ease) both; }
/* Inset on three sides and rounded on all four, so it reads as a card over the page
   rather than a second pane of the browser. */
.yd-dw { position: fixed; top: 16px; right: 16px; bottom: 16px; z-index: 201;
  width: min(560px, calc(100vw - 32px)); display: flex; flex-direction: column; overflow: clip;
  border: 1px solid var(--hairline-strong); border-radius: 18px; background: var(--surface);
  box-shadow: -24px 0 48px -40px rgba(0, 0, 0, 0.45); animation: yd-dw-in 220ms var(--ease) both; }
.yd-dw[data-state="out"] { animation: yd-dw-out 200ms var(--ease) both; }
/* The chat is built as a fixed-height panel for a page section; in here it is the
   whole card, so it gives up its own height, border and radius to the drawer. */
.yd-dw .yd-cchat { height: 100%; border: none; border-radius: 0; background: transparent; }
/* The close control sits over the chat's own header rather than adding a second one:
   two title rows in a 468px card is chrome talking about chrome. */
.yd-dw-x { position: absolute; top: 13px; right: 13px; z-index: 7; width: 28px; height: 28px;
  display: grid; place-items: center; border: 0; border-radius: 8px; background: none;
  color: var(--ink-muted); cursor: pointer; font-size: 13px; line-height: 1;
  transition: background 180ms var(--ease), color 180ms var(--ease); }
.yd-dw-x:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); color: var(--ink); }
@media (max-width: 560px) {
  .yd-dw { top: 10px; right: 10px; bottom: 10px; width: calc(100vw - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .yd-dw, .yd-dw-scrim { animation: none; }
}

/* The chat is mounted as a child component, so the drawer's flex column has to reach
   through that mount: without this the panel keeps its natural height and the composer
   sits halfway up an empty card. */
.yd-dw > :not(.yd-dw-x) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.yd-dw .yd-cchat { flex: 1 1 auto; height: auto; min-height: 0; }

/* The drawer is a card in its own right, so its contents keep a card's margin rather
   than the tighter gutters a page section can afford. */
.yd-dw .yd-chat-head { padding: 18px 24px; }
.yd-dw .yd-chat-log { padding: 24px; }
.yd-dw .yd-cchat-starters { padding: 0 24px 16px; }
.yd-dw .yd-chat-form { padding: 14px 24px; }
.yd-dw .yd-cchat-note { padding: 0 24px 18px; }


/* ── Automate, the cycle ────────────────────────────────────────────────────────
   The wide figure is a plan view: five stations laid across 1092px with the review
   loop drawn as an ellipse between two of them. Scaled onto a phone it becomes
   5px type, so below 900px it is replaced rather than shrunk. The narrow figure
   is the same five steps as a vertical run, one station per row against a single
   rail, and it is driven by the same phase state — the numbers, the colours and
   the loop readout are the identical holes, so the two views can never tell
   different stories. */
.yd-at-flow-narrow { display: none; }
@media (max-width: 899px) {
  .yd-at-flow-wide { display: none; }
  .yd-at-flow-narrow { display: block; }
}
.yd-atm { position: relative; display: grid; gap: 0; }
/* The rail is behind the rows and stops at the last node rather than running past
   it: a line that continues under the final step promises a sixth. */
.yd-atm-row { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 14px; padding-bottom: 26px; }
.yd-atm-row:last-child { padding-bottom: 0; }
.yd-atm-row::before { content: ""; position: absolute; left: 16px; top: 26px; bottom: -4px; width: 0;
  border-left: 1px dashed var(--hairline-strong); }
.yd-atm-row:last-child::before { display: none; }
.yd-atm-node { position: relative; z-index: 1; width: 34px; height: 26px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
  border-radius: 999px; background: var(--canvas); transition: color 500ms ease; }
.yd-atm-h { margin: 0; align-self: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 500ms ease; }
.yd-atm-card { grid-column: 2; margin-top: 12px; position: relative; border: 1px solid var(--hairline);
  border-radius: 14px; background: var(--surface); padding: 14px 15px 15px; transition: opacity 500ms ease; }
.yd-atm-card p { margin: 0; }
.yd-atm-lit { position: absolute; inset: -1px; border-radius: 15px; pointer-events: none;
  transition: opacity 520ms ease;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--brand) 20%, transparent),
    0 -2px 26px -10px color-mix(in oklab, var(--brand) 50%, transparent),
    inset 0 18px 30px -26px color-mix(in oklab, var(--brand) 80%, transparent); }
.yd-atm-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.yd-atm-t { font-size: 13.5px; line-height: 20px; color: var(--ink); }
.yd-atm-s { font-size: 13px; line-height: 19px; color: var(--ink-muted); }
/* Five gates in two columns on a phone, three at tablet width: the names are short
   enough to hold at 150px and stacking all five turns the check list into a page. */
.yd-atm-gates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
@media (min-width: 600px) { .yd-atm-gates { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.yd-atm-gate { padding: 8px 10px 9px; border: 1px solid var(--hairline); border-radius: 9px;
  transition: border-color 320ms ease, background 320ms ease; }
.yd-atm-gate p:first-child { font-size: 11.5px; line-height: 14px; }
.yd-atm-gate p:last-child { margin-top: 4px; min-height: 11px; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.07em; text-transform: uppercase; }
/* The two agents are a header row over the loop card instead of two labels either
   side of an ellipse: there is no width here to put anything beside anything. */
.yd-atm-agents { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; }
.yd-atm-agent { display: flex; align-items: center; gap: 7px; transition: color 400ms ease; }
.yd-atm-dot { width: 6px; height: 6px; flex: none; border-radius: 999px; transition: background-color 400ms ease; }
