﻿/* Zyad Hossameldien portfolio.
   Idea: the page is the hand-soldered controller board from Project Horizon.
   Colours come from a circuit board: solder-mask green, gold pads, bone silkscreen.
   Type: Archivo set wide and heavy for headings, like the lettering on equipment. Instrument Sans for reading. */

:root {
  --bone: #ebece5;
  --gold: #e3b43c;
  --gold-well: #d2a32b;
  --ink-green: #17382b;
  --signal: #f0563a; /* the one surprise colour: only on things that are live or moving */

  /* Light theme */
  --bg: #ebece5;
  --surface: #dedfd3;
  --ink: #17382b;
  --muted: #44584c;
  --board: #1b4a36;
  --board-well: #153b2b;
  --board-ink: #ebece5;
  --board-soft: #d3dccd;
  --sheet: #f0f3ee;
  --sheet-well: #dedfd3;
  --sheet-ink: #17382b;
  --sheet-soft: #44584c;
  --foot: #11291f;
  --trace-line: #235a43;
  --focus: var(--ink);

  --display: "Archivo", "Arial Black", sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.875rem, 0.86rem + 0.08vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.2rem + 3.4vw, 4.25rem);

  --m: clamp(16px, 2.2vw, 32px);
  --top-h: 60px;
  --bar-h: 56px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] {
  --bg: #0a1510;
  --surface: #0f1f18;
  --ink: #e9eae2;
  --muted: #a8b4a6;
  --board: #123425;
  --board-well: #0b2519;
  --sheet: #13271d;
  --sheet-well: #0d1d15;
  --sheet-ink: #e9eae2;
  --sheet-soft: #a8b4a6;
  --foot: #060d0a;
  --trace-line: #1b4a36;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); scrollbar-color: var(--gold) var(--bg); /* a gold scroll bar on every page */ -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 300ms ease, color 300ms ease;
}
::selection { background: var(--gold); color: var(--ink-green); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-stretch: 116%; font-weight: 800; text-wrap: balance; }
h2 { font-size: var(--step-head); letter-spacing: -0.035em; line-height: 0.98; }
h2 > span, .also h3 > span { color: var(--muted); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
svg { display: block; }

.wrap { padding-inline: var(--m); }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 100; background: var(--gold); color: var(--ink-green); padding: 12px 16px; font-weight: 500; }
.skip:focus { top: 8px; }
html:not(.js) .needs-js { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Placeholders the owner still has to fill. */
.ph { background: color-mix(in srgb, currentColor 16%, transparent); padding: 0.05em 0.3em; font-weight: 500; }

/* Buttons: square, flat, one shape. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn.gold { background: var(--gold); color: var(--ink-green); min-height: 52px; padding: 0 24px; }
.btn:active, .quiet:active, .switch:active, .switch-flip:active, .filters button:active { transform: scale(0.97); }
.text-link { font-weight: 600; }
.quiet {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 12px; font-weight: 500;
  transition: transform 140ms var(--ease-out), background-color 140ms ease;
}
kbd { font: inherit; font-size: var(--step-small); background: var(--surface); padding: 2px 7px; }
@media (hover: hover) and (pointer: fine) {
  .quiet:hover, .top-nav a:hover { background: var(--surface); }
  .btn:hover { background: var(--gold); color: var(--ink-green); }
  .btn.gold:hover { background: var(--bone); }
  .theme-btn:hover { background: var(--surface); }
  .icon-link:hover { color: var(--gold); }
}

/* Scroll trace: a gold trace that runs the length of the page. */
.trace { position: fixed; left: 0; top: 0; z-index: 60; width: 5px; height: 100svh; background: var(--gold); transform: scaleY(0); transform-origin: top; pointer-events: none; }
html:not(.js) .trace { display: none; }

/* A gold ring that trails the pointer and swells over anything you can press. */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .anim .cursor {
    display: block; position: fixed; left: -19px; top: -19px; z-index: 90; width: 38px; height: 38px; border-radius: 50%;
    border: 2px solid var(--gold); pointer-events: none; opacity: 0;
    transition: opacity 200ms ease, width 200ms var(--ease-out), height 200ms var(--ease-out), left 200ms var(--ease-out), top 200ms var(--ease-out), background-color 200ms ease;
  }
  .anim .cursor.on { opacity: 1; }
  .anim .cursor.big { width: 64px; height: 64px; left: -32px; top: -32px; background: color-mix(in srgb, var(--gold) 22%, transparent); }
}

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: 8px;
  padding-inline: var(--m); background: var(--bg);
  transition: background-color 300ms ease;
}
.mark { display: block; margin-right: auto; }
.top-nav { display: flex; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; transition: background-color 140ms ease; }
.top-actions { display: flex; align-items: center; gap: 4px; }
.top-actions .btn { margin-left: 8px; }
.narrow { display: none; }

/* Hero: the board */
.hero { padding: 0 var(--m) var(--m); }
.board {
  --focus: var(--gold);
  position: relative; overflow: hidden;
  background: var(--board); color: var(--board-ink);
  min-height: calc(100svh - var(--top-h) - var(--m));
  padding: clamp(40px, 5vw, 72px) clamp(22px, 4vw, 64px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center;
  transition: background-color 300ms ease;
}
/* The drone is drawn on one canvas fixed to the window. On the first screen the words sit above it; further down it flies over the page. */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.hole { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); transition: background-color 300ms ease; }
.hole.h1 { left: 14px; top: 14px; } .hole.h2 { right: 14px; top: 14px; }
.hole.h3 { left: 14px; bottom: 14px; } .hole.h4 { right: 14px; bottom: 14px; }

.ident { position: relative; z-index: 45; grid-column: 1 / span 7; container-type: inline-size; }
.ident h1 { font-size: clamp(2.1rem, 9vw, 5.4rem); font-size: min(5.4rem, max(2.1rem, 11.2cqi)); letter-spacing: -0.035em; line-height: 0.95; }
.lead { font-size: var(--step-lead); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; margin-top: 32px; max-width: 24em; }
.statement { margin-top: 16px; max-width: 34em; color: var(--board-soft); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.cta .text-link { display: inline-flex; align-items: center; min-height: 44px; }

.controller { position: relative; z-index: 45; grid-column: 8 / -1; }
.controller h2 { font-size: var(--step-lead); font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.15; }
.controller-note { margin-top: 10px; font-size: 1rem; color: var(--board-soft); }
.sticks { display: flex; gap: clamp(16px, 3vw, 40px); margin-top: 28px; }
.stick-unit { display: grid; gap: 10px; justify-items: center; }
.stick {
  position: relative; width: clamp(124px, 12vw, 168px); aspect-ratio: 1; border-radius: 50%;
  background: var(--board-well); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.stick:active { cursor: grabbing; }
.knob { position: absolute; left: 28%; top: 28%; width: 44%; height: 44%; border-radius: 50%; background: var(--gold); will-change: transform; }
.stick-name { font-size: var(--step-small); color: var(--board-soft); }
.switches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.switch, .switch-flip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: var(--board-well); font-size: 1rem; font-weight: 500;
  transition: transform 140ms var(--ease-out);
}
.switch .pad { width: 30px; height: 16px; background: var(--board); position: relative; }
.switch .pad::after { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 16px; background: #8fa392; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.switch[aria-pressed="true"] .pad::after { transform: translateX(15px); background: var(--gold); }
.switch-flip { margin-left: auto; }
.packet { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 16px; }
.packet li { background: var(--board-well); padding: 10px 2px 8px; text-align: center; display: grid; gap: 2px; min-width: 0; }
.packet b { font-family: var(--display); font-size: var(--step-lead); font-weight: 700; line-height: 1.1; }
.packet span { font-size: 0.8125rem; color: var(--board-soft); white-space: nowrap; }
.packet li.sum { grid-column: span 2; background: var(--gold); color: var(--ink-green); }
.packet li.sum span { color: var(--ink-green); }
.packet li.bad { background: var(--bone); color: var(--ink-green); }
.packet li.bad span { color: var(--ink-green); }
.rx { margin-top: 12px; font-size: 1rem; min-height: 4.5em; color: var(--board-soft); }

/* Work: a drawer of folders. The tabs stay on screen and each one opens its folder. */
.work { padding-top: clamp(96px, 12vw, 180px); }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.filters { display: flex; gap: 4px; background: var(--surface); padding: 4px; }
.filters button { min-height: 44px; padding: 0 18px; font-weight: 500; transition: transform 140ms var(--ease-out), background-color 140ms ease; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.tabbar {
  position: sticky; top: var(--top-h); z-index: 20; height: var(--bar-h);
  display: flex; align-items: flex-end; gap: 4px; padding-inline: var(--m);
  background: var(--bg); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  transition: background-color 300ms ease;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbtn {
  --focus: currentColor;
  flex: none; display: inline-flex; align-items: center; height: 48px; padding: 0 44px 0 20px;
  background: var(--board); color: var(--board-ink);
  font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 100%, 0 12px, 12px 0, calc(100% - 34px) 0, 100% 100%);
  transform: translateY(14px); transition: transform 240ms var(--ease-out), background-color 300ms ease, color 300ms ease;
}
.tabbtn:focus-visible { outline-offset: -6px; }
.tabbtn[aria-current="true"] { transform: none; background: var(--gold); color: var(--ink-green); }
.tabbtn[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .tabbtn:hover { transform: translateY(5px); } .tabbtn[aria-current="true"]:hover { transform: none; } }

.folder { position: relative; --focus: currentColor; scroll-margin-top: calc(var(--top-h) + var(--bar-h)); }
.folder[hidden] { display: none; }
.folder-body {
  background: var(--f-bg); color: var(--f-ink);
  padding: clamp(28px, 3vw, 44px) var(--m) clamp(48px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 28px; align-items: start; align-content: start;
  transition: background-color 300ms ease;
}
.f-green { --f-bg: #1b4a36; --f-ink: #ebece5; --f-muted: #c2cfbd; --f-well: #153b2b; --focus: var(--gold); }
.f-sage  { --f-bg: #c3cbb2; --f-ink: #17382b; --f-muted: #33463a; --f-well: #b3bc9f; }
.f-moss  { --f-bg: #3a6650; --f-ink: #ebece5; --f-muted: #cbd7c6; --f-well: #305843; --focus: var(--gold); }
[data-theme="dark"] .f-moss { --f-bg: #1f4636; --f-well: #183a2c; }
.f-deep  { --f-bg: #11291f; --f-ink: #ebece5; --f-muted: #b3c1af; --f-well: #0a1b14; --focus: var(--gold); }
.f-paper { --f-bg: #f0f3ee; --f-ink: #17382b; --f-muted: #44584c; --f-well: #e0e3d8; }
[data-theme="dark"] .f-green { --f-bg: #174231; --f-well: #103324; }
[data-theme="dark"] .f-sage  { --f-bg: #2a5140; --f-ink: #ebece5; --f-muted: #c2cfbd; --f-well: #214434; --focus: var(--gold); }
[data-theme="dark"] .f-deep  { --f-bg: #0d2219; --f-well: #081710; }
[data-theme="dark"] .f-paper { --f-bg: #1c3529; --f-ink: #ebece5; --f-muted: #b3c1af; --f-well: #142a20; --focus: var(--gold); }

.folder-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.folder-head h3 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); letter-spacing: -0.03em; line-height: 1; }
.folder-head > span { font-size: var(--step-body); color: var(--f-muted); font-weight: 500; }
.shot-col { grid-column: 1 / span 6; display: grid; gap: 16px; }
.case { grid-column: 7 / -1; padding-left: clamp(0px, 2vw, 32px); }
.shot { aspect-ratio: 16 / 10; background: var(--f-well); display: grid; place-items: center; padding: 24px; text-align: center; font-size: 1rem; }
.shot.short { aspect-ratio: 16 / 5; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot:has(img) { padding: 0; }
.case-lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; max-width: 30em; }
.case dl { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.case dt { font-size: 1rem; font-weight: 600; color: var(--f-muted); }
.case dd { margin-top: 2px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.case > .text-link, .case-link { display: inline-block; margin-top: 24px; }

/* Project Horizon signal chain, drawn from the real five stages. */
.chain { position: relative; background: var(--f-well); padding: 26px 26px 26px 68px; display: grid; gap: 16px; }
.chain::before { content: ""; position: absolute; left: 33px; top: 38px; bottom: 38px; width: 6px; background: var(--gold); }
.chain li { position: relative; display: grid; gap: 2px; }
.chain li::before { content: ""; position: absolute; left: -43px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); }
.chain li::after { content: ""; position: absolute; left: -36px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--f-well); }
.chain b { font-weight: 600; font-size: 1.1875rem; }
.chain span { font-size: 1rem; color: var(--f-muted); }

.also { padding-block: clamp(64px, 8vw, 120px) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px; }
.also[hidden] { display: none; }
.also h3 { grid-column: 1 / span 4; font-size: var(--step-head); letter-spacing: -0.035em; line-height: 0.98; }
.also-list { grid-column: 6 / -1; display: grid; gap: 28px; }
.also-list li { display: grid; gap: 4px; }
.also-list li[hidden] { display: none; }
.also-list b { font-family: var(--display); font-stretch: 108%; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.also-list li > span { max-width: 38em; }

/* About: a letter */
.about { margin-top: clamp(96px, 12vw, 180px); background: var(--surface); padding-block: clamp(72px, 9vw, 140px); transition: background-color 300ms ease; }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px; align-items: start; }
.letter { grid-column: 2 / span 6; background: var(--sheet); color: var(--sheet-ink); padding: clamp(28px, 4.4vw, 64px); padding-bottom: 0; --focus: var(--sheet-ink); transition: background-color 300ms ease, color 300ms ease; }
.letter-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.letter h2 > span { color: var(--sheet-soft); }
.portrait { flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--sheet-well); display: grid; place-items: center; font-size: 0.8125rem; overflow: hidden; }
.portrait .ph { background: none; padding: 0; }
.letter p { max-width: 36em; }
.letter p + p { margin-top: 1.1em; }
.letter .sign { margin-top: 32px; display: grid; }
.sign b { font-family: var(--display); font-stretch: 108%; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; }
.sign span { font-size: var(--step-small); color: var(--sheet-soft); }
.tear {
  position: relative; margin: 40px calc(clamp(28px, 4.4vw, 64px) * -1) 0; padding: 26px clamp(28px, 4.4vw, 64px);
  border-top: 6px dotted var(--surface);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.tear::before, .tear::after { content: ""; position: absolute; top: -17px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); }
.tear::before { left: -14px; } .tear::after { right: -14px; }
.tear .btn { background: var(--sheet-ink); color: var(--sheet); }
.toward { --focus: var(--gold); grid-column: 9 / -1; background: var(--board); color: var(--board-ink); padding: clamp(24px, 3vw, 40px); position: sticky; top: calc(var(--top-h) + 24px); }
.toward h3 { font-size: var(--step-lead); font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.15; }
.toward ul { margin-top: 20px; display: grid; gap: 14px; }
.toward li { padding-left: 26px; position: relative; }
.toward li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }

/* Track record: a timeline on the board, with live traces behind it */
.record { --focus: var(--gold); position: relative; overflow: hidden; background: var(--board); color: var(--board-ink); padding-block: clamp(80px, 10vw, 150px); transition: background-color 300ms ease; }
.record h2 > span { color: var(--gold); }
.traces { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.record-inner { position: relative; }
.timeline { position: relative; margin-top: clamp(40px, 6vw, 88px); display: grid; gap: clamp(36px, 4.5vw, 64px); }
.timeline::before, .timeline::after { content: ""; position: absolute; left: calc(50% - 3px); top: 10px; bottom: 10px; width: 6px; }
.timeline::before { background: var(--board-well); }
.timeline::after { background: var(--gold); transform: scaleY(var(--fill, 1)); transform-origin: top; }
.timeline li { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(72px, 9vw, 150px); align-items: start; }
.timeline li::before { content: ""; position: absolute; left: calc(50% - 11px); top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); z-index: 1; transition: transform 300ms var(--ease-out); }
.tl-role { grid-column: 1; grid-row: 1 / span 2; text-align: right; display: grid; gap: 4px; align-content: start; }
.tl-role b { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -0.025em; line-height: 1.1; }
.tl-role span { font-size: var(--step-body); color: var(--gold); font-weight: 500; }
.tl-when { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.tl-when b { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; }
.tl-when span { font-size: var(--step-small); color: var(--board-soft); white-space: nowrap; }
.timeline p { grid-column: 2; grid-row: 2; margin-top: 8px; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); max-width: 30em; color: var(--board-ink); }
.facts { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.facts h3 { font-size: var(--step-lead); font-stretch: 110%; font-weight: 700; letter-spacing: -0.02em; color: var(--gold); }
.facts p { margin-top: 10px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }

/* Contact: a coupon */
.contact { padding: clamp(80px, 9vw, 132px) var(--m); }
.coupon {
  position: relative; max-width: 1180px; margin-inline: auto;
  background: var(--gold); color: var(--ink-green); --focus: var(--ink-green);
  display: grid; grid-template-columns: 46fr 54fr;
}
.coupon::before, .coupon::after { content: ""; position: absolute; left: 46%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--bg); transition: background-color 300ms ease; }
.coupon::before { top: -15px; } .coupon::after { bottom: -15px; }
.coupon-left { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 320px; }
.coupon h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); }
.coupon h2 > span { color: var(--ink-green); }
.coupon-left p { max-width: 18em; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }
.coupon-right { padding: clamp(28px, 4vw, 56px); border-left: 6px dotted var(--bg); display: grid; gap: 10px; align-content: center; transition: border-color 300ms ease; }
.coupon-right a { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 2px; align-items: center; padding: 20px 22px; background: var(--gold-well); text-decoration: none; transition: transform 200ms var(--ease-out), background-color 220ms ease, color 220ms ease; }
.coupon-right .ico { grid-row: 1 / span 2; }
.coupon-right a:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .coupon-right a:hover { transform: translateX(8px); background: #1b4a36; color: var(--bone); } }
.coupon-right b { font-family: var(--display); font-stretch: 110%; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.coupon-right span { font-size: 1rem; overflow-wrap: anywhere; }

/* Footer: the back of the card */
.foot { background: var(--foot); padding: clamp(64px, 8vw, 120px) var(--m) var(--m); transition: background-color 300ms ease; }
.postcard { /* full width, on the same margins as the hero board, so the page opens and closes the same way */ background: var(--sheet); color: var(--sheet-ink); --focus: var(--sheet-ink); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; transition: background-color 300ms ease, color 300ms ease; }
.signoff { font-family: var(--display); font-stretch: 116%; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.postcard-left p + p { margin-top: 20px; max-width: 26em; }
.postcard-right { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 24px; }
.postcard-right ul { grid-column: 1; grid-row: 1; display: grid; gap: 6px; }
.postcard-right a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--step-lead); font-weight: 600; }
.stamp { grid-column: 2; grid-row: 1; }
.imprint { grid-column: 1 / -1; text-align: center; font-size: var(--step-small); color: var(--sheet-soft); }

/* Command palette */
.palette { width: min(620px, calc(100vw - 32px)); margin-top: 14vh; padding: 0; border: 0; background: var(--sheet); color: var(--sheet-ink); box-shadow: 0 24px 60px -12px rgba(4, 12, 9, 0.6); /* taste-skill-ignore: a modal dialog floats */ --focus: var(--sheet-ink); }
.palette::backdrop { background: rgba(4, 12, 9, 0.6); }
.palette input { display: block; width: 100%; height: 60px; padding: 0 20px; border: 0; background: var(--sheet-well); color: inherit; font: inherit; font-size: 1.125rem; caret-color: var(--gold); outline-offset: -3px; }
.palette input::placeholder { color: var(--sheet-soft); opacity: 1; }
.palette ul { max-height: min(52vh, 420px); overflow: auto; padding: 8px; overscroll-behavior: contain; }
.palette li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 44px; padding: 10px 12px; cursor: pointer; }
.palette li small { font-size: var(--step-small); color: var(--sheet-soft); }
.palette li[aria-selected="true"] { background: var(--gold); color: var(--ink-green); }
.palette li[aria-selected="true"] small { color: var(--ink-green); }
.palette-empty.is-shown { padding: 20px; }

/* Icons */
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ico.big { width: 30px; height: 30px; }
.icon-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; transition: color 180ms ease; }
.postcard-right a { gap: 12px; }

/* Theme switch: a sun that folds into a moon */
.theme-btn { width: 44px; height: 44px; display: grid; place-items: center; transition: background-color 140ms ease, transform 140ms var(--ease-out); }
.theme-btn:active { transform: scale(0.94); }
.theme-btn svg { overflow: visible; }
.sun-core, .moon-cut { transform-box: fill-box; transform-origin: center; transition: transform 500ms var(--ease-out); }
.sun-rays { transform-origin: 12px 12px; transition: transform 500ms var(--ease-out), opacity 250ms ease; }
[data-theme="dark"] .moon-cut { transform: translateX(-9px); }
[data-theme="dark"] .sun-core { transform: scale(1.55); }
[data-theme="dark"] .sun-rays { opacity: 0; transform: rotate(-70deg) scale(0.4); }

/* Galleries: a strip of pictures that moves on by itself until you hover or touch it */
.gallery { display: grid; gap: 10px; min-width: 0; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -3px; }
.gallery-track > .shot { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.gallery-bar { display: flex; align-items: center; gap: 8px; }
.gallery-bar button { width: 44px; height: 44px; display: grid; place-items: center; background: var(--f-well); transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.gallery-bar button:active { transform: scale(0.94); }
.gallery-bar .ico { fill: none; }
.gallery-count { min-width: 3.2em; text-align: center; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .gallery-bar button:hover { background: var(--f-ink); color: var(--f-bg); } }

/* SnapStyle is a phone app, so its pictures sit on a phone you can spin */
.phone-stage { perspective: 1400px; display: grid; place-items: center; padding: 36px 0 28px; background: var(--f-well); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.phone-stage:active { cursor: grabbing; }
.phone-front, .phone-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.phone-front .shot { height: 100%; aspect-ratio: auto; background: var(--bone); color: #17382b; padding: 14px; font-size: 0.9375rem; }

/* Motion. Everything is visible by default; the .anim class (set by the script) only adds travel. */
@media (prefers-reduced-motion: no-preference) {
  .ident > *, .controller { animation: rise 800ms var(--ease-out) both; }
  .ident > :nth-child(2) { animation-delay: 80ms; }
  .ident > :nth-child(3) { animation-delay: 160ms; }
  .ident > :nth-child(4) { animation-delay: 240ms; }
  .controller { animation-delay: 320ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }

  /* Headings wipe up from their baseline. */
  .anim [data-wipe] { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); transition: clip-path 800ms var(--ease-out), transform 800ms var(--ease-out); }
  .anim [data-wipe].in { clip-path: inset(-0.2em 0 -0.2em 0); transform: none; }
  /* Groups arrive one part after another. */
  .anim [data-rise] > * { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease-out, transform 800ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
  .anim [data-rise].in > * { opacity: 1; transform: none; }
  /* Some pieces slide in from their own side. */
  .anim [data-slide] { opacity: 0; transition: opacity 600ms ease-out, transform 900ms var(--ease-out); }
  .anim [data-slide="left"] { transform: translateX(-40px); }
  .anim [data-slide="right"] { transform: translateX(40px); }
  .anim [data-slide].in { opacity: 1; transform: none; }
  /* Picture frames open from the top. */
  .anim .gallery { clip-path: inset(0 0 100% 0); transition: clip-path 700ms var(--ease-out); }
  .anim .gallery.in { clip-path: inset(-40px); }
  /* The signal chain lights one stage after another. */
  .anim .chain li { opacity: 0.3; transition: opacity 500ms ease-out; transition-delay: calc(var(--d, 0) * 220ms); }
  .anim .chain.in li { opacity: 1; }
  /* Timeline entries wake as the gold trace reaches them. */
  .anim .timeline li { opacity: 0.3; transition: opacity 500ms ease-out; }
  .anim .timeline li::before { transform: scale(0.45); }
  .anim .timeline li.on { opacity: 1; }
  .anim .timeline li.on::before { transform: none; }

  .chain::after {
    content: ""; position: absolute; left: 29px; top: 34px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--signal); animation: travel 4.5s linear infinite;
  }
  @keyframes travel { from { transform: translateY(0); } to { transform: translateY(var(--chain-run, 300px)); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Folder pile on wide screens: each folder holds under the tabs while the next slides over it. */
@media (min-width: 1024px) {
  .folders.pile .folder { position: sticky; top: var(--stick, calc(var(--top-h) + var(--bar-h))); }
  .folders.pile .folder-body { min-height: calc(100svh - var(--top-h) - var(--bar-h)); }
}

/* Small laptops: the controller column is narrow, so the packet takes two rows of four. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .packet { grid-template-columns: repeat(4, 1fr); }
}
/* The section links fold into the Menu button before the bar runs out of room. */
@media (max-width: 920px) {
  .top-nav { display: none; }
  html:not(.js) .top-nav { display: flex; }
  .wide { display: none; }
  .narrow { display: inline; }
}

/* Tablet */
@media (max-width: 1023px) {
  .board { align-items: start; row-gap: 56px; }
  .ident, .controller { grid-column: 1 / -1; }
  .controller { max-width: 560px; }
  .stick { width: clamp(124px, 22vw, 168px); }
  .shot-col, .case { grid-column: 1 / -1; }
  .case { padding-left: 0; }
  .also h3, .also-list { grid-column: 1 / -1; }
  .letter { grid-column: 1 / span 8; }
  .toward { grid-column: 9 / -1; padding: 20px; }
  .postcard { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .timeline li { column-gap: 64px; }
}

/* Phone */
@media (max-width: 720px) {
  .trace { width: 100vw; height: 4px; transform: scaleX(0); transform-origin: left; }
  .board { display: block; padding: 44px 20px 40px; }
  .controller { margin-top: 56px; }
  .rx { min-height: 6em; }
  .hole { width: 12px; height: 12px; }
  .hole.h1, .hole.h3 { left: 10px; } .hole.h2, .hole.h4 { right: 10px; }
  .hole.h1, .hole.h2 { top: 10px; } .hole.h3, .hole.h4 { bottom: 10px; }
  .lead { margin-top: 24px; }
  .cta .btn { flex: 1 0 100%; }
  .case dl { grid-template-columns: 1fr; }
  .sticks { justify-content: space-between; gap: 12px; }
  .stick { width: min(36vw, 150px); }
  .packet { grid-template-columns: repeat(4, 1fr); }
  .switch-flip { margin-left: 0; }
  .work-head { align-items: start; flex-direction: column; }
  .tabbtn { height: 44px; padding: 0 36px 0 16px; font-size: 1rem; }
  .shot { aspect-ratio: 4 / 3; }
  .shot.short { aspect-ratio: 16 / 7; }
  .chain { padding: 22px 18px 22px 54px; }
  .chain::before { left: 23px; }
  .chain::after { left: 19px; }
  .chain li::before { left: -39px; }
  .chain li::after { left: -32px; }
  .letter, .toward { grid-column: 1 / -1; }
  .toward { position: static; padding: 24px; }
  .about .wrap { padding-inline: 10px; }
  /* The timeline folds to one column with the trace down the left edge. */
  .timeline::before, .timeline::after { left: 8px; }
  .timeline li { grid-template-columns: 1fr; row-gap: 8px; padding-left: 44px; }
  .timeline li::before { left: 0; top: 4px; }
  .tl-role { grid-row: 2; text-align: left; }
  .tl-when { grid-column: 1; grid-row: 1; }
  .timeline p { grid-column: 1; grid-row: 3; margin-top: 0; }
  .facts { grid-template-columns: 1fr; }
  .coupon { grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { display: none; }
  .coupon-left { min-height: 0; }
  .coupon-right { position: relative; border-left: 0; border-top: 6px dotted var(--bg); }
  .coupon-right::before, .coupon-right::after { content: ""; position: absolute; top: -18px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); }
  .coupon-right::before { left: -15px; } .coupon-right::after { right: -15px; }
  .postcard-right a { font-size: 1.25rem; }
}

/* ======================================================================
   Additions: boot screen, project bench, hello video, handheld
   ====================================================================== */

/* Boot: a one-second power-on, first visit of the session only. */
.boot { display: none; }
.booting .boot {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200;
  background: var(--board-well); color: var(--board-ink);
  animation: boot-safety 400ms ease 4.5s forwards; /* never blocks the page, even if the script fails */
}
/* The exit: a hole opens in the middle and the page rushes up through it. */
@property --iris { syntax: "<length>"; inherits: false; initial-value: 0px; }
.booting .boot.out {
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1.5px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1.5px));
  animation: iris 950ms cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
.booting .boot.out .boot-inner { animation: suck 700ms cubic-bezier(0.6, 0, 0.9, 0.4) forwards; }
@keyframes iris { to { --iris: 120vmax; } }
.boot-ring {
  position: fixed; left: 50%; top: 50%; z-index: 201; width: 0; height: 0; border-radius: 50%;
  border: 5px solid var(--gold); transform: translate(-50%, -50%); pointer-events: none;
  animation: ring-open 950ms cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
@keyframes ring-open { 85% { opacity: 1; } to { width: 240vmax; height: 240vmax; opacity: 0; } }
@keyframes suck { to { transform: scale(0.15); opacity: 0; filter: blur(2px); } }
.booting main, .booting .top { transform: scale(1.06); }
main, .top { transition: transform 1000ms var(--ease-out); }
@keyframes boot-safety { to { opacity: 0; visibility: hidden; } }
.boot-inner { display: grid; justify-items: center; gap: 26px; padding: 16px; }
.boot-inner > svg { width: 96px; height: 96px; outline: 3px solid var(--gold); outline-offset: 6px; }
.boot-line { display: grid; justify-items: center; gap: 10px; font-size: var(--step-lead); font-weight: 500; color: var(--board-soft); }
.boot-line b { font-family: var(--display); font-stretch: 112%; font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem); letter-spacing: 0.03em; color: var(--board-ink); min-width: 15ch; text-align: center; }
.boot-bar { width: min(340px, 70vw); height: 8px; background: var(--board-well); overflow: hidden; }
.boot-bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; animation: boot-fill 1500ms cubic-bezier(0.5, 0, 0.2, 1) both; }
@keyframes boot-fill { from { transform: scaleX(0); } }
.boot-ok { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: var(--step-lead); color: var(--gold); opacity: 0; animation: boot-ok 200ms ease 1550ms forwards; }
.boot-ok::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); margin-right: 8px; vertical-align: 1px; }
@keyframes boot-ok { to { opacity: 1; } }


/* Open a project: lives in each folder's header. */
.open-bench {
  margin-left: auto; align-self: center;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--f-ink); color: var(--f-bg); font-weight: 600;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.open-bench .ico { fill: none; transition: transform 240ms var(--ease-out); }
.open-bench:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .open-bench:hover { background: var(--gold); color: var(--ink-green); }
  .open-bench:hover .ico { transform: translate(2px, -2px); }
}

/* The bench: a project opens on its own device, with the story told step by step. */
.bench {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--board); color: var(--board-ink); --focus: var(--gold);
  overflow: hidden;
}
.bench[open] { display: block; }
.bench::backdrop { background: var(--board); }
.bench-room {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: clamp(20px, 3vw, 48px);
  /* ribbed wall, like a studio set */
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, 0.09) 46px 52px, transparent 52px 98px, rgba(255, 255, 255, 0.035) 98px 100px),
    var(--board);
}
.bench-stage { position: relative; height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; perspective: 1700px; }
.bench-floor { position: absolute; left: 8%; right: 8%; bottom: 4%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 16%, var(--board-well)), var(--board-well)); z-index: 0; box-shadow: 0 -2px 0 color-mix(in srgb, var(--gold) 55%, transparent), 0 0 60px -10px color-mix(in srgb, var(--gold) 45%, transparent); } /* taste-skill-ignore: a lit pedestal */
.device { position: relative; z-index: 1; transform-style: preserve-3d; transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)); transition: transform 600ms var(--ease-out); }
.device.in-motion { transition: none; }
.dv-screen { position: relative; overflow: hidden; background: #0a1b14; }
.dv-track { display: flex; height: 100%; transition: transform 700ms var(--ease-out); }
.dv-track > .shot { flex: 0 0 100%; height: 100%; aspect-ratio: auto; margin: 0; background: var(--bone); color: #17382b; }
.dv-track > .shot .ph { background: rgba(23, 56, 43, 0.12); }

.device.is-laptop { width: min(100%, 720px); }
.device.is-laptop .dv-screen { aspect-ratio: 16 / 10; border: 14px solid #0a1b14; border-bottom-width: 22px; border-radius: 16px 16px 4px 4px; }
.device.is-laptop .dv-base {
  height: 22px; margin: 0 -7%; background: #c9cdbf; border-radius: 2px 2px 14px 14px;
  transform-origin: top; transform: rotateX(62deg); position: relative;
}
.device.is-laptop .dv-base::after { content: ""; position: absolute; left: 40%; right: 40%; top: 0; height: 6px; background: #aeb3a3; border-radius: 0 0 6px 6px; }

.device.is-phone { width: clamp(200px, 22vw, 290px); }
.device.is-phone .dv-screen { aspect-ratio: 9 / 19; border: 11px solid #0a1b14; border-radius: 40px; }
.device.is-phone::before, .device.is-phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #0a1b14; }
.device.is-phone::before { right: -4px; top: 22%; height: 11%; }
.device.is-phone::after { left: -4px; top: 18%; height: 16%; }
.device.is-phone .dv-base { display: none; }

.device.is-board { width: min(100%, 700px); }
.device.is-board .dv-screen { aspect-ratio: 16 / 10; border: 18px solid #174231; outline: 3px solid var(--gold); outline-offset: -10px; }
.device.is-board .dv-base { display: none; }
.device.is-board::before, .device.is-board::after { content: ""; position: absolute; z-index: 2; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.device.is-board::before { left: 4px; } .device.is-board::after { right: 4px; }

.bench-kind { font-size: var(--step-small); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.bench h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); }
.bench-lead { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; color: var(--board-soft); max-width: 26em; }
.bench-steps { display: grid; gap: 4px; counter-reset: step; }
.bench-steps button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 2.2em 1fr; align-items: baseline; padding: 10px 12px; min-height: 44px;
  color: var(--board-soft); transition: background-color 200ms ease, color 200ms ease;
}
.bench-steps button b { font-family: var(--display); font-stretch: 110%; font-weight: 700; color: var(--gold); }
.bench-steps button[aria-current="true"] { background: var(--board); color: var(--board-ink); }
.bench-steps button[aria-current="true"]::after { content: ""; grid-column: 2; height: 3px; margin-top: 8px; background: var(--gold); transform-origin: left; animation: step-run var(--step-ms, 4200ms) linear both; }
.bench.held .bench-steps button[aria-current="true"]::after { animation-play-state: paused; }
@keyframes step-run { from { transform: scaleX(0); } }
.bench-dots { display: flex; gap: 8px; }
.bench-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--board-soft); opacity: 0.4; transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.bench-dots i.on { opacity: 1; background: var(--gold); transform: scale(1.3); }

@media (prefers-reduced-motion: no-preference) {
  .bench[open] .device { animation: bench-in 800ms var(--ease-out) both; }
  .bench[open] .bench-side { animation: panel-in 700ms var(--ease-out) 120ms both; }
  .bench .device.swap { animation: bench-swap 520ms var(--ease-out) both; }
  @keyframes bench-in { from { opacity: 0; transform: translateY(60px) scale(0.72) rotateY(-30deg) rotateX(18deg); } }
  @keyframes panel-in { from { opacity: 0; transform: translateX(48px); } }
  @keyframes bench-swap { from { opacity: 0; transform: translateX(-60px) rotateY(-28deg); } }
}
@media (max-width: 860px) {
  .bench { overflow: auto; }
  .bench-room { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; min-height: 100%; align-content: start; padding: 16px; }
  .bench-stage { height: auto; padding: 24px 0 36px; }
  .bench-side { max-height: none; }
  .device { --ry: -6deg; --rx: 4deg; }
  .device.is-board, .device.is-laptop { width: 92%; }
  .bench-panel { max-height: none; overflow: visible; padding: 20px; }
  .device.is-phone { width: min(46vw, 210px); }
  .bench-stage { padding: 12px 0 20px; }
}

/* About: a hello video in a gold ring, then the goals card. */
.side { grid-column: 8 / -1; display: grid; gap: 24px; position: sticky; top: calc(var(--top-h) + 24px); }
.side .toward { position: static; grid-column: auto; }
.hello { margin: 0; display: grid; justify-items: center; gap: 12px; }
.hello-ring {
  position: relative; width: min(100%, 470px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--sheet-well); display: grid; place-items: center; text-align: center; padding: 24px; font-size: 0.9375rem;
  border: 6px solid var(--gold);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--gold) 18%, transparent), 0 0 60px color-mix(in srgb, var(--gold) 40%, transparent); /* taste-skill-ignore: the glowing ring is the point */
}
.hello-ring video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hello-ring:has(video) { padding: 0; }
.hello-bar { display: flex; gap: 10px; margin-top: -46px; position: relative; z-index: 1; background: rgba(120, 124, 116, 0.55); padding: 8px 12px; border-radius: 40px; color: #fff; }
.hello-bar[hidden] { display: none; }
.hello-bar button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(235, 236, 229, 0.32); transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.hello-bar button:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .hello-bar button:hover { background: rgba(235, 236, 229, 0.5); } }
.hello figcaption { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .hello-ring { animation: halo 4s ease-in-out infinite; }
  @keyframes halo { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--gold) 12%, transparent), 0 0 80px color-mix(in srgb, var(--gold) 55%, transparent); } }
}
@media (max-width: 1023px) { .side { grid-column: 8 / -1; } .hello-ring { padding: 14px; } }
@media (max-width: 720px) { .side { grid-column: 1 / -1; position: static; } }

/* Off the clock: a pocket handheld and a shelf of cartridges. */
.clock { padding-block: clamp(96px, 12vw, 180px); }
.clock-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; align-items: start; }
.clock-head { grid-column: 1 / span 5; display: grid; gap: 20px; }
.clock-head p { font-size: var(--step-lead); line-height: 1.3; color: var(--muted); max-width: 18em; }
.handheld {
  grid-column: 7 / -1; grid-row: 1 / span 2;
  background: #c3cbb2; color: #17382b; padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) 20px;
  border-radius: 22px 22px 64px 22px; display: grid; gap: 16px;
}
[data-theme="dark"] .handheld { background: #2a5140; color: var(--bone); }
.hh-screen {
  position: relative; aspect-ratio: 4 / 3; background: #0d2219; color: #d9e6c8; overflow: hidden;
  border: 14px solid #17382b; border-radius: 10px;
}
.hh-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); }
.hh-view { position: absolute; inset: 0; padding: clamp(16px, 2vw, 26px); display: grid; align-content: center; gap: 14px; font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem); }
.hh-view b { color: var(--gold); }
.hh-idle { text-align: center; font-family: var(--display); font-stretch: 112%; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.hh-face { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: var(--step-small); letter-spacing: 0.08em; }
.hh-led { width: 10px; height: 10px; border-radius: 50%; background: #5b6a5e; transition: background-color 200ms ease; }
.handheld.on .hh-led { background: var(--signal); }
.hh-big { font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--gold); }
.hh-big small { font-family: var(--text); font-size: 1rem; font-weight: 500; color: #d9e6c8; }
.hh-hello { font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.1; color: var(--gold); min-height: 1.2em; }
.hh-code { margin: 0; font-family: ui-monospace, "Cascadia Code", Menlo, monospace; font-size: 0.875rem; line-height: 1.5; color: var(--gold); min-height: 6em; white-space: pre-wrap; }
.hh-pool { position: relative; height: 64px; display: grid; gap: 4px; }
.hh-pool .lane { background: #174a5a; }
.hh-pool .swimmer { position: absolute; top: 24px; left: 0; width: 26px; height: 16px; border-radius: 8px; background: var(--gold); }
.carts { grid-column: 1 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .carts { grid-template-columns: 1fr 1fr; } }
.cart {
  position: relative; width: 100%; min-height: 128px; text-align: left; padding: 30px 16px 16px;
  background: var(--c-bg); color: var(--c-ink); display: grid; align-content: end; gap: 4px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transition: transform 300ms var(--ease-out);
}
.cart::before { content: ""; position: absolute; left: 16px; right: 38px; top: 12px; height: 8px; background: color-mix(in srgb, var(--c-ink) 22%, transparent); }
.cart-label { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.15; }
.cart-sub { font-size: 0.9375rem; opacity: 0.85; }
.c-pool { --c-bg: #1b4a36; --c-ink: #ebece5; }
.c-lang { --c-bg: #e3b43c; --c-ink: #17382b; }
.c-build { --c-bg: #f0563a; --c-ink: #17382b; }
.c-lead { --c-bg: #c3cbb2; --c-ink: #17382b; }
.c-free { --c-bg: #f7f8f3; --c-ink: #17382b; }
.c-free::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 2px dashed rgba(23, 56, 43, 0.35); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
[data-theme="dark"] .c-free { --c-bg: #ebece5; }
.cart[aria-pressed="true"] { transform: translateY(-10px); outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .cart:hover { transform: translateY(-6px) rotate(-1deg); } .cart[aria-pressed="true"]:hover { transform: translateY(-10px); } }
@media (prefers-reduced-motion: no-preference) {
  .hh-view.boot-on { animation: crt 420ms var(--ease-out) both; }
  @keyframes crt { 0% { transform: scale(1, 0.01); filter: brightness(3); } 45% { transform: scale(1, 0.01); } 100% { transform: none; filter: none; } }
  .blink { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .hh-pool .swimmer { animation: swim 3.2s ease-in-out infinite alternate; }
  @keyframes swim { to { transform: translateX(calc(var(--pool-w, 300px) - 26px)); } }
}
@media (max-width: 1023px) {
  .clock-head, .carts { grid-column: 1 / -1; }
  .handheld { grid-column: 1 / -1; grid-row: auto; max-width: 560px; }
}

/* ---------- Round two ---------- */

/* Top bar: icon buttons, and a gold bar that slides to whatever you point at. */
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; color: inherit; transition: background-color 140ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn:active { transform: scale(0.94); }
.top-socials { display: flex; gap: 2px; margin-left: 6px; padding-left: 8px; border-left: 2px solid var(--surface); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--surface); color: var(--gold-well); } [data-theme="dark"] .icon-btn:hover { color: var(--gold); } }
.icon-btn .narrow { display: none; }
@media (max-width: 920px) { .icon-btn .wide { display: none; } .icon-btn .narrow { display: block; } }
.top-nav { position: relative; }
.nav-ink {
  position: absolute; left: 0; bottom: 4px; height: 4px; width: 1px; background: var(--gold);
  transform-origin: left; opacity: 0; pointer-events: none;
  transition: transform 380ms var(--ease-out), opacity 220ms ease;
}
[data-theme="light"] .nav-ink { background: var(--gold-well); height: 5px; }
.top-nav a { transition: background-color 140ms ease, color 160ms ease; }
.top-nav a[aria-current="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .top-nav a:hover { background: transparent; } }

/* Bench: a browser-like bar on top, then the write-up. */
.bench-side { position: relative; z-index: 1; align-self: center; max-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 14px; min-width: 0; }
.bench-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 34px;
  background: color-mix(in srgb, var(--board-well) 80%, transparent);
}
.bench-bar button, .bench-visit { flex: none; height: 44px; border-radius: 22px; display: grid; place-items: center; background: color-mix(in srgb, var(--board-ink) 12%, transparent); color: var(--board-ink); transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.bench-bar button { width: 44px; }
.bench-bar .ico { fill: none; }
.bench-bar button:active, .bench-visit:active { transform: scale(0.94); }
.bench-visit { padding: 0 18px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; font-size: var(--step-small); text-decoration: none; }
.bench-visit[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .bench-bar button:hover, .bench-visit:hover { background: var(--gold); color: var(--ink-green); } }
.bench-url { flex: 1; min-width: 0; height: 44px; border-radius: 22px; background: var(--board); overflow: hidden; display: flex; align-items: center; -webkit-mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 18px), transparent); mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 18px), transparent); }
.bench-url > span { flex: none; padding-left: 16px; white-space: nowrap; color: var(--board-soft); font-size: 1rem; }
.bench-url.long > span { animation: url-run var(--url-s, 12s) linear infinite; }
@keyframes url-run { to { transform: translateX(-50%); } }
.bench-panel {
  min-height: 0; overflow: auto; overscroll-behavior: contain; padding: clamp(24px, 3vw, 44px);
  background: color-mix(in srgb, var(--board-well) 82%, transparent); border-radius: 22px;
  display: grid; gap: 16px; align-content: start;
}
.bench-kind { font-size: var(--step-small); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); padding-bottom: 18px; border-bottom: 2px solid color-mix(in srgb, var(--board-ink) 18%, transparent); }
.bench-about { display: grid; gap: 14px; }
.bench-about p { max-width: 34em; }
.bench-about b { display: block; font-size: var(--step-small); color: var(--gold); font-weight: 600; margin-bottom: 2px; }
.bench-h { font-size: var(--step-small); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--board-soft); font-family: var(--text); margin-top: 8px; }
.bench-dots { display: flex; gap: 8px; justify-content: center; padding-top: 6px; }
@media (max-width: 860px) { .bench-bar { position: sticky; top: 0; z-index: 2; } .bench-panel { overflow: visible; } }

/* The drone says hello, and the hangar opens. */
.drone-tip {
  position: fixed; left: 0; top: 0; z-index: 46; padding: 8px 14px; border-radius: 20px;
  background: var(--gold); color: var(--ink-green); font-weight: 700; font-family: var(--display); font-stretch: 108%; font-size: 1rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translate(-50%, -100%) scale(0.4);
}
.drone-tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: var(--gold); transform: rotate(45deg); }
.drone-tip.show { pointer-events: auto; animation: tip 4.2s var(--ease-out) both; }
@keyframes tip {
  0% { opacity: 0; transform: translate(-50%, -100%) scale(0.4); }
  8%, 30% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
  38% { transform: translate(-50%, -100%) scale(0.86); }
  46%, 80% { opacity: 1; transform: translate(-50%, -100%) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -100%) scale(0.5); }
}
.drone-hover, .drone-hover * { cursor: pointer !important; }
.psst { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; margin-left: 8px; min-height: 44px; }

.hangar { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0d2219; color: #ebece5; overflow: hidden; --focus: var(--gold); }
.hangar[open] { display: block; }
.hangar::backdrop { background: #0d2219; }
.hangar canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.hg-hud { position: absolute; left: 20px; top: 16px; display: flex; gap: 24px; font-size: 1rem; color: #c2cfbd; pointer-events: none; }
.hg-hud b { font-family: var(--display); font-stretch: 112%; font-size: 1.5rem; color: var(--gold); margin-left: 6px; }
.hg-close { position: absolute; right: 16px; top: 12px; width: 48px; height: 48px; display: grid; place-items: center; background: rgba(235, 236, 229, 0.12); border-radius: 50%; }
.hg-close .ico { fill: none; }
.hg-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 32px)); background: #1b4a36; padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; justify-items: start; }
.hg-card[hidden] { display: none; }
.hg-kicker { font-size: var(--step-small); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.hg-card h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.hg-card p:not(.hg-kicker) { color: #d3dccd; }
@media (prefers-reduced-motion: no-preference) {
  .hangar[open] { animation: hangar-in 600ms var(--ease-out) both; }
  @keyframes hangar-in { from { clip-path: circle(0% at var(--hx, 50%) var(--hy, 50%)); } to { clip-path: circle(150% at var(--hx, 50%) var(--hy, 50%)); } }
}

/* ---------- Round three ---------- */

/* The SnapStyle phone, built to look like the real thing: titanium edge, glass front, camera plateau, a pear on the back. */
.phone { position: relative; width: clamp(180px, 16vw, 240px); aspect-ratio: 9 / 19.5; transform-style: preserve-3d; transform: rotateY(-0.5rad) rotateX(0.06rad); will-change: transform; --r: 17% / 8%; }
.phone > * { position: absolute; inset: 0; border-radius: var(--r); }
.phone-slice { background: linear-gradient(90deg, #5d625f, #c9ccc8 22%, #8b908c 50%, #d7dad6 78%, #5d625f); }
.phone-front {
  transform: translateZ(8px); background: #050807; padding: 7px;
  box-shadow: inset 0 0 0 2px #b9bdb9, inset 0 0 0 3px #4a4e4b; /* taste-skill-ignore: the titanium rim */
}
.phone-front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 26%, transparent 42%); }
.phone-front .gallery-track { height: 100%; border-radius: 15% / 7%; overflow: hidden; }
.phone-back {
  transform: rotateY(180deg) translateZ(8px);
  background: radial-gradient(120% 80% at 30% 20%, #3d5d4d, #24402f 60%, #1c3326);
  box-shadow: inset 0 0 0 2px #b9bdb9, inset 0 0 0 3px #4a4e4b; /* taste-skill-ignore: the titanium rim */
  display: grid; place-items: center; color: #4d6f5d;
}
.phone-back .pear { width: 22%; height: auto; fill: currentColor; color: #3f6150; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.08)); }
.phone-back .cam {
  position: absolute; left: 6%; top: 3.5%; width: 46%; aspect-ratio: 1; border-radius: 24%;
  background: linear-gradient(145deg, #345644, #20392b);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.35); /* taste-skill-ignore: the raised plateau */
}
.phone-back .cam i {
  position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #6b8fd6 0 6%, #11182a 9% 34%, #050608 36% 52%, #2b2f2d 54% 64%, #9aa09c 66% 72%, #3c403e 74%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: lens depth */
}
.phone-back .cam i:nth-child(1) { left: 7%; top: 7%; }
.phone-back .cam i:nth-child(2) { left: 7%; bottom: 7%; }
.phone-back .cam i:nth-child(3) { right: 7%; top: 30%; }
.phone-back .cam b { position: absolute; right: 14%; top: 9%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff6d8 0 30%, #d9c99a 60%, #8d8468); }
.phone-back .cam s { position: absolute; right: 16%; bottom: 12%; width: 10%; aspect-ratio: 1; border-radius: 50%; background: #0b0f0d; }
.pbtn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #6d726f, #d0d3cf, #6d726f); transform: translateZ(0); }
.p-power { right: -3px; top: 25%; height: 13%; }
.p-vol1 { left: -3px; top: 22%; height: 9%; }
.p-vol2 { left: -3px; top: 33%; height: 9%; }

/* The same phone in the project view. */
.device.is-phone .dv-screen { aspect-ratio: 9 / 19.5; border: 8px solid #050807; border-radius: 17% / 8%; outline: 3px solid #b9bdb9; outline-offset: 0; }
.device.is-phone .dv-screen::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.14), transparent 40%); }
.device.is-phone::before, .device.is-phone::after { background: linear-gradient(90deg, #6d726f, #d0d3cf, #6d726f); }
.device.is-phone::before { right: -6px; }
.device.is-phone::after { left: -6px; }

/* Scenes: each project gets its own small film, not a shared template. */
.scene { position: relative; overflow: hidden; background: var(--f-well); color: var(--f-ink); aspect-ratio: 16 / 10; container-type: inline-size; font-size: clamp(11px, 2.25cqi, 15px); line-height: 1.3; }
@media (max-width: 520px) { .scene { aspect-ratio: 4 / 3.4; } }
.scene ul, .scene ol { margin: 0; padding: 0; list-style: none; }
.scene .ico { width: 1.4em; height: 1.4em; }

/* BasilBot: the inbox answers itself, in Gmail or Outlook. */
.sc-mail { aspect-ratio: 16 / 9; --app: #ea4335; }
.sc-mail.outlook { --app: #0f6cbd; }
.m-client { position: absolute; left: 3.5%; top: 6%; bottom: 6%; width: 45%; background: #f7f8f3; color: #17382b; border-radius: 0.6em; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.m-top { display: flex; align-items: center; gap: 0.45em; padding: 0.65em 0.8em; border-bottom: 1px solid rgba(23, 56, 43, 0.1); }
.m-logo { width: 1.5em; height: 1.5em; }
.m-top b { font-weight: 700; }
.m-switch { margin-left: auto; display: flex; gap: 0.25em; }
.m-switch i { width: 0.5em; height: 0.5em; border-radius: 50%; background: rgba(23, 56, 43, 0.18); transition: background-color 300ms ease, transform 300ms ease; }
.sc-mail:not(.outlook) [data-m-pill="gmail"], .sc-mail.outlook [data-m-pill="outlook"] { background: var(--app); transform: scale(1.2); }
.m-rows { display: grid; align-content: start; }
.m-row { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 0.6em; align-items: center; padding: 0.55em 0.8em; border-bottom: 1px solid rgba(23, 56, 43, 0.06); max-height: 4em; transition: background-color 400ms ease, opacity 400ms ease, transform 600ms var(--ease-out), max-height 600ms var(--ease-out), padding 600ms var(--ease-out); }
.m-av { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--a); color: #fff; font-weight: 700; font-size: 0.9em; }
.m-txt { display: grid; min-width: 0; }
.m-txt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-txt em { font-style: normal; opacity: 0.65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.92em; }
.m-row time { font-size: 0.8em; opacity: 0.55; align-self: start; padding-top: 0.2em; }
.m-new { max-height: 0; opacity: 0; transform: translateY(-40%); padding-block: 0; }
.m-new::before { content: ""; position: absolute; left: 0.25em; top: 50%; width: 0.4em; height: 0.4em; margin-top: -0.2em; border-radius: 50%; background: var(--app); }
.sc-mail[data-stage] .m-new { max-height: 4em; opacity: 1; transform: none; padding-block: 0.55em; background: color-mix(in srgb, var(--app) 9%, transparent); }
.sc-mail[data-stage="sent"] .m-new, .sc-mail[data-stage="read"] .m-new { background: transparent; }
.sc-mail[data-stage="sent"] .m-new::before, .sc-mail[data-stage="read"] .m-new::before { opacity: 0; }
.m-task { position: absolute; right: 0.8em; bottom: 0.3em; font-size: 0.72em; font-weight: 700; padding: 0.05em 0.5em; border-radius: 0.6em; background: var(--gold); color: #17382b; opacity: 0; transform: scale(0.6); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.sc-mail.tasked .m-task { opacity: 1; transform: none; }
.m-taskadd { position: absolute; left: 6%; right: 6%; bottom: 5%; display: flex; align-items: center; gap: 0.4em; padding: 0.45em 0.7em; border-radius: 0.5em; background: #17382b; color: var(--gold); font-weight: 600; font-size: 0.85em; opacity: 0; transform: translateY(40%); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.m-taskadd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-mail.tasked .m-taskadd { opacity: 1; transform: none; }
.m-compose { position: absolute; left: 51.5%; right: 15%; top: 6%; height: 54%; background: #ebece5; color: #17382b; border-radius: 0.6em; padding: 0.7em 0.9em; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 0.25em; opacity: 0; transform: translateY(6%); transition: opacity 400ms ease, transform 500ms var(--ease-out); transform-origin: 80% 20%; }
.m-label { display: flex; align-items: center; gap: 0.5em; font-weight: 700; font-size: 0.9em; margin-bottom: 0.2em; }
.m-bot { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: #17382b; color: var(--gold); }
.m-bot .ico { width: 1.1em; height: 1.1em; }
.sc-mail[data-stage="read"] .m-label span:last-child::after, .sc-mail[data-stage="draft"] .m-label span:last-child::after { content: "…"; animation: dots 900ms steps(3) infinite; display: inline-block; width: 1em; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1em; } }
.m-field { display: flex; gap: 0.6em; font-size: 0.85em; padding-bottom: 0.15em; border-bottom: 1px solid rgba(23, 56, 43, 0.1); }
.m-field span { opacity: 0.5; min-width: 1.6em; }
.m-text { font-size: 0.88em; padding-top: 0.3em; overflow: hidden; }
.sc-mail[data-stage="draft"] .m-text::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -0.15em; background: #17382b; animation: caret 900ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.m-bar { display: flex; align-items: center; gap: 0.4em; }
.m-bar i { width: 0.9em; height: 0.25em; border-radius: 1px; background: rgba(23, 56, 43, 0.2); }
.m-send { margin-left: auto; padding: 0.25em 0.9em; border-radius: 1em; background: rgba(23, 56, 43, 0.15); color: rgba(23, 56, 43, 0.5); font-weight: 700; font-size: 0.85em; transition: background-color 300ms ease, color 300ms ease, transform 200ms ease; }
.sc-mail[data-stage="send"] .m-send { background: var(--app); color: #fff; transform: scale(0.92); }
.sc-mail[data-stage="read"] .m-compose, .sc-mail[data-stage="draft"] .m-compose, .sc-mail[data-stage="ask"] .m-compose, .sc-mail[data-stage="tap"] .m-compose { opacity: 1; transform: none; }
.sc-mail[data-stage="send"] .m-compose { opacity: 0; transform: scale(0.2); transition: opacity 400ms ease 200ms, transform 500ms cubic-bezier(0.5, 0, 0.75, 0) 150ms; }
.m-to { position: absolute; right: 3.5%; top: 9%; display: grid; justify-items: center; gap: 0.3em; opacity: 0; transform: scale(0.7); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.m-to .m-av { width: 2.6em; height: 2.6em; font-size: 1em; box-shadow: 0 0 0 0.2em var(--f-well), 0 0 0 0.35em color-mix(in srgb, var(--app) 60%, transparent); } /* taste-skill-ignore: the inbox it lands in */
.m-to em { font-style: normal; font-size: 0.75em; font-weight: 700; white-space: nowrap; color: var(--f-ink); opacity: 0.8; }
.sc-mail[data-stage="send"] .m-to, .sc-mail[data-stage="sent"] .m-to { opacity: 1; transform: none; }
.sc-mail.landed .m-to .m-av { animation: land 600ms var(--ease-out); }
@keyframes land { 40% { transform: scale(1.25); } }
.m-chat { position: absolute; left: 51.5%; right: 3.5%; bottom: 6%; height: 33%; background: #e7eef3; color: #17382b; border-radius: 0.6em; padding: 0.55em 0.8em; display: grid; grid-template-rows: auto auto auto; align-content: start; gap: 0.35em; opacity: 0; transform: translateY(15%); transition: opacity 300ms ease, transform 400ms var(--ease-out); overflow: hidden; }
.m-chat-top { display: flex; align-items: center; gap: 0.4em; font-size: 0.85em; }
.m-chat-top span { opacity: 0.5; }
.m-tg { width: 1.4em; height: 1.4em; }
.m-bubble { justify-self: start; max-width: 85%; padding: 0.35em 0.7em; border-radius: 0.2em 0.9em 0.9em 0.9em; background: #fff; font-size: 0.85em; font-weight: 500; }
.m-btns { display: flex; gap: 0.4em; }
.m-btns b { padding: 0.2em 0.8em; border-radius: 0.5em; background: #fff; color: #2a8fc9; font-weight: 700; font-size: 0.8em; }
.m-btns .m-yes { background: #2aabee; color: #fff; }
.m-mine { position: absolute; right: 0.8em; bottom: 0.5em; padding: 0.3em 0.8em; border-radius: 0.9em 0.2em 0.9em 0.9em; background: #d7f3c0; font-size: 0.85em; font-weight: 600; opacity: 0; transform: translateY(40%); transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.sc-mail[data-stage="ask"] .m-chat, .sc-mail[data-stage="tap"] .m-chat, .sc-mail[data-stage="send"] .m-chat { opacity: 1; transform: none; }
.sc-mail[data-stage="tap"] .m-yes { animation: tap 500ms var(--ease-out); }
.sc-mail[data-stage="tap"] .m-mine, .sc-mail[data-stage="send"] .m-mine { opacity: 1; transform: none; transition-delay: 300ms; }
@keyframes tap { 40% { transform: scale(0.88); } }
.m-env { position: absolute; left: 0; top: 0; z-index: 3; width: 2.4em; height: 2.4em; margin: -1.2em 0 0 -1.2em; opacity: 0; pointer-events: none; }
.m-env .ico { width: 100%; height: 100%; fill: var(--gold); }
@media (max-width: 520px) { .sc-mail { aspect-ratio: 4 / 3.3; } .m-row time { display: none; } }

/* SnapStyle: snap it, read it, hang it up. */
.sc-snap { --g: #8a6d4f; aspect-ratio: 16 / 9; }
.s-finder { position: absolute; left: 3.5%; top: 6%; bottom: 6%; width: 52%; background: #0d1f17; color: #ebece5; overflow: hidden; display: grid; place-items: center; border-radius: 0.6em; }
.s-ui { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 0.5em; padding: 0.6em 0.8em; font-size: 0.8em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #c2cfbd; }
.s-rec { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--signal); }
.s-ai { margin-left: auto; padding: 0.1em 0.5em; border-radius: 0.4em; background: rgba(235, 236, 229, 0.12); letter-spacing: 0.08em; }
.s-grid { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, transparent calc(33.33% - 0.5px), rgba(235, 236, 229, 0.08) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.66% - 0.5px), rgba(235, 236, 229, 0.08) calc(66.66% - 0.5px) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
  linear-gradient(transparent calc(33.33% - 0.5px), rgba(235, 236, 229, 0.08) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.66% - 0.5px), rgba(235, 236, 229, 0.08) calc(66.66% - 0.5px) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)); }
.s-corner { position: absolute; width: 11%; aspect-ratio: 1; border: 2px solid var(--gold); transition: transform 500ms var(--ease-out); }
.c1 { left: 22%; top: 18%; border-right: 0; border-bottom: 0; } .c2 { right: 22%; top: 18%; border-left: 0; border-bottom: 0; }
.c3 { left: 22%; bottom: 18%; border-right: 0; border-top: 0; } .c4 { right: 22%; bottom: 18%; border-left: 0; border-top: 0; }
.sc-snap[data-stage="focus"] .c1, .sc-snap[data-stage="flash"] .c1 { transform: translate(35%, 35%); } .sc-snap[data-stage="focus"] .c2, .sc-snap[data-stage="flash"] .c2 { transform: translate(-35%, 35%); }
.sc-snap[data-stage="focus"] .c3, .sc-snap[data-stage="flash"] .c3 { transform: translate(35%, -35%); } .sc-snap[data-stage="focus"] .c4, .sc-snap[data-stage="flash"] .c4 { transform: translate(-35%, -35%); }
.s-floor { position: absolute; left: 33%; right: 33%; bottom: 27%; height: 5%; border-radius: 50%; background: rgba(0, 0, 0, 0.35); transition: opacity 300ms ease; }
.s-item { position: relative; width: 34%; height: auto; fill: var(--g); transition: transform 800ms cubic-bezier(0.6, 0, 0.3, 1), opacity 300ms ease; filter: drop-shadow(0 0.15em 0 rgba(0, 0, 0, 0.25)); }
.sc-snap[data-stage="idle"] .s-item { animation: drop-in 600ms var(--ease-out); }
@keyframes drop-in { from { transform: translateY(-30%); opacity: 0; } }
.sc-snap[data-stage="file"] .s-item { transform: translate(var(--tx, 150%), var(--ty, 20%)) scale(0.36); }
.sc-snap[data-stage="file"] .s-floor { opacity: 0; }
.sc-snap[data-stage="reset"] .s-item { opacity: 0; transition: none; }
.s-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.sc-snap[data-stage="flash"] .s-flash { animation: flash 450ms ease-out; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
.s-shutter { position: absolute; bottom: 4%; left: 50%; width: 2.4em; height: 2.4em; margin-left: -1.2em; border-radius: 50%; background: #ebece5; box-shadow: 0 0 0 0.2em #0d1f17, 0 0 0 0.35em rgba(235, 236, 229, 0.7); transition: transform 150ms ease; } /* taste-skill-ignore: camera shutter ring */
.sc-snap[data-stage="flash"] .s-shutter { transform: scale(0.82); }
.s-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold); opacity: 0; } /* taste-skill-ignore: a scanning beam glows */
.sc-snap[data-stage="scan"] .s-scan { opacity: 1; animation: scan 1200ms ease-in-out; }
@keyframes scan { from { top: 12%; } to { top: 88%; } }
.s-tags { position: absolute; right: 4%; top: 22%; display: grid; gap: 0.35em; justify-items: stretch; width: 32%; }
.s-tags li { display: grid; gap: 0.2em; padding: 0.35em 0.6em; border-radius: 0.5em; background: rgba(235, 236, 229, 0.94); color: #17382b; font-size: 0.85em; opacity: 0; transform: translateX(20%); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.s-tags b { font-weight: 700; }
.s-tags i { display: block; height: 3px; border-radius: 2px; background: rgba(23, 56, 43, 0.15); position: relative; overflow: hidden; }
.s-tags i::after { content: ""; position: absolute; inset: 0; background: var(--gold-well); transform-origin: left; transform: scaleX(0); transition: transform 600ms var(--ease-out) 150ms; }
.s-tags li.on { opacity: 1; transform: none; }
.s-tags li.on i::after { transform: scaleX(var(--c, 0.9)); }
.s-closet { position: absolute; right: 3.5%; top: 6%; bottom: 6%; width: 37%; display: grid; grid-template-rows: auto 1fr auto; gap: 4%; background: color-mix(in srgb, var(--f-bg) 60%, transparent); padding: 5% 6%; border-radius: 0.6em; }
.s-head { font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.s-head b { font-family: var(--display); font-stretch: 112%; font-size: 1.15em; transition: transform 300ms var(--ease-out); }
.s-head b.bump { transform: scale(1.3); }
.s-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em 0.4em; align-content: start; }
.s-rail li { position: relative; padding-top: 0.75em; transform-origin: 50% 0; }
.s-rail li::before { content: ""; position: absolute; left: -0.2em; right: -0.2em; top: 0; height: 2px; background: color-mix(in srgb, var(--f-ink) 45%, transparent); }
.s-rail li::after { content: ""; position: absolute; left: 50%; top: 0; width: 0.5em; height: 0.6em; margin-left: -0.25em; border: 2px solid color-mix(in srgb, var(--f-ink) 55%, transparent); border-bottom: 0; border-radius: 0.3em 0.3em 0 0; }
.s-rail svg { display: block; width: 100%; height: auto; fill: var(--c, #c3cbb2); transition: fill 300ms ease; }
.s-rail li.s-slot svg { opacity: 0; }
.s-rail li.s-slot.in svg { opacity: 1; fill: var(--g); }
.s-rail li.s-slot.in { animation: hang 700ms var(--ease-out); }
@keyframes hang { 0% { transform: rotate(-12deg); } 45% { transform: rotate(7deg); } 75% { transform: rotate(-3deg); } 100% { transform: none; } }
.s-saved { justify-self: start; display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.85em; font-weight: 700; padding: 0.25em 0.7em; border-radius: 1em; background: var(--gold); color: #17382b; opacity: 0; transform: translateY(30%); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.s-saved::before { content: "+1"; }
.s-saved.on { opacity: 1; transform: none; }
@media (max-width: 520px) { .sc-snap { aspect-ratio: 4 / 3; } }

/* Multi-agent: the night shift. */
.sc-night { --sky: 0; }
.n-clock { position: absolute; right: 4%; top: 6%; display: flex; align-items: center; gap: 0.5em; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.2em; }
.n-moon { width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--gold); box-shadow: inset -0.35em -0.1em 0 0 var(--f-well); transition: box-shadow 600ms ease, background-color 600ms ease; } /* taste-skill-ignore: crescent */
.sc-night.morning .n-moon { box-shadow: 0 0 0.6em var(--gold); background: var(--gold); }
.n-graph { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.n-edge { fill: none; stroke: color-mix(in srgb, var(--f-ink) 22%, transparent); stroke-width: 2.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.n-dot { position: absolute; width: 0.9em; height: 0.9em; margin: -0.45em 0 0 -0.45em; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0.35em color-mix(in srgb, var(--signal) 25%, transparent); z-index: 1; } /* taste-skill-ignore: a live packet */
.n-node, .n-gate { position: absolute; transform: translate(-50%, -50%); padding: 0.45em 0.9em; border-radius: 2em; background: var(--f-bg); font-weight: 700; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--f-ink) 25%, transparent); transition: background-color 300ms ease, color 300ms ease, transform 300ms var(--ease-out); }
.n1 { left: 16.7%; top: 64.7%; } .n2 { left: 50%; top: 17.6%; } .n3 { left: 83.3%; top: 64.7%; }
.n-gate { left: 50%; top: 88%; display: flex; align-items: center; gap: 0.4em; }
.n-gate em { font-style: normal; }
.n-node.on, .n-gate.on { background: var(--gold); color: #17382b; transform: translate(-50%, -50%) scale(1.08); }
.n-log { position: absolute; left: 4%; top: 6%; display: grid; gap: 0.2em; font-family: ui-monospace, Menlo, monospace; font-size: 0.82em; max-width: 46%; }
.n-log li { opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logline 400ms var(--ease-out); }
.n-log li:nth-last-child(n+3) { opacity: 0.35; }
@keyframes logline { from { opacity: 0; transform: translateY(40%); } }

/* MediFlow: a timer ring fills, a day gets its check. */
.sc-day { display: grid; grid-template-columns: 40% 1fr; align-items: center; gap: 5%; padding: 5%; }
.d-ring { position: relative; aspect-ratio: 1; }
.d-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.d-track, .d-fill { fill: none; stroke-width: 10; }
.d-track { stroke: color-mix(in srgb, var(--f-ink) 14%, transparent); }
.d-fill { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; }
.d-ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.d-ring b { font-family: var(--display); font-stretch: 112%; font-size: 2em; line-height: 1; }
.d-ring span { opacity: 0.7; }
.d-cal { display: grid; gap: 0.6em; }
.d-head { display: flex; justify-content: space-between; font-weight: 700; }
.d-head b { color: var(--signal); }
.d-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3em; }
.d-grid li { aspect-ratio: 1; display: grid; place-items: center; font-size: 0.85em; background: color-mix(in srgb, var(--f-ink) 7%, transparent); transition: background-color 300ms ease, color 300ms ease; }
.d-grid li.done { background: var(--f-ink); color: var(--f-bg); }
.d-grid li.today { box-shadow: inset 0 0 0 2px var(--gold); }
.d-grid li.pop { animation: pop 500ms var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.25); } }

/* Folder pile: the folder underneath sinks back as the next one slides over it. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .folders.pile .folder-body { transform-origin: 50% 0; transform: scale(calc(1 - var(--cover, 0) * 0.06)) translateY(calc(var(--cover, 0) * 18px)); }
  .folders.pile .folder::after { content: ""; position: absolute; inset: 0; background: #050d09; opacity: calc(var(--cover, 0) * 0.55); pointer-events: none; }
}

/* Footer: just the icons, a bit bigger. */
.foot-icons { display: flex; gap: 10px; }
.postcard-right .foot-icons a { width: 52px; height: 52px; min-height: 0; justify-content: center; background: var(--sheet-well); transition: background-color 180ms ease, color 180ms ease, transform 200ms var(--ease-out); }
.foot-icons .ico { width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine) { .postcard-right .foot-icons a:hover { background: var(--gold); color: var(--ink-green); transform: translateY(-3px); } }
.localtime:not(:empty)::before { content: ", where it's "; }

/* ---------- Round four ---------- */

/* "Open the project": bigger and gold, so nobody misses it. */
.open-bench { min-height: 54px; padding: 0 22px; font-size: 1.125rem; background: var(--gold); color: var(--ink-green); }
.open-bench .ico { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .open-bench:hover { background: var(--ink-green); color: var(--gold); } }
/* A one-time hint after five seconds on a folder. */
.coach { position: fixed; z-index: 30; pointer-events: none; border-radius: 6px; }
.coach::before, .coach::after { content: ""; position: absolute; inset: -6px; border: 3px solid var(--gold); border-radius: 10px; animation: coach 1.6s var(--ease-out) infinite; }
.coach::after { animation-delay: 0.8s; }
@keyframes coach { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.35, 1.8); } }
.coach-tip { position: absolute; right: calc(100% + 18px); top: 50%; margin-top: -19px; white-space: nowrap; padding: 8px 14px; background: var(--ink-green); color: var(--gold); font-weight: 700; font-family: var(--display); font-stretch: 108%; border-radius: 20px; animation: coach-in 500ms var(--ease-out) both; }
.coach-tip::before { content: ""; position: absolute; right: -6px; top: 13px; width: 12px; height: 12px; background: var(--ink-green); transform: rotate(45deg); }
@keyframes coach-in { from { opacity: 0; transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .coach::before, .coach::after { animation: none; } }

/* Story lines: one sentence, lit word by word as you scroll past it. */
.say { padding-block: clamp(96px, 14vw, 200px) clamp(72px, 9vw, 140px); }
.say + .work { padding-top: 0; }
.say p { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.9rem, 1.1rem + 3.4vw, 4.2rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; }
.say .w { transition: opacity 300ms ease, color 300ms ease; }
.js .say .w { opacity: 0.16; }
.js .say .w.on { opacity: 1; }
.say .w.key { color: var(--gold-well); }
[data-theme="dark"] .say .w.key { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .js .say .w { opacity: 1; } }

/* Hangar: two flights to pick from. */
.hg-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hg-alt { background: rgba(235, 236, 229, 0.14); color: #ebece5; }
@media (hover: hover) and (pointer: fine) { .hg-alt:hover { background: #ebece5; color: #17382b; } }
.hg-hud [hidden] { display: none; }

/* The one-time theme hint (theme-hint.js): a gold outline on the switch and a small tag under it, for 2 seconds. */
.theme-btn.hinting { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 50%; }
.theme-hint { position: fixed; z-index: 80; margin: 0; padding: 7px 12px; background: var(--gold); color: var(--ink-green); font-family: var(--text); font-weight: 700; font-size: 0.875rem; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(-6px); transition: opacity 400ms ease, transform 400ms var(--ease-out); }
.theme-hint::before { content: ""; position: absolute; top: -6px; left: calc(var(--arrow, 50%) - 6px); border: 6px solid transparent; border-top: 0; border-bottom-color: var(--gold); }
.theme-hint.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .theme-btn.hinting { animation: theme-ping 1s ease-out 2; }
  @keyframes theme-ping { 0% { outline-offset: 2px; } 60% { outline-offset: 7px; outline-color: rgba(227, 180, 60, 0.4); } 100% { outline-offset: 3px; } }
}

/* ---------- Round five: clearer buttons ---------- */
/* "Take the tour" (was "Open the project"): it opens the project inside the page, so no outward arrow. */
.open-bench { min-height: 60px; padding: 0 26px; gap: 12px; font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); letter-spacing: -0.01em; }
.open-bench .ico { width: 22px; height: 22px; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .open-bench:hover .ico { transform: scale(1.18); } }

/* The postcard's links: labelled LinkedIn and GitHub tiles, then three full-width buttons. */
.postcard-right ul { gap: 10px; min-width: min(100%, 300px); }
.postcard-right .foot-icons { gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.postcard-right .foot-icons a { width: auto; height: 56px; padding: 0 20px 0 16px; gap: 12px; justify-content: flex-start; font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.125rem; text-decoration: none; }
.postcard-right .foot-btn { display: flex; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 20px; background: var(--sheet-well); font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.postcard-right .foot-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; transition: transform 250ms var(--ease-out); }
.postcard-right .foot-btn:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .postcard-right .foot-btn:hover { background: var(--gold); color: var(--ink-green); }
  .postcard-right li:nth-child(2) .foot-btn:hover svg { transform: translateX(4px); }
  .postcard-right li:nth-child(3) .foot-btn:hover svg { transform: translateY(-2px); }
  .postcard-right li:nth-child(4) .foot-btn:hover svg { transform: translateY(-4px); }
}

/* ---------- Round six: a tighter postcard ---------- */
/* Bigger sign-off and note, so the left side fills its half. */
.signoff { font-size: clamp(2.3rem, 1.3rem + 3.3vw, 4.1rem); }
.postcard-left p + p { margin-top: 24px; max-width: 28em; font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem); line-height: 1.45; }
/* The links sit as short buttons in rows (LinkedIn and GitHub, then About me, Home and Back to the top), not full-width bars. */
.postcard-right ul { display: flex; flex-wrap: wrap; align-content: start; gap: 10px; min-width: 0; }
.postcard-right ul > li { display: flex; }
.postcard-right .foot-icons { flex-basis: 100%; margin-bottom: 0; }
.postcard-right .foot-btn { display: inline-flex; justify-content: flex-start; gap: 12px; height: 56px; min-height: 0; }
/* A bigger stamp. */
.stamp { width: clamp(96px, 8vw, 132px); height: auto; }
.postcard-right .foot-btn, .postcard-right .foot-icons a { white-space: nowrap; }
@media (max-width: 1600px) {
  .postcard-right ul { gap: 8px; }
  .postcard-right .foot-icons { gap: 8px; }
  .postcard-right .foot-btn { padding: 0 16px; font-size: 1.0625rem; gap: 10px; }
  .stamp { width: clamp(80px, 6.5vw, 132px); }
}
/* Phones: the stamp sits above the links, and the links get the full width. */
@media (max-width: 720px) {
  .postcard-right { grid-template-columns: 1fr; }
  .postcard-right .stamp { grid-column: 1; grid-row: 1; width: 72px; }
  .postcard-right ul { grid-column: 1; grid-row: 2; }
  .postcard-right .foot-icons a, .postcard-right .foot-btn { height: 52px; padding: 0 14px 0 12px; gap: 10px; font-size: 1rem; }
  .postcard-right .foot-icons .ico { width: 24px; height: 24px; }
}
