:root {
  --ink: #1f1614;
  --ink-soft: rgba(31, 22, 20, 0.72);
  --paper: #f3e8d6;
  --paper-soft: rgba(243, 232, 214, 0.82);
  --paper-strong: #fff8ed;
  --clay: #b45e45;
  --clay-deep: #8c3d2c;
  --ochre: #d79a54;
  --sage: #768069;
  --line: rgba(62, 36, 29, 0.14);
  --line-strong: rgba(62, 36, 29, 0.26);
  --shadow: 0 34px 90px rgba(78, 42, 26, 0.14);
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --max-width: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 7rem;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Avenir Next", "Avenir", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215, 154, 84, 0.34), transparent 30%),
    radial-gradient(circle at 85% 8%, rgba(180, 94, 69, 0.18), transparent 24%),
    linear-gradient(180deg, #e8dcc9 0%, #f3e8d6 38%, #efe3d0 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(73, 47, 40, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 47, 40, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 78%);
  pointer-events: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px),
    radial-gradient(circle at 60% 35%, rgba(31, 22, 20, 0.09) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(31, 22, 20, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 30% 75%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px);
  background-size: 26px 26px, 32px 32px, 40px 40px, 36px 36px;
}

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

a {
  color: inherit;
}

a,
summary {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-strong);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.75rem;
}

.topbar.is-scrolled {
  backdrop-filter: blur(18px);
}

.topbar.is-scrolled::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  z-index: -1;
  border-bottom: 1px solid rgba(62, 36, 29, 0.1);
  background: rgba(243, 232, 214, 0.74);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(14rem, 42vw);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.nav a {
  padding: 0.72rem 1rem;
  border: 1px solid rgba(62, 36, 29, 0.14);
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.66);
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  border-color: rgba(180, 94, 69, 0.48);
  box-shadow: 0 10px 24px rgba(110, 63, 40, 0.08);
}

main {
  display: grid;
  gap: 4.5rem;
}

.hero,
.content-section,
.footer {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
  gap: 1.5rem;
  padding-top: 1.2rem;
}

.hero-copy,
.hero-visual,
.content-section,
.footer {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 248, 237, 0.9), rgba(245, 234, 218, 0.92));
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual,
.content-section {
  border-radius: var(--radius-xl);
}

.hero-copy {
  overflow: hidden;
  padding: 2.4rem;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -5rem;
  top: -4rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 94, 69, 0.18), transparent 70%);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--clay-deep);
  font-family: "Futura", "Avenir Next Condensed", "Avenir Next", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
summary {
  margin: 0;
  color: var(--ink);
  font-family: "Baskerville", "Palatino", "Hoefler Text", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 7ch;
  font-size: clamp(3.3rem, 8vw, 6.4rem);
  line-height: 0.9;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.96;
}

h3 {
  font-size: 1.38rem;
  line-height: 1.04;
}

p {
  margin: 0;
  color: rgba(31, 22, 20, 0.8);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-dek {
  max-width: 60ch;
  margin-top: 1rem;
  font-size: 1.12rem;
}

.hero-body {
  max-width: 58ch;
  margin-top: 1rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.6rem;
  padding: 1rem 1.3rem;
  border: 1px solid rgba(62, 36, 29, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--ink) 0%, #4d2f29 100%);
  color: var(--paper-strong);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(67, 34, 20, 0.22);
}

.hero-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2a1a17 0%, #6a3e32 100%);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.fact-card,
.timeline-card,
.power-card,
.story-card,
.power-note,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 251, 246, 0.74);
}

.fact-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.fact-label,
.timeline-era,
.story-kicker {
  color: var(--clay-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact-card strong {
  font-size: 1.06rem;
}

.fact-detail {
  color: rgba(31, 22, 20, 0.58);
  font-size: 0.92rem;
}

.hero-note {
  margin-top: 1.3rem;
  color: rgba(31, 22, 20, 0.62);
  font-size: 0.92rem;
}

.hero-visual {
  overflow: hidden;
  min-height: 640px;
  padding: 1.2rem;
}

.clay-stage {
  position: relative;
  height: 100%;
  min-height: 600px;
  border-radius: calc(var(--radius-xl) - 0.5rem);
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.96), rgba(234, 219, 197, 0.92)),
    radial-gradient(circle at top left, rgba(215, 154, 84, 0.18), transparent 40%);
  overflow: hidden;
}

.clay-stage::before,
.clay-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(62, 36, 29, 0.16);
}

.clay-stage::before {
  inset: auto 1.2rem 1.2rem auto;
  width: 8rem;
  height: 8rem;
  background: radial-gradient(circle, rgba(118, 128, 105, 0.22), transparent 70%);
}

.clay-stage::after {
  inset: 1.2rem auto auto 1.2rem;
  width: 6rem;
  height: 6rem;
  background: radial-gradient(circle, rgba(180, 94, 69, 0.16), transparent 72%);
}

.stage-ring,
.strata,
.clay-profile,
.visual-tag {
  position: absolute;
}

.stage-ring {
  border: 1px solid rgba(62, 36, 29, 0.18);
  border-radius: 50%;
}

.stage-ring-a {
  inset: 14% 16% auto auto;
  width: 20rem;
  height: 20rem;
}

.stage-ring-b {
  inset: auto auto 8% 10%;
  width: 12rem;
  height: 12rem;
}

.stage-ring-c {
  inset: 22% auto auto 12%;
  width: 4rem;
  height: 4rem;
  background: rgba(255, 251, 246, 0.54);
}

.clay-profile {
  left: 50%;
  top: 50%;
  width: 52%;
  height: 74%;
  transform: translate(-50%, -50%);
  border-radius: 47% 53% 38% 62% / 34% 44% 56% 66%;
  background:
    linear-gradient(180deg, rgba(32, 22, 20, 0.96), rgba(74, 43, 34, 0.88));
  box-shadow: 18px 24px 34px rgba(32, 22, 20, 0.18);
}

.clay-profile::before,
.clay-profile::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.clay-profile::before {
  left: 15%;
  top: 20%;
  width: 62%;
  height: 58%;
  background: rgba(243, 232, 214, 0.12);
  filter: blur(2px);
}

.clay-profile::after {
  left: 42%;
  top: 14%;
  width: 18%;
  height: 18%;
  border: 1px solid rgba(255, 248, 237, 0.28);
}

.strata {
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  border-radius: 999px;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.12));
}

.strata-a {
  top: 16%;
  height: 10%;
  background: linear-gradient(90deg, #e6bc80 0%, #b56646 46%, #814032 100%);
}

.strata-b {
  top: 31%;
  width: 48%;
  height: 11%;
  background: linear-gradient(90deg, #cf8d52 0%, #efe6d6 34%, #6d372d 100%);
}

.strata-c {
  top: 48%;
  width: 42%;
  height: 11%;
  background: linear-gradient(90deg, #f3e8d6 0%, #cb7958 48%, #442925 100%);
}

.strata-d {
  top: 65%;
  width: 46%;
  height: 10%;
  background: linear-gradient(90deg, #7b4132 0%, #f0d7b4 52%, #94533f 100%);
}

.visual-tag {
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(62, 36, 29, 0.16);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.78);
  color: rgba(31, 22, 20, 0.72);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.visual-tag-a {
  left: 8%;
  top: 12%;
}

.visual-tag-b {
  right: 9%;
  top: 42%;
}

.visual-tag-c {
  left: 14%;
  bottom: 12%;
}

.content-section {
  padding: 2.1rem;
}

.section-heading {
  display: grid;
  gap: 0.4rem;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.section-copy {
  display: grid;
  gap: 1rem;
}

.timeline-grid,
.story-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timeline-card,
.story-card,
.power-card,
.power-note {
  padding: 1.2rem;
}

.timeline-card p,
.story-card p,
.power-card p,
.power-note p {
  margin-top: 0.8rem;
}

.powers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 1rem;
  margin-top: 2rem;
}

.powers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.faq-list details {
  overflow: hidden;
  padding: 0 1rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-size: 1.22rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary {
  color: var(--clay-deep);
}

.faq-list details p {
  padding: 0 0 1rem;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1rem;
  margin-top: 4.5rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-lg);
}

.footer-meta {
  display: grid;
  gap: 0.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-drift {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -49%) rotate(1deg);
  }
}

@keyframes bob-ring {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.clay-profile {
  animation: float-drift 12s ease-in-out infinite;
}

.stage-ring-a,
.stage-ring-b,
.visual-tag-a,
.visual-tag-b,
.visual-tag-c {
  animation: bob-ring 9s ease-in-out infinite;
}

.stage-ring-b,
.visual-tag-b {
  animation-delay: 1.2s;
}

.visual-tag-c {
  animation-delay: 2.4s;
}

@media (max-width: 1120px) {
  .hero,
  .section-split,
  .powers-layout,
  .footer {
    grid-template-columns: 1fr;
  }

  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(var(--max-width), calc(100% - 1rem));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    width: min(15rem, 62vw);
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-copy,
  .content-section,
  .footer {
    padding: 1.35rem;
  }

  .hero-copy {
    padding-top: 1.7rem;
  }

  h1 {
    max-width: none;
  }

  .hero-facts,
  .powers-grid,
  .story-grid,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
    padding: 0.85rem;
  }

  .clay-stage {
    min-height: 390px;
  }

  .clay-profile {
    width: 58%;
    height: 72%;
  }

  .strata {
    width: 54%;
  }

  .strata-b {
    width: 58%;
  }

  .strata-d {
    width: 60%;
  }

  .visual-tag {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
