/* ─── RESET & BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0e0c09;
  --bg-alt:    #131108;
  --surface:   #1a1710;
  --border:    rgba(196, 163, 90, 0.12);
  --gold:      #c4a35a;
  --gold-dim:  #7a5c2c;
  --gold-light:#e6c472;
  --cream:     #ede4d1;
  --text:      #c0b49a;
  --text-mute: #66594c;

  --ff-serif:  'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --ff-sans:   'Jost', 'Helvetica Neue', sans-serif;

  --max-w:     1080px;
  --section-p: clamp(96px, 11vw, 152px);
  --nav-h:     68px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

strong { color: var(--cream); font-weight: 400; }
em { font-style: italic; color: var(--gold-dim); }

/* ─── NAV ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: background .5s var(--ease-out), border-color .5s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(14, 12, 9, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--border);
}

.nav-logo img {
  height: 32px;
  width: auto;
  opacity: .85;
  transition: opacity .25s;
}
.nav-logo:hover img { opacity: 1; }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform .3s var(--ease-out), opacity .3s;
}

/* ─── HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: var(--nav-h) 20px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 44%, rgba(196, 163, 90, 0.10) 0%, transparent 62%),
    radial-gradient(ellipse 45% 45% at 8% 90%, rgba(196, 163, 90, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 35% 35% at 92% 5%,  rgba(196, 163, 90, 0.03) 0%, transparent 55%);
}

/* vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 35%, rgba(14, 12, 9, 0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-ring {
  position: absolute;
  width: min(580px, 88vw);
  height: min(580px, 88vw);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: slowRotate 200s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes slowRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-logo img {
  height: 72px;
  width: auto;
  opacity: .85;
  margin-bottom: 4px;
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(64px, 14vw, 136px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--cream);
  line-height: 1;
}

.hero-address {
  font-family: var(--ff-sans);
  font-size: clamp(10px, 1.6vw, 13px);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 400;
}

.hero-sub {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 300;
  color: var(--text-mute);
}

.hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-mute);
  transition: color .2s;
  animation: bounce 2.8s ease-in-out infinite;
  z-index: 2;
}
.hero-scroll svg { width: 20px; height: 20px; }
.hero-scroll:hover { color: var(--gold); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  55%       { transform: translateX(-50%) translateY(9px); }
}

/* ─── SECTIONS ──────────────────────────────────────────────────────── */
body { counter-reset: sec; }

.section {
  padding: var(--section-p) clamp(20px, 5vw, 60px);
  position: relative;
  overflow: hidden;
  counter-increment: sec;
}

/* Ghost Roman numeral behind each section */
.section::before {
  content: counter(sec, upper-roman);
  position: absolute;
  right: -0.06em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-serif);
  font-size: clamp(200px, 26vw, 380px);
  font-weight: 700;
  color: var(--cream);
  opacity: 0.022;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.alt-bg { background-color: var(--bg-alt); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--gold-dim);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold-dim);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 5.5vw, 60px);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: clamp(36px, 5vw, 60px);
  letter-spacing: -0.01em;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  margin-top: 22px;
}

/* ─── PROSE ─────────────────────────────────────────────────────────── */
.prose {
  max-width: 680px;
}

.prose p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text);
  margin-bottom: 26px;
  line-height: 1.85;
}

.prose p:last-child { margin-bottom: 0; }

/* Drop cap on lead paragraph */
.prose .lead::first-letter {
  font-family: var(--ff-serif);
  font-size: 5em;
  font-weight: 600;
  color: var(--gold);
  float: left;
  line-height: 0.82;
  margin-right: 0.1em;
  margin-top: 0.06em;
}

.prose-closing {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(17px, 2.4vw, 22px) !important;
  font-weight: 400;
  color: var(--cream) !important;
  border-left: 1px solid var(--gold);
  padding-left: 24px;
  margin-top: 12px;
  line-height: 1.6 !important;
}

/* ─── TIMELINE ──────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: clamp(56px, 7vw, 88px);
  max-width: 800px;
}

.timeline-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

.tl-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tl-item.up   { flex-direction: column-reverse; }
.tl-item.down { flex-direction: column; }

.tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.tl-dot--now {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 5px rgba(196, 163, 90, 0.14);
}

.tl-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 6px;
}

.tl-year {
  font-family: var(--ff-serif);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1;
}

.tl-label {
  font-family: var(--ff-sans);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: center;
  line-height: 1.5;
  max-width: 68px;
}

/* ─── PAND ──────────────────────────────────────────────────────────── */
.pand-main {
  display: grid;
  grid-template-columns: minmax(220px, 38%) 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.pand-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.pand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(8%) brightness(0.88) contrast(1.06);
  transition: transform .7s var(--ease-out), filter .4s;
}

.pand-photo:hover img {
  transform: scale(1.03);
  filter: sepia(4%) brightness(0.94) contrast(1.03);
}

.pand-wide-photo {
  margin: clamp(32px, 4vw, 48px) 0 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.pand-wide-photo img {
  width: 100%;
  height: clamp(240px, 30vw, 380px);
  object-fit: cover;
  display: block;
  filter: sepia(8%) brightness(0.88) contrast(1.06);
  transition: transform .7s var(--ease-out), filter .4s;
}

.pand-wide-photo:hover img {
  transform: scale(1.02);
  filter: sepia(4%) brightness(0.93) contrast(1.03);
}

.pand-photo figcaption,
.pand-wide-photo figcaption,
.street-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px 10px;
  background: rgba(14, 12, 9, 0.65);
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(196, 163, 90, 0.6);
  font-weight: 300;
}

.pand-text p {
  font-size: clamp(15px, 1.8vw, 17px);
  margin-bottom: 22px;
  line-height: 1.85;
}

.pand-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat {
  background: var(--surface);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .25s;
}

.stat:hover { background: rgba(196, 163, 90, 0.05); }

.stat-number {
  font-family: var(--ff-serif);
  font-size: clamp(30px, 4.5vw, 46px);
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 400;
}

/* ─── STRAAT ────────────────────────────────────────────────────────── */
.monuments-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: clamp(48px, 6vw, 72px);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.monument-badge {
  flex: 1;
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: background .25s;
}

.monument-badge:hover { background: rgba(196, 163, 90, 0.05); }

.badge-number {
  font-family: var(--ff-serif);
  font-size: clamp(30px, 4.5vw, 46px);
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.badge-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 400;
}

.monument-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── STREET PHOTO ──────────────────────────────────────────────────── */
.street-photo {
  margin: clamp(40px, 5vw, 60px) 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.street-photo img {
  width: 100%;
  height: clamp(260px, 34vw, 440px);
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: sepia(12%) brightness(0.82) contrast(1.08);
  transition: transform .8s var(--ease-out), filter .4s;
}

.street-photo:hover img {
  transform: scale(1.02);
  filter: sepia(6%) brightness(0.90) contrast(1.05);
}

/* ─── EXTERNAL LINKS ────────────────────────────────────────────────── */
.ext-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 3vw, 36px);
}

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--border);
  padding: 10px 16px;
  transition: color .25s, border-color .25s, background .25s;
  font-weight: 300;
}

.ext-link svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .25s;
}

.ext-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(196, 163, 90, 0.05);
}

.ext-link:hover svg { opacity: 1; }

/* ─── MAP ───────────────────────────────────────────────────────────── */
.map-wrap {
  position: relative;
  margin-top: clamp(40px, 5vw, 60px);
}

.map-iframe {
  width: 100%;
  height: clamp(260px, 32vw, 400px);
  border: 1px solid var(--border);
  display: block;
  filter: grayscale(100%) sepia(25%) brightness(52%) contrast(1.2);
  transition: filter .4s;
}

.map-wrap:hover .map-iframe {
  filter: grayscale(80%) sepia(20%) brightness(62%) contrast(1.15);
}

.map-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(14, 12, 9, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}

.map-name {
  font-family: var(--ff-serif);
  font-size: 16px;
  color: var(--cream);
  font-weight: 500;
  line-height: 1;
}

.map-city {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 300;
}

/* ─── PEOPLE ────────────────────────────────────────────────────────── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.group-title {
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-icon { font-size: 8px; opacity: .7; }

.people-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.people-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .25s var(--ease-out);
}

.people-list li:first-child { padding-top: 0; }
.people-list li:last-child { border-bottom: none; }
.people-list li:hover { padding-left: 6px; }

.person-name {
  font-family: var(--ff-serif);
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--cream);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.person-years {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-mute);
  white-space: nowrap;
  font-weight: 300;
}

/* Godfathers — founding member treatment */
.godfathers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.godfathers li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  padding: 20px 22px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .25s, border-left-color .25s;
}

.godfathers li:hover {
  background: rgba(196, 163, 90, 0.06);
  border-left-color: var(--gold-light);
  padding-left: 22px !important;
}

.godfathers .person-name {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.godfathers .person-years {
  font-size: 12px;
  color: var(--gold-dim);
}

/* ─── FOOTER ────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(72px, 9vw, 112px) clamp(20px, 5vw, 60px);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo img {
  height: 44px;
  width: auto;
  opacity: .85;
  margin-bottom: 4px;
}

.footer-address {
  font-style: normal;
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 400;
}

.footer-colophon {
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 300;
}

.footer-colophon a {
  color: var(--gold-dim);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.footer-colophon a:hover {
  color: var(--gold);
  border-color: rgba(196, 163, 90, 0.4);
}

/* ─── ANIMATIONS ────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out) forwards;
}
.delay-1 { animation-delay: .18s; }
.delay-2 { animation-delay: .34s; }
.delay-3 { animation-delay: .50s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.in-view  { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .pand-main        { grid-template-columns: 1fr; }
  .pand-photo img   { height: clamp(240px, 50vw, 340px); }
  .pand-stats       { grid-template-columns: 1fr 1fr; }
  .people-grid      { grid-template-columns: 1fr; gap: 52px; }
  .monuments-row    { flex-direction: column; }
  .monument-divider { width: 100%; height: 1px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(14, 12, 9, 0.97);
    backdrop-filter: blur(24px);
    padding: 36px clamp(20px, 5vw, 60px) 44px;
    gap: 28px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open a {
    font-size: 14px;
    letter-spacing: .22em;
  }

  .prose .lead::first-letter { font-size: 3.8em; }

  /* Timeline: vertical on mobile */
  .timeline {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    gap: 0;
  }

  .timeline-bar {
    width: 1px;
    height: 100%;
    left: 28px;
    top: 0;
    bottom: 0;
    right: auto;
    transform: none;
  }

  .tl-item,
  .tl-item.up,
  .tl-item.down {
    flex-direction: row !important;
    align-items: center;
    padding: 4px 0;
  }

  .tl-dot { margin-left: 25px; flex-shrink: 0; }

  .tl-content {
    align-items: flex-start;
    padding: 10px 16px;
  }

  .tl-label { max-width: none; text-align: left; }
}

/* ─── SCROLLBAR ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
