/* =========================================================
   catius maximus — style.css
   an ancient monument, a windy meadow, one very small knight
   ========================================================= */

/* ---------- 1. tokens ---------- */
:root {
  --ivory: #f4eee2;
  --parchment: #ebe3d2;
  --stone: #e2d9c7;
  --stone-deep: #cfc4ad;
  --ink: #221f19;
  --ink-soft: #443f35;
  --ink-muted: #625b4e;
  --night: #1c1d1a;
  --night-2: #23241f;
  --light: #f6efe0;
  --light-muted: rgba(240, 232, 214, 0.78);
  --meadow: #6b7548;
  --pink: #d8a4a2;
  --pink-ink: #a96563;
  --crimson: #8e2b25;
  --gold: #c39b55;
  --gold-hi: #f2dca0;
  --gold-deep: #7a5c28;
  --gold-text: #e3c78d;
  --gold-line: rgba(122, 92, 40, 0.32);

  --font-display: "Cormorant Garamond", "Cormorant", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-roman: "Cinzel", "Trajan Pro", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.25, 1);

  /* procedural textures (svg noise, no image files) */
  --cloud-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 500' width='1600' height='500' preserveAspectRatio='none'%3E%3Cfilter id='f' x='0' y='0' width='1600' height='500' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0019 0.0085' numOctaves='5' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 3.2 0 0 0 -1.3'/%3E%3C/filter%3E%3Crect width='1600' height='500' filter='url(%23f)'/%3E%3C/svg%3E");
  --cloud-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 500' width='1600' height='500' preserveAspectRatio='none'%3E%3Cfilter id='f' x='0' y='0' width='1600' height='500' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0028 0.015' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 3 0 0 0 -1.28'/%3E%3C/filter%3E%3Crect width='1600' height='500' filter='url(%23f)'/%3E%3C/svg%3E");
  --cloud-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 500' width='1600' height='500' preserveAspectRatio='none'%3E%3Cfilter id='f' x='0' y='0' width='1600' height='500' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0036 0.05' numOctaves='4' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 3.4 0 0 0 -1.55'/%3E%3C/filter%3E%3Crect width='1600' height='500' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .2 0 0 0 0 .14 0 0 0 .6 -.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --veins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='v' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='.0032 .011' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .46 0 0 0 0 .41 0 0 0 0 .33 -2.6 0 0 0 .3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='24' viewBox='0 0 26 24'%3E%3Cpath d='M0 1.5H26M0 22.5H26M4 22.5V5.5H21.5V18H9.5V9.5H17V14' fill='none' stroke='%23c39b55' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* ---------- 2. base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) - 8px);
  background: var(--night);
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(216, 164, 162, 0.5); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.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: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--gold-hi);
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. textures & ornaments ---------- */
.marble {
  background-color: var(--ivory);
  background-image:
    var(--veins),
    var(--grain),
    radial-gradient(80% 60% at 20% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #f4eee2 0%, #ece4d4 100%);
  background-size: 900px 600px, 220px 220px, 100% 100%, 100% 100%;
}

.meander {
  position: relative;
  z-index: 2;
  height: 30px;
  background: var(--meander) center / 26px 24px repeat-x, linear-gradient(180deg, #2a2a24, #1b1c18);
  border-block: 1px solid rgba(195, 155, 85, 0.45);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.gold-text {
  color: var(--gold-hi);
  background-image:
    linear-gradient(105deg, rgba(255, 251, 235, 0) 42%, rgba(255, 251, 235, 0.95) 50%, rgba(255, 251, 235, 0) 58%),
    linear-gradient(180deg, #fff3cf 0%, #f0d595 26%, #c99d54 52%, #e9cb86 72%, #a87d3b 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s ease-in-out 2.4s infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-roman);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow--light { color: var(--gold-text); }
.eyebrow--center::before,
.eyebrow--center::after {
  content: "";
  width: 2.6em;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.eyebrow--center::after { background: linear-gradient(90deg, currentColor, transparent); }

/* tiny laurel sprig next to eyebrows */
.sprig {
  position: relative;
  width: 2.6em;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.sprig::before,
.sprig::after {
  content: "";
  position: absolute;
  right: 0.3em;
  top: -0.32em;
  width: 0.62em;
  height: 0.28em;
  border-radius: 0 100% 0 100%;
  background: currentColor;
  transform: rotate(-28deg);
}
.sprig::after { right: 0.95em; top: 0.08em; transform: rotate(28deg) scaleY(-1); }
.sprig--r { transform: scaleX(-1); }

/* section mark: "I | TITVLVS — the rank" */
.mark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  font-family: var(--font-roman);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.mark__num {
  padding-right: 0.9rem;
  border-right: 1px solid currentColor;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.mark__en {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--ink-muted);
}
.mark__en::before { content: "— "; color: var(--gold); }
.mark--center { justify-content: center; }
.mark--light { color: var(--gold-text); }
.mark--light .mark__en { color: var(--light-muted); }

.section-head--center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-title--xl { font-size: clamp(2.9rem, 7.4vw, 6.8rem); line-height: 0.95; }
.section-title--light { color: var(--light); }

/* rule with laurel */
.rule {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 30rem;
  margin: clamp(2.2rem, 4vw, 3.4rem) auto;
}
.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, var(--gold));
}
.rule::after { background: linear-gradient(90deg, var(--gold), var(--gold) 50%, transparent); }

/* laurel wreath — css leaves */
.laurel {
  --size: 1rem;
  display: inline-flex;
  font-size: var(--size);
  color: var(--gold);
}
.laurel__branch {
  position: relative;
  width: 1.5em;
  height: 2.6em;
}
.laurel__branch--r { transform: scaleX(-1); }
.laurel__branch::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 2em;
  height: 2em;
  margin: -1em 0 0 -1em;
  border: 0.06em solid currentColor;
  border-radius: 50%;
  clip-path: inset(0 50% 6% 0);
}
.laurel__branch i {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 0.6em;
  height: 0.26em;
  margin: -0.13em 0 0 -0.3em;
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #f4e2ac, currentColor 60%, #8f6a2e);
  transform: rotate(calc(100deg + var(--i) * 23deg)) translateX(1.02em) rotate(56deg);
}

/* ---------- 4. buttons & links ---------- */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: var(--btn-h);
  padding: 0 1.6em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease), filter 0.35s var(--ease);
}
.btn--sm { --btn-h: 40px; padding: 0 1.25em; font-size: 0.88rem; }
.btn--lg { --btn-h: 54px; padding: 0 2em; font-size: 1rem; }

.btn--gold {
  background: linear-gradient(180deg, #f7e6b0 0%, #dcb96d 46%, #b68c45 100%);
  color: #261d0c;
  text-shadow: 0 1px 0 rgba(255, 244, 210, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 0 rgba(100, 66, 20, 0.35),
    0 0 0 1px #7d5e2a,
    0 14px 30px -14px rgba(120, 80, 20, 0.8);
}
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(120, 85, 30, 0.35);
  border-radius: 1px;
  pointer-events: none;
}
.btn--gold:hover {
  filter: brightness(1.07) saturate(1.05);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 0 rgba(100, 66, 20, 0.35),
    0 0 0 1px #7d5e2a,
    0 0 34px rgba(240, 200, 120, 0.45),
    0 18px 34px -14px rgba(120, 80, 20, 0.85);
}
.btn--gold:active { transform: translateY(0); }

.btn--glass {
  background: rgba(250, 244, 230, 0.08);
  color: var(--light);
  border-color: rgba(240, 225, 190, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--glass:hover {
  background: rgba(250, 244, 230, 0.18);
  border-color: var(--gold-hi);
  transform: translateY(-2px);
}

.btn__icon { width: 1.1em; height: 1.1em; }
.icon-x { width: 0.95em; height: 0.95em; fill: currentColor; }

.text-link {
  display: inline-flex;
  gap: 0.35em;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.35em;
  transition: color 0.3s;
}
.text-link:hover { color: var(--ink); }
.text-link--light { color: var(--light-muted); }
.text-link--light:hover { color: var(--gold-hi); }

.status-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.status-note--light { color: var(--light-muted); }
.status-note__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(216, 164, 162, 0.28);
}

/* ---------- 5. scene system (sky, clouds, ruins, flags, meadow) ---------- */
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.scene > * { position: absolute; }

.sky { inset: 0; }
.sky--storm {
  background: linear-gradient(180deg, #232832 0%, #363c48 16%, #575a60 32%, #94846f 46%, #d4ad74 56%, #f1cf92 62%, #f7dfac 66%, #cbbd8e 74%, #7f8656 86%, #3f4a2c 100%);
}
.sky--dusk {
  background: linear-gradient(180deg, #171a21 0%, #262a33 26%, #4a4542 50%, #8e6845 66%, #c2864f 74%, #7b5a3a 84%, #26261e 100%);
}
.sky--sunset {
  background: linear-gradient(180deg, #1b1e27 0%, #2e3039 20%, #5e5049 36%, #b07b4f 46%, #eaae6a 52%, #f6cf8f 56%, #c69a62 63%, #5b5436 74%, #262b1b 100%);
}

.sun {
  left: 72%;
  top: 60%;
  width: min(90vmax, 180%);
  height: min(90vmax, 180%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 252, 235, 1) 0%, rgba(255, 238, 196, 0.9) 4%, rgba(252, 214, 146, 0.5) 13%, rgba(240, 186, 116, 0.18) 30%, rgba(240, 186, 116, 0) 52%);
  mix-blend-mode: screen;
}
.sun--finale { left: 50%; top: 44%; }

.rays {
  left: 72%;
  top: 60%;
  width: min(140vmax, 220%);
  height: min(140vmax, 220%);
  margin: 0;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 190, 0) 0deg 5deg, rgba(255, 236, 190, 0.2) 7deg 8.5deg, rgba(255, 236, 190, 0) 11deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.55) 16%, rgba(0, 0, 0, 0) 48%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.55) 16%, rgba(0, 0, 0, 0) 48%);
  mix-blend-mode: screen;
  opacity: 0.75;
  animation: rays 80s ease-in-out infinite alternate;
}
.rays--arena { left: 50%; top: 82%; opacity: 0.45; }
.rays--finale { left: 50%; top: 44%; opacity: 0.6; }

.clouds {
  left: 0;
  right: 0;
  overflow: hidden;
}
.clouds span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% + 1600px);
  -webkit-mask-size: 1600px 100%;
  mask-size: 1600px 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  animation: cloud-drift 140s linear infinite;
  will-change: transform;
}
.clouds--high {
  top: 0;
  height: 60%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
}
.clouds--high span {
  background: linear-gradient(180deg, #1a1e27 0%, #343844 45%, #8b7865 100%);
  -webkit-mask-image: var(--cloud-a);
  mask-image: var(--cloud-a);
  opacity: 0.95;
}
.clouds--mid {
  top: 12%;
  height: 48%;
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%);
}
.clouds--mid span {
  background: linear-gradient(180deg, #45474f 0%, #86766a 42%, #eec383 82%, #ffe6ad 100%);
  -webkit-mask-image: var(--cloud-b);
  mask-image: var(--cloud-b);
  animation-duration: 90s;
}
.clouds--low {
  top: 44%;
  height: 24%;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
}
.clouds--low span {
  background: linear-gradient(180deg, #fff3d4, #ffe7b8);
  -webkit-mask-image: var(--cloud-c);
  mask-image: var(--cloud-c);
  animation-duration: 45s;
}
.clouds--dusk span { background: linear-gradient(180deg, #0f1117 0%, #2b2d35 55%, #7a5a40 100%); }
.clouds--dusk-low { top: 52%; opacity: 0.45; }
.clouds--dusk-low span { background: linear-gradient(180deg, #e7b77c, #c98d55); }
.clouds--sunset span { background: linear-gradient(180deg, #13151c 0%, #2f2f37 50%, #9a6c4a 100%); }
.clouds--sunset-mid { top: 20%; }
.clouds--sunset-mid span { background: linear-gradient(180deg, #3e3b40 0%, #8d6750 45%, #f0b46d 85%, #ffd897 100%); }

.ruins {
  left: 0;
  bottom: 26%;
  width: 100%;
  height: 42%;
}
.ruins__mtn { fill: #757b84; opacity: 0.5; }
.ruins__far { fill: #8a8682; opacity: 0.6; }
.ruins__mid { fill: #5e5c56; opacity: 0.82; }
.ruins__near { fill: #3b3c35; opacity: 0.95; }

.ruins--arena { bottom: 0; height: 48%; }
.ruins--arena .ruins__mtn { fill: #3a3a3d; opacity: 0.7; }
.ruins--arena .ruins__far { fill: #4a4038; opacity: 0.8; }
.ruins--arena .ruins__mid { fill: #2a2622; opacity: 0.95; }
.ruins--arena .ruins__near { fill: #151512; opacity: 1; }

.ruins--finale { bottom: 30%; height: 36%; }
.ruins--finale .ruins__mtn { fill: #6c6060; opacity: 0.55; }
.ruins--finale .ruins__far { fill: #7a6656; opacity: 0.65; }
.ruins--finale .ruins__mid { fill: #4a4136; opacity: 0.85; }
.ruins--finale .ruins__near { fill: #2b2a22; opacity: 0.95; }

.mist {
  left: 0;
  right: 0;
  bottom: 22%;
  height: 20%;
  overflow: hidden;
}
.mist span {
  position: absolute;
  inset: 0;
  width: 200%;
  background:
    radial-gradient(28% 50% at 30% 60%, rgba(255, 240, 214, 0.75), rgba(255, 240, 214, 0) 100%),
    radial-gradient(22% 42% at 76% 44%, rgba(255, 236, 205, 0.6), rgba(255, 236, 205, 0) 100%);
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: drift 60s linear infinite;
}
.mist--dusk { bottom: 6%; opacity: 0.35; }
.mist--sunset { bottom: 26%; opacity: 0.7; }

/* battle standards (svg built in script.js) */
.flag {
  aspect-ratio: 200 / 560;
  z-index: 2;
}
.flag svg { width: 100%; height: 100%; overflow: visible; }
.flag--far  { left: 63%; bottom: 30%; height: 28%; opacity: 0.55; filter: saturate(0.6) brightness(0.9); }
.flag--mid  { left: 45%; bottom: 20%; height: 52%; }
.flag--edge { right: 0.5%; bottom: 16%; height: 58%; opacity: 0.92; }
.flag--arena-l { left: 1.5%; bottom: 4%; height: 66%; opacity: 0.85; }
.flag--arena-r { right: 1.5%; bottom: 4%; height: 66%; opacity: 0.85; }
.flag--finale-l { left: 8%; bottom: 18%; height: 56%; }
.flag--finale-r { right: 8%; bottom: 18%; height: 56%; }

.meadow {
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  z-index: 3;
}
.meadow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #262e1b 0%, rgba(44, 54, 31, 0.9) 26%, rgba(70, 82, 46, 0) 72%);
}
.meadow .grass { position: relative; }
.meadow--front { height: 9%; z-index: 5; }
.meadow--front::before { display: none; }
.meadow--finale { height: 44%; }
.meadow--finale::before {
  background: linear-gradient(to top, #171b12 0%, rgba(24, 29, 18, 0.94) 48%, rgba(40, 48, 30, 0) 100%);
}

.grass { width: 100%; height: 100%; overflow: visible; }
.grass__seg {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: gust 6s var(--ease-soft) infinite;
  animation-delay: var(--delay, 0s);
}
.grass__seg--far  { fill: #a49a68; animation-name: gust-soft; }
.grass__seg--mid  { fill: #6c7446; }
.grass__seg--near { fill: #2f3820; }
.meadow--finale .grass__seg--far { fill: #8f7d55; }
.meadow--finale .grass__seg--mid { fill: #4f5233; }
.meadow--finale .grass__seg--near { fill: #1d2214; }

.wind-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
}

.vignette {
  inset: 0;
  z-index: 6;
  background:
    linear-gradient(90deg, rgba(16, 17, 19, 0.7) 0%, rgba(16, 17, 19, 0.42) 30%, rgba(16, 17, 19, 0) 56%),
    radial-gradient(130% 100% at 62% 46%, rgba(0, 0, 0, 0) 55%, rgba(12, 13, 14, 0.6) 100%);
}

/* ---------- 6. header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  width: 100%;
  max-width: 100%;
  z-index: 50;
  color: var(--light);
  transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease), -webkit-backdrop-filter 0.45s, backdrop-filter 0.45s;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 0.45s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(26, 27, 24, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(195, 155, 85, 0.3), 0 14px 34px -22px rgba(0, 0, 0, 0.7);
}
.site-header.is-scrolled .site-header__inner { height: 60px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--light);
  text-decoration: none;
}
.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px #c39b55, 0 0 0 4px rgba(20, 20, 18, 0.5), 0 0 0 5px rgba(195, 155, 85, 0.45);
  transition: transform 0.45s var(--ease);
}
.site-header.is-scrolled .brand__logo { transform: scale(0.9); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  color: var(--light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  list-style: none;
  padding: 0;
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--light-muted);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  transition: color 0.3s;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.site-nav__link:hover,
.site-nav__link[aria-current="true"] { color: var(--gold-hi); }
.site-nav__link:hover::after,
.site-nav__link[aria-current="true"]::after { transform: scaleX(1); }
.site-nav__link--x .icon-x { width: 15px; height: 15px; }
.site-nav__x-label { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(240, 225, 190, 0.4);
  border-radius: 2px;
  background: rgba(20, 20, 18, 0.35);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  background: var(--light);
  transition: transform 0.35s var(--ease);
}
.nav-toggle__bars { top: 50%; margin-top: -0.75px; background: transparent; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle__bars::before { transform: translateY(-4px); }
.nav-toggle__bars::after { transform: translateY(4px); }
.site-header.is-open .nav-toggle__bars::before { transform: rotate(45deg); }
.site-header.is-open .nav-toggle__bars::after { transform: rotate(-45deg); }

/* ---------- 7. hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--light);
}

.hero__knight {
  position: absolute;
  z-index: 4;
  bottom: 2.5vh;
  bottom: 2.5svh;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  height: min(84vh, 920px, 62vw);
  height: min(84svh, 920px, 62vw);
  aspect-ratio: 1024 / 1536;
}
.hero__halo {
  position: absolute;
  inset: 6% -26% 14% -22%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 238, 196, 0.85), rgba(255, 226, 170, 0.35) 55%, rgba(255, 226, 170, 0));
  mix-blend-mode: screen;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 0 16px rgba(255, 222, 160, 0.4)) drop-shadow(0 26px 28px rgba(8, 10, 6, 0.55));
  animation: knight-in 1.8s var(--ease) both, idle 7s 1.8s ease-in-out infinite;
}
.hero__shadow {
  position: absolute;
  left: 2%;
  bottom: 1.5%;
  width: 72%;
  height: 5%;
  background: radial-gradient(closest-side, rgba(10, 14, 6, 0.6), rgba(10, 14, 6, 0));
  animation: shadow 7s 1.8s ease-in-out infinite;
}

.hero__frame {
  position: absolute;
  inset: calc(var(--header-h) + 6px) 20px 20px;
  z-index: 7;
  border: 1px solid rgba(214, 180, 110, 0.22);
  pointer-events: none;
}
.hero__frame i {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--gold);
}
.hero__frame i:nth-child(1) { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.hero__frame i:nth-child(2) { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.hero__frame i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.hero__frame i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.hero__side {
  position: absolute;
  left: 30px;
  bottom: 64px;
  z-index: 7;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-roman);
  font-size: 0.66rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(227, 199, 141, 0.6);
}

.hero__content {
  position: relative;
  z-index: 8;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 12vh;
}
.hero__copy {
  max-width: min(36rem, 46vw);
  transform: translate3d(0, var(--py, 0px), 0);
}

.hero__title {
  margin: 0.32em 0 0.32em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.8rem, 9vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: -0.012em;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.55));
}
.hero__title .line--offset { padding-left: 0.5em; }

.hero__ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.55em 1.05em;
  border: 1px solid rgba(214, 180, 110, 0.6);
  background: rgba(16, 16, 14, 0.35);
  box-shadow: inset 0 0 0 3px rgba(16, 16, 14, 0.25), inset 0 0 0 4px rgba(214, 180, 110, 0.2);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-hi);
}
.hero__ticker::before,
.hero__ticker::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero__lead {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.18;
  color: var(--light);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
.hero__sub {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--light-muted);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.3rem;
}
.hero .status-note { margin-top: 1.4rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transform: translateX(-50%);
  text-decoration: none;
}
.scroll-cue__label {
  font-family: var(--font-roman);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(240, 225, 190, 0.2);
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 40%;
  background: var(--gold-hi);
  animation: cue 2.6s var(--ease-soft) infinite;
}

/* ---------- 8. sections (shared) ---------- */
.section {
  position: relative;
  padding-block: clamp(5.5rem, 12vw, 10rem);
}

/* ---------- 9. about — temple ---------- */
.rank { overflow: hidden; }
.rank__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--font-roman);
  font-weight: 700;
  font-size: clamp(7rem, 24vw, 24rem);
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 92, 40, 0.1);
  pointer-events: none;
  user-select: none;
  transform: translate3d(-50%, calc(-50% + var(--py, 0px)), 0);
}

.temple {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
}
.temple__pediment {
  position: relative;
  height: clamp(80px, 12vw, 160px);
  margin-inline: -2.5%;
  background: linear-gradient(180deg, #f3ede1, #ddd3bf);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.temple__tympanum {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6%;
  background:
    var(--grain),
    linear-gradient(180deg, #e2d8c4, #d3c8b1);
  background-size: 220px 220px, 100% 100%;
  clip-path: polygon(50% 13%, 93% 100%, 7% 100%);
}
.laurel--pediment { --size: clamp(1rem, 2vw, 1.7rem); color: #a8854a; }

.temple__architrave {
  display: grid;
  place-items: center;
  height: clamp(44px, 5vw, 58px);
  margin-inline: -1.5%;
  background: linear-gradient(180deg, #ece5d7 0%, #ddd3bf 100%);
  border-top: 4px solid #cfc3aa;
  box-shadow: inset 0 -1px 0 rgba(122, 92, 40, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.temple__architrave span {
  font-family: var(--font-roman);
  font-weight: 600;
  font-size: clamp(0.7rem, 1.2vw, 0.95rem);
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: #7f6b47;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 -1px 0 rgba(60, 45, 20, 0.25);
}
.temple__dentils {
  height: 16px;
  margin-inline: -1.5%;
  background:
    repeating-linear-gradient(90deg, #d6ccb6 0 14px, transparent 14px 24px) 0 4px / 100% 12px no-repeat,
    #ebe4d6;
  border-bottom: 1px solid rgba(122, 92, 40, 0.25);
}

.temple__body {
  display: grid;
  grid-template-columns: clamp(52px, 6.5vw, 86px) minmax(0, 1fr) clamp(52px, 6.5vw, 86px);
  gap: clamp(1.5rem, 4vw, 4rem);
}
.temple__cella {
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.column {
  position: relative;
  display: block;
  margin: 48px 8% 36px;
  background:
    linear-gradient(90deg, rgba(60, 45, 20, 0.16), rgba(60, 45, 20, 0) 30%, rgba(255, 255, 255, 0.25) 50%, rgba(60, 45, 20, 0) 70%, rgba(60, 45, 20, 0.22)),
    repeating-linear-gradient(90deg, #d4cab4 0 2px, #f2ece0 2px 8px, #e2d9c6 8px 10px);
}
.column::before {
  content: "";
  position: absolute;
  top: -48px;
  left: -26%;
  right: -26%;
  height: 48px;
  background:
    linear-gradient(180deg, #efe8da, #dcd2bd) 0 0 / 100% 10px no-repeat,
    radial-gradient(circle at 13% 58%, #f2ece0 0 4px, #a9997b 4px 5.5px, #ebe3d4 5.5px 9px, #a9997b 9px 10.5px, #e6dece 10.5px 13px, transparent 13.5px),
    radial-gradient(circle at 87% 58%, #f2ece0 0 4px, #a9997b 4px 5.5px, #ebe3d4 5.5px 9px, #a9997b 9px 10.5px, #e6dece 10.5px 13px, transparent 13.5px),
    linear-gradient(180deg, #e9e1d1, #d2c7b1) 12% 12px / 76% 26px no-repeat;
}
.column::after {
  content: "";
  position: absolute;
  bottom: -36px;
  left: -18%;
  right: -18%;
  height: 36px;
  background:
    linear-gradient(180deg, #ece5d7, #d4c9b3) 8% 0 / 84% 10px no-repeat,
    linear-gradient(180deg, #e4dbc9, #cbbfa6) 3% 12px / 94% 10px no-repeat,
    linear-gradient(180deg, #ebe4d6, #d0c5ae) 0 24px / 100% 12px no-repeat;
  border-radius: 6px 6px 0 0;
}

.temple__steps i {
  display: block;
  height: 14px;
  background: linear-gradient(180deg, #ede6d8, #d5cab4);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(122, 92, 40, 0.2);
}
.temple__steps i:nth-child(1) { margin-inline: -1%; }
.temple__steps i:nth-child(2) { margin-inline: -2.5%; }
.temple__steps i:nth-child(3) { margin-inline: -4%; }

.rank__statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.rank__statement em {
  font-style: italic;
  color: #6f5323;
}

.decree {
  list-style: none;
  padding: 0;
  width: min(100%, 34rem);
  margin-inline: auto;
  text-align: left;
}
.decree__item {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid rgba(122, 92, 40, 0.2);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  color: var(--ink);
  transition: padding-left 0.5s var(--ease), color 0.4s;
}
.decree__item:last-child {
  border-bottom: 1px solid rgba(122, 92, 40, 0.2);
  font-style: italic;
}
.decree__item:hover { padding-left: 0.5rem; color: #5a4420; }
.decree__num {
  font-family: var(--font-roman);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}
.pink { color: var(--pink-ink); }

/* ---------- 10. the joke — frieze ---------- */
.cursus {
  background:
    var(--grain),
    linear-gradient(180deg, #ebe4d5 0%, #ddd4c1 100%);
  background-size: 220px 220px, 100% 100%;
}

.frieze {
  position: relative;
  box-shadow: 0 50px 80px -50px rgba(40, 30, 10, 0.6), 0 0 0 1px rgba(122, 92, 40, 0.18);
}
.frieze__cornice {
  height: 42px;
  background:
    linear-gradient(#cbbfa5, #cbbfa5) 0 0 / 100% 2px no-repeat,
    linear-gradient(180deg, #efe9dc, #ddd3bf) 0 2px / 100% 9px no-repeat,
    radial-gradient(ellipse 6px 8px at 50% 55%, #d2c6ad 0 85%, #b8aa8c 90%, transparent 100%) 0 12px / 20px 20px repeat-x,
    linear-gradient(180deg, #e4dccb, #d6cbb4) 0 12px / 100% 20px no-repeat,
    radial-gradient(circle 3px at 50% 50%, #c7b99c 0 80%, transparent 100%) 0 33px / 10px 8px repeat-x,
    #e9e2d3;
}
.frieze__cornice--base { transform: scaleY(-1); }

.frieze__panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}

.plaque {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.75rem);
  text-align: center;
}
.plaque::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(122, 92, 40, 0.25);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.25), inset 0 0 0 5px rgba(122, 92, 40, 0.12), 0 1px 0 rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.plaque + .plaque::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 14px;
  background:
    linear-gradient(#cbbfa5, #cbbfa5) 0 0 / 100% 12px no-repeat,
    linear-gradient(#cbbfa5, #cbbfa5) 0 100% / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, #d4cab4 0 2px, #f1ebdf 2px 5px, #e0d7c4 5px 7px);
  box-shadow: 1px 0 0 rgba(122, 92, 40, 0.18), -1px 0 0 rgba(122, 92, 40, 0.18);
}
.plaque:hover::after {
  border-color: rgba(122, 92, 40, 0.55);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.35), inset 0 0 0 5px rgba(122, 92, 40, 0.25), 0 1px 0 rgba(255, 255, 255, 0.7);
}
.plaque__ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  font-family: var(--font-roman);
  font-weight: 700;
  font-size: clamp(7rem, 12vw, 11rem);
  line-height: 1;
  color: rgba(122, 92, 40, 0.06);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: color 0.6s var(--ease);
}
.plaque:hover .plaque__ghost { color: rgba(122, 92, 40, 0.1); }
.plaque__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-roman);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}
.plaque__num::before,
.plaque__num::after {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--gold-line);
}
.plaque__title {
  position: relative;
  font-family: var(--font-roman);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a4335;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 -1px 0 rgba(60, 45, 20, 0.28);
}
.plaque__text {
  position: relative;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.6vw, 1.45rem);
  line-height: 1.3;
  color: var(--ink-soft);
}

/* ---------- 11. arena — painting ---------- */
.arena {
  overflow: hidden;
  background: var(--night);
  color: var(--light);
  padding-block: clamp(6rem, 13vw, 11rem);
}
.arena__inner { position: relative; z-index: 2; }

.arena__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.arena__head .section-title { margin-bottom: 0; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5)); }
.arena__copy {
  flex: none;
  max-width: 22ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  line-height: 1.25;
  text-align: right;
  color: var(--light);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.painting { position: relative; max-width: 1180px; margin-inline: auto; }
.painting__frame {
  position: relative;
  padding: clamp(10px, 1.7vw, 24px);
  background: linear-gradient(135deg, #f3dfa6 0%, #b38a43 16%, #ecd08d 32%, #8b6a2f 50%, #dbb970 66%, #9f7735 84%, #f1da9e 100%);
  box-shadow:
    0 0 0 1px #4f3a15,
    inset 0 0 0 1px rgba(255, 240, 200, 0.7),
    0 0 90px rgba(230, 170, 90, 0.2),
    0 70px 110px -50px rgba(0, 0, 0, 0.85);
}
.painting__frame::before {
  content: "";
  position: absolute;
  inset: clamp(4px, 0.6vw, 8px);
  border: 3px dotted rgba(255, 244, 210, 0.75);
  pointer-events: none;
}
.painting__frame::after {
  content: "";
  position: absolute;
  inset: calc(clamp(10px, 1.7vw, 24px) - 4px);
  border: 1px solid rgba(80, 58, 20, 0.6);
  pointer-events: none;
}
.painting__mat {
  padding: clamp(3px, 0.5vw, 7px);
  background: #14130f;
  box-shadow: inset 0 0 0 1px rgba(214, 180, 110, 0.85);
}
.painting__img {
  width: 100%;
  height: auto;
  aspect-ratio: 2172 / 724;
  background: #2a2722;
}
.painting__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 1rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.8rem auto 0;
  padding: 0.8rem 1.3rem;
  background: linear-gradient(180deg, #3b3326, #29241b);
  border: 1px solid #8a6a32;
  box-shadow: inset 0 0 0 3px #29241b, inset 0 0 0 4px rgba(214, 180, 110, 0.3), 0 20px 30px -20px rgba(0, 0, 0, 0.8);
  font-size: 0.82rem;
  color: #e6d9bd;
  text-align: center;
}
.painting__label-num {
  font-family: var(--font-roman);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- 12. contract — tabula ansata ---------- */
.inscription { overflow: hidden; }

.tabula {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: clamp(0px, 7vw, 76px);
  filter: drop-shadow(0 34px 34px rgba(60, 45, 20, 0.22));
}
.tabula::before,
.tabula::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(0px, 7.4vw, 80px);
  height: 64%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 62% 50%, #e8d29a 0 3px, #8a6a32 3.5px 5px, transparent 5.5px),
    linear-gradient(180deg, #ece5d7, #d9cfba);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.tabula::before { left: clamp(0px, 0.4vw, 4px); }
.tabula::after {
  right: clamp(0px, 0.4vw, 4px);
  background:
    radial-gradient(circle at 38% 50%, #e8d29a 0 3px, #8a6a32 3.5px 5px, transparent 5.5px),
    linear-gradient(180deg, #ece5d7, #d9cfba);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.tabula__body {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background-color: #e9e1d1;
  background-image: var(--veins), var(--grain), linear-gradient(180deg, #efe8db, #ddd3bf);
  background-size: 900px 600px, 220px 220px, 100% 100%;
  border: 1px solid rgba(122, 92, 40, 0.35);
  box-shadow:
    inset 0 0 0 10px rgba(255, 252, 244, 0.45),
    inset 0 0 0 11px rgba(122, 92, 40, 0.3),
    inset 0 0 0 15px rgba(255, 252, 244, 0.3),
    inset 0 0 0 16px rgba(122, 92, 40, 0.16);
}
.tabula__rivet {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f6e3ad, #b38a43 55%, #6b4f1f);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.tabula__rivet--tl { top: 26px; left: 26px; }
.tabula__rivet--tr { top: 26px; right: 26px; }
.tabula__rivet--bl { bottom: 26px; left: 26px; }
.tabula__rivet--br { bottom: 26px; right: 26px; }
.tabula .mark { margin-bottom: 1.2rem; }

.tabula__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.1;
}
.tabula__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.tabula__value-wrap {
  margin: 2rem auto 2.2rem;
  padding: 1.4rem 0.5rem;
  border-block: 3px double rgba(122, 92, 40, 0.5);
}
.tabula__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.1em;
  color: #3e382c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 -1px 0 rgba(50, 35, 10, 0.3);
  overflow-wrap: anywhere;
  user-select: all;
}
.tabula__value.is-long {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 500;
  font-size: clamp(0.9rem, 2.4vw, 1.35rem);
  letter-spacing: 0.02em;
}
.btn--copy { min-width: 11.5rem; }
.btn--copy.is-copied { filter: saturate(0.8) brightness(0.95); }
.tabula__note {
  max-width: 34rem;
  margin: 1.6rem auto 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ---------- 13. chart — colosseum ---------- */
.chart-section { overflow: hidden; }

.chart {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 440px;
  overflow: hidden;
  background: #1c1d1f;
  border: 1px solid #8a6a32;
  box-shadow:
    0 0 0 6px #ebe3d2,
    0 0 0 7px rgba(122, 92, 40, 0.45),
    0 50px 90px -50px rgba(30, 20, 5, 0.75);
}
.chart iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.chart__prelaunch {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: clamp(2.5rem, 8%, 5.5rem) 1.5rem 0;
  text-align: center;
}
.chart__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 30% at 50% 60%, rgba(255, 220, 150, 0.75), rgba(255, 220, 150, 0) 100%),
    linear-gradient(180deg, #1f222a 0%, #34343a 34%, #7c6047 56%, #c79558 66%, #3b3528 100%);
}
.colosseum {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.colosseum__tier {
  display: flex;
  gap: clamp(4px, 0.8vw, 10px);
  height: 25%;
  padding: 8px 2% 0;
  background: linear-gradient(180deg, #7a6a50, #4f4535);
  border-top: 4px solid #9c8a68;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.colosseum__tier span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #110f0c, #2a251e);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6);
}
.colosseum__tier--top {
  margin-inline: 6%;
  clip-path: polygon(0 40%, 14% 30%, 22% 0, 48% 0, 56% 26%, 70% 18%, 78% 52%, 90% 44%, 100% 70%, 100% 100%, 0 100%);
}
.colosseum__tier:not(.colosseum__tier--top):not(.colosseum__tier--base) { margin-inline: 3%; }
.colosseum__sand {
  height: 22%;
  background: linear-gradient(180deg, #b48f5e, #8a6b45);
  box-shadow: inset 0 6px 10px rgba(0, 0, 0, 0.3);
}
.chart__message {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 36rem;
}
.chart__line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.12;
  color: var(--light);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
}
.chart__sub {
  font-size: 0.9rem;
  color: var(--light-muted);
}

/* ---------- 14. finale ---------- */
.finale {
  overflow: hidden;
  padding-top: clamp(6rem, 12vw, 10rem);
  padding-bottom: clamp(7rem, 14vw, 11rem);
  text-align: center;
  background: var(--night);
  color: var(--light);
}
.finale__inner { position: relative; z-index: 7; }

.finale__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 6.6vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}

.niche {
  position: relative;
  width: min(300px, 64vw);
  margin: clamp(3rem, 6vw, 4.5rem) auto clamp(2.2rem, 4vw, 3rem);
}
.niche__laurel {
  --size: clamp(7.5rem, 17vw, 10rem);
  position: absolute;
  left: 50%;
  bottom: -16%;
  z-index: -1;
  opacity: 0.9;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}
.niche__arch {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 999px 999px 3px 3px;
  background: #2a2620;
  box-shadow:
    0 0 0 3px #d4b06a,
    0 0 0 9px #221f1a,
    0 0 0 11px #b48a43,
    0 0 70px rgba(255, 200, 120, 0.4),
    0 50px 80px -30px rgba(0, 0, 0, 0.8);
}
.niche__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.niche:hover .niche__img { transform: scale(1.04); }

.finale__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.1;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
}
.finale__ticker {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-hi);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.finale__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

/* ---------- 15. footer ---------- */
.site-footer {
  background: #171815;
  color: #d6cfbf;
  font-size: 0.88rem;
}
.meander--footer { border-top-color: rgba(195, 155, 85, 0.6); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
}
.site-footer__id {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.7rem;
  letter-spacing: 0.04em;
}
.site-footer__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--light);
}
.site-footer__sep { color: var(--gold); }
.site-footer__x {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.4rem 0;
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s;
}
.site-footer__x:hover { color: var(--gold-hi); }

/* ---------- 16. scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.split .line {
  display: block;
  overflow: hidden;
  padding: 0 0.08em 0.14em;
  margin: 0 -0.08em -0.14em;
}
.split .line > span { display: inline-block; }
.js .split .line > span {
  transform: translate3d(0, 112%, 0);
  transition: transform 1.3s var(--ease);
}
.js .split .line:nth-child(2) > span { transition-delay: 0.14s; }
.js .split.is-visible .line > span { transform: none; }

/* ---------- 17. keyframes ---------- */
@keyframes cloud-drift {
  from { transform: translate3d(-1600px, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes drift {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes rays {
  from { transform: translate(-50%, -50%) rotate(-4deg); }
  to { transform: translate(-50%, -50%) rotate(8deg); }
}
@keyframes gust {
  0%, 100% { transform: skewX(1deg); }
  35% { transform: skewX(9deg) scaleY(0.97); }
  55% { transform: skewX(4deg); }
  70% { transform: skewX(6.5deg) scaleY(0.985); }
}
@keyframes gust-soft {
  0%, 100% { transform: skewX(0.5deg); }
  40% { transform: skewX(5deg); }
  70% { transform: skewX(3deg); }
}
@keyframes shimmer {
  0% { background-position: 160% 0, 0 0; }
  35%, 100% { background-position: -60% 0, 0 0; }
}
@keyframes knight-in {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes idle {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}
@keyframes shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.95); opacity: 0.8; }
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* ---------- 18. responsive ---------- */
@media (max-width: 1100px) {
  .hero__copy { max-width: min(34rem, 48vw); }
  .hero__side { display: none; }
  .flag--far { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  /* header / menu */
  .brand__name { display: none; }
  .brand__logo { width: 36px; height: 36px; }
  .nav-toggle { display: inline-block; }
  .site-header__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 7.5rem;
  }
  .brand { min-width: 0; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    width: auto;
    height: auto;
  }
  .site-header__actions {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    margin: 0;
  }
  .site-nav__list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: rgba(26, 27, 24, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(195, 155, 85, 0.25);
    box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .site-header.is-open .site-nav__list {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
  }
  .site-nav__list li + li { border-top: 1px solid rgba(195, 155, 85, 0.15); }
  .site-nav__link {
    display: flex;
    width: 100%;
    padding: 0.95rem 0;
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: var(--light);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link--x .icon-x { width: 18px; height: 18px; }
  .site-nav__x-label { display: inline; }

  /* hero: scene on top, copy below */
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: 0;
    background: #1a1c16;
  }
  .hero__stage {
    --stage-h: clamp(380px, 66svh, 720px);
    position: relative;
    inset: auto;
    height: 66vh;
    height: var(--stage-h);
  }
  .hero__stage .sun,
  .hero__stage .rays { left: 50%; top: 52%; }
  .hero__stage .ruins { bottom: 22%; height: 38%; }
  .hero__stage .meadow { height: 34%; }
  .hero__stage .meadow--front { height: 9%; }
  .hero__stage .clouds--high { height: 52%; }
  .hero__stage .vignette {
    background:
      linear-gradient(180deg, rgba(16, 17, 19, 0.35) 0%, rgba(16, 17, 19, 0) 22%, rgba(16, 17, 19, 0) 82%, #1f241a 100%),
      radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0) 60%, rgba(12, 13, 14, 0.5) 100%);
  }
  .flag--mid { left: 2%; bottom: 16%; height: 44%; }
  .flag--edge { right: 1%; bottom: 20%; height: 36%; }

  .hero__knight {
    --kh: calc(var(--stage-h) * 0.86);
    right: auto;
    bottom: 2%;
    left: calc(50% - var(--kh) / 3);
    height: var(--kh);
    width: calc(var(--kh) * 2 / 3);
  }
  .hero__frame { display: none; }
  .hero__content {
    padding-top: 2.2rem;
    padding-bottom: 4.5rem;
    text-align: center;
    background:
      radial-gradient(80% 50% at 50% 0%, rgba(232, 176, 92, 0.18), transparent 70%),
      linear-gradient(180deg, #1a1c16 0%, #2a261c 18%, #3d3426 42%, #4a3b28 100%);
  }
  .hero__copy { max-width: 34rem; margin-inline: auto; transform: none; }
  .hero__title { font-size: clamp(3.3rem, 15vw, 5.8rem); margin-top: 0.3em; }
  .hero__title .line--offset { padding-left: 0; }
  .hero__lead { margin-top: 1.5rem; }
  .hero__actions { justify-content: center; }
  .scroll-cue { display: none; }

  /* temple */
  .temple__body { grid-template-columns: minmax(0, 1fr); }
  .column { display: none; }
  .temple__pediment { margin-inline: 0; }
  .temple__architrave,
  .temple__dentils { margin-inline: 0; }
  .temple__cella { padding-inline: 0.5rem; }
  .temple__steps i:nth-child(1) { margin-inline: 0; }
  .temple__steps i:nth-child(2) { margin-inline: -2%; }
  .temple__steps i:nth-child(3) { margin-inline: -4%; }
  .decree__item { grid-template-columns: 3rem 1fr; }

  /* frieze stacks */
  .frieze__panels { grid-template-columns: 1fr; }
  .plaque + .plaque::before {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 14px;
    background:
      linear-gradient(#cbbfa5, #cbbfa5) 0 0 / 12px 100% no-repeat,
      linear-gradient(#cbbfa5, #cbbfa5) 100% 0 / 12px 100% no-repeat,
      repeating-linear-gradient(180deg, #d4cab4 0 2px, #f1ebdf 2px 5px, #e0d7c4 5px 7px);
  }

  /* arena */
  .arena__head { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .arena__copy { text-align: left; }
  .flag--arena-l,
  .flag--arena-r { height: 34%; opacity: 0.5; }

  /* tabula: drop side handles */
  .tabula { padding-inline: 0; }
  .tabula::before,
  .tabula::after { display: none; }

  /* chart */
  .chart { aspect-ratio: 4 / 5; min-height: 460px; }
  .colosseum { height: 44%; }

  /* finale */
  .flag--finale-l { left: 2%; height: 40%; }
  .flag--finale-r { right: 2%; height: 40%; }
}

@media (max-width: 520px) {
  .site-header__actions .btn--sm { padding: 0 0.9em; }
  .brand { gap: 0.55rem; min-width: 0; }
  .hero__actions .btn,
  .finale__actions .btn { flex: 1 1 auto; }
  .finale__actions .btn { min-width: 6.5rem; }
  .tabula__rivet { display: none; }
  .tabula__body {
    box-shadow:
      inset 0 0 0 6px rgba(255, 252, 244, 0.45),
      inset 0 0 0 7px rgba(122, 92, 40, 0.3);
  }
  .decree__item { font-size: 1.5rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .temple__architrave span { letter-spacing: 0.4em; }
}

@media (max-width: 360px) {
  .site-header__actions .btn--sm { font-size: 0.82rem; }
}

@media (max-width: 860px) and (orientation: landscape) and (max-height: 520px) {
  .hero__stage { --stage-h: 86vh; }
}

/* ---------- 19. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .wind-canvas { display: none; }
  .js .reveal,
  .js .split .line > span { opacity: 1; transform: none; }
  .hero__copy,
  .rank__watermark { --py: 0px; }
}
