/* ══════════════════════════════════════════════════
   GOLDEN ARC — obsidian, metallic gold, aged parchment
   ══════════════════════════════════════════════════ */

:root{
  /* ground */
  --black:#000000;
  --obsidian:#060607;
  --obsidian-2:#0b0b0d;
  --stone:#121114;
  --stone-line:rgba(212,175,55,.16);

  /* gold */
  --gold-bright:#f7e7b6;
  --gold-light:#e8d08a;
  --gold:#d4af37;
  --gold-mid:#b8912f;
  --gold-deep:#8a6a1e;
  --gold-shadow:#3d2c0b;

  /* warm neutrals */
  --ivory:#f2ead7;
  --ivory-dim:#c9bfa6;
  --parchment:#e9dcbd;
  --parchment-deep:#d8c69c;
  --ink:#2a2116;
  --ink-soft:#5c4c33;

  --measure:64ch;
  color-scheme: dark;
}

*,*::before,*::after{box-sizing:border-box;}

/* class-based display rules must never defeat the hidden attribute */
[hidden]{display:none !important;}

html{
  scroll-behavior:smooth;
  overflow-x:hidden;
  background:var(--black);
}

body{
  margin:0;
  background:var(--obsidian);
  color:var(--ivory-dim);
  font-family:'Cormorant Garamond','Georgia',serif;
  font-size:19px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%; display:block;}

::selection{background:rgba(212,175,55,.28); color:var(--ivory);}

/* fine film grain over everything */
.grain{
  position:fixed; inset:0; z-index:80; pointer-events:none;
  opacity:.045; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ══════════════ NAVIGATION ══════════════ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:60;
  display:flex; align-items:center; justify-content:space-between;
  gap:2rem;
  padding:1.15rem clamp(1.1rem,4vw,3.2rem);
  border-bottom:1px solid transparent;
  transition:background .5s ease, border-color .5s ease, backdrop-filter .5s ease;
}
.nav.is-stuck{
  background:rgba(6,6,7,.82);
  border-bottom-color:var(--stone-line);
  backdrop-filter:blur(10px);
}
.nav__brand{
  display:inline-flex; align-items:center; gap:.65rem;
  text-decoration:none;
  font-family:'Cinzel',serif;
  font-weight:600;
  font-size:.82rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--gold-light);
}
.nav__crest{width:26px; height:26px; opacity:.95;}
.nav__links{display:flex; gap:clamp(1.2rem,3vw,2.6rem);}
.nav__links a{
  position:relative;
  font-family:'Cinzel',serif;
  font-size:.7rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--ivory-dim);
  padding-bottom:.3rem;
  transition:color .35s ease;
}
.nav__links a::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
  transform:scaleX(0); transition:transform .45s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover{color:var(--gold-bright);}
.nav__links a:hover::after{transform:scaleX(1);}

.nav__x{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:32px;
  border:1px solid var(--gold-deep);
  color:var(--gold-light);
  transition:border-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.nav__x svg{width:14px; height:14px; fill:currentColor;}
.nav__x:hover{
  border-color:var(--gold-bright);
  color:var(--gold-bright);
  box-shadow:0 0 20px rgba(212,175,55,.22), inset 0 0 14px rgba(212,175,55,.08);
}

/* ══════════════ HERO ══════════════ */
.hero{
  position:relative;
  min-height:100svh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:7rem clamp(1.1rem,4vw,3.2rem) 5rem;
  overflow:hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 44%, rgba(212,175,55,.10), transparent 72%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(212,175,55,.05), transparent 70%),
    linear-gradient(180deg,#08080a 0%, #050506 55%, #000 100%);
}
.hero::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse 78% 70% at 50% 45%, transparent 40%, rgba(0,0,0,.85) 100%);
}

/* ── the living film ───────────────────────
   The castle segment loops behind the hero. Two stacked layers
   crossfade at the seam so the restart is never seen. */
.hero__film{
  position:absolute; inset:0; z-index:0;
  overflow:hidden;
  opacity:0;
  transition:opacity 1.6s ease;
}
.hero.is-film-playing .hero__film{opacity:1;}

.hero__video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  /* hold the obsidian-and-gold palette over sunlit footage */
  filter:saturate(.72) contrast(1.06) brightness(.6);
  opacity:0;
  transition:opacity 1.1s linear;
}
.hero__video.is-active{opacity:1;}

/* reduced motion, Save-Data, or blocked autoplay: a still establishing shot */
.hero.is-film-still .hero__film{
  opacity:1;
  background:url('assets/hero-poster.jpg') center/cover no-repeat;
}
.hero.is-film-still .hero__video{display:none;}
.hero__film-scrim{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, transparent 30%, rgba(0,0,0,.72) 100%),
    linear-gradient(180deg, rgba(4,4,5,.78) 0%, rgba(4,4,5,.42) 34%, rgba(4,4,5,.5) 62%, rgba(0,0,0,.85) 100%);
}

/* the site's own atmosphere yields while the film runs */
.hero.is-film-playing .hero__dust{opacity:.35;}
.hero.is-film-playing .mist{opacity:.18;}
.hero__dust,.mist{transition:opacity 1.6s ease;}

.hero__atmos{position:absolute; inset:0; pointer-events:none; overflow:hidden;}
.mist{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  opacity:.5;
}
.mist--1{
  width:70vw; height:32vh; left:-10vw; bottom:2vh;
  background:radial-gradient(ellipse at center, rgba(146,120,58,.20), transparent 70%);
  animation:drift-a 46s ease-in-out infinite alternate;
}
.mist--2{
  width:60vw; height:26vh; right:-8vw; bottom:12vh;
  background:radial-gradient(ellipse at center, rgba(120,104,70,.16), transparent 70%);
  animation:drift-b 62s ease-in-out infinite alternate;
}
.mist--3{
  width:80vw; height:40vh; left:10vw; top:-8vh;
  background:radial-gradient(ellipse at center, rgba(70,66,60,.22), transparent 70%);
  animation:drift-a 78s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a{ from{transform:translate3d(-3%,0,0) scale(1)} to{transform:translate3d(6%,-2%,0) scale(1.12)} }
@keyframes drift-b{ from{transform:translate3d(4%,1%,0) scale(1.06)} to{transform:translate3d(-5%,-3%,0) scale(1)} }

.rays{
  position:absolute; top:-25%; left:50%; width:130vw; height:110vh;
  transform:translateX(-50%);
  background:
    conic-gradient(from 200deg at 50% 0%,
      transparent 0deg, rgba(212,175,55,.055) 12deg, transparent 24deg,
      transparent 40deg, rgba(212,175,55,.04) 52deg, transparent 64deg,
      transparent 300deg, rgba(212,175,55,.05) 318deg, transparent 336deg);
  animation:rays-breathe 22s ease-in-out infinite alternate;
}
@keyframes rays-breathe{ from{opacity:.55} to{opacity:1} }

.hero__dust{position:absolute; inset:0; width:100%; height:100%; pointer-events:none;}

.hero__center{
  position:relative; z-index:3;
  display:flex; flex-direction:column; align-items:center;
  text-align:center;
  width:100%;
}

.hero__emblem{
  width:clamp(150px,20vw,240px);
  margin-bottom:clamp(-1.2rem,-1.4vw,-.6rem);
  filter:drop-shadow(0 12px 40px rgba(0,0,0,.9)) drop-shadow(0 0 34px rgba(212,175,55,.22));
  animation:float 11s ease-in-out infinite;
  will-change:transform;
}
.hero__emblem svg{width:100%; height:auto; overflow:visible;}
.hero__ring{transform-origin:150px 150px; animation:spin 90s linear infinite;}
@keyframes spin{ to{transform:rotate(360deg)} }
@keyframes float{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* forged metal display type */
.forged{
  font-family:'Cinzel Decorative','Cinzel',serif;
  font-weight:900;
  /* layer 1: travelling specular highlight — layer 2: the metal itself */
  background-image:
    linear-gradient(102deg, transparent 38%, rgba(255,255,255,.62) 50%, transparent 62%),
    linear-gradient(178deg,
      #fffdf5 0%, #f7e7b6 16%, #d4af37 38%, #9a7622 56%,
      #e6cf8f 72%, #c39c30 86%, #6d4f13 100%);
  background-size:55% 100%, 100% 100%;
  background-position:-70% 0, 0 0;
  background-repeat:no-repeat;
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255,246,214,.35))
    drop-shadow(0 3px 0 #3d2c0b)
    drop-shadow(0 5px 1px rgba(0,0,0,.85))
    drop-shadow(0 18px 34px rgba(0,0,0,.9));
  animation:metal-sweep 11s ease-in-out infinite;
}
@keyframes metal-sweep{
  0%      {background-position:-70% 0, 0 0;}
  55%,100%{background-position: 190% 0, 0 0;}
}
.hero__title{
  position:relative;
  margin:0;
  font-size:clamp(3rem,12.5vw,11rem);
  line-height:.95;
  letter-spacing:.01em;
  text-transform:uppercase;
  white-space:nowrap;
}
.hero__tagline{
  margin:1.6rem 0 0;
  font-size:clamp(1rem,1.9vw,1.35rem);
  font-style:italic;
  letter-spacing:.03em;
  color:var(--ivory);
  opacity:.9;
}

.hero__actions{
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:center;
  margin-top:2.4rem;
}

.hero__note{
  position:absolute; z-index:3;
  max-width:32ch;
  margin:0;
  font-size:.78rem;
  line-height:1.7;
  letter-spacing:.04em;
  color:rgba(201,191,166,.6);
}
.hero__note--bl{left:clamp(1.1rem,4vw,3.2rem); bottom:clamp(1.6rem,4vw,3rem);}
.hero__note--br{
  right:clamp(1.1rem,4vw,3.2rem); bottom:clamp(1.6rem,4vw,3rem);
  text-align:right;
  font-family:'Cinzel',serif;
  font-size:.66rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:rgba(212,175,55,.65);
}

/* ══════════════ ROYAL BUTTON ══════════════ */
.royal-button{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center;
  padding:.95rem 2.1rem;
  overflow:hidden;
  border:1px solid var(--gold-deep);
  background:linear-gradient(180deg, rgba(60,50,26,.55), rgba(18,16,12,.85));
  color:var(--gold-light);
  font-family:'Cinzel',serif;
  font-size:.72rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  text-decoration:none;
  cursor:pointer;
  transition:color .4s ease, border-color .4s ease, box-shadow .4s ease, transform .3s ease;
}
.royal-button span{position:relative; z-index:2;}
/* slow metallic reflection */
.royal-button::before{
  content:''; position:absolute; top:0; bottom:0; left:-140%; width:60%;
  background:linear-gradient(105deg, transparent, rgba(247,231,182,.28), transparent);
  transform:skewX(-18deg);
  transition:left .85s cubic-bezier(.2,.7,.2,1);
}
.royal-button:hover::before{left:160%;}
.royal-button:hover{
  color:var(--gold-bright);
  border-color:var(--gold);
  box-shadow:0 0 26px rgba(212,175,55,.2), inset 0 0 22px rgba(212,175,55,.08);
  transform:translateY(-1px);
}
.royal-button:active{transform:translateY(0);}
.royal-button--primary{
  border-color:var(--gold);
  background:linear-gradient(180deg, rgba(120,96,38,.6), rgba(38,30,14,.9));
  color:var(--gold-bright);
}
.royal-button--wide{width:100%;}

/* ══════════════ SECTION HEADINGS + ORNAMENT ══════════════ */
.section-head{
  display:flex; flex-direction:column; align-items:center;
  text-align:center;
  margin:0 auto clamp(3rem,7vw,6rem);
  padding:0 1.2rem;
}
.section-head__title{
  font-family:'Cinzel Decorative','Cinzel',serif;
  font-weight:700;
  font-size:clamp(1.9rem,4.6vw,3.4rem);
  letter-spacing:.06em;
  text-transform:uppercase;
  margin:1.2rem 0 0;
  background:linear-gradient(180deg,#fdf6e3 0%, #e8d08a 40%, #b8912f 78%, #6d4f13 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 2px 0 rgba(0,0,0,.85));
}
.section-head__sub{
  margin:.9rem 0 0;
  font-style:italic;
  font-size:1.02rem;
  color:rgba(201,191,166,.72);
  max-width:46ch;
}

.gold-divider{width:min(320px,72vw); height:auto; opacity:.9;}
.gold-divider .draw{
  stroke-dasharray:140;
  stroke-dashoffset:140;
  transition:stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1);
}
.is-visible .gold-divider .draw,
.gold-divider.is-visible .draw{stroke-dashoffset:0;}

/* ══════════════ THE COLLECTION ══════════════ */
.collection{
  position:relative;
  padding:clamp(4.5rem,10vw,8rem) clamp(1.1rem,5vw,4rem) clamp(3rem,7vw,5rem);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212,175,55,.06), transparent 65%),
    linear-gradient(180deg,#000 0%, #06060a 60%, #08080a 100%);
}
.ledger{
  list-style:none;
  max-width:1080px;
  margin:0 auto;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:1px;
  background:rgba(212,175,55,.16);   /* hairline rules between cells */
  border:1px solid rgba(212,175,55,.16);
}
.ledger__item{
  display:flex; flex-direction:column; align-items:center;
  gap:.35rem;
  text-align:center;
  padding:clamp(1.8rem,3.5vw,2.6rem) 1.2rem;
  background:linear-gradient(180deg, rgba(12,12,14,.96), rgba(6,6,7,.98));
}
.ledger__figure{
  font-family:'Cinzel Decorative','Cinzel',serif;
  font-weight:700;
  font-size:clamp(1.5rem,3vw,2.1rem);
  line-height:1.1;
  letter-spacing:.02em;
}
.ledger__label{
  font-family:'Cinzel',serif;
  font-size:.64rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--ivory);
  opacity:.9;
}
.ledger__note{
  margin:.35rem 0 0;
  font-size:.92rem;
  font-style:italic;
  color:rgba(201,191,166,.55);
}
.inscription--quiet{
  max-width:40ch;
  font-size:clamp(1rem,1.9vw,1.3rem);
  color:rgba(232,208,138,.8);
  margin-bottom:0;
}

/* ══════════════ UPON ARC CHAIN ══════════════ */
.arc-band{
  position:relative;
  padding:clamp(3rem,7vw,5rem) clamp(1.1rem,5vw,4rem);
  background:linear-gradient(180deg,#08080a 0%, #050506 100%);
  border-top:1px solid rgba(212,175,55,.1);
  border-bottom:1px solid rgba(212,175,55,.1);
}
.arc-band__inner{
  max-width:640px; margin:0 auto;
  display:flex; flex-direction:column; align-items:center;
  text-align:center;
}
.arc-band__title{
  margin:1rem 0 .6rem;
  font-family:'Cinzel',serif;
  font-weight:600;
  font-size:clamp(.9rem,1.8vw,1.05rem);
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--gold-light);
}
.arc-band__text{
  margin:0;
  font-size:clamp(1.05rem,2.1vw,1.3rem);
  color:var(--ivory);
}

/* ══════════════ CHRONICLE ══════════════ */
.chronicle{
  position:relative;
  padding:clamp(5rem,12vw,10rem) clamp(1.1rem,5vw,4rem) clamp(4rem,10vw,8rem);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(212,175,55,.07), transparent 65%),
    linear-gradient(180deg,#000 0%, #08080a 22%, #0b0b0d 60%, #060607 100%);
}

.chapter{
  position:relative;
  max-width:1180px;
  margin:0 auto;
  padding:clamp(3rem,8vw,7rem) 0;
}
.chapter + .chapter{border-top:1px solid rgba(212,175,55,.1);}

.chapter-header{
  display:flex; flex-direction:column; align-items:center;
  text-align:center;
  margin-bottom:clamp(2rem,5vw,3.4rem);
}
.chapter-header__num{
  font-family:'UnifrakturMaguntia',serif;
  font-size:clamp(2.6rem,6vw,4.4rem);
  line-height:1;
  color:transparent;
  background:linear-gradient(180deg,#f7e7b6,#b8912f 60%,#5c4413);
  -webkit-background-clip:text; background-clip:text;
  filter:drop-shadow(0 2px 0 rgba(0,0,0,.8));
  opacity:.95;
}
.chapter-header__title{
  margin:.5rem 0 0;
  font-family:'Cinzel Decorative','Cinzel',serif;
  font-weight:700;
  font-size:clamp(1.5rem,3.4vw,2.5rem);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ivory);
  clip-path:inset(0 100% 0 0);
  transition:clip-path 1.5s cubic-bezier(.2,.7,.2,1) .15s;
}
.chapter-header.is-visible .chapter-header__title{clip-path:inset(0 0 0 0);}

.chapter__body{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2rem,5vw,4.5rem);
  align-items:center;
}
.chapter--reverse .chapter__body{direction:rtl;}
.chapter--reverse .chapter__body > *{direction:ltr;}

.chapter__text p{
  margin:0 0 1.4rem;
  font-size:1.1rem;
  color:rgba(233,225,205,.82);
}
.chapter__text p:last-child{margin-bottom:0;}
.chapter__text--center{
  max-width:var(--measure);
  margin:clamp(2.4rem,6vw,4rem) auto 0;
  text-align:center;
}

/* illuminated initial */
.initial{
  float:left;
  font-family:'UnifrakturMaguntia',serif;
  font-size:4.1rem;
  line-height:.86;
  padding:.06em .16em 0 0;
  color:transparent;
  background:linear-gradient(180deg,#f7e7b6,#d4af37 55%,#7a5c18);
  -webkit-background-clip:text; background-clip:text;
  filter:drop-shadow(0 2px 0 rgba(0,0,0,.75));
}

.chapter__cta{margin-top:2rem;}

/* inscriptions — large centred lore lines */
.inscription--prophecy{
  max-width:34ch;
  margin-top:0;
  margin-bottom:clamp(3rem,7vw,5rem);
  font-style:italic;
  letter-spacing:.04em;
}
.inscription{
  max-width:24ch;
  margin:clamp(2rem,5vw,3.6rem) auto clamp(2.4rem,6vw,4rem);
  text-align:center;
  font-family:'Cinzel',serif;
  font-size:clamp(1.15rem,2.5vw,1.9rem);
  line-height:1.55;
  letter-spacing:.06em;
  color:var(--gold-light);
  text-shadow:0 0 34px rgba(212,175,55,.22);
}

/* artwork + frames */
.chapter__art{margin:0;}
.chapter__art--wide{max-width:1000px; margin:0 auto;}
.chapter__art figcaption{
  margin-top:1rem;
  text-align:center;
  font-family:'Cinzel',serif;
  font-size:.64rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:rgba(201,191,166,.5);
}
.chapter__flag{width:100%; height:auto;}

.medieval-frame{
  position:relative;
  padding:14px;
  border:1px solid rgba(212,175,55,.28);
  background:linear-gradient(160deg, rgba(28,24,16,.9), rgba(6,6,7,.95));
  box-shadow:0 30px 70px rgba(0,0,0,.75), inset 0 0 40px rgba(0,0,0,.6);
}
.medieval-frame img{
  width:100%;
  filter:saturate(.82) contrast(1.05) brightness(.92);
}
.frame-corner{
  position:absolute; width:34px; height:34px; z-index:2;
  pointer-events:none;
}
.frame-corner--tl{top:-1px; left:-1px;}
.frame-corner--tr{top:-1px; right:-1px; transform:scaleX(-1);}
.frame-corner--bl{bottom:-1px; left:-1px; transform:scaleY(-1);}
.frame-corner--br{bottom:-1px; right:-1px; transform:scale(-1,-1);}

/* engraved stone plate */
.plate{
  position:relative;
  display:flex; flex-direction:column; align-items:center;
  text-align:center;
  padding:clamp(2.4rem,5vw,3.6rem) clamp(1.6rem,4vw,3rem);
  border:1px solid rgba(212,175,55,.18);
  background:
    repeating-linear-gradient(112deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    linear-gradient(165deg,#17161a 0%, #0d0c0f 60%, #070708 100%);
  box-shadow:inset 0 1px 0 rgba(247,231,182,.09), 0 26px 60px rgba(0,0,0,.7);
}
.plate__mark{width:64px; height:64px; opacity:.9; margin-bottom:1.4rem;}
.plate__line{
  margin:0;
  font-family:'Cinzel',serif;
  font-size:clamp(1rem,1.8vw,1.25rem);
  line-height:1.6;
  letter-spacing:.04em;
  color:var(--gold-light);
}
.plate__meta{
  margin:1.2rem 0 0;
  font-family:'Cinzel',serif;
  font-size:.6rem;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:rgba(201,191,166,.45);
}

/* ══════════════ ROYAL CITIZENSHIP ══════════════ */
.citizenship{
  position:relative;
  padding:clamp(5rem,12vw,9rem) clamp(1.1rem,5vw,4rem) clamp(5rem,10vw,8rem);
  background:
    radial-gradient(ellipse 60% 45% at 50% 12%, rgba(212,175,55,.09), transparent 68%),
    linear-gradient(180deg,#060607 0%, #0a0a0c 50%, #000 100%);
}

.decree{
  position:relative;
  max-width:820px;
  margin:0 auto;
  padding:clamp(2.4rem,5vw,4rem) clamp(1.6rem,4.5vw,3.6rem);
  color:var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 30% 12%, rgba(255,255,255,.5), transparent 60%),
    linear-gradient(170deg, var(--parchment) 0%, var(--parchment-deep) 55%, #cbb68c 100%);
  border:1px solid var(--gold-deep);
  box-shadow:
    0 40px 90px rgba(0,0,0,.8),
    inset 0 0 0 1px rgba(255,255,255,.35),
    inset 0 0 70px rgba(138,106,30,.18);
}
.decree::before{
  content:'';
  position:absolute; inset:9px;
  border:1px solid rgba(138,106,30,.4);
  pointer-events:none;
}
.decree .frame-corner{width:40px; height:40px;}
.decree .frame-corner--tl{top:3px; left:3px;}
.decree .frame-corner--tr{top:3px; right:3px;}
.decree .frame-corner--bl{bottom:3px; left:3px;}
.decree .frame-corner--br{bottom:3px; right:3px;}

.decree__preamble{
  margin:0 0 2.4rem;
  text-align:center;
  font-size:1.05rem;
  line-height:1.8;
  color:var(--ink-soft);
}
.decree__preamble--tight{margin-bottom:1.8rem;}
.decree__act{display:flex; justify-content:center;}

/* ── the three charges ─────────────────── */
.tasks{
  list-style:none;
  margin:0 0 1.2rem;
  padding:0;
  display:flex; flex-direction:column;
  gap:.9rem;
}
.task{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:1rem;
  padding:1.1rem 1.2rem;
  border:1px solid rgba(138,106,30,.35);
  background:rgba(255,252,244,.3);
  transition:border-color .4s ease, background .4s ease, opacity .4s ease;
}
.task.is-done{
  border-color:rgba(138,106,30,.6);
  background:rgba(255,250,235,.55);
}

/* checkbox ☐ → ☑ */
.task__mark{
  width:26px; height:26px;
  flex:none;
  border:1.5px solid var(--gold-deep);
  border-radius:2px;
  background:rgba(255,255,255,.35);
  position:relative;
  transition:background .35s ease, border-color .35s ease;
}
.task__mark::after{
  content:'';
  position:absolute; left:7px; top:2px;
  width:8px; height:14px;
  border:solid #2a2116;
  border-width:0 2.5px 2.5px 0;
  transform:rotate(45deg) scale(0);
  transition:transform .35s cubic-bezier(.2,1.4,.4,1);
}
.task.is-waiting .task__mark{
  border-color:var(--gold-mid);
  animation:mark-pulse 1.6s ease-in-out infinite;
}
@keyframes mark-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(184,145,47,.35);}
  50%    {box-shadow:0 0 0 6px rgba(184,145,47,0);}
}
.task.is-done .task__mark{
  background:linear-gradient(180deg,#f0d68f,#c9a336);
  border-color:var(--gold-deep);
  animation:none;
}
.task.is-done .task__mark::after{transform:rotate(45deg) scale(1);}

.task__title{
  margin:0;
  font-family:'Cinzel',serif;
  font-size:.82rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink);
}
.task__desc{
  margin:.15rem 0 0;
  font-size:.98rem;
  color:var(--ink-soft);
}
.task__status{
  margin:.3rem 0 0;
  min-height:1.2em;
  font-size:.85rem;
  font-style:italic;
  color:var(--gold-deep);
}
.task__acts{display:flex; flex-direction:column; gap:.5rem; align-items:stretch;}
.task__acts .royal-button{
  padding:.6rem 1.1rem;
  font-size:.62rem;
  white-space:nowrap;
  background:linear-gradient(180deg, rgba(58,44,16,.9), rgba(28,22,10,.95));
  color:var(--gold-bright);
  border-color:var(--gold-deep);
}
.task__acts .royal-button[disabled]{
  opacity:.38;
  cursor:not-allowed;
  pointer-events:none;
}
.task.is-done .task__acts .royal-button{opacity:.35; pointer-events:none;}

.tasks__honour{
  margin:0 0 .4rem;
  text-align:center;
  font-size:.82rem;
  font-style:italic;
  color:rgba(92,76,51,.68);
}

/* ── the sealed gate ───────────────────── */
.gate{
  max-height:0;
  opacity:0;
  overflow:hidden;
  transform:translateY(14px);
  pointer-events:none;
  transition:max-height .9s ease, opacity .9s ease, transform .9s ease;
}
.gate.is-open{
  max-height:800px;
  opacity:1;
  transform:none;
  pointer-events:auto;
}
.gate__opened{
  margin:1.6rem 0 1.4rem;
  padding-top:1.6rem;
  border-top:1px solid rgba(138,106,30,.35);
  text-align:center;
  font-size:1.05rem;
  font-style:italic;
  color:var(--ink);
}

.petition{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.5rem clamp(1.2rem,3vw,2.2rem);
}
.field{display:flex; flex-direction:column; gap:.5rem;}
.field--full{grid-column:1 / -1;}
.field__label{
  font-family:'Cinzel',serif;
  font-size:.62rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--gold-deep);
}
.field__label em{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  letter-spacing:0;
  text-transform:none;
  color:var(--ink-soft);
  opacity:.75;
}
.field input,
.field textarea{
  font-family:'Cormorant Garamond',serif;
  font-size:1.05rem;
  color:var(--ink);
  background:rgba(255,252,244,.42);
  border:none;
  border-bottom:1px solid rgba(138,106,30,.55);
  padding:.6rem .2rem;
  resize:vertical;
  transition:border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.field textarea{
  border:1px solid rgba(138,106,30,.35);
  padding:.7rem .8rem;
}
.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--gold-mid);
  background:rgba(255,253,247,.7);
  box-shadow:0 4px 18px rgba(138,106,30,.14);
}
.field input::placeholder,
.field textarea::placeholder{color:rgba(92,76,51,.42);}

.field__error{
  min-height:1.1em;
  font-size:.82rem;
  font-style:italic;
  color:#8a3a1c;
}
.field.is-invalid input{
  border-color:#8a3a1c;
  background:rgba(255,244,236,.6);
}
/* honeypot — visually and audibly absent, but not display:none (bots skip those) */
.field-trap{
  position:absolute;
  width:1px; height:1px;
  margin:-1px; padding:0; border:0;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%);
  white-space:nowrap;
}

.turnstile-slot{
  grid-column:1 / -1;
  display:flex; justify-content:center;
}
.turnstile-slot:empty{display:none;}

.petition__foot{
  grid-column:1 / -1;
  display:flex; flex-direction:column; align-items:center; gap:.9rem;
  margin-top:.8rem;
}
.petition__foot .royal-button{max-width:340px;}
.petition__note{
  margin:0;
  font-size:.78rem;
  font-style:italic;
  color:rgba(92,76,51,.7);
}

/* sealed confirmation */
.decree__inner--sealed{
  display:flex; flex-direction:column; align-items:center;
  text-align:center;
  padding:1.4rem 0;
}
.wax-seal{
  position:relative;
  width:84px; height:84px;
  display:grid; place-items:center;
  margin-bottom:1.6rem;
  border-radius:47% 53% 50% 50%/50% 47% 53% 50%;
  background:radial-gradient(circle at 34% 28%, #e0bb54, #a97f22 46%, #6d4f13 78%, #4a3510 100%);
  box-shadow:
    inset 0 2px 6px rgba(255,240,196,.45),
    inset 0 -5px 12px rgba(0,0,0,.5),
    0 12px 26px rgba(0,0,0,.45);
}
.wax-seal svg{width:100%; height:100%; fill:rgba(58,40,10,.55);}
.sealed__title{
  margin:0 0 .8rem;
  font-family:'Cinzel Decorative','Cinzel',serif;
  font-weight:700;
  font-size:clamp(1.2rem,2.6vw,1.7rem);
  letter-spacing:.04em;
  color:var(--ink);
}
.sealed__text{
  margin:0 0 2rem;
  max-width:44ch;
  font-size:1.05rem;
  color:var(--ink-soft);
}
.decree__inner--sealed .royal-button{
  border-color:var(--gold-deep);
  background:linear-gradient(180deg, rgba(58,44,16,.9), rgba(28,22,10,.95));
  color:var(--gold-bright);
}

/* ══════════════ FOOTER ══════════════ */
.site-footer{
  display:flex; flex-direction:column; align-items:center; gap:1rem;
  padding:clamp(3rem,7vw,5rem) 1.5rem clamp(2.6rem,5vw,3.6rem);
  text-align:center;
  background:var(--black);
  border-top:1px solid rgba(212,175,55,.1);
}
.site-footer__crest{width:38px; height:38px; opacity:.9;}
.site-footer__word{
  margin:0;
  font-family:'Cinzel',serif;
  font-size:.68rem;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--gold-light);
  opacity:.85;
}
.site-footer__fine{
  margin:.4rem 0 0;
  font-size:.76rem;
  color:rgba(201,191,166,.4);
}
.site-footer .gold-divider{margin-bottom:.6rem;}

/* ══════════════ REVEAL ANIMATIONS ══════════════ */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity 1.2s cubic-bezier(.2,.7,.2,1), transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible{opacity:1; transform:none;}

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width:900px){
  .chapter__body{grid-template-columns:1fr;}
  .chapter--reverse .chapter__body{direction:ltr;}
  .chapter--reverse .chapter__body > .chapter__text{order:2;}
  .petition{grid-template-columns:1fr;}
  .hero__note--bl{max-width:26ch;}
}

@media (max-width:900px){
  .task{grid-template-columns:auto 1fr; row-gap:.8rem;}
  .task__acts{grid-column:2 / -1; flex-direction:row; flex-wrap:wrap;}
  .task__acts .royal-button{flex:1 1 auto;}
}

@media (max-width:760px){
  body{font-size:18px;}
  .nav{padding:.9rem 1.1rem; gap:.8rem;}
  .nav__brand span{display:none;}
  .nav__links{gap:.9rem;}
  .nav__links a{font-size:.54rem; letter-spacing:.08em; white-space:nowrap;}
  .hero{padding-top:6rem;}
  .hero__title{
    font-size:clamp(2.6rem,16vw,5rem);
    white-space:normal;      /* wrap rather than crop the wordmark */
    line-height:.98;
  }
  .hero__note--bl{display:none;}
  .hero__note--br{
    left:0; right:0; bottom:1.2rem;
    max-width:none; width:100%;
    padding:0 1.1rem;
    text-align:center;
    font-size:.58rem;
  }
  .hero__actions{width:100%; flex-direction:column; align-items:stretch; padding:0 1rem;}
  .hero__actions .royal-button{width:100%;}
  .initial{font-size:3.2rem;}
  .decree{padding:2.2rem 1.3rem;}
  .decree .frame-corner{width:28px; height:28px;}
}

/* narrow phones — keep the whole nav row, X included, inside the viewport */
@media (max-width:430px){
  .nav{padding:.8rem .65rem; gap:.4rem;}
  .nav__crest{width:22px; height:22px;}
  .nav__links{gap:.6rem;}
  .nav__links a{font-size:.5rem; letter-spacing:.05em;}
  .nav__x{width:30px; height:28px;}
  .nav__x svg{width:12px; height:12px;}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .reveal{opacity:1; transform:none; transition:none;}
  .chapter-header__title{clip-path:none;}
  .gold-divider .draw{stroke-dashoffset:0;}
  .mist,.rays,.hero__emblem,.hero__ring,.forged{animation:none !important;}
  .hero__video{display:none;}
  .royal-button::before{transition:none;}
}
