:root {
  --bg: #f8f5ee;
  --bg-alt: #f1ece0;
  --surface: #ffffff;
  --surface-alt: #fbf9f4;
  --border: rgba(18, 32, 58, 0.12);
  --text: #14202e;
  --text-muted: #51607a;
  --text-dim: #8996ac;
  --gold: #123b73;
  --gold-light: #1c5fae;
  --gold-dim: rgba(18, 59, 115, 0.1);
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Plus Jakarta Sans', sans-serif;
  --container: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(248, 245, 238, 0.85);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.3s ease;
}

.logo span {
  color: var(--gold-light);
  font-weight: 400;
  font-style: italic;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  transition: color 0.25s ease;
}

.main-nav a:hover { color: #ffffff; }

.lang-switch {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold-light) !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 12px;
  border-radius: 2px;
  transition: border-color 0.25s ease;
}

.lang-switch:hover { border-color: var(--gold-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: #ffffff;
  display: block;
  transition: background 0.3s ease;
}

/* Once scrolled past the hero video, the header sits on the ivory
   background again — revert to the standard dark-on-light palette. */
.site-header.scrolled .logo { color: var(--text); }
.site-header.scrolled .main-nav a { color: var(--text-muted); font-weight: 400; }
.site-header.scrolled .main-nav a:hover { color: var(--text); }
.site-header.scrolled .lang-switch { color: var(--gold) !important; border-color: var(--border); }
.site-header.scrolled .lang-switch:hover { border-color: var(--gold); }
.site-header.scrolled .nav-toggle span { background: var(--text); }

/* ---------- Reveal animation ----------
   Varsayılan: içerik her koşulda görünür. Animasyon yalnızca JS
   body'ye .js-anim ekleyince devreye girer — JS yüklenmezse site bozulmaz. */
body.js-anim .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.js-anim .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: #0a0f18;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.62) 0%, rgba(8, 12, 20, 0.78) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.hero .container { position: relative; z-index: 2; }

.eyebrow {
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 1040px;
  margin-bottom: 32px;
  color: #ffffff;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-sub strong { color: #ffffff; font-weight: 500; }

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.hero .btn-ghost:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.06);
}

.hero .hero-stats { border-top-color: rgba(255, 255, 255, 0.2); }

.hero .stat-num,
.hero .stat-plus { color: var(--gold-light); }

.hero .stat-label { color: rgba(255, 255, 255, 0.68); }


.hero-actions {
  display: flex;
  gap: 18px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 32px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn.small { padding: 11px 24px; font-size: 0.85rem; }

.hero-stats {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: left;
  max-width: 180px;
}

a.stat {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

a.stat:hover { opacity: 0.7; }

.stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  font-weight: 500;
}

.stat-plus {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
}

.stat-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

/* ---------- Section generic ---------- */
section {
  padding: 130px 0;
  position: relative;
  scroll-margin-top: 80px;
}

.section-label {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  margin-bottom: 20px;
}

section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 24px;
  max-width: 780px;
  letter-spacing: -0.01em;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  font-weight: 300;
  margin-bottom: 20px;
}

/* ---------- Philosophy ---------- */
.philosophy { background: var(--bg-alt); }

.triangle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 64px 0;
}

.tri-card {
  background: var(--bg-alt);
  padding: 44px 36px;
}

.tri-index {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 18px;
}

.tri-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.tri-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--text);
  max-width: 780px;
  padding-left: 32px;
  border-left: 2px solid var(--gold);
  font-weight: 400;
  line-height: 1.5;
}

/* ---------- Capabilities ---------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 60px;
}

.cap-card {
  background: var(--bg);
  padding: 40px;
  transition: background 0.3s ease;
}

.cap-card:hover { background: var(--surface); }

.cap-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.1rem;
}

.cap-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 14px 0 20px;
}

.cap-outcome {
  color: var(--gold-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.cap-card li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.cap-card li:first-child { border-top: none; }

/* ---------- Perspective ---------- */
.persp-list {
  margin-top: 56px;
  border-top: 1px solid var(--border);
}

.persp-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.persp-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.5rem;
}

.persp-item h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 12px;
  max-width: 640px;
}

.persp-item p {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 300;
  max-width: 720px;
}

/* ---------- Methodology ---------- */
.methodology { background: var(--bg-alt); }

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.method-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 2rem;
  display: block;
  margin-bottom: 20px;
}

.method-step h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.method-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.method-step:not(:last-child) {
  border-right: 1px solid var(--border);
  padding-right: 32px;
}

/* ---------- Geography / Network map ---------- */
.geo-map-wrap {
  position: relative;
  margin-top: 48px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Only this inner box scrolls on mobile — .geo-map-wrap itself never moves,
   so the tooltip (a sibling, not a descendant of this box) is never clipped
   and its position math never has to account for scroll offset. */
.geo-map-scroll {
  width: 100%;
}

.geo-map {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.geo-sea {
  fill: #f0ead9;
}

.geo-other circle {
  fill: var(--text-dim);
  opacity: 0.35;
}

.geo-hub circle:first-child {
  fill: none;
  stroke: #c9a227;
  stroke-width: 1.5;
  opacity: 0.65;
}

.geo-hub circle:last-child {
  fill: #c9a227;
}

.geo-country {
  cursor: pointer;
  outline: none;
}

.geo-country circle.hit {
  pointer-events: all;
}

.geo-country circle.dot {
  opacity: 0.8;
  transition: opacity 0.2s ease, r 0.25s ease;
}

.geo-country circle.capital {
  fill: #b3382e;
  stroke: var(--bg);
  stroke-width: 1.2;
  transition: r 0.25s ease;
}

.geo-country:hover circle.dot,
.geo-country:focus circle.dot,
.geo-country.active circle.dot {
  opacity: 1;
  r: 2.2;
}

.geo-country:hover circle.capital,
.geo-country:focus circle.capital,
.geo-country.active circle.capital {
  r: 4;
}

.geo-country:hover,
.geo-country:focus,
.geo-country.active {
  filter: brightness(1.18) saturate(1.25);
}

/* Country legend — 5-column aligned grid, centered, uppercase */
.geo-legend {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px 16px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.geo-legend-item {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  outline: none;
}

.geo-legend-item:hover,
.geo-legend-item:focus,
.geo-legend-item.active {
  color: var(--gold-light);
}

.geo-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 10px));
  background: #e4ecf5;
  border: 1px solid rgba(18, 59, 115, 0.25);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 6px 18px rgba(18, 32, 58, 0.12);
  text-align: left;
}

.geo-tooltip.active { opacity: 1; }

.geo-tooltip-title {
  font-weight: 700;
}

.geo-tooltip-proj {
  margin-top: 3px;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.geo-caption {
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 720px;
  line-height: 1.7;
}

/* ---------- Vision ---------- */
.vision { background: var(--bg-alt); }

.vision-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.vision-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.vision-item {
  background: var(--bg-alt);
  padding: 22px 28px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.vision-item span {
  color: var(--gold);
  font-family: var(--serif);
  margin-right: 16px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
}

.about-visual {
  position: sticky;
  top: 120px;
}

.founder-photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.about-visual-caption {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-visual-caption strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.about-visual-caption span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.about-role {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.about p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 20px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about-facts strong {
  display: block;
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.about-facts span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- Fit ---------- */
.fit-panel {
  border: 1px solid var(--border);
  padding: 48px;
  margin-top: 56px;
  background: var(--surface);
}

.fit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.fit-list li {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 18px 0;
  padding-left: 26px;
  position: relative;
  border-top: 1px solid var(--border);
}

.fit-list li:nth-child(1),
.fit-list li:nth-child(2) {
  border-top: none;
}

.fit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); }

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

.contact-form {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 15px 18px;
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: 2px;
  resize: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  font-size: 0.88rem;
  color: var(--gold-light);
  min-height: 1.2em;
}

.contact-alt {
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-alt-label {
  color: var(--text);
  font-weight: 600;
}

.contact-alt a { color: var(--gold); }
.contact-alt a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.footer-logo em {
  color: var(--gold);
  font-weight: 400;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-dim);
  transition: color 0.25s ease;
}

.footer-nav a:hover { color: var(--gold); }

.footer-copy { width: 100%; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--border);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  /* The slide-out panel always sits on the light ivory background, unlike
     the fixed header bar — its links must stay dark regardless of whether
     the header itself is in its "over the video" (light-text) state. */
  .main-nav a { color: var(--text-muted) !important; }
  .main-nav a:hover { color: var(--text) !important; }
  .lang-switch { color: var(--gold) !important; border-color: var(--border) !important; }
  .lang-switch:hover { border-color: var(--gold) !important; }

  /* The open panel sits under the toggle button too — keep the icon dark
     so it stays visible against the panel instead of the video/header. */
  .main-nav.open ~ .nav-toggle span { background: var(--text) !important; }

  .triangle-grid,
  .capability-grid,
  .method-steps {
    grid-template-columns: 1fr;
  }
  .fit-panel { padding: 32px; }
  .fit-list { grid-template-columns: 1fr; }
  .fit-list li:nth-child(2) { border-top: 1px solid var(--border); }
  .geo-legend { grid-template-columns: repeat(2, 1fr); }

  /* Map renders wider than the screen so Türkiye reads clearly; opens
     scrolled to center on it (see geomap.js) and swipes left/right.
     Scrolling happens on .geo-map-scroll, not .geo-map-wrap, so the
     tooltip (outside the scroll box) is never clipped or misaligned. */
  .geo-map-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .geo-map {
    width: 1700px;
    max-width: none;
  }
  .method-step:not(:last-child) {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
  }
  .vision-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-facts { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .stat {
    max-width: none;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .stat-num, .stat-plus { font-size: 1.9rem; }
  .stat-label { font-size: 0.78rem; margin-top: 0; }
  section { padding: 90px 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { position: static; max-width: 260px; }
  .persp-item { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; }
  .lang-switch { align-self: flex-start; }
}
