:root {
  --marble-light: #ede6d6;
  --marble-mid: #cabfa5;
  --marble-dark: #8f866f;
  --ink: #16130f;
  --ink-soft: #2a251d;
  --aegean: #24435f;
  --gold: #c9a227;
  --gold-bright: #f0cf6b;
  --terracotta: #a8462f;

  --display: "Cinzel", serif;
  --body: "Cormorant Garamond", serif;
  --mono: "JetBrains Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,162,39,0.06), transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(36,67,95,0.10), transparent 50%),
    var(--ink);
  color: var(--marble-light);
  font-family: var(--body);
  overflow-x: hidden;
  position: relative;
}

/* subtle stone texture via layered gradients */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(25deg, rgba(0,0,0,0.12) 0 1px, transparent 1px 5px);
  z-index: 0;
}

section, header, footer { position: relative; z-index: 1; }

/* ---------- Floating dust motes ---------- */
.dust { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.dust span {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0;
  animation: rise linear infinite;
}
.dust span:nth-child(1)  { left: 6%;  animation-duration: 18s; animation-delay: 0s; }
.dust span:nth-child(2)  { left: 16%; animation-duration: 22s; animation-delay: 3s; }
.dust span:nth-child(3)  { left: 27%; animation-duration: 16s; animation-delay: 6s; }
.dust span:nth-child(4)  { left: 38%; animation-duration: 24s; animation-delay: 1s; }
.dust span:nth-child(5)  { left: 49%; animation-duration: 19s; animation-delay: 8s; }
.dust span:nth-child(6)  { left: 60%; animation-duration: 21s; animation-delay: 4s; }
.dust span:nth-child(7)  { left: 71%; animation-duration: 17s; animation-delay: 10s; }
.dust span:nth-child(8)  { left: 82%; animation-duration: 23s; animation-delay: 2s; }
.dust span:nth-child(9)  { left: 91%; animation-duration: 20s; animation-delay: 7s; }
.dust span:nth-child(10) { left: 50%; animation-duration: 25s; animation-delay: 12s; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

/* ---------- Header / frieze ---------- */
.frieze {
  border-bottom: 1px solid rgba(201,162,39,0.25);
  background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.frieze-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
  font-size: 1.1rem;
}
nav a {
  color: var(--marble-mid);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-left: 34px;
  transition: color 0.25s;
}
nav a:hover { color: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 32px 90px;
  text-align: center;
  position: relative;
}

.spotlight {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(240,207,107,0.14) 0%, transparent 60%);
  animation: sweep 9s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes sweep {
  0%, 100% { transform: translateX(-58%) translateY(0); opacity: 0.7; }
  50%      { transform: translateX(-42%) translateY(20px); opacity: 1; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.chisel {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--marble-light);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.15),
    0 -2px 3px rgba(0,0,0,0.6),
    0 3px 10px rgba(0,0,0,0.5);
  margin-bottom: 26px;
}
.chisel span {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  animation: emerge 0.8s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i) * 0.12s + 0.15s);
}
@keyframes emerge {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-sub {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--marble-mid);
  line-height: 1.6;
  margin-bottom: 40px;
}

.gold-btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  padding: 15px 38px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(201,162,39,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,162,39,0.45);
}

.pediment {
  color: var(--gold);
  opacity: 0.5;
  width: 240px;
  margin: 70px auto 0;
}
.pediment svg { width: 100%; height: auto; display: block; }

/* ---------- Gallery piece (real artwork, framed) ---------- */
.gallery-piece {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 32px 100px;
  display: flex;
  justify-content: center;
}

.frame {
  width: 100%;
}

.frame-inner {
  position: relative;
  padding: 14px;
  background: linear-gradient(155deg, var(--gold-bright), #8a6a17 45%, var(--gold-bright) 100%);
  border-radius: 3px;
  box-shadow:
    0 25px 70px rgba(0,0,0,0.6),
    inset 0 0 0 2px rgba(0,0,0,0.25);
}

.frame-inner img {
  display: block;
  width: 100%;
  height: auto;
  border: 10px solid #0d0c09;
  filter: sepia(0.12) saturate(1.05) contrast(1.02);
}

.beam {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.55) 50%, transparent 60%);
  transform: translateX(-120%);
  mix-blend-mode: overlay;
}
.gallery-piece.in-view .beam {
  animation: sheen 1.6s ease-out 0.3s 1;
}
@keyframes sheen {
  to { transform: translateX(120%); }
}

.plaque {
  text-align: center;
  margin-top: 22px;
  padding: 16px 20px;
  border-top: 1px solid rgba(201,162,39,0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plaque-title {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}
.plaque-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--marble-dark);
  text-transform: uppercase;
}
.plaque-note {
  font-style: italic;
  font-size: 1rem;
  color: var(--marble-mid);
  max-width: 480px;
  margin: 4px auto 0;
  line-height: 1.5;
}

/* ---------- Greek key (meander) divider ---------- */
.meander {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cpath d='M0 1 H9 V9 H5 V5 H13 V13 H17 V1 H25 V9 H21 V5 H29 V13 H33 V1 H40' fill='none' stroke='%23c9a227' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.55;
}

/* ---------- Cursor spark (hero only) ---------- */
.cursor-spark {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,207,107,0.85), rgba(240,207,107,0) 70%);
  filter: blur(2px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 5;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.colonnade .statue:nth-child(1) { transition-delay: 0s; }
.colonnade .statue:nth-child(2) { transition-delay: 0.1s; }
.colonnade .statue:nth-child(3) { transition-delay: 0.2s; }
.colonnade .statue:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Section shared ---------- */
.section-eyebrow {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
section h2 {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--marble-light);
  margin-bottom: 16px;
}
.section-lede {
  text-align: center;
  font-size: 1.1rem;
  color: var(--marble-mid);
  max-width: 560px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* ---------- Oracle / terminal tablet ---------- */
.oracle { padding: 70px 32px 100px; }

.tablet {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(160deg, #1c1a15, #0d0c09);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 6px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.55),
    inset 0 0 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.tablet-crack {
  position: absolute;
  top: 0; right: 12%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(201,162,39,0.15) 30%, rgba(201,162,39,0.15) 70%, transparent);
}
.tablet-head {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-align: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(201,162,39,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.rosette {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.tablet-body {
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.9;
  color: #b8f0c8;
  padding: 26px 28px 34px;
  min-height: 260px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Pantheon ---------- */
.pantheon { padding: 70px 32px 110px; }

.colonnade {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.statue {
  background: linear-gradient(180deg, rgba(237,230,214,0.05), rgba(237,230,214,0.02));
  border: 1px solid rgba(201,162,39,0.18);
  border-radius: 4px;
  padding: 34px 22px 26px;
  text-align: center;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.statue:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,39,0.55);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.pedestal-top { display: flex; justify-content: center; margin-bottom: 14px; }
.wreath {
  width: 34px; height: 34px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  border-right-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
  opacity: 0.7;
}

.statue h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--marble-light);
  margin-bottom: 4px;
}
.epithet {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.statue-desc {
  font-size: 0.98rem;
  color: var(--marble-mid);
  line-height: 1.55;
}
.col-mark {
  display: block;
  margin-top: 20px;
  font-family: var(--display);
  font-size: 0.75rem;
  color: rgba(201,162,39,0.4);
  letter-spacing: 0.2em;
}

/* ---------- Codex / closing statement ---------- */
.codex {
  text-align: center;
  padding: 60px 32px 100px;
  border-top: 1px solid rgba(201,162,39,0.15);
  border-bottom: 1px solid rgba(201,162,39,0.15);
}
.codex h2 { font-style: italic; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 50px 32px 60px;
  color: var(--marble-dark);
  font-size: 0.85rem;
}
.laurel-divider {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 18px;
  opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .colonnade { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .colonnade { grid-template-columns: 1fr; }
  nav a { margin-left: 18px; }
  .frieze-inner { flex-direction: column; gap: 12px; }
}

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .chisel span { animation: none; opacity: 1; transform: none; }
  .spotlight { animation: none; }
  .dust span { animation: none; opacity: 0; }
  .gallery-piece.in-view .beam { animation: none; display: none; }
  .cursor-spark { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
