@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --ink: #17130f;
  --night: #12100e;
  --night-soft: #1d1915;
  --sand: #d9c39b;
  --sand-light: #f0e5cf;
  --parchment: #f4ecdc;
  --gold: #b9873a;
  --gold-bright: #d6ac64;
  --terracotta: #8c3e2b;
  --muted: #766f65;
  --line: rgba(39, 29, 20, .16);
  --white: #fffaf1;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --shadow: 0 30px 70px rgba(34, 23, 12, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  z-index: 9999;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px clamp(24px, 5vw, 80px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.site-header.scrolled {
  position: fixed;
  color: var(--ink);
  background: rgba(244,236,220,.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(20,14,8,.1);
  animation: drop .35s ease;
}
@keyframes drop { from { transform: translateY(-100%); } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
}
.brand img { filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-family: var(--serif); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.brand small { margin-top: 5px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; opacity: .7; }

.main-nav { display: flex; gap: clamp(24px, 3vw, 46px); }
.main-nav a {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -8px;
  height: 1px;
  background: var(--gold-bright);
  transition: right .3s ease;
}
.main-nav a:hover::after { right: 0; }

.header-cta {
  justify-self: end;
  padding: 11px 17px;
  border: 1px solid currentColor;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.menu-toggle { display: none; }

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 140px clamp(24px, 8vw, 140px) 90px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11,9,7,.94) 0%, rgba(14,10,7,.72) 50%, rgba(12,9,7,.32) 100%),
    radial-gradient(circle at 76% 38%, rgba(199,143,62,.26), transparent 28%),
    linear-gradient(130deg, #2b2016, #15120f 64%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(90deg, transparent 0 49.8%, rgba(255,255,255,.12) 50%, transparent 50.2%),
    linear-gradient(transparent 0 49.8%, rgba(255,255,255,.08) 50%, transparent 50.2%);
  background-size: 120px 120px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -4vw;
  bottom: -80px;
  width: min(58vw, 900px);
  height: 88%;
  opacity: .8;
  background: url("assets/persian-relief.svg") center bottom / contain no-repeat;
  filter: sepia(.15) drop-shadow(-30px 30px 60px rgba(0,0,0,.55));
}

.hero-sun {
  position: absolute;
  right: 14vw;
  top: 16%;
  width: 360px;
  aspect-ratio: 1;
  border: 1px solid rgba(214,172,100,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(214,172,100,.04), 0 0 0 130px rgba(214,172,100,.025);
}
.hero-columns {
  position: absolute;
  right: 4vw;
  bottom: 0;
  width: 34vw;
  height: 70%;
  opacity: .25;
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(240,229,207,.5) 39px 42px, transparent 43px 76px);
  mask-image: linear-gradient(to top, black, transparent 96%);
}
.hero-content { position: relative; z-index: 2; width: min(720px, 62vw); }
.eyebrow {
  margin: 0 0 20px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.hero h1, h2, h3 { font-family: var(--serif); }
.hero h1 {
  margin: 0;
  font-size: clamp(58px, 8.5vw, 132px);
  line-height: .92;
  font-weight: 600;
  letter-spacing: -.035em;
}
.hero h1 span { color: var(--sand); }
.hero-copy {
  max-width: 620px;
  margin: 32px 0 36px;
  color: rgba(255,250,241,.74);
  font-size: 17px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: .25s ease;
}
.button-primary { background: var(--gold); color: #160f08; }
.button-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.button-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.button-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.hero-stat {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 6vw, 96px);
  bottom: 76px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.stat-number { font-family: var(--serif); font-size: clamp(42px, 5vw, 76px); line-height: 1; color: var(--sand); }
.stat-label { max-width: 140px; margin-top: 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; text-align: right; color: rgba(255,255,255,.58); }
.scroll-mark {
  position: absolute;
  z-index: 3;
  left: 35px;
  bottom: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: rotate(-90deg);
  transform-origin: left bottom;
  color: rgba(255,255,255,.55);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.scroll-mark i { display: block; width: 58px; height: 1px; background: currentColor; }

.section { padding: 120px clamp(24px, 7vw, 120px); }
.section-dark { padding: 120px clamp(24px, 7vw, 120px); color: var(--white); background: var(--night); }
.section-label {
  margin-bottom: 65px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.section-heading h2, .intro-heading h2, .culture-copy h2, .map-copy h2 {
  margin: 0;
  font-size: clamp(40px, 5.8vw, 82px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.section-heading > p:last-child, .centred > p:last-child { color: var(--muted); max-width: 680px; }
.centred { max-width: 920px; margin: 0 auto 72px; text-align: center; }
.centred > p:last-child { margin: 20px auto 0; }

.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 9vw; align-items: start; }
.intro-copy { padding-top: 54px; color: #544d45; font-size: 16px; }
.intro-copy p:first-child { font-size: 20px; color: var(--ink); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.text-link span { font-size: 20px; transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }

.feature-banner {
  position: relative;
  height: min(620px, 58vw);
  min-height: 380px;
  margin-top: 95px;
  overflow: hidden;
  background: #2b2118;
  box-shadow: var(--shadow);
}
.feature-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.feature-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(12,8,5,.85)); }
.feature-caption { position: absolute; left: 38px; bottom: 34px; color: var(--white); }
.feature-caption span { display: block; color: var(--gold-bright); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.feature-caption strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: clamp(22px, 3vw, 40px); font-weight: 500; }

.timeline-section { position: relative; overflow: hidden; }
.timeline-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .06;
  background: url("assets/royal-emblem.svg") center / 560px no-repeat;
}
.timeline { position: relative; max-width: 1080px; margin: auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 196px; width: 1px; background: rgba(255,255,255,.18); }
.timeline-item { display: grid; grid-template-columns: 160px 1fr; gap: 74px; position: relative; padding: 34px 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 190px;
  top: 50px;
  width: 13px; height: 13px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--night);
}
.timeline-year { padding-top: 4px; color: var(--gold-bright); font-family: var(--serif); font-size: 15px; text-align: right; }
.timeline-item h3 { margin: 0 0 8px; font-size: 25px; font-weight: 500; }
.timeline-item p { margin: 0; color: rgba(255,255,255,.56); max-width: 620px; }

.kings .section-heading { margin-bottom: 60px; }
.king-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; }
.king-card {
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
  box-shadow: var(--shadow);
}
.king-card-large { grid-row: span 2; min-height: 1146px; }
.king-art { position: absolute; inset: 0; transition: transform .8s ease; }
.king-card:hover .king-art { transform: scale(1.035); }
.king-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(13,9,6,.92) 92%); }
.king-art.cyrus {
  background:
    radial-gradient(circle at 50% 30%, rgba(212,168,96,.28), transparent 25%),
    url("assets/king-cyrus.svg") center 20% / cover no-repeat,
    #2d2118;
}
.king-art.darius {
  background:
    radial-gradient(circle at 60% 20%, rgba(212,168,96,.24), transparent 25%),
    url("assets/Darius_I.jpg") center / cover no-repeat,
    #322016;
}
.king-art.xerxes {
  background:
    radial-gradient(circle at 55% 20%, rgba(212,168,96,.20), transparent 25%),
    url("assets/king-xerxes.svg") center / cover no-repeat,
    #221d18;
}
.king-content { position: relative; z-index: 2; width: 100%; padding: 42px; }
.king-number {
  position: absolute; right: 34px; top: -54px;
  color: rgba(255,255,255,.18);
  font-family: var(--serif); font-size: 80px;
}
.king-content h3 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 58px); line-height: 1; font-weight: 500; }
.king-content > p:not(.eyebrow) { max-width: 540px; color: rgba(255,255,255,.65); }
.card-link {
  padding: 0;
  border: 0;
  color: var(--gold-bright);
  background: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.card-link span { margin-left: 10px; font-size: 17px; }

.empire-map { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; align-items: center; }
.map-copy > p:not(.eyebrow) { max-width: 540px; color: rgba(255,255,255,.6); }
.map-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.map-stats div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.map-stats strong { display: block; color: var(--sand); font-family: var(--serif); font-size: 24px; }
.map-stats span { display: block; margin-top: 3px; color: rgba(255,255,255,.42); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.map-panel { position: relative; }
.map-panel img { width: 100%; opacity: .88; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.map-point {
  position: absolute;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.map-point span {
  display: block;
  width: 11px; height: 11px;
  margin: 0 auto 4px;
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 5px rgba(214,172,100,.13);
}
.point-susa { left: 55%; top: 57%; }
.point-persepolis { left: 62%; top: 68%; }
.point-babylon { left: 48%; top: 57%; }
.point-sardis { left: 21%; top: 41%; }

.split-heading { display: grid; grid-template-columns: 1fr .7fr; gap: 8vw; align-items: end; margin-bottom: 70px; }
.split-heading > p { color: var(--muted); }
.city-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 22px; }
.city-card { background: #e6d8bf; overflow: hidden; }
.city-image { height: 420px; background-size: cover; background-position: center; transition: transform .7s ease; }
.city-card:hover .city-image { transform: scale(1.04); }
.city-persepolis .city-image { background-image: url("assets/city-persepolis.svg"); }
.city-susa .city-image { background-image: url("assets/city-susa.svg"); }
.city-pasargadae .city-image { background-image: url("assets/city-pasargadae.svg"); }
.city-content { padding: 28px; border-top: 3px solid var(--gold); }
.city-content span { color: var(--terracotta); font-size: 10px; letter-spacing: .18em; }
.city-content h3 { margin: 10px 0; font-size: 30px; }
.city-content p { margin: 0; color: var(--muted); font-size: 14px; }

.culture { display: grid; grid-template-columns: 1fr 1fr; min-height: 790px; padding: 0; background: #e5d5b9; }
.culture-visual {
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #2a2119, #15120f);
}
.culture-visual img { width: min(88%, 620px); filter: drop-shadow(0 30px 35px rgba(0,0,0,.45)); }
.culture-copy { display: flex; flex-direction: column; justify-content: center; padding: 90px clamp(34px, 7vw, 100px); }
.culture-copy > p:not(.eyebrow) { max-width: 600px; color: #625a51; }
.culture-list { margin-top: 34px; border-top: 1px solid var(--line); }
.culture-list div { display: flex; gap: 25px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.culture-list span { color: var(--terracotta); font-size: 10px; letter-spacing: .15em; }
.culture-list strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }

.quote-section {
  position: relative;
  padding: 140px 12vw;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(rgba(28,17,11,.92), rgba(28,17,11,.92)), url("assets/persian-relief.svg") center / cover;
}
.quote-mark { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); color: rgba(214,172,100,.16); font-family: Georgia; font-size: 240px; line-height: 1; }
blockquote { position: relative; max-width: 1060px; margin: 0 auto; font-family: var(--serif); font-size: clamp(28px, 4.2vw, 58px); line-height: 1.35; }
.quote-section > p { margin-top: 30px; color: var(--gold-bright); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

.legacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.legacy-card { min-height: 300px; padding: 30px; border: 1px solid var(--line); background: rgba(255,255,255,.16); transition: .25s ease; }
.legacy-card:hover { transform: translateY(-6px); background: #fff8ea; box-shadow: var(--shadow); }
.legacy-card span { color: var(--terracotta); font-size: 10px; letter-spacing: .18em; }
.legacy-card h3 { margin: 80px 0 12px; font-size: 24px; }
.legacy-card p { margin: 0; color: var(--muted); font-size: 14px; }

.final-cta {
  padding: 120px 24px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(190,133,54,.22), transparent 30%),
    var(--night);
}
.final-cta img { margin: 0 auto 22px; }
.final-cta h2 { margin: 0; font-size: clamp(44px, 6vw, 82px); }
.final-cta > p:not(.eyebrow) { margin: 18px auto 30px; color: rgba(255,255,255,.58); }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 34px clamp(24px, 6vw, 90px);
  color: rgba(255,255,255,.58);
  background: #090807;
  font-size: 11px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { color: var(--white); font-family: var(--serif); font-size: 14px; }
.footer-brand span { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.info-modal {
  width: min(620px, calc(100% - 36px));
  padding: 46px;
  border: 1px solid rgba(185,135,58,.35);
  color: var(--ink);
  background: var(--parchment);
  box-shadow: 0 50px 120px rgba(0,0,0,.45);
}
.info-modal::backdrop { background: rgba(10,8,6,.76); backdrop-filter: blur(4px); }
.modal-close { position: absolute; top: 12px; right: 18px; border: 0; background: none; cursor: pointer; font-size: 30px; }
.info-modal h2 { margin: 0 0 16px; font-size: 42px; }
.info-modal p:last-child { color: var(--muted); }
.place-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  padding: 13px 18px;
  color: var(--white);
  background: rgba(17,14,11,.94);
  border-left: 3px solid var(--gold);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  font-size: 12px;
  transform: translateY(140%);
  transition: transform .3s ease;
}
.place-toast.show { transform: translateY(0); }

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

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    color: var(--white);
    background: rgba(14,11,9,.98);
    transition: opacity .3s;
  }
  .main-nav a { font-family: var(--serif); font-size: 24px; }
  .site-header .header-cta { display: none; }
  .menu-toggle {
    display: grid;
    gap: 5px;
    justify-self: end;
    z-index: 2;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 28px; height: 2px; background: currentColor; }
  .menu-open .main-nav { z-index: 1; opacity: 1; pointer-events: auto; }
  .hero-content { width: min(760px, 82vw); }
  .hero::after { right: -16vw; opacity: .52; }
  .king-grid { grid-template-columns: 1fr 1fr; }
  .king-card-large { grid-row: auto; grid-column: 1 / -1; min-height: 760px; }
  .empire-map { grid-template-columns: 1fr; }
  .map-copy { max-width: 780px; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .city-card:first-child { grid-column: 1 / -1; }
  .legacy-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { padding: 16px 20px; }
  .brand strong { font-size: 14px; }
  .hero { min-height: 900px; padding: 130px 24px 120px; align-items: flex-start; }
  .hero::after { width: 110vw; right: -46vw; height: 63%; opacity: .36; }
  .hero h1 { font-size: clamp(54px, 17vw, 82px); }
  .hero-content { width: 100%; }
  .hero-copy { font-size: 15px; }
  .hero-stat { right: 24px; bottom: 45px; }
  .scroll-mark { display: none; }
  .section, .section-dark { padding: 84px 22px; }
  .section-label { margin-bottom: 42px; }
  .intro-grid, .split-heading, .culture { grid-template-columns: 1fr; }
  .intro-copy { padding-top: 0; }
  .feature-banner { margin-top: 55px; height: 430px; }
  .timeline::before { left: 12px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding: 24px 0 24px 42px; }
  .timeline-item::before { left: 6px; top: 31px; }
  .timeline-year { text-align: left; }
  .king-grid { grid-template-columns: 1fr; }
  .king-card, .king-card-large { grid-column: auto; min-height: 620px; }
  .king-content { padding: 30px; }
  .map-stats { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: 1fr; }
  .city-card:first-child { grid-column: auto; }
  .city-image { height: 360px; }
  .culture-visual { min-height: 540px; }
  .culture-copy { padding: 76px 24px; }
  .legacy-grid { grid-template-columns: 1fr; }
  .legacy-card { min-height: 240px; }
  .legacy-card h3 { margin-top: 45px; }
  footer { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }
}

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