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

/* ── DESIGN TOKENS ── */
:root {
  --ink: #1a1410;
  --paper: #f5f0e8;
  --cream: #ede8db;
  --rust: #8b3a2a;
  --gold: #b8922a;
  --muted: #6b6358;
  --rule: #c8bfad;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.025) 60px,
    rgba(255,255,255,0.025) 61px
  );
  pointer-events: none;
}
.header-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.eyebrow {
  font-family: 'Source Serif 4', serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.tagline {
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(245,240,232,0.7);
  max-width: 520px;
}

/* ── NAV ── */
nav {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
}
nav a {
  display: block;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
nav a:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* ── CAROUSEL ── */
#carousel-section {
  background: var(--ink);
  padding: 0;
}
.carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16/7;
  background: #2a2520;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.slide-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(245,240,232,0.35);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  padding: 2rem;
  width: 100%;
  height: 100%;
}
.slide-placeholder svg { opacity: 0.3; }
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.2rem 2rem;
  background: linear-gradient(transparent, rgba(20,16,10,0.85));
  color: var(--paper);
  font-style: italic;
  font-size: 0.9rem;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(245,240,232,0.12);
  border: 1px solid rgba(245,240,232,0.2);
  color: var(--paper);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.carousel-btn:hover { background: rgba(245,240,232,0.25); }
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--ink);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(245,240,232,0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ── MAIN CONTENT ── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

section {
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}
section:first-child { border-top: none; }

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.4rem;
  color: var(--rust);
}

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

strong { font-weight: 600; }

/* ── PSA BOXES ── */
.psa {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.4rem;
  margin: 1.4rem 0;
  border-radius: 0 4px 4px 0;
}
.psa p { margin: 0; font-size: 0.95rem; }

/* ── RESEARCH LIST ── */
.research-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}
.research-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.research-list li::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ── OFFICE HOURS CARD ── */
.office-card {
  background: var(--ink);
  color: var(--paper);
  padding: 1.8rem 2rem;
  border-radius: 2px;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.office-card h3 { color: var(--gold); margin-bottom: 0.6rem; }
.office-card p { margin: 0; font-size: 0.95rem; color: rgba(245,240,232,0.8); line-height: 1.6; }
@media (max-width: 560px) {
  .office-card { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.header-inner > * {
  animation: fadeUp 0.6s ease both;
}
.header-inner > *:nth-child(1) { animation-delay: 0.05s; }
.header-inner > *:nth-child(2) { animation-delay: 0.15s; }
.header-inner > *:nth-child(3) { animation-delay: 0.25s; }
