/* ==========================================================================
   1545 RESEARCH GROUP — MASTER STYLESHEET
   Aesthetic: Classical Hellenic White & Gold / Minimal Institutional Luxury
   ========================================================================== */

:root {
  /* Alabaster & Marble Palette */
  --bg-primary: #FAF8F5;
  --bg-subtle: #F4EFE6;
  --bg-surface: #FFFFFF;
  --bg-translucent: rgba(255, 255, 255, 0.88);

  /* Hellenic Gold Foil Accents */
  --gold-primary: #C5A059;
  --gold-light: #F3E5AB;
  --gold-warm: #E2C076;
  --gold-dark: #8F6213;
  --gold-border: rgba(197, 160, 89, 0.3);
  --gold-border-hover: rgba(197, 160, 89, 0.7);
  --gold-glow: rgba(197, 160, 89, 0.2);
  --gold-shadow: 0 16px 36px -10px rgba(197, 160, 89, 0.22);

  /* Deep Basalt & Ink */
  --text-main: #1C1917;
  --text-muted: #57534E;
  --text-faint: #78716C;

  /* Typography */
  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max: 1140px;
  --header-height: 80px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #FAF8F5 50%, #F5F1E8 100%);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Justified Text Utility */
.justified {
  text-align: justify !important;
  text-justify: inter-word !important;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Ambient Canvas */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

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

/* Gold Hairline */
.gold-hairline {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(197, 160, 89, 0.2) 15%, 
    rgba(197, 160, 89, 0.75) 50%, 
    rgba(197, 160, 89, 0.2) 85%, 
    transparent 100%
  );
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px rgba(197, 160, 89, 0.08);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-crest {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.crest-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(197, 160, 89, 0.2));
  transition: transform 0.4s ease;
}

.brand-crest:hover .crest-icon {
  transform: rotate(4deg) scale(1.05);
}

.brand-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-subtitle {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  color: var(--gold-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: var(--gold-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 80px 0 50px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--gold-border);
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.08);
}

.pill-dot {
  width: 5px;
  height: 5px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold-primary);
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 18px;
}

.gold-numeral {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #8F6213 0%, #D4AF37 30%, #F5E5B8 55%, #8A641A 85%, #AA771C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-main {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-main);
  margin-top: 4px;
}

.hero-aphorism {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-dark);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.hero-description {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(197, 160, 89, 0.3);
}

/* Hero Image Arch Frame */
.hero-visual {
  display: flex;
  justify-content: center;
}

.image-arch-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 220px 220px 8px 8px;
  padding: 7px;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.6) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(197, 160, 89, 0.6) 100%);
  box-shadow: 0 20px 50px -10px rgba(197, 160, 89, 0.25);
}

.image-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(243, 229, 171, 0.5) 0%, transparent 70%);
  filter: blur(35px);
  z-index: 0;
  pointer-events: none;
}

.arch-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 214px 214px 4px 4px;
  object-fit: cover;
}

.image-corner-tl, .image-corner-br {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold-primary);
  z-index: 2;
}

.image-corner-tl {
  top: -4px;
  left: -4px;
  border-top: 2px solid var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
}

.image-corner-br {
  bottom: -4px;
  right: -4px;
  border-bottom: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
}

/* Greek Key Frieze */
.greek-frieze-wrap {
  width: 100%;
  margin-top: 60px;
}

.greek-frieze {
  width: 100%;
  height: 20px;
  display: block;
}

/* ==========================================================================
   PANORAMA SECTION
   ========================================================================== */
.panorama-section {
  padding: 40px 0;
}

.panorama-container {
  width: 94%;
  max-width: 1240px;
  margin: 0 auto;
}

.panorama-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
  height: 480px;
}

.panorama-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panorama-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(250, 248, 245, 0.1) 0%, rgba(28, 25, 23, 0.45) 100%);
}

.panorama-caption {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-primary);
  border-radius: 8px;
  padding: 22px 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.caption-crest {
  color: var(--gold-primary);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.caption-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 6px;
  text-align: center;
}

.caption-author {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  margin: 16px auto 0 auto;
}

.gold-line.left {
  margin: 16px 0 0 0;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

/* ==========================================================================
   PILLARS SECTION
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 34px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  position: relative;
}

.pillar-card.featured {
  border-color: rgba(197, 160, 89, 0.6);
  box-shadow: 0 12px 36px rgba(197, 160, 89, 0.1);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F2 100%);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-border-hover);
  box-shadow: var(--gold-shadow);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.18);
}

.pillar-numeral {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.pillar-latin {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
}

.pillar-heading {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   ARCHIVES SECTION
   ========================================================================== */
.archives-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: center;
}

.archive-image-wrap {
  display: flex;
  justify-content: center;
}

.book-card-frame {
  position: relative;
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.book-image {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  border-radius: 4px;
}

.frame-edge {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold-primary);
}

.frame-edge.tl {
  top: -3px;
  left: -3px;
  border-top: 2px solid var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
}

.frame-edge.br {
  bottom: -3px;
  right: -3px;
  border-bottom: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
}

.archive-details {
  display: flex;
  flex-direction: column;
}

.archive-intro {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 18px 0 24px 0;
}

.spec-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.spec-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.spec-bullet {
  margin-top: 4px;
  flex-shrink: 0;
}

/* ==========================================================================
   GOVERNANCE SECTION (NO CONTACT FRONT)
   ========================================================================== */
.governance-card {
  background: #FFFFFF;
  border: 1.5px solid var(--gold-primary);
  border-radius: 10px;
  padding: 44px 40px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 16px 40px rgba(197, 160, 89, 0.09);
}

.card-ornament {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold-primary);
}

.card-ornament.top-left { top: 6px; left: 6px; border-top: 2px solid var(--gold-primary); border-left: 2px solid var(--gold-primary); }
.card-ornament.top-right { top: 6px; right: 6px; border-top: 2px solid var(--gold-primary); border-right: 2px solid var(--gold-primary); }
.card-ornament.bottom-left { bottom: 6px; left: 6px; border-bottom: 2px solid var(--gold-primary); border-left: 2px solid var(--gold-primary); }
.card-ornament.bottom-right { bottom: 6px; right: 6px; border-bottom: 2px solid var(--gold-primary); border-right: 2px solid var(--gold-primary); }

.gov-seal {
  text-align: center;
  margin-bottom: 10px;
}

.gov-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.gov-statement {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 16px auto;
}

.gov-rule {
  width: 60px;
  height: 1px;
  background: rgba(197, 160, 89, 0.4);
  margin: 18px auto;
}

.gov-clause {
  font-size: 0.9rem;
  color: var(--text-faint);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 22px auto;
}

.gov-colophon {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  display: block;
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #FAF8F5;
  padding-bottom: 40px;
}

.footer-content {
  padding: 40px 0 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-main);
}

.footer-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}

.footer-legal {
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-pill, .hero-stats-row {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title, .hero-aphorism {
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .archives-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gold-line.left {
    margin: 16px auto 0 auto;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  }

  .section-title-wrap {
    text-align: center;
  }

  .panorama-frame {
    height: 360px;
  }
}

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

  .governance-card {
    padding: 30px 20px;
  }

  .panorama-frame {
    height: 300px;
  }

  .panorama-caption {
    padding: 16px;
    bottom: 16px;
  }

  .caption-quote {
    font-size: 1.05rem;
  }
}
