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

:root {
  --navy: #0a1628;
  --deep-blue: #0f2847;
  --ocean: #1a5276;
  --teal: #17a2b8;
  --light: #e8f4f8;
  --white: #ffffff;
  --text: #2c3e50;
  --text-light: #c5d5e0;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }

.nav-logo-img {
  height: 100px;
  width: auto;
}


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

.nav-links a {
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.5) 0%,
    rgba(10, 22, 40, 0.7) 50%,
    rgba(10, 22, 40, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: #138496;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
}

/* ── Sections ── */
.section {
  padding: 100px 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-intro {
  font-size: 1.125rem;
  color: #5a6c7d;
  margin-bottom: 48px;
}

/* ── Split layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-image img {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.split-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* ── Dark sections ── */
.dark {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.dark h2 { color: var(--white); }

.dark .section-intro { color: rgba(255, 255, 255, 0.8); }

/* ── Alternating section background ── */
.alt {
  background: var(--light);
}

/* ── Parallax divider ── */
.divider {
  padding: 160px 0;
}

.divider-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.divider-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.6) 0%,
    rgba(10, 22, 40, 0.4) 50%,
    rgba(10, 22, 40, 0.6) 100%
  );
}

.registry-bg,
.story-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.registry-bg::after,
.story-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.88) 0%,
    rgba(10, 22, 40, 0.82) 50%,
    rgba(10, 22, 40, 0.88) 100%
  );
}

.dark .container {
  position: relative;
  z-index: 1;
}

/* ── Stats ── */
.stats {
  display: flex;
  gap: 60px;
  margin-bottom: 56px;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Data Grid ── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.data-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 28px;
  transition: background 0.2s, border-color 0.2s;
}

.data-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--teal);
}

.data-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}

.data-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* ── Feature List ── */
.feature-list {
  list-style: none;
  margin-top: 16px;
}

.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 1.05rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

/* ── Methodology ── */
.pipeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 56px;
}

.pipeline-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--light);
  border-radius: 8px;
  border-left: 4px solid var(--teal);
}

.pipeline-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.pipeline-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.pipeline-step p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.structure-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ocean);
}

.structure-grid {
  margin-top: 0;
}

.structure-card {
  background: var(--light);
  border: 1px solid #d0e0ea;
}

.structure-card:hover {
  background: #daedf4;
  border-color: var(--teal);
}

.structure-card h3 {
  color: var(--text);
}

.structure-card p {
  color: var(--text);
}

/* ── Transliteration Table ── */
.transliteration-table {
  margin-top: 14px;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--light);
  border-radius: 8px;
  overflow: hidden;
}

.transliteration-table th,
.transliteration-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #d0e0ea;
}

.transliteration-table th {
  background: var(--ocean);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.transliteration-table td {
  color: var(--text);
}

/* ── Source Examples ── */
.source-examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.source-example {
  padding: 24px;
  background: var(--light);
  border-radius: 8px;
  border-left: 4px solid var(--ocean);
}

.source-example h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.source-example p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.source-example a {
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .pipeline { grid-template-columns: 1fr; }
  .source-examples { grid-template-columns: 1fr; }
}

/* ── Legal Pages ── */
.legal-page {
  padding-top: 160px;
}

.legal-page h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.legal-page p,
.legal-page ul {
  margin-bottom: 1em;
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.5em;
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  z-index: 10000;
  box-sizing: border-box;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-banner-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
}

.cookie-banner-inner a {
  color: var(--teal);
}

.cookie-accept {
  white-space: nowrap;
  padding: 8px 20px;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ── Team Page ── */
.team-page {
  padding-top: 160px;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.team-member {
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid #e2e8f0;
}

.team-photo {
  grid-row: 1 / -1;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.team-member h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.team-role {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ocean);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.team-member p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.team-links {
  display: flex;
  gap: 16px;
}

.team-links a {
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .team-member {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .team-photo {
    grid-row: auto;
    margin-bottom: 12px;
  }
  .team-links {
    justify-content: center;
  }
}

.team-member:last-child {
  border-bottom: none;
}

/* ── Story ── */
.story-content {
}

.story-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.story-content em {
  color: var(--white);
  font-style: italic;
}

/* ── Milestones / Timeline ── */
.story-milestones {
  padding-bottom: 60px;
}

.story-milestones #milestones {
  padding-top: 60px;
}

.timeline-scroll {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  padding: 0 24px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) rgba(255,255,255,0.1);
}

.timeline-scroll::-webkit-scrollbar {
  height: 6px;
}
.timeline-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
.timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 3px;
}

.timeline {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 200px 60px;
  gap: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
  transform: translateY(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  width: 200px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.3);
}

.timeline-content {
  position: absolute;
  width: 180px;
  text-align: center;
}

.timeline-item.above .timeline-content {
  bottom: calc(50% + 30px);
}

.timeline-item.below .timeline-content {
  top: calc(50% + 30px);
}

.timeline-content::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.3) 0px,
    rgba(255,255,255,0.3) 4px,
    transparent 4px,
    transparent 8px
  );
}

.timeline-item.above .timeline-content::after {
  bottom: -30px;
  height: 30px;
}

.timeline-item.below .timeline-content::after {
  top: -30px;
  height: 30px;
}

.timeline-year {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: var(--dot-color);
  border-radius: 3px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.timeline-content h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
}

.timeline-content p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.timeline-content p strong{
  font-weight: 900;
}

/* Timeline mobile: vertical layout */
@media (max-width: 900px) {
  .timeline {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 20px 60px;
    min-width: unset;
    gap: 48px;
  }

  .timeline-line {
    top: 0;
    bottom: 0;
    left: 30px;
    right: auto;
    width: 4px;
    height: 100%;
    transform: none;
  }

  .timeline-item {
    min-width: unset;
    width: 100%;
    align-items: flex-start;
  }

  .timeline-dot {
    top: 0;
    left: -30px;
    transform: translate(-50%, 0);
  }

  .timeline-content {
    position: relative;
    top: auto;
    bottom: auto;
    width: 100%;
    text-align: left;
  }

  .timeline-item.above .timeline-content,
  .timeline-item.below .timeline-content {
    top: auto;
    bottom: auto;
  }

  .timeline-content::after {
    display: none;
  }
}

/* ── Publications ── */
.pub-list {
  margin-bottom: 48px;
}

.pub {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
  align-items: baseline;
}

.pub-year {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ocean);
  flex-shrink: 0;
  min-width: 60px;
}

.pub p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.pub em {
  color: var(--text);
}

.citations-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ocean);
}

/* ── Gallery ── */
.gallery {
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  line-height: 0;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: var(--text-light);
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: -24px;
  margin-left: 0px;
}

.footer-brand h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 8px;
}

.footer h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-contact p {
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(197, 213, 224, 0.6);
}

.footer-bottom p {
  margin-bottom: 6px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-image { order: -1; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr; gap: 40px; }
  .stats { gap: 40px; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.98);
    padding: 20px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .data-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid img { height: 200px; }
  .stats { flex-direction: column; gap: 24px; }
  .section { padding: 64px 0; }
  .gallery { padding: 0; }
}
