/* ═══════════════════════════════════════════════════════════════════
   TYPOLOGIES CAPACITANTES — Shared Stylesheet
   Uğur Can EROL · IPRAUS / ED 528
   Aesthetic: Atelier de dessin / Technical manuscript / Blueprint
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Figtree:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

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

/* ══════════════════════════════════════════════
   VARIABLES — Palette Pierre & Encre
   ══════════════════════════════════════════════ */
:root {
  /* Palette */
  --cream:    #f4f1eb;
  --cream-2:  #ebe7de;
  --cream-3:  #ddd8cc;
  --ink:      #18181a;
  --ink-2:    #38383b;
  --ink-3:    #4a4a50;
  --accent:   #1a3a4a;
  --accent-2: #2d5468;
  --gold:     #b5956a;
  --gold-2:   #8a7050;
  --blue:     #1a3a4a;
  --blue-2:   #2d5468;
  --line:     rgba(24,24,26,0.10);
  --line-2:   rgba(24,24,26,0.05);

  /* Blueprint grid pattern */
  --grid-color: rgba(26,58,74,0.055);

  /* Typography */
  --f-serif: 'EB Garamond', Georgia, serif;
  --f-sans:  'Figtree', system-ui, sans-serif;
  --f-mono:  'JetBrains Mono', monospace;

  /* Scale */
  --fs-h1:    clamp(2.5rem, 4vw, 4rem);
  --fs-h1-lg: clamp(2.8rem, 5vw, 4.8rem);
  --fs-h2:    clamp(1.5rem, 2.5vw, 2rem);
  --fs-h3:    clamp(1rem, 1.5vw, 1.2rem);
  --fs-lead:  clamp(1rem, 1.5vw, 1.2rem);
  --fs-body:  15px;
  --fs-small: 13px;
  --fs-micro: 11px;
  --lh-body:  1.8;

  /* Spacing */
  --sp-section: 5rem 2.5rem;
  --sp-hero:    5rem 2.5rem 4rem;
  --sp-card:    2rem;
  --max-w: 1280px;
  --nav-h: 88px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: var(--lh-body);
  font-size: var(--fs-body);
  overflow-x: hidden;
  /* Blueprint grid atmosphere */
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: scroll;
}

/* Grid overlay fade — yalnızca grid pattern üzerinde, içerik katmanlarına dokunmaz */

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cream-3); }

/* ══════════════════════════════════════════════
   PAGE LOAD ANIMATION
   ══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes drawLine {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scaleX(0); transform-origin: left; }
  to   { opacity: 1; transform: scaleX(1); transform-origin: left; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.4); }
}

/* Staggered entry on page load */
.page-wrap > *:first-child { animation: fadeUp 0.7s var(--ease-out-expo) both; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════ */
h1 {
  font-family: var(--f-serif);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--f-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h3 {
  font-family: var(--f-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--ink);
}
p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
}
em { font-style: italic; }

/* ══════════════════════════════════════════════
   LANG BAR
   ══════════════════════════════════════════════ */
#lang-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--ink);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 2.5rem; height: 32px; gap: 0.4rem;
}
#lang-bar span {
  color: rgba(244,241,235,0.55);
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.18em;
  margin-right: 0.5rem;
}
.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35); font-family: var(--f-mono);
  font-size: 9px; letter-spacing: 0.1em; padding: 2px 7px;
  cursor: pointer; border-radius: 1px; transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */
nav {
  position: fixed; top: 32px; left: 0; right: 0; z-index: 100;
  background: rgba(244,241,235,0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 56px;
  transition: background 0.3s;
}
nav.scrolled {
  background: rgba(244,241,235,0.97);
  box-shadow: 0 1px 20px rgba(24,24,26,0.06);
}
.nav-logo {
  font-family: var(--f-serif); font-size: 15px; font-weight: 500;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
  white-space: nowrap; position: relative;
}
.nav-logo em { color: var(--accent); font-style: italic; }
/* Subtle underline draw on hover */
.nav-logo::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}
.nav-logo:hover::after { transform: scaleX(1); }

.nav-links { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
  text-decoration: none; transition: color 0.2s;
  white-space: nowrap; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); }
.nav-links.open { display: flex !important; transform: translateY(0) !important; opacity: 1 !important; pointer-events: auto !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; border: none; background: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { width: 20px; height: 1.5px; background: var(--ink); transition: 0.3s; display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════════════════════
   PAGE WRAPPER
   ══════════════════════════════════════════════ */
.page-wrap { padding-top: var(--nav-h); }

/* ══════════════════════════════════════════════
   SECTION
   ══════════════════════════════════════════════ */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2.5rem;
}
.section-header {
  display: flex; align-items: baseline; gap: 1.25rem;
  margin-bottom: 3rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.section-num {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--gold); letter-spacing: 0.14em; opacity: 0.85;
}
.section-title {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400; color: var(--ink);
  letter-spacing: -0.005em;
}
.section-title em { color: var(--accent); font-style: italic; }

/* Dark section */
.section-dark {
  background: var(--ink); color: var(--cream);
  padding: 5rem 0; position: relative;
}
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(181,149,106,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,149,106,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.section-dark .section-title { color: var(--cream); }
.section-dark .section-title em { color: var(--gold); }
.section-dark .section-num { color: var(--gold); }
.section-dark .section-header { border-color: rgba(255,255,255,0.08); }
.section-dark-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem;
  position: relative; z-index: 1;
}

/* Muted section */
.section-muted { background: var(--cream-2); }

/* ══════════════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════════════ */
.divider { width: 100%; height: 1px; background: var(--line); }

/* ══════════════════════════════════════════════
   PAGE HERO
   ══════════════════════════════════════════════ */
.page-hero {
  padding: 5rem 2.5rem 4rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream-2);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.page-hero.dark {
  background: var(--ink);
  border-bottom-color: rgba(255,255,255,0.05);
}
.page-hero.dark::before {
  background-image:
    linear-gradient(rgba(181,149,106,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,149,106,0.06) 1px, transparent 1px);
}
.page-hero.blue {
  background: var(--accent);
  border-bottom: none;
}
.page-hero.blue::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative; z-index: 1;
}

.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold);
}
.page-hero.dark .hero-eyebrow { color: var(--gold); }
.page-hero.dark .hero-eyebrow::before { background: var(--gold); }
.page-hero.blue .hero-eyebrow { color: rgba(255,255,255,0.72); }
.page-hero.blue .hero-eyebrow::before { background: rgba(255,255,255,0.4); }

.hero-title {
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.page-hero.dark .hero-title, .page-hero.blue .hero-title { color: #fff; }

.hero-subtitle {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-3);
  margin-bottom: 1.75rem;
}
.page-hero.dark .hero-subtitle { color: rgba(244,241,235,0.72); }
.page-hero.blue .hero-subtitle { color: rgba(255,255,255,0.55); }

.hero-desc {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.8;
  max-width: 700px;
}
.page-hero.dark .hero-desc { color: rgba(244,241,235,0.65); }
.page-hero.blue .hero-desc { color: rgba(255,255,255,0.55); }

/* ══════════════════════════════════════════════
   HOME HERO
   ══════════════════════════════════════════════ */
.home-hero {
  padding: 3rem 2.5rem 0;
  max-width: var(--max-w);
  margin: 0 auto;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 88px);
}
.home-hero-title {
  font-family: var(--f-serif);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  line-height: 1.05;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.1s both;
}
.home-hero-subtitle {
  font-family: var(--f-serif);
  font-size: 1.18rem;
  color: var(--ink-2);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.22s both;
}
.home-hero-quote {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.85;
  margin-bottom: 2rem;
  border-left: 1.5px solid var(--gold);
  padding-left: 1rem;
  font-style: italic;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.34s both;
}

/* Animated entry stagger for hero children */
.home-hero-grid > div:first-child > .meta-block {
  animation: fadeUp 0.8s var(--ease-out-expo) 0.46s both;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.stat-item { display: flex; flex-direction: column; }
.stat-val {
  font-family: var(--f-mono);
  font-size: 28px; font-weight: 300;
  color: var(--accent); line-height: 1;
}
.stat-val.blue { color: var(--blue-2); }
.stat-val.gold { color: var(--gold); }
.stat-label {
  font-size: 10px; color: rgba(244,241,235,0.55);
  font-family: var(--f-mono); letter-spacing: 0.1em;
  margin-top: 0.25rem; text-transform: uppercase;
}

/* ══════════════════════════════════════════════
   EYEBROW
   ══════════════════════════════════════════════ */
.eyebrow {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: var(--gold);
}

/* ══════════════════════════════════════════════
   TAGS
   ══════════════════════════════════════════════ */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.tag {
  font-family: var(--f-mono); font-size: 10px;
  padding: 3px 8px; border: 1px solid var(--line);
  color: var(--ink-3); letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--gold); color: var(--gold-2); }

/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */
.card {
  background: var(--cream-2); padding: 2rem;
  transition: background 0.25s, box-shadow 0.25s;
}
.card:hover {
  background: var(--cream-3);
  box-shadow: 0 4px 24px rgba(24,24,26,0.07);
}

.card-accent {
  background: var(--cream-2);
  border-left: 2px solid var(--gold);
  padding: 2rem; transition: background 0.25s;
}
.card-accent:hover { background: var(--cream-3); }

.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }

/* ── Tool Card ── */
.tool-card {
  background: var(--cream-2); padding: 2.5rem;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  display: block;
  transition: background 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid var(--line);
}
.tool-card:hover {
  background: var(--cream-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 2px; height: 100%; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.35s var(--ease-out-expo);
}
.tool-card:hover::before { transform: scaleY(1); }

/* Corner coordinate marker on tool cards */
.tool-card::after {
  content: attr(data-coord);
  position: absolute; bottom: 1rem; right: 1rem;
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 0.1em; color: var(--line);
  transition: color 0.3s;
}
.tool-card:hover::after { color: var(--gold); }

.tool-num {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--gold); letter-spacing: 0.15em; margin-bottom: 1.25rem; display: block;
}
.tool-title {
  font-family: var(--f-serif); font-size: 1.5rem;
  font-weight: 400; color: var(--ink); margin-bottom: 0.6rem; line-height: 1.25;
}
.tool-title em { font-style: italic; color: var(--accent); }
.tool-desc { font-size: 13px; color: var(--ink-3); line-height: 1.75; margin-bottom: 1.25rem; }
.tool-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); text-decoration: none;
}
.tool-link::after { content: '→'; transition: transform 0.2s; }
.tool-card:hover .tool-link::after { transform: translateX(4px); }

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent); color: #fff; border: none;
  padding: 0.85rem 2rem; font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out-expo);
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { background: var(--accent-2); }
.btn-full { width: 100%; justify-content: center; }
.btn-outline {
  background: none; border: 1px solid var(--accent); color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-outline::before { display: none; }

/* ══════════════════════════════════════════════
   FORM
   ══════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 0.45rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.7rem 1rem;
  background: var(--cream); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--f-sans); font-size: 13.5px;
  outline: none; transition: border-color 0.25s; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181,149,106,0.12);
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ══════════════════════════════════════════════
   META BLOCK
   ══════════════════════════════════════════════ */
.meta-block {
  border-left: 1.5px solid var(--gold);
  padding-left: 1.25rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.meta-row { display: flex; gap: 0.75rem; align-items: baseline; }
.meta-key {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.06em; min-width: 100px;
}
.meta-val { font-size: 13.5px; color: var(--ink-2); }
.meta-val strong { color: var(--ink); font-weight: 500; }

/* ══════════════════════════════════════════════
   REF CARD
   ══════════════════════════════════════════════ */
.ref-card {
  background: var(--cream-2); padding: 1.5rem;
  transition: background 0.2s;
  border-bottom: 1px solid var(--line);
}
.ref-card:hover { background: var(--cream-3); }
.ref-authors {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--gold); letter-spacing: 0.04em; margin-bottom: 0.35rem;
}
.ref-title {
  font-family: var(--f-serif); font-size: 0.95rem;
  font-style: italic; color: var(--ink); margin-bottom: 0.3rem; line-height: 1.4;
}
.ref-journal { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.ref-comment {
  font-size: 11px; color: var(--ink-3); font-style: italic;
  margin-top: 0.4rem; border-top: 1px solid var(--line-2); padding-top: 0.4rem;
}

/* Dark overrides */
.section-dark .ref-card { background: rgba(255,255,255,0.04); }
.section-dark .ref-card:hover { background: rgba(255,255,255,0.08); }
.section-dark .ref-authors { color: var(--gold); }
.section-dark .ref-title { color: rgba(244,241,235,0.88); }
.section-dark .ref-journal { color: rgba(244,241,235,0.65); }
.section-dark .ref-comment { color: rgba(244,241,235,0.60); border-top-color: rgba(255,255,255,0.07); }

/* ══════════════════════════════════════════════
   LEXICON
   ══════════════════════════════════════════════ */
.lex-item {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s;
}
.lex-item:hover { background: rgba(255,255,255,0.04); }
.lex-item:nth-child(3n) { border-right: none; }
.lex-term {
  font-family: var(--f-serif); font-size: 1.05rem;
  font-style: italic; color: var(--gold); margin-bottom: 0.45rem;
}
.lex-def { font-size: 12.5px; color: rgba(255,255,255,0.8); line-height: 1.7; }
.lex-ref {
  font-family: var(--f-mono); font-size: 10px;
  color: rgba(255,255,255,0.6); margin-top: 0.45rem; letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════
   HYPOTHESIS
   ══════════════════════════════════════════════ */
.hypothesis {
  background: var(--cream-2); padding: 2rem;
  border-left: 2px solid var(--gold);
  transition: background 0.2s;
}
.hypothesis:hover { background: var(--cream-3); }
.hyp-num {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--gold); letter-spacing: 0.12em; margin-bottom: 0.6rem;
}
.hyp-text {
  font-family: var(--f-serif); font-size: 1rem;
  color: var(--ink); line-height: 1.6; margin-bottom: 0.6rem;
}
.hyp-refut {
  font-size: 11.5px; color: var(--ink-3); font-style: italic;
  border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 0.6rem;
}

/* ══════════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════════ */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 1.5rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline-year {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--gold); letter-spacing: 0.05em;
}
.timeline-content h4 {
  font-family: var(--f-serif); font-size: 1rem;
  font-weight: 500; color: var(--ink); margin-bottom: 0.3rem;
}
.timeline-content p { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* ══════════════════════════════════════════════
   PARADIGM BAR
   ══════════════════════════════════════════════ */
.paradigm-bar {
  background: var(--ink); display: flex; width: 100%;
  position: relative;
}
.paradigm-bar::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(181,149,106,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,149,106,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.paradigm-panel {
  flex: 1; padding: 2.25rem 1.75rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s; position: relative; z-index: 1;
}
.paradigm-panel:last-child { border-right: none; }
.paradigm-panel:hover { background: rgba(255,255,255,0.03); }
.paradigm-panel.active { background: rgba(26,58,74,0.6); border-top: 2px solid var(--gold); }
.p-num {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 0.2em; color: rgba(255,255,255,0.6);
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.active .p-num { color: var(--gold); }
.p-name {
  font-family: var(--f-serif); font-size: 1.1rem;
  font-style: italic; color: rgba(255,255,255,0.75); margin-bottom: 0.4rem;
}
.active .p-name { color: #fff; }
.p-desc { font-size: 11.5px; color: rgba(255,255,255,0.72); line-height: 1.6; }
.active .p-desc { color: rgba(255,255,255,0.8); }

/* ══════════════════════════════════════════════
   SCORE BAR
   ══════════════════════════════════════════════ */
.score-bar-bg {
  height: 3px; background: var(--cream-3);
  margin-top: 0.75rem; overflow: hidden;
}
.score-bar-fill {
  height: 100%; background: var(--gold);
  width: 0; transition: width 1.2s var(--ease-out-expo);
}
.score-bar { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.75rem; }
.score-label {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.06em;
  display: flex; justify-content: space-between;
}
.score-track {
  height: 3px; background: var(--cream-3); overflow: hidden;
}
.score-fill {
  height: 100%; background: var(--gold);
  transition: width 0.8s var(--ease-out-expo);
}

/* ══════════════════════════════════════════════
   ACCORDION
   ══════════════════════════════════════════════ */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-header {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.25rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-serif); font-size: 1.05rem; color: var(--ink);
  transition: color 0.2s;
}
.accordion-header:hover { color: var(--gold); }
.accordion-icon {
  font-family: var(--f-mono); font-size: 18px; color: var(--gold);
  transition: transform 0.25s var(--ease-out-expo); line-height: 1;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  font-size: 13.5px; color: var(--ink-3); line-height: 1.75;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo), padding 0.2s;
}
.accordion-item.open .accordion-body { max-height: 800px; padding-bottom: 1.25rem; }

/* ══════════════════════════════════════════════
   MATRIX TABLE
   ══════════════════════════════════════════════ */
.matrix-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.matrix-table th {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid var(--gold); padding: 0.75rem 1rem; text-align: left;
  font-weight: 400;
}
.matrix-table td {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--line);
  vertical-align: top; color: var(--ink-2); line-height: 1.5;
}
.matrix-table tr:hover td { background: var(--cream-2); }
.matrix-table td:first-child {
  font-family: var(--f-mono); font-size: 11px; font-weight: 400;
  color: var(--ink); white-space: nowrap;
}

/* ══════════════════════════════════════════════
   VOID CARD (Atlas)
   ══════════════════════════════════════════════ */
.void-card {
  background: var(--cream); padding: 1.75rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.2s;
}
.void-card:hover { background: var(--cream-2); }
.void-card h3 {
  font-family: var(--f-serif); font-size: 1rem;
  font-weight: 400; color: var(--ink); margin-bottom: 0.4rem;
}
.void-card p { font-size: 12px; color: var(--ink-3); line-height: 1.6; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer {
  background: var(--ink); color: var(--cream);
  padding: 4rem 2.5rem 2rem;
  position: relative;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand h3 {
  font-family: var(--f-serif); font-size: 1.2rem;
  font-weight: 400; color: #fff; margin-bottom: 0.4rem;
}
.footer-brand h3 em { color: var(--gold); font-style: italic; }
.footer-brand p { font-size: 12px; color: rgba(244,241,235,0.62); line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(244,241,235,0.55); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col a {
  font-size: 12.5px; color: rgba(244,241,235,0.65);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-w); margin: 2rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
  font-family: var(--f-mono); font-size: 10px;
  color: rgba(244,241,235,0.65); letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════
   NOTIFICATION
   ══════════════════════════════════════════════ */
#notif {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--ink); color: var(--cream);
  padding: 0.9rem 1.5rem;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.05em;
  border-left: 2px solid var(--gold);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s; z-index: 999;
}
#notif.show { opacity: 1; }

/* ══════════════════════════════════════════════
   ATLAS-SPECIFIC
   ══════════════════════════════════════════════ */
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.atlas-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.5rem;
  transition: box-shadow 0.25s, transform 0.25s, background 0.2s;
}
.atlas-card:hover {
  box-shadow: 0 8px 32px rgba(24,24,26,0.09);
  transform: translateY(-2px);
  background: var(--cream-2);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .home-hero-grid { grid-template-columns: 1fr; min-height: unset; padding-bottom: 4rem; }
  .home-hero-grid > div:last-child { display: none; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .paradigm-bar { flex-direction: column; }
  .paradigm-panel { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 88px; }
  .hamburger { display: flex; }
  .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(244,241,235,0.98); backdrop-filter: blur(10px);
    flex-direction: column; gap: 1.5rem; padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px); opacity: 0;
    pointer-events: none; transition: all 0.3s var(--ease-out-expo);
    max-height: calc(100vh - 88px); overflow-y: auto;
  }
  #lang-bar { padding: 0 1rem; }
  #lang-bar span { display: none; }
  nav { padding: 0 1rem; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .atlas-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1.25rem; }
  .section-dark-inner { padding: 0 1.25rem; }
  .page-hero { padding: 3rem 1.25rem 2.5rem; }
  .home-hero { padding: 2rem 1.25rem 0; }
  .meta-block { font-size: 13px; }
  .meta-row { flex-wrap: wrap; }
  body { background-size: 24px 24px; }
}

/* ══════════════════════════════════════════════
   GÖRSEL SÉDIMENTATION — Grafik Uyumu
   ══════════════════════════════════════════════ */
.recharts-polar-grid-angle line,
.recharts-polar-grid-concentric path,
.recharts-polar-grid-concentric circle {
  stroke: var(--line) !important;
}
.recharts-radar .recharts-polygon { stroke-width: 1.5px !important; }
.recharts-tooltip-wrapper .recharts-default-tooltip {
  background: var(--cream) !important;
  border: 1px solid var(--line) !important;
  font-family: var(--f-mono) !important;
  font-size: 11px !important;
  color: var(--ink) !important;
}
.recharts-cartesian-axis-tick text,
.recharts-polar-angle-axis-tick text {
  fill: var(--ink-3) !important;
  font-family: var(--f-mono) !important;
  font-size: 10px !important;
}
.recharts-legend-item-text {
  color: var(--ink-2) !important;
  font-family: var(--f-mono) !important;
  font-size: 10px !important;
}
#map-points circle { stroke: var(--cream) !important; stroke-width: 1.5px !important; }
.recharts-wrapper,
.recharts-surface,
.recharts-responsive-container { font-family: var(--f-mono) !important; }

/* ══════════════════════════════════════════════
   CARNET ENTRY
   ══════════════════════════════════════════════ */
.carnet-entry {
  background: var(--cream-2);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .carnet-entry {
    padding: 1.5rem;
  }
}

/* ══════════════════════════════════════════════
   CLS / MOBILE HARDENING
   ══════════════════════════════════════════════ */
html { scroll-behavior: smooth; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
/* Prevent FOUC / i18n flash before nav.js swaps strings */
[data-i18n]:empty::before { content: "\00a0"; }
/* Lock nav height so mobile menu toggle does not shift content */
nav { min-height: var(--nav-h, 72px); }
/* Prevent horizontal scroll on small screens */
html, body { overflow-x: hidden; }
/* Better touch targets on mobile */
@media (max-width: 768px) {
  .lang-btn, .nav-links a, button, .btn { min-height: 44px; }
  h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.15; }
  h2 { font-size: clamp(1.35rem, 5.5vw, 2rem); line-height: 1.2; }
  p  { font-size: 15px; line-height: 1.65; }
  table { display: block; overflow-x: auto; }
  .accordion-header { padding-right: 2rem; }
  .accordion-item.open .accordion-body { max-height: 2000px; }
}
@media (max-width: 480px) {
  .section { padding: 2.5rem 1rem; }
  .page-hero { padding: 2rem 1rem 1.5rem; }
}
