/* Self-hosted from Google Fonts (OFL), latin + latin-ext only. */
@font-face {
  font-family: 'Anybody';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url(../fonts/Anybody-normal-300-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anybody';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url(../fonts/Anybody-normal-300-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-normal-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/IBMPlexSans-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/IBMPlexSans-italic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/IBMPlexSans-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/IBMPlexSans-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/IBMPlexSans-normal-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/IBMPlexSans-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* papa Bender — "Time Spiral" redesign, 2026-10.
   The wall is concrete (the portfolio was always photographed taped to a wall);
   the spiral is drawn in ink with one signal red, the colour of the Time Spiral markers. */

:root {
  --wall: #dcddd8;      /* concrete */
  --wall-2: #cfd0ca;    /* concrete, shadowed */
  --paper: #f6f6f3;     /* photo paper */
  --ink: #1b1c1e;
  --graphite: #55585c;  /* 5.2:1 on the wall */
  --signal: #d2381c;    /* Time Spiral red — marks and dots (3.6:1, fine for graphics) */
  --signal-ink: #a92b12; /* the same red, darkened for small text (5.1:1) */
  --tape: rgba(233, 222, 160, .78);
  --line: rgba(27, 28, 30, .18);
  --shadow: 0 1px 1px rgba(0,0,0,.08), 0 10px 24px -8px rgba(0,0,0,.35);

  --f-display: "Anybody", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #1d1e1f; --wall-2: #252628; --paper: #2c2d30; --ink: #e8e7e2; --graphite: #9a9c9f;
    --signal: #ff5a3c; --signal-ink: #ff6a4d; --tape: rgba(200, 190, 130, .45); --line: rgba(232, 231, 226, .16);
    --shadow: 0 1px 1px rgba(0,0,0,.3), 0 12px 28px -8px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #1d1e1f; --wall-2: #252628; --paper: #2c2d30; --ink: #e8e7e2; --graphite: #9a9c9f;
  --signal: #ff5a3c; --signal-ink: #ff6a4d; --tape: rgba(200, 190, 130, .45); --line: rgba(232, 231, 226, .16);
  --shadow: 0 1px 1px rgba(0,0,0,.3), 0 12px 28px -8px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  /* faint concrete grain, no image request */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.03) 0 1px, transparent 1.5px);
  background-size: 7px 7px, 11px 11px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--wall); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--wall) 82%, transparent);
  backdrop-filter: blur(6px);
}
.mark { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--f-display); font-weight: 800; line-height: 1; }
.mark-p { font-size: 1.05rem; font-stretch: 60%; margin-right: 1px; }
.mark-b { font-size: 1.6rem; font-stretch: 120%; }
.bar nav { display: flex; gap: clamp(14px, 3vw, 32px); font: 500 .8125rem/1 var(--f-mono); letter-spacing: .04em; text-transform: lowercase; }
.bar nav a { text-decoration: none; padding: 6px 0; }

/* ---------- hero ---------- */
.hero {
  min-height: min(100svh, 1000px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 88px var(--gutter) 40px;
}
.hero-text { align-self: end; padding-bottom: 6vh; container-type: inline-size; min-width: 0; }
h1 {
  margin: 0; font-family: var(--f-display); font-weight: 800; line-height: .84;
  letter-spacing: -.01em;
}
h1 .n1 { display: block; font-stretch: 52%; font-weight: 500; font-size: min(10cqi, 5rem); letter-spacing: .02em; }
h1 .n2 { display: block; font-stretch: 150%; font-size: min(15.6cqi, 10rem); white-space: nowrap; animation: bend 1.6s cubic-bezier(.2,.7,.1,1) both .1s; }
@keyframes bend { from { font-stretch: 50%; letter-spacing: -.04em; } to { font-stretch: 150%; letter-spacing: -.01em; } }

.roles { margin: 22px 0 0; font: 500 .9375rem/1.5 var(--f-mono); color: var(--graphite); max-width: 30ch; }
.roles span { display: inline-block; }
.roles span:nth-child(1), .roles span:nth-child(6) { color: var(--ink); }
.aka { margin: 18px 0 0; max-width: 36ch; }
.legend { margin: 28px 0 0; display: grid; gap: 6px; font: 400 .8125rem/1.3 var(--f-mono); color: var(--graphite); }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend dt { color: var(--signal); line-height: 0; }
.legend dd { margin: 0; }
.hint { margin: 14px 0 0; font: 400 .8125rem/1.4 var(--f-mono); color: var(--graphite); max-width: 34ch; }

/* ---------- spiral ---------- */
.spiral-wrap { position: relative; margin: 0; width: 100%; max-width: min(86svh, 860px); justify-self: center; }
#spiral { width: 100%; height: auto; display: block; overflow: visible; touch-action: manipulation; }
#spiral .track { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
#spiral .track-ghost { fill: none; stroke: var(--line); stroke-width: 1; }
#spiral .tick { stroke: var(--ink); stroke-width: 1; opacity: .35; }
#spiral .yr { font: 500 15px var(--f-mono); fill: var(--graphite); }
#spiral .era { fill: none; stroke: var(--signal); stroke-width: 5; stroke-linecap: butt; opacity: .9; }
#spiral .era-lbl { font: 600 13px var(--f-mono); letter-spacing: .14em; fill: var(--signal-ink); text-transform: uppercase; }
#spiral .dot { cursor: pointer; outline: none; }
#spiral .dot circle.hit { fill: transparent; }
#spiral .dot circle.work { fill: var(--ink); transition: r .2s, fill .2s; }
#spiral .dot circle.life { fill: var(--wall); stroke: var(--ink); stroke-width: 2; transition: r .2s; }
#spiral .dot.on circle.work, #spiral .dot:focus-visible circle.work { fill: var(--signal); }
#spiral .dot.on circle.life, #spiral .dot:focus-visible circle.life { stroke: var(--signal); }
#spiral .dot:focus-visible circle.hit { stroke: var(--signal); stroke-width: 2; stroke-dasharray: 3 3; }
#spiral .award-ring { fill: none; stroke: var(--signal); stroke-width: 1.4; }
#spiral .cursor { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; }

.readout {
  position: absolute; left: 0; top: 0; display: grid; gap: 2px;
  font-family: var(--f-mono); color: var(--graphite); font-size: .8125rem; pointer-events: none;
}
.readout .r-year { font: 800 2.6rem/1 var(--f-display); font-stretch: 130%; color: var(--ink); font-variant-numeric: tabular-nums; }

/* taped print that follows the hovered dot */
.print {
  position: absolute; z-index: 5; width: min(300px, 46%);
  background: var(--paper); padding: 10px 10px 12px; box-shadow: var(--shadow);
  transform: rotate(var(--tilt, -2deg)); pointer-events: none;
  transition: opacity .18s;
}
.print img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--wall-2); }
.print-cap { margin: 8px 2px 0; font: 500 .8125rem/1.35 var(--f-mono); }
.print-cap b { display: block; font: 700 1rem/1.15 var(--f-body); }
.print.text-only img { display: none; }
.tape {
  position: absolute; top: -11px; left: 50%; width: 92px; height: 24px; margin-left: -46px;
  background: var(--tape); transform: rotate(3deg);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 48%);
}

/* ---------- sections ---------- */
section { padding: clamp(64px, 10vw, 140px) var(--gutter); }
h2 { font: 800 clamp(2.2rem, 5vw, 4rem)/.95 var(--f-display); font-stretch: 125%; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font: 600 .8125rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); margin: 36px 0 12px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; border-bottom: 1.4px solid var(--ink); padding-bottom: 14px; }
.sec-head p { margin: 0; color: var(--graphite); font-family: var(--f-mono); font-size: .875rem; }

/* index: one block per place */
.place { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 0 32px; border-bottom: 1px solid var(--line); padding: 26px 0 30px; }
.place h3 { margin: 4px 0 0; color: var(--ink); font: 800 1.6rem/1 var(--f-display); font-stretch: 115%; letter-spacing: 0; text-transform: none; }
.place h3 small { display: block; margin-top: 8px; font: 400 .8125rem/1 var(--f-mono); color: var(--graphite); letter-spacing: .04em; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 4.5ch 1fr auto; gap: 16px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .y { font: 500 .875rem var(--f-mono); color: var(--graphite); font-variant-numeric: tabular-nums; }
.row .t { font-weight: 500; }
.row .k { font: 400 .8125rem var(--f-mono); color: var(--graphite); text-align: right; }
.row button.t { all: unset; cursor: pointer; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; }
.row button.t:hover { color: var(--signal-ink); text-decoration-color: currentColor; }
.row button.t:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.row.life .t { color: var(--graphite); font-weight: 400; }
.row .aw { color: var(--signal-ink); font-size: .8125rem; margin-left: 8px; font-family: var(--f-mono); white-space: nowrap; }

/* about */
.about { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.pinned { position: relative; margin: 18px 0 0; background: var(--paper); padding: 12px 12px 40px; box-shadow: var(--shadow); transform: rotate(-1.6deg); max-width: 420px; }
.pinned img { aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about-text { max-width: 62ch; }
.lede { font: 500 1.375rem/1.4 var(--f-body); margin-top: 0; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 8px 0; border-top: 1px solid var(--line); }
.facts b { display: inline-block; min-width: 8ch; font: 500 .875rem var(--f-mono); color: var(--signal-ink); }
.tools, .langs { color: var(--graphite); }

/* contact */
.contact { border-top: 1.4px solid var(--ink); margin: 0 var(--gutter); padding-left: 0; padding-right: 0; }
.contact h2 { font-size: clamp(2.6rem, 8vw, 7rem); font-stretch: 140%; max-width: 12ch; }
.mail-btn {
  font: 500 1.25rem var(--f-mono); color: var(--ink); background: none; cursor: pointer;
  border: 1.4px solid var(--ink); padding: 12px 18px;
}
.mail-btn:hover { background: var(--ink); color: var(--wall); }
.mail a { font: 500 clamp(1.25rem, 3vw, 2rem) var(--f-mono); }
.links { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font: 500 .9375rem var(--f-mono); }
.coords { margin-top: 40px; font: 400 .8125rem var(--f-mono); color: var(--graphite); }
.foot { padding: 28px var(--gutter) 40px; font: 400 .75rem var(--f-mono); color: var(--graphite); }

/* ---------- work dialog ---------- */
dialog#work {
  width: min(1100px, 100vw - 24px); max-height: calc(100svh - 24px); padding: 0;
  border: 0; background: var(--wall); color: var(--ink); box-shadow: var(--shadow);
}
dialog#work::backdrop { background: rgba(20, 20, 22, .72); }
dialog#work article { padding: clamp(20px, 4vw, 56px); }
.w-close { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 12px; background: var(--wall); z-index: 2; }
.w-close button { font: 500 .8125rem var(--f-mono); background: none; border: 1px solid var(--ink); color: var(--ink); padding: 8px 12px; cursor: pointer; }
.w-close kbd { opacity: .6; font: inherit; margin-left: 4px; }
.w-meta { font: 500 .8125rem var(--f-mono); color: var(--graphite); margin: 0 0 10px; }
#w-title { font-size: clamp(2.2rem, 6vw, 4.6rem); }
.w-award { color: var(--signal-ink); font: 600 .875rem var(--f-mono); }
.w-text { font-size: 1.1875rem; max-width: 56ch; }
.w-role { font: 400 .875rem var(--f-mono); color: var(--graphite); }
/* pictures: wide ones take a full row, tall and square ones pair up side by side */
.w-imgs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; gap: 30px 26px; margin-top: 28px; align-items: start; }
.w-imgs figure { margin: 0; background: var(--paper); padding: 10px; box-shadow: var(--shadow); position: relative; min-width: 0; }
.w-imgs figure.land, .w-imgs figure.video { grid-column: 1 / -1; }
.w-imgs figure.small { justify-self: center; width: fit-content; max-width: 100%; }
.w-imgs figure img { width: 100%; height: auto; }
.w-imgs figure.small img { width: auto; }
.w-imgs figure.port, .w-imgs figure.sq { justify-self: center; width: fit-content; max-width: 100%; }
.w-imgs figure.port img, .w-imgs figure.sq img { width: auto; max-width: 100%; max-height: 82svh; }
.w-imgs figure:nth-child(4n+1) { transform: rotate(-.5deg); }
.w-imgs figure:nth-child(4n+2) { transform: rotate(.4deg); }
.w-imgs figure:nth-child(4n+3) { transform: rotate(.3deg); }
.w-imgs figure:nth-child(4n) { transform: rotate(-.35deg); }
@media (max-width: 640px) {
  .w-imgs { grid-template-columns: 1fr; gap: 22px; }
  .w-imgs figure.port img, .w-imgs figure.sq img { max-height: none; width: 100%; }
}
.w-imgs .dotline { aspect-ratio: 16/9; display: grid; place-items: center; background: var(--paper); }
.w-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 16px; }
.w-nav button { all: unset; cursor: pointer; font: 500 .875rem var(--f-mono); }
.w-nav button:hover { color: var(--signal-ink); }
.w-nav button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 84px; }
  .hero-text { padding-bottom: 0; order: 0; }
  .spiral-wrap { order: 1; max-width: 560px; }
  .place { grid-template-columns: 1fr; }
  .place h3 { margin-bottom: 12px; }
  .about { grid-template-columns: 1fr; }
  .pinned { max-width: 300px; }
}
@media (max-width: 520px) {
  #spiral .yr { font-size: 30px; }
  #spiral .era-lbl { font-size: 26px; letter-spacing: .08em; }
  #spiral .dot circle.work { r: 15px; }
  #spiral .dot circle.life { r: 11px; stroke-width: 3; }
  #spiral .award-ring { r: 23px; stroke-width: 2.4; }
  #spiral .dot circle.hit { r: 30px; }
  #spiral .track { stroke-width: 2.4; }
  .row { grid-template-columns: 4.5ch 1fr; }
  .row .k { grid-column: 2; text-align: left; margin-top: -6px; }
  .readout .r-year { font-size: 1.8rem; }
  .print { width: 62%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* language switch */
.lang { font: inherit; letter-spacing: .06em; background: none; color: inherit; border: 1px solid currentColor; padding: 5px 8px; cursor: pointer; text-transform: uppercase; }
.lang:hover { background: var(--ink); color: var(--wall); }

/* video facade: poster + one red dot to press */
.w-imgs figure.video { width: 100%; }
.w-imgs .play { all: unset; display: block; position: relative; cursor: pointer; width: 100%; }
.w-imgs .play img { width: 100%; max-height: none; aspect-ratio: 16 / 9; object-fit: cover; }
.play-dot {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--signal); box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .2s;
}
.play-dot::after { content: ""; position: absolute; left: 31px; top: 24px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.play:hover .play-dot, .play:focus-visible .play-dot { transform: scale(1.08); }
.play:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.play-lbl { position: absolute; left: 12px; bottom: 12px; font: 500 .8125rem var(--f-mono); background: var(--paper); color: var(--ink); padding: 4px 8px; }
.w-imgs iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
/* the keyboard hint only appears once someone is using the keyboard */
.kbd-hint { display: none; }
.hero:has(:focus-visible) .kbd-hint { display: block; }

/* phones: the print docks under the spiral instead of chasing the dot off-screen */
@media (max-width: 640px) {
  .print {
    left: 50% !important; right: auto !important; top: auto !important; bottom: -24px;
    width: min(300px, 84%); transform: translateX(-50%) rotate(var(--tilt, -2deg));
  }
}

/* printing the page gives a clean CV-like sheet: list, about, contact — no spiral, no dialog */
@media print {
  :root { --wall: #fff; --paper: #fff; --ink: #000; --graphite: #444; --line: #bbb; }
  body { background: #fff; font-size: 10.5pt; }
  .bar, .skip, .spiral-wrap, .legend, .hint, .mail-btn, .lang, dialog, .pinned .tape { display: none !important; }
  .hero { min-height: 0; display: block; padding: 0 0 12pt; }
  .hero-text { padding: 0; }
  h1 .n2 { animation: none; font-size: 40pt; }
  section { padding: 14pt 0; }
  .place h3 { break-after: avoid; }
  .place, .row { break-inside: avoid; }
  .row button.t { text-decoration: none; }
  .pinned { box-shadow: none; transform: none; max-width: 120pt; }
  .contact { margin: 0; }
  .links a::after { content: " — " attr(href); font-size: 8pt; color: #444; }
  .foot { padding: 0; }
}

/* 404 */
.lost { min-height: 100svh; display: grid; place-content: center; gap: 8px; padding: 32px var(--gutter); max-width: 640px; margin: 0 auto; }
.lost svg { max-width: 100%; height: auto; color: var(--ink); }
.lost-h { font: 800 clamp(2.4rem, 8vw, 4.4rem)/.95 var(--f-display); font-stretch: 130%; margin: 12px 0 4px; }
.lost a { font-family: var(--f-mono); }

/* ---------- work index as a taped wall (variant C merged into v5) ---------- */
.place .rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 34px 26px; align-items: start; padding-top: 14px; }
.place .row.life { grid-column: 1 / -1; border-top: 0; padding: 0; grid-template-columns: 4.5ch 1fr auto; }
.card { position: relative; transform: rotate(var(--r, 0deg)); transition: transform .2s; }
.card:hover, .card:focus-within { transform: rotate(0deg) translateY(-3px); z-index: 2; }
.card button {
  all: unset; box-sizing: border-box; display: grid; gap: 2px; width: 100%; cursor: pointer;
  background: var(--paper); padding: 8px 8px 12px; box-shadow: var(--shadow); position: relative;
}
.card button:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; background: var(--wall-2); }
.card .c-y { font: 500 .75rem var(--f-mono); color: var(--signal-ink); }
.card .c-v { color: var(--graphite); }
.card .c-t { font: 600 1rem/1.25 var(--f-body); }
.card .c-k { font: 400 .75rem var(--f-mono); color: var(--graphite); }
.card .c-aw { font: 600 .75rem var(--f-mono); color: var(--signal-ink); margin-top: 4px; }
.card.has-award button::after {
  content: "★"; position: absolute; right: -10px; top: -12px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--signal); color: #fff; display: grid; place-items: center; font-size: 13px;
}
.card .tape { top: -10px; width: 70px; margin-left: -35px; }
@media (max-width: 520px) {
  .place .rows { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .card .c-t { font-size: .875rem; }
}
@media print {
  .place .rows { grid-template-columns: repeat(4, 1fr); gap: 10pt; }
  .card { transform: none; break-inside: avoid; }
  .card button { box-shadow: none; border: .5pt solid #bbb; }
  .card .tape, .card.has-award button::after { display: none; }
}
.life-list { list-style: none; margin: 18px 0 0; padding: 0; font: 400 .8125rem/1.4 var(--f-mono); color: var(--graphite); }
.life-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.life-list .y { color: var(--ink); margin-right: 6px; }
.place-life { align-self: start; position: sticky; top: 76px; }
@media (max-width: 900px) { .place-life { position: static; } .life-list { margin-bottom: 14px; } }

/* ---------- static work pages (/work/<id>.html, generated by tools/build_static.py) ---------- */
.workpage .wp { max-width: 1100px; margin: 0 auto; padding: 96px var(--gutter) 64px; }
.workpage .wp-h { font: 800 clamp(2.4rem, 6vw, 4.8rem)/.95 var(--f-display); font-stretch: 125%; margin: 0 0 14px; letter-spacing: -.01em; }
.workpage .wp-es { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 62ch; }
.workpage .wp-es h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.workpage .w-nav a { font: 500 .875rem var(--f-mono); text-decoration: none; }
.workpage .w-nav a:hover { color: var(--signal-ink); }
/* the pre-rendered list in index.html uses links instead of buttons — same look */
.card a { box-sizing: border-box; display: grid; gap: 2px; width: 100%; color: inherit; text-decoration: none;
  background: var(--paper); padding: 8px 8px 12px; box-shadow: var(--shadow); position: relative; }
.card a:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
