@font-face {
  font-family: "Henceforth Serif";
  src: url('./fonts/HenceforthSerif-Variable.woff') format('woff');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Henceforth Sans";
  src: url('./fonts/Inter-Variable.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink-0: #080705;
  --ink-1: #0f0d0a;
  --ink-2: #17140f;
  --ink-3: #221d15;
  --parchment: #f4e8cd;
  --text-2: #cdbf9f;
  --text-3: #978b72;
  --gold: #d8b36a;
  --gold-hi: #f6d994;
  --gold-deep: #9f7431;
  --ember: #ee621e;
  --line: rgb(216 179 106 / 0.16);
  --line-strong: rgb(216 179 106 / 0.38);
  --serif: "Henceforth Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Henceforth Sans", Inter, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --content: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--parchment);
  background: var(--ink-0);
  font: 400 1rem / 1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 15% 40%, rgb(159 116 49 / 0.07), transparent 70%),
    radial-gradient(900px 600px at 90% 75%, rgb(238 98 30 / 0.05), transparent 70%),
    var(--ink-0);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
strong { color: var(--parchment); font-weight: 650; }
em { font-style: normal; }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  color: var(--ink-0);
  background: var(--gold-hi);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--gold);
  font: 700 0.72rem / 1.2 var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.kicker-rule {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker-rule:not(:first-child) { background: linear-gradient(90deg, var(--gold), transparent); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 650 0.95rem / 1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 220ms var(--ease), background-color 180ms ease, border-color 180ms ease, filter 180ms ease;
}
.button span { transition: transform 180ms var(--ease); }
.button:hover span { transform: translateX(3px); }
.button-large { min-height: 54px; padding: 0.95rem 1.7rem; font-size: 1.02rem; }

.button-gold {
  border-color: rgb(255 231 170 / 0.55);
  color: #1d1307;
  background: linear-gradient(180deg, #f8dd9c 0%, #dcb262 48%, #b0843a 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55), inset 0 -2px 0 rgb(92 60 18 / 0.35), 0 10px 30px -8px rgb(238 98 30 / 0.55);
}
.button-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), inset 0 -2px 0 rgb(92 60 18 / 0.35), 0 16px 40px -8px rgb(238 98 30 / 0.7);
}

.button-ghost {
  border-color: rgb(246 217 148 / 0.4);
  color: var(--parchment);
  background: rgb(20 16 10 / 0.45);
  backdrop-filter: blur(8px);
}
.button-ghost:hover { transform: translateY(-2px); border-color: var(--gold-hi); background: rgb(216 179 106 / 0.12); }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgb(8 7 5 / 0.75), transparent);
  transition: background-color 260ms ease, border-color 260ms ease, height 260ms var(--ease);
}
.nav.is-scrolled {
  height: 64px;
  border-bottom-color: var(--line);
  background: rgb(10 9 7 / 0.84);
  backdrop-filter: blur(14px) saturate(1.2);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font: 650 1.2rem / 1 var(--serif);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-mark { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong), 0 4px 14px rgb(238 98 30 / 0.35); }

.nav-links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 0.5rem 0.8rem;
  color: var(--text-2);
  font: 550 0.9rem / 1 var(--sans);
  text-decoration: none;
  transition: color 160ms ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  right: 0.8rem;
  bottom: 0.2rem;
  left: 0.8rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 220ms var(--ease);
}
.nav-links a:hover { color: var(--parchment); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 40px; padding: 0.6rem 1.1rem; font-size: 0.88rem; }

.hero {
  position: relative;
  display: grid;
  min-height: max(100svh, 720px);
  place-items: center;
  padding: 120px var(--gutter) 190px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero-backdrop { position: absolute; inset: 0; z-index: -1; }
.hero-realm {
  position: absolute;
  inset: -4%;
  width: 108%;
  max-width: none;
  height: 108%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08) brightness(0.86);
  animation: realm-drift 70s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes realm-drift {
  from { transform: scale(1.04) translate3d(-1.6%, -1.2%, 0); }
  to { transform: scale(1.16) translate3d(2.2%, 1.6%, 0); }
}

.hero-fog {
  position: absolute;
  inset: -20% -40%;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
  background:
    radial-gradient(40% 18% at 30% 60%, rgb(210 200 180 / 0.16), transparent 70%),
    radial-gradient(35% 14% at 70% 40%, rgb(200 190 170 / 0.12), transparent 70%);
  animation: fog-roll 48s linear infinite;
}
.hero-fog-two { opacity: 0.35; animation-duration: 76s; animation-direction: reverse; transform: translateY(12%); }

@keyframes fog-roll {
  from { translate: -12% 0; }
  to { translate: 12% 0; }
}

.hero-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgb(8 7 5 / 0.2), rgb(8 7 5 / 0.82) 100%),
    linear-gradient(180deg, rgb(8 7 5 / 0.55) 0%, transparent 22%, transparent 55%, var(--ink-0) 100%);
}

.hero-inner { display: grid; justify-items: center; gap: 1.4rem; max-width: 900px; }

.hero-emblem { position: relative; display: grid; width: 148px; height: 148px; place-items: center; margin-bottom: 0.3rem; }
.hero-emblem img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgb(8 7 5 / 0.8), 0 0 60px rgb(238 98 30 / 0.45), 0 18px 40px rgb(0 0 0 / 0.6);
}
.hero-emblem-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 12%, var(--gold-hi) 20%, transparent 32% 58%, var(--gold) 70%, transparent 82%);
  mask: radial-gradient(circle, transparent 66px, #000 67px, #000 72px, transparent 73px);
  animation: ring-turn 14s linear infinite;
}

@keyframes ring-turn { to { transform: rotate(1turn); } }

.hero-kicker { color: var(--gold-hi); text-shadow: 0 1px 12px rgb(0 0 0 / 0.8); }

.hero h1 { display: grid; justify-items: center; gap: 0.6rem; }
.hero-wordmark {
  display: block;
  padding-left: 0.2em;
  background: linear-gradient(180deg, #fff3d4 0%, #f2d38c 45%, #b8873a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 650 clamp(2.6rem, 9vw, 7.4rem) / 0.92 var(--serif);
  font-variation-settings: "opsz" 60;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  filter: drop-shadow(0 6px 30px rgb(0 0 0 / 0.75)) drop-shadow(0 0 24px rgb(238 98 30 / 0.2));
}
.hero-tagline {
  color: var(--parchment);
  font: 500 clamp(1.35rem, 3vw, 2.3rem) / 1.2 var(--serif);
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.9);
}
.hero-tagline em { color: var(--gold-hi); }

.hero-lede {
  max-width: 44rem;
  color: #e4d7ba;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.7;
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.95);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 0.6rem; }

.hero-meta { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text-2); font-size: 0.85rem; letter-spacing: 0.02em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ad08a; box-shadow: 0 0 0 4px rgb(106 208 138 / 0.18); animation: pulse 2.4s ease-in-out infinite; }

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(106 208 138 / 0); } }

.hero-stats {
  position: absolute;
  bottom: 64px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(760px, calc(100% - 2 * var(--gutter)));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(12 10 8 / 0.62);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.hero-stats div { display: grid; gap: 0.15rem; padding: 0.9rem 0.5rem; }
.hero-stats div + div { border-left: 1px solid var(--line); }
.hero-stats dt { order: 2; color: var(--text-3); font: 650 0.68rem / 1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; }
.hero-stats dd { margin: 0; color: var(--gold-hi); font: 600 1.9rem / 1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }

.scroll-cue { position: absolute; bottom: 18px; left: 50%; display: grid; width: 26px; height: 40px; place-items: start center; padding-top: 7px; border: 1px solid var(--line-strong); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: var(--gold-hi); animation: cue 2s var(--ease) infinite; }

@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.section { position: relative; width: min(var(--content), 100%); margin: 0 auto; padding: clamp(5rem, 10vw, 8.5rem) var(--gutter) 0; }

.section-head { display: grid; justify-items: center; gap: 1.1rem; max-width: 50rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head-left { justify-items: start; margin: 0; text-align: left; }
.section-head h2 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); line-height: 1.06; font-variation-settings: "opsz" 48; }
.section-head h2 em,
.empire h2 em {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head > p:not(.kicker) { max-width: 42rem; color: var(--text-2); font-size: 1.06rem; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.pillar {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 2rem 1.75rem 2.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(34 29 21 / 0.9), rgb(15 13 10 / 0.9));
  overflow: hidden;
  transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms ease;
}
.pillar::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.5; }
.pillar:hover { border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgb(238 98 30 / 0.45); transform: translateY(-6px); }
.pillar-art { width: 104px; height: 104px; margin-bottom: 0.6rem; border-radius: 22px; box-shadow: 0 0 0 1px var(--line-strong), 0 12px 30px rgb(0 0 0 / 0.55); overflow: hidden; }
.pillar-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.pillar:hover .pillar-art img { transform: scale(1.08); }
.pillar-index { position: absolute; top: 1.2rem; right: 1.5rem; color: rgb(216 179 106 / 0.14); font: 600 4.2rem / 1 var(--serif); }
.pillar h3 { font-size: 1.7rem; }
.pillar p:last-child { color: var(--text-2); }

.showcase-frame {
  position: relative;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(150deg, #4a3718, #16110a 38%, #1b150d 62%, #4a3718);
  box-shadow: 0 0 0 1px rgb(246 217 148 / 0.28), 0 50px 120px -40px rgb(0 0 0 / 0.9), 0 0 120px -40px rgb(238 98 30 / 0.35);
}
.showcase-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 0 12px; }
.showcase-tabs button {
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-2);
  background: transparent;
  font: 600 0.88rem / 1 var(--sans);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.showcase-tabs button:hover { color: var(--parchment); background: rgb(216 179 106 / 0.08); }
.showcase-tabs button[aria-selected="true"] { border-color: var(--line-strong); color: var(--gold-hi); background: rgb(216 179 106 / 0.12); }
.showcase-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--ink-1); overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.6); }
.showcase-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity 600ms ease, transform 900ms var(--ease); }
.showcase-screen img.is-active { opacity: 1; transform: none; }
.showcase-caption { padding: 14px 6px 2px; color: var(--text-2); font-size: 0.95rem; text-align: center; }

html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
