/* ===== VARIABLES ===== */
:root {
  --navy-deep: #080C1A;
  --navy: #0D1328;
  --navy-light: #131B38;
  --navy-mid: #1A2348;
  --gold: #D4B87A;
  --gold-dim: #B89B5E;
  --gold-bright: #E8CFA0;
  --text-primary: #E8E4DC;
  --text-secondary: #9A917E;
  --text-muted: #6B6358;
  --line: rgba(212, 184, 122, 0.12);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-deep);
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* ===== SECTIONS ===== */
.section-dark { background: var(--navy); padding: 120px 60px; }
.section-deeper { background: var(--navy-deep); padding: 120px 60px; }

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 20px;
  font-weight: 400;
}
.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}
.section-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin-bottom: 28px;
}
.section-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 16px 44px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  font-family: 'Cormorant Garamond', serif;
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-text {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 1px;
}
.btn-text:hover { color: var(--gold); }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(8,12,26,0.95) 0%, rgba(8,12,26,0) 100%);
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(8,12,26,0.97);
  padding: 18px 60px;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212,184,122,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-logo-mark .e-letter {
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  color: var(--gold);
  font-style: italic;
  line-height: 1;
}
.nav-logo-mark .s-letter {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  color: var(--gold);
  position: absolute;
  bottom: 6px;
  right: 8px;
}
.nav-logo-text {
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: all 0.3s ease;
}
.nav-toggle.open span:first-child { transform: rotate(45deg) translate(2px, 2px); }
.nav-toggle.open span:last-child { transform: rotate(-45deg) translate(2px, -2px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8,12,26,0.98);
  z-index: 99;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(20px);
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin-bottom: 28px; }
.mobile-menu a {
  font-family: 'Libre Baskerville', serif;
  font-size: 28px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: var(--navy); }
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}
.hero-glow {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,184,122,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-lines { position: absolute; inset: 0; overflow: hidden; }
.hero-lines::before {
  content: '';
  position: absolute;
  top: 20%; left: 8%;
  width: 1px; height: 200px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.15;
  animation: linePulse 4s ease-in-out infinite;
}
.hero-lines::after {
  content: '';
  position: absolute;
  bottom: 25%; right: 10%;
  width: 1px; height: 150px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.1;
  animation: linePulse 4s ease-in-out infinite 2s;
}
@keyframes linePulse {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.2; }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 40px;
  animation: fadeUp 1.2s ease-out;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 32px;
  font-weight: 400;
  animation: fadeUp 1.2s ease-out 0.2s both;
}
.hero-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 28px;
  animation: fadeUp 1.2s ease-out 0.4s both;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 0 auto 28px;
  opacity: 0.5;
  animation: fadeUp 1.2s ease-out 0.6s both;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 44px;
  animation: fadeUp 1.2s ease-out 0.6s both;
}
.hero .btn-primary { animation: fadeUp 1.2s ease-out 0.8s both; }
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1.2s ease-out 1.2s both;
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 0.7; height: 50px; }
}

/* ===== ABOUT VISUAL ===== */
.about-visual { position: relative; height: 500px; }
.about-graphic {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-graphic-inner {
  position: absolute;
  inset: 20px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding-bottom: 40px;
}
.bar {
  flex: 1;
  background: linear-gradient(180deg, var(--gold), rgba(212,184,122,0.1));
  border-radius: 1px 1px 0 0;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
.about-graphic:hover .bar { opacity: 0.5; }
.about-graphic-label {
  position: absolute;
  bottom: 20px; left: 20px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.about-graphic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,12,26,0.3) 0%, transparent 50%);
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 80px;
}
.service-card {
  background: var(--navy);
  padding: 52px 40px;
  position: relative;
  transition: all 0.5s ease;
  cursor: default;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: var(--navy-light); }
.service-number {
  font-size: 11px;
  color: var(--gold-dim);
  letter-spacing: 2px;
  margin-bottom: 28px;
  opacity: 0.5;
}
.service-icon { width: 48px; height: 48px; margin-bottom: 28px; }
.service-icon svg { width: 100%; height: 100%; }
.service-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 400;
}
.service-subtitle-text {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 24px;
}
.service-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
}
.service-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(212,184,122,0.2);
  padding-bottom: 2px;
}
.service-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ===== APPROACH STEPS ===== */
.approach-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.approach-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 15%; right: 15%;
  height: 1px;
  background: var(--line);
}
.approach-step { flex: 1; padding: 0 24px; position: relative; }
.step-dot {
  width: 56px; height: 56px;
  border: 1px solid rgba(212,184,122,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: var(--navy);
  position: relative;
  z-index: 2;
}
.step-dot span {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  color: var(--gold-dim);
  font-style: italic;
}
.step-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
}
.step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  text-align: center;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  background: var(--navy-deep);
  padding: 80px 60px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.disclaimer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
  font-weight: 300;
}

/* ===== CONTACT INFO ===== */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 48px;
}
.contact-item { text-align: center; }
.contact-label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.contact-value {
  font-size: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 300;
}
.contact-value:hover { color: var(--gold); }

/* ===== PAGE HEADERS (for inner pages) ===== */
.page-header {
  padding: 180px 60px 100px;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-header .section-line { margin: 0 auto 28px; }

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 28px; }
.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--navy-light);
  border: 1px solid var(--line);
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold-dim);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ===== TEAM CARDS ===== */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; }
.team-card {
  background: var(--navy-light);
  border: 1px solid var(--line);
  padding: 48px 40px;
  text-align: center;
}
.team-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.team-role {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 20px;
}
.team-bio {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
}
.team-contact {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.team-contact a { color: var(--gold-dim); text-decoration: none; }
.team-contact a:hover { color: var(--gold); }

/* ===== RESEARCH ITEMS ===== */
.research-list { margin-top: 60px; }
.research-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 40px;
  align-items: start;
}
.research-date {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-top: 6px;
}
.research-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.research-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}
.research-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 8px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy-deep);
  padding: 48px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.footer-brand {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
  font-weight: 300;
}
.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.6;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--gold-dim); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 20px 28px; }
  nav.scrolled { padding: 16px 28px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section-dark, .section-deeper { padding: 80px 28px; }
  .grid-2col { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { height: 300px; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-steps { flex-direction: column; gap: 40px; }
  .approach-steps::before { display: none; }
  .step-dot { background: var(--navy-deep); }
  .contact-info { flex-direction: column; gap: 28px; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .page-header { padding: 140px 28px 60px; }
  .team-grid { grid-template-columns: 1fr; }
  .research-item { grid-template-columns: 1fr; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .disclaimer { padding: 60px 28px; }
  .hero-title { font-size: clamp(28px, 7vw, 48px); }
}

@media (max-width: 600px) {
  .nav-logo-text { display: none; }
  .hero-content { padding: 0 20px; }
  .service-card { padding: 40px 28px; }
}
