/* Self-hosted via Fontsource. Ultra (Apache-2.0) for the name; Slabo 27px and Slabo 13px (OFL-1.1) for everything else. */
@font-face { font-family: "Ultra"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ultra.woff2) format("woff2"); }
@font-face { font-family: "Slabo 27px"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/slabo-27.woff2) format("woff2"); }
@font-face { font-family: "Slabo 13px"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/slabo-13.woff2) format("woff2"); }
/* Wilfredo Baez portfolio. Tokens are defined in DESIGN.md; change them there first.
   The blue cutting-mat blueprint behind everything, the name in the top left in Ultra, the builds as liquid glass
   cards that animate, a glass lens that follows the cursor, coordinates that move in the margins as you scroll.
   Ultra for the name only; Slabo for everything else (the 27px cut for large type, the 13px cut for text). */
:root {
  --mat: #1f4fd8;          /* cutting-mat blue; white 6.4:1 */
  --mat-2: #1a43c2;
  --line: rgba(255, 255, 255, .16);
  --line-2: rgba(255, 255, 255, .06);
  --bp: #1f4fd8;
  --bp-muted: #dbe4ff;     /* 5.4:1 on --mat */
  --glass: rgba(255, 255, 255, .12);
  --ink: #ffffff;
  --muted: #dbe4ff;
  --rule: rgba(255, 255, 255, .25);
  --accent: #ffe1a8;       /* links and bullets on the mat; 9.3:1 on --mat */
  --surface: rgba(255, 255, 255, .12);
  --surface-2: rgba(255, 255, 255, .18);
  --name: "Ultra", "Rockwell Extra Bold", Georgia, serif;
  --display: "Slabo 27px", Rockwell, Georgia, serif;   /* 20px and up */
  --text: "Slabo 13px", Rockwell, Georgia, serif;      /* body, labels, measurements */
  /* Layout: one page column, one gutter, one section rhythm. Every section and page lines up on the same edges. */
  --wide: 1080px;
  --gutter: clamp(52px, 6vw, 72px);                   /* clears the left ruler and the side readout on every width */
  --page: min(var(--wide), calc(100% - 2 * var(--gutter)));
  --section: clamp(96px, 11vw, 150px);
  --pad: 22px;                                          /* inside cards and panels */
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { position: relative; margin: 0; min-height: 100svh; background: var(--mat); color: var(--ink); font: 400 16.5px/1.6 var(--text); font-synthesis: none; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Slabo and Ultra each come in one weight; font-synthesis: none stops the browser faking a smeared bold. */
b, strong { font-weight: 400; color: #fff; }

/* The page column every section shares. */
.col, .intro, .work, .contact, .foot-in { width: var(--page); margin-inline: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
.ext::after { content: "↗"; margin-left: 4px; font-size: .85em; opacity: .75; }
::selection { background: #fff; color: var(--mat-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 60; padding: 8px 12px; border-radius: 8px; background: #fff; color: var(--mat-2); }
.skip:focus { top: 12px; }

/* The cutting mat: 1cm squares with mm subdivisions, 45 and 30 degree guides, a protractor arc. Fixed. */
.mat { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(var(--line-2) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px) 0 0 / 12px 12px,
    radial-gradient(120% 100% at 50% 35%, #2459e6, var(--mat-2)); }
.mat::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent calc(50% - .5px), rgba(255,255,255,.14) 50%, transparent calc(50% + .5px)),
              linear-gradient(-30deg, transparent calc(50% - .5px), rgba(255,255,255,.10) 50%, transparent calc(50% + .5px)); }
.mat::after { content: ""; position: absolute; width: 780px; height: 780px; right: -260px; bottom: -320px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 60px rgba(255,255,255,.02), inset 0 0 0 120px rgba(255,255,255,.015); }
/* Margins: the top ruler stays put; the left ruler is as long as the page, so its numbers travel as you scroll. */
.ruler-x, .ruler-y { z-index: -1; display: flex; font: 400 10px var(--text); letter-spacing: .02em; color: rgba(255,255,255,.6); pointer-events: none; overflow: hidden; }
.ruler-x { position: fixed; z-index: 45; top: 6px; left: 0; right: 0; }
.ruler-x span { flex: 0 0 60px; padding-left: 3px; border-left: 1px solid rgba(255,255,255,.35); height: 14px; }
.ruler-y { position: absolute; flex-direction: column; top: 0; bottom: 0; left: 6px; }
.ruler-y span { flex: 0 0 60px; padding-top: 3px; border-top: 1px solid rgba(255,255,255,.35); width: 14px; }
.coord { position: fixed; z-index: 30; left: 24px; top: 50%; display: flex; gap: 14px; padding: 4px 10px; transform-origin: 0 0; rotate: -90deg; translate: 0 90px; border-radius: 10px; font: 400 12px var(--text); letter-spacing: .06em; color: var(--bp-muted); background: rgba(16, 40, 150, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); pointer-events: none; font-variant-numeric: tabular-nums; }
.coord b { display: inline-block; min-width: 4.2ch; text-align: right; color: #fff; }

/* The glass lens that follows the cursor (pointer devices only; app.js moves it). */
.lens { position: fixed; z-index: 70; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.5) 0 8%, transparent 26%), radial-gradient(circle at 50% 50%, transparent 55%, rgba(255,255,255,.22) 72%, rgba(255,255,255,.05) 100%);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.6) brightness(1.12) contrast(1.05); backdrop-filter: blur(1.5px) saturate(1.6) brightness(1.12) contrast(1.05);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.8), inset 0 -2px 6px rgba(255,255,255,.25), 0 0 0 1px rgba(255,255,255,.45), 0 10px 24px -8px rgba(5,15,80,.7);
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .3s; }
.lens.on { opacity: 1; }
.lens.big { width: 78px; height: 78px; margin: -39px 0 0 -39px; }

/* Liquid glass */
.glass { position: relative; background: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.06) 40%, rgba(255,255,255,.12));
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(255,255,255,.25), 0 30px 70px -30px rgba(5,15,80,.8); }

/* Type */
.label { font: 400 13px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--bp-muted); }
.kicker { font: 400 12px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--bp-muted); }
.pill { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font: 400 14px var(--text); letter-spacing: .02em; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); transition: background .15s; }
.pill:hover { background: rgba(255,255,255,.26); }
.pill.solid { background: #fff; color: var(--mat-2); box-shadow: none; }
.pill.solid:hover { background: #eef2ff; }

/* Header: the name, small, top left; the nav top right. */
.mast { position: fixed; z-index: 40; top: 22px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; pointer-events: none; }
.mast > * { pointer-events: auto; }
/* A frosted band behind the header, so nothing scrolls through the name. It fades out downward. */
.mast::before { content: ""; position: fixed; z-index: -1; left: 0; right: 0; top: 0; height: 104px; pointer-events: none;
  background: linear-gradient(rgba(29, 72, 205, .82), rgba(29, 72, 205, .5) 60%, rgba(29, 72, 205, 0));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.who { font: 400 22px/1 var(--name); letter-spacing: .01em; padding: 6px 0; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 14px; font: 400 15px var(--text); }
.nav a, .nav button { padding: 6px 12px; border: 0; border-radius: 9px; background: none; cursor: pointer; transition: background .15s; }
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.16); }

/* The blurb */
.intro { padding: clamp(130px, 15vw, 180px) 0 clamp(48px, 6vw, 72px); }
.blurb { max-width: 30ch; font: 400 clamp(27px, 3.4vw, 42px)/1.25 var(--display); letter-spacing: -.005em; }
.blurb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; font: 400 14.5px var(--text); color: var(--bp-muted); }
.blurb-meta b { color: #fff; }

/* Glass sheets: the About panel and each build's details (native popovers). */
.sheet { margin: auto; width: min(760px, calc(100vw - 32px)); max-height: min(86svh, 900px); overflow: auto; padding: 36px; border: 0; border-radius: 24px; color: #fff; background: linear-gradient(140deg, rgba(40, 90, 240, .72), rgba(20, 55, 190, .8)); }
.sheet::backdrop { background: rgba(8, 20, 90, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet:popover-open { animation: rise .35s var(--ease); }
.close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.sheet h2 { margin: 8px 0 18px; font: 400 32px/1.15 var(--display); }
.sheet .letter p { max-width: 62ch; } .sheet .letter p + p { margin-top: 12px; }
.sheet .letter .open { font: 400 21px/1.45 var(--display); }
.sheet .sig { margin-top: 20px; display: grid; gap: 2px; font: 400 18px var(--display); } .sheet .sig span + span { font: 400 12px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--bp-muted); }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.d-head { display: flex; align-items: center; gap: 14px; }
.d-head h3 { font: 400 30px/1.15 var(--display); }
.d-lead { margin-top: 14px; font-size: 17px; }
.d-facts { margin-top: 18px; }
.d-facts > div { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.22); }
.d-facts dt { font: 400 12px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--bp-muted); padding-top: 3px; }
.out li { position: relative; padding-left: 16px; } .out li + li { margin-top: 6px; }
.out li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes rise { from { opacity: 0; translate: 0 16px; scale: .98; } }

/* The stack chip under each card: a little summary of the stack that opens the build's details. */
.stack-chip { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 16px; border: 0; border-radius: 14px; font: 400 13.5px var(--text); text-align: left; cursor: pointer; transition: translate .25s var(--ease); }
.stack-chip:hover { translate: 0 -2px; }
.sc-k { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bp-muted); }
.sc-list { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-k, .sc-go { flex: none; white-space: nowrap; }
.sc-go { margin-left: auto; font-size: 12px; color: var(--bp-muted); }
.sc-go::after { content: " ↗"; }
.bubbles { display: flex; flex-wrap: wrap; gap: 6px; }
.bubbles li { padding: 4px 12px; border-radius: 999px; font: 400 14px/1.45 var(--text); color: #fff; background: color-mix(in srgb, var(--tint, #fff) 24%, rgba(255,255,255,.1)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.34); }

/* Work: every build as a living card: its icon, its number counting in, a motif of its own. */

.work > .label { margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; }
.card { --tint: #ffffff; position: relative; grid-column: span 1; min-width: 0; }
.card.s2 { grid-column: span 2; }
.card.s3 { grid-column: span 3; }
.card.s3 > a { height: 330px; }
.card.s3 .c-num { top: 34%; } .card.s3 .c-label { top: calc(34% + clamp(56px, 7.2vw, 92px)); }
.card > a { position: relative; display: block; height: 420px; container-type: inline-size; border-radius: 20px; overflow: hidden; background: linear-gradient(140deg, rgba(255,255,255,.2), rgba(255,255,255,.05) 45%, rgba(255,255,255,.1)); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px rgba(255,255,255,.25), 0 30px 70px -30px rgba(5,15,80,.8); transition: box-shadow .3s, translate .35s var(--ease); }
.card > a:hover { translate: 0 -4px; }
.card > a:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--tint) 45%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--tint) 45%, transparent); }
.cm { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(80% 90% at 82% 12%, color-mix(in srgb, var(--tint) 38%, transparent), transparent 62%); }
.cm::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(#000, transparent 80%); mask-image: linear-gradient(#000, transparent 80%); }
.c-ring { position: absolute; width: 360px; height: 360px; right: -100px; top: -120px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--tint) 55%, transparent); box-shadow: 0 0 0 46px color-mix(in srgb, var(--tint) 6%, transparent); transition: scale 1s var(--ease); }
.card a:hover .c-ring { scale: 1.08; }
.c-icon { position: absolute; z-index: 1; left: var(--pad); top: var(--pad); width: 72px; height: 72px; border-radius: 17px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 18px 34px -12px rgba(0,0,0,.7); transition: translate .5s var(--ease), rotate .5s var(--ease); }
.c-icon img, .d-icon img { display: block; width: 100%; height: 100%; }
/* A glass sheen that crosses each real icon now and then. */
.c-icon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); translate: -120% 0; pointer-events: none; }
/* Command-line tools have no icon: their tile is the real command, with a blinking caret. */
.term { display: flex; align-items: flex-end; flex-wrap: wrap; align-content: flex-end; gap: 0 4px; padding: 9px; background: linear-gradient(160deg, #10172e, #060912); font: 500 10.5px/1.25 var(--text); color: #c9f7d6; }
.term span { color: #7fe0b5; }
.term i { display: inline-block; width: 6px; height: 12px; background: #c9f7d6; }
.d-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
.c-icon.term { width: auto; min-width: 150px; height: 60px; padding: 24px 12px 0; flex-wrap: nowrap; align-items: center; align-content: center; gap: 6px; font-size: 12px; white-space: nowrap; border-radius: 12px; }
.c-icon.term::before { content: ""; position: absolute; left: 10px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: #ff6b5f; box-shadow: 11px 0 0 #ffbd2e, 22px 0 0 #28c840; }
.d-icon.term { flex: 0 0 auto; width: auto; height: 40px; padding: 0 10px; flex-wrap: nowrap; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; border-radius: 10px; }
.card a:hover .c-icon { translate: 0 -4px; rotate: -4deg; }
.c-num { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); top: 40%; font-family: var(--display); font-size: clamp(46px, 6vw, 78px); line-height: 1; letter-spacing: -.01em; font-weight: 400; text-transform: uppercase; color: #fff; text-shadow: 0 0 30px color-mix(in srgb, var(--tint) 60%, transparent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card.s2 .c-num { font-size: clamp(58px, 7.6vw, 104px); }
.c-label { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); top: calc(40% + clamp(56px, 7.2vw, 92px)); font: 400 14.5px/1.4 var(--text); letter-spacing: .01em; color: color-mix(in srgb, var(--tint) 25%, #fff); }
.card.s2 .c-label { top: calc(40% + clamp(68px, 9vw, 120px)); }
.card > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; pointer-events: none; background: linear-gradient(transparent, rgba(10, 30, 120, .7) 60%); }
.arrow { position: absolute; z-index: 2; top: 16px; right: 16px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; color: #fff; background: rgba(255,255,255,.08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s; }
.card a:hover .arrow { background: rgba(255,255,255,.22); }
.cap { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 15px; line-height: 1.4; }
.card.s1 .cap { flex-direction: column; align-items: flex-start; gap: 4px; }
.ct b { color: #fff; }
.ct span { color: rgba(255,255,255,.72); }
.cp { font: 400 12.5px var(--text); letter-spacing: .03em; color: rgba(255,255,255,.75); white-space: nowrap; }

/* For the Record: a spinning record, the app icon as its label, a tonearm resting on the groove. */
.vinyl { position: absolute; width: min(390px, 56cqi); aspect-ratio: 1; right: 6%; top: 50%; translate: 0 -54%; border-radius: 50%;
  background: radial-gradient(circle, transparent 30%, rgba(255,255,255,.06) 31%, transparent 32%), repeating-radial-gradient(circle, #141210 0 2px, #1f1b17 2px 4px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), inset 0 0 0 2px rgba(255,255,255,.04); animation: spin 3.2s linear infinite; }
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 40deg, rgba(255,255,255,.14) 60deg, transparent 80deg 220deg, rgba(255,255,255,.08) 240deg, transparent 260deg); }
.vl { position: absolute; left: 50%; top: 50%; width: 34%; height: 34%; translate: -50% -50%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px #241f1a; }
.vl img { width: 100%; height: 100%; object-fit: cover; }
.arm { position: absolute; z-index: 1; right: calc(6% - 6px); top: 10%; width: 10px; height: min(230px, 34cqi); border-radius: 6px; background: linear-gradient(#d9d4cc, #8f8a82); transform-origin: 50% 6px; rotate: 24deg; box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.arm::after { content: ""; position: absolute; left: -7px; bottom: -6px; width: 24px; height: 34px; border-radius: 5px; background: #bdb7ae; rotate: -24deg; }
.m-vinyl .c-num, .m-vinyl .c-label { right: 52%; }

/* Lagoon: water, flowing: drifting pools of light and two moving waves. */
.water { position: absolute; inset: 0; background: linear-gradient(180deg, #0c3a6e 0%, #0e5f8c 55%, #12809e 100%); }
.water i { position: absolute; border-radius: 50%; filter: blur(38px); opacity: .75; mix-blend-mode: screen; }
.water i:nth-child(1) { width: 300px; height: 300px; left: -60px; top: 10%; background: #3fd0ff; animation: drift 11s ease-in-out infinite alternate; }
.water i:nth-child(2) { width: 260px; height: 260px; right: -40px; top: 30%; background: #2a7bff; animation: drift 13s ease-in-out -4s infinite alternate-reverse; }
.water i:nth-child(3) { width: 220px; height: 220px; left: 30%; bottom: -60px; background: #7ff0e0; animation: drift 9s ease-in-out -2s infinite alternate; }
.water svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 46%; animation: flow 9s linear infinite; }
.water svg path:nth-child(1) { fill: rgba(170, 240, 255, .32); }
.water::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(255,255,255,.08) 22px 24px, transparent 24px 46px); animation: flow 7s linear infinite; mix-blend-mode: screen; }
.water svg path:nth-child(2) { fill: rgba(210, 252, 255, .26); animation: flow 6s linear infinite reverse; }
.m-water .c-ring { display: none; }

/* Self-drawing lines: a pulse, and a curve falling under the fee line. */
.trace { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 16%; opacity: .9; }
.trace path { fill: none; stroke: var(--tint); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 3.2s var(--ease) .3s forwards; filter: drop-shadow(0 0 6px var(--tint)); }
.trace .fee { stroke: rgba(255,255,255,.5); stroke-width: 1.5; stroke-dasharray: 5 7; stroke-dashoffset: 0; animation: none; filter: none; }
.m-pulse .trace path:not(.fee) { animation: draw 3.2s var(--ease) .3s forwards, beat 2.4s ease-in-out 3.5s infinite; }

/* Vigil, further down: the stage pins while the hand closes and the crew lights step by step. */
.vigil { --vp: 0; position: relative; height: 260svh; margin-top: var(--section); overflow: clip; }
.v-stage { position: sticky; top: 0; height: 100svh; padding: 96px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; overflow: hidden; }
.v-media { position: relative; height: 100%; order: 2; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.v-media .poster, .v-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-media canvas { opacity: 0; transition: opacity .7s; }
.v-media canvas.live { opacity: 1; }
.v-copy { order: 1; max-width: 520px; margin-left: max(var(--gutter), calc((100vw - var(--wide)) / 2)); padding: 32px; border-radius: 24px; color: #eef2ff; font-size: 16px; line-height: 1.65; }
.v-copy h2 { margin: 10px 0 18px; font: 400 clamp(30px, 3vw, 40px)/1.12 var(--display); color: #fff; }
.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0; }
.crew li { padding: 14px; border-radius: 12px; background: var(--glass); box-shadow: 0 0 0 1px rgba(255,255,255,.16); font-size: 13.5px; line-height: 1.45; color: #e3e9ff; transition: box-shadow .4s, background .4s; }
.crew li b { display: block; font: 400 17px var(--display); color: #c9d4ff; margin-bottom: 4px; transition: color .4s; }
.crew li.on b { color: #fff; }
.crew li.on { background: rgba(60, 30, 20, .55); box-shadow: 0 0 0 1px rgba(255,122,26,.55), 0 14px 40px -18px rgba(255,122,26,.6); }
.v-stats { display: grid; gap: 6px; margin-bottom: 22px; }
.v-stats li { position: relative; padding-left: 18px; }
.v-stats li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: #ff7a1a; }

@keyframes spin { to { rotate: 360deg; } }
@keyframes drift { to { translate: 60px -30px; scale: 1.15; } }
@keyframes flow { to { translate: -50% 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beat { 50% { opacity: .55; } }

/* Contact */
.contact { margin-top: var(--section); padding-bottom: var(--section); }
.contact > * { max-width: 720px; }
.contact h2 { font: 400 clamp(32px, 4.4vw, 50px)/1.1 var(--display); }
.contact > p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 54ch; }
.contact > .clinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.contact > .cl-note { margin-top: 22px; font-size: 15px; }
.cl-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.5); }

/* Footer */
.foot { border-top: 1px solid var(--rule); }
.foot-in { padding: 32px 0 80px; display: grid; gap: 6px; font: 400 14.5px var(--text); color: var(--bp-muted); }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fine { font: 400 13px var(--text); }

/* Case study */
.case { max-width: 760px; padding: clamp(120px, 13vw, 160px) 0 0; }
.crumb { font-size: 15px; color: var(--muted); }
.crumb::before { content: "← "; }
.crumb:hover { color: var(--accent); }
.case h1 { font: 400 clamp(38px, 5vw, 56px)/1.08 var(--display); margin: 18px 0 14px; }
.case .lead { font: 400 22px/1.45 var(--display); color: var(--muted); max-width: 40ch; }
.case .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; font: 400 14px/1.5 var(--text); color: var(--muted); }

.receipt { font: 400 14px/1.5 var(--text); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hl { margin-top: 24px; padding: 14px 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font-size: 16.5px; }
.hl::before { content: "Outcome"; margin-right: 10px; font: 400 12px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.shot { position: relative; margin-top: 32px; border-radius: 14px; overflow: hidden; background: #07060d; box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 24px 60px -24px rgba(0,0,0,.7); }
.shot img { display: block; width: 100%; height: auto; }
.shot.phone { max-width: 320px; margin-left: auto; margin-right: auto; padding: 14px 14px 0; }
.shot.phone img { border-radius: 18px; }
.live-shot canvas.hand { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 720 / 403; opacity: 0; transition: opacity .6s; }
.live-shot canvas.hand.live { opacity: 1; }
.shot figcaption { padding: 10px 14px 12px; font-size: 12.5px; color: var(--muted); }
.facts { margin-top: 40px; }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pager { max-width: 760px; display: flex; justify-content: space-between; gap: 16px; margin: 56px 0 var(--section); padding-top: 20px; border-top: 1px solid var(--rule); }
.pager a { display: grid; gap: 2px; font: 400 20px var(--display); }
.pager a:hover { color: var(--accent); }
.pager span { font: 400 13px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pager .next { text-align: right; }
.nf { padding-bottom: 120px; }
.nf a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Cards settle in as they scroll into view. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes reveal { from { translate: 0 28px; filter: blur(4px); } }
  }
}
/* Motion, all of it skipped under reduced motion.
   1 the name rises in letter by letter; 2 each real icon springs in when its card is first seen, then a sheen
   crosses it every few seconds; 3 cards tilt toward the pointer with a glare that follows it (fine pointers);
   4 the ruler tick under the pointer and at the scroll line lights up; 5 the command tiles blink their caret. */
.who span { display: inline-block; }
.ruler-x span, .ruler-y span { transition: color .25s, border-color .25s, background .25s; }
.ruler-x span.hot, .ruler-y span.hot { color: #fff; border-color: #fff; background: rgba(255,255,255,.14); }
.card > a { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; }
.card > a::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; border-radius: inherit;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 60%); transition: opacity .3s; }
.card > a.tilt::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .who span { animation: rise .8s var(--ease) both; }
  .who span:nth-child(2) { animation-delay: .03s; } .who span:nth-child(3) { animation-delay: .06s; } .who span:nth-child(4) { animation-delay: .09s; }
  .who span:nth-child(5) { animation-delay: .12s; } .who span:nth-child(6) { animation-delay: .15s; } .who span:nth-child(7) { animation-delay: .18s; }
  .who span:nth-child(8) { animation-delay: .21s; } .who span:nth-child(9) { animation-delay: .24s; } .who span:nth-child(10) { animation-delay: .27s; }
  .who span:nth-child(11) { animation-delay: .30s; } .who span:nth-child(12) { animation-delay: .33s; } .who span:nth-child(13) { animation-delay: .36s; }
  .who:hover span { animation: hop .5s var(--ease); }
  .who:hover span:nth-child(odd) { animation-delay: .04s; }
  @keyframes rise { from { opacity: 0; translate: 0 .6em; filter: blur(3px); } }
  @keyframes hop { 40% { translate: 0 -3px; } }
  .js .card .c-icon { opacity: 0; scale: .6; rotate: -12deg; }
  .js .card.seen .c-icon { animation: pop .9s cubic-bezier(.3, 1.6, .5, 1) forwards; }
  .card.seen .c-icon::after { animation: sheen 6s 1.4s ease-in-out infinite; }
  .card:nth-child(3n+2).seen .c-icon::after { animation-delay: 3s; } .card:nth-child(3n).seen .c-icon::after { animation-delay: 4.4s; }
  @keyframes pop { to { opacity: 1; scale: 1; rotate: 0deg; } }
  @keyframes sheen { 0%, 70% { translate: -120% 0; } 85%, 100% { translate: 120% 0; } }
  .card > a { transition: box-shadow .3s, translate .35s var(--ease), transform .5s var(--ease); }
  .card > a.tilt { transition: box-shadow .3s, translate .35s var(--ease), transform .08s linear; }
  .card > a.tilt .c-icon, .card > a.tilt .c-num { translate: calc(var(--ry, 0deg) / 1deg * 1.2px) calc(var(--rx, 0deg) / 1deg * -1.2px); }
  .term i { animation: caret 1.1s steps(1) infinite; }
  @keyframes caret { 50% { opacity: 0; } }
}

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.s2, .card.s3 { grid-column: span 2; }
  .v-stage { grid-template-columns: 1fr; grid-template-rows: 46svh auto; align-items: start; }
  .v-media { order: 1; } .v-copy { order: 2; max-width: none; margin: 0 var(--gutter); font-size: 16px; }
  .v-copy > p:first-of-type, .v-stats { display: none; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  :root { --gutter: 20px; --pad: 18px; }
  .mast { top: 14px; left: 18px; right: 12px; } .who { font-size: 17px; }
  .nav { font-size: 14px; } .nav a, .nav button { padding: 6px 8px; }
  .ruler-y { display: none; }
  /* On phones the readout turns on its side and lives in the left margin, clear of the cards. */
  .coord { left: 2px; gap: 10px; padding: 3px 8px; font-size: 10px; translate: 0 60px; }
  .coord span:nth-child(2) { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .card, .card.s2, .card.s3 { grid-column: span 1; }
  .card > a { height: 340px; }
  .card.s2 .c-num, .c-num { font-size: 54px; }
  .card.s2 .c-label, .c-label { top: calc(40% + 64px); }
  .vinyl { width: 72cqi; right: -16%; } .arm { height: 48cqi; }
  .m-vinyl .c-num, .m-vinyl .c-label { right: 40%; }
  .cap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sheet { padding: 28px 20px; } .d-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (hover: none), (pointer: coarse) { .lens { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .trace path { stroke-dashoffset: 0; }
  .lens { display: none; }
}
.t-for-the-record { --tint: #ff6a4d; }
.t-lagoon { --tint: #5fd0e6; }
.t-sundial { --tint: #f0b14a; }
.t-cadence { --tint: #b5e34a; }
.t-clinical-notes { --tint: #4fc3b2; }
.t-vigil { --tint: #ff7a1a; }
.t-hunt-board { --tint: #4ade80; }
.t-topiclens { --tint: #ff8a6b; }
.t-claude-pulse { --tint: #ff7a5c; }
.t-market-research { --tint: #7fe0b5; }
.t-brain { --tint: #a99bff; }
.t-clean-room { --tint: #a9c8ff; }
.t-studio5 { --tint: #ff5470; }
.t-ponte-bella { --tint: #e0b26a; }
