:root {
  --void: #0a0705;
  --wall: #140e0a;
  --wall2: #1c140e;
  --gold: #d4a84b;
  --gold-lt: #f3d98a;
  --gold-dim: rgba(212, 168, 75, 0.18);
  --parch: #efe4c8;
  --parch2: #d8c9a4;
  --ink: #2a2016;
  --oxblood: #6e2a24;
  --horn: #c9a06a;
  --glow: 0 0 40px rgba(212, 168, 75, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "EB Garamond", serif;
  color: var(--parch);
  background: var(--wall);
  overflow-x: hidden;
  min-height: 100vh;
}

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

#aether {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

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

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(8, 5, 3, 0.55) 100%);
}

/* custom cursor */
#cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 1.5px solid var(--gold-lt);
  border-radius: 50%;
  z-index: 400;
  pointer-events: none;
  mix-blend-mode: screen;
  box-shadow: 0 0 12px rgba(243, 217, 138, 0.7);
  display: none;
  will-change: transform;
}
#cursor-ring.hot {
  transform: scale(1.8);
  background: rgba(212, 168, 75, 0.12);
}

#pup {
  position: fixed;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  z-index: 399;
  pointer-events: none;
  display: none;
  will-change: transform;
}
#pup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(212, 168, 75, 0.55), 0 6px 16px rgba(0, 0, 0, 0.55);
}
#pup .horn-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 217, 138, 0.35), transparent 70%);
  animation: pulse 2.4s ease-in-out infinite;
}
@media (hover: hover) and (pointer: fine) {
  #pup, #cursor-ring { display: block; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(18, 12, 8, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 168, 75, 0.22);
}
.crest {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gold-lt);
  font-family: "Cinzel", serif;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 700;
}
.crest img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  box-shadow: var(--glow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: var(--parch);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
  transition: color 0.2s, opacity 0.2s, text-shadow 0.2s;
}
.nav-links a:hover {
  color: var(--gold-lt);
  opacity: 1;
  text-shadow: 0 0 12px rgba(243, 217, 138, 0.55);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-size: 18px;
  padding: 4px 10px;
  border-radius: 4px;
}

.plaque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2a2107 !important;
  background: linear-gradient(180deg, #f6e7b6, #c9a24b);
  border: 1px solid #f3d98a;
  padding: 10px 18px;
  border-radius: 3px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(212, 168, 75, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
}
.plaque:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 32px rgba(243, 217, 138, 0.65);
}
.ghost {
  display: inline-flex;
  align-items: center;
  color: var(--gold-lt);
  border: 1px solid rgba(212, 168, 75, 0.55);
  padding: 10px 18px;
  border-radius: 3px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(201, 162, 75, 0.06);
  transition: background 0.18s, box-shadow 0.18s;
}
.ghost:hover {
  background: rgba(201, 162, 75, 0.16);
  box-shadow: 0 0 18px rgba(212, 168, 75, 0.3);
}

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 6vw 80px;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(212, 168, 75, 0.12), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(110, 42, 36, 0.18), transparent 45%),
    var(--wall);
}
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite;
}
.o1 { width: 280px; height: 280px; background: #d4a84b; left: 8%; top: 18%; }
.o2 { width: 360px; height: 360px; background: #6e2a24; right: 6%; top: 28%; animation-delay: -6s; }
.o3 { width: 220px; height: 220px; background: #f3d98a; left: 42%; bottom: 8%; animation-delay: -11s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.ks {
  font-family: "Cinzel", serif;
  letter-spacing: 0.34em;
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
}
h1.serif, h2.serif, .serif {
  font-family: "Cinzel", serif;
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 0.95;
  margin: 14px 0 8px;
  color: transparent;
}
.shimmer {
  background: linear-gradient(100deg, #8a6722 0%, #f6e7b6 22%, #c9a24b 40%, #fff6d4 50%, #c9a24b 62%, #f6e7b6 80%, #8a6722 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}
.ticker {
  font-family: "Cinzel", serif;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.32em;
  color: var(--gold-lt);
  text-shadow: 0 0 24px rgba(243, 217, 138, 0.45);
  margin-bottom: 16px;
}
.tag {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  opacity: 0.82;
  max-width: 34em;
}
.ornament {
  color: var(--gold);
  letter-spacing: 0.4em;
  margin: 22px 0;
  opacity: 0.8;
}

.ca-wrap { margin: 8px 0 22px; }
.ca {
  background: rgba(15, 10, 6, 0.72);
  border: 1px solid rgba(212, 168, 75, 0.4);
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: 0 0 30px rgba(212, 168, 75, 0.08);
}
.ca .lbl {
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.ca .row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ca code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 14px;
  color: var(--parch);
  word-break: break-all;
}
.ca button, .ca-foot button {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f6e7b6, #c9a24b);
  color: #2a2107;
  border: none;
  padding: 8px 14px;
  border-radius: 3px;
  cursor: none;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-mascot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 900px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}
.halo {
  position: absolute;
  width: 78%;
  height: 78%;
  top: 6%;
  border-radius: 50%;
  background: conic-gradient(from 40deg, transparent, rgba(243, 217, 138, 0.55), transparent 40%, rgba(212, 168, 75, 0.4), transparent 75%);
  filter: blur(8px);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.portrait-ring {
  position: relative;
  width: min(420px, 86vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(160deg, #f3d98a, #8a6722 40%, #3a2412);
  box-shadow: 0 0 60px rgba(212, 168, 75, 0.4), 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: floaty 5.5s ease-in-out infinite;
}
.portrait-ring .mascot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--gold-lt);
  border-radius: 50%;
  box-shadow: 0 0 14px #fff6d4;
  animation: twinkle 2.8s ease-in-out infinite;
}
.s1 { top: 12%; right: 16%; animation-delay: 0s; }
.s2 { top: 22%; left: 10%; width: 7px; height: 7px; animation-delay: 0.8s; }
.s3 { bottom: 18%; right: 12%; width: 8px; height: 8px; animation-delay: 1.6s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.25); }
}
.nameplate {
  margin-top: 22px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
}

.marquee {
  border-block: 1px solid rgba(212, 168, 75, 0.28);
  background: var(--wall2);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}
.marquee-track {
  display: inline-flex;
  animation: slide 32s linear infinite;
  font-family: "Cinzel", serif;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--gold);
}
.marquee-track span { padding-right: 2em; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 9vw, 110px) clamp(20px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}

.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 52px);
  color: var(--parch);
  margin-top: 10px;
}
.sec-head p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 19px;
  opacity: 0.7;
  margin-top: 8px;
}

.lore-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
}
.lore-card {
  background: linear-gradient(180deg, rgba(36, 26, 18, 0.9), rgba(18, 12, 8, 0.9));
  border: 1px solid rgba(212, 168, 75, 0.28);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}
.lore-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(212, 168, 75, 0.22), 0 24px 50px rgba(0, 0, 0, 0.4);
}
.lore-card .frame {
  aspect-ratio: 1;
  overflow: hidden;
}
.lore-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}
.lore-card:hover .frame img { transform: scale(1.05); }
.lore-card .frame.horned {
  box-shadow: inset 0 0 40px rgba(212, 168, 75, 0.35);
}
.lore-meta { padding: 22px 22px 28px; }
.year {
  font-family: "Cinzel", serif;
  color: var(--gold);
  letter-spacing: 0.24em;
  font-size: 11px;
}
.lore-meta h3 {
  font-family: "Cinzel", serif;
  font-size: 26px;
  margin: 6px 0 12px;
}
.lore-meta p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(239, 228, 200, 0.88);
  margin-bottom: 12px;
}
.lore-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  gap: 8px;
}
.lore-arrow strong {
  font-size: 32px;
  text-shadow: 0 0 18px rgba(243, 217, 138, 0.7);
  animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

.edict {
  margin: 56px auto 0;
  max-width: 720px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--gold-lt);
  line-height: 1.45;
  text-shadow: 0 0 24px rgba(212, 168, 75, 0.25);
}
.edict cite {
  display: block;
  margin-top: 16px;
  font-family: "Cinzel", serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.grand-frame {
  position: relative;
  border: 10px solid #3a2a16;
  outline: 1px solid var(--gold);
  box-shadow:
    0 0 0 8px #1a120c,
    0 0 0 9px rgba(212, 168, 75, 0.5),
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(212, 168, 75, 0.15);
  overflow: hidden;
}
.grand-frame img {
  width: 100%;
  display: block;
  filter: saturate(1.08) contrast(1.05);
}
.grand-frame figcaption,
.gallery figcaption {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  text-align: center;
  padding: 14px 12px 0;
  opacity: 0.75;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.gallery figure {
  background: var(--wall2);
  border: 1px solid rgba(212, 168, 75, 0.25);
  padding: 10px 10px 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(212, 168, 75, 0.25);
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.tok-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tok {
  background: linear-gradient(180deg, rgba(36, 26, 18, 0.95), rgba(14, 10, 7, 0.95));
  border: 1px solid rgba(212, 168, 75, 0.28);
  padding: 26px 20px;
  border-radius: 8px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.tok:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(212, 168, 75, 0.22);
}
.tok span {
  font-family: "Cinzel", serif;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
}
.tok h3 {
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 10px 0 8px;
  opacity: 0.7;
}
.tok p { font-size: 22px; color: var(--gold-lt); }

.acq {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201, 162, 75, 0.3);
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: 6px;
  overflow: hidden;
}
.acq .step {
  background: var(--wall2);
  padding: 32px 24px;
}
.rn {
  font-family: "Cinzel", serif;
  color: var(--gold);
  font-size: 22px;
  margin-bottom: 10px;
}
.acq h3 {
  font-family: "Cinzel", serif;
  font-size: 20px;
  margin-bottom: 10px;
}
.acq p { font-size: 17px; line-height: 1.6; opacity: 0.85; }
.acq a { color: var(--gold-lt); }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 24px 48px;
  background: var(--wall2);
  border-top: 2px solid rgba(201, 162, 75, 0.4);
}
.foot-crest {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: var(--glow);
  margin-bottom: 18px;
}
footer h2 {
  font-size: clamp(34px, 6vw, 64px);
  margin-bottom: 8px;
}
.seals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
}
.seals a {
  color: var(--gold-lt);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  border: 1px solid rgba(201, 162, 75, 0.45);
  padding: 10px 16px;
  border-radius: 3px;
  transition: background 0.18s;
}
.seals a:hover { background: rgba(201, 162, 75, 0.12); }
.ca-foot {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  margin-bottom: 18px;
  color: var(--parch2);
}
.ca-foot button {
  background: none;
  border: none;
  color: var(--gold-lt);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.disc {
  max-width: 720px;
  margin: 0 auto;
  font-size: 14px;
  opacity: 0.55;
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.lit {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .lore-grid,
  .tok-grid,
  .acq,
  .gallery { grid-template-columns: 1fr; }
  .lore-arrow { flex-direction: row; padding: 8px 0; }
  .lore-arrow strong { transform: rotate(90deg); }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    flex-direction: column;
    background: rgba(18, 12, 8, 0.96);
    border: 1px solid rgba(212, 168, 75, 0.3);
    padding: 16px;
    min-width: 200px;
  }
  .nav-links.open { display: flex; }
  nav { padding: 12px 16px; }
  .hero { padding-top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
