/* Grandeur Excellence — an immersive digital treatise on the brand field #2c3c3b.
   Ivory type, gold accents, hairline rules. Fonts self-hosted (SIL OFL). */

@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("/fonts/cinzel-decorative-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --bg: #2c3c3b;            /* brand primary — the whole site */
  --bg-deep: #1b2625;       /* the Central Principle's deeper field */
  --ivory: #f2ead9;         /* body text: 9.6:1 on --bg */
  --ivory-soft: #cdc4b1;    /* secondary text: 6.6:1 on --bg */
  --gold: #dcbb7c;          /* accent text: 6.3:1 on --bg */
  --gold-bright: #ecd29c;
  --gold-rule: rgba(220, 187, 124, 0.5);
  --gold-faint: rgba(220, 187, 124, 0.22);
  --line: rgba(242, 234, 217, 0.13);
  --focus: #ecd29c;

  --font-mark: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-brand: "Cinzel Decorative", "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-display: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --font-text: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1.125rem, 1.04rem + 0.38vw, 1.3rem);
  --step-1: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --step-4: clamp(2.4rem, 1.4rem + 4.4vw, 5.25rem);

  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space: clamp(5rem, 11vw, 10rem);
  --hair: 1px solid var(--gold-rule);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; background: var(--bg); touch-action: manipulation; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.68;
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: rgba(220, 187, 124, 0.35); color: #fff; }

img, svg { display: block; max-width: 100%; }
/* Author display rules (img, svg, and any later `display`) beat the UA [hidden] stylesheet.
   Without this, a hidden atelier photograph stays in the grid and stacks above the next one. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: var(--gold-rule); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--gold-bright); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
p { margin: 0 0 1.15em; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.15; text-wrap: balance; }
main, .masthead, .colophon { position: relative; z-index: 2; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 400; background: var(--ivory); color: var(--bg); padding: 0.7rem 1.1rem 0.6rem; font-family: var(--font-mark); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; transform: translateY(-200%); transition: transform .45s var(--ease-out); border-bottom: 2px solid var(--gold); }
.skip-link:focus { transform: none; color: var(--bg); }

.measure { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.wide { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; margin-inline: auto; }

/* ---------- atmosphere ---------- */
.atmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.atmos.is-on { opacity: 1; }
.mist { position: fixed; inset: -20%; z-index: 0; pointer-events: none; opacity: 0;
  background:
    radial-gradient(40% 35% at 30% 30%, rgba(76, 104, 101, 0.2), transparent 70%),
    radial-gradient(35% 30% at 75% 70%, rgba(220, 187, 124, 0.06), transparent 70%);
}
.motion .mist { opacity: 1; animation: mist-drift 48s ease-in-out infinite alternate; }
@keyframes mist-drift { to { transform: translate3d(6%, -4%, 0) scale(1.08); } }

/* ---------- small type ---------- */
.kicker { font-family: var(--font-mark); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.25rem; line-height: 1.6; }
.kicker--gold { color: var(--gold); }

/* ---------- rules & ornament ---------- */
.rule { display: block; border-top: var(--hair); margin: 2rem auto; width: 100%; }
.rule--short { width: 4.5rem; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: 2.25rem auto; width: min(14rem, 60%); }
.ornament i { flex: 1; border-top: var(--hair); transform-origin: var(--o, right) center; }
.ornament i:last-child { --o: left; }
.ornament span { width: 0.46rem; height: 0.46rem; transform: rotate(45deg); border: 1px solid var(--gold); flex: none; }

/* ---------- split text ---------- */
.w { display: inline-block; white-space: pre; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wm > .w { will-change: transform; }
.c { display: inline-block; white-space: pre; }

/* ---------- links styled as calls ---------- */
.link-cta, .link-quiet {
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mark); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; line-height: 1.3;
  -webkit-tap-highlight-color: transparent; overflow: hidden; isolation: isolate;
}
.link-cta > span, .link-quiet > span { position: relative; z-index: 1; display: inline-block; }
.link-cta { color: var(--ivory); border: 1px solid var(--gold-rule); padding: 1rem 1.7rem 0.9rem; transition: color .45s var(--ease-out), border-color .45s; }
.link-cta::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease-out); z-index: 0; }
.link-cta:hover, .link-cta:focus-visible { color: var(--bg); border-color: var(--gold); }
.link-cta:hover::before, .link-cta:focus-visible::before { transform: scaleY(1); }
.link-quiet { color: var(--gold); padding: 0.85rem 0.2rem 0.6rem; background: none; border: 0; cursor: pointer; }
.link-quiet::after { content: "\2192"; letter-spacing: 0; transition: transform .45s var(--ease-out); position: relative; z-index: 1; }
.link-quiet > span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.3em; border-top: 1px solid var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-out); }
.link-quiet:hover > span::after, .link-quiet:focus-visible > span::after { transform: scaleX(1); transform-origin: left; }
.link-quiet:hover::after { transform: translateX(0.3em); }
.link-quiet:hover { color: var(--gold-bright); }
.link-cta:active, .link-quiet:active, .masthead__nav a:active, .vdialog__step:active, .vdialog__back:active { transform: scale(0.96); }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: radial-gradient(circle, rgba(236, 210, 156, .55), rgba(236, 210, 156, 0) 70%); z-index: 0; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 50; transition: background-color .5s ease, border-color .5s ease, transform .6s var(--ease-out); border-bottom: 1px solid transparent; }
.masthead.is-scrolled { background: rgba(44, 60, 59, 0.82); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); border-bottom-color: var(--line); }
.masthead.is-hidden { transform: translateY(-100%); }
.masthead__inner { max-width: 82rem; margin: 0 auto; padding: 0.8rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.9rem; text-decoration: none; view-transition-name: brand; }
.brand__logo { width: auto; height: 2.6rem; }
.brand__name { font-family: var(--font-brand); font-weight: 400; font-size: 0.86rem; letter-spacing: 0; font-kerning: normal; text-transform: uppercase; white-space: nowrap; }
.masthead__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.9rem; }
.masthead__nav a { position: relative; display: inline-block; font-family: var(--font-mark); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--ivory-soft); padding: 0.55rem 0; transition: color .35s; }
.masthead__nav a span { display: inline-block; }
.masthead__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; border-top: 1px solid var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-out); }
.masthead__nav a:hover, .masthead__nav a[aria-current="page"] { color: var(--ivory); }
.masthead__nav a:hover::after, .masthead__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 46rem) {
  .masthead__inner { justify-content: center; text-align: center; padding-block: 0.7rem; }
  .masthead__inner { row-gap: 0.15rem; }
  .brand { flex-basis: 100%; justify-content: center; padding-top: 0.15rem; }
  .brand__name { font-size: 1rem; }
  .masthead__nav ul { justify-content: center; gap: 0.1rem 1.1rem; }
  .masthead__nav a { font-size: 0.66rem; letter-spacing: 0.13em; }
}

/* ---------- opening (first visit, home) ---------- */
.intro { display: none; }
.intro-play .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; background: var(--bg); }
.intro__stage { display: grid; justify-items: center; gap: 1.6rem; width: min(70vw, 26rem); }
.intro__mark { position: relative; width: 100%; aspect-ratio: 2937 / 2341; }
.intro__outline, .intro__logo { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__outline path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.intro__logo { opacity: 0; }
.intro__line { display: block; width: 7rem; border-top: 1px solid var(--gold); transform: scaleX(0); }
.intro__name { font-family: var(--font-brand); font-size: clamp(0.85rem, 2.4vw, 1.05rem); letter-spacing: 0; font-kerning: normal; text-transform: uppercase; white-space: nowrap; color: var(--ivory); }
.intro__name .c { opacity: 0; }
.intro__skip { position: absolute; right: 1.25rem; bottom: 1.25rem; background: none; border: 1px solid var(--line); color: var(--ivory-soft); font-family: var(--font-mark); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.6rem 1rem 0.5rem; cursor: pointer; }
.intro__skip:hover { color: var(--ivory); border-color: var(--gold); }

/* ---------- home: hero ---------- */
.hero { min-height: max(36rem, calc(100svh - 4.5rem)); display: grid; place-items: center; text-align: center; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(5rem, 9vw, 7rem); position: relative; perspective: 1200px; }
.hero__frame { position: absolute; inset: clamp(0.75rem, 2.5vw, 2rem); pointer-events: none; }
.hero__frame i { position: absolute; background: var(--gold-faint); }
.hero__frame i:nth-child(1) { top: 0; left: 0; right: 0; height: 1px; transform-origin: left; }
.hero__frame i:nth-child(2) { bottom: 0; left: 0; right: 0; height: 1px; transform-origin: right; }
.hero__frame i:nth-child(3) { top: 0; bottom: 0; left: 0; width: 1px; transform-origin: bottom; }
.hero__frame i:nth-child(4) { top: 0; bottom: 0; right: 0; width: 1px; transform-origin: top; }
.hero__inner { max-width: 60rem; position: relative; }
.hero__logo-wrap { width: clamp(11rem, 30vw, 21rem); margin: 0 auto 2.2rem; will-change: transform; }
.hero__logo { width: 100%; height: auto; filter: drop-shadow(0 0 40px rgba(220, 187, 124, 0.08)); }
.hero__mark { font-family: var(--font-brand); font-weight: 400; font-size: clamp(1.25rem, 0.8rem + 2.1vw, 2.4rem); letter-spacing: 0; font-kerning: normal; text-transform: uppercase; white-space: nowrap; line-height: 1.2; }
.hero__tagline { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--gold); margin: 1rem 0 0; }
.hero__subtitle { font-family: var(--font-mark); font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-soft); max-width: 34rem; margin: 0 auto 2.5rem; line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; align-items: center; margin: 0; }
.hero__scroll { position: absolute; left: 50%; bottom: clamp(1.6rem, 4vw, 3rem); width: 1px; height: 3.2rem; transform: translateX(-50%); background: var(--line); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--gold); }
.motion .hero__scroll span { animation: scroll-cue 2.6s var(--ease-out) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-110%); } 70%, 100% { transform: translateY(260%); } }
.hero__scroll::before { content: ""; position: absolute; inset: -1rem -1.2rem; }

/* ---------- home: founding ---------- */
.founding { padding: var(--space) 0; }
.founding__lead { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.38; }
/* the ten virtues artwork, above Chapter I */
.virtue-art { margin: 0 auto clamp(3rem, 7vw, 5.5rem); padding: 0 var(--gutter); max-width: 30rem; text-align: center; }
.virtue-art picture { display: block; }
.virtue-art__img { display: block; width: 100%; height: auto; margin: 0 auto; }
.virtue-art::after { content: ""; display: block; width: 4.5rem; height: 1px; margin: clamp(2rem, 5vw, 3rem) auto 0; background: linear-gradient(90deg, transparent, var(--gold-rule), transparent); }
@media (max-width: 46rem) { .virtue-art { max-width: 21rem; } }

/* ---------- about ---------- */
.about__mark { margin: 2.2rem auto 0; }
.about__float { display: block; width: clamp(5.5rem, 14vw, 8rem); margin: 0 auto; --float-lift: 4px; --float-drop: 12px; --float-blur: 8px; --float-delay: -0.8s; }
.about__logo { display: block; width: 100%; height: auto; }
.about__story { padding-bottom: var(--space); }
.about__story .chapter { margin-top: clamp(1.5rem, 4vw, 3rem); }
.about__story .ornament { margin-block: clamp(2.5rem, 6vw, 4.5rem); }
.about__quote { margin: 2.6rem 0; padding: 1.6rem 0; text-align: center; border-top: 1px solid var(--gold-rule); border-bottom: 1px solid var(--gold-rule); }
.about__quote blockquote { margin: 0; }
.about__quote p { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); line-height: 1.3; color: var(--ivory); margin: 0; hyphens: manual; -webkit-hyphens: manual; }
.about__quote figcaption { margin-top: 0.9rem; font-family: var(--font-mark); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.about__virtues { margin: 2.4rem 0 0.5rem; }
.about__actions { margin-top: 2.6rem; justify-content: center; }

/* ---------- about: the journey ---------- */
.soulpath { position: sticky; top: 0; z-index: 40; margin: clamp(1rem, 4vw, 3rem) 0 0; padding: 0.7rem var(--gutter, 1.25rem) 0.6rem; background: rgba(36, 50, 49, 0.9); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: top .6s var(--ease-out); }
body:has(.masthead:not(.is-hidden)) .soulpath { top: var(--mast-h, 0px); }
.soulpath__track { position: absolute; left: 50%; width: min(60rem, calc(100% - 2 * var(--gutter, 1.25rem)) - 2rem); margin-left: calc(min(60rem, calc(100% - 2 * var(--gutter, 1.25rem)) - 2rem) / -2); top: calc(0.7rem + 5px); height: 1px; background: var(--line); }
.soulpath__fill { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--gold-rule), var(--gold-bright)); box-shadow: 0 0 8px rgba(236, 210, 156, .6); }
.soulpath__list { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 64rem; display: flex; justify-content: space-between; }
.soulpath__list li { flex: 1 1 0; display: flex; justify-content: center; min-width: 0; }
.soulpath__stop { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; color: var(--ivory-soft, #cfc6b4); text-decoration: none; min-width: 2.75rem; padding-bottom: 0.1rem; }
.soulpath__dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--gold-rule); background: #24302f; transition: background-color .5s, box-shadow .5s, border-color .5s; }
.soulpath__label { font-family: var(--font-mark); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; opacity: .7; transition: opacity .4s, color .4s; }
.soulpath__stop.is-lit .soulpath__dot { background: var(--gold); border-color: var(--gold-bright); box-shadow: 0 0 10px rgba(236, 210, 156, .7); }
.soulpath__stop[aria-current] .soulpath__label { color: var(--gold-bright); opacity: 1; }
.soulpath__stop:hover .soulpath__label, .soulpath__stop:focus-visible .soulpath__label { opacity: 1; }
@media (max-width: 63.99rem) {
  .soulpath__stop:not([aria-current]) .soulpath__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .soulpath__stop[aria-current] .soulpath__label { font-size: 0.56rem; }
  .soulpath__list li:has([aria-current]) { flex-grow: 2.4; }
}
.about__story .chapter.is-lit .chapter__num { color: var(--gold-bright); text-shadow: 0 0 14px rgba(236, 210, 156, .45); transition: color .8s, text-shadow .8s; }
.about-fx__cap { display: block; font-family: var(--font-display); font-style: italic; color: var(--ivory-soft, #cfc6b4); font-size: 1rem; text-align: center; margin: 0.6rem 0 0; }

.about-road { margin: 2.6rem 0 0.5rem; }
.about-road__canvas { display: block; width: 100%; height: clamp(5.5rem, 16vw, 8.5rem); }

.about-evolve { margin: 2.4rem 0; }
.about-evolve__stage { position: relative; border: 1px solid var(--gold-rule); background: radial-gradient(ellipse at 50% 55%, rgba(220, 187, 124, calc(var(--e, 0) * 0.16)), rgba(16, 24, 23, 0.55) 70%); box-shadow: inset 0 0 60px rgba(0, 0, 0, .45); touch-action: pan-y; }
.about-evolve__canvas { display: block; width: 100%; aspect-ratio: 16 / 8; }
.about-evolve__meter { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem; border-top: 1px solid var(--line); font-family: var(--font-mark); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-soft, #cfc6b4); }
.about-evolve__meter i { flex: 1; height: 2px; background: var(--line); }
.about-evolve__meter b { display: block; height: 100%; width: calc(var(--e, 0) * 100%); background: linear-gradient(90deg, var(--gold-rule), var(--gold-bright)); box-shadow: 0 0 8px rgba(236, 210, 156, .6); }
.about-evolve__meter span:last-child { color: rgb(calc(207 + 29 * var(--e, 0)) calc(198 + 12 * var(--e, 0)) calc(180 - 24 * var(--e, 0))); }
.about-evolve__ctl { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; margin-top: 1.4rem; }
.about-evolve__btn { font-family: var(--font-mark); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; background: transparent; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; min-height: 3rem; }
.about-evolve__btn:active { border-color: var(--gold-bright); color: var(--gold-bright); }
.about-evolve.is-evolved .about-evolve__btn { border-color: var(--gold-bright); color: var(--gold-bright); box-shadow: 0 0 22px rgba(236, 210, 156, .25); }
@media (max-width: 30rem) { .about-evolve__canvas { aspect-ratio: 4 / 3; } }
@media (max-height: 32rem) and (orientation: landscape) { .about-evolve__canvas { aspect-ratio: auto; height: 46vh; } .about-evolve__ctl { margin-top: 0.8rem; } .about-align__one { font-size: clamp(3rem, 18vh, 5rem); } }

.about-align { margin: 2.6rem 0 2.2rem; text-align: center; }
.about-align__ones { display: flex; justify-content: center; gap: clamp(0.6rem, 4vw, 2rem); margin: 1.2rem 0 0.4rem; }
.about-align__one { --i: 0; --x: 0; --y: 0; --r: 0deg; background: none; border: 0; padding: 0.2rem 0.6rem; cursor: pointer; color: rgba(242, 234, 217, .42); font-family: var(--font-mark); font-weight: 400; font-size: clamp(4rem, 14vw, 7.5rem); line-height: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform 1s var(--ease-out), color .8s, text-shadow .8s; -webkit-tap-highlight-color: transparent; min-width: 3rem; }
.about-align__one:nth-child(2) { --i: 1; } .about-align__one:nth-child(3) { --i: 2; }
.about-align.is-armed .about-align__one:nth-child(1) { --x: -0.4rem; --y: 1.6rem; --r: -14deg; }
.about-align.is-armed .about-align__one:nth-child(2) { --x: 0rem; --y: -1.4rem; --r: 9deg; }
.about-align.is-armed .about-align__one:nth-child(3) { --x: 0.5rem; --y: 0.9rem; --r: 22deg; }
.about-align.is-armed .about-align__one[aria-pressed="true"]:nth-child(n), .about-align .about-align__one[aria-pressed="true"] { --x: 0; --y: 0; --r: 0deg; color: var(--gold-bright); text-shadow: 0 0 24px rgba(236, 210, 156, .55); }
.about-align__one:hover { color: rgba(242, 234, 217, .75); }
.about-align__one:focus-visible { outline: 1px solid var(--gold-bright); outline-offset: 4px; }
.about-align__digit { display: block; }
.about-align__meanings { list-style: none; padding: 0; margin: 1rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 40rem; }
.about-align__meanings li { padding-top: 0.8rem; border-top: 1px solid var(--gold-rule); transition: opacity .8s; }
.about-align.is-armed .about-align__meanings li:not(.is-shown) { opacity: .22; }
.about-align__word { display: block; font-family: var(--font-mark); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.3rem; }
.about-align__def { display: block; font-family: var(--font-display); font-style: italic; font-size: 1rem; line-height: 1.45; color: var(--ivory-soft, #cfc6b4); }
.about-align__done { min-height: 1.6em; margin: 1.4rem 0 0; font-family: var(--font-mark); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold-bright); }
.about-align.is-aligned .about-align__ones { background: radial-gradient(ellipse at 50% 60%, rgba(220, 187, 124, .14), transparent 65%); }
@media (max-width: 34rem) { .about-align__meanings { grid-template-columns: 1fr; text-align: center; max-width: 22rem; } }

.about-pick__hint { margin-top: 2rem; }
.about__virtues a.is-picked { color: var(--bg, #2c3c3b); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.about__virtues a.is-picked .virtue-names__num, .about__virtues a.is-picked .virtue-names__name { color: #1e2a29; }
.about-pick { margin: 2rem 0 0.5rem; padding: 1.8rem 1.2rem 1.4rem; text-align: center; border: 1px solid var(--gold-rule); background: radial-gradient(ellipse at 50% 0%, rgba(220, 187, 124, .12), rgba(16, 24, 23, .35) 70%); outline: none; }
.about-pick__name { margin: 0.3rem 0 0.6rem; font-family: var(--font-display); font-weight: 500; font-size: var(--step-3, 2.4rem); color: var(--gold-bright); letter-spacing: 0.04em; }
.about-pick__maxim { font-style: italic; font-size: var(--step-1, 1.3rem); margin: 0 auto 1rem; max-width: 32rem; }
.about-pick__scene { margin: 0 auto; max-width: 32rem; color: var(--ivory-soft, #cfc6b4); }
.about-pick__label { display: block; font-family: var(--font-mark); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.about-pick__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.6rem; margin: 1.6rem 0 0; }

.about-photo { margin: 2.6rem auto; max-width: 40rem; }
.about-photo__frame { position: relative; padding: 6px; border: 1px solid var(--gold-rule); background: rgba(16, 24, 23, .4); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.about-photo__frame::after { content: ""; position: absolute; inset: 6px; pointer-events: none; background: radial-gradient(ellipse at 40% 45%, transparent 55%, rgba(30, 42, 41, .55) 100%); box-shadow: inset 0 0 40px rgba(20, 30, 29, .55); }
.about-photo picture, .about-photo__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.about-photo__cap { margin-top: 0.9rem; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ivory-soft, #cfc6b4); }
.about-photo--basketball .about-photo__frame { width: fit-content; max-width: 100%; margin-inline: auto; }
.about-photo--basketball .about-photo__img { width: auto; max-width: 100%; max-height: min(72vh, 42rem); aspect-ratio: auto; object-fit: contain; }

@media (prefers-reduced-motion: no-preference) {
  .about-pick.is-in { animation: ge-pick-in .9s var(--ease-out) both; }
  @keyframes ge-pick-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
  .about-align.is-armed:not(.is-aligned) .about-align__one:not([aria-pressed="true"]) { animation: ge-one-drift 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.4s); }
  @keyframes ge-one-drift { to { transform: translate(calc(var(--x) * -0.6), calc(var(--y) * 0.7)) rotate(calc(var(--r) * 0.6)); } }
}
@media (prefers-reduced-motion: reduce) {
  .soulpath, .soulpath__dot, .about-align__one, .about-align__meanings li { transition: none; }
}

/* ---------- levitation (virtue art, logos, wordmark) ----------
   .float is a static frame; only its inner spans move. float__body drifts up a
   few pixels and back over about 6.5s, while float__shadow (a soft, darker copy
   left on the page) shrinks and fades a touch in step, as if the piece were
   rising away from its own shadow. Reduced motion: the lifted shadow, no drift. */
.float { position: relative; display: inline-block; isolation: isolate; vertical-align: top;
  --float-lift: 5px; --float-drop: 12px; --float-blur: 9px; --float-o: 0.5; --float-t: 6.5s; --float-delay: 0s; }
.float__body { position: relative; display: block; }
.float__shadow { position: absolute; inset: 0; z-index: -1; pointer-events: none; user-select: none; opacity: var(--float-o); transform: translate3d(0, var(--float-drop), 0); transform-origin: 50% 60%; }
.float__shadow img { display: block; width: 100%; height: auto; }
.float__copy { filter: brightness(0) blur(var(--float-blur)); }
.float--text .float__shadow { color: transparent; white-space: nowrap; text-shadow: 0 0 var(--float-blur) rgba(6, 12, 11, 0.95); }
.float--text { --float-lift: 2px; --float-drop: 4px; --float-blur: 3px; --float-o: 0.85; --float-delay: -2.2s; }
.virtue-art__stage { display: block; --float-lift: 6px; --float-drop: 16px; --float-o: 0.75; --float-t: 7s; --float-delay: -3.4s; }
.hero__float { display: block; --float-lift: 7px; --float-drop: 22px; --float-blur: 14px; --float-o: 0.45; }
.colophon__float { display: block; width: 6.5rem; margin: 0 auto 1.4rem; --float-lift: 3px; --float-drop: 8px; --float-blur: 6px; --float-delay: -1.3s; }
@keyframes ge-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, calc(var(--float-lift) * -1), 0); } }
@keyframes ge-float-shadow {
  0%, 100% { transform: translate3d(0, var(--float-drop), 0) scale(1); opacity: var(--float-o); }
  50% { transform: translate3d(0, var(--float-drop), 0) scale(0.965); opacity: calc(var(--float-o) * 0.62); }
}
@media (prefers-reduced-motion: no-preference) {
  .float__body { animation: ge-float var(--float-t) ease-in-out var(--float-delay) infinite; }
  .float__shadow { animation: ge-float-shadow var(--float-t) ease-in-out var(--float-delay) infinite; }
}
@media (max-width: 46rem) {
  .virtue-art__stage { --float-lift: 4px; --float-drop: 11px; }
  .hero__float { --float-lift: 5px; --float-drop: 15px; --float-blur: 10px; }
}
.founding__follow { font-size: var(--step-1); color: var(--ivory-soft); font-style: italic; }

/* ---------- section heads ---------- */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-family: var(--font-display); font-size: var(--step-3); }

/* ---------- home: contents ---------- */
.contents { padding: var(--space) 0; position: relative; }
.contents__list { list-style: none; margin: 0 auto; padding: 0; max-width: 60rem; columns: 2 22rem; column-gap: 4rem; }
.contents__list li { break-inside: avoid; }
.contents__list a { position: relative; display: grid; grid-template-columns: 3.25rem 1fr auto; align-items: baseline; padding: 1.05rem 0 1.1rem; text-decoration: none; }
.contents__rule { position: absolute; left: 0; right: 0; top: 0; border-top: 1px solid var(--line); }
.contents__rule::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; border-top: 1px solid var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.contents__num { font-family: var(--font-mark); font-size: 0.85rem; letter-spacing: 0.08em; color: var(--gold); transition: transform .5s var(--ease-out), color .4s; display: inline-block; }
.contents__title { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; transition: transform .6s var(--ease-out), color .4s; }
.contents__arrow { color: var(--gold); opacity: 0; transform: translateX(-0.6rem); transition: opacity .4s, transform .5s var(--ease-out); padding-left: .6rem; }
.contents__list a:hover .contents__rule::after, .contents__list a:focus-visible .contents__rule::after { transform: scaleX(1); }
.contents__list a:hover .contents__title, .contents__list a:focus-visible .contents__title { transform: translateX(0.5rem); color: var(--gold-bright); }
.contents__list a:hover .contents__num { transform: scale(1.15); color: var(--gold-bright); }
.contents__list a:hover .contents__arrow, .contents__list a:focus-visible .contents__arrow { opacity: 1; transform: none; }
.glimpse { position: fixed; left: 0; top: 0; z-index: 60; width: min(22rem, 40vw); pointer-events: none; opacity: 0; visibility: hidden; }
.glimpse__text { margin: 0; padding: 1.1rem 1.25rem 1rem; background: rgba(27, 38, 37, 0.94); border: 1px solid var(--gold-rule); font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.45; color: var(--ivory); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
@media (hover: none), (max-width: 60rem) { .glimpse { display: none; } }

/* ---------- home: virtue grid ---------- */
.virtue-names { padding: var(--space) 0; }
.virtue-names__list { list-style: none; padding: 0; margin: 3rem auto; max-width: 64rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; perspective: 1000px; }
@media (min-width: 40rem) { .virtue-names__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60rem) { .virtue-names__list { grid-template-columns: repeat(5, 1fr); } }
.virtue-names__list li { position: relative; transform-style: preserve-3d; }
.virtue-names__list a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; min-height: 9rem; padding: 1.6rem 0.75rem 1.5rem; text-decoration: none; text-align: center; border: 1px solid var(--line); margin: -0.5px; overflow: hidden; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)); transition: transform .5s var(--ease-out), border-color .4s, background-color .4s; -webkit-tap-highlight-color: transparent; }
.virtue-names__list a:hover, .virtue-names__list a:focus-visible { border-color: var(--gold-rule); background: rgba(27, 38, 37, 0.45); color: var(--ivory); --tz: 18px; z-index: 2; }
.virtue-names__list a:active { --tz: 4px; }
.virtue-names__num { font-family: var(--font-mark); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--gold); }
.virtue-names__name { font-family: var(--font-mark); font-size: clamp(0.82rem, 0.7rem + 0.4vw, 1rem); letter-spacing: 0.16em; text-transform: uppercase; }
.virtue-names__list a.is-visited .virtue-names__num::after { content: " \2726"; color: var(--gold); }
.virtue__sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(236, 210, 156, 0.13), transparent 60%); }
[data-tilt]:hover .virtue__sheen, .virtue-names__list a:hover .virtue__sheen { opacity: 1; }

/* ---------- home: independent ---------- */
.independent { padding: 0 0 var(--space); text-align: center; }
.independent__text { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.52; }

/* ---------- central principle (an arrival) ---------- */
.principle { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 22%, var(--bg-deep) 78%, var(--bg) 100%); color: var(--ivory); padding: calc(var(--space) * 1.25) var(--gutter); text-align: center; min-height: 100svh; display: grid; place-items: center; }
.principle__glow { position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; transform: translate(-50%, -50%) scale(var(--glow, 1)); background: radial-gradient(closest-side, rgba(220, 187, 124, 0.16), rgba(220, 187, 124, 0.05) 45%, transparent 70%); pointer-events: none; opacity: var(--glow-o, 1); }
.principle__inner { position: relative; max-width: 48rem; margin: 0 auto; }
.principle .ornament i { border-color: var(--gold-rule); }
.principle__lead { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.25; color: var(--gold-bright); }
.principle__text { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.55; color: var(--ivory); max-width: 40rem; margin-inline: auto; }
.principle__close { font-family: var(--font-mark); font-size: var(--step--1); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 2.75rem 0 0; }

/* ---------- title pages ---------- */
.title-page, .notfound { text-align: center; padding: calc(var(--space) * 0.8) var(--gutter) calc(var(--space) * 0.55); }
.title-page__title { font-family: var(--font-display); font-size: var(--step-4); line-height: 1.05; }
.title-page__title--name { font-family: var(--font-brand); font-weight: 400; letter-spacing: 0; font-kerning: normal; text-transform: uppercase; white-space: nowrap; line-height: 1.25; font-size: clamp(1.2rem, 6.6vw, 5.25rem); }
.title-page__subtitle { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--ivory-soft); max-width: 36rem; margin: 1.25rem auto 0; }
.title-page__meta { font-family: var(--font-mark); font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0; }
.title-page__print { margin: 1.5rem 0 0; }
.notfound { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.notfound .title-page__title { font-size: var(--step-3); margin-bottom: 1rem; }
.notfound__text { color: var(--ivory-soft); font-style: italic; margin-bottom: 2.5rem; }

/* ---------- treatise ---------- */
.treatise-layout { max-width: 82rem; margin: 0 auto; padding: 0 var(--gutter) var(--space); display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.toc { border-block: 1px solid var(--line); padding: 1.75rem 0 1.25rem; }
.toc__title { font-family: var(--font-mark); font-size: var(--step--1); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1rem; }
.toc ol, .toc-sheet ol { list-style: none; margin: 0; padding: 0; position: relative; }
.toc a, .toc-sheet a { position: relative; display: grid; grid-template-columns: 2.4rem 1fr; padding: 0.42rem 0; text-decoration: none; font-size: 0.98rem; line-height: 1.35; color: var(--ivory-soft); transition: color .35s; }
.toc__label { transition: transform .5s var(--ease-out); display: inline-block; }
.toc a:hover, .toc-sheet a:hover { color: var(--ivory); }
.toc a:hover .toc__label { transform: translateX(0.3rem); }
.toc a[aria-current="true"] { color: var(--ivory); }
.toc a[aria-current="true"] .toc__num { color: var(--gold-bright); }
.toc__num { font-family: var(--font-mark); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--gold); padding-top: 0.22em; }
.toc__rail, .toc__indicator { display: none; }

@media (min-width: 64rem) {
  .treatise-layout { grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
  .toc { border: 0; padding: 0; }
  .toc__inner { position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow-y: auto; padding: 0.25rem 0 1rem 1.25rem; scrollbar-width: thin; }
  .toc__rail { display: block; position: absolute; left: 0; top: 0.25rem; bottom: 1rem; width: 1px; background: var(--line); }
  .toc__rail span { position: absolute; inset: 0; background: linear-gradient(var(--gold), var(--gold-rule)); transform-origin: top; transform: scaleY(0); }
  .toc__indicator { display: block; position: absolute; left: -1px; top: 0; width: 3px; height: 1.6rem; background: var(--gold-bright); box-shadow: 0 0 12px rgba(236, 210, 156, 0.7); transform: translateY(var(--ind-y, -100px)); height: var(--ind-h, 1.6rem); transition: transform .6s var(--ease-out), height .6s var(--ease-out); border-radius: 2px; }
}

.treatise { max-width: var(--measure); min-width: 0; }
.chapter { position: relative; padding-top: 1.5rem; }
.chapter__fold { position: absolute; left: 0; right: 0; top: 0; border-top: 1px solid var(--gold-rule); transform-origin: left; }
.chapter__head { margin-bottom: 2.25rem; transform-origin: 50% 0; }
.chapter__num { font-family: var(--font-mark); font-size: 1.05rem; letter-spacing: 0.26em; color: var(--gold); margin: 0 0 0.6rem; }
.chapter__title { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; }
.chapter__head::after { content: ""; display: block; width: 3rem; border-top: var(--hair); margin-top: 1.5rem; transform-origin: left; transform: scaleX(var(--rule, 1)); }

.prose p { hyphens: auto; -webkit-hyphens: auto; hanging-punctuation: first; }
.prose .opening { display: flow-root; }
.dropcap { float: left; font-family: var(--font-display); font-weight: 500; font-size: 3.6em; line-height: 0.8; padding: 0.07em 0.1em 0 0; color: var(--gold); }
.prose .opening::first-line { font-variant-caps: small-caps; letter-spacing: 0.04em; }
.prose strong { color: var(--ivory); }

.list { list-style: none; margin: 0 0 1.4em; padding: 0; }
.list li { position: relative; padding: 0.5rem 0 0.5rem 1.75rem; border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list li::before { content: ""; position: absolute; left: 0.2rem; top: 1.18em; width: 0.34rem; height: 0.34rem; border: 1px solid var(--gold); transform: rotate(45deg); }
.list--dimensions strong { font-weight: 500; font-variant-caps: small-caps; letter-spacing: 0.03em; font-size: 1.04em; color: var(--gold-bright); }

.aside-link { margin: 1.5rem 0 0; }
.to-top { margin: 2.5rem 0 0; text-align: right; }
.to-top a { font-family: var(--font-mark); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--gold); }
.to-top a::before { content: "\2191\00a0"; letter-spacing: 0; }
@media (min-width: 64rem) { .to-top { display: none; } }
.treatise > .ornament { margin: 4.5rem 0; width: 9rem; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-rule), var(--gold-bright)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px rgba(236, 210, 156, .5); }

.chapter-pill { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 55; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 0; padding: 0; background: rgba(27, 38, 37, 0.92); color: var(--gold-bright); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .4s var(--ease-out), opacity .4s; -webkit-tap-highlight-color: transparent; }
.chapter-pill[hidden] { display: none; }
.chapter-pill:active { transform: scale(0.92); }
.chapter-pill svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.chapter-pill__track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.chapter-pill__ring { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: var(--p, 1); }
.chapter-pill__num { font-family: var(--font-mark); font-size: 0.8rem; letter-spacing: 0.04em; }
@media (min-width: 64rem) { .chapter-pill { display: none !important; } }

/* ---------- the ten virtues ---------- */
.virtues { list-style: none; margin: 2.5rem 0; padding: 0; }
.virtue { position: relative; display: grid; grid-template-columns: 3.4rem 1fr; align-content: start; column-gap: 1rem; padding: 1.6rem 0 1.4rem; border-top: 1px solid var(--line); }
.virtue:last-child { border-bottom: 1px solid var(--line); }
.virtue__num { grid-row: span 2; font-family: var(--font-mark); font-size: 0.95rem; letter-spacing: 0.06em; color: var(--gold); padding-top: 0.55rem; }
.virtue__name { font-family: var(--font-mark); font-size: var(--step-1); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5rem; }
.virtue__def { margin: 0; color: var(--ivory-soft); }
.virtues--inline .virtue { scroll-margin-top: 6rem; }

.virtues-map { max-width: 46rem; margin: 2.5rem auto 0; }
.virtues-map__note { font-family: var(--font-mark); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-soft); margin: 1rem 0 0; }
.virtues-intro {
  box-sizing: border-box;
  max-width: min(100%, calc(var(--measure) + 2 * var(--gutter)));
  padding: 1rem var(--gutter) 2rem;
}
.virtues-wrap { max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter); }
.virtues--feature { display: grid; grid-template-columns: 1fr; margin: 2rem 0 4rem; perspective: 1400px; gap: 1px; }
.virtues--feature .virtue { grid-template-columns: 1fr; text-align: center; padding: 3.2rem 1.75rem 3rem; justify-items: center; border: 1px solid var(--line); margin: 0; cursor: pointer; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)); transition: transform .6s var(--ease-out), border-color .4s, background-color .4s; overflow: hidden; scroll-margin-top: 6rem; container-type: inline-size; }
.virtues--feature .virtue:hover, .virtues--feature .virtue:focus-within { border-color: var(--gold-rule); background: rgba(27, 38, 37, 0.4); --tz: 14px; z-index: 2; }
.virtues--feature .virtue__num { grid-row: auto; padding: 0; margin-bottom: 1rem; font-size: 0.95rem; letter-spacing: 0.24em; }
.virtues--feature .virtue__num::after { content: ""; display: block; width: 1.75rem; border-top: var(--hair); margin: 0.9rem auto 0; }
.virtues--feature .virtue__name { font-size: min(var(--step-2), 8.4cqi); letter-spacing: 0.18em; margin: 0 0 1rem; padding-inline-start: 0.18em; max-width: 100%; }
.virtue__open { text-decoration: none; }
.virtue__open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.virtues--feature .virtue__def { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; max-width: 30rem; color: var(--ivory); }
.virtues--feature .virtue__maxim { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: var(--step-1); line-height: 1.4; max-width: 24rem; color: var(--ivory); text-wrap: balance; }
.virtues--feature .virtue__cue { margin-top: 1.6rem; font-family: var(--font-mark); font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); opacity: 0.6; transition: opacity .4s, letter-spacing .6s var(--ease-out); }
.virtues--feature .virtue__cue::after { content: "\2192"; display: inline-block; margin-left: 0.6em; letter-spacing: 0; }
.virtues--feature .virtue:hover .virtue__cue, .virtues--feature .virtue:focus-within .virtue__cue { opacity: 1; letter-spacing: 0.34em; }
.virtues--feature .virtue.is-visited .virtue__num { color: var(--gold-bright); }
.virtues--feature .virtue.is-visited .virtue__num::before { content: "\2726\00a0"; }
@media (min-width: 52rem) { .virtues--feature { grid-template-columns: 1fr 1fr; } }
.virtues-outro { padding-bottom: var(--space); }

/* ---------- constellation ---------- */
.constellation { position: relative; width: 100%; aspect-ratio: 1000 / 260; }
.constellation--dialog { aspect-ratio: 1000 / 300; }
.constellation__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation__lines line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke .6s; }
.constellation__lines line.is-lit { stroke: var(--gold); }
.constellation__stars { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.constellation__stars li { position: absolute; transform: translate(-50%, -50%); }
.constellation__stars .s1{left:4%;top:80.77%}
.constellation__stars .s2{left:14%;top:57.69%}
.constellation__stars .s3{left:23.5%;top:73.08%}
.constellation__stars .s4{left:33%;top:46.15%}
.constellation__stars .s5{left:43%;top:61.54%}
.constellation__stars .s6{left:53%;top:34.62%}
.constellation__stars .s7{left:62.5%;top:50%}
.constellation__stars .s8{left:72%;top:23.85%}
.constellation__stars .s9{left:82%;top:37.69%}
.constellation__stars .s10{left:95%;top:11.54%}
.star { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.star__dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; border: 1px solid var(--gold); transition: transform .45s var(--ease-out), background-color .4s, box-shadow .4s; }
.star__label { position: absolute; top: 78%; font-family: var(--font-mark); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--ivory-soft); opacity: 0.85; white-space: nowrap; }
.star:hover .star__dot, .star:focus-visible .star__dot { transform: scale(1.7); }
.star.is-visited .star__dot { background: var(--gold); box-shadow: 0 0 10px rgba(236, 210, 156, 0.75); }
.star[aria-current="true"] .star__dot { background: var(--gold-bright); transform: scale(1.9); box-shadow: 0 0 16px rgba(236, 210, 156, 0.95); }
.star[aria-current="true"] .star__label { color: var(--gold-bright); }

/* ---------- virtue dialog ---------- */
.vdialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ivory); overflow: hidden; }
.vdialog::backdrop { background: rgba(18, 26, 25, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vdialog__frame { position: relative; height: 100%; width: min(100%, 60rem); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; padding: max(1rem, env(safe-area-inset-top)) var(--gutter) max(1.25rem, env(safe-area-inset-bottom)); margin: 0 auto; min-width: 0; }
.vdialog__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-width: 0; max-width: 100%; }
.vdialog__back { background: none; border: 1px solid var(--line); color: var(--ivory); font-family: var(--font-mark); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.75rem 1.1rem 0.65rem; cursor: pointer; transition: border-color .3s, color .3s; flex: none; }
.vdialog__back:hover { border-color: var(--gold); color: var(--gold-bright); }
.vdialog__count { margin: 0; font-family: var(--font-mark); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); min-width: 0; }
.vdialog__stage { display: block; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--gold-rule) transparent; touch-action: pan-y; perspective: 1400px; min-height: 0; min-width: 0; max-width: 100%; container-type: inline-size; mask-image: linear-gradient(to bottom, transparent 0, #000 1.25rem, #000 calc(100% - 1.75rem), transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.25rem, #000 calc(100% - 1.75rem), transparent 100%); }
.vdialog__intro { display: flex; flex-direction: column; justify-content: center; min-height: max(14rem, calc(var(--vd-stage-h, 70vh) - 5.5rem)); padding: 1rem 0 1.5rem; }
.vdialog__card { text-align: center; width: 100%; max-width: 100%; min-width: 0; padding: 0 0.5rem 2.5rem; cursor: grab; user-select: none; -webkit-user-select: none; }
.vdialog__card:active { cursor: grabbing; }
.vdialog__num { font-family: var(--font-mark); font-size: 1rem; letter-spacing: 0.3em; color: var(--gold); margin: 0 0 1rem; }
.vdialog__name { font-family: var(--font-mark); font-size: clamp(1.25rem, 6.6vw, 4.2rem); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1.5rem; padding-inline-start: 0.14em; line-height: 1.1; text-wrap: nowrap; max-width: 100%; min-width: 0; }
.vdialog__stage .vdialog__name { font-size: clamp(1.25rem, 8.5cqi, 4.2rem); }
.vdialog__def { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); line-height: 1.45; margin: 0 auto; max-width: min(34rem, 100%); }
.vdialog__practice { max-width: 38rem; margin: 0 auto; padding-top: 1.6rem; border-top: var(--hair); cursor: auto; }
.vdialog__label { margin: 0 0 2rem; font-family: var(--font-mark); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.vdialog__label-sub { color: var(--ivory-soft); }
.vdialog__scenes { list-style: none; margin: 0; padding: 0; text-align: left; }
.vdialog__scene { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 0.9rem; align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.vdialog__scene:first-child { border-top: 1px solid var(--line); }
.vdialog__scene-num { font-family: var(--font-mark); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold); text-align: right; }
.vdialog__scene-text { margin: 0; font-family: var(--font-display); font-size: clamp(1.12rem, 1.02rem + 0.35vw, 1.3rem); line-height: 1.5; color: var(--ivory); }
.vdialog__scene.is-pending { opacity: 0; transform: translateY(14px); filter: blur(3px); }
.vdialog__scene.is-in { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
.vdialog__prompt { margin: 2.4rem auto 0.9rem; max-width: 28rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.45; color: var(--ivory); }
.vdialog__wear { margin: 0; }
@media (max-width: 40rem) { .vdialog__scene { grid-template-columns: 2rem minmax(0, 1fr); gap: 0 0.7rem; } .vdialog__label { letter-spacing: 0.24em; } }
@media (prefers-reduced-motion: reduce) { .vdialog__scene.is-pending { opacity: 1; transform: none; filter: none; } }
.vdialog__nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-width: 0; max-width: 100%; }
.vdialog__step { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid var(--gold-rule); background: none; color: var(--gold-bright); font-size: 1.2rem; cursor: pointer; transition: background-color .3s, color .3s; }
.vdialog__step:hover { background: var(--gold); color: var(--bg); }
.vdialog__hint { text-align: center; font-family: var(--font-mark); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-soft); margin: 0.75rem 0 0; }

/* ---------- toc sheet (mobile) ---------- */
.toc-sheet { margin: auto 0 0; width: 100%; max-width: none; max-height: 80vh; padding: 0; border: 0; border-top: 1px solid var(--gold-rule); background: var(--bg-deep); color: var(--ivory); }
.toc-sheet::backdrop { background: rgba(18, 26, 25, 0.7); }
.toc-sheet__inner { padding: 1.25rem var(--gutter) max(1.5rem, env(safe-area-inset-bottom)); }
.toc-sheet__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.toc-sheet__bar .toc__title { margin: 0; }
.toc-sheet a { padding: 0.65rem 0; border-top: 1px solid var(--line); }

/* ---------- colophon ---------- */
.colophon { border-top: 1px solid var(--line); padding: 5rem var(--gutter) 3rem; text-align: center; }
.colophon__inner { max-width: 44rem; margin: 0 auto; }
.colophon__logo { display: block; width: 100%; height: auto; margin: 0; }
.colophon__mark { font-family: var(--font-brand); letter-spacing: 0; font-kerning: normal; text-transform: uppercase; white-space: nowrap; font-size: 0.95rem; margin: 0 0 0.4rem 0; }
.colophon__tagline { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--gold); margin: 0; }
.colophon__note { font-size: 0.98rem; color: var(--ivory-soft); max-width: 36rem; margin: 0 auto 2rem; }
.colophon__links { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; }
.colophon__links a { display: inline-block; font-family: var(--font-mark); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--ivory-soft); padding: 0.5rem 0; }
.colophon__links a:hover { color: var(--gold-bright); }
.colophon__legal { font-size: 0.85rem; color: var(--ivory-soft); margin: 0; }

/* ---------- custom cursor (fine pointers only, added by JS) ---------- */
.cursor, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 500; border-radius: 50%; }
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-bright); box-shadow: 0 0 0 1px rgba(27, 38, 37, 0.6); }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(236, 210, 156, 0.6); display: grid; place-items: center; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s, border-radius .35s; }
.cursor-ring__label { font-family: var(--font-mark); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .25s; }
.cursor-ring.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(236, 210, 156, 0.12); border-color: var(--gold); }
.cursor-ring.is-open { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: var(--gold); border-color: var(--gold); }
.cursor-ring.is-open .cursor-ring__label { opacity: 1; }
.cursor-ring.is-text { width: 3px; height: 30px; margin: -15px 0 0 -1.5px; border-radius: 2px; background: rgba(236, 210, 156, 0.55); border-color: transparent; }
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-ring.is-hidden, .cursor.is-hidden { opacity: 0; }
.cursor-trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 499; }
html.has-cursor, html.has-cursor * { cursor: none !important; }

/* ---------- page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .55s cubic-bezier(.7, 0, .3, 1) both; }
::view-transition-new(root) { animation: vt-in .85s cubic-bezier(.2, .7, .2, 1) both; }
::view-transition-group(brand) { animation-duration: .7s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-2.5vh) scale(.985); filter: blur(3px); } }
@keyframes vt-in { from { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(3vh); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }

.wipe { position: fixed; inset: 0; z-index: 450; pointer-events: none; background: var(--bg-deep); transform: scaleY(0); transform-origin: 50% 100%; }
.wipe__line { position: absolute; left: 0; right: 0; top: 0; border-top: 1px solid var(--gold); transform: scaleX(0); transform-origin: left; }
.wipe.is-out { transform: scaleY(1); transition: transform .5s cubic-bezier(.7, 0, .3, 1); }
.wipe.is-out .wipe__line { transform: scaleX(1); transition: transform .35s ease; }
.wipe-in .wipe { transform: scaleY(1); transform-origin: 50% 0; animation: wipe-retreat .75s .05s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes wipe-retreat { to { transform: scaleY(0); } }

/* ---------- motion: hide what JS will reveal on load (failsafe in boot.js) ---------- */
.motion:not(.ready) [data-anim="load"], .motion:not(.ready) [data-hero] .hero__inner, .motion:not(.ready) .hero__frame { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .progress { display: none; }
  .mist, .atmos { display: none; }
  @view-transition { navigation: none; }
}

/* ---------- shop ---------- */
.page-shop .title-page { padding-bottom: clamp(2.75rem, 6vw, 5.25rem); }
.atelier { max-width: 88rem; margin: 0 auto; padding: 0 var(--gutter) var(--space); }
.atelier__layout { display: grid; gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
.atelier__stage { container-type: inline-size; min-width: 0; }
.atelier__numeral { font-family: var(--font-mark); font-size: var(--step--1); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.85rem; }
.atelier__virtue { font-family: var(--font-brand); font-weight: 400; letter-spacing: 0; font-kerning: normal; text-transform: uppercase; white-space: nowrap; line-height: 1.2; font-size: clamp(1.15rem, 5vw, 2.65rem); margin: 0 0 1.6rem; }
@container (min-width: 1px) { .atelier__virtue { font-size: clamp(1.05rem, 7.4cqi, 2.85rem); } }
.atelier__frame {
  position: relative;
  min-height: min(82vw, 30rem);
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  overflow: visible;
  isolation: isolate;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease-out);
  cursor: pointer;
}
.atelier__shadow {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  width: 68%;
  height: 2.4rem;
  margin-bottom: 6%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.48) 0%, transparent 72%);
  z-index: 0;
  pointer-events: none;
}
.atelier__garment {
  grid-area: 1 / 1;
  width: 100%;
  height: min(82vw, 34rem);
  display: grid;
  place-items: center;
  z-index: 1;
  transform-origin: 50% 46%;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}
/* The gold frame outlines only the Label view; Front and Back float free. */
.atelier__frame-edge { position: absolute; inset: 0.7rem; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .45s var(--ease-out); }
.atelier__frame.is-label .atelier__frame-edge { opacity: 1; }
.atelier__frame-edge i { position: absolute; background: var(--gold-faint); }
.atelier__frame-edge i:nth-child(1) { top: 0; left: 0; right: 0; height: 1px; transform-origin: left; }
.atelier__frame-edge i:nth-child(2) { bottom: 0; left: 0; right: 0; height: 1px; transform-origin: right; }
.atelier__frame-edge i:nth-child(3) { top: 0; bottom: 0; left: 0; width: 1px; transform-origin: bottom; }
.atelier__frame-edge i:nth-child(4) { top: 0; bottom: 0; right: 0; width: 1px; transform-origin: top; }
.atelier__image, .atelier__canvas {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  justify-self: center;
  align-self: center;
  z-index: 1;
  filter:
    drop-shadow(0 0 0.6px rgba(242, 234, 217, 0.22))
    drop-shadow(0 1.15rem 2.15rem rgba(0, 0, 0, 0.5))
    drop-shadow(0 0.28rem 0.65rem rgba(0, 0, 0, 0.32));
}
/* Official archive photographs already have their own studio backgrounds.
   They sit in a dark frame without the cutout drop-shadow or zero-G float,
   which would outline the JPEG as a floating card. */
.atelier__frame.is-official {
  background: #000;
  overflow: hidden;
}
.atelier__frame.is-official .atelier__image,
.atelier__frame.is-official .atelier__canvas {
  filter: none;
}
.atelier__frame.is-official .atelier__shadow {
  display: none;
}
.atelier__frame.is-official .atelier__garment {
  transform: none !important;
  animation: none !important;
}
.atelier.is-official .atelier__thumb-shot {
  background: #000;
}
.atelier.is-official .atelier__thumbs img {
  filter: none;
  background: #000;
}
.atelier.is-official .atelier__thumb-label {
  white-space: normal;
}
.motion .atelier__image.is-shown,
.motion .atelier__canvas.is-shown {
  animation: atelier-reveal-photo 0.7s var(--ease-out);
}
@keyframes atelier-reveal-photo { from { opacity: 0; } to { opacity: 1; } }
.motion .atelier__garment.is-css-float {
  animation: atelier-weightless 29s ease-in-out infinite;
}
@keyframes atelier-weightless {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  20% { transform: translate3d(0.55rem, -1.05rem, 0) rotate(1.35deg); }
  42% { transform: translate3d(-0.7rem, -0.35rem, 0) rotate(-1.15deg); }
  65% { transform: translate3d(0.3rem, -1.25rem, 0) rotate(0.75deg); }
  84% { transform: translate3d(-0.4rem, -0.45rem, 0) rotate(-0.5deg); }
}
.atelier__film { margin-top: 1.15rem; }
.atelier__thumbs {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.55rem 0.15rem 0.35rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-rule) transparent;
}
.atelier__thumbs button {
  position: relative;
  flex: none;
  width: 7.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.atelier__thumb-shot {
  display: block;
  width: 7.15rem;
  height: 7.15rem;
  border: 1px solid var(--line);
  background: transparent;
  overflow: hidden;
  transition: border-color .45s var(--ease-out), transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.atelier__thumb-label {
  display: block;
  margin-top: 0.48rem;
  font-family: var(--font-mark);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ivory-soft);
  transition: color .4s var(--ease-out);
  line-height: 1.3;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .atelier__thumbs button:hover .atelier__thumb-shot { border-color: var(--gold-rule); transform: translateY(-3px); }
  .atelier__thumbs button:hover .atelier__thumb-label { color: var(--gold-bright); }
}
.atelier__thumbs button[aria-pressed="true"] .atelier__thumb-shot {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(220, 187, 124, 0.28);
}
.atelier__thumbs button[aria-pressed="true"] .atelier__thumb-label { color: var(--gold); }
.atelier__thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; filter: drop-shadow(0 0.35rem 0.55rem rgba(0, 0, 0, 0.4)); }
.atelier__image.is-dim { opacity: 0.42; }
.atelier__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1.15rem;
  z-index: 3;
  margin: 0;
  text-align: center;
  font-family: var(--font-mark);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  pointer-events: none;
  text-shadow: 0 0 1.2rem var(--bg), 0 0 0.4rem var(--bg);
}
.atelier__caption[hidden] { display: none; }
.atelier__wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: soft-light;
}
.motion .atelier__wash.is-on { animation: atelier-wash 0.9s var(--ease-out); }
@keyframes atelier-wash {
  0% { opacity: 0; }
  30% { opacity: 0.48; }
  100% { opacity: 0; }
}
.atelier__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.7rem;
  height: 4.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  opacity: 0.45;
  transition: opacity .4s var(--ease-out);
}
.atelier__nav--prev { left: 0.3rem; }
.atelier__nav--next { right: 0.3rem; }
.atelier__nav svg { width: 1.15rem; height: 2.25rem; display: block; margin: auto; }
.atelier__frame:hover .atelier__nav,
.atelier__nav:focus-visible { opacity: 1; }
.atelier__nav[hidden] { display: none; }
.atelier__frame.is-changing .atelier__image,
.atelier__frame.is-changing .atelier__canvas { opacity: 0.78; transition: opacity .45s var(--ease-out); }
.atelier__veil { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 0.9rem; text-align: center; padding: 1.5rem; background: rgba(44, 60, 59, 0.48); z-index: 4; }
.atelier__veil[hidden] { display: none; }
.atelier__veil p { font-family: var(--font-mark); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0; }
.atelier__veil-line { display: block; width: 4.5rem; border-top: 1px solid var(--gold); transform-origin: left; }
.motion .atelier__veil-line { animation: atelier-line 1.8s var(--ease-out) infinite; }
@keyframes atelier-line { 0% { transform: scaleX(0.15); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(0.15); opacity: 0.4; } }
.atelier__views { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.9rem; }
.atelier__view { background: none; border: 0; border-bottom: 1px solid transparent; padding: 0.35rem 0; font-family: var(--font-mark); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-soft); cursor: pointer; }
.atelier__view[aria-pressed="true"] { color: var(--ivory); border-bottom-color: var(--gold); }
.atelier__summary { font-size: 1.05rem; color: var(--ivory-soft); margin: 1.25rem 0 0.5rem; }
.atelier__read { margin: -0.6rem 0 2rem; }
.atelier__status, .atelier__empty-text { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--ivory-soft); text-align: center; }
.atelier__empty { text-align: center; padding: 2rem 0 3rem; }
.atelier__panel { min-width: 0; }
.atelier__field { border: 0; margin: 0 0 2rem; padding: 0 0 0.15rem; min-width: 0; }
.atelier__legend { font-family: var(--font-mark); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; padding: 0; }
.atelier__hint { font-size: var(--step-0); font-style: italic; color: var(--ivory-soft); margin: -0.35rem 0 0.95rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.75rem 0.55rem; }
.choice { position: relative; display: block; width: 5.85rem; }
.choice--text { width: auto; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__face { display: flex; flex-direction: column; align-items: center; gap: 0.48rem; min-height: 100%; transition: color .4s var(--ease-out); }
.choice--text .choice__face { align-items: flex-start; font-family: var(--font-mark); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-soft); padding: 0.5rem 0.2rem 0.55rem; transition: letter-spacing .5s var(--ease-out), color .4s var(--ease-out); }
.choice__chip { width: 2.05rem; height: 2.05rem; display: block; border-radius: 50%; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.choice__chip--unknown { background: repeating-linear-gradient(135deg, transparent, transparent 3px, rgba(242, 234, 217, 0.35) 3px, rgba(242, 234, 217, 0.35) 4px); box-shadow: inset 0 0 0 1px rgba(242, 234, 217, 0.45); }
.choice__name { font-family: var(--font-mark); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; color: var(--ivory-soft); line-height: 1.3; transition: color .4s var(--ease-out); }
.choice input:checked + .choice__face .choice__name,
.choice--text input:checked + .choice__face { color: var(--ivory); }
.choice--text input:checked + .choice__face { box-shadow: inset 0 -1px 0 var(--gold); }
.choice input:checked + .choice__face .choice__chip { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold), 0 0 16px rgba(220, 187, 124, 0.38); }
.choice input:focus-visible + .choice__face { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .choice:hover .choice__chip { transform: scale(1.1); }
  .choice:hover .choice__name { color: var(--gold-bright); }
  .choices--virtue .choice:hover .choice__face { letter-spacing: 0.26em; color: var(--gold-bright); }
}
.choices--size .choice--text .choice__face { padding-inline: 0.28rem; font-size: 0.8rem; }
.choices--virtue { gap: 0.25rem 1.45rem; }
.atelier__buy { border-top: 1px solid var(--line); padding-top: 1.75rem; margin-top: 0.6rem; }
.atelier__price { font-family: var(--font-mark); font-size: 1.15rem; letter-spacing: 0.16em; margin: 0 0 1.15rem; }
.atelier__checkout { background: transparent; }
.link-cta.atelier__checkout:disabled { opacity: 0.62; cursor: not-allowed; color: var(--ivory-soft); border-color: var(--line); }
.link-cta.atelier__checkout:disabled::before { transform: scaleY(0); }
.link-cta.atelier__checkout:disabled:hover,
.link-cta.atelier__checkout:disabled:focus-visible { color: var(--ivory-soft); border-color: var(--line); }
.atelier__soon { font-style: italic; color: var(--ivory-soft); margin: 0.95rem 0 0; }
.atelier__soon.is-error { font-style: normal; color: var(--gold-bright); }
.atelier__terms { font-family: var(--font-mark); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--ivory-soft); }
/* One floating hoodie: a canvas composited from Printful renders. */
/* The Past of Grandeur Excellence: dim, green-toned photographs crossfading
   behind the hoodie (public/js/past.js). The box itself never moves; only the
   pictures inside drift. Soft edges, so it melts into the page. */
.hoodie__dock { position: relative; isolation: isolate; }
.past {
  position: absolute; inset: -1.5rem -1rem; z-index: -1; overflow: hidden; pointer-events: none; isolation: isolate;
  -webkit-mask-image: radial-gradient(closest-side at 50% 48%, #000 52%, rgba(0, 0, 0, 0.5) 78%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 48%, #000 52%, rgba(0, 0, 0, 0.5) 78%, transparent 100%);
}
.past__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 2.2s ease-in-out; }
.past__layer.is-on { opacity: 0.36; }
.past__layer img, .past__layer video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform-origin: 50% 45%; user-select: none; }
.past__veil { position: absolute; inset: 0; background: #2c3c3b; mix-blend-mode: color; opacity: 0.72; }
.past::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(44, 60, 59, 0.15) 0%, rgba(44, 60, 59, 0.55) 60%, rgba(44, 60, 59, 0.9) 100%); }
@media (max-width: 67.99rem) {
  .past { inset: 0; }
  .past__layer.is-on { opacity: 0.32; }
}
@media (prefers-reduced-motion: reduce) { .past__layer { transition-duration: 1.2s; } }
.atelier__frame.hoodie { cursor: grab; user-select: none; -webkit-user-select: none; }
.atelier__frame.hoodie:active { cursor: grabbing; }
.hoodie__float { position: relative; }
.hoodie__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
  filter:
    drop-shadow(0 0 0.6px rgba(242, 234, 217, 0.2))
    drop-shadow(0 1.2rem 2.2rem rgba(0, 0, 0, 0.5))
    drop-shadow(0 0.3rem 0.65rem rgba(0, 0, 0, 0.3));
}
.hoodie__sparks { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; z-index: 1; transition: opacity .3s; }
.atelier__frame.is-label .hoodie__sparks { opacity: 0; }
.hoodie__canvas:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.hoodie__face { bottom: 0.4rem; opacity: 0.8; }
.hoodie__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.6rem 1.4rem; margin-top: 0.9rem; min-height: 2.4rem; }
.hoodie__bar .atelier__views { margin-top: 0; align-items: baseline; }
.hoodie__hint { font-family: var(--font-mark); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-soft); opacity: 0.7; }
@media (hover: none) { .hoodie__hint { display: none; } }
.hoodie__measure { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin: 0; font-family: var(--font-mark); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-soft); font-variant-numeric: tabular-nums; }
.hoodie__measure b { display: inline-block; min-width: 2.6em; text-align: right; font-weight: 500; color: var(--ivory); }
.hoodie__size { color: var(--gold); }
.hoodie__note { font-size: 0.92rem; font-style: italic; line-height: 1.5; color: var(--ivory-soft); margin: 1rem 0 0.35rem; max-width: 42rem; }
@media (min-width: 68rem) {
  .atelier__layout { grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr); }
  .atelier__stage { position: sticky; top: 5.5rem; }
  .atelier__frame { min-height: min(64vh, 40rem); }
  .atelier__garment { height: min(64vh, 40rem); }
}

/* ---------- print ---------- */
@media print {
  @page { margin: 2cm 2.2cm; }
  :root { --bg: #fff; --bg-deep: #fff; --ivory: #000; --ivory-soft: #222; --gold: #6e5128; --gold-bright: #6e5128; --gold-rule: #9a7744; --line: #ccc; }
  html, body { background: #fff !important; color: #000; font-size: 11.5pt; line-height: 1.5; }
  .masthead, .skip-link, .toc, .to-top, .progress, .hero__actions, .hero__scroll, .hero__frame, .title-page__print, .aside-link, .link-quiet, .colophon nav, .atmos, .mist, .cursor, .cursor-ring, .cursor-trail, .chapter-pill, .vdialog, .toc-sheet, .intro, .wipe, .glimpse, .virtues-map, .colophon__logo, .atelier__veil, .atelier__checkout, .atelier__soon, .atelier__views, .atelier__nav, .atelier__wash, .float__shadow, .past { display: none !important; }
  * { opacity: 1 !important; transform: none !important; clip-path: none !important; visibility: visible !important; filter: none !important; }
  .hero__logo { filter: invert(1); }
  .treatise-layout { display: block; padding: 0; }
  .treatise { max-width: none; }
  .chapter { break-before: page; }
  .chapter:first-child { break-before: auto; }
  .chapter__title, .virtue__name { break-after: avoid; }
  .virtue, .list li, p { break-inside: avoid; orphans: 3; widows: 3; }
  .treatise > .ornament { display: none; }
  .pin-spacer { padding: 0 !important; height: auto !important; min-height: 0 !important; width: auto !important; max-width: none !important; inset: auto !important; }
  .principle { background: #fff; min-height: 0; break-before: page; position: relative !important; top: auto !important; left: auto !important; width: auto !important; max-width: none !important; height: auto !important; padding: 2rem 0 !important; }
  .principle__glow { display: none; }
  .principle__lead, .principle__text { color: #000; }
  .hero { min-height: auto; }
  a { text-decoration: none; }
}
html:not(.js) .virtues-map__note { display: none; }

/* Inside label view: Printful's label photograph, crossfaded in place of the
   floating hoodie. It is an opaque photograph, so it does not float. */
.hoodie__label {
  position: absolute;
  inset: 0.7rem;
  z-index: 2;
  overflow: hidden;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s var(--ease-out), visibility 0s linear .55s;
}
.atelier__frame.is-label { cursor: default; }
.atelier__frame.is-label .hoodie__label { opacity: 1; visibility: visible; transition: opacity .55s var(--ease-out); }
.hoodie__label img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0;
  transition: opacity .5s cubic-bezier(.4, 0, .2, 1);
  user-select: none;
}
.hoodie__label img.is-on { opacity: 1; }
.hoodie__label-tag {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1;
  max-width: calc(100% - 1.5rem);
  padding: 0.32rem 0.6rem;
  font-size: 0.7rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ivory, #f2efe6);
  background: rgba(20, 28, 27, 0.74);
}
.hoodie__canvas, .atelier__shadow { transition: opacity .5s var(--ease-out), filter .5s var(--ease-out); }
.atelier__frame.is-label .hoodie__canvas { opacity: 0; }
.atelier__frame.is-label .atelier__shadow { filter: opacity(0); }
.atelier__frame.is-label .hoodie__face { z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .hoodie__label, .hoodie__label img, .hoodie__canvas { transition: none; }
}
.atelier__frame.is-label .hoodie__face { left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; background: rgba(20, 28, 27, 0.74); padding: 0.3rem 0.4rem 0.3rem 0.68rem; opacity: 1; }
.hoodie__hint { transition: opacity .4s var(--ease-out); }
.atelier__stage.is-label .hoodie__hint { opacity: 0; }
@media (max-width: 30rem) { .hoodie__label-tag { font-size: 0.62rem; padding: 0.25rem 0.45rem; left: 0.5rem; top: 0.5rem; } }


/* Mobile and tablet: keep the hoodie docked on screen while variants are picked. */
@media (max-width: 67.99rem) {
  .atelier__layout { row-gap: 0; }
  .atelier__stage { display: contents; }
  .hoodie__dock {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0.4rem var(--gutter) 0.6rem;
    background: linear-gradient(to bottom, var(--bg) 0, var(--bg) calc(100% - 1.2rem), rgba(44, 60, 59, 0));
    transition: top .6s var(--ease-out);
  }
  body:has(.masthead:not(.is-hidden)) .hoodie__dock { top: var(--mast-h, 0px); }
  .hoodie__dock .atelier__frame { min-height: min(72vw, 36svh, 26rem); }
  .hoodie__dock .atelier__garment { height: min(72vw, 36svh, 28rem); }
  .hoodie__dock .hoodie__bar { margin-top: 0.4rem; min-height: 0; }
  .atelier__panel { order: 1; margin-top: 1.4rem; }
  .hoodie__note,   .hoodie__note { margin-top: 2rem; }
}

/* ---------- beats player (persistent across pages) ---------- */
.player {
  position: fixed; z-index: 90; left: max(1rem, env(safe-area-inset-left)); bottom: calc(1rem + env(safe-area-inset-bottom));
  width: min(27rem, calc(100vw - 2rem)); padding: 0.35rem 0.7rem 0.5rem; box-sizing: border-box;
  background: rgba(27, 38, 37, 0.84); border: 1px solid var(--gold-faint); border-radius: 1.5rem;
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 14px 40px rgba(8, 12, 12, 0.38); color: var(--ivory);
  view-transition-name: ge-player; transition: border-color .5s ease, box-shadow .5s ease, opacity .5s ease;
  -webkit-tap-highlight-color: transparent;
}
.player:hover, .player:focus-within { border-color: var(--gold-rule); }
/* visualizer: filaments rise from inside the bottom edge, behind the controls */
.player__viz { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; opacity: 0.4; transition: opacity .8s ease; }
.player.is-playing .player__viz { opacity: 0.62; }
.player__viz canvas, .beats__viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.player__row, .player__bar { position: relative; z-index: 1; }
.beats__viz { position: relative; flex: none; height: 5.25rem; border-top: 1px solid var(--line); overflow: hidden; pointer-events: none; background: linear-gradient(to top, rgba(44, 60, 59, 0.9), rgba(27, 38, 37, 0)); }
.player p { margin: 0; }
.player__row { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.player__controls { display: flex; align-items: center; gap: 0.1rem; flex: none; }
.player__btn {
  position: relative; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ivory-soft); cursor: pointer; transition: color .3s ease, background-color .3s ease, transform .25s var(--ease-out);
  touch-action: manipulation;
}
.player__btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.player__btn:hover, .player__btn:focus-visible { color: var(--gold-bright); background: rgba(220, 187, 124, 0.08); }
.player__btn:focus-visible, .player__bar:focus-visible, .beats__item:focus-visible, .beats__close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.player__btn:active { transform: scale(0.92); }
.player__btn--main { width: 2.6rem; height: 2.6rem; color: var(--gold-bright); border: 1px solid var(--gold-rule); }
.player__btn--main svg { width: 1.1rem; height: 1.1rem; }
.player__btn--main .i-play { fill: currentColor; stroke-width: 1; transform: translateX(1px); }
.player__btn--main .i-pause { display: none; stroke-width: 2; }
.player.is-playing .player__btn--main .i-play { display: none; }
.player.is-playing .player__btn--main .i-pause { display: block; }
.player__spin { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid transparent; border-top-color: var(--gold-bright); opacity: 0; pointer-events: none; }
.player.is-loading .player__spin { opacity: 1; animation: player-spin 0.9s linear infinite; }
@keyframes player-spin { to { transform: rotate(360deg); } }
.player.is-waiting .player__btn--main { animation: player-call 2.4s ease-in-out infinite; }
@keyframes player-call { 0%, 100% { box-shadow: 0 0 0 0 rgba(236, 210, 156, 0); } 50% { box-shadow: 0 0 0 6px rgba(236, 210, 156, 0.14), 0 0 18px rgba(236, 210, 156, 0.25); } }
.player__meta { flex: 1; min-width: 0; padding: 0 0.3rem; }
.player__label { font-family: var(--font-mark); font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player.is-waiting .player__label { color: var(--gold-bright); }
.player__title { font-family: var(--font-display); font-size: 1.06rem; line-height: 1.2; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__time { flex: none; font-family: var(--font-mark); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--ivory-soft); font-variant-numeric: tabular-nums; padding-right: 0.15rem; }
.player__vol { display: flex; align-items: center; flex: none; }
.player__vol[hidden] { display: none; }
.player__vol input { width: 3.6rem; height: 1.2rem; margin: 0; background: transparent; accent-color: var(--gold); cursor: pointer; -webkit-appearance: none; appearance: none; }
.player__vol input::-webkit-slider-runnable-track { height: 2px; background: var(--gold-faint); border-radius: 2px; }
.player__vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; margin-top: -3.5px; border-radius: 50%; background: var(--gold-bright); border: 0; }
.player__vol input::-moz-range-track { height: 2px; background: var(--gold-faint); border-radius: 2px; }
.player__vol input::-moz-range-progress { height: 2px; background: var(--gold); }
.player__vol input::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); border: 0; }
.player__vol input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.player__bar { position: relative; height: 14px; margin: 0 0.9rem 0.05rem; cursor: pointer; touch-action: none; }
.player__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.player__fill { position: absolute; left: 0; right: 0; top: calc(50% - 0.5px); height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transform: scaleX(0); transform-origin: left; }
.player__knob { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 10px rgba(236, 210, 156, 0.5); opacity: 0; transform: scale(0.5); transition: opacity .25s, transform .25s var(--ease-out); }
.player__bar:hover .player__knob, .player__bar:focus-visible .player__knob, .player.is-seeking .player__knob { opacity: 1; transform: scale(1); }
.player.is-idle:not(.is-waiting) .player__bar { opacity: 0.5; }
html.has-player .colophon::after { content: ""; display: block; height: calc(var(--player-h, 4.5rem) + 1.25rem + env(safe-area-inset-bottom)); }
@media (max-width: 46rem) {
  .player { left: max(0.6rem, env(safe-area-inset-left)); right: max(0.6rem, env(safe-area-inset-right)); width: auto; bottom: calc(0.6rem + env(safe-area-inset-bottom)); border-radius: 1.25rem; padding: 0.25rem 0.5rem 0.4rem; }
  .player__time { display: none; }
  html.has-player .chapter-pill { bottom: calc(var(--player-h, 4.5rem) + 1.3rem + env(safe-area-inset-bottom)); }
}
@media (pointer: coarse) { .player__btn { width: 2.6rem; height: 2.6rem; } .player__btn--main { width: 2.8rem; height: 2.8rem; } }

/* beat list: anchored above the player on desktop, a bottom sheet on mobile */
.beats {
  position: fixed; inset: auto auto calc(var(--player-h, 4.5rem) + 1.6rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  margin: 0; padding: 0; width: min(24rem, calc(100vw - 2rem)); max-width: none; max-height: min(70vh, 42rem);
  border: 0; background: transparent; color: var(--ivory); overflow: visible;
}
/* The dialog itself stays untransformed: the custom cursor lives inside the
   open modal, and a transform here would offset its fixed position. The
   visible card (and its open/close/drag motion) is the sheet. */
.beats[open] { display: flex; }
.beats__sheet {
  border: 1px solid var(--gold-faint); border-radius: 1.25rem; background: var(--bg-deep); overflow: hidden;
  box-shadow: 0 24px 60px rgba(6, 10, 10, 0.5); transform: translateY(var(--drag, 0px)); box-sizing: border-box;
}
.beats[open] .beats__sheet { animation: beats-in .45s var(--ease-out) both; }
.beats.is-closing .beats__sheet { animation: beats-out .26s ease-in both; }
.beats::backdrop { background: rgba(10, 14, 14, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes beats-in { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: translateY(var(--drag, 0px)); } }
@keyframes beats-out { to { opacity: 0; transform: translateY(1.25rem); } }
.beats__sheet { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; }
.beats__head { position: relative; flex: none; padding: 1.15rem 3.5rem 0.9rem 1.3rem; border-bottom: 1px solid var(--line); }
.beats__grip { display: none; }
.beats__kicker { margin: 0 0 0.2rem; font-family: var(--font-mark); font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.beats__title { margin: 0; font-family: var(--font-mark); font-weight: 500; font-size: 1rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory); }
.beats__close { position: absolute; right: 0.8rem; top: 50%; margin-top: -1.2rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ivory-soft); cursor: pointer; transition: color .3s, border-color .3s; }
.beats__close:hover { color: var(--gold-bright); border-color: var(--gold-rule); }
.beats__close svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.beats__list { list-style: none; margin: 0; padding: 0.35rem 0 0.6rem; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; min-height: 0; }
.beats__item {
  display: grid; grid-template-columns: 2rem 1fr auto auto; align-items: center; gap: 0.6rem; width: 100%; padding: 0.62rem 1.3rem; border: 0; background: transparent;
  color: var(--ivory-soft); text-align: left; cursor: pointer; transition: background-color .25s, color .25s; touch-action: manipulation;
}
.beats__item:hover { background: rgba(220, 187, 124, 0.06); color: var(--ivory); }
.beats__num { font-family: var(--font-mark); font-size: 0.66rem; letter-spacing: 0.1em; color: rgba(220, 187, 124, 0.6); font-variant-numeric: tabular-nums; }
.beats__name { font-family: var(--font-display); font-size: 1.14rem; line-height: 1.25; color: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beats__dur { font-family: var(--font-mark); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--ivory-soft); font-variant-numeric: tabular-nums; }
.beats__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.8rem; opacity: 0; }
.beats__eq i { width: 2px; height: 30%; background: var(--gold-bright); }
.beats__item.is-current { color: var(--gold-bright); }
.beats__item.is-current .beats__num { color: var(--gold); }
.beats__item.is-current .beats__eq { opacity: 1; }
.player.is-playing .beats__item.is-current .beats__eq i { animation: beats-eq 1.1s ease-in-out infinite; }
.player.is-playing .beats__item.is-current .beats__eq i:nth-child(2) { animation-delay: -0.35s; }
.player.is-playing .beats__item.is-current .beats__eq i:nth-child(3) { animation-delay: -0.7s; }
@keyframes beats-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (max-width: 46rem) {
  .beats { inset: auto 0 0 0; width: 100%; max-height: 82vh; max-height: 82svh; }
  .beats__sheet { border-radius: 1.25rem 1.25rem 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .beats__head { padding-top: 1.5rem; touch-action: none; }
  .beats__grip { display: block; position: absolute; left: 50%; top: 0.55rem; width: 2.6rem; height: 4px; margin-left: -1.3rem; border-radius: 4px; background: rgba(242, 234, 217, 0.22); }
  .beats__item { padding: 0.78rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .player, .player__btn, .player__knob { transition: none; }
  .player.is-waiting .player__btn--main { animation: none; box-shadow: 0 0 0 4px rgba(236, 210, 156, 0.16); }
  .player.is-loading .player__spin { animation: none; border-color: var(--gold-rule); }
  .beats[open] .beats__sheet, .beats.is-closing .beats__sheet { animation: none; }
  .player.is-playing .beats__item.is-current .beats__eq i { animation: none; height: 70%; }
  .player__viz { transition: none; }
}
@media print { .player, .beats { display: none !important; } }

/* ownership & licensing note (player and beat list) */
.player__btn--rights { width: 2rem; color: rgba(220, 187, 124, 0.72); }
.player__btn--rights svg { width: 0.98rem; height: 0.98rem; stroke-width: 1.35; }
@media (pointer: coarse) { .player__btn--rights { width: 2.2rem; } }
.beats__rights { flex: none; margin: 0; padding: 0.45rem 1rem 0.5rem; border-top: 1px solid var(--line); text-align: center; }
.beats__rights-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.2rem; padding: 0.3rem 0.6rem; border: 0; border-radius: 0.6rem; background: transparent; color: var(--ivory-soft); font-family: var(--font-mark); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: color .3s, background-color .3s; touch-action: manipulation; }
.beats__rights-btn svg { flex: none; width: 1rem; height: 1rem; fill: none; stroke: var(--gold); stroke-width: 1.35; stroke-linecap: round; }
.beats__rights-btn:hover, .beats__rights-btn:focus-visible { color: var(--gold-bright); background: rgba(220, 187, 124, 0.06); }
.beats__rights-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The dialog stays untransformed (the custom cursor moves inside it); the card moves. */
.rights { margin: auto; padding: 0; border: 0; background: transparent; color: var(--ivory); width: min(27rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); overflow: visible; }
.rights[open] { display: flex; }
.rights::backdrop { background: rgba(10, 14, 14, 0.58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.rights__card { position: relative; width: 100%; box-sizing: border-box; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: 2rem 1.8rem 1.4rem; text-align: center; background: var(--bg-deep); border: 1px solid var(--gold-faint); border-radius: 1.25rem; box-shadow: 0 24px 60px rgba(6, 10, 10, 0.55), inset 0 0 0 4px rgba(27, 38, 37, 1), inset 0 0 0 5px rgba(220, 187, 124, 0.12); }
.rights[open] .rights__card { animation: rights-in .4s var(--ease-out) both; }
.rights.is-closing .rights__card { animation: rights-out .22s ease-in both; }
@keyframes rights-in { from { opacity: 0; transform: translateY(0.8rem) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes rights-out { to { opacity: 0; transform: translateY(0.6rem) scale(0.98); } }
.rights__close { top: 0.9rem; margin-top: 0; right: 0.9rem; }
.rights__seal { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin: 0 auto 0.85rem; border: 1px solid var(--gold-rule); border-radius: 50%; color: var(--gold-bright); box-shadow: 0 0 0 4px rgba(220, 187, 124, 0.06), 0 0 24px rgba(236, 210, 156, 0.12); }
.rights__seal svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.rights__kicker { margin: 0 0 0.35rem; font-family: var(--font-mark); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.rights__title { margin: 0 0 1rem; font-family: var(--font-mark); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory); }
.rights__body { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.5; color: var(--ivory-soft); text-align: left; }
.rights__body p { margin: 0 0 0.8em; }
.rights__body strong { color: var(--ivory); font-weight: 600; }
.rights__actions { margin: 1.1rem 0 0.9rem; }
.rights__cta { max-width: 100%; }
.rights__cta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rights__fine { margin: 0; font-family: var(--font-mark); font-size: 0.54rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(242, 234, 217, 0.5); }
@media (prefers-reduced-motion: reduce) { .rights[open] .rights__card, .rights.is-closing .rights__card { animation: none; } }
@media print { .rights { display: none !important; } }

/* ---------- contact ---------- */
.contact { padding-bottom: calc(var(--space) * 0.6); }
.contact__body { font-family: var(--font-display); font-size: clamp(1.08rem, 1.02rem + 0.25vw, 1.2rem); line-height: 1.55; color: var(--ivory); }
.contact__lede { margin: 0 0 1.8rem; color: var(--ivory-soft); font-style: italic; text-align: center; }
.contact__form { display: grid; gap: 1.15rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: rgba(27, 38, 37, 0.45); }
.contact__row { display: grid; gap: 1.15rem; }
@media (min-width: 40rem) { .contact__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field[hidden] { display: none; }
.field__label { font-family: var(--font-mark); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.field__opt { color: var(--ivory-soft); letter-spacing: 0.12em; text-transform: none; font-family: var(--font-display); font-size: 0.9rem; font-style: italic; }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box; margin: 0; padding: 0.7rem 0.85rem; border: 1px solid rgba(242, 234, 217, 0.18); border-radius: 0.55rem;
  background: rgba(16, 24, 23, 0.55); color: var(--ivory); font: inherit; font-size: max(16px, 1.05rem); line-height: 1.4; transition: border-color .25s, box-shadow .25s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: linear-gradient(45deg, transparent 50%, #dcbb7c 50%), linear-gradient(135deg, #dcbb7c 50%, transparent 50%); background-position: calc(100% - 1.2rem) 55%, calc(100% - 0.85rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; }
.field select option { background: #1b2625; color: var(--ivory); }
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(220, 187, 124, 0.18); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #e2a08a; }
.field__error { margin: 0; font-family: var(--font-text); font-size: 0.92rem; color: #f0b9a6; }
.field__error:empty { display: none; }
.field__hint { margin: 0; font-size: 0.92rem; color: var(--ivory-soft); }
.contact__count { justify-self: end; font-family: var(--font-mark); font-size: 0.56rem; letter-spacing: 0.12em; color: var(--ivory-soft); font-variant-numeric: tabular-nums; }
.contact__trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact__check { min-height: 65px; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.2rem; }
.contact__submit { font: inherit; cursor: pointer; background: transparent; }
.contact__submit[disabled] { opacity: 0.6; cursor: progress; }
.contact__status { margin: 0; flex: 1 1 14rem; font-size: 0.98rem; color: var(--ivory-soft); }
.contact__status.is-error { color: #f0b9a6; }
.contact__note { margin: 1.2rem 0 0; font-size: 0.95rem; color: var(--ivory-soft); text-align: center; }
.contact__note a, .contact__body a { color: var(--gold-bright); text-decoration-color: var(--gold-rule); text-underline-offset: 0.18em; }
.contact__done { padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--gold-faint); border-radius: 1rem; text-align: center; background: rgba(27, 38, 37, 0.45); }
.contact__done[hidden] { display: none; }
.contact__done h2 { margin: 0.4rem 0 0.7rem; font-family: var(--font-mark); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory); }
.contact__done p { margin: 0 0 1rem; color: var(--ivory-soft); }
.contact__done:focus { outline: none; }

/* ---------- legal pages ---------- */
.legal { padding-bottom: calc(var(--space) * 0.6); }
.legal__meta { font-family: var(--font-mark); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 1.4rem 0 0; line-height: 2; }
.legal__body { font-family: var(--font-display); font-size: clamp(1.14rem, 1.06rem + 0.3vw, 1.28rem); line-height: 1.62; color: var(--ivory); }
.legal__body p, .legal__body li { hyphens: auto; -webkit-hyphens: auto; }
.legal__body p { margin: 0 0 1.05em; }
.legal__body ul, .legal__body ol { margin: 0 0 1.2em; padding-inline-start: 1.3em; }
.legal__body li { margin: 0 0 0.45em; }
.legal__body li::marker { color: var(--gold); }
.legal__body a { color: var(--gold-bright); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--gold-rule); }
.legal__body a:hover { text-decoration-color: currentColor; }
.legal__body h2 { font-family: var(--font-mark); font-weight: 500; font-size: clamp(0.9rem, 0.84rem + 0.3vw, 1.05rem); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 3rem 0 1.1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); line-height: 1.5; scroll-margin-top: 6rem; }
.legal__body h3 { font-family: var(--font-mark); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory); margin: 1.8rem 0 0.7rem; line-height: 1.5; }
.legal__body strong { font-weight: 600; color: var(--ivory); }
.legal__lede { font-style: italic; color: var(--ivory-soft); }
.legal__caps { font-family: var(--font-text); font-size: 0.94em; letter-spacing: 0.01em; line-height: 1.6; }
.legal__toc { margin: 2.2rem 0 0.5rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); }
.legal__toc p { font-family: var(--font-mark); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.7rem; }
.legal__toc ol { margin: 0; padding-inline-start: 1.4em; columns: 2 16rem; column-gap: 2rem; font-size: 0.98em; }
.legal__toc li { break-inside: avoid; margin: 0 0 0.3em; }
.legal__toc a { text-decoration: none; color: var(--ivory); }
.legal__toc a:hover { color: var(--gold-bright); }
.legal__table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 1.6rem; font-size: 0.92em; line-height: 1.45; }
.legal__table th { font-family: var(--font-mark); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); text-align: left; padding: 0.6rem 0.7rem 0.6rem 0; border-bottom: 1px solid var(--gold-faint); vertical-align: bottom; }
.legal__table td { padding: 0.75rem 0.7rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__table code, .legal__body code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.82em; color: var(--gold-bright); word-break: break-word; }
@media (max-width: 46rem) {
  .legal__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; width: 100%; }
  .legal__table tr { border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
  .legal__table td { border: 0; padding: 0.2rem 0; }
  .legal__table td::before { content: attr(data-label); display: block; font-family: var(--font-mark); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
}
.legal__index { list-style: none; padding: 0; margin: 2rem 0; }
.legal__index li { border-top: 1px solid var(--line); padding: 1.1rem 0; margin: 0; }
.legal__index li:last-child { border-bottom: 1px solid var(--line); }
.legal__index a { font-family: var(--font-mark); font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--ivory); }
.legal__index a:hover { color: var(--gold-bright); }
.legal__index span { display: block; margin-top: 0.3rem; font-style: italic; color: var(--ivory-soft); }
.legal__button { background: none; border: 1px solid var(--gold-rule); color: var(--ivory); font-family: var(--font-mark); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.75rem 1.1rem 0.65rem; cursor: pointer; margin: 0.2rem 0.6rem 0.6rem 0; transition: border-color .3s, color .3s; }
.legal__button:hover { border-color: var(--gold); color: var(--gold-bright); }
.legal__status { font-style: italic; color: var(--ivory-soft); min-height: 1.5em; }

/* footer legal row */
.colophon__legal-links { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.25rem; }
.colophon__legal-links a, .colophon__legal-links button { display: inline-block; background: none; border: 0; padding: 0.35rem 0; font-family: var(--font-mark); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--ivory-soft); cursor: pointer; opacity: 0.85; }
.colophon__legal-links a:hover, .colophon__legal-links button:hover { color: var(--gold-bright); opacity: 1; }

/* shop: legal line under checkout */
.atelier__legal { font-size: 0.92rem; color: var(--ivory-soft); margin: 0.8rem 0 0; }
.atelier__legal a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold-rule); text-underline-offset: 0.18em; }
.atelier__legal a:hover { color: var(--gold-bright); }

/* ---------- storage notice ---------- */
.consent {
  position: fixed; z-index: 95; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom));
  width: min(24rem, calc(100vw - 2rem)); box-sizing: border-box; padding: 1rem 1.15rem 1.05rem;
  background: rgba(27, 38, 37, 0.95); border: 1px solid var(--gold-faint); border-radius: 1.1rem;
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 14px 40px rgba(8, 12, 12, 0.42); color: var(--ivory);
}
html.motion .consent { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
html.motion .consent.is-in { opacity: 1; transform: none; }
html.motion .consent.is-leaving { opacity: 0; transform: translateY(12px); transition-duration: .35s; }
.consent__title { margin: 0 0 0.45rem; font-family: var(--font-mark); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.consent__text { margin: 0; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.45; color: var(--ivory); }
.consent__text a { color: var(--gold-bright); text-decoration: underline; text-decoration-color: var(--gold-rule); text-underline-offset: 0.18em; white-space: nowrap; }
.consent__gpc { margin: 0.5rem 0 0; font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--ivory-soft); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.consent__btn { flex: 1 1 auto; min-height: 2.6rem; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--ivory); font-family: var(--font-mark); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.6rem 0.95rem 0.5rem; cursor: pointer; transition: border-color .3s, color .3s, background-color .3s; }
.consent__btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.consent__btn--primary { border-color: var(--gold-rule); color: var(--gold-bright); }
.consent__btn--primary:hover { background: var(--gold); color: var(--bg); }
@media (max-width: 58rem) {
  html.has-player .consent { bottom: calc(var(--player-h, 4.5rem) + 1.6rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 46rem) {
  .consent { left: max(0.6rem, env(safe-area-inset-left)); right: max(0.6rem, env(safe-area-inset-right)); width: auto; padding: 0.85rem 1rem 0.9rem; }
  html.has-player .consent { bottom: calc(var(--player-h, 4.5rem) + 1.2rem + env(safe-area-inset-bottom)); }
  .consent__text { font-size: 0.98rem; }
}
@media print { .consent { display: none; } }

/* ---------- phones held sideways (short landscape) ----------
   Portrait and desktop are unaffected: everything below only applies when the
   viewport is landscape and at most 500px tall. Height uses dvh with a vh
   fallback so iOS Safari's collapsing address bar is accounted for. */
.player__expand { display: none; }
@media (orientation: landscape) and (max-height: 500px) {
  /* Masthead: one slim row so the page keeps its height. */
  .masthead__inner { padding: 0.35rem max(var(--gutter), env(safe-area-inset-right)) 0.35rem max(var(--gutter), env(safe-area-inset-left)); flex-wrap: nowrap; gap: 1rem; }
  .masthead__nav ul { flex-wrap: nowrap; gap: 0 clamp(0.7rem, 2vw, 1.4rem); }
  .masthead__nav a { font-size: 0.6rem; letter-spacing: 0.12em; padding: 0.45rem 0; white-space: nowrap; }

  /* Player: a small pill tucked in the bottom-right corner; tap the chevron to
     open the full controls, which fold away again after a few seconds. */
  .player {
    left: auto; right: max(0.6rem, env(safe-area-inset-right)); bottom: max(0.5rem, env(safe-area-inset-bottom));
    width: auto; max-width: calc(100vw - 1.2rem - env(safe-area-inset-left) - env(safe-area-inset-right));
    padding: 0.2rem 0.3rem; border-radius: 999px;
  }
  .player__expand { display: grid; }
  .player__expand svg { transition: transform .35s var(--ease-out); }
  .player:not(.is-expanded) .player__bar,
  .player:not(.is-expanded) .player__meta,
  .player:not(.is-expanded) .player__time,
  .player:not(.is-expanded) .player__vol,
  .player:not(.is-expanded) [data-p-prev],
  .player:not(.is-expanded) [data-p-next],
  .player:not(.is-expanded) .player__btn--list,
  .player:not(.is-expanded) .player__btn--rights { display: none; }
  .player:not(.is-expanded) .player__btn--main { width: 2.5rem; height: 2.5rem; }
  .player:not(.is-expanded) .player__btn--expand { width: 2.3rem; height: 2.5rem; }
  .player.is-expanded { width: min(27rem, calc(100vw - 1.2rem - env(safe-area-inset-left) - env(safe-area-inset-right))); padding: 0.3rem 0.6rem 0.45rem; border-radius: 1.25rem; }
  .player.is-expanded .player__expand svg { transform: rotate(180deg); }
  .player.is-expanded .player__time { display: none; }
  .player__btn { width: 2.4rem; height: 2.4rem; }
  .player__btn--main { width: 2.6rem; height: 2.6rem; }
  html.has-player .colophon::after { height: calc(var(--player-h, 3rem) + 1rem + env(safe-area-inset-bottom)); }
  html.has-player .chapter-pill { bottom: calc(var(--player-h, 3rem) + 1rem + env(safe-area-inset-bottom)); right: max(0.6rem, env(safe-area-inset-right)); width: 3rem; height: 3rem; }

  /* Beat list: a short sheet that uses the full height. */
  .beats { inset: max(0.5rem, env(safe-area-inset-top)) max(0.6rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) auto; width: min(26rem, 60vw); max-height: none; height: auto; }
  .beats__sheet { border-radius: 1.1rem; border-bottom: 1px solid var(--gold-faint); padding-bottom: 0; height: 100%; }
  .beats__head { padding: 0.7rem 3.2rem 0.6rem 1.1rem; }
  .beats__grip { display: none; }
  .beats__item { padding: 0.55rem 1.1rem; }
  .beats__viz { height: 3.6rem; }

  /* Consent notice: compact, bottom-left, clear of the player pill. */
  .consent, html.has-player .consent { left: max(0.6rem, env(safe-area-inset-left)); right: auto; bottom: max(0.5rem, env(safe-area-inset-bottom)); width: min(30rem, calc(100vw - 6.5rem)); padding: 0.7rem 0.95rem 0.75rem; }
  .consent__text { font-size: 0.92rem; line-height: 1.35; }
  .consent__actions { margin-top: 0.55rem; flex-wrap: nowrap; }
  .consent__btn { min-height: 2.3rem; padding: 0.45rem 0.8rem 0.4rem; }

  /* Contemplation viewer: navigation on the left, the text scrolls on the right. */
  .vdialog__frame {
    width: 100%;
    grid-template-columns: minmax(12rem, 36%) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: clamp(1rem, 3vw, 2.25rem);
    padding: max(0.6rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(0.6rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }
  .vdialog__bar { grid-column: 1; grid-row: 1; }
  .vdialog__back { padding: 0.6rem 0.9rem 0.5rem; }
  .vdialog__nav { grid-column: 1; grid-row: 2; align-self: center; grid-template-columns: auto auto; justify-content: space-between; row-gap: 0.4rem; }
  .vdialog__nav .constellation { grid-column: 1 / -1; grid-row: 1; }
  .vdialog__step { width: 2.7rem; height: 2.7rem; }
  .vdialog__hint { grid-column: 1; grid-row: 3; margin: 0; font-size: 0.56rem; letter-spacing: 0.14em; line-height: 1.6; text-align: left; }
  .vdialog__stage { grid-column: 2; grid-row: 1 / -1; mask-image: linear-gradient(to bottom, transparent 0, #000 1rem, #000 calc(100% - 1.25rem), transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1rem, #000 calc(100% - 1.25rem), transparent 100%); }
  .vdialog__intro { min-height: max(10rem, calc(var(--vd-stage-h, 80vh) - 2rem)); padding: 0.75rem 0 1rem; }
  .vdialog__num { margin-bottom: 0.5rem; font-size: 0.85rem; }
  .vdialog__name { margin-bottom: 0.9rem; }
  .vdialog__stage .vdialog__name { font-size: clamp(1.25rem, 8cqi, 3rem); }
  .vdialog__def { font-size: clamp(1.15rem, 1rem + 1vw, 1.5rem); }
  .vdialog__card { padding-bottom: 1.5rem; }

  /* Shop: the hoodie fills the left side at nearly full height; the virtue
     name, options and notes scroll on the right. */
  .atelier__layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); column-gap: clamp(1rem, 3vw, 2rem); row-gap: 0; align-items: start; }
  .atelier__stage { display: contents; }
  .hoodie__dock {
    --dock-top: max(0.4rem, env(safe-area-inset-top));
    grid-column: 1; grid-row: 1 / span 4; align-self: start;
    position: sticky; top: var(--dock-top); z-index: 1;
    margin: 0; padding: 0; background: none;
    display: flex; flex-direction: column;
    height: 88vh; height: min(88dvh, calc(100dvh - var(--dock-top) - 0.5rem));
  }
  body:has(.masthead:not(.is-hidden)) .hoodie__dock { --dock-top: var(--mast-h, 0px); top: var(--dock-top); }
  .hoodie__dock .atelier__frame { flex: 1 1 auto; min-height: 0; margin: 0; }
  .hoodie__dock .atelier__garment { height: 100%; }
  .hoodie__dock .hoodie__bar { flex: none; flex-wrap: nowrap; align-items: center; gap: 0.4rem 1rem; margin-top: 0.2rem; min-height: 0; }
  .hoodie__dock .hoodie__measure { flex-wrap: nowrap; gap: 0.2rem 0.7rem; font-size: 0.58rem; letter-spacing: 0.1em; white-space: nowrap; }
  .hoodie__dock .atelier__views { flex: none; }
  .hoodie__dock .hoodie__face { display: none; }
  .atelier__numeral { grid-column: 2; grid-row: 1; margin-top: 0.4rem; }
  .atelier__virtue { grid-column: 2; grid-row: 2; margin-bottom: 0.9rem; }
  .atelier__virtue { font-size: clamp(1.05rem, 3.4vw, 2rem); }
  .atelier__panel { grid-column: 2; grid-row: 3; order: 0; margin-top: 0; }
  .atelier__stage > .hoodie__note { grid-column: 2; grid-row: 4; margin-top: 1.5rem; }
  /* contact form: two columns, shorter message box */
  .contact__form { gap: 0.8rem; }
  .contact__row { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .field textarea { min-height: 6.5rem; }
  .page-contact .title-page { padding-top: 4.4rem; padding-bottom: 1.2rem; min-height: 0; }
  .page-contact .title-page__title { font-size: 2.6rem; }
  .page-contact .title-page__subtitle { margin-top: 0.4rem; }
  /* ownership note: wider and shorter so it fits without scrolling */
  .rights { width: min(38rem, calc(100vw - 2rem)); }
  .rights__card { padding: 1rem 1.6rem 0.9rem; }
  .rights__seal { width: 2.2rem; height: 2.2rem; margin-bottom: 0.4rem; }
  .rights__seal svg { width: 1.15rem; height: 1.15rem; }
  .rights__title { margin-bottom: 0.6rem; font-size: 0.92rem; }
  .rights__body { font-size: 0.98rem; line-height: 1.4; }
  .rights__body p { margin-bottom: 0.5em; }
  .rights__actions { margin: 0.6rem 0 0.5rem; }
  .virtue-art { max-width: 17rem; margin-bottom: 2.4rem; }
  .virtue-art__stage { --float-lift: 3px; --float-drop: 9px; }
  .hero__float { --float-lift: 4px; --float-drop: 12px; --float-blur: 9px; }
}
@media (orientation: landscape) and (max-height: 500px) and (prefers-reduced-motion: reduce) {
  .player__expand svg { transition: none; }
}
