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

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --gold: #c9a96e;
  --gold-soft: rgba(201, 169, 110, 0.5);
  --gold-line: rgba(201, 169, 110, 0.18);
  --cream: #f0eadc;
  --cream-soft: #d4c9ac;
  --muted: #8a8270;
  --body: #b8b09e;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html, body { height: auto; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 50% 30%, transparent 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10,10,10,0.55);
  border-bottom: 0.5px solid var(--gold-line);
}
.nav-logo {
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.35em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: color 0.4s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0; height: 0.5px;
  background: var(--gold);
  transition: width 0.4s ease, left 0.4s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; left: 0; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
}
.hero-compact {
  min-height: 60vh;
  padding: 10rem 2rem 4rem;
}
.roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.5em;
  margin-bottom: 3rem;
}
.roman::before, .roman::after {
  content: '—';
  margin: 0 1rem;
  color: var(--gold-soft);
}
.portrait-frame {
  width: 220px;
  height: 280px;
  border: 0.5px solid var(--gold-soft);
  margin: 0 auto 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
  transition: border-color 0.6s ease;
}
.portrait-frame:hover { border-color: var(--gold); }
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.portrait-frame:hover img { transform: scale(1.05); }
.portrait-frame::before, .portrait-frame::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 0.5px solid var(--gold);
  z-index: 2;
}
.portrait-frame::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.portrait-frame::after { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }
.portrait-frame svg { opacity: 0.35; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
h1.hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 2rem;
  letter-spacing: -0.015em;
}
h1.hero-title .accent { color: var(--gold); }
.hero-tagline {
  max-width: 480px;
  font-size: 14px;
  color: var(--body);
  letter-spacing: 0.02em;
  margin: 0 auto;
}
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.4em;
  text-align: center;
}
.scroll-line {
  width: 0.5px;
  height: 40px;
  background: var(--gold-soft);
  margin: 1rem auto 0;
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--gold);
  animation: scrollDrop 2.4s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* INDEX BAR — replaces marquee */
.index-bar {
  border-top: 0.5px solid var(--gold-line);
  border-bottom: 0.5px solid var(--gold-line);
  padding: 2.5rem 2rem;
  background: var(--bg-soft);
  text-align: center;
}
.index-bar-eyebrow {
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.index-bar-content {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--cream-soft);
  line-height: 2;
  letter-spacing: 0.02em;
  max-width: 900px;
  margin: 0 auto;
}
.index-bar-content .dot {
  color: var(--gold);
  margin: 0 0.75rem;
}

/* SECTIONS */
section {
  padding: 9rem 0;
  position: relative;
}
.section-divider {
  width: 100%;
  height: 0.5px;
  background: var(--gold-line);
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  text-align: center;
}
h2.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  text-align: center;
  color: var(--cream);
  margin-bottom: 5rem;
  line-height: 1.15;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* QUOTE */
.quote-section {
  text-align: center;
  padding: 8rem 0;
}
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.45;
  color: var(--cream-soft);
  max-width: 760px;
  margin: 0 auto 2rem;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 90px;
  color: var(--gold);
  line-height: 0.3;
  margin-bottom: 2.5rem;
}
.quote-attribution {
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--muted);
  margin-top: 2.5rem;
}

/* PILLARS */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 0.5px solid var(--gold-line);
  border-bottom: 0.5px solid var(--gold-line);
}
.pillar {
  padding: 3.5rem 2.75rem;
  border-right: 0.5px solid var(--gold-line);
  transition: background 0.5s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.pillar:last-child { border-right: 0; }
.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(201,169,110,0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.pillar:hover::before { opacity: 1; }
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}
.pillar-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  color: var(--cream);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}
.pillar-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--body);
  position: relative;
  z-index: 2;
}
.pillar-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.4s, transform 0.6s ease;
  position: relative;
  z-index: 2;
}
.pillar:hover .pillar-icon {
  opacity: 1;
  transform: rotate(8deg);
}
.pillar-arrow {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.3em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s, transform 0.4s;
  position: relative;
  z-index: 2;
}
.pillar:hover .pillar-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* IMAGE SLOTS */
.image-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.image-slot {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 0.5px solid var(--gold-line);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-slot.tall { aspect-ratio: 4/5; }
.image-slot.wide { aspect-ratio: 16/10; }
.image-slot.square { aspect-ratio: 1/1; }
.image-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.image-slot:hover img { transform: scale(1.04); }
.image-slot-placeholder {
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.2em;
}
.image-grid-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.image-grid-right .image-slot { flex: 1; }

/* CLOCKS */
.clocks-section {
  padding: 6rem 0;
  background: var(--bg-soft);
  border-top: 0.5px solid var(--gold-line);
  border-bottom: 0.5px solid var(--gold-line);
}
.clocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}
.clock {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 0.5px solid var(--gold-line);
  transition: background 0.5s;
}
.clock:last-child { border-right: 0; }
.clock:hover { background: rgba(201, 169, 110, 0.03); }
.clock-icon {
  width: 28px; height: 28px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}
.clock-city {
  font-size: 11px;
  letter-spacing: 0.55em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.clock-time {
  font-family: var(--mono);
  font-size: 32px;
  color: var(--cream);
  font-weight: 300;
  letter-spacing: 0.08em;
}
.clock-coords {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 0.75rem;
  letter-spacing: 0.1em;
}

/* PHILOSOPHY EMBLEMS */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.6s ease;
}
.symbol:hover { transform: translateY(-6px); }
.symbol-mark {
  width: 70px; height: 70px;
  margin-bottom: 1.5rem;
  opacity: 0.85;
  transition: opacity 0.4s, transform 0.8s ease;
}
.symbol:hover .symbol-mark {
  opacity: 1;
  transform: rotate(360deg);
}
.symbol-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 1rem;
}
.symbol-text {
  font-size: 13px;
  color: var(--body);
  line-height: 1.75;
  max-width: 240px;
}

/* READINGS */
.readings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 0.5px solid var(--gold-line);
  border-bottom: 0.5px solid var(--gold-line);
}
.reading {
  padding: 2.5rem 2rem;
  border-right: 0.5px solid var(--gold-line);
  transition: background 0.5s;
}
.reading:last-child { border-right: 0; }
.reading:hover { background: rgba(201,169,110,0.03); }
.reading-author {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.reading-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.reading-note {
  font-size: 13px;
  color: var(--body);
  line-height: 1.7;
}

/* LONG-FORM PROSE (subpages) */
.prose {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  color: var(--cream-soft);
  font-weight: 400;
}
.prose p {
  margin-bottom: 1.75rem;
}
.prose p:first-of-type::first-line {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.prose .lead {
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}
.prose blockquote {
  border-left: 0.5px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--cream);
  font-size: 21px;
}
.prose h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--cream);
  margin: 3rem 0 1.5rem;
}
.prose .pullquote {
  text-align: center;
  font-size: 28px;
  color: var(--gold);
  font-style: italic;
  margin: 4rem 0;
  line-height: 1.3;
  padding: 0 2rem;
}
.prose ul {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}
.prose ul li {
  padding: 0.75rem 0 0.75rem 2rem;
  border-bottom: 0.5px solid var(--gold-line);
  position: relative;
  font-size: 17px;
  font-family: var(--sans);
  color: var(--body);
  line-height: 1.6;
}
.prose ul li::before {
  content: '·';
  position: absolute;
  left: 0.5rem;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}
.prose ul li:last-child { border-bottom: 0; }
.prose ul li strong {
  color: var(--cream);
  font-weight: 400;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  margin-right: 0.5rem;
}

/* BACK LINK */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.3s, gap 0.3s;
}
.back-link:hover {
  color: var(--gold);
  gap: 1.25rem;
}

/* FOOTER */
footer {
  border-top: 0.5px solid var(--gold-line);
  padding: 5rem 2rem 3rem;
  text-align: center;
}
.footer-mark {
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 26px;
  color: var(--gold);
  letter-spacing: 0.35em;
  margin-bottom: 2rem;
}
.footer-meta {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  list-style: none;
}
.footer-links a {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2rem;
  letter-spacing: 0.15em;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 0.5px solid var(--gold-line); }
  .pillar:last-child { border-bottom: 0; }
  .clocks-grid { grid-template-columns: 1fr; }
  .clock { border-right: 0; border-bottom: 0.5px solid var(--gold-line); }
  .clock:last-child { border-bottom: 0; }
  .image-grid { grid-template-columns: 1fr; }
  .readings-grid { grid-template-columns: 1fr; }
  .reading { border-right: 0; border-bottom: 0.5px solid var(--gold-line); }
  .reading:last-child { border-bottom: 0; }
  section { padding: 6rem 0; }
  .prose { font-size: 17px; }
}
