/* =========================================================
   MONSORIUM — styles.css  (design + layout)

   Palette — these seven and nothing else. Every gradient, mask and
   hard-light mix below is built from them.
     --plum  #942C5B  highlights, extrusions, shadows
     --leaf  #62BA52  highlights, extrusions, shadows
     --ink   #180724  text on light grounds
     --gold  #FFD06B  the light ground under --ink
     --lime  #87E627  overlays, clippings, masks, bleeds
     --rose  #E69393  overlays, clippings, masks, bleeds
     --abyss #0B0236  the ovilats band / Alleyway ground

   Harmony rule used throughout: warm pair (plum → rose → gold) and acid
   pair (leaf → lime) always meet across the abyss/ink darks, so the
   clash stays loud but every edge reads as one family.
   ========================================================= */

/* ---------- Fonts (all watermark-free) ----------
   Display — Gideon Roman + Shrikhand (OFL). The psychetitlefont demos carry
             "TRIAL FONT" stamps. "When" and "Witnesses" use Slowji 3D
             (psychetitlefont); Bagel Fat One is retired.
   Sub     — Hempa Sans + Cheyenne Sans (psychesubfont).
   Body    — Brokuets Sans + Optician Sans (psychebodyfont).            */
@font-face { font-family: "Gideon Roman"; src: url("assets/fonts/gideon-roman.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Slowji"; src: url("assets/fonts/slowji.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Slowji 3D"; src: url("assets/fonts/slowji-3d.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url("assets/fonts/pinyon-script.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Shrikhand"; src: url("assets/fonts/shrikhand.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Hempa Sans"; src: url("assets/fonts/hempa-sans-black-italic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hempa Sans"; src: url("assets/fonts/hempa-sans-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cheyenne Sans"; src: url("assets/fonts/cheyenne-sans-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cheyenne Sans"; src: url("assets/fonts/cheyenne-sans-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Brokuets Sans"; src: url("assets/fonts/brokuets-sans.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Optician Sans"; src: url("assets/fonts/optician-sans.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #180724;
  --gold: #FFD06B;
  --plum: #942C5B;
  --leaf: #62BA52;
  --lime: #87E627;
  --rose: #E69393;
  --abyss: #0B0236;

  /* palette-only gradients */
  --g-bloom: linear-gradient(135deg, var(--plum), var(--rose) 55%, var(--gold));
  --g-venom: linear-gradient(135deg, var(--leaf), var(--lime) 60%, var(--gold));
  --g-dusk: linear-gradient(180deg, var(--abyss), var(--ink) 60%, var(--plum));
  --g-ribbon: linear-gradient(90deg, var(--plum), var(--rose) 30%, var(--plum) 55%, var(--rose) 80%, var(--plum));

  /* type */
  --f-t1: "Gideon Roman", Georgia, serif;   /* classical display */
  --f-t2: "Gideon Roman", Georgia, serif;
  --f-t3: "Gideon Roman", Georgia, serif;
  --f-t4: "Shrikhand", Georgia, serif;      /* heavy display */
  --f-t5: "Shrikhand", Georgia, serif;
  --f-sub: "Hempa Sans", "Cheyenne Sans", "Arial Black", sans-serif;
  --f-sub2: "Cheyenne Sans", "Hempa Sans", Arial, sans-serif;
  --f-body: "Brokuets Sans", "Helvetica Neue", Arial, sans-serif;
  --f-meta: "Optician Sans", "Cheyenne Sans", Arial, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --corner: clamp(150px, 22vw, 360px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--mast-h, 130px) + 8px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--f-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--lime); }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px dashed var(--lime); outline-offset: 5px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; font-family: var(--f-meta); }
.skip-link:focus { top: 12px; }
section { position: relative; overflow: hidden; isolation: isolate; }
.decor { position: absolute; pointer-events: none; }

/* page-wide grain */
.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: overlay; opacity: .22; z-index: 90; }

/* perforated postage-stamp edge; the middle stays solid */
.stamp {
  -webkit-mask: radial-gradient(circle 7px, transparent 98%, #000) -10px -10px / 20px 20px,
                linear-gradient(#000 0 0) center / calc(100% - 26px) calc(100% - 26px) no-repeat;
          mask: radial-gradient(circle 7px, transparent 98%, #000) -10px -10px / 20px 20px,
                linear-gradient(#000 0 0) center / calc(100% - 26px) calc(100% - 26px) no-repeat;
}

/* ---------- Corner overlays: four per section, all page long ---------- */
.corners { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.corner { position: absolute; width: var(--corner); height: auto; max-height: 70%; object-fit: contain; }
.corner--tl { top: 0; left: 0; transform: translate(-24%, -16%) rotate(-8deg); object-position: left top; }
.corner--tr { top: 0; right: 0; transform: translate(24%, -16%) rotate(7deg); object-position: right top; }
.corner--bl { bottom: 0; left: 0; transform: translate(-24%, 16%) rotate(6deg); object-position: left bottom; }
.corner--br { bottom: 0; right: 0; transform: translate(24%, 16%) rotate(-7deg); object-position: right bottom; }

/* ---------- Frames: contoured "eurotrash" rococo frames ----------
   The clay/carved/gilt texture is cut to a frame outline (::before mask):
   a body inset by --m, with scrolled corner cartouches, a bead moulding
   along each edge and a shell crest top and bottom standing proud of it.
   The outline is lit by drop-shadows on the frame itself (gold rim upper
   left, ink lower right), so the relief follows the contour. */
.frame {
  --clay: url("assets/img/textures/clay-bloom.webp");
  --c: clamp(70px, 7vw, 96px);                     /* corner ornament size */
  --m: calc(var(--c) * .22);                       /* how far ornaments stand proud */
  --run: calc(100% - 2 * var(--c) + 4px);          /* edge length between corners */
  --bevel: calc(var(--m) + clamp(14px, 1.8vw, 26px));
  position: relative; display: block; padding: var(--bevel); isolation: isolate;
  filter: drop-shadow(-1.5px -1.5px 0 rgba(255, 208, 107, .85)) drop-shadow(2px 2px 0 var(--ink)) drop-shadow(7px 9px 0 rgba(24, 7, 36, .85));
}
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* bevel: light catches the upper-left, shadow pools lower-right (kept from
     the embossed rounded frames, now cut to the contour by the mask) */
  box-shadow:
    inset 4px 4px 0 rgba(255, 208, 107, .6),
    inset 14px 14px 22px rgba(255, 208, 107, .3),
    inset -6px -6px 0 rgba(24, 7, 36, .5),
    inset -18px -18px 28px rgba(24, 7, 36, .55);
  background:
    linear-gradient(135deg, rgba(255, 208, 107, .28), transparent 35%, transparent 65%, rgba(24, 7, 36, .45)),
    var(--clay) center / 240px;
  -webkit-mask:
    url("assets/ui/frame-corner-tl.svg") left top / var(--c) var(--c) no-repeat,
    url("assets/ui/frame-corner-tr.svg") right top / var(--c) var(--c) no-repeat,
    url("assets/ui/frame-corner-bl.svg") left bottom / var(--c) var(--c) no-repeat,
    url("assets/ui/frame-corner-br.svg") right bottom / var(--c) var(--c) no-repeat,
    url("assets/ui/frame-edge-top.svg") center top / var(--run) var(--m) no-repeat,
    url("assets/ui/frame-edge-bottom.svg") center bottom / var(--run) var(--m) no-repeat,
    url("assets/ui/frame-edge-left.svg") left center / var(--m) var(--run) no-repeat,
    url("assets/ui/frame-edge-right.svg") right center / var(--m) var(--run) no-repeat,
    url("assets/ui/frame-crest-top.svg") center top / calc(var(--c) * 1.9) calc(var(--c) * .64) no-repeat,
    url("assets/ui/frame-crest-bottom.svg") center bottom / calc(var(--c) * 1.9) calc(var(--c) * .64) no-repeat,
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--m)) calc(100% - 2 * var(--m)) no-repeat;
          mask:
    url("assets/ui/frame-corner-tl.svg") left top / var(--c) var(--c) no-repeat,
    url("assets/ui/frame-corner-tr.svg") right top / var(--c) var(--c) no-repeat,
    url("assets/ui/frame-corner-bl.svg") left bottom / var(--c) var(--c) no-repeat,
    url("assets/ui/frame-corner-br.svg") right bottom / var(--c) var(--c) no-repeat,
    url("assets/ui/frame-edge-top.svg") center top / var(--run) var(--m) no-repeat,
    url("assets/ui/frame-edge-bottom.svg") center bottom / var(--run) var(--m) no-repeat,
    url("assets/ui/frame-edge-left.svg") left center / var(--m) var(--run) no-repeat,
    url("assets/ui/frame-edge-right.svg") right center / var(--m) var(--run) no-repeat,
    url("assets/ui/frame-crest-top.svg") center top / calc(var(--c) * 1.9) calc(var(--c) * .64) no-repeat,
    url("assets/ui/frame-crest-bottom.svg") center bottom / calc(var(--c) * 1.9) calc(var(--c) * .64) no-repeat,
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--m)) calc(100% - 2 * var(--m)) no-repeat;
}
.frame--venom  { --clay: url("assets/img/textures/clay-venom.webp"); }
.frame--bruise { --clay: url("assets/img/textures/clay-bruise.webp"); }
.frame--gilt   { --clay: url("assets/img/textures/clay-gilt.webp"); }
.frame--carved { --clay: url("assets/img/textures/carved-bloom.webp"); }
.frame--carved::before { background-size: auto, 200px; }
.frame__inner {
  position: relative; display: block; overflow: hidden; height: 100%;
  background: url("assets/img/textures/stars-abyss.webp") 0 0 / 512px;
  border-radius: 4px;
  /* gilt sight-edge: the thin inner lip where the picture meets the frame */
  box-shadow: inset 0 0 0 3px var(--ink), inset 10px 10px 24px rgba(24, 7, 36, .9), 0 0 0 3px var(--gold), 0 0 0 5px var(--ink),
    -7px -7px 14px rgba(24, 7, 36, .6), 7px 7px 12px rgba(255, 208, 107, .35);
}

/* ---------- Ribbon (hot pink, moving — copy to come) ---------- */
.ribbon {
  position: relative; z-index: 40; overflow: hidden;
  background: var(--g-ribbon); background-size: 200% 100%;
  color: var(--gold);
  border-bottom: 3px solid var(--ink); box-shadow: 0 4px 0 var(--lime);
  animation: ribbon-sheen 9s linear infinite;
}
.ribbon::after { /* hard-light rose bleed keeps the pink at full volume */
  content: ""; position: absolute; inset: 0; background: var(--rose); mix-blend-mode: hard-light; opacity: .35; pointer-events: none;
}
.ribbon__track { position: relative; z-index: 1; display: flex; width: max-content; animation: ribbon 32s linear infinite; }
.ribbon__run {
  margin: 0; padding: 8px 24px; white-space: nowrap;
  font-family: var(--f-sub); font-weight: 900; font-style: italic; font-size: 19px; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--ink);
}
.ribbon__run i { font-style: normal; color: var(--lime); padding: 0 .4em; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
@keyframes ribbon { to { transform: translateX(-50%); } }
@keyframes ribbon-sheen { to { background-position: -200% 0; } }

/* ---------- The ovilats band: brand + nav buttons ---------- */
/* The masthead (ribbon + nav) sticks to the top as the visitor scrolls. */
.masthead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; }
.ovilats {
  position: relative; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px;
  padding: 14px var(--pad) 16px;
  background:
    radial-gradient(circle at 12% 120%, rgba(148, 44, 91, .55), transparent 40%),
    radial-gradient(circle at 88% -30%, rgba(98, 186, 82, .35), transparent 40%),
    var(--abyss);
  border-bottom: 4px solid var(--plum);
  box-shadow: 0 4px 0 var(--leaf);
}
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin: 0; padding: 0; list-style: none; }

/* Buttons: an ovilats texture clipped by a smooth SVG silhouette (::before),
   an inked outline drawn on top (::after), and a gold label plate. */
.nav-btn {
  --w: 200; --h: 92; --tex: url("assets/img/textures/colordots-overlay--candy.webp");
  --mask: url("assets/ui/btn-home-mask.svg"); --line: url("assets/ui/btn-home-line.svg");
  --size: 60px;
  position: relative; display: inline-grid; place-items: center;
  height: var(--size); aspect-ratio: var(--w) / var(--h);
  text-decoration: none; color: var(--ink);
  filter: drop-shadow(3px 4px 0 var(--plum));
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), filter .25s;
}
.nav-btn::before, .nav-btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.nav-btn::before {
  background: var(--tex) center / cover;
  -webkit-mask: var(--mask) center / 100% 100% no-repeat;
          mask: var(--mask) center / 100% 100% no-repeat;
}
.nav-btn::after { background: var(--line) center / 100% 100% no-repeat; }
.nav-btn > span {
  position: relative; z-index: 1;
  padding: 3px 11px 2px; border-radius: 999px;
  background: var(--gold); box-shadow: 0 0 0 2px var(--ink);
  font-family: var(--f-meta); font-size: 12.5px; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; white-space: nowrap;
}
.nav-list li:nth-child(even) .nav-btn { filter: drop-shadow(-3px 4px 0 var(--leaf)); }
.nav-btn:hover, .nav-btn:focus-visible { color: var(--ink); transform: translateY(-3px) rotate(-3deg) scale(1.04); filter: drop-shadow(4px 6px 0 var(--plum)) drop-shadow(-2px -1px 0 var(--lime)); }
.nav-list li:nth-child(even) .nav-btn:hover { transform: translateY(-3px) rotate(3deg) scale(1.04); }
.nav-btn[aria-current] > span { background: var(--lime); }

.nav-btn--home     { --w: 200; --h: 92; }
.nav-btn--heretic  { --w: 270; --h: 92; --tex: url("assets/img/textures/redtiger-overlay--candy.webp");  --mask: url("assets/ui/btn-heretic-mask.svg");  --line: url("assets/ui/btn-heretic-line.svg"); }
.nav-btn--alleyway { --w: 270; --h: 92; --tex: url("assets/img/textures/starleopard-overlay--moss.webp"); --mask: url("assets/ui/btn-alleyway-mask.svg"); --line: url("assets/ui/btn-alleyway-line.svg"); }
.nav-btn--alleyway > span { margin-right: 16%; }
.nav-btn--bottles  { --w: 290; --h: 92; --tex: url("assets/img/textures/mintbaroque-overlay--moss.webp"); --mask: url("assets/ui/btn-bottles-mask.svg");  --line: url("assets/ui/btn-bottles-line.svg"); }
.nav-btn--bottles > span { margin-right: 22%; }
.nav-btn--conches  { --w: 240; --h: 92; --tex: url("assets/img/textures/pinkreptile-overlay--candy.webp"); --mask: url("assets/ui/btn-conches-mask.svg");  --line: url("assets/ui/btn-conches-line.svg"); }
.nav-btn--conches > span { margin-left: 8%; }

/* ---------- Shared section heads ---------- */
.kicker { display: inline-block; font-family: var(--f-meta); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.section-title {
  margin: 0; font-family: var(--f-t5); font-weight: 400; line-height: .95;
  font-size: clamp(46px, 7.4vw, 116px); letter-spacing: -.01em;
}

/* =========================================================
   HOME
   ========================================================= */
.home {
  min-height: 1020px; padding: 0 var(--pad) 120px;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(148, 44, 91, .55), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(98, 186, 82, .25), transparent 45%),
    var(--g-dusk);
}
.home .corner { z-index: 2; opacity: .9; }
.home .corner--br { width: clamp(200px, 30vw, 460px); mix-blend-mode: hard-light; opacity: .75; }

/* harlequin shard, clipped */
.home__shard {
  top: 40px; right: -3%; width: min(60vw, 820px); height: 620px;
  background:
    conic-gradient(from 45deg, var(--rose) 25%, var(--plum) 0 50%, var(--rose) 0 75%, var(--plum) 0) 0 0 / 52px 52px;
  clip-path: polygon(8% 0, 100% 10%, 90% 100%, 0 86%);
  opacity: .8;
}
.home__shard::after { /* lime halftone bleeding over the diamonds */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, var(--lime) 30%, transparent 33%) 0 0 / 14px 14px;
  mix-blend-mode: hard-light; opacity: .35;
  -webkit-mask: linear-gradient(200deg, #000 10%, transparent 70%);
          mask: linear-gradient(200deg, #000 10%, transparent 70%);
}
.home__tape {
  top: 800px; left: -2%; width: 104%; height: 54px; transform: rotate(-3deg);
  background: var(--g-venom); box-shadow: 0 6px 0 var(--plum), 0 12px 0 var(--ink);
}
.home__frame { top: 30px; left: 14%; width: min(64vw, 620px); z-index: 3; opacity: .65; mix-blend-mode: hard-light; animation: sway 8s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-3deg) translateY(-6px); } }

/* sparkles: one smooth SVG used as a mask, filled per colour */
.spark { z-index: 9; aspect-ratio: 1; -webkit-mask: url("assets/ui/sparkle.svg") center / contain no-repeat; mask: url("assets/ui/sparkle.svg") center / contain no-repeat; }
.spark--1 { top: 170px; right: 24%; width: 84px; background: var(--gold); }
.spark--2 { top: 690px; left: 10%; width: 56px; background: var(--lime); }
.spark--3 { top: 880px; right: 30%; width: 40px; background: var(--rose); }
.spark--4 { top: 420px; left: 46%; width: 30px; background: var(--gold); }

/* light wash used by the flicker */
.home__light {
  inset: 0; z-index: 15; opacity: 0; mix-blend-mode: hard-light;
  background:
    radial-gradient(ellipse at 34% 40%, rgba(255, 208, 107, .55), transparent 55%),
    radial-gradient(ellipse at 78% 18%, rgba(230, 147, 147, .5), transparent 45%),
    radial-gradient(ellipse at 60% 90%, rgba(135, 230, 39, .3), transparent 40%);
  transition: opacity 40ms linear;
}
.home__light.is-flash { opacity: 1; }

.seal {
  position: absolute; top: 60px; right: clamp(16px, 7vw, 130px); z-index: 20;
  width: 146px; height: 146px; display: grid; place-content: center; text-align: center;
  background: var(--g-venom); color: var(--ink);
  font-family: var(--f-meta); font-size: 15px; line-height: 1.1; letter-spacing: .08em; transform: rotate(5deg);
}
.seal b { font-family: var(--f-t4); font-weight: 400; font-size: 32px; letter-spacing: 0; display: block; margin: 2px 0 4px; }

.home__inner { z-index: 18; max-width: 1240px; margin: 110px auto 0; --c: clamp(96px, 11vw, 160px); --clay: url("assets/img/textures/clay-gilt.webp"); }
.home__stage { padding: clamp(40px, 6vw, 90px) clamp(20px, 5vw, 80px) clamp(48px, 6vw, 84px); overflow: visible; }
.home__stage::after { /* glitter-dust floor, like the diorama ground */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none; z-index: 0;
  background: url("assets/img/textures/glitter-bloom.webp") 0 0 / 300px;
  -webkit-mask: linear-gradient(transparent, #000 85%); mask: linear-gradient(transparent, #000 85%);
  opacity: .45;
}
.home__stage > * { position: relative; z-index: 1; }

/* The title: one flowing line of disjointed faces, held level.
   Gideon Roman carries the reading; Shrikhand and Hempa add the bite. */
/* Three fixed lines: "When the" / "Mouth has No" / "Witnesses". */
.title {
  margin: 0; font-weight: 400; line-height: .95;
  font-size: clamp(40px, 9.4vw, 156px);
  display: flex; flex-direction: column; align-items: flex-start; row-gap: .12em;
}
.t-line { display: flex; flex-wrap: nowrap; align-items: baseline; column-gap: .2em; white-space: nowrap; }
.w { display: inline-block; }
.w-when { /* Slowji 3D (psychetitlefont), glossy gold */
  font-family: "Slowji 3D", "Slowji", var(--f-t1); color: transparent;
  background: linear-gradient(180deg, var(--gold) 0 48%, var(--rose) 49% 53%, var(--gold) 54% 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(3px 3px 0 var(--ink)) drop-shadow(5px 5px 0 var(--plum)) drop-shadow(4px 4px 0 var(--ink));
}
.w-the { font-family: var(--f-t3); font-style: italic; font-size: .44em; color: var(--rose); text-shadow: 2px 2px 0 var(--ink); }
.w-mouth { /* Shrikhand, harlequin-filled, inked rim */
  font-family: var(--f-t4); color: transparent;
  background: conic-gradient(from 45deg, var(--rose) 25%, var(--lime) 0 50%, var(--rose) 0 75%, var(--lime) 0) 0 0 / .2em .2em;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: .02em var(--ink);
  filter: drop-shadow(2px 0 0 var(--gold)) drop-shadow(-2px 0 0 var(--gold)) drop-shadow(0 2px 0 var(--gold)) drop-shadow(0 -2px 0 var(--gold))
          drop-shadow(2px 0 0 var(--plum)) drop-shadow(-2px 0 0 var(--plum)) drop-shadow(0 2px 0 var(--plum)) drop-shadow(0 -2px 0 var(--plum))
          drop-shadow(-6px 6px 0 var(--leaf));
}
.w-has { font-family: var(--f-t4); font-size: .42em; color: var(--lime); text-shadow: 3px 3px 0 var(--ink); }
.w-no { /* Hempa Black Italic, bloom-filled with an ink rim (from the original) */
  font-family: var(--f-sub); font-weight: 900; font-style: italic; color: transparent;
  background: var(--g-bloom); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: .02em var(--ink); filter: drop-shadow(5px 5px 0 var(--leaf));
}
.w-witnesses { /* Slowji 3D (psychetitlefont) on a square gilt plate */
  font-family: "Slowji 3D", "Slowji", var(--f-t1); font-size: .9em; letter-spacing: 0; color: var(--ink);
  padding: .14em .45em .08em; background: linear-gradient(180deg, #ffe09a, var(--gold) 45%, #e9b45a);
  box-shadow: inset 0 0 0 .04em var(--ink), inset 0 0 0 .07em var(--gold), inset 0 0 0 .085em var(--plum), 10px 10px 0 var(--plum), 20px 20px 0 var(--leaf);
}

/* The subtitle: a level acid band; Hempa Black Italic / Cheyenne Light / Hempa. */
.subtitle {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .1em .3em;
  margin: 52px 0 0; padding: 12px 24px 14px;
  background: var(--g-venom); color: var(--ink);
  font-size: clamp(26px, 3.8vw, 56px); line-height: 1;
  box-shadow: -8px 8px 0 var(--plum), -16px 16px 0 var(--ink);
}
.s-a, .s-c { font-family: var(--f-sub); font-weight: 900; font-style: italic; }
.s-b { font-family: var(--f-sub2); font-weight: 300; font-style: italic; letter-spacing: -.01em; }
.s-c { background: var(--ink); color: var(--lime); padding: 0 .16em; display: inline-block; }

.home__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 48px; }
.cue {
  font-family: var(--f-meta); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--gold); background: var(--abyss); padding: 10px 16px; border: 2px solid var(--rose); box-shadow: 4px 4px 0 var(--plum);
}
.cue:hover { color: var(--ink); background: var(--rose); }

/* flicker toggle */
.flicker-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 20px 8px 14px;
  font-family: var(--f-meta); font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); background: var(--abyss); border: 2px solid var(--gold);
  box-shadow: 4px 4px 0 var(--plum); cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.flicker-toggle:hover { box-shadow: 4px 4px 0 var(--leaf); transform: translateY(-2px); }
.flicker-toggle svg { width: 22px; height: 22px; }
.flicker-toggle .bulb { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.flicker-toggle__state { display: inline-block; min-width: 2.4em; margin-left: .3em; padding: 0 .4em; background: var(--plum); text-align: center; }
.flicker-toggle[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.flicker-toggle[aria-pressed="true"] .bulb { fill: var(--lime); stroke: var(--ink); }
.flicker-toggle[aria-pressed="true"] .flicker-toggle__state { background: var(--lime); }

/* flicker effect — only while JS has it switched on */
.home.is-flickering .flick { animation: flick-a 5.2s infinite steps(1, end); }
.home.is-flickering .flick--b { animation-name: flick-b; animation-duration: 6.8s; }
.home.is-flickering .flick--c { animation-name: flick-c; animation-duration: 4.1s; }
.home.is-flickering .w-when { filter: drop-shadow(0 0 14px rgba(255, 208, 107, .8)) drop-shadow(3px 3px 0 var(--ink)) drop-shadow(5px 5px 0 var(--plum)) drop-shadow(4px 4px 0 var(--ink)); }
.home.is-flickering .home__stage { animation: stage-glow 4.6s infinite steps(1, end); }
@keyframes stage-glow { 0%, 30%, 34%, 100% { box-shadow: inset 0 0 0 3px var(--ink), inset 10px 10px 24px rgba(24, 7, 36, .9), 0 0 0 3px var(--gold), 0 0 0 5px var(--ink), -7px -7px 14px rgba(24, 7, 36, .6), 7px 7px 12px rgba(255, 208, 107, .35); }
  31%, 33% { box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 80px rgba(230, 147, 147, .45), 0 0 0 3px var(--gold), 0 0 0 5px var(--ink), 0 0 26px 6px rgba(255, 208, 107, .7); } }
.home.is-flickering .spark { animation: twinkle 2.6s ease-in-out infinite; }
.home.is-flickering .spark--2 { animation-delay: .9s; }
.home.is-flickering .spark--3 { animation-delay: 1.7s; }
.home.is-flickering .spark--4 { animation-delay: .4s; }
.home.is-flickering .seal { animation: flick-b 9s infinite steps(1, end); }
.home.is-flickering .home__frame { animation: sway 8s ease-in-out infinite, flick-c 7.3s infinite steps(1, end); }
.title .is-stutter { opacity: .25 !important; }
@keyframes flick-a { 0%, 18%, 22%, 60%, 100% { opacity: 1; } 19%, 21% { opacity: .3; } 20% { opacity: .85; } 61% { opacity: .55; } }
@keyframes flick-b { 0%, 40%, 44%, 100% { opacity: 1; } 41% { opacity: .2; } 42% { opacity: .9; } 43% { opacity: .35; } }
@keyframes flick-c { 0%, 70%, 73%, 100% { opacity: 1; } 71% { opacity: .4; } 72% { opacity: .15; } }
@keyframes twinkle { 50% { transform: scale(.55) rotate(45deg); opacity: .5; } }
/* static mode: everything holds still */
.home.is-static .home__frame { animation: none; }

/* =========================================================
   EPIGRAPH (home, continued)
   ========================================================= */
.epigraph {
  padding: 120px var(--pad);
  background: radial-gradient(ellipse at 50% 0%, var(--gold), var(--rose) 45%, var(--plum) 110%);
  color: var(--ink);
}
.epigraph .corner { opacity: .85; }
.epigraph__dots { inset: 0; opacity: .16; background: radial-gradient(circle, var(--plum) 40%, transparent 43%) 0 0 / 16px 16px; }
.epigraph__ghost {
  top: -14px; bottom: -6px; left: 2%; right: 2%; z-index: 0; white-space: nowrap;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--f-t2); font-size: clamp(64px, 10vw, 170px); line-height: .9;
  color: transparent; -webkit-text-stroke: 2px rgba(148, 44, 91, .6);
}
.epigraph__ghost span { transform: rotate(-4deg); }
.epigraph__ghost span:last-child { align-self: flex-end; }
.epigraph__figure { position: relative; z-index: 5; max-width: 1000px; margin: 0 auto; }
/* tapestry: a border of painted cells around a rose field */
.tapestry {
  --cell: 64px;
  padding: var(--cell);
  background:
    radial-gradient(circle, var(--plum) 0 5px, transparent 6px) calc(var(--cell) / 2) calc(var(--cell) / 2) / var(--cell) var(--cell),
    repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px var(--cell)),
    repeating-linear-gradient(0deg, var(--ink) 0 3px, transparent 3px var(--cell)),
    url("assets/img/textures/glitter-venom.webp") 0 0 / 260px;
  box-shadow: 0 0 0 4px var(--ink), 12px 14px 0 var(--plum), 24px 28px 0 var(--ink);
}
.tapestry::before { /* lime squares where the borders cross, as in the painting */
  content: ""; position: absolute; inset: calc(var(--cell) - 10px); pointer-events: none; z-index: 1;
  --sq: linear-gradient(var(--lime), var(--lime));
  background: var(--sq) left top, var(--sq) right top, var(--sq) left bottom, var(--sq) right bottom;
  background-size: 20px 20px; background-repeat: no-repeat;
}
.tapestry > .epigraph__card { box-shadow: 0 0 0 3px var(--ink), 0 0 0 clamp(14px, 2vw, 26px) var(--rose), 0 0 0 calc(clamp(14px, 2vw, 26px) + 3px) var(--ink); }
.epigraph__card { position: relative; background: var(--gold); padding: clamp(32px, 5vw, 72px); }
.epigraph__quote { margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.75; letter-spacing: .01em; color: var(--ink); }
.epigraph__quote p { margin: 0; }
.epigraph__quote p::first-letter {
  float: left; font-family: var(--f-t5); font-size: 4.6em; line-height: .8; margin: 6px 12px 0 0;
  color: var(--plum); text-shadow: 3px 3px 0 var(--leaf);
}
.epigraph__quote mark { background: linear-gradient(transparent 12%, var(--lime) 12% 88%, transparent 88%); color: var(--ink); padding: 0 3px; }
.epigraph__cite { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.epigraph__cite .who { font-family: var(--f-meta); font-size: 16px; letter-spacing: .06em; background: var(--ink); color: var(--gold); padding: 4px 12px; }
.epigraph__cite cite { font-family: var(--f-t4); font-style: normal; font-size: 28px; color: var(--plum); }

/* =========================================================
   THE HERETIC
   ========================================================= */
.heretic {
  padding: 140px var(--pad);
  background: linear-gradient(160deg, var(--plum), var(--ink) 75%);
}
.heretic .corner { mix-blend-mode: hard-light; opacity: .8; }
.heretic__dots { inset: 0; opacity: .14; background: radial-gradient(circle, var(--rose) 42%, transparent 45%) 0 0 / 18px 18px; }
.heretic__inner { position: relative; z-index: 5; max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.heretic__side { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 40px; }
.portrait { aspect-ratio: 4 / 5; transform: rotate(-2deg); }
/* the dossier: an ID card pinned under the portrait */
.dossier {
  position: relative; margin: 0 6px; padding: 20px 24px 22px; background: var(--ink); color: var(--gold);
  border: 3px solid var(--rose); border-radius: 4px 22px 4px 22px; box-shadow: 8px 8px 0 var(--lime), 14px 14px 0 var(--abyss);
  transform: rotate(1.2deg);
}
.dossier dl { margin: 0; display: grid; gap: 10px; }
.dossier dl > div { display: grid; grid-template-columns: 7.5em 1fr; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--plum); }
.dossier dt { font-family: var(--f-meta); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.dossier dd { margin: 0; font-family: var(--f-sub); font-size: 19px; line-height: 1.2; }
.dossier__creed {
  display: inline-block; margin: 16px 0 0; padding: 6px 14px; font-family: var(--f-t4); font-size: 24px; color: var(--lime);
  border: 2px solid var(--lime); border-radius: 3px; transform: rotate(-3deg); text-shadow: 2px 2px 0 var(--plum);
}
.portrait__stage { display: grid; place-items: center; }
.portrait__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.heretic__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.heretic__text .kicker { color: var(--lime); }
.heretic__text .section-title { color: var(--gold); text-shadow: 5px 5px 0 var(--ink), 10px 10px 0 var(--leaf); }
.paper { background: var(--gold); color: var(--ink); padding: clamp(24px, 3vw, 40px); box-shadow: 12px 12px 0 var(--ink), 20px 20px 0 var(--lime); border-radius: 4px 28px 4px 28px; }
.paper p { margin: 0 0 14px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; }
.paper p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; font-family: var(--f-meta); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.chips li { color: var(--ink); padding: 8px 14px; box-shadow: 3px 3px 0 var(--ink); }
.chips li:nth-child(1) { background: var(--rose); }
.chips li:nth-child(2) { background: var(--lime); }
.chips li:nth-child(3) { background: var(--gold); }
.chips li { text-transform: none; letter-spacing: .02em; font-size: 14px; line-height: 1.35; }
.chip__label { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); }
.chips cite { font-style: italic; }

/* =========================================================
   THE ALLEYWAY — the exhibit
   ========================================================= */
.alleyway { padding: 130px var(--pad) 130px; background: url("assets/img/textures/stars-abyss.webp") 0 0 / 512px, var(--abyss); }
.alleyway .corner { opacity: .5; }
.alleyway__scan { inset: 0; z-index: 0; background: repeating-linear-gradient(0deg, rgba(11, 2, 54, .45) 0 2px, transparent 2px 4px), radial-gradient(ellipse at 50% 0%, rgba(148, 44, 91, .45), transparent 60%); }
.alleyway__inner { position: relative; z-index: 5; max-width: 1320px; margin: 0 auto; }
.alleyway__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; margin-bottom: 64px; }
.alleyway__head .kicker { flex-basis: 100%; color: var(--lime); }
.alleyway__head .section-title { color: var(--rose); text-shadow: 5px 5px 0 var(--plum), 10px 10px 0 var(--ink); }
.alleyway__note { max-width: 46em; margin: 6px 0 0; font-size: 17px; line-height: 1.55; color: var(--gold); }
.alleyway__note small { color: var(--rose); font-family: var(--f-meta); font-size: 13px; letter-spacing: .06em; }
.gallery { margin-bottom: 96px; }
.gallery:last-child { margin-bottom: 0; }
.gallery__title {
  display: flex; align-items: center; gap: 16px; margin: 0 0 32px;
  font-family: var(--f-sub); font-weight: 900; font-style: italic; font-size: clamp(22px, 2.4vw, 30px); color: var(--gold); text-transform: uppercase;
}
.gallery__title::after { content: ""; flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--lime), var(--leaf) 40%, var(--plum) 70%, var(--rose)); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 34px; margin: 0; padding: 0; list-style: none; }
.tile a { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--gold); }
.tile:nth-child(3n+2) { margin-top: 56px; }
.tile__frame { aspect-ratio: 4 / 5; transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.tile:nth-child(odd) .tile__frame { transform: rotate(-1deg); }
.tile:nth-child(even) .tile__frame { transform: rotate(1.2deg); }
.tile__frame .frame__inner { position: absolute; inset: var(--bevel); height: auto; }
.tile__frame .frame__inner img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.tile__frame .frame__inner::after { content: ""; position: absolute; inset: 0; background: var(--g-bloom); mix-blend-mode: hard-light; opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile a:hover .tile__frame, .tile a:focus-visible .tile__frame { transform: rotate(0) translateY(-6px); }
.tile a:hover .frame__inner img, .tile a:focus-visible .frame__inner img { transform: scale(1.06); }
.tile a:hover .frame__inner::after, .tile a:focus-visible .frame__inner::after { opacity: .28; }
.tile__cap { display: block; padding: 0 6px; }
.tile__no { font-family: var(--f-meta); font-size: 13px; letter-spacing: .08em; color: var(--lime); margin-right: .2em; }
.tile__cap cite { font-family: var(--f-t3); font-style: normal; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; color: var(--gold); }
.tile__cap cite.untitled { font-style: italic; color: var(--rose); }
.tile__cap small { display: block; font-family: var(--f-meta); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); margin-top: 6px; }
/* Graphic and Digital Art: finished pieces show whole, at their own proportions (no crop) */
.gallery--art .tiles { align-items: start; grid-template-columns: 1fr; }
@media (min-width: 761px)  { .gallery--art .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gallery--art .tiles { grid-template-columns: repeat(4, 1fr); } }
/* Spacetakers: ovilats cut-outs that fill a gallery's empty cells, shown
   only at the column count where that cell would otherwise be blank. */
.tile--spacer { display: none; align-self: center; pointer-events: none; }
.tile--spacer img { width: 100%; max-height: 460px; object-fit: contain; animation: drift 9s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(230, 147, 147, .35)); }
.tile--spacer:nth-of-type(even) img { animation-delay: -4s; }
@media (min-width: 761px) and (max-width: 1199px) { .spacer--3col { display: block; } }
@media (min-width: 1200px) { .spacer--4col { display: block; } }
@keyframes drift { 50% { transform: translateY(-14px) rotate(1.5deg); } }
.gallery--art .tile__frame { aspect-ratio: auto; }
.gallery--art .tile__frame .frame__inner { position: relative; inset: auto; }
.gallery--art .tile__frame .frame__inner img { height: auto; }
.gallery--art .tile:nth-child(3n+2) { margin-top: 0; }
@media (min-width: 761px) { .gallery--art .tile:nth-child(even) { margin-top: 44px; } }
/* Multimedia: five framed screens. Films with a file in assets/video play
   on the page (720p, CapCut end cards trimmed) and link to Facebook below;
   the rest are title cards linking straight to the Facebook post. */
.tiles--video { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 761px)  { .tiles--video { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .tiles--video { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 761px)  { .tile--lead { grid-column: span 2; } }   /* 2+1 / 1+1+1 at three columns; 2 / 1+1 / 1+1 at two */
.tiles--video .tile { margin-top: 0 !important; }
.tile__body { display: flex; flex-direction: column; gap: 14px; color: var(--gold); text-decoration: none; }
.tile--video .tile__frame { aspect-ratio: 4 / 3; }   /* the films are 4:3 */
.tile--portrait .tile__frame { aspect-ratio: 720 / 896; }   /* Flicks is a portrait recording */
@media (min-width: 1200px) { .tile--portrait { grid-row: span 2; } }
.video-player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--abyss); }
.video-fb {
  display: inline-block; margin-top: 8px; font-family: var(--f-meta); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lime); text-decoration: none; border-bottom: 1px solid currentColor;
}
.video-fb:hover, .video-fb:focus-visible { color: var(--rose); }
.video-card {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8% 10% 22%;
  text-align: center; background: radial-gradient(ellipse at 50% 40%, rgba(148, 44, 91, .55), transparent 70%);
}
.video-card__title {
  font-family: var(--f-sub); font-weight: 900; font-style: italic; font-size: clamp(20px, 2.4vw, 40px); line-height: 1.05; color: var(--rose);
  text-shadow: 3px 3px 0 var(--plum), 6px 6px 0 var(--ink); overflow-wrap: anywhere; text-wrap: balance;
}
.tile:not(.tile--lead) .video-card__title { font-size: clamp(18px, 1.7vw, 28px); }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; white-space: nowrap; background: rgba(11, 2, 54, .85); box-shadow: 0 0 0 1px var(--gold), 3px 3px 0 var(--plum);
  font-family: var(--f-meta); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  transition: background .2s, color .2s;
}
.video-play svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.video-play svg path { fill: var(--gold); stroke: none; }
.tile--video a:hover .video-play, .tile--video a:focus-visible .video-play { background: var(--rose); color: var(--ink); }
.tile--video a:hover .frame__inner::after, .tile--video a:focus-visible .frame__inner::after { opacity: .2; }

/* slide-ins (html.js is set inline; without JS everything simply shows) */
.js .tile { opacity: 0; transition: opacity .7s ease, transform 1s cubic-bezier(.2, .9, .25, 1.12); transition-delay: var(--delay, 0ms); }
.js .tile:nth-child(odd)  { transform: translateX(-110px) rotate(-6deg); }
.js .tile:nth-child(even) { transform: translateX(110px) rotate(6deg); }
.js .tile.is-in { opacity: 1; transform: none; }
.js .gallery__title { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.6, 0, .2, 1); }
.js .gallery__title.is-in { clip-path: inset(0 0 0 0); }

/* ---------- divider tape ---------- */
.tape {
  position: relative; z-index: 6; margin: -16px 0; padding: 10px 0; overflow: hidden; white-space: nowrap;
  background: var(--g-ribbon); color: var(--gold); font-family: var(--f-sub); font-weight: 900; font-style: italic; font-size: 30px;
  transform: rotate(-1.5deg); box-shadow: 0 8px 0 var(--lime), 0 16px 0 var(--ink);
  text-shadow: 2px 2px 0 var(--ink);
}
.tape span { display: inline-block; animation: ribbon 40s linear infinite reverse; }

/* =========================================================
   BOTTLES AT SEA
   ========================================================= */
.bottles {
  padding: 140px var(--pad) 150px; color: var(--ink);
  background: linear-gradient(180deg, var(--lime), var(--leaf) 55%, var(--abyss) 120%);
}
/* the specimen plate (after an encyclopaedia lithograph) */
.plate {
  position: relative; padding: 22px clamp(18px, 3vw, 44px) 18px;
  background:
    radial-gradient(circle, rgba(148, 44, 91, .14) 30%, transparent 33%) 0 0 / 9px 9px,
    linear-gradient(170deg, var(--gold), var(--gold) 70%, var(--rose) 140%);
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 14px var(--abyss), 0 0 0 17px var(--plum), 14px 18px 0 17px var(--ink);
  margin: 0 17px;
}
.plate__head, .plate__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin: 0;
  font-family: var(--f-meta); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--plum);
}
.plate__head { padding-bottom: 12px; margin-bottom: 40px; border-bottom: 2px solid var(--ink); }
.plate__foot { padding-top: 12px; margin-top: 48px; border-top: 2px solid var(--ink); font-family: var(--f-t3); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.fig-no { position: absolute; top: 0; left: 4px; z-index: 3; font-family: var(--f-t3); font-size: 26px; color: var(--plum); }
.fig-no::after { content: ""; display: block; width: 26px; height: 2px; background: var(--ink); }
.bottles .corner { opacity: .85; }
.bottles__dots { inset: 0; opacity: .5; background: url("assets/img/textures/glitter-venom.webp") 0 0 / 300px; mix-blend-mode: hard-light; }
.bottles__meadow { /* spacetaker: the meadow cut-out grows along the bottom edge */
  left: 0; right: 0; bottom: 0; z-index: 1; width: 100%; height: clamp(180px, 22vw, 320px); object-fit: cover; object-position: center bottom;
  -webkit-mask: linear-gradient(transparent, #000 45%); mask: linear-gradient(transparent, #000 45%); opacity: .9;
}
.epigraph__streaks { /* spacetaker: colour streaks bleeding behind the tapestry */
  top: 0; bottom: 0; width: clamp(160px, 22vw, 340px); height: 100%; object-fit: cover; z-index: 1; mix-blend-mode: hard-light; opacity: .8;
}
.epigraph__streaks--l { left: 2%; }
.epigraph__streaks--r { right: 2%; transform: scaleX(-1); }
.alleyway__bleeds { /* spacetaker: drips falling beside the heading */
  top: 0; right: 6%; width: clamp(140px, 18vw, 260px); z-index: 2; opacity: .85; mix-blend-mode: hard-light;
  -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent);
}
.bottles__waves { top: 60px; left: 0; width: 100%; height: 100px; z-index: 1; }
.bottles__inner { position: relative; z-index: 5; max-width: 1240px; margin: 0 auto; }
.bottles__inner .kicker { color: var(--ink); background: var(--gold); padding: 3px 10px; }
.bottles__inner .section-title { color: var(--ink); text-shadow: 4px 4px 0 var(--rose), 8px 8px 0 var(--plum); margin-top: 12px; }
.bottles__intro { max-width: 620px; margin: 22px 0 72px; font-size: 18px; line-height: 1.6; background: var(--gold); padding: 14px 18px; box-shadow: 6px 6px 0 var(--plum); border-radius: 4px 20px 4px 20px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; gap: 56px 48px; margin: 0; padding: 0; list-style: none; }
.bottle { position: relative; display: flex; flex-direction: column; align-items: center; }
.bottle__glass {
  width: 66%; height: auto; margin-bottom: -38px; position: relative; z-index: 1;
  filter: drop-shadow(8px 8px 0 rgba(148, 44, 91, .55));
  animation: bob 6s ease-in-out infinite;
}
.bottle:nth-child(3n+2) .bottle__glass { animation-delay: -2s; filter: drop-shadow(-8px 8px 0 rgba(24, 7, 36, .45)); }
.bottle:nth-child(3n) .bottle__glass { animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-10px); } }
.bottle__tag {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 26px 22px 22px; background: var(--gold); color: var(--ink);
  border-radius: 28px 28px 10px 10px / 22px 22px 10px 10px;
  box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 var(--plum);
}
.bottle__tag::before { /* the string hole */
  content: ""; position: absolute; top: 9px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--leaf); box-shadow: inset 0 0 0 3px var(--ink);
}
.bottle:nth-child(3n+2) .bottle__tag { box-shadow: 0 0 0 2px var(--ink), -6px 6px 0 var(--leaf); }
.bottle__tag { background: linear-gradient(180deg, var(--gold), var(--gold) 80%, var(--rose) 160%); }
.bottle__form { font-family: var(--f-meta); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.bottle__title { margin: 0; font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.05; }
.bottle:nth-child(3n+1) .bottle__title { font-family: var(--f-t4); }
.bottle:nth-child(3n+2) .bottle__title { font-family: var(--f-sub); font-weight: 900; font-style: italic; }
.bottle:nth-child(3n) .bottle__title { font-family: var(--f-t3); font-size: clamp(22px, 2vw, 30px); }
.bottle__title { overflow-wrap: anywhere; }
.bottle__excerpt { margin: 0; font-size: 15px; line-height: 1.5; }
.bottle__link { margin-top: 4px; font-family: var(--f-meta); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.bottle__link::after { content: ""; position: absolute; inset: -200px 0 0; } /* whole bottle is the click target */
.bottle__link:hover { color: var(--ink); }
.bottle:hover .bottle__glass { animation-duration: 1.6s; }

/* =========================================================
   CAROUSELS — The Heretic's seven parts; the poem reading room.
   Without JS every slide simply shows, one after another.
   ========================================================= */
.carousel:focus-within { outline: none; }
.carousel__slide + .carousel__slide { margin-top: 1.4em; }
.js .carousel.is-ready .carousel__slide { display: none; margin-top: 0; }
.js .carousel.is-ready .carousel__slide.is-current { display: block; animation: slide-in .5s ease; }
.js .carousel.is-ready .poem.is-current { display: grid; }
@keyframes slide-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.carousel__label {
  display: block; margin-bottom: 12px; font-family: var(--f-meta); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--plum);
}
.carousel__controls { display: none; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.js .carousel.is-ready .carousel__controls { display: flex; }
.carousel__count { min-width: 5.5em; text-align: center; font-family: var(--f-t3); font-size: 18px; letter-spacing: .08em; color: var(--plum); font-variant-numeric: tabular-nums; }

/* Nouveau arrow cartouche: textured fill cut by the SVG silhouette, inked
   line art on top — the same build as the nav buttons. */
.arrow-btn {
  --tex: url("assets/img/textures/pinkreptile-overlay--candy.webp");
  position: relative; width: 84px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(3px 4px 0 var(--plum));
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), filter .2s;
}
.arrow-btn::before, .arrow-btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.arrow-btn::before {
  background: var(--tex) center / cover;
  -webkit-mask: url("assets/ui/arrow-mask.svg") center / 100% 100% no-repeat;
          mask: url("assets/ui/arrow-mask.svg") center / 100% 100% no-repeat;
}
.arrow-btn::after { background: url("assets/ui/arrow-line.svg") center / 100% 100% no-repeat; }
.arrow-btn--prev { --tex: url("assets/img/textures/starleopard-overlay--moss.webp"); transform: scaleX(-1); filter: drop-shadow(-3px 4px 0 var(--leaf)); }
.arrow-btn:hover, .arrow-btn:focus-visible { transform: translateX(4px) scale(1.06); }
.arrow-btn--prev:hover, .arrow-btn--prev:focus-visible { transform: scaleX(-1) translateX(4px) scale(1.06); }

/* The Heretic's bio paper holds the carousel */
.heretic .carousel { width: 100%; }
.heretic .carousel__slide p { margin: 0; }
.heretic .carousel__slide em { font-style: italic; color: var(--plum); }
/* every part shares one grid cell, so the paper keeps the height of the longest
   and the arrows never move as the parts turn */
.js .heretic .carousel.is-ready .carousel__viewport { display: grid; }
.js .heretic .carousel.is-ready .carousel__slide { display: block; grid-area: 1 / 1; visibility: hidden; }
.js .heretic .carousel.is-ready .carousel__slide.is-current { visibility: visible; }

/* =========================================================
   THE ALLEYWAY — the viewing room (art.html)
   ========================================================= */
.viewing { padding: 60px var(--pad) 80px; }
.viewing__head { position: relative; z-index: 5; max-width: 1320px; margin: 0 auto 10px; }
.viewing__head .kicker { display: block; color: var(--lime); }
.viewing__head .section-title { color: var(--rose); text-shadow: 5px 5px 0 var(--plum), 10px 10px 0 var(--ink); margin: 8px 0 0; }
.viewer { --aw: 420px; --ah: 560px; position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.viewer__stage {
  position: relative; width: 100%; max-width: 1500px; min-height: calc(var(--ah) + 140px);
  display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 28px);
  perspective: 1400px; overflow: hidden; padding: 30px 0;
}
.viewer__ghosts { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.art-ghost {
  position: absolute; left: 50%; top: 50%; pointer-events: auto; cursor: pointer;
  transition: transform 1.1s cubic-bezier(.3, .8, .25, 1), filter 1.1s ease, opacity 1.1s ease;
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px rgba(255, 208, 107, .55), 10px 14px 24px rgba(11, 2, 54, .8);
}
.art-ghost img { width: 100%; height: 100%; object-fit: cover; }
.viewer__arrow { position: relative; z-index: 12; flex: none; }
.art-frame { position: relative; z-index: 10; flex: none; }
.art-frame .frame__inner {
  width: var(--aw); height: var(--ah); max-width: 100%;
  transition: width .9s cubic-bezier(.3, .8, .25, 1), height .9s cubic-bezier(.3, .8, .25, 1);
}
/* Without JS the pieces stack inside the frame; with it, one shows at a time. */
.art-piece { margin: 0; }
.art-piece img { width: 100%; height: auto; }
.viewer.is-ready .art-piece { position: absolute; inset: 0; opacity: 0; transform: scale(.94); transition: opacity .45s ease, transform .9s ease; }
.viewer.is-ready .art-piece.is-current { opacity: 1; transform: none; transition: opacity .8s ease .35s, transform 1s cubic-bezier(.3, .8, .25, 1) .25s; }
.viewer.is-ready .art-piece img { width: 100%; height: 100%; object-fit: contain; }
.viewer:not(.is-ready) .art-frame .frame__inner { width: min(90vw, 640px); height: auto; }
.viewer:not(.is-ready) .viewer__arrow, .viewer:not(.is-ready) .viewer__pause { display: none; }

/* The caption: an embossed gilt plate under the frame */
.art-caption {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: min(420px, 90vw); max-width: 90vw;
  padding: 14px 28px 16px; text-align: center; color: var(--ink);
  background: linear-gradient(180deg, #ffe09a, var(--gold) 45%, #e9b45a);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, .55), inset -3px -3px 0 rgba(148, 44, 91, .45),
    inset 0 0 0 1px var(--ink), 0 0 0 4px var(--gold), 0 0 0 6px var(--ink), 8px 10px 0 6px var(--plum);
}
.art-caption__no { font-family: var(--f-meta); font-size: 12px; letter-spacing: .14em; color: var(--plum); }
.art-caption__title {
  font-family: var(--f-t3); font-style: normal; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; text-wrap: balance;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .6), -1px -1px 0 rgba(148, 44, 91, .35);
}
.art-caption__title.untitled { font-style: italic; }
.art-caption__meta { font-family: var(--f-meta); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); }
.viewer__pause {
  font-family: var(--f-meta); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  color: var(--gold); background: var(--abyss); border: 1px solid rgba(255, 208, 107, .6); padding: 7px 14px;
}
.viewer__pause:hover { border-color: var(--lime); color: var(--lime); }

/* =========================================================
   BOTTLES AT SEA — the reading room (bottles.html)
   ========================================================= */
.reading { padding-top: 70px; }
.reading__back {
  display: inline-block; margin-bottom: 26px; padding: 8px 14px; font-family: var(--f-meta); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); background: var(--abyss); text-decoration: none; box-shadow: 4px 4px 0 var(--plum);
}
.reading__back:hover { color: var(--ink); background: var(--rose); }
.reading .section-title { margin: 10px 0 40px; }
.reading .plate { margin-bottom: 70px; }
.poem { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 20px clamp(20px, 4vw, 56px); align-items: start; }
.poem__bottle { position: relative; padding-top: 10px; }
.poem__bottle img { width: 100%; height: auto; filter: drop-shadow(8px 8px 0 rgba(148, 44, 91, .55)); animation: bob 6s ease-in-out infinite; }
.poem__sheet { min-width: 0; max-width: 72ch; }
.poem__meta { font-family: var(--f-meta); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); }
.poem__title { margin: 8px 0 22px; font-family: var(--f-t4); font-weight: 400; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; color: var(--ink); text-shadow: 3px 3px 0 var(--rose); text-wrap: balance; overflow-wrap: anywhere; }
.poem__text p { margin: 0 0 1.1em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; }
/* The poems keep their own lineation: one block per line, indented as in the
   manuscript (--i spaces at .25em each, capped so it never runs off a phone). */
.poem__text { font-family: var(--f-t3); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--ink); }
.stanza { margin: 0 0 1.15em; }
.ln { display: block; padding-left: min(calc(var(--i, 0) * .25em), 42%); text-indent: -.6em; margin-left: .6em; }
.poem__text strong { font-weight: 700; }
.poem__break { width: 2.5em; margin: .4em 0 1.4em; border: 0; border-top: 1px solid var(--plum); }
.poem__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5em; }
@media (max-width: 760px) { .poem__cols { grid-template-columns: 1fr; } .poem__text { font-size: 16px; } }
.video-hint {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; display: none; pointer-events: none;
  padding: 4px 10px; white-space: nowrap; font-family: var(--f-meta); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--lime); box-shadow: 2px 2px 0 var(--plum);
}
.tile--video.is-muted-hover .video-hint { display: block; }
.poem__fragment { font-family: var(--f-t3); font-style: italic; font-size: clamp(20px, 1.8vw, 24px) !important; color: var(--ink); }
.poem__pending { font-family: var(--f-meta); font-size: 13px !important; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); }
.reading__contents {
  position: relative; z-index: 5; max-width: 760px; padding: 22px 26px; background: var(--abyss); color: var(--gold);
  box-shadow: 8px 8px 0 var(--plum), 16px 16px 0 var(--ink);
}
.reading__contents-title { margin: 0 0 12px; font-family: "Slowji", var(--f-t5); font-weight: 400; font-size: 34px; color: var(--rose); }
.reading__contents ol { margin: 0; padding: 0; list-style: none; columns: 2 280px; column-gap: 28px; }
.reading__contents li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid rgba(255, 208, 107, .3); }
.reading__contents a { color: var(--gold); text-decoration: none; font-family: var(--f-t3); font-size: 17px; }
.reading__contents a span { font-family: var(--f-meta); font-size: 12px; color: var(--lime); margin-right: .4em; }
.reading__contents a:hover, .reading__contents a[aria-current] { color: var(--rose); }

/* =========================================================
   CONCHES
   ========================================================= */
.conches { padding: 130px var(--pad) 70px; color: var(--ink); background: url("assets/img/textures/clay-bloom.webp") 0 0 / 520px, var(--rose); }
.conches .corner { opacity: .9; }
.conches__ground {
  inset: 0; z-index: 0; opacity: .5;
  background: conic-gradient(from 45deg, var(--rose) 25%, var(--plum) 0 50%, var(--rose) 0 75%, var(--plum) 0) 0 0 / 60px 60px;
  -webkit-mask: linear-gradient(90deg, transparent 45%, #000 80%);
          mask: linear-gradient(90deg, transparent 45%, #000 80%);
}
.conches__street { /* spacetaker: the street scene fills the left half, top to bottom */
  top: 0; left: 0; width: 55%; height: 100%; object-fit: cover; z-index: 1; opacity: .9; mix-blend-mode: hard-light;
  -webkit-mask: linear-gradient(90deg, #000 70%, transparent); mask: linear-gradient(90deg, #000 70%, transparent);
}
.conches__inner { position: relative; z-index: 5; max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
/* Three lines around the nouveau heart frame: one above it, one set in its
   middle on a soft gilt glow, one below it. */
.sign { flex: 0 1 480px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--ink); }
/* Outer lines: large gold Gideon Roman with a solid ink outline, so they
   read over the street scene without a box behind them. */
.sign__top, .sign__bottom {
  font-family: var(--f-t1); font-size: clamp(28px, 2.9vw, 42px); line-height: 1.15; letter-spacing: .03em; color: var(--gold);
  -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill;
  text-shadow: .06em .06em 0 var(--plum);
}
.sign__top { font-style: italic; }
.sign__heart { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; }
.sign__heart img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sign__middle { /* Pinyon Script: baroque copperplate */
  position: relative; margin-top: -8%; padding: .1em .7em .25em;
  font-family: "Pinyon Script", var(--f-t1); font-size: clamp(54px, 5.6vw, 82px); line-height: 1.1; color: var(--plum);
  -webkit-text-stroke: .02em var(--plum);
  text-shadow: 1px 1px 0 var(--gold), -1px -1px 0 var(--gold);
  background: radial-gradient(closest-side, var(--gold) 55%, rgba(255, 208, 107, .75) 78%, transparent);
}
.contact-card { flex: 1 1 380px; max-width: 600px; --clay: url("assets/img/textures/carved-dusk.webp"); --c: clamp(80px, 8vw, 120px); }
.contact-card__inner { display: flex; flex-direction: column; gap: 20px; color: var(--gold); padding: 40px clamp(20px, 3vw, 42px); }
.contact-card .kicker { color: var(--lime); }
.contact-card .section-title { color: var(--rose); text-shadow: 4px 4px 0 var(--plum); font-size: clamp(48px, 6vw, 92px); }
.contact-card p { margin: 0; font-size: 17px; line-height: 1.6; }
/* contact directory: ruled rows, label left, address right */
.directory { margin: 6px 0 0; border-top: 2px solid var(--gold); }
.directory > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 18px; padding: 12px 2px; border-bottom: 1px solid rgba(255, 208, 107, .45); }
.directory dt { font-family: var(--f-meta); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.directory dd { margin: 0; font-family: var(--f-t3); font-size: 20px; }
.directory a { color: var(--gold); text-decoration: none; background: linear-gradient(var(--rose), var(--rose)) left bottom / 0 2px no-repeat; transition: background-size .3s; }
.directory a:hover, .directory a:focus-visible { color: var(--gold); background-size: 100% 2px; }
.colophon { position: relative; z-index: 5; max-width: 1320px; margin: 80px auto 0; font-family: var(--f-meta); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.colophon span { background: var(--gold); padding: 5px 10px; }

/* =========================================================
   COMMISSION — the request form, set into the Conches section
   ========================================================= */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.commission {
  position: relative; z-index: 5; width: min(860px, 100%); margin: 80px auto 0; color: var(--ink);
  background: radial-gradient(circle, rgba(148, 44, 91, .1) 30%, transparent 33%) 0 0 / 9px 9px, linear-gradient(170deg, var(--gold), var(--gold) 70%, var(--rose) 140%);
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 12px var(--abyss), 0 0 0 15px var(--plum), 14px 18px 0 15px var(--ink);
}
.commission__form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; padding: clamp(22px, 4vw, 44px); }
.commission__form > .kicker, .commission__title, .commission__note, .commission__form > .field:nth-of-type(n+3), .commission__actions { grid-column: 1 / -1; }
@media (max-width: 640px) { .commission__form { grid-template-columns: 1fr; } }
.commission .kicker { color: var(--plum); }
.commission__title { margin: 0; font-family: var(--f-t4); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1; color: var(--ink); text-shadow: 3px 3px 0 var(--rose); }
.commission__note { margin: 0; font-size: 15px; }
.commission b { color: var(--plum); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-family: var(--f-meta); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(255, 255, 255, .55); border: 0; box-shadow: inset 0 0 0 2px var(--ink), 3px 3px 0 var(--plum);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 3px dashed var(--leaf); outline-offset: 3px; }
.field input[type=file] { padding: 10px; background: rgba(135, 230, 39, .25); }
.field__hint { font-size: 13px; color: var(--plum); }
.commission__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.commission__send, .commission__cancel {
  padding: 12px 22px; cursor: pointer; font-family: var(--f-meta); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; border: 0;
}
.commission__send { color: var(--gold); background: var(--abyss); box-shadow: 4px 4px 0 var(--plum); }
.commission__send:hover { background: var(--plum); }
.commission__cancel { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); margin: 0; max-width: calc(100vw - 32px);
  padding: 14px 22px; font-family: var(--f-meta); font-size: 14px; letter-spacing: .06em; color: var(--ink);
  background: var(--lime); box-shadow: 0 0 0 2px var(--ink), 5px 5px 0 var(--plum);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .ovilats { justify-content: center; }
  .nav-list { justify-content: center; }
}
@media (max-width: 760px) {
  /* keep the sticky masthead short: one swipeable row of buttons */
  .ovilats { padding: 10px 0 12px; }
  .ovilats nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .ovilats nav::-webkit-scrollbar { display: none; }
  .nav-list { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 4px 16px 6px; }
  .poem { grid-template-columns: 1fr; }
  .viewing { padding-left: 0; padding-right: 0; }
  .viewing__head { padding: 0 16px; }
  .viewer__arrow { width: 56px; height: 36px; }
  .viewer__stage { gap: 4px; }
  .poem__bottle { width: 120px; }
  .frame::before { background-size: auto, 170px; }
  :root { --corner: clamp(120px, 38vw, 200px); }
  .nav-btn { --size: 52px; }
  .nav-btn > span { font-size: 11px; padding: 2px 8px; }
  .home { min-height: 0; padding-bottom: 140px; }
  .spark--4 { display: none; }
  .home__tape { top: auto; bottom: 40px; }
  .seal { width: 104px; height: 104px; font-size: 11px; top: 18px; }
  .seal b { font-size: 22px; }
  .tile:nth-child(3n+2) { margin-top: 0; }
  .conches__street { width: 100%; height: 50%; -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
  .tapestry { --cell: 28px; }
  .epigraph { padding-left: 12px; padding-right: 12px; }
  .epigraph__card { padding: 26px 20px; }
  .tapestry > .epigraph__card { box-shadow: 0 0 0 3px var(--ink), 0 0 0 8px var(--rose), 0 0 0 11px var(--ink); }
  .title { font-size: 9.9vw; }
  .home__stage { padding: 36px 18px 40px; }
  .home__inner { margin-top: 90px; }
}

/* Visitors who ask for less motion get a still page. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon, .ribbon__track, .tape span, .home__frame, .bottle__glass, .tile--spacer img, .poem__bottle img, .carousel__slide { animation: none !important; }
  .arrow-btn { transition: none; }
  .art-ghost, .art-frame .frame__inner, .viewer.is-ready .art-piece { transition: opacity .3s ease !important; }
  .js .tile, .js .gallery__title { opacity: 1; transform: none; clip-path: none; transition: none; }
  .nav-btn, .flicker-toggle { transition: none; }
}
