/* nathanielmillerart.com — v2.0
   Museum rooms (dark / paper) and the front porch (About).
   Motifs: the red sun, portals through stone, cracks, slow lime wax. */

:root {
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-text: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --sun: #d8262f;
  --sun-hi: #ff6a45;
  --sun-lo: #8e1020;
  --teal: #22c3b4;
  --pink: #ff4fa3;
  --orange: #ff8a1f;
  --lime: #9bd92c;
  --violet: #7a52ff;

  --gutter: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.ground-dark {
  --bg: #100e0d; --bg-2: #1b1816; --ink: #ede6db; --muted: #9a9187;
  --line: rgba(237, 230, 219, .13); --line-strong: rgba(237, 230, 219, .42);
  --card: rgba(27, 24, 22, .92); --shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.ground-paper {
  --bg: #efe8dc; --bg-2: #e5dbca; --ink: #1d1915; --muted: #6d645a;
  --line: rgba(29, 25, 21, .15); --line-strong: rgba(29, 25, 21, .45);
  --card: rgba(246, 241, 232, .95); --shadow: 0 22px 50px rgba(70, 50, 25, .2);
}
.ground-porch {
  --bg: #130c19; --bg-2: #22162c; --ink: #f4edf6; --muted: #b9a9c3;
  --line: rgba(244, 237, 246, .16); --line-strong: rgba(244, 237, 246, .5);
  --card: rgba(19, 12, 25, .8); --shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
main { position: relative; z-index: 1; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- type */

@font-face {
  font-family: "Pinyon Script";
  src: url("/fonts/pinyon-script/PinyonScript-Regular.ttf") format("truetype");
  font-style: normal; font-weight: 400; font-display: swap;
}

.display {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 330;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: clamp(3.1rem, 8.6vw, 8.4rem);
  line-height: .9;
  letter-spacing: -.02em;
  margin: 0;
}
.display--page { font-size: clamp(2.8rem, 6.5vw, 5.6rem); }
.display--about { font-size: clamp(3rem, 7vw, 6.4rem); }

h2 {
  font-family: var(--f-display);
  font-weight: 360;
  font-variation-settings: "opsz" 72, "SOFT" 50;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin: 0;
}

.eyebrow {
  font: 500 12px/1.4 var(--f-text);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--ink); }

.sun-dot {
  display: inline-block;
  width: .62em; height: .62em;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, var(--sun-hi), var(--sun) 55%, var(--sun-lo));
  box-shadow: 0 0 14px rgba(255, 70, 50, .45);
  vertical-align: .02em;
  flex: none;
}

.textlink {
  display: inline-flex; align-items: center; gap: .55em;
  font: italic 400 1.25rem/1.3 var(--f-display);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .28em;
}
.textlink:hover { text-decoration-color: var(--sun); }

.button {
  display: inline-flex; align-items: center; gap: .7em;
  font: 500 12px/1 var(--f-text);
  letter-spacing: .18em; text-transform: uppercase;
  padding: 15px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.button--ghost { border-color: var(--line); }
.chip {
  font: 500 11px/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .45); color: #eee;
}
.chip[aria-pressed="false"] { opacity: .55; }

/* ---------------------------------------------------------------- masthead + footer */

.masthead {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px var(--gutter);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .55em;
  font: italic 400 1.45rem/1 var(--f-display);
  font-variation-settings: "opsz" 48, "SOFT" 100, "WONK" 1;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark--small { font-size: 1.15rem; }
.sun-mark { width: 1em; height: 1em; flex: none; }
.mainnav, .footer nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.mainnav a, .footer nav a {
  position: relative;
  font: 500 12px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; opacity: .82;
  padding: 8px 0;
}
.mainnav a:hover, .mainnav a.is-active { opacity: 1; }
.mainnav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 10px rgba(255, 70, 50, .6);
}

.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 64px var(--gutter) 96px;
  background: var(--bg);
}
.footer__quote {
  font: italic 300 clamp(1.25rem, 2.4vw, 1.7rem)/1.35 var(--f-display);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  max-width: 820px; margin: 0 auto 48px; text-align: center; color: var(--muted);
}
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__copy { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- heroes (shared) */

.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero__sub {
  font: 500 12px/1.5 var(--f-text); letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 0;
}
.hero__credit {
  position: absolute; right: var(--gutter); bottom: 26px; z-index: 3;
  font-size: 13px; color: var(--muted); text-decoration: none; text-align: right;
}
.hero__credit em { font: italic 400 1.1rem var(--f-display); color: var(--ink); }
.hero__credit span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.hero__credit:hover em { text-decoration: underline; text-underline-offset: 4px; }

.plaster {
  background:
    radial-gradient(ellipse 70% 60% at 55% 45%, #2c2621 0%, #1b1714 50%, #0c0a09 100%);
}
.plaster::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* cracks — drawn by portal.js */
.crack-dark { stroke: #050403; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.crack-light { stroke: rgba(255, 232, 205, .13); stroke-linecap: round; fill: none; }
.cracks-anim .crack-dark, .cracks-anim .crack-light {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: crack-draw .5s var(--ease) forwards;
}
@keyframes crack-draw { to { stroke-dashoffset: 0; } }

/* the red sun, sliced like Nat paints it */
.bigsun { position: relative; width: clamp(130px, 23vmin, 270px); aspect-ratio: 1; }
.bigsun::before {
  content: ""; position: absolute; inset: -70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 70, 45, .32) 0%, rgba(255, 60, 40, .1) 38%, transparent 68%);
  animation: sun-breathe 9s ease-in-out infinite alternate;
}
.bigsun i {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ff7a52 0%, #e3302f 42%, #b3172a 75%, #7d0d1e 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath d='M-4.0 -2.0L4.0 -2.0L12.0 -2.0L20.0 -2.0L28.0 -2.0L36.0 -2.0L44.0 -2.0L52.0 -2.0L60.0 -2.0L68.0 -2.0L76.0 -2.0L84.0 -2.0L92.0 -2.0L100.0 -2.0L108.0 -2.0L116.0 -2.0L124.0 -2.0L132.0 -2.0L140.0 -2.0L148.0 -2.0L156.0 -2.0L164.0 -2.0L172.0 -2.0L180.0 -2.0L188.0 -2.0L196.0 -2.0L204.0 -2.0L204.0 111.8L196.0 111.3L188.0 110.2L180.0 109.0L172.0 108.0L164.0 107.5L156.0 107.6L148.0 107.9L140.0 108.1L132.0 108.0L124.0 107.6L116.0 107.3L108.0 107.5L100.0 108.3L92.0 109.4L84.0 110.6L76.0 111.4L68.0 111.6L60.0 111.3L52.0 111.0L44.0 110.9L36.0 111.2L28.0 111.5L20.0 111.6L12.0 111.1L4.0 110.1L-4.0 108.9Z M-4.0 113.9L4.0 115.1L12.0 116.1L20.0 116.6L28.0 116.5L36.0 116.2L44.0 115.9L52.0 116.0L60.0 116.3L68.0 116.6L76.0 116.4L84.0 115.6L92.0 114.4L100.0 113.3L108.0 112.5L116.0 112.3L124.0 112.6L132.0 113.0L140.0 113.1L148.0 112.9L156.0 112.6L164.0 112.5L172.0 113.0L180.0 114.0L188.0 115.2L196.0 116.3L204.0 116.8L204.0 128.7L196.0 129.5L188.0 130.1L180.0 130.4L172.0 129.9L164.0 129.0L156.0 127.8L148.0 127.0L140.0 126.6L132.0 126.6L124.0 126.7L116.0 126.5L108.0 125.9L100.0 125.2L92.0 124.7L84.0 124.8L76.0 125.5L68.0 126.6L60.0 127.7L52.0 128.4L44.0 128.5L36.0 128.4L28.0 128.4L20.0 128.8L12.0 129.4L4.0 130.1L-4.0 130.3Z M-4.0 137.3L4.0 137.1L12.0 136.4L20.0 135.8L28.0 135.4L36.0 135.4L44.0 135.5L52.0 135.4L60.0 134.7L68.0 133.6L76.0 132.5L84.0 131.8L92.0 131.7L100.0 132.2L108.0 132.9L116.0 133.5L124.0 133.7L132.0 133.6L140.0 133.6L148.0 134.0L156.0 134.8L164.0 136.0L172.0 136.9L180.0 137.4L188.0 137.1L196.0 136.5L204.0 135.7L204.0 144.6L196.0 144.9L188.0 145.6L180.0 146.5L172.0 147.3L164.0 147.5L156.0 147.0L148.0 146.1L140.0 145.2L132.0 144.5L124.0 144.3L116.0 144.3L108.0 144.3L100.0 143.8L92.0 143.0L84.0 142.1L76.0 141.5L68.0 141.7L60.0 142.4L52.0 143.4L44.0 144.3L36.0 144.7L28.0 144.8L20.0 144.8L12.0 145.0L4.0 145.6L-4.0 146.5Z M-4.0 155.5L4.0 154.6L12.0 154.0L20.0 153.8L28.0 153.8L36.0 153.7L44.0 153.3L52.0 152.4L60.0 151.4L68.0 150.7L76.0 150.5L84.0 151.1L92.0 152.0L100.0 152.8L108.0 153.3L116.0 153.3L124.0 153.3L132.0 153.5L140.0 154.2L148.0 155.1L156.0 156.0L164.0 156.5L172.0 156.3L180.0 155.5L188.0 154.6L196.0 153.9L204.0 153.6L204.0 162.7L196.0 163.1L188.0 163.0L180.0 162.3L172.0 161.2L164.0 160.1L156.0 159.3L148.0 159.1L140.0 159.2L132.0 159.3L124.0 159.1L116.0 158.7L108.0 158.1L100.0 157.9L92.0 158.3L84.0 159.3L76.0 160.5L68.0 161.5L60.0 162.0L52.0 162.0L44.0 161.8L36.0 161.8L28.0 162.1L20.0 162.6L12.0 163.0L4.0 162.9L-4.0 162.2Z M-4.0 173.2L4.0 173.9L12.0 174.0L20.0 173.6L28.0 173.1L36.0 172.8L44.0 172.8L52.0 173.0L60.0 173.0L68.0 172.5L76.0 171.5L84.0 170.3L92.0 169.3L100.0 168.9L108.0 169.1L116.0 169.7L124.0 170.1L132.0 170.3L140.0 170.2L148.0 170.1L156.0 170.3L164.0 171.1L172.0 172.2L180.0 173.3L188.0 174.0L196.0 174.1L204.0 173.7L204.0 175.9L196.0 175.8L188.0 175.9L180.0 176.4L172.0 177.3L164.0 178.4L156.0 179.2L148.0 179.4L140.0 179.0L132.0 178.2L124.0 177.5L116.0 177.1L108.0 177.1L100.0 177.1L92.0 176.8L84.0 176.1L76.0 175.1L68.0 174.1L60.0 173.6L52.0 173.7L44.0 174.4L36.0 175.2L28.0 175.8L20.0 176.1L12.0 176.0L4.0 176.1L-4.0 176.5Z M-4.0 189.5L4.0 189.1L12.0 189.0L20.0 189.1L28.0 188.8L36.0 188.2L44.0 187.4L52.0 186.7L60.0 186.6L68.0 187.1L76.0 188.1L84.0 189.1L92.0 189.8L100.0 190.1L108.0 190.1L116.0 190.1L124.0 190.5L132.0 191.2L140.0 192.0L148.0 192.4L156.0 192.2L164.0 191.4L172.0 190.3L180.0 189.4L188.0 188.9L196.0 188.8L204.0 188.9L204.0 202.0L-4.0 202.0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath d='M-4.0 -2.0L4.0 -2.0L12.0 -2.0L20.0 -2.0L28.0 -2.0L36.0 -2.0L44.0 -2.0L52.0 -2.0L60.0 -2.0L68.0 -2.0L76.0 -2.0L84.0 -2.0L92.0 -2.0L100.0 -2.0L108.0 -2.0L116.0 -2.0L124.0 -2.0L132.0 -2.0L140.0 -2.0L148.0 -2.0L156.0 -2.0L164.0 -2.0L172.0 -2.0L180.0 -2.0L188.0 -2.0L196.0 -2.0L204.0 -2.0L204.0 111.8L196.0 111.3L188.0 110.2L180.0 109.0L172.0 108.0L164.0 107.5L156.0 107.6L148.0 107.9L140.0 108.1L132.0 108.0L124.0 107.6L116.0 107.3L108.0 107.5L100.0 108.3L92.0 109.4L84.0 110.6L76.0 111.4L68.0 111.6L60.0 111.3L52.0 111.0L44.0 110.9L36.0 111.2L28.0 111.5L20.0 111.6L12.0 111.1L4.0 110.1L-4.0 108.9Z M-4.0 113.9L4.0 115.1L12.0 116.1L20.0 116.6L28.0 116.5L36.0 116.2L44.0 115.9L52.0 116.0L60.0 116.3L68.0 116.6L76.0 116.4L84.0 115.6L92.0 114.4L100.0 113.3L108.0 112.5L116.0 112.3L124.0 112.6L132.0 113.0L140.0 113.1L148.0 112.9L156.0 112.6L164.0 112.5L172.0 113.0L180.0 114.0L188.0 115.2L196.0 116.3L204.0 116.8L204.0 128.7L196.0 129.5L188.0 130.1L180.0 130.4L172.0 129.9L164.0 129.0L156.0 127.8L148.0 127.0L140.0 126.6L132.0 126.6L124.0 126.7L116.0 126.5L108.0 125.9L100.0 125.2L92.0 124.7L84.0 124.8L76.0 125.5L68.0 126.6L60.0 127.7L52.0 128.4L44.0 128.5L36.0 128.4L28.0 128.4L20.0 128.8L12.0 129.4L4.0 130.1L-4.0 130.3Z M-4.0 137.3L4.0 137.1L12.0 136.4L20.0 135.8L28.0 135.4L36.0 135.4L44.0 135.5L52.0 135.4L60.0 134.7L68.0 133.6L76.0 132.5L84.0 131.8L92.0 131.7L100.0 132.2L108.0 132.9L116.0 133.5L124.0 133.7L132.0 133.6L140.0 133.6L148.0 134.0L156.0 134.8L164.0 136.0L172.0 136.9L180.0 137.4L188.0 137.1L196.0 136.5L204.0 135.7L204.0 144.6L196.0 144.9L188.0 145.6L180.0 146.5L172.0 147.3L164.0 147.5L156.0 147.0L148.0 146.1L140.0 145.2L132.0 144.5L124.0 144.3L116.0 144.3L108.0 144.3L100.0 143.8L92.0 143.0L84.0 142.1L76.0 141.5L68.0 141.7L60.0 142.4L52.0 143.4L44.0 144.3L36.0 144.7L28.0 144.8L20.0 144.8L12.0 145.0L4.0 145.6L-4.0 146.5Z M-4.0 155.5L4.0 154.6L12.0 154.0L20.0 153.8L28.0 153.8L36.0 153.7L44.0 153.3L52.0 152.4L60.0 151.4L68.0 150.7L76.0 150.5L84.0 151.1L92.0 152.0L100.0 152.8L108.0 153.3L116.0 153.3L124.0 153.3L132.0 153.5L140.0 154.2L148.0 155.1L156.0 156.0L164.0 156.5L172.0 156.3L180.0 155.5L188.0 154.6L196.0 153.9L204.0 153.6L204.0 162.7L196.0 163.1L188.0 163.0L180.0 162.3L172.0 161.2L164.0 160.1L156.0 159.3L148.0 159.1L140.0 159.2L132.0 159.3L124.0 159.1L116.0 158.7L108.0 158.1L100.0 157.9L92.0 158.3L84.0 159.3L76.0 160.5L68.0 161.5L60.0 162.0L52.0 162.0L44.0 161.8L36.0 161.8L28.0 162.1L20.0 162.6L12.0 163.0L4.0 162.9L-4.0 162.2Z M-4.0 173.2L4.0 173.9L12.0 174.0L20.0 173.6L28.0 173.1L36.0 172.8L44.0 172.8L52.0 173.0L60.0 173.0L68.0 172.5L76.0 171.5L84.0 170.3L92.0 169.3L100.0 168.9L108.0 169.1L116.0 169.7L124.0 170.1L132.0 170.3L140.0 170.2L148.0 170.1L156.0 170.3L164.0 171.1L172.0 172.2L180.0 173.3L188.0 174.0L196.0 174.1L204.0 173.7L204.0 175.9L196.0 175.8L188.0 175.9L180.0 176.4L172.0 177.3L164.0 178.4L156.0 179.2L148.0 179.4L140.0 179.0L132.0 178.2L124.0 177.5L116.0 177.1L108.0 177.1L100.0 177.1L92.0 176.8L84.0 176.1L76.0 175.1L68.0 174.1L60.0 173.6L52.0 173.7L44.0 174.4L36.0 175.2L28.0 175.8L20.0 176.1L12.0 176.0L4.0 176.1L-4.0 176.5Z M-4.0 189.5L4.0 189.1L12.0 189.0L20.0 189.1L28.0 188.8L36.0 188.2L44.0 187.4L52.0 186.7L60.0 186.6L68.0 187.1L76.0 188.1L84.0 189.1L92.0 189.8L100.0 190.1L108.0 190.1L116.0 190.1L124.0 190.5L132.0 191.2L140.0 192.0L148.0 192.4L156.0 192.2L164.0 191.4L172.0 190.3L180.0 189.4L188.0 188.9L196.0 188.8L204.0 188.9L204.0 202.0L-4.0 202.0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
@keyframes sun-breathe { from { opacity: .75; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }

/* ---------------------------------------------------------------- hero B: edge fragments + sun */

.hero-b { background: #0d0b0a; display: grid; place-items: center; }
.hero-b::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(13, 11, 10, .6) 0, rgba(13, 11, 10, .25) 40vmin, transparent 62vmin);
}
/* The art layer. Without WebGL the pieces fade in with CSS alone (no script can leave the hero black);
   with WebGL, hero-art.js draws them onto the canvas and plays the chosen reveal instead. Either way the
   art fades to black in a circle around the name. */
.hero-b__art {
  position: absolute; inset: 0; z-index: 0;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0, transparent 35vmin, #000 70vmin);
  mask-image: radial-gradient(circle at 50% 50%, transparent 0, transparent 35vmin, #000 70vmin);
}
.hero-b__art.is-gl { -webkit-mask-image: none; mask-image: none; }
.hero-b__art.is-gl .hero-b__frag { visibility: hidden; animation: none; }
.hero-b__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero-b__art.is-gl .hero-b__canvas { display: block; }

.hero-b__frag { position: absolute; opacity: 0; animation: frag-in 2.4s ease forwards; }
.hero-b__frag--left-top { animation-delay: .2s; }
.hero-b__frag--left-bottom { animation-delay: .5s; }
.hero-b__frag--right-top { animation-delay: .8s; }
.hero-b__frag--right-bottom { animation-delay: 1.1s; }
@keyframes frag-in { to { opacity: .77; } }
.hero-b__frag span { display: block; width: 100%; height: 100%; overflow: hidden; }
.hero-b__frag img { display: block; width: 100%; height: 100%; }
.hero-b__frag--photo img {
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent), linear-gradient(to left, transparent, #000 25%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 70%, transparent), linear-gradient(to left, transparent, #000 25%);
  mask-composite: intersect;
}
.hero-b__frag--cutout span { overflow: visible; }
.hero-b__frag--cutout img { object-fit: contain; }

.hero-b__frag--left-top { left: 2vw; top: 6%; width: 28vw; height: 48%; }
.hero-b__frag--left-top img { object-position: left top; }
.hero-b__frag--left-bottom { left: 1.5vw; bottom: 4%; width: 27vw; height: 42%; }
.hero-b__frag--left-bottom img { object-position: left bottom; }
.hero-b__frag--right-top { right: 3vw; top: 6%; width: 22vw; height: 48%; }
.hero-b__frag--right-top img { object-position: right top; }
.hero-b__frag--right-bottom { right: 1vw; bottom: 5%; width: 30vw; height: 40%; }
.hero-b__frag--right-bottom img { object-position: right bottom; }
/* phones and other tall screens: the pieces sit above and below the name at a size comparable to desktop */
@media (max-aspect-ratio: 4/5) {
  .hero-b__frag--left-top { left: 0; top: 9%; width: 50vw; height: 27%; }
  .hero-b__frag--right-top { right: 0; top: 9%; width: 50vw; height: 27%; }
  .hero-b__frag--left-bottom { left: 0; bottom: 3%; width: 50vw; height: 27%; }
  .hero-b__frag--right-bottom { right: 0; bottom: 3%; width: 50vw; height: 27%; }
  .hero-b__frag--left-top img, .hero-b__frag--left-bottom img { object-position: center; }
  .hero-b__frag--right-top img, .hero-b__frag--right-bottom img { object-position: center; }
  .hero-b__art { -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0, transparent 22vmin, #000 50vmin); mask-image: radial-gradient(circle at 50% 50%, transparent 0, transparent 22vmin, #000 50vmin); }
}

.hero-b__center {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 120px var(--gutter) 100px;
}
.hero-b .bigsun { margin-bottom: calc(clamp(130px, 23vmin, 270px) * -.42); animation: sun-rise 3.2s var(--ease) both; }
.hero-b .display { position: relative; text-shadow: 0 6px 50px rgba(0, 0, 0, .7); }
.hero-b .button { margin-top: 34px; background: rgba(13, 11, 10, .5); }
@keyframes sun-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- home sections */

.home-intro { padding: clamp(80px, 12vw, 150px) var(--gutter) clamp(60px, 8vw, 100px); }
.home-intro__lede {
  font: 300 clamp(1.6rem, 3.4vw, 2.7rem)/1.28 var(--f-display);
  font-variation-settings: "opsz" 96, "SOFT" 60;
  max-width: 980px; margin: 0 auto; text-align: center;
}
.home-intro__lede em { font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1; }

.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }

.home-gallery { padding: 0 var(--gutter) clamp(90px, 11vw, 140px); }
.home-gallery__link {
  display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3vw, 40px);
  width: min(100%, 440px); margin: 0 auto; text-align: center; text-decoration: none;
}
.home-gallery__link img { display: block; width: 100%; height: auto; }
.home-gallery__link:is(:hover, :focus-visible) h2 {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
}
.home-gallery__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 10px; border-radius: 4px; }

.doors-wrap { padding: 0 var(--gutter) clamp(90px, 11vw, 140px); }
.doors {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 64px);
  max-width: 1180px; margin: 0 auto;
}
.door { display: flex; flex-direction: column; align-items: center; text-decoration: none; text-align: center; }
.door__arch { position: relative; display: block; width: 100%; aspect-ratio: 300 / 440; margin-bottom: 26px; }
/* Depth: the arch is cut through the thickness of the page. .door__slice layers (build.py door_wall) sit at
   increasing depth inside a perspective box; site.js sets the viewpoint (perspective-origin). The arch is cut
   by overlays in the page colour, never a CSS mask: masked <video> can render black. */
.door__tunnel {
  --door-depth: clamp(46px, 7vw, 80px);
  position: absolute; inset: 0; overflow: hidden; perspective: 720px; perspective-origin: 50% 30%;
  transition: perspective-origin .5s var(--ease);
}
.door__opening {
  position: absolute; inset: 0; overflow: hidden; background: #000;
  transform: translateZ(calc(var(--door-depth) * -1 - 2px)) scale(1.04);
}
.door__slice {
  position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); pointer-events: none; overflow: visible;
  transform: translateZ(calc(var(--door-depth) * var(--k) * -1));
}
/* the face of the page, flat and on top: it also hides the tunnel's clipped edge pixels */
/* viewBox -6 -6 312 452: overhangs the 300 x 440 box by 6 units on every side, arch still exactly on the box */
.door__cover { position: absolute; left: -2%; top: -1.3636%; width: 104%; height: 102.7273%; max-width: none; fill: var(--bg); pointer-events: none; }
.door__opening img, .door__opening video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02); transition: transform 1.2s var(--ease), filter 1.2s;
  filter: saturate(.92) brightness(.9);
}
.door:hover .door__opening img, .door:hover .door__opening video { transform: scale(1.09); filter: none; }
.door__outline {
  position: absolute; left: -11px; top: -11px; width: calc(100% + 22px); height: calc(100% + 11px);
  fill: none; stroke: var(--line-strong); stroke-width: 1.2; vector-effect: non-scaling-stroke;
  transition: stroke .6s;
}
.door:hover .door__outline { stroke: var(--sun); }
.door__arch::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -34px; height: 40px;
  background: radial-gradient(ellipse at 50% 0, rgba(255, 214, 160, .28), transparent 70%);
  opacity: 0; transition: opacity .8s;
}
.door:hover .door__arch::after { opacity: 1; }
.door__name { font: 400 clamp(1.4rem, 2.2vw, 1.8rem)/1.2 var(--f-display); font-variation-settings: "opsz" 72, "SOFT" 50; }
.door__meta { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; max-width: 340px; gap: 56px; }
}

.home-about {
  max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter) clamp(90px, 11vw, 140px);
}
.home-about__link {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
  gap: clamp(8px, 2vw, 32px); align-items: start; text-decoration: none;
}
.home-about__link h2 {
  justify-self: end; max-width: 10ch; margin: 0; padding-top: clamp(28px, 6vw, 80px);
  font: 400 clamp(2rem, 6vw, 4.8rem)/1.03 "Pinyon Script", "Snell Roundhand", cursive;
  font-variation-settings: normal; text-align: right;
}
.home-about__link img { display: block; width: 100%; height: auto; }
.home-about__link:is(:hover, :focus-visible) h2 {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
}
.home-about__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 10px; border-radius: 4px; }
.home-shows {
  text-align: center; border-top: 1px solid var(--line);
  padding: clamp(70px, 9vw, 110px) var(--gutter);
}
.home-shows h2 { margin-bottom: 22px; }

/* ---------------------------------------------------------------- framed photos */

.frame { position: relative; margin: 0; padding: 10px; background: var(--bg-2); box-shadow: var(--shadow); }
.frame > img { display: block; width: 100%; height: auto; }
.frame figcaption {
  padding: 12px 2px 2px; color: var(--muted);
  font: 500 11px/1.4 var(--f-text); letter-spacing: .16em; text-transform: uppercase;
}
.frame--paper { background: #f4efe6; }
.frame--paper figcaption { color: #6d645a; }

/* ---------------------------------------------------------------- page heads + rooms */

.page-head { padding: clamp(130px, 16vw, 190px) var(--gutter) clamp(40px, 5vw, 64px); max-width: 1180px; margin: 0 auto; }
.page-head__lede { max-width: 640px; color: var(--muted); font-size: 1.1rem; margin: 22px 0 0; }
.page-head--room { max-width: none; }
.roomtabs, .erajump { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.roomtabs { margin-bottom: 30px; }
.roomtabs a, .erajump a {
  font: 500 12px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent;
}
.roomtabs a:hover, .erajump a:hover { color: var(--ink); }
.roomtabs a.is-active { color: var(--ink); border-bottom-color: var(--sun); }
.erajump { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }

.era { padding: 0 var(--gutter) clamp(70px, 8vw, 110px); scroll-margin-top: 30px; }
.era__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 34px;
}
.era__head span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.grid { display: flex; align-items: flex-start; gap: clamp(20px, 2.6vw, 40px); }
.grid__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); }
.tile { display: block; text-decoration: none; }
@media (max-width: 700px) {
  .grid { flex-direction: column; gap: 36px; }
  .grid__col { display: contents; }
}
.tile figure { margin: 0; }
.tile__media { position: relative; display: block; transition: transform .6s var(--ease), box-shadow .6s; will-change: transform; backface-visibility: hidden; }
.tile__media img, .tile__media video { display: block; width: 100%; height: auto; }
.tile:hover .tile__media { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile figcaption { margin-top: 12px; }
.tile__title { font: italic 400 1.08rem/1.3 var(--f-display); font-variation-settings: "opsz" 36, "SOFT" 80; }
.tile__title.is-untitled { font: 500 11px/1.4 var(--f-text); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.badge-3d {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px;
  font: 600 11px/1 var(--f-text); letter-spacing: .14em; color: #fff;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 6px 10px 6px 8px;
}

/* ---------------------------------------------------------------- work page */

.work {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, .85fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  min-height: 100svh; padding: 120px var(--gutter) 50px;
}
.work__figure { margin: 0; display: grid; place-items: center; }
.work__zoom { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; }
.work__zoom img { display: block; max-height: 80vh; width: auto; max-width: 100%; height: auto; box-shadow: var(--shadow); }
.work__zoom:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.zoom-hint--touch { display: none; }
@media (hover: none) {
  .zoom-hint--mouse { display: none; }
  .zoom-hint--touch { display: inline; }
}
.placard__era { display: block; margin-top: 6px; }
.placard { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.5vw, 36px); }
.placard__title {
  font: 400 clamp(2.2rem, 4vw, 3.4rem)/1.02 var(--f-display);
  font-variation-settings: "opsz" 144, "SOFT" 60;
  margin: 0 0 30px;
}
.placard__title.is-untitled { font-style: italic; color: var(--muted); }
.placard__facts { margin: 0; display: grid; gap: 14px; }
.placard__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.placard__facts dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.placard__facts dd { margin: 0; }
.prevnext {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 26px var(--gutter) 70px; border-top: 1px solid var(--line);
}
.prevnext a { font: italic 400 1.05rem var(--f-display); text-decoration: none; color: var(--muted); }
.prevnext a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; min-height: 0; padding-top: 100px; }
  .placard__era { display: block; margin-top: 6px; }
.placard { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}

.image-viewer-open, .image-viewer-open body { overflow: hidden; overscroll-behavior: none; }
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100vh; height: 100dvh;
  background: #0b0909; color: #eee8df; overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoomable img { display: block; width: 100%; height: auto; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox__toolbar {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex: none;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
}
.lightbox__toolbar button {
  min-width: 44px; min-height: 44px; padding: 6px 12px; border: 1px solid rgba(238, 232, 223, .24);
  background: transparent; border-radius: 3px; color: inherit; cursor: pointer; font: 400 18px/1 var(--f-text); touch-action: manipulation;
}
.lightbox__toolbar button:disabled { opacity: .35; cursor: default; }
.lightbox__toolbar button:not(:disabled):hover { background: rgba(238, 232, 223, .1); }
.lightbox__toolbar button:focus-visible, .lightbox__viewport:focus-visible { outline: 2px solid #eee8df; outline-offset: -3px; }
.lightbox__toolbar .lightbox__close { font-size: 30px; border-color: transparent; }
/* the mouse explores by moving, so the pointer stays an ordinary arrow; touch drags with a grab */
.lightbox__viewport { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: none; }
.lightbox__viewport.is-dragging { cursor: grabbing; }
.lightbox .lightbox__image {
  position: absolute; left: 0; top: 0; max-width: none; max-height: none; transform-origin: 0 0;
  user-select: none; -webkit-user-select: none; pointer-events: none;
}
.lightbox__status { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.lightbox__hint {
  flex: none; margin: 0; padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  color: #aaa097; font: 400 12px/1.5 var(--f-text); text-align: center;
}

/* scanned sculpture */
.work--scan { grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); }
.stage {
  position: relative; height: min(84vh, 940px); min-height: 460px; overflow: hidden; border-radius: 3px;
  background: #000; /* matches the turntable video's own black, so its frame edges never show */
}
.stage__loop, .stage__viewer, .stage__viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__loop { object-fit: contain; }
.stage__viewer canvas { cursor: grab; touch-action: none; }
.stage__viewer canvas:active { cursor: grabbing; }
.stage__bar {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none;
}
.stage__bar > * { pointer-events: auto; }
.stage .button { background: rgba(0, 0, 0, .55); color: #f1ebe2; border-color: rgba(255, 255, 255, .35); }
.stage .button:hover { background: #f1ebe2; color: #100e0d; }
.stage__hint { font-size: 12px; letter-spacing: .1em; color: rgba(255, 255, 255, .6); }
.stage__tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.stage__status {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  font: italic 400 1.2rem var(--f-display); color: rgba(255, 255, 255, .8); pointer-events: none;
}
.stage:fullscreen { height: 100vh; border-radius: 0; }
/* full screen where the Fullscreen API isn't available (iPhone): the stage fills the window */
.stage.is-expanded { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100dvh; min-height: 0; border-radius: 0; }
.stage-expanded, .stage-expanded body { overflow: hidden; }
/* the viewer's controls fade away while idle and return on any touch, drag or pointer movement */
.stage__hint, .stage__tools { transition: opacity .6s ease; }
.stage.is-idle .stage__hint, .stage.is-idle .stage__tools { opacity: 0; pointer-events: none; }
/* the show's own 3D scan, between the pieces and the photographs */
.show-scan { padding: 0 var(--gutter) clamp(60px, 7vw, 100px); }
.stage--show { height: min(72vh, 780px); }
/* thumbnails in the placard: the photographs are below the fold on a scan page, so the strip says
   they exist. Each opens the lightbox; the link jumps to the full grid. */
.placard__photos { margin-top: clamp(26px, 3vw, 38px); border-top: 1px solid var(--line); padding-top: 18px; }
.placard__photos-head {
  margin: 0 0 12px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.placard__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.thumb {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 2px;
  overflow: hidden; aspect-ratio: 1; transition: opacity .3s var(--ease);
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb:focus-visible { opacity: .78; }

.photos { padding: 0 var(--gutter) clamp(60px, 7vw, 100px); }
.photos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: start; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; }
.photo--placeholder {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  border: 1px dashed var(--line-strong); border-radius: 3px; color: var(--muted);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
@media (max-width: 860px) {
  .work--scan { grid-template-columns: 1fr; }
  .stage { height: 64vh; }  /* leaves the top of the placard showing, so the page reads as scrollable */
  .placard__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .photos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- about (the front porch) */

.wax { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; display: block; pointer-events: none; opacity: 0; }
.ground-porch .footer { background: transparent; }

.about-portal { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #1c1715; }
.about-portal__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.about-portal .crack-light { stroke: rgba(255, 236, 214, .24); }
.about-portal::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(19, 12, 25, 0), var(--bg));
}
.about-portal__words { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(36px, 7vh, 84px); text-align: center; padding: 0 var(--gutter); }
.about-portal__words .display { text-shadow: 0 6px 40px rgba(0, 0, 0, .7); }

.about-intro {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 100px); align-items: start;
  max-width: 1180px; margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--gutter) clamp(60px, 8vw, 110px);
}
.about-intro__portrait { position: sticky; top: 40px; }
.about-intro__lede { font: 300 clamp(1.45rem, 2.5vw, 2rem)/1.35 var(--f-display); font-variation-settings: "opsz" 96, "SOFT" 60; margin: 0 0 1.3em; }
.about-intro__text .about-contact { margin-top: 2.2em; padding-top: 1.3em; border-top: 1px solid var(--line); }
.about-contact .eyebrow { display: block; margin-bottom: 6px; }
.about-contact a { font: italic 400 1.4rem/1.3 var(--f-display); text-decoration-color: var(--line-strong); text-underline-offset: .22em; overflow-wrap: anywhere; }
.about-contact a:hover { text-decoration-color: var(--sun); }
.about-intro__text p:not(.about-intro__lede) { font-size: 1.12rem; line-height: 1.8; margin: 0 0 1.25em; max-width: 640px; }
.dropcap::first-letter {
  float: left; font: italic 400 4.6em/.8 var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--lime); margin: .08em .12em 0 0;
}

.about-selfportrait { max-width: 460px; margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
/* Nat's quote closes the bio column, above the contact line (whose top border divides them) */
.about-quote { margin: 2.2em 0 0; max-width: 640px; }
.about-quote blockquote { margin: 0; }
.about-intro__text .about-quote blockquote p {
  font: italic 300 clamp(1.3rem, 2vw, 1.6rem)/1.45 var(--f-display);
  font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1;
  margin: 0; max-width: none;
}
.about-quote figcaption { margin-top: .9em; font: 400 .95rem/1.4 var(--f-text); color: var(--muted); }
.about-quote cite { font: italic 400 1.05rem/1.4 var(--f-display); }

/* Nat's houses: one "sheet" per house, painting into the next when an arrow or a place is chosen */
.homes { padding-bottom: clamp(50px, 7vw, 90px); }
.homes .section-head { padding: 0 var(--gutter); margin-bottom: 0; }
.homes__intro { font: 300 clamp(1.25rem, 2.2vw, 1.7rem)/1.45 var(--f-display); font-variation-settings: "opsz" 96, "SOFT" 60; max-width: 720px; margin: 14px auto 0; }
/* One stage that paints from house to house on demand: the arrows under the photos step through the houses,
   the place strip under them jumps straight to one. Scrolling only passes by (Bryan, 2026-10-11). */
.homes__viewer {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: clamp(28px, 4vw, 48px) var(--gutter) 0;
}
/* homes.js sets the height to what the tallest house needs, up to the max-height */
.homes__stage { position: relative; width: min(100%, 1240px); height: clamp(300px, 72svh, 780px); max-height: clamp(300px, 72svh, 780px); }
.homes__canvas, .homes__tags { position: absolute; inset: 0; width: 100%; height: 100%; }
.homes__canvas { display: block; }
.homes__tags { pointer-events: none; }
.homes__tag {
  position: absolute; transform: translate(10px, calc(-100% - 10px)); opacity: 0;
  font: 600 11px/1 var(--f-text); letter-spacing: .18em; color: #fff;
  background: rgba(10, 6, 14, .62); padding: 6px 9px; border-radius: 999px;
}
/* The arrows are always there: with a fade-in, iOS dropped the first tap on "next" (likely its hover
   emulation treating still-appearing content as a hover). "Next" nudges once when the houses come on screen. */
.homes__arrows { display: flex; justify-content: center; gap: 20px; }
.homes__arrow {
  display: grid; place-items: center; width: 54px; height: 54px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: rgba(19, 12, 25, .45); color: var(--ink); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.homes__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.homes__arrow:focus-visible { outline: 2px solid var(--sun-hi); outline-offset: 3px; }
.homes__arrow[aria-disabled="true"] { opacity: .25; cursor: default; }
@media (hover: hover) {
  .homes__arrow:not([aria-disabled="true"]):hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
}
.homes__arrow.is-hint { animation: homes-nudge 1.4s var(--ease) .7s 2; }
@keyframes homes-nudge { 0%, 100% { transform: none; } 45% { transform: translateX(7px); } }
.homes__years { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; max-width: 100%; }
.homes__years button {
  position: relative; background: none; border: 0; cursor: pointer; padding: 8px 2px;
  font: 500 12px/1 var(--f-text); letter-spacing: .16em; color: var(--muted); white-space: nowrap; flex: none;
  transition: color .4s;
}
.homes__years button:hover, .homes__years button.is-current { color: var(--ink); }
.homes__years button.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px rgba(255, 70, 50, .6);
}
.homes__static { display: grid; gap: 56px; max-width: 1080px; margin: 40px auto 0; padding: 0 var(--gutter); }
.homes__group { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 22px; }
.homes__photo { flex: 1 1 260px; max-width: 640px; }
/* review mode (?homes=N): the stage alone, full screen */
.homes-solo main > :not(.homes), .homes-solo .footer, .homes-solo .masthead, .homes-solo .wax, .homes-solo .homes .section-head { display: none; }
.homes-solo .homes__viewer { position: fixed; inset: 0; justify-content: center; padding-bottom: 26px; }
.homes-solo .homes__stage { flex: 1; }
.homes-solo .homes__arrows { display: none; }
.homes__static.is-enhanced {
  position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
/* Short screens (Safari page zoom >= ~150%, landscape phones): the place tag grows with the zoom and covers
   the photo; the place strip under the arrows already names the house (2026-10-07). */
@media (max-height: 520px) {
  .homes__tags { display: none; }
}
.about-next { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0 var(--gutter) clamp(80px, 10vw, 130px); }
@media (max-width: 760px) {
  .about-intro { grid-template-columns: 1fr; }
  .homes__years { gap: 10px 16px; }
  .homes__years button { font-size: 11px; letter-spacing: .1em; }
  .about-intro__portrait { position: relative; top: 0; max-width: 360px; }
}

/* ---------------------------------------------------------------- shows */

/* the timeline: a year down the left, each show a clickable band with a glimpse of its pieces */
.timeline-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 130px); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {  /* the spine */
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--year-w) + 22px); width: 1px; background: var(--line);
}
.timeline { --year-w: clamp(92px, 12vw, 150px); }
.timeline__item { position: relative; }
.timeline__item + .timeline__item { margin-top: clamp(18px, 2.4vw, 30px); }
.timeline__link {
  display: grid; grid-template-columns: var(--year-w) 1fr; gap: 44px; align-items: start;
  padding: clamp(20px, 2.6vw, 34px) 0; text-decoration: none; color: inherit;
}
.timeline__item::after {  /* the sun on the spine */
  content: ""; position: absolute; left: calc(var(--year-w) + 22px - 6px); top: clamp(36px, 4.4vw, 56px);
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, var(--sun-hi), var(--sun) 55%, var(--sun-lo));
  box-shadow: 0 0 12px rgba(255, 70, 50, .45);
}
.timeline__year {
  font: italic 330 clamp(2.6rem, 6vw, 4.6rem)/.9 var(--f-display);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; text-align: right;
}
.timeline__body { display: flex; flex-direction: column; gap: 6px; }
.timeline__title { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--f-display); }
.timeline__meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.timeline__peek { display: flex; gap: 10px; margin-top: 14px; }
.timeline__peek img {
  width: clamp(76px, 11vw, 150px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; background: #000;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.timeline__cta { margin-top: 12px; font: italic 400 1.15rem var(--f-display); color: var(--muted); transition: color .3s; }
.timeline__link:hover .timeline__cta, .timeline__link:focus-visible .timeline__cta { color: var(--ink); }
.timeline__link:hover .timeline__peek img { transform: translateY(-3px); box-shadow: var(--shadow); }
.placard__show { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.placard__show a { color: var(--ink); text-underline-offset: .2em; }
@media (max-width: 760px) {
  .timeline { --year-w: 0px; }
  .timeline::before, .timeline__item::after { display: none; }
  .timeline__link { grid-template-columns: 1fr; gap: 10px; border-top: 1px solid var(--line); }
  .timeline__year { text-align: left; }
  .timeline__peek img { width: calc((100% - 20px) / 3); }
}

/* ---------------------------------------------------------------- not found (Drift World) */

.notfound {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center;
  max-width: 1180px; min-height: 100svh; margin: 0 auto; box-sizing: border-box;
  padding: clamp(110px, 14vw, 160px) var(--gutter) clamp(60px, 8vw, 100px);
}
.notfound__art { justify-self: end; width: 100%; max-width: 400px; }
.notfound__art img { display: block; width: 100%; height: auto; box-shadow: var(--shadow); }
.notfound .eyebrow { margin-bottom: 10px; }
.notfound h1 { margin: 0; }
.notfound__lede { color: var(--muted); font-size: 1.12rem; line-height: 1.7; max-width: 30em; margin: 18px 0 30px; }
.notfound__lede a { color: var(--ink); text-decoration: none; }
.notfound__lede em { font-family: var(--f-display); font-size: 1.08em; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .notfound { grid-template-columns: 1fr; }
  .notfound__art { justify-self: center; max-width: 300px; }
}

/* ---------------------------------------------------------------- mobile masthead */

@media (max-width: 560px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 18px; }
  .wordmark { font-size: 1.2rem; }
  .mainnav { gap: 20px; }
  .mainnav a { font-size: 11px; letter-spacing: .16em; }
  .mainnav a.is-active::after { bottom: 0; left: auto; right: -11px; top: 50%; margin: -3px 0 0; }
  .hero__credit { left: var(--gutter); right: auto; text-align: left; bottom: 64px; }
  .about-portal__words { bottom: 90px; }
  .page-head { padding-top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
