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

:root {
  --bg:         #f6f1e7;
  --surface:    #ede5d4;
  --surface2:   #e3d8c3;
  --gold:       #8b6918;
  --gold-light: #b8892c;
  --gold-dim:   #c9a76a;
  --cream:      #1a180f;
  --cream-dim:  #48432f;
  --muted:      #8a8168;
  --border:     #d4c9b0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.032;
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(11,12,7,0.95) 0%, transparent 100%);
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-title {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #c9a458;
  text-transform: uppercase;
  transition: color 0.4s;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: rgba(240,232,212,0.8);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-links a:hover { color: #c9a458; }

/* Once scrolled onto light content, JS swaps the bg — also swap text via a class */
nav.scrolled .nav-title { color: var(--gold); }
nav.scrolled .nav-links a { color: var(--cream-dim); }
nav.scrolled .nav-links a:hover { color: var(--gold); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(240,232,212,0.85);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.4s;
}

nav.scrolled .nav-hamburger span { background: var(--ink, #2a2820); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(11,12,7,0.97);
    backdrop-filter: blur(14px);
    padding: 1rem 0 1.5rem;
    list-style: none;
  }

  nav.scrolled .nav-links { background: rgba(246,241,231,0.97); }

  .nav-links.open { display: flex; }

  .nav-links li { text-align: center; }

  .nav-links a {
    display: block;
    padding: 0.85rem 2rem;
    font-size: 0.7rem;
  }

  nav.scrolled .nav-links a { color: var(--ink, #2a2820); }
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/IMG_7408.JPG');
  background-size: cover;
  background-position: center 38%;
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0);  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11,12,7,0.72) 0%,
    rgba(11,12,7,0.45) 45%,
    rgba(11,12,7,0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-badge {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 50px rgba(201,164,88,0.35));
  animation: fadeUp 1s ease-out 0.1s both;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  color: #c9a458;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  animation: fadeUp 1s ease-out 0.25s both;
}

.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 700;
  color: #f0e8d4;
  line-height: 1.0;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
  animation: fadeUp 1s ease-out 0.38s both;
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.85rem, 2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  color: #e5c87c;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease-out 0.5s both;
}

.hero-tagline {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: #c8bfa8;
  max-width: 520px;
  margin: 0 auto 3rem;
  animation: fadeUp 1s ease-out 0.62s both;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 1s ease-out 0.78s both;
}

.hero-scroll span {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: rgba(240,232,212,0.5);
}

.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none;             }
}

/* ── SHARED ── */
section { padding: 7rem 2rem; }

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  height: 1px;
  width: 56px;
  background: var(--gold-dim);
  flex-shrink: 0;
}

.section-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* ── ABOUT ── */
.about {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap { position: relative; }

.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.about-frame {
  position: absolute;
  top: -14px;
  left: -14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
  opacity: 0.5;
}

.about-text p {
  color: var(--cream-dim);
  margin-bottom: 1.4rem;
  font-size: 1.12rem;
}

.stat-row {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── FOCUS ── */
.focus { background: var(--bg); }

.focus-top {
  text-align: center;
  margin-bottom: 4rem;
}

.focus-top .section-label { justify-content: center; }
.focus-top .section-label::after { display: none; }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}

.focus-card {
  background: var(--surface);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.focus-card:hover { background: var(--surface2); }

.focus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.45s;
}

.focus-card:hover::before { transform: scaleX(1); }

.focus-num {
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.focus-title {
  font-family: 'Cinzel', serif;
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.focus-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.focus-photo {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 16/9;
  cursor: zoom-in;
}

.focus-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.focus-photo:hover img { transform: scale(1.04); }

/* ── SPECS ── */
.specs {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.specs-col h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

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

.specs-list li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--cream-dim);
  font-size: 1.05rem;
}

.specs-list li:last-child { border-bottom: none; }

.specs-num {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 1.6rem;
}

.specs-note {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── GALLERY ── */
.gallery {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.gallery-header { margin-bottom: 2.5rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 7px;
}

.gallery-item {
  overflow: hidden;
  background: var(--surface2);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s ease;
}

.gallery-item { cursor: zoom-in; }
.gallery-item:hover img { transform: scale(1.05); }

/* ── PHOTO MODAL ── */
.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.photo-modal.open { display: flex; }

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,9,6,0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.photo-modal-figure {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.photo-modal-figure img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  display: block;
}

.photo-modal-figure figcaption {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,232,212,0.55);
}

.photo-modal-close,
.photo-modal-prev,
.photo-modal-next {
  position: fixed;
  background: rgba(240,232,212,0.08);
  border: 1px solid rgba(240,232,212,0.15);
  color: rgba(240,232,212,0.85);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.photo-modal-close:hover,
.photo-modal-prev:hover,
.photo-modal-next:hover {
  background: rgba(201,164,88,0.25);
  color: #c9a458;
  border-color: rgba(201,164,88,0.4);
}

.photo-modal-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  line-height: 1;
}

.photo-modal-prev,
.photo-modal-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
}

.photo-modal-prev { left: 1.25rem; }
.photo-modal-next { right: 1.25rem; }

.gallery-item:nth-child(1) { grid-column: 1 / 8;  aspect-ratio: 16/9; }
.gallery-item:nth-child(2) { grid-column: 8 / 13; aspect-ratio: 3/4;  }
.gallery-item:nth-child(3) { grid-column: 1 / 5;  aspect-ratio: 4/3;  }
.gallery-item:nth-child(4) { grid-column: 5 / 9;  aspect-ratio: 4/3;  }
.gallery-item:nth-child(5) { grid-column: 9 / 13; aspect-ratio: 4/3;  }

/* ── QUOTE ── */
.quote-strip {
  background: var(--gold);
  padding: 4.5rem 2rem;
  text-align: center;
}

.quote-strip blockquote {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: #1a180f;
  font-weight: 600;
  letter-spacing: 0.04em;
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.65;
}

.quote-attr {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(11,12,7,0.55);
  margin-top: 1.25rem;
}

/* ── RESEARCH ── */
.research { background: var(--bg); }

.research-intro {
  color: var(--cream-dim);
  max-width: 680px;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.research-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}

.research-card:hover { border-color: var(--gold-dim); }

.research-card-img { overflow: hidden; cursor: zoom-in; }

.research-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}

.research-card:hover img { transform: scale(1.03); }

.research-card-body { padding: 1.75rem 2rem; }

.research-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.research-card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.research-card-desc {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ── CONTACT ── */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-inner .section-label {
  justify-content: center;
}

.contact-inner .section-label::after { display: none; }

.contact-body {
  color: var(--cream-dim);
  font-size: 1.12rem;
  margin-bottom: 3rem;
  line-height: 1.75;
}

.contact-email-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact-email-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-email-link {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.25s;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.25rem;
}

.contact-email-link:hover { color: var(--gold-light); border-color: var(--gold-light); }

.contact-btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: #f6f1e7;
  background: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  transition: background 0.25s;
}

.contact-btn:hover {
  background: #6d5010;
}

.contact-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  margin: 0 auto 3rem;
}

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2.5rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.footer-brand-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-link-group h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-link-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-link-group a {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link-group a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-domain {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .focus-grid    { grid-template-columns: 1fr; }
  .specs-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .research-grid { grid-template-columns: 1fr; }
  .nav-links     { display: none; }
  .footer-top    { flex-direction: column; gap: 2.5rem; }
  .gallery-item:nth-child(1) { grid-column: 1 / -1; }
  .gallery-item:nth-child(2) { grid-column: 1 / -1; }
  .gallery-item:nth-child(3) { grid-column: 1 / 7;  }
  .gallery-item:nth-child(4) { grid-column: 7 / 13; }
  .gallery-item:nth-child(5) { grid-column: 1 / -1; }
}
