/* =========================================================
   04 — About & Contact
   ========================================================= */

/* ---------- Hero ---------- */
.ab-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 120px)) 0 clamp(80px, 10vw, 140px); }
@media (max-width: 700px) { .ab-hero { padding-top: calc(var(--header-h) + 32px); } }   /* one hero top offset on phones, site-wide */
.ab-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
/* First-person greeting, before the aphorism. */
.ab-hello { margin: 18px 0 0; max-width: 40ch; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; color: var(--ink-2);
  font-variation-settings: "SOFT" 40, "WONK" 0; }
.ab-hi { color: var(--ink); font-style: italic; }
.ab-title { margin-top: clamp(20px, 3vw, 36px); font-size: clamp(54px, 8.4vw, 132px); }
.ab-title > span[data-split], .ab-title > .split:first-of-type { display: block; }
.ab-title em { display: block; font-weight: 300; }
.ab-bio { margin-top: clamp(32px, 4vw, 56px); max-width: 56ch; display: grid; gap: 1em; }
.ab-bio p { margin: 0; color: var(--ink-2); font-size: 18px; }
.ab-bio p:first-child { font-family: var(--serif); font-size: clamp(21px, 2vw, 25px); line-height: 1.4; color: var(--ink); }

/* Monogram plate — a deliberate placeholder until a portrait exists. */
.portrait { margin: 0; }
.plate { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); border: 1px solid var(--rule); padding: clamp(18px, 2vw, 28px);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.plate::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 100% 25%, 25% 100%; mask-image: radial-gradient(circle at 50% 50%, #000 0 30%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 30%, transparent 75%); }
.plate > * { position: relative; }
.plate-top { margin: 0; display: flex; justify-content: space-between; }
.plate-mono { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(120px, 17vw, 240px); line-height: .8; letter-spacing: -.06em; text-align: center; color: var(--ink); }
.plate-mono span { font-style: italic; color: var(--mark, var(--accent)); margin-left: -.02em; }
.plate-line { position: absolute; left: 0; right: 0; bottom: 26%; width: 100%; height: 22%; overflow: visible; }
.plate-line path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: none; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease) .5s; }
.plate-line circle { fill: var(--up); opacity: 0; transition: opacity .4s 2.6s; }
.portrait.in .plate-line path { stroke-dashoffset: 0; }
.portrait.in .plate-line circle { opacity: 1; }
.plate-foot { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--ink); padding-top: 12px; }
.plate-name { font-family: var(--serif); font-size: 20px; }
.crop { position: absolute; width: 14px; height: 14px; border-color: var(--ink-3); border-style: solid; border-width: 0; }
.crop--tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.crop--tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.crop--bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.crop--br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }
.portrait figcaption { margin-top: 10px; }

@media (max-width: 860px) {
  .ab-hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
}
@media (max-width: 600px) {
  .plate { aspect-ratio: 5 / 4; }
  .plate-mono { font-size: 128px; }
}

/* ---------- Off the clock ---------- */
.ab-off { padding: 0 0 clamp(80px, 10vw, 140px); scroll-margin-top: calc(var(--header-h) + 24px); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.tile { grid-column: span 2; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper-2); overflow: hidden; display: flex; flex-direction: column;
  cursor: default; transition: border-color .4s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); outline-offset: 4px; }
.tile:nth-child(4), .tile:nth-child(5) { grid-column: span 3; }
.tile:hover, .tile:focus-within, .tile.is-on { border-color: var(--ink); }
.tile-art { position: relative; height: clamp(130px, 13vw, 170px); border-bottom: 1px solid var(--rule); background: var(--paper-2); color: var(--ink); }
.tile-art svg { width: 100%; height: 100%; overflow: visible; }
.tile-txt { padding: 18px 20px 22px; }
.tile-txt .label { margin: 0 0 8px; }
.tile-txt .h3 { margin: 0; }
.tile-line { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }

/* Shared drawing behaviour: any path with pathLength="1" draws on hover/focus. */
.tile svg [pathLength] { fill: none; stroke-width: 1; vector-effect: none; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease); }
.tile:hover svg [pathLength], .tile:focus-visible svg [pathLength], .tile.is-on svg [pathLength] { stroke-dashoffset: 0; }
/* Toy tiles: draw the resting art once the tile is on screen, so the idle state never looks empty. */
.tile.is-toy.in svg [pathLength] { stroke-dashoffset: 0; transition-delay: .35s; }
.tile svg text { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; fill: var(--ink-3); }

/* On-object cue: a small chip in each drawing (text from data-cue, set by about.js).
   It fades after the first interaction with the toy. */
.tile-cue { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink-2);
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .02em; pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease); }
.tile-cue::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: ab-cue 2.4s var(--ease) infinite; }
@keyframes ab-cue { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); } 50% { box-shadow: 0 0 0 5px var(--accent-soft); } }
.tile.was-played .tile-cue { opacity: 0; transform: translateY(-4px); }
@media (hover: none) { .tile { -webkit-tap-highlight-color: transparent; } }

/* Aviation */
.fly-ground { stroke: var(--rule); stroke-width: 1; fill: none; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.fly-path { stroke: var(--accent); }
.fly-dot { fill: var(--ink); }
.fly-dot--end { fill: none; stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fly-plane path { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fly-plane { opacity: 0; transition: opacity .3s; }
.tile--fly:hover .fly-plane, .tile--fly:focus-visible .fly-plane, .tile--fly.is-on .fly-plane { opacity: 1; }
.tile--fly:hover .fly-lbl--end, .tile--fly:focus-visible .fly-lbl--end, .tile--fly.is-on .fly-lbl--end { fill: var(--accent); }

/* Soccer */
.pitch { fill: none; stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pass { stroke: var(--ink); }
.pass-pt { fill: var(--accent); opacity: 0; transition: opacity .3s; }
.tile--ball:hover .pass-pt, .tile--ball:focus-visible .pass-pt, .tile--ball.is-on .pass-pt { opacity: 1; }
.pass-pt:nth-of-type(2) { transition-delay: .25s; } .pass-pt:nth-of-type(3) { transition-delay: .5s; } .pass-pt:nth-of-type(4) { transition-delay: .75s; }

/* Cooking */
.pot { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.steam { stroke: var(--ink-3); }
.tile--cook .steam:nth-child(2) { transition-delay: .15s; } .tile--cook .steam:nth-child(3) { transition-delay: .3s; }

/* The Weeknd — waveform bars generated by about.js */
.wave rect { fill: var(--ink); transform-box: fill-box; transform-origin: 50% 50%; transform: scaleY(.35); transition: transform .6s var(--ease), fill .4s; }
.wave .wave-axis { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tile--wave:hover .wave rect, .tile--wave:focus-visible .wave rect, .tile--wave.is-on .wave rect { animation: ab-wave 1.1s var(--ease-io) infinite alternate; animation-delay: var(--wd, 0s); fill: var(--accent); }
@keyframes ab-wave { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* Volunteering */
.give-base { stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.give-today { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile:nth-child(4), .tile:nth-child(5) { grid-column: span 1; }
  .tile:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .tile:nth-child(5) { grid-column: auto; }
  .tile-art { height: 116px; }
  .tile-txt { padding: 14px 16px 16px; }
  .tile-txt .h3 { font-size: 20px; }
  .tile-line { font-size: 14px; }
}

/* ---------- Toys (about-play.js) ----------
   Visitor-made marks use --play; Abhay's own drawing stays ink. */
.tile-art.is-toy { height: auto; display: flex; flex-direction: column; }
.tile-stage { position: relative; height: clamp(150px, 12.5vw, 176px); }
.tile-stage > svg { position: absolute; inset: 0; }
.tile-read { min-height: 1.5em; margin: 0; padding: 0 12px 8px; font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: .02em;
  color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tile-reset { position: absolute; top: 8px; left: 8px; z-index: 2; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--ink-3);
  border-radius: 50%; background: var(--paper); color: var(--ink-2); font-size: 14px; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s; }
.tile-reset:hover { color: var(--accent); border-color: var(--accent); }
.tile-reset[hidden] { display: none; }
.tile-art.is-toy:focus { outline: none; }
.tile-art.is-toy .tile-stage > svg { width: 100%; height: 100%; }
.cook-chip svg, .cook-fly svg, .wv-ctl svg { width: 16px; height: 16px; overflow: visible; }
.wv-ctl svg { width: 14px; height: 14px; }
.tile--fly .tile-cue { top: auto; bottom: 10px; }
.tile-art [role="button"], .tile-art [role="slider"] { cursor: pointer; outline: none; }
/* Coarse pointers: 28px visible, 44px to the finger. */
@media (pointer: coarse) { .tile-reset { width: 28px; height: 28px; } .tile-reset::after { content: ""; position: absolute; inset: -8px; } }

/* Aviation chart */
.tile--fly.is-toy .fly-path, .tile--fly.is-toy .fly-dot, .tile--fly.is-toy .fly-lbl, .tile--fly.is-toy .fly-ground { display: none; }
.ap-hit { fill: transparent; }
.ap-dot { fill: var(--paper-2); stroke: var(--ink-3); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill .2s, stroke .2s; }
.ap--home .ap-dot { fill: var(--ink); stroke: var(--ink); }
.tile svg .ap-lbl { font-size: 10px; fill: var(--ink-3); }
.ap--home .ap-lbl, .tile svg .ap--home .ap-lbl { fill: var(--ink); }
.ap:hover .ap-dot, .ap:focus-visible .ap-dot { stroke: var(--accent); stroke-width: 2; }
.ap:focus-visible .ap-lbl, .ap:hover .ap-lbl { fill: var(--accent); }
.ap.is-on:not(.ap--home) .ap-dot { fill: var(--play, var(--accent)); stroke: var(--play, var(--accent)); }
.tile svg .ap.is-on:not(.ap--home) .ap-lbl { fill: var(--ink); }
.fly-leg { fill: none; stroke: var(--play, var(--accent)); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fly-leg.is-draft, .ball-line.is-draft { stroke-dasharray: 3 3; }
.fly-band { stroke: var(--play, var(--accent)); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: 0; pointer-events: none; }
.fly-band.is-on { opacity: .55; }
.tile--fly.is-toy .fly-plane { opacity: 0; }
.tile--fly.is-toy.has-route .fly-plane { opacity: 1; }

/* Soccer */
.tile--ball.is-toy .pass, .tile--ball.is-toy .pass-pt { display: none; }
.goal { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.keeper { stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.goal-hit { fill: transparent; }
.goal-btn:hover .goal-hit, .goal-btn:focus-visible .goal-hit { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.def { fill: var(--paper-2); stroke: var(--ink-3); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.plr-hit { fill: transparent; }
.plr, .plr * { touch-action: none; cursor: grab; }
.plr:active, .plr:active * { cursor: grabbing; }
.plr-dot { fill: var(--ink); transition: fill .2s; }
.tile svg .plr-num { font-size: 9px; fill: var(--ink-3); pointer-events: none; }
.plr:hover .plr-dot, .plr:focus-visible .plr-dot { fill: var(--accent); }
.plr:focus-visible .plr-hit { stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ball { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; }
.ball-line { fill: none; stroke: var(--play, var(--accent)); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* Cooking */
.tile--cook .tile-reset { left: auto; right: 8px; }
.cook-rail { position: absolute; left: 12px; top: 12px; bottom: 6px; z-index: 1; display: flex; flex-direction: column; gap: 8px; width: min(46%, 172px); }
.cook-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cook-chip, .cook-lidbtn { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 7px; border: 1px solid var(--ink-3); border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cook-chip svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.cook-chip:hover, .cook-lidbtn:hover { border-color: var(--accent); color: var(--accent); }
.cook-chip[aria-pressed="true"], .cook-lidbtn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.cook-ctl { display: flex; align-items: center; gap: 6px; }
.cook-heat { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
/* "Salsa" steps the heat; it looks like the chips beside it because it is one. */
.cook-heat-b { position: relative; flex: none; display: inline-flex; align-items: center; gap: 3px; min-height: 26px; padding: 0 6px; border: 1px solid var(--ink-3); border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); font: inherit; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cook-heat-b::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rule); transition: background .2s; }
.cook-heat-b[data-heat="1"]::after { background: color-mix(in srgb, var(--play) 40%, var(--paper-2)); }
.cook-heat-b[data-heat="2"]::after { background: color-mix(in srgb, var(--play) 70%, var(--paper-2)); }
.cook-heat-b[data-heat="3"]::after { background: var(--play); }
.cook-heat-b:hover { border-color: var(--accent); color: var(--accent); }
.cook-heat-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cook-heat-b.is-pop { animation: ab-pop .4s var(--spring-bounce, var(--ease)); }
.cook-heat input { flex: 1; min-width: 28px; accent-color: var(--accent); }
.cook-fly { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; color: var(--play, var(--accent)); }
.cook-fly svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.in-pot path { fill: none; stroke: var(--play, var(--accent)); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.in-pot { opacity: 0; transition: opacity .25s; }
.in-pot.is-on { opacity: 1; }
.steam--x { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; }
.tile--cook.is-played .steam { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transition: opacity .4s; transform-box: fill-box; transform-origin: 50% 100%; }
.tile--cook.heat-1 .steam.s3, .tile--cook.heat-2 :is(.s2, .s3, .s4), .tile--cook.heat-3 .steam { opacity: 1; }
.tile--cook.heat-1 .steam.s3 { animation: ab-steam 3.2s ease-in-out infinite; }
.tile--cook.heat-2 .steam { animation: ab-steam 2.2s ease-in-out infinite; }
.tile--cook.heat-3 .steam { animation: ab-sway 1.2s ease-in-out infinite alternate; }
.tile--cook .s2, .tile--cook .s4 { animation-delay: -.6s !important; }
.tile--cook.lid-on .steam { opacity: 0 !important; }
.cook-lid path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cook-lid { opacity: 0; transition: opacity .2s; }
.tile--cook.lid-on .cook-lid { opacity: 1; }
.tile--cook.lid-on.heat-3 .cook-lid { animation: ab-rattle .167s steps(2, jump-none) infinite; }
.puff { fill: none; stroke: var(--ink-3); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; }
.tile--cook.lid-on.heat-3 .puff { animation: ab-puff 1s ease-out infinite; }
@keyframes ab-steam { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ab-sway { from { transform: translateX(-2px) skewX(-4deg); } to { transform: translateX(2px) skewX(4deg); } }
@keyframes ab-rattle { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes ab-puff { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: 0; } }
@media (pointer: coarse) {
  .tile--cook .tile-stage { height: 196px; }
  .cook-chip, .cook-lidbtn { min-height: 40px; }
  .cook-chips { gap: 4px; }
}

/* The Weeknd player */
.tile-art.is-player .tile-read { order: 2; min-height: 0; }
.tile-art.is-player .tile-read:empty { display: none; }
.wv-ctl { order: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 0 12px 10px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.wv-play { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper);
  color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.wv-play svg path { fill: currentColor; }
.wv-play .i-stop, .wv-play.is-on .i-play { display: none; }
.wv-play.is-on .i-stop { display: block; }
.wv-play:hover, .wv-play.is-on { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.wv-play:disabled { opacity: .4; cursor: not-allowed; background: var(--paper); color: var(--ink-3); border-color: var(--ink-3); }
.wv-pick { max-width: 100%; min-height: 28px; padding: 0 6px; border: 1px solid var(--ink-3); border-radius: 6px; background: var(--paper-2); color: var(--ink);
  font: inherit; cursor: pointer; }
.wv-time { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.wv-vol { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.wv-vol svg { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.wv-vol input { width: 72px; accent-color: var(--accent); }
.wv-link { margin-left: auto; color: var(--accent); white-space: nowrap; }
.wv-link:hover { text-decoration: underline; }
.tile-try { display: inline-block; margin-top: 12px; padding: 0 0 1px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid var(--accent); transition: opacity .25s var(--ease); }
.tile-try:hover, .tile-try:focus-visible { opacity: .75; }
.give-lbl-hit { fill: transparent; cursor: pointer; }
/* Touch: small links and sliders get at least 36px to the finger, without moving what sits beside them. */
@media (pointer: coarse) {
  .tile-try, .wv-link, .board-go { position: relative; }
  .tile-try::before { content: ""; position: absolute; inset: -9px -6px -8px; }
  .wv-ctl { row-gap: 12px; }
  .wv-link::before { content: ""; position: absolute; inset: -9px -4px; }
  .cook-heat input, .wv-vol input { height: 36px; margin: 0; }
  /* Board: rows of links get 18px between them, so each 36px tap area stops where the next begins. */
  .board .board-row dd { gap: 18px; }
  .board-go::before { content: ""; position: absolute; inset: -9px -4px; }
}
.tile-credit { margin: 8px 0 0; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.tile--wave.is-toy .wave { touch-action: pan-y; }
.tile--wave.is-toy .wave rect { transition: transform .35s var(--ease), fill .2s; }
.tile--wave.is-toy:hover .wave rect, .tile--wave.is-toy.is-on .wave rect { animation: none; fill: var(--ink); }
.tile--wave.is-live .wave rect { transition: fill .2s; }
.tile--wave.is-fallback .wave rect { animation: ab-wave 1.1s var(--ease-io) infinite alternate !important; animation-delay: var(--wd, 0s) !important; }
.tile--wave.is-toy .wave rect.past { fill: var(--accent); }
.tile--wave.is-playing .wave { cursor: pointer; }
.wave:focus-visible .wave-axis { stroke: var(--accent); stroke-width: 2; }
@media (pointer: coarse) { .wv-play { width: 44px; height: 44px; } .wv-pick { min-height: 40px; } }

/* Volunteering */
/* Instruction row + reset; the generic cue chip would repeat the instruction. */
.tile--give .tile-cue { display: none; }
.give-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding: 10px 12px 0; }
.give-how { margin: 0; color: var(--ink-2); }
.tile--give .give-bar .tile-reset { position: relative; top: auto; left: auto; flex: none; width: auto; height: 26px; display: inline-flex; gap: 5px; padding: 0 10px;
  border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.tile--give .give-bar .tile-reset[hidden] { display: none; }
.tile--give .give-bar .tile-reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile--give .tile-read { min-height: 3em; }
.tile svg text.give-y { font-size: 9.5px; letter-spacing: .04em; }
.tile svg text.give-lbl--today { fill: var(--ink-3); }
/* Plantable dots: hollow until planted, blue on hover/focus, plum once planted. */
.give-spot-hit { fill: transparent; }
.give-spot-dot { fill: var(--paper-2); stroke: var(--ink-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill .2s, stroke .2s; }
.give-spot-ring { fill: none; stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.tile--give:not(.was-played) .give-spot-ring { animation: ab-spot 2.4s var(--ease) infinite; }
@keyframes ab-spot { 0% { opacity: .7; transform: scale(.55); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.give-spot:hover .give-spot-dot, .give-spot:focus-visible .give-spot-dot { stroke: var(--accent); fill: var(--accent-soft); stroke-width: 2; }
.give-spot:focus-visible .give-spot-ring { animation: none !important; opacity: 1; transform: none; stroke-width: 2; }
.give-spot[aria-pressed="true"] .give-spot-dot { fill: var(--play); stroke: var(--play); }
.give-spot[aria-pressed="true"]:hover .give-spot-dot { stroke: var(--accent); }
.give-ghost { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: 0; pointer-events: none; transition: opacity .2s; }
.give-ghost.is-on { opacity: .8; }
/* What the visitor grew: plum curves; the newest is solid, earlier ones step back. */
.give-run { display: none; pointer-events: none; }
.give-run.is-on { display: inline; }
.give-curve { fill: none; stroke: var(--play); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .45; }
.give-tip { fill: var(--play); opacity: .45; }
.tile svg text.give-tag { font-size: 10.5px; fill: var(--up); opacity: .6; font-variant-numeric: tabular-nums; }
.give-run.is-last .give-curve { stroke-width: 2.25; opacity: 1; }
.give-run.is-last .give-tip { opacity: 1; }
.tile svg .give-run.is-last text.give-tag { opacity: 1; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .tile--cook .steam, .cook-lid, .puff, .tile--wave.is-fallback .wave rect { animation: none !important; }
  .tile--wave.is-toy .wave rect { transition: none; }
  .give-spot-ring { animation: none !important; }
  .give-spot-dot, .give-ghost { transition: none; }
}

/* ---------- Currently ---------- */
.ab-now { padding: 0 0 clamp(80px, 10vw, 140px); }
.board { font-family: var(--mono); font-size: 14px; border: 1px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.board-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--ink);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--paper); }
.board-top > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.board-live { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: ab-blink 2s steps(2, jump-none) infinite; }
@keyframes ab-blink { 50% { opacity: .25; } }
.board-clock { font-variant-numeric: tabular-nums; }
.board-rows { margin: 0; }
.board-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px dotted var(--rule); transition: background .25s; }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: var(--accent-soft); }
.board-row dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.board-row dd { margin: 0; display: grid; gap: 6px; color: var(--ink); }
.board-row dd > span:not(.board-flag)::before { content: "› "; color: var(--ink-3); }
.board-flag { font-size: 12px; }
/* Board rows go somewhere useful: coursework → the Record, questions → Home, "Open to" → the subject chips. */
.board-go { color: inherit; text-decoration: underline dotted var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
.board-go:hover, .board-go:focus-visible { color: var(--accent); text-decoration-color: var(--accent); text-decoration-style: solid; }
.board-go::after { content: " →"; color: var(--ink-3); opacity: 0; transition: opacity .2s var(--ease); }
.board-go:hover::after, .board-go:focus-visible::after { opacity: 1; color: var(--accent); }
.ab-now { scroll-margin-top: calc(var(--header-h) + 16px); }
.compose-set.is-called .compose-chip span { animation: ab-pop .5s var(--spring-bounce, var(--ease)); }
.compose-set.is-called legend { color: var(--accent); }

@media (max-width: 600px) {
  .board { font-size: 13px; }
  .board-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .board-top { padding: 10px 16px; }
}

/* ---------- Contact ---------- */
.ab-contact { padding: 0 0 clamp(64px, 8vw, 110px); }
.ab-contact-h { color: var(--ink-3); font-style: italic; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(12px, 2vw, 24px); }
.mail-link { font-family: var(--serif); font-size: clamp(30px, 7vw, 104px); letter-spacing: -.025em; line-height: 1.1; overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) 0 96% / 0 2px no-repeat; transition: background-size .6s var(--ease), color .4s var(--ease); }
.mail-link:hover, .mail-link:focus-visible { background-size: 100% 2px; color: var(--accent); }
.mail-copy { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; transition: background .3s var(--ease), color .3s var(--ease); }
.mail-copy:hover { background: var(--ink); color: var(--paper); }
.mail-copy.is-done { background: var(--up); border-color: var(--up); color: var(--paper); }

.links { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.links li + li { border-left: 1px solid var(--rule); }
.links a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l arr" "t arr"; gap: 6px 12px; align-items: end; min-height: 44px; padding: 22px 24px 24px;
  transition: background .3s var(--ease); }
.links li:first-child a { padding-left: 0; }
.links .label { grid-area: l; }
.links-t { grid-area: t; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.links .arr { grid-area: arr; font-size: 22px; transition: transform .4s var(--ease), color .3s; }
.links a:hover .arr, .links a:focus-visible .arr { transform: translate(4px, -4px); color: var(--accent); }
.links a:hover .links-t { color: var(--accent); }

@media (max-width: 700px) {
  .links { grid-template-columns: 1fr; }
  .links li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .links a, .links li:first-child a { padding: 18px 0; }
}

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; padding: 12px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px; transition: opacity .4s var(--ease), transform .5s var(--ease); white-space: nowrap; }
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* Section heads: plain-English subtitle beside the report conceit. */
.sect-head .sect-plain { font-family: var(--sans); font-size: 15px; color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.sect-head .sect-plain::before { content: "— "; color: var(--ink-3); }
/* Phones: drop the aside; the subtitle takes its own line under the rule label. */
@media (max-width: 600px) {
  .sect-head { flex-wrap: wrap; row-gap: 6px; }
  .sect-head .aside { display: none; }
  .sect-head .sect-plain { order: 5; flex-basis: 100%; }
  .sect-head .sect-plain::before { content: none; }
}

.ab-contact-sub { margin: 0 0 clamp(16px, 2vw, 24px); max-width: 52ch; }

.tile svg text.give-lbl--link { fill: var(--accent); cursor: pointer; pointer-events: bounding-box; outline: none; text-decoration: underline; text-underline-offset: 3px; }
.tile svg text.give-lbl--link:hover, .tile svg text.give-lbl--link:focus-visible { opacity: .75; }

/* =========================================================
   Deeper layer (about.js + about-play.js, v16)
   ========================================================= */

/* ---------- Bio: the six tools open live ---------- */
.ab-tool { color: inherit; text-decoration: underline dotted var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .25s var(--ease); }
.ab-tool::after { content: "↗"; display: inline-block; margin-left: .12em; font-size: .72em; vertical-align: .32em; color: var(--accent); transition: transform .3s var(--ease); }
.ab-tool:hover, .ab-tool:focus-visible { color: var(--accent); text-decoration-style: solid; }
.ab-tool:hover::after, .ab-tool:focus-visible::after { transform: translate(2px, -2px); }

/* ---------- Monogram plate: bendable line, tilt, sheen ---------- */
.plate { user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: crosshair; outline-offset: 4px; will-change: transform; }
.plate:focus { outline: none; }
.plate:focus-visible { outline: 2px solid var(--accent); }
.plate-line path { transition: stroke-dashoffset 2.4s var(--ease) .5s, stroke .3s, stroke-width .3s; }
.plate.is-bending .plate-line path { stroke: var(--play); stroke-width: 2; }
.plate-dot { position: absolute; left: 0; top: 0; z-index: 2; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft); opacity: 0; pointer-events: none; transition: opacity .2s; }
.plate-dot.is-on { opacity: 1; }
.plate.is-bending .plate-dot { background: var(--play); }
.plate-sheen { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--lo, 0);
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 30%), rgb(255 255 255 / .38), transparent 55%); mix-blend-mode: soft-light; }
.plate-hint { color: var(--ink-3); }
/* The pluck counter: sits on the plate above the foot rule, out of the flow so nothing moves. */
.plate .plate-n { position: absolute; left: clamp(18px, 2vw, 28px); bottom: calc(clamp(18px, 2vw, 28px) + 44px); z-index: 2; margin: 0; pointer-events: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.plate .plate-n b { display: inline-block; font-weight: 500; color: var(--ink-2); }
.plate .plate-n.is-on b { color: var(--play); }
.plate .plate-n.is-tick b { animation: ab-hop .35s var(--ease); }
@keyframes ab-hop { 40% { transform: translateY(-4px); } }

/* ---------- Status board: clock button + day arc ---------- */
.board-clock { display: inline-flex; align-items: center; gap: 6px; margin: -4px -8px; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px;
  background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: border-color .25s, color .25s; }
.board-clock:hover { border-color: var(--accent); color: var(--accent); }
.board-clock:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.board-clock[aria-pressed="true"] { border-color: var(--rule); color: var(--ink); }
.board-clock [data-clock], .board-where, .board-tz { display: inline-block; }
.board-clock.is-flip [data-clock], .board-clock.is-flip .board-where, .board-clock.is-flip .board-tz { animation: ab-flip .45s var(--spring) both; }
.board-clock.is-flip .board-where { animation-delay: .04s; } .board-clock.is-flip .board-tz { animation-delay: .08s; }
@keyframes ab-flip { from { transform: perspective(200px) rotateX(80deg); opacity: 0; } }
.board-sky { position: relative; flex: none; width: 20px; height: 10px; border: 1px solid var(--rule); border-bottom: 0; border-radius: 10px 10px 0 0; }
.board-sky i { position: absolute; left: calc(var(--f, .5) * 100%); top: calc(100% - sin(var(--f, .5) * 180deg) * 100%); width: 5px; height: 5px;
  border-radius: 50%; background: var(--mark); transform: translate(-50%, -50%); }
.board-sky.is-night i { background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink-2); }

/* ---------- Semester rail ---------- */
.deg { margin-top: 8px; max-width: 520px; }
.deg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; font-size: 12px; color: var(--ink-2); }
.deg-read { font-variant-numeric: tabular-nums; }
.deg-today { flex: none; height: 26px; padding: 0 10px; border: 1px solid var(--accent); border-radius: 999px; background: none; color: var(--accent);
  font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.deg-today:hover { background: var(--accent); color: var(--paper); }
.deg-today[hidden] { display: inline-block; visibility: hidden; }
.deg-rail { position: relative; height: 42px; margin: 4px 8px 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer; }
.deg-track { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--paper-3); overflow: hidden; }
.deg-fill { position: absolute; inset: 0; background: var(--accent); opacity: .55; transform-origin: 0 50%; transform: scaleX(0); }
.deg-ticks { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 18px; display: grid; grid-template-columns: repeat(8, 1fr);
  font-size: 10.5px; letter-spacing: .02em; color: var(--ink-3); text-align: center; }
.deg-ticks li { padding-top: 6px; border-left: 1px solid var(--rule); transition: color .2s; }
.deg-ticks li:first-child { border-left-color: transparent; }
.deg-ticks li.is-past { color: var(--ink-2); }
.deg-ticks li.is-now { color: var(--mark); font-weight: 500; }
.deg-ticks li.is-sel { color: var(--accent); }
.deg-now { position: absolute; top: 3px; width: 2px; height: 18px; margin-left: -1px; border-radius: 1px; background: var(--mark); pointer-events: none; }
.deg-knob { position: absolute; top: 12px; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--paper-2);
  border: 2px solid var(--accent); box-shadow: 0 1px 3px rgb(0 0 0 / .18); cursor: grab; transition: scale .2s var(--ease); }
.deg-knob::after { content: ""; position: absolute; inset: -12px; }
.deg-rail.is-drag .deg-knob { cursor: grabbing; scale: 1.18; }
.deg-knob:focus { outline: none; }
.deg-knob:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) { .deg-head { flex-wrap: wrap; } }

/* ---------- Correspondence: calling card + subject line ---------- */
.reach { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(36px, 5vw, 64px); }
.ccard-wrap { perspective: 1100px; }
.ccard { position: relative; aspect-ratio: 1.75; transform-style: preserve-3d; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ccard.is-drag { cursor: grabbing; }
.ccard-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--ink);
  border-radius: 12px; background: var(--paper-2); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 calc(2px + var(--lift, 0) * 14px) calc(6px + var(--lift, 0) * 30px) rgb(20 24 43 / calc(.06 + var(--lift, 0) * .12)); }
.ccard-front::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--rule); border-radius: 7px; pointer-events: none; }
.ccard-back { transform: rotateY(180deg); }
.ccard-top { margin: 0; display: flex; justify-content: space-between; }
.ccard-mono { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 6vw, 68px); line-height: .8; letter-spacing: -.06em; color: var(--ink); }
.ccard-mono span { font-style: italic; color: var(--mark); }
.ccard-name { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.ccard-role { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }
.ccard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ccard-list li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dotted var(--rule); }
.ccard-list li:last-child { border-bottom: 0; }
.ccard-list a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.ccard-all-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.ccard-list a:hover, .ccard-list a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ccard-copy { height: 26px; padding: 0 10px; border: 1px solid var(--ink-3); border-radius: 999px; background: var(--paper); color: var(--ink-2);
  font: 500 10.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.ccard-copy:hover { border-color: var(--accent); color: var(--accent); }
.ccard-copy.is-done { background: var(--up); border-color: var(--up); color: var(--paper); }
.ccard-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.ccard-flip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: none;
  color: var(--ink); font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s; }
.ccard-flip:hover { background: var(--ink); color: var(--paper); }
.ccard-flip[aria-pressed="true"] > span:first-child { display: inline-block; transform: scaleX(-1); }
.ccard-how { font-size: 13px; color: var(--ink-3); }

.compose-set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.compose-set legend { padding: 0; margin: 0 0 12px; }
.compose-chip { position: relative; display: inline-flex; }
.compose-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.compose-chip span { display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border: 1px solid var(--ink-3); border-radius: 999px; font-size: 14px;
  color: var(--ink-2); pointer-events: none; transition: background .2s, border-color .2s, color .2s; }
.compose-chip:hover span { border-color: var(--accent); color: var(--accent); }
.compose-chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.compose-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.compose-chip.is-pop span { animation: ab-pop .5s var(--spring-bounce); }
@keyframes ab-pop { 0% { transform: scale(.94); } 100% { transform: none; } }
.compose-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }
.compose-time { margin: 22px 0 0; display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--ink-2); }
.compose-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--up); transform: translateY(-1px); }
.compose-dot.is-asleep { background: var(--ink-3); }
.mail-link.is-copied { color: var(--up); background-image: linear-gradient(var(--up), var(--up)); background-size: 100% 2px; }

@media (max-width: 860px) { .reach { grid-template-columns: 1fr; } .ccard-wrap { max-width: 420px; } }
@media (pointer: coarse) {
  .ccard-copy { height: 32px; }
  /* The channel links fill their row, so each is a 36px target. */
  .ccard-list { gap: 0; }
  .ccard-list li { min-height: 36px; padding: 0; }
  .ccard-back { padding-top: 10px; padding-bottom: 4px; }
  .ccard-list a { display: block; line-height: 36px; }
  .cook-heat-b { min-height: 40px; }
  .ccard-list li { padding: 3px 0; }
  .compose-chip span { height: 44px; }
  .ccard-flip { height: 44px; }
  .deg-today { height: 36px; }
}

/* ---------- Toy chips (float inside a stage, so tiles never change height) ---------- */
.toy-bar { position: absolute; z-index: 2; display: flex; gap: 6px; }
.toy-chip { position: relative; height: 24px; padding: 0 9px; border: 1px solid var(--ink-3); border-radius: 999px; background: var(--paper); color: var(--ink-2);
  font: 500 10.5px var(--mono); letter-spacing: .02em; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.toy-chip:hover { border-color: var(--accent); color: var(--accent); }
.toy-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.toy-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.toy-chip[hidden] { display: none; }
@media (pointer: coarse) { .toy-chip { height: 30px; } .toy-chip::after { content: ""; position: absolute; inset: -7px -3px; } }
.fly-bar { left: 8px; bottom: 6px; }
/* Aviation: the chart sits above a control band (chips left, ↺ right); the stage grows by the band so the map keeps its size. */
.tile-stage.has-band { --band: 34px; height: calc(clamp(150px, 12.5vw, 176px) + var(--band)); }
.tile-art.is-toy .tile-stage.has-band > svg { bottom: var(--band); height: calc(100% - var(--band)); }
.tile-stage.has-band .fly-bar { bottom: calc((var(--band) - 24px) / 2); }
.tile-stage.has-band .tile-reset { top: auto; left: auto; right: 8px; bottom: calc((var(--band) - 24px) / 2); }
@media (pointer: coarse) {
  .tile-stage.has-band { --band: 46px; }
  .tile-stage.has-band .fly-bar { bottom: calc((var(--band) - 30px) / 2); }
  .tile-stage.has-band .tile-reset { bottom: calc((var(--band) - 28px) / 2); }
}
/* The "Pick a destination" cue sits in the band too, level with the chips (the read-out line under the stage is 18px). */
.tile--fly.is-toy .tile-cue { bottom: 22px; }
@media (pointer: coarse) { .tile--fly.is-toy .tile-cue { bottom: 28px; } }
/* The band makes Aviation's art taller than its neighbours'. The tiles that share its row grow by the same amount,
   so the row's text blocks start level again (two columns: Soccer; three: Soccer and Chipotle). */
.tiles { --fly-band: 34px; }
@media (pointer: coarse) { .tiles { --fly-band: 46px; } }
@media (min-width: 601px) { .tile--ball .tile-stage { height: calc(clamp(150px, 12.5vw, 176px) + var(--fly-band)); } }
@media (min-width: 961px) { .tile--cook .tile-stage { height: calc(clamp(150px, 12.5vw, 176px) + var(--fly-band)); } }
@media (min-width: 961px) and (pointer: coarse) { .tile--cook .tile-stage { height: max(196px, calc(clamp(150px, 12.5vw, 176px) + var(--fly-band))); } }
.ball-bar { right: 8px; top: 8px; }

/* Aviation: a plum contrail behind the plane */
.fly-trail { fill: none; stroke: var(--play); stroke-width: 3.5; stroke-linecap: round; opacity: .32; pointer-events: none; transition: opacity .9s var(--ease); }
.fly-trail.is-fading { opacity: 0; }

/* Soccer: a ball you can see roll, and the pass map */
.ball-g { pointer-events: none; }
.ball-seam { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pass-map { pointer-events: none; }
.tile--ball:not(.show-map) .pass-map { display: none; }
.map-line { stroke: var(--play); stroke-linecap: round; opacity: .35; }
.tile svg text.map-n { font-size: 9px; font-weight: 600; fill: var(--play); paint-order: stroke; stroke: var(--paper-2); stroke-width: 3px; }

/* Chipotle: running macros (illustrative) */
.cook-mac { position: absolute; right: 10px; bottom: 6px; z-index: 1; width: min(calc(100% - min(46%, 172px) - 30px), 190px); font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  text-align: right; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); font-variant-numeric: tabular-nums; }
.tile--cook.has-macro .cook-mac { opacity: 1; }
/* about-play.js places the box under the bowl and steps it down until it fits: no wrapping, never over the drawing. */
.cook-mac p { white-space: nowrap; overflow: hidden; }
.cook-mac.is-short .cook-mac-n { display: none; }
.cook-mac.is-tight { font-size: 10.5px; }
.cook-mac.is-tight p { line-height: 1.2; }
.cook-mac.is-tight .cook-mac-k b { font-size: 12px; }
.cook-mac.is-tight .cook-mac-bar { margin: 2px 0 0; height: 3px; }
.cook-mac.is-mini .cook-mac-g { display: none; }
.tile--cook .cook-mac.is-off { display: none; }
.cook-mac p { margin: 0; line-height: 1.35; }
.cook-mac b { font-weight: 500; color: var(--ink); }
.cook-mac-k b { font-size: 14px; }
.cook-mac-bar { display: flex; height: 4px; margin: 3px 0 2px; border-radius: 2px; overflow: hidden; background: var(--paper-3); }
.cook-mac-bar i { flex: 0 0 0; }
.cook-mac-bar .m-p { background: var(--play); }
.cook-mac-bar .m-c { background: color-mix(in srgb, var(--play) 55%, var(--paper-2)); }
.cook-mac-bar .m-f { background: color-mix(in srgb, var(--play) 28%, var(--paper-2)); }
.cook-mac-n { font-size: 12px; color: var(--ink-3); }


/* The Weeknd: envelope, falling peak caps, a glow that breathes with the bass */
.wv-env { display: none; fill: var(--accent); fill-opacity: .08; stroke: var(--accent); stroke-opacity: .45; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.tile--wave.is-live .wv-env { display: inline; }
.wave rect.wv-cap { fill: var(--accent) !important; opacity: 0; transform: none !important; animation: none !important; transition: none !important; pointer-events: none; }
.tile--wave.is-live .wave rect.wv-cap { opacity: .85; }
.tile--wave .tile-stage::before { content: ""; position: absolute; inset: 6% 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  opacity: calc(var(--bass, 0) * 1.5); transform: scale(calc(.8 + var(--bass, 0) * .35)); }

/* =========================================================
   Phones (≤600px)
   - The monogram plate is a placeholder: smaller, so the bio and the tiles come sooner.
   - Soccer's drag-to-pass pitch is too small for a thumb and fights the page scroll; the tile keeps its words.
     Aviation (tap an airport), Chipotle (tap chips), The Weeknd (play) and Volunteering (tap a dot) stay.
   - Subject chips sit two by two instead of wrapping 3 + 1.
   ========================================================= */
@media (max-width: 600px) {
  .ab-hero { padding-bottom: 64px; }
  .ab-hero-grid { gap: 40px; }
  .portrait { max-width: 100%; }
  .plate { aspect-ratio: 16 / 10; padding: 16px; }
  .plate-mono { font-size: 104px; }
  .plate-line { bottom: 30%; }
  .plate .plate-n { left: 16px; bottom: 60px; }

  .tile--ball .tile-art { display: none; }

  .ab-off, .ab-now { padding-bottom: 72px; }
  .compose-set { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .compose-chip span { width: 100%; justify-content: center; }

  /* Small mono labels people have to read or tap: 11.5px, not 10.5 */
  .cook-chip, .cook-lidbtn, .cook-heat-b, .toy-chip, .deg-ticks { font-size: 11.5px; }
  .cook-chip, .cook-lidbtn { padding: 0 6px; gap: 4px; letter-spacing: 0; }
  .deg-ticks { letter-spacing: 0; }
  .deg-read { text-wrap: pretty; }
}

@media (prefers-reduced-motion: reduce) {
  .board-clock.is-flip [data-clock], .board-clock.is-flip .board-where, .board-clock.is-flip .board-tz, .compose-chip.is-pop span { animation: none; }
  .fly-trail, .plate-dot, .deg-knob { transition: none; }
  .plate .plate-n.is-tick b, .cook-heat-b.is-pop, .compose-set.is-called .compose-chip span { animation: none; }
  .tile--wave .tile-stage::before { display: none; }
}
