:root {
  --ink: #050706;
  --ink-soft: #0b0f0d;
  --ivory: #f2efe6;
  --muted: #a8aaa4;
  --gold: #dcae39;
  --gold-light: #ffe28a;
  --green: #8dff18;
  --line: rgba(220, 174, 57, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 75% 22%, rgba(104, 255, 15, 0.09), transparent 24rem),
    linear-gradient(135deg, #030403 0%, #090c0a 48%, #020302 100%);
  font-family: Inter, Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.19;
  background-image:
    linear-gradient(112deg, transparent 0 47%, rgba(255,255,255,.08) 47.15%, transparent 47.3%),
    linear-gradient(24deg, transparent 0 62%, rgba(255,255,255,.05) 62.1%, transparent 62.25%);
  background-size: 29rem 31rem, 23rem 27rem;
}

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

a { color: inherit; }

.topbar {
  width: min(1380px, calc(100% - 48px));
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: .12em;
}

.brand-coin {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  box-shadow: inset 0 0 0 4px #111, 0 0 18px rgba(220,174,57,.2);
  font-size: 13px;
  letter-spacing: 0;
}

nav { display: flex; gap: 32px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .22em;
  transition: color .25s ease;
}
nav a:hover, nav a:focus-visible { color: var(--gold-light); }

main { position: relative; z-index: 2; }

.hero {
  width: min(1380px, calc(100% - 48px));
  min-height: calc(100vh - 88px);
  margin: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 3vw;
  padding: 62px 0 70px;
}

.hero-copy { z-index: 3; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3em;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  background: var(--gold);
}

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; }

h1 {
  margin: 0;
  font-size: clamp(4.25rem, 9.1vw, 9.4rem);
  line-height: .72;
  letter-spacing: -.075em;
  text-shadow: 0 8px 30px #000;
}

h1 span {
  display: block;
  margin-left: .25em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  text-shadow: 0 0 34px rgba(220,174,57,.16);
}

.ticker {
  margin: 28px 0 8px;
  color: var(--green);
  font: 800 1.05rem/1 Inter, Arial, sans-serif;
  letter-spacing: .34em;
}

.intro {
  max-width: 590px;
  margin: 18px 0 34px;
  color: #c4c7c0;
  font: 1.08rem/1.72 Georgia, serif;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stone-button {
  min-height: 58px;
  padding: 8px 20px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  border: 1px solid #7c5a16;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.stone-button:hover { transform: translateY(-3px); filter: brightness(1.12); }
.stone-button:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.stone-button.gold {
  color: #111;
  background: linear-gradient(135deg, #8b5c0d, #ffdc72 38%, #b37713 74%, #efd46c);
  box-shadow: 0 10px 32px rgba(220,174,57,.13);
}

.stone-button.dark { background: linear-gradient(135deg, #222923, #090b0a); }

.button-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 17px;
}

.ca-plaque {
  width: min(100%, 590px);
  margin-top: 16px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  color: var(--ivory);
  background: rgba(2,4,3,.72);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, background .2s ease;
}

.ca-plaque:hover { border-color: var(--gold); background: rgba(220,174,57,.06); }
.ca-label, .copy-state { font-size: 10px; font-weight: 900; letter-spacing: .18em; color: var(--gold-light); }
.ca-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px/1 monospace; color: #c9cdc8; }
.copy-state { color: var(--green); }

.portrait-stage {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.portrait-stage img {
  width: 91%;
  height: 91%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 24px 42px #000) drop-shadow(0 0 22px rgba(129,255,30,.13));
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .14s ease-out;
  z-index: 2;
}

.halo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.halo-outer {
  inset: 1%;
  border: 1px solid rgba(220,174,57,.45);
  box-shadow: 0 0 60px rgba(220,174,57,.13), inset 0 0 40px rgba(220,174,57,.08);
  animation: spin 28s linear infinite;
}

.halo-outer::before, .halo-outer::after {
  content: "✦";
  position: absolute;
  left: 50%;
  color: var(--gold);
  font-size: 22px;
  transform: translateX(-50%);
}
.halo-outer::before { top: -13px; }
.halo-outer::after { bottom: -13px; }
.halo-inner { inset: 8%; border: 1px dashed rgba(220,174,57,.23); animation: spin 42s linear infinite reverse; }

.green-aura {
  position: absolute;
  right: -4%;
  bottom: 9%;
  width: 44%;
  height: 48%;
  background: radial-gradient(ellipse at bottom, rgba(123,255,14,.34), transparent 67%);
  filter: blur(20px);
  animation: breathe 3.4s ease-in-out infinite;
}

.portrait-seal {
  position: absolute;
  right: 0;
  bottom: 13%;
  width: 78px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  background: #090b09;
  font: 700 10px/1 Georgia, serif;
  letter-spacing: .16em;
  z-index: 4;
  transform: rotate(9deg);
}

.legend {
  width: min(1220px, calc(100% - 48px));
  margin: 40px auto 0;
  padding: 110px 0;
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  gap: 38px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.section-number { color: var(--gold); font: italic 4.6rem/1 Georgia, serif; opacity: .35; }
.legend h2, .creed h2 { margin: 0; font-size: clamp(3.1rem, 6vw, 6.6rem); line-height: .88; letter-spacing: -.045em; }
.legend h2 em { color: var(--gold-light); font-weight: 400; }
.legend-text { max-width: 500px; color: #b8bbb5; font: 1.28rem/1.65 Georgia, serif; }

.pillars {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.pillar {
  min-height: 290px;
  padding: 38px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(255,255,255,.015);
  overflow: hidden;
}
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -70px;
  border: 1px solid rgba(220,174,57,.17);
  border-radius: 50%;
}
.pillar.featured { background: linear-gradient(145deg, rgba(136,255,24,.075), rgba(220,174,57,.03)); }
.roman { position: absolute; top: 28px; left: 34px; color: var(--gold); font: italic 2.8rem/1 Georgia, serif; opacity: .48; }
.pillar h3 { margin: 0 0 13px; font-size: 1.75rem; color: var(--gold-light); }
.pillar p { margin: 0; max-width: 260px; color: #9fa39c; line-height: 1.55; }

.creed {
  min-height: 710px;
  padding: 100px 24px 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(4,6,5,.83), rgba(4,6,5,.94)),
    url('assets/banner.png') center/cover no-repeat;
  border-top: 1px solid var(--line);
}

.torch { width: 74px; height: 92px; position: relative; margin-bottom: 30px; }
.torch::after { content: ""; position: absolute; left: 29px; bottom: 0; width: 16px; height: 50px; background: linear-gradient(90deg,#84590f,#ffe083,#9b6813); clip-path: polygon(10% 0,90% 0,70% 100%,30% 100%); }
.torch span { position: absolute; left: 19px; top: 0; width: 38px; height: 50px; background: radial-gradient(circle at 50% 72%, #eaffb8 0 8%, #97ff16 25%, #2ac000 53%, transparent 72%); filter: drop-shadow(0 0 16px #6dff11); border-radius: 70% 30% 66% 34% / 62% 45% 55% 38%; animation: flame 1.8s ease-in-out infinite alternate; }
.creed h2 span { color: var(--green); text-shadow: 0 0 25px rgba(129,255,22,.28); }
.creed > p:not(.eyebrow) { max-width: 660px; margin: 28px auto 38px; color: #b7bbb4; font: 1.15rem/1.7 Georgia, serif; }
.final-link { padding: 17px 28px; color: #070907; background: var(--green); text-decoration: none; font-size: 12px; font-weight: 900; letter-spacing: .18em; box-shadow: 0 0 34px rgba(130,255,19,.2); transition: transform .2s ease, box-shadow .2s ease; }
.final-link:hover { transform: translateY(-3px); box-shadow: 0 0 44px rgba(130,255,19,.34); }

footer {
  width: min(1380px, calc(100% - 48px));
  min-height: 90px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #777c75;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .55; transform: scale(.92); } }
@keyframes flame { to { transform: scaleX(.86) rotate(4deg) translateY(-3px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { text-align: center; }
  .intro { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .ca-plaque { margin-left: auto; margin-right: auto; }
  .portrait-stage { width: min(100%, 650px); justify-self: center; order: -1; margin-bottom: -30px; }
  h1 { font-size: clamp(4rem, 17vw, 8rem); }
  .legend { grid-template-columns: 45px 1fr; padding: 86px 0; }
  .legend-text { grid-column: 2; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .topbar, .hero, .legend, .pillars, footer { width: min(100% - 30px, 1380px); }
  .topbar { height: 72px; }
  .brand { font-size: 13px; }
  .brand-coin { width: 36px; height: 36px; }
  nav { gap: 16px; }
  nav a { font-size: 10px; letter-spacing: .13em; }
  .hero { min-height: auto; padding: 44px 0 72px; }
  .portrait-stage { margin-bottom: 0; }
  .portrait-seal { right: 2%; width: 65px; }
  .actions { flex-direction: column; }
  .stone-button { justify-content: center; width: 100%; }
  .ca-plaque { grid-template-columns: 1fr auto; }
  .ca-label { grid-column: 1 / -1; }
  .legend { grid-template-columns: 1fr; gap: 16px; }
  .section-number { display: none; }
  .legend-text { grid-column: auto; }
  .pillar { min-height: 240px; padding: 30px; }
  .creed { min-height: 620px; }
  footer { padding: 26px 0; flex-direction: column; text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
