@font-face {
  font-family: "Nanum Brush Script";
  src: url("/assets/fonts/nanum-brush-script-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Nanum Brush Script";
  src: url("/assets/fonts/nanum-brush-script-hangul.woff2") format("woff2");
  unicode-range: U+AC00-D7A3, U+3131-318E;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #efe6d6;
  --ink: #1f1b16;
  --seal: #98473c;
  --brush: "Nanum Brush Script", cursive;
  --text: "Cormorant Garamond", Georgia, "Apple SD Gothic Neo", "Malgun Gothic", serif;
  --wash: color-mix(in srgb, var(--ink) 8%, transparent);
  --edge: color-mix(in srgb, var(--ink) 27%, transparent);
  --gutter: clamp(1.1rem, 5vw, 8rem);
  --safe-left: max(var(--gutter), env(safe-area-inset-left));
  --safe-right: max(var(--gutter), env(safe-area-inset-right));
  --site-bar: 6rem;
  --warp-light: rgb(255 251 235 / .34);
  --weft-light: rgb(255 249 230 / .22);
  --thread-shadow: rgb(74 43 22 / .10);
  --slub-shadow: rgb(83 53 31 / .065);
  --linen:
    repeating-conic-gradient(from 90deg, var(--slub-shadow) 0% 25%, transparent 0% 50%) 0 0 / 8px 6.6px,
    repeating-linear-gradient(90deg, var(--warp-light) 0, transparent 1px 2.6px, var(--thread-shadow) 3.35px, transparent 4px),
    repeating-linear-gradient(0deg, var(--weft-light) 0, transparent 1px 2.1px, var(--thread-shadow) 2.8px, transparent 3.3px),
    repeating-linear-gradient(90deg, transparent 0 13px, var(--slub-shadow) 14px, transparent 16px 33px, var(--warp-light) 35px, transparent 36px 50px),
    repeating-linear-gradient(0deg, transparent 0 19px, var(--slub-shadow) 20px, transparent 22px 47px, var(--weft-light) 48px, transparent 50px 67px);
  background: var(--paper);
  color: var(--ink);
  font: 400 100%/1.35 var(--text);
  scroll-padding-top: var(--site-bar);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #2c2822;
    --ink: #eee4d3;
    --seal: #d17c6b;
    --warp-light: rgb(240 210 165 / .085);
    --weft-light: rgb(236 203 157 / .059);
    --thread-shadow: rgb(9 6 3 / .29);
    --slub-shadow: rgb(5 4 3 / .19);
  }
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure, ul, dl, dd { margin: 0; }
body { isolation: isolate; min-height: 100svh; }
body::before {
  content: "";
  position: fixed;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  background: var(--linen), var(--paper);
}
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: .48;
  background: url("/assets/linen-grain.svg");
}
@media (prefers-color-scheme: dark) {
  body::after { opacity: .67; }
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 10; padding: .5rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-top: env(safe-area-inset-top);
  background: var(--linen), var(--paper);
  border-bottom: 1px solid var(--edge);
}
.header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .3rem;
  min-height: clamp(3.4rem, 8svh, 6rem);
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}
.wordmark {
  grid-column: 2;
  position: relative;
  font: 400 clamp(2.3rem, 6vw, 4.8rem)/.82 var(--brush);
  white-space: nowrap;
  text-decoration: none;
}
.seal {
  position: absolute;
  left: calc(100% + .22rem);
  bottom: -.06em;
  width: clamp(1.12rem, 2.65vw, 2.08rem);
  aspect-ratio: 1;
  color: var(--seal);
  transform: rotate(-6deg);
}
.seal::before, .seal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  mask: url("/assets/seal.svg") center / contain no-repeat;
}
.seal::after { opacity: .2; transform: scale(1.07); }
.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}
.sound-toggle {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
}
.sound-toggle:focus-visible { outline-offset: -3px; }
.sound-toggle[aria-pressed="false"] .sound-waves { visibility: hidden; }
.studio-link {
  display: grid;
  place-items: center;
  min-height: 44px;
  text-transform: uppercase;
  text-decoration: none;
  font-size: clamp(.81rem, 1.8vw, 1.1rem);
  font-weight: 700;
  letter-spacing: .08em;
}
.studio-link:hover { text-decoration: underline; }
#language { position: relative; justify-self: start; }
.language-trigger, .lang__btn {
  min-height: 44px;
  min-width: 44px;
  border: 0;
  background: transparent;
  padding: .25rem .42rem;
  font-size: 1rem;
  font-weight: 700;
}
.language-picker {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 0;
  width: max-content;
  border: 1px solid var(--edge);
  background: var(--linen), var(--paper);
}
.language-picker .lang { display: grid; }
.lang__btn[aria-pressed="true"] { text-decoration: underline; text-underline-offset: .2em; }

.sec-row__track {
  position: relative;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.sec-row__track::before, .sec-row__track::after {
  content: "";
  flex: 0 0 50%;
}
.sec-row__track::-webkit-scrollbar { display: none; }
.sec-row__item {
  position: relative;
  flex: none;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: .16rem clamp(.75rem, 2vw, 2.4rem) .38rem;
  font: 400 clamp(1.57rem, 2.4vw, 2.3rem)/1 var(--brush);
  text-transform: lowercase;
  white-space: nowrap;
}
.sec-row__item:focus-visible { outline-offset: -3px; }
.sec-row__item::after {
  content: "";
  position: absolute;
  inset: auto 24% .27rem;
  height: 2.5px;
  border-radius: 55% 35% 60% 25%;
  transform: rotate(-1.7deg);
  background: var(--seal);
  visibility: hidden;
}
.sec-row__item.is-on::after { visibility: visible; }

.slide {
  position: relative;
  display: grid;
  align-content: center;
  gap: clamp(.8rem, 3svh, 2.1rem);
  min-height: calc(100svh - var(--site-bar));
  min-height: calc(100lvh - var(--site-bar));
  padding: clamp(1rem, 4svh, 3rem) var(--safe-right) max(1.35rem, env(safe-area-inset-bottom)) var(--safe-left);
}
@media (pointer: coarse) {
  .slide { min-height: calc(100lvh - var(--site-bar) + env(safe-area-inset-bottom) + 36px); }
}
.display {
  font: 400 clamp(3.2rem, 8.5vw, 8.4rem)/.8 var(--brush);
  text-transform: lowercase;
  width: fit-content;
  max-width: 100%;
}
.display > span:first-child, .sec-row__item > span:first-child { display: inline-block; }
.follow-slide .display, .studio-composition .display { margin-inline: auto; }
hr[data-ink="rule"] {
  position: absolute;
  inset: 0 var(--safe-right) auto var(--safe-left);
  height: 3px;
  margin: 0;
  border: 0;
  background: var(--ink);
  opacity: .58;
  border-radius: 42% 48% 67% 28% / 54% 55% 67% 28%;
  clip-path: inset(0 var(--rule-reveal, 0%) 0 0);
}
.gallery-slide { align-content: start; }
.gallery-track {
  display: grid;
  --gap: clamp(.75rem, 3vw, 4rem);
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: var(--gap);
  max-width: 2100px;
  margin: 0 auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--edge) transparent;
}
@media (min-width: 47rem), (orientation: landscape) and (min-width: 38rem) {
  .gallery-track { grid-auto-columns: calc((100% - var(--gap)) / 2); }
}
.gallery-item {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 9px 10px 15px;
  scroll-snap-align: start;
}
.ink-frame {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
}
.ink-frame::after {
  content: "";
  position: absolute;
  inset: -4px -5px -5px -4px;
  border: 1.5px solid var(--ink);
  border-radius: 2% 1% 1.5% .8% / .7% 1.8% .7% 1.8%;
  transform: rotate(-.32deg);
  pointer-events: none;
}
button.ink-frame { border: 0; background: none; padding: 0; }
.ink-frame img { width: auto; height: auto; }
.gallery-item img {
  max-height: min(68svh, max(9rem, calc(100svh - var(--site-bar) - clamp(8rem, 24svh, 19rem))));
  object-fit: contain;
}
/* Phones: the heading, the whole picture and its buttons fit on one screen. */
@media (max-width: 46.99rem) and (orientation: portrait) {
  .gallery-item img { max-height: max(9rem, calc(100svh - var(--site-bar) - 12.5rem)); }
}
.ink-frame .living-art {
  position: absolute;
  pointer-events: none;
}
.gallery-toggles { display: flex; gap: .62rem; margin-right: auto; }
.gummy-glyph svg { width: 26px; height: 29px; overflow: visible; }
.gummy-line { fill: currentColor; stroke: currentColor; stroke-width: 2.6; }
.gummy-body { fill: color-mix(in srgb, #e8453a 30%, var(--paper)); transition: fill .4s; }
.gummy-shine { fill: #fff; opacity: .45; }
.gummy-face { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.gummy-glyph[aria-pressed="true"] { border-color: var(--ink); }
.gummy-glyph[aria-pressed="true"] .gummy-body { fill: #e8453a; }
.gallery-actions { display: flex; justify-content: flex-end; gap: .62rem; margin-top: .62rem; }
.round-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 47% 52% 49% 53%;
  background: var(--paper);
  font-size: 1.5rem;
}
.round-button:disabled { opacity: .45; }
.round-button:not(:disabled):hover, .paper-button:hover { border-color: var(--ink); }

.paper-button {
  display: inline-grid;
  place-items: center;
  min-width: 6rem;
  min-height: 44px;
  padding: .32rem 1.2rem;
  border: 1px solid var(--edge);
  border-radius: 7% 5% 6% 3% / 12% 8% 14% 9%;
  background: var(--linen), var(--paper);
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  font-weight: 700;
  text-decoration: none;
}
.studio-composition {
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  gap: clamp(.8rem, 3svh, 2rem);
  width: min(100%, 94rem);
  margin: auto;
}
.studio-composition .paper-button { margin-top: 1rem; }
.doorway { width: min(72%, 44svh, 32rem); height: auto; }
.door-wash { fill: var(--wash); opacity: var(--door-fill, 1); }
@media (min-width: 52rem), (orientation: landscape) and (min-width: 38rem) {
  .studio-composition { grid-template-columns: 1fr 1fr; text-align: left; }
  .doorway { width: min(100%, 66svh, 38rem); }
  .studio-composition .display { margin-inline: 0; }
}

/* The section opens on Mirim looking up at the sky, the whole photograph in one screen. */
.bio-opening { margin: 0 auto clamp(.5rem, 3svh, 2rem); }
.bio-opening img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - var(--site-bar) - clamp(4rem, 12svh, 8rem));
}
.bio-layout {
  display: grid;
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5rem);
  width: min(100%, 82rem);
  margin: 0 auto;
}
.bio-photos { position: relative; width: min(78%, 26rem); padding: 0 0 4.5rem; }
.bio-photos .bio-now { width: 100%; }
.bio-photos img { width: 100%; }
.bio-then {
  position: absolute;
  right: -1.4rem;
  bottom: 0;
  width: 42%;
  margin: 0;
  transform: rotate(3.5deg);
}
.bio-then .ink-frame { width: 100%; }
.bio-then figcaption {
  margin-top: .45rem;
  font: 1rem/1 var(--font-hand, var(--font-display));
  text-align: center;
}
.book-slide { align-content: start; }
.foldout-stage {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2.5rem 0 1.5rem;
  cursor: pointer;
  scrollbar-color: var(--edge) transparent;
}
.foldout { margin: 0 auto; }
.foldout-panel { box-shadow: 0 1px 0 rgb(0 0 0 / .06); background-color: #fff; }
.book-photos {
  display: grid;
  grid-template-columns: 3fr 4fr;
  gap: clamp(1rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1200px;
  margin: 1.5rem auto 0;
}
.book-photos figure { margin: 0; }
.book-photos img { width: 100%; height: auto; }
@media (max-width: 40rem) {
  .book-photos { grid-template-columns: 1fr; }
}
.bio-text, .account-list {
  font-size: clamp(1.23rem, 2vw, 1.75rem);
  line-height: 1.37;
}
:lang(ko) .bio-text, :lang(ko) .press-grid { font-size: clamp(1rem, 1.35vw, 1.25rem); }
.bio-text p + p, .bio-text dl { margin-top: .65em; }
.bio-text dl { display: grid; gap: .2rem .8rem; grid-template-columns: auto 1fr; }
.bio-text dt { font-weight: 700; }
@media (min-width: 46rem) {
  .bio-layout { grid-template-columns: minmax(12rem, 2fr) 4fr; }
  .bio-layout .bio-photos { justify-self: end; width: 100%; }
}
.fun-topics { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); width: min(100%, 110rem); margin: 0 auto; }
.fun-topic h3 { margin: 0 0 .6rem; font-size: clamp(1.3rem, 2vw, 2rem); text-align: center; }
.series-list {
  /* The film, its names and date fit on one screen under the headings. */
  --episode: min(calc(clamp(13rem, 100svh - var(--site-bar) - 23rem, 40rem) * 9 / 16), 62vw);
  display: flex;
  gap: clamp(.85rem, 2.3vw, 2.5rem);
  width: min(100%, 110rem);
  margin: 0 auto;
  /* A scrolling row clips on every side, so leave room for the drawn frames. */
  padding: 1.1rem .9rem 1rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.series-list::before, .series-list::after { content: ""; flex: 1 0 0; }
.episode { flex: 0 0 var(--episode); scroll-snap-align: center; display: grid; align-content: start; gap: .45rem; }
.episode-frame { padding: .5rem; }
.episode video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--ink, #111); object-fit: cover; }
.episode-name { display: grid; gap: .1rem; margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.4rem); }
.episode-label { font-style: italic; }
.episode-title { font-weight: 700; }
.episode-name time { font-size: .85em; opacity: .8; }
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(.85rem, 2.3vw, 2.5rem);
  width: min(100%, 110rem);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: clamp(1.15rem, 1.45vw, 1.5rem);
}
.press-grid a { display: grid; align-content: start; gap: .3rem; height: 100%; text-decoration: none; padding: .62rem; }
.press-grid a:hover .press-title { text-decoration: underline; }
.press-grid .press-card { width: 100%; }
.press-grid img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.press-grid time { font-style: italic; }
.account-list { padding: 0; margin-top: 1.5rem; list-style: none; }
.account-list a { display: inline-flex; align-items: center; min-height: 44px; }
.follow-slide { text-align: center; }
.follow-seal {
  position: relative;
  inset: auto;
  display: block;
  width: clamp(2rem, 5vw, 3.4rem);
  margin: 1rem auto 0;
}
footer {
  text-align: center;
  font-size: 1rem;
  padding: .55rem 1rem max(1rem, env(safe-area-inset-bottom));
}

#artwork-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--linen), var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
body:has(#artwork-view[open]) { overflow: hidden; }
.viewer-layout {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: .6rem;
  height: 100%;
  padding: max(.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.viewer-layout form { justify-self: end; margin: 0; }
.viewer-image { width: 100%; height: 100%; object-fit: contain; }
.museum-card { justify-self: center; text-align: center; font-size: clamp(1.13rem, 2vw, 1.65rem); }
.museum-card .work-title { font: 400 clamp(1.9rem, 5vw, 3.5rem)/1 var(--brush); }
@media (orientation: landscape) and (max-height: 32rem) {
  .viewer-layout { grid-template: "image close" auto "image card" 1fr / minmax(0, 1fr) minmax(3rem, min(27%, 15rem)); }
  .viewer-layout form { grid-area: close; }
  .viewer-image { grid-area: image; }
  .museum-card { grid-area: card; align-self: center; }
}
.simple-page {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: calc(100svh - var(--site-bar));
  gap: 1.2rem;
  padding: 2rem var(--safe-right) max(2rem, env(safe-area-inset-bottom)) var(--safe-left);
  text-align: center;
}
@media (max-width: 420px) {
  .wordmark { font-size: 2rem; }
  .studio-link { letter-spacing: 0; }
}
@media (max-width: 350px) {
  .header-grid:has(.sound-toggle) {
    padding-inline: max(.625rem, env(safe-area-inset-left)) max(.625rem, env(safe-area-inset-right));
  }
  .header-grid:has(.sound-toggle) .wordmark { font-size: 1.8rem; }
}

[data-gallery] { min-width: 0; }
.press-card::after { inset: 0; transform: rotate(.16deg); }

.shirokuro-slide { display: block; padding: 0; }
/* One stage holds either the ink room or its flat projection. */
.story-hero {
  --machine: clamp(4.2rem, 13vw, 8rem);
  --stage-height: clamp(10rem, calc(100svh - var(--site-bar) - 6.5rem), 40rem);
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: calc(100svh - var(--site-bar));
  padding: 1rem 0 max(1rem, env(safe-area-inset-bottom));
}
.projection-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(68rem, calc(100% - 1.5rem));
  height: var(--stage-height);
}
.projector-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}
.has-ink-room :is(.projection-window, .projection-machine) { opacity: 0; }
.projection-window {
  position: relative;
  width: min(84%, 52rem, calc(var(--stage-height) * 1.1));
  aspect-ratio: 10.26 / 7.49;
  isolation: isolate;
}
.projection-window > img,
.projection-window > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.projection-poster {
  color: transparent;
  object-fit: cover;
  border-radius: 2.6% / 4.6%;
  filter: sepia(.77) saturate(.76) contrast(.88) brightness(.99) blur(.45px);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}
.projection-canvas { opacity: 0; }
.has-frame .projection-canvas { opacity: 1; }
.has-frame .projection-poster { opacity: 0; }
.story-hero figcaption {
  margin: .2rem 1rem 0;
  font: 400 clamp(.96rem, 1.6vw, 1.25rem)/1.3 var(--text);
  text-align: center;
}
.projection-machine {
  position: absolute;
  z-index: 2;
  width: var(--machine);
  left: 3%;
  bottom: 0;
  transform: rotate(-2deg);
  opacity: .85;
  pointer-events: none;
}
.machine-wash { stroke: none; fill: currentColor; opacity: .11; }
.projection-reel {
  animation: projection-reel-spin 1.8s linear infinite paused;
}
.projection-reel-large { animation-duration: 2.3s; animation-direction: reverse; }
.is-projecting .projection-reel { animation-play-state: running; }
@keyframes projection-reel-spin { to { transform: rotate(1turn); } }
.story-hero:not(.has-projector) .projection-machine { visibility: hidden; }
.hero-play {
  position: absolute;
  z-index: 3;
  bottom: -.1rem;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}
.hero-play svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  border: 1px solid var(--edge);
  border-radius: 44% 56% 52% 49%;
}
.hero-play:hover svg { border-color: currentColor; }
.pause-icon, .is-projecting .play-icon { display: none; }
.is-projecting .pause-icon { display: inline; }
.story-room {
  display: grid;
  gap: clamp(.8rem, 3svh, 2rem);
  padding: clamp(1rem, 4svh, 3rem) var(--safe-right) 1.35rem var(--safe-left);
}
.process-slide { align-content: start; }
.story-beat, [data-story-gallery] { min-width: 0; }
.story-beat h3 {
  margin: .2rem 0 .65rem;
  font: 400 clamp(1.8rem, 4vw, 3.3rem)/1 var(--brush);
  text-transform: lowercase;
}
.story-reel {
  position: relative;
  --reel-height: clamp(8rem, min(56vw, calc(100svh - var(--site-bar) - 5rem)), 30rem);
  width: min(100%, calc(var(--reel-height) * 16 / 9));
  margin: 0 auto;
}
.reel-track {
  height: var(--reel-height);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  border: 1px solid var(--edge);
  background: var(--wash);
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track > [data-reel-slide] { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.reel-track video { display: block; width: 100%; height: 100%; object-fit: contain; }
.reel-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem; margin-top: .5rem; }
.reel-actions > button span::before { content: "▶"; }
.reel-actions > button[aria-pressed="true"] span::before { content: "❚❚"; }
.reel-dots { display: flex; flex-wrap: wrap; justify-content: center; padding: 0; list-style: none; }
.reel-dots button {
  display: grid;
  place-items: center;
  width: clamp(29px, 7.4vw, 44px);
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}
.reel-dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.reel-dots button[aria-current="true"]::after { background: var(--seal); border-color: var(--seal); }

/* Keep the fixed canvas above the linen and below content in the same body stack. */
[data-page="portfolio"] body::before,
[data-page="portfolio"] body::after { z-index: 0; }
[data-page="portfolio"] body > :is(main, footer) {
  position: relative;
  z-index: 2;
}
.math-ground {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
