/* ==========================================================================
   OKTAN YAPI — base.css
   Token'lar, reset, temalar, tipografi, yerleşim, yardımcılar, reveal,
   split-text, reduced-motion, yazdırma.
   Sahip: CSS-A1.  Sözleşme: docs/design-system.md (§3, §4, §5b)
   ========================================================================== */


/* ==========================================================================
   1. TOKEN'LAR
   ========================================================================== */
:root {
  /* --- Renk paleti (sözleşme §3) --- */
  --navy-950: #070f18;
  --navy-900: #0b1622;
  --navy-800: #112133;
  --navy-700: #182e45;
  --navy-600: #21425f;
  --navy-500: #2d5a82;

  --gold-700: #8a6a14;
  --gold-600: #a8841f;
  --gold-500: #c9a132;
  --gold-400: #dcb94f;
  --gold-300: #ebd081;
  --gold-200: #f4e5b3;

  --paper-50: #fbf9f4;
  --paper-100: #f4f1ea;
  --paper-200: #e9e4d8;
  --paper-300: #d9d2c0;

  --ink-900: #0f1b28;
  --ink-700: #2b3948;
  --ink-500: #566574;
  --ink-300: #8c97a3;

  --white: #fff;
  --danger: #c0392b;
  --success: #2e8b57;

  --grad-gold: linear-gradient(135deg, #ebd081 0%, #c9a132 52%, #a8841f 100%);
  --grad-navy: linear-gradient(160deg, #182e45 0%, #0b1622 70%);

  /* --- Ek yardımcı token'lar: rgba() içinde kullanmak için RGB kanalları ---
     Kullanım: rgba(var(--gold-500-rgb), .3)  (ham hex yazmamak için)       */
  --white-rgb: 255, 255, 255;
  --navy-950-rgb: 7, 15, 24;
  --navy-900-rgb: 11, 22, 34;
  --navy-800-rgb: 17, 33, 51;
  --gold-700-rgb: 138, 106, 20;
  --gold-500-rgb: 201, 161, 50;
  --gold-400-rgb: 220, 185, 79;
  --gold-300-rgb: 235, 208, 129;
  --ink-900-rgb: 15, 27, 40;

  /* --- Tipografi --- */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-h4: clamp(1.15rem, 1rem + .5vw, 1.35rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
  --fs-h1: clamp(2.3rem, 1.4rem + 4vw, 4.6rem);
  --fs-display: clamp(2.7rem, 1.2rem + 6.4vw, 6.4rem);

  /* --- Boşluk / yerleşim / efekt --- */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1240px;
  --container-wide: 1440px;
  --container-narrow: 860px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(8, 18, 29, .08);
  --shadow-md: 0 12px 32px rgba(8, 18, 29, .14);
  --shadow-lg: 0 28px 64px rgba(8, 18, 29, .22);
  --shadow-gold: 0 10px 40px rgba(201, 161, 50, .35);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --dur-1: .18s;
  --dur-2: .35s;
  --dur-3: .6s;
  --dur-4: 1s;

  --header-h: 84px;
  --topbar-h: 42px; /* topbar kaydırınca görsel olarak 0'a iner; <1024'te topbar yok */

  --z-base: 1;
  --z-raised: 10;
  --z-header: 100;
  --z-menu: 110;
  --z-modal: 200;
  --z-toast: 300;
  --z-cursor: 900;
  --z-transition: 950;
  --z-preloader: 1000;

  /* --- Anlamsal değişkenler: varsayılan = açık tema (.theme-light) --- */
  --bg: var(--paper-100);
  --bg-alt: var(--paper-200);
  --surface: var(--white);
  --surface-2: var(--paper-50);
  --text: var(--ink-700);
  --text-muted: var(--ink-500);
  --heading: var(--ink-900);
  --accent: var(--gold-700);
  --line: rgba(var(--ink-900-rgb), .12);
  --line-strong: rgba(var(--ink-900-rgb), .26);
  --shadow-color: rgba(8, 18, 29, .16);
  /* yardımcı anlamsal: odak halkası ve gradyan metin */
  --focus-ring: var(--gold-700);
  --grad-accent: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%);

  color-scheme: light;
}

/* Mobil/tablet: topbar yok, daha ince header */
@media (max-width: 1023.98px) {
  :root {
    --header-h: 68px;
    --topbar-h: 0px;
  }
}


/* ==========================================================================
   2. RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: auto; /* kaydırmayı JS yönetir */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-h) + var(--space-5));
  background: var(--navy-950);
  scrollbar-width: thin;
  scrollbar-color: var(--navy-600) var(--navy-950);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: clamp(1rem, .97rem + .12vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

/* Reveal (translateX ±56px), tilt ve parallax kaynaklı taşmalar sayfayı yatay
   genişletmesin: body'deki clip kök kaydırıcıya yayıldığı için yetmez. */
main,
.site-footer {
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, pre, hr {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, picture, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: inherit;
  -webkit-appearance: none;
  appearance: none;
}

button:disabled {
  cursor: not-allowed;
}

textarea {
  resize: vertical;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-5));
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--gold-400);
  color: var(--navy-900);
}

::-moz-selection {
  background: var(--gold-400);
  color: var(--navy-900);
}

/* Özel (ince) kaydırma çubuğu */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--navy-950);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-600);
  border-radius: var(--radius-pill);
  border: 2px solid var(--navy-950);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-600);
}

/* Modal / mobil menü açıkken kaydırma kilidi */
html.menu-open,
html.modal-open {
  overflow: hidden;
}


/* ==========================================================================
   3. TEMALAR  (bölüm/blok seviyesinde, iç içe geçebilir)
   Bileşenler yalnızca anlamsal değişkenleri kullanır.
   ========================================================================== */
.theme-light {
  --bg: var(--paper-100);
  --bg-alt: var(--paper-200);
  --surface: var(--white);
  --surface-2: var(--paper-50);
  --text: var(--ink-700);
  --text-muted: var(--ink-500);
  --heading: var(--ink-900);
  --accent: var(--gold-700);
  --line: rgba(var(--ink-900-rgb), .12);
  --line-strong: rgba(var(--ink-900-rgb), .26);
  --shadow-color: rgba(8, 18, 29, .16);
  --focus-ring: var(--gold-700);
  --grad-accent: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}

.theme-white {
  --bg: var(--white);
  --bg-alt: var(--paper-50);
  --surface: var(--paper-50);
  --surface-2: var(--paper-100);
  --text: var(--ink-700);
  --text-muted: var(--ink-500);
  --heading: var(--ink-900);
  --accent: var(--gold-700);
  --line: rgba(var(--ink-900-rgb), .1);
  --line-strong: rgba(var(--ink-900-rgb), .24);
  --shadow-color: rgba(8, 18, 29, .14);
  --focus-ring: var(--gold-700);
  --grad-accent: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}

.theme-paper {
  --bg: var(--paper-200);
  --bg-alt: var(--paper-100);
  --surface: var(--paper-50);
  --surface-2: var(--white);
  --text: var(--ink-700);
  --text-muted: var(--ink-500);
  --heading: var(--ink-900);
  --accent: var(--gold-700);
  --line: rgba(var(--ink-900-rgb), .14);
  --line-strong: rgba(var(--ink-900-rgb), .3);
  --shadow-color: rgba(8, 18, 29, .16);
  --focus-ring: var(--gold-700);
  --grad-accent: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%);
  color-scheme: light;
  color: var(--text);
  /* hafif kâğıt dokusu (feTurbulence, data-URI) */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .3 0 0 0 0 .18 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--bg);
}

.theme-dark {
  --bg: var(--navy-900);
  --bg-alt: var(--navy-950);
  --surface: var(--navy-800);
  --surface-2: var(--navy-700);
  --text: rgba(var(--white-rgb), .78);
  --text-muted: rgba(var(--white-rgb), .6);
  --heading: var(--white);
  --accent: var(--gold-400);
  --line: rgba(var(--white-rgb), .1);
  --line-strong: rgba(var(--white-rgb), .24);
  --shadow-color: rgba(0, 0, 0, .45);
  --focus-ring: var(--gold-400);
  --grad-accent: var(--grad-gold);
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

.theme-navy {
  --bg: var(--navy-800);
  --bg-alt: var(--navy-900);
  --surface: var(--navy-700);
  --surface-2: var(--navy-600);
  --text: rgba(var(--white-rgb), .8);
  --text-muted: rgba(var(--white-rgb), .62);
  --heading: var(--white);
  --accent: var(--gold-400);
  --line: rgba(var(--white-rgb), .12);
  --line-strong: rgba(var(--white-rgb), .26);
  --shadow-color: rgba(0, 0, 0, .4);
  --focus-ring: var(--gold-400);
  --grad-accent: var(--grad-gold);
  color-scheme: dark;
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: var(--text);
}

/* body varsayılanı .theme-light ile aynı değerleri :root'tan alır;
   body'ye sınıf eklenmişse de çalışır (yukarıdaki kurallar). */


/* ==========================================================================
   4. TİPOGRAFİ
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--heading);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.08; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.18; }
h4 { font-size: var(--fs-h4); line-height: 1.25; }
h5 { font-size: var(--fs-lg); line-height: 1.3; }
h6 { font-size: var(--fs-md); line-height: 1.35; letter-spacing: -.01em; }

p {
  text-wrap: pretty;
}

strong, b {
  font-weight: 700;
}

small {
  font-size: var(--fs-sm);
}

/* Başlık ölçeği sınıfları (etikete bağlı kalmadan) */
.display-1 {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--heading);
  text-wrap: balance;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.2rem + 4.8vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--heading);
  text-wrap: balance;
}

.h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--heading); text-wrap: balance; }
.h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--heading); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.18; letter-spacing: -.02em; color: var(--heading); text-wrap: balance; }
.h4 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--heading); }

.lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 62ch;
}

/* Küçük üst başlık: büyük harf, geniş harf aralığı, solda altın çizgi */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 2.4rem;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
}

/* Vurgu kelimesi: Playfair Display italik, altın */
.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--accent);
}

/* Altın gradyan metin (+ opsiyonel shimmer) */
.gradient-text {
  color: transparent;
  background-image: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text--shimmer {
  background-image: linear-gradient(
    105deg,
    var(--gold-600) 0%,
    var(--gold-500) 34%,
    var(--gold-200) 50%,
    var(--gold-500) 66%,
    var(--gold-600) 100%
  );
  background-size: 260% 100%;
  background-position: 100% 0;
  animation: gradient-shimmer 5.5s linear infinite;
}

.theme-dark .gradient-text--shimmer,
.theme-navy .gradient-text--shimmer {
  background-image: linear-gradient(
    105deg,
    var(--gold-500) 0%,
    var(--gold-400) 34%,
    var(--gold-200) 50%,
    var(--gold-400) 66%,
    var(--gold-500) 100%
  );
}

@keyframes gradient-shimmer {
  to { background-position: -160% 0; }
}

/* Etiket blokları (Instagram'daki "Yarının Temelleri" kutuları) */
.label-block {
  display: inline;
  padding: .14em .72em;
  font-family: var(--font-display);
  font-size: .96em;
  font-weight: 600;
  line-height: 1.95;
  letter-spacing: -.005em;
  color: var(--navy-900);
  background: var(--white);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  box-shadow: 0 8px 22px -10px rgba(8, 18, 29, .35);
}

.label-block--white {
  color: var(--navy-900);
  background: var(--white);
}

.label-block--gold {
  color: var(--navy-900);
  background: var(--gold-500);
  background-image: linear-gradient(135deg, var(--gold-400), var(--gold-500));
}

.label-block--navy {
  color: var(--white);
  background: var(--navy-900);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .6);
}

/* Uzun metin */
.prose {
  max-width: 68ch;
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--text);
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: var(--fs-h3);
  line-height: 1.2;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: var(--fs-h4);
  line-height: 1.3;
}

.prose h4 {
  margin-top: 1.6em;
  font-size: var(--fs-lg);
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: .7em;
}

.prose strong {
  color: var(--heading);
  font-weight: 700;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(var(--gold-500-rgb), .55);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: text-decoration-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
}

.prose ul {
  list-style: none;
}

.prose ul > li {
  position: relative;
}

.prose ul > li::before {
  content: '';
  position: absolute;
  left: -1.25em;
  top: .72em;
  width: .42em;
  height: .42em;
  background: var(--gold-500);
  transform: rotate(45deg);
}

.prose ol {
  list-style: decimal;
}

.prose ol > li::marker {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.prose li + li {
  margin-top: .5em;
}

.prose li > ul,
.prose li > ol {
  margin-top: .5em;
}

.prose blockquote {
  padding: .35em 0 .35em 1.4em;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-serif);
  font-size: 1.2em;
  font-style: italic;
  line-height: 1.6;
  color: var(--heading);
}

.prose blockquote > * + * {
  margin-top: .6em;
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.prose th,
.prose td {
  padding: .75em 1em;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
  border-bottom: 2px solid var(--gold-500);
  white-space: nowrap;
}

.prose hr {
  margin-block: 2.2em;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose code {
  padding: .1em .4em;
  font-size: .9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}


/* ==========================================================================
   5. YERLEŞİM
   ========================================================================== */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - var(--gutter) * 2, var(--container-wide));
}

.container--narrow {
  width: min(100% - var(--gutter) * 2, var(--container-narrow));
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * .6);
}

.section--flush {
  padding-block: 0;
}

/* Izgara */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap, var(--space-5));
}

.grid--gap-lg {
  --grid-gap: var(--space-7);
}

@media (min-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* İki sütun */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--split-gap, clamp(2rem, 5vw, 5rem));
}

.split--center {
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

.stack > * + * {
  margin-top: var(--stack-gap, var(--space-4));
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--space-3));
}


/* ==========================================================================
   6. YARDIMCILAR
   ========================================================================== */
.center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.text-center { text-align: center; }

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Atla bağlantısı (chrome.css yalnızca z-index ekler) */
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: calc(var(--z-preloader) + 10);
  padding: .8rem 1.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-900);
  background: var(--gold-400);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transform: translateY(-200%);
  transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline: 2px solid var(--navy-900);
  outline-offset: 2px;
}

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }

@media (max-width: 767.98px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .show-mobile { display: none !important; }
}

.text-gold { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }


/* ==========================================================================
   7. REVEAL (yalnızca html.js altında — JS yoksa içerik görünür kalır)
   Sözleşme §5b: JS .is-revealed ekler; --reveal-delay / --reveal-duration
   (birimli) öğeye satır içi yazılır.
   Uygulama notu: geçiş (transition) yerine "backwards" dolgulu CSS animasyonu
   kullanılır; böylece reveal edilen öğelerin kendi hover geçişleri
   (transform/opacity) reveal gecikmesinden etkilenmez.
   Yön adları: "left" = soldan gelir, "right" = sağdan gelir,
   "up" = alttan yukarı yükselir, "down" = üstten iner.
   ========================================================================== */
html.js [data-reveal] {
  --rx: 0px;
  --ry: 40px;
  --rs: 1;
  --rr: 0deg;
  opacity: 0;
  transform: translate3d(var(--rx), var(--ry), 0) scale(var(--rs)) rotate(var(--rr));
}

html.js [data-reveal="up"]    { --ry: 40px; }
html.js [data-reveal="down"]  { --ry: -40px; }
html.js [data-reveal="left"]  { --rx: -56px; --ry: 0px; }
html.js [data-reveal="right"] { --rx: 56px; --ry: 0px; }
html.js [data-reveal="fade"]  { --ry: 0px; }
html.js [data-reveal="zoom"]  { --ry: 0px; --rs: .92; }
html.js [data-reveal="rotate"] { --ry: 32px; --rs: .96; --rr: 3deg; }

html.js [data-reveal="blur"] {
  --ry: 18px;
  filter: blur(14px);
}

html.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
}

/* nihai durum */
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
  animation: oktan-reveal var(--reveal-duration, .9s) var(--ease-out) var(--reveal-delay, 0s) backwards;
}

html.js [data-reveal="blur"].is-revealed {
  animation-name: oktan-reveal-blur;
}

html.js [data-reveal="clip"].is-revealed {
  clip-path: inset(-1rem);
  animation-name: oktan-reveal-clip;
}

@keyframes oktan-reveal {
  from {
    opacity: 0;
    transform: translate3d(var(--rx), var(--ry), 0) scale(var(--rs)) rotate(var(--rr));
  }
}

@keyframes oktan-reveal-blur {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(var(--rx), var(--ry), 0);
  }
}

@keyframes oktan-reveal-clip {
  from {
    clip-path: inset(0 0 100% 0);
  }
}


/* ==========================================================================
   8. SPLIT TEXT (js/main.js yapıyı üretir; kök .is-revealed olunca açılır)
   ========================================================================== */
html.js .split-word,
html.js .split-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

html.js .split-line {
  display: block;
}

html.js .split-inner {
  display: inline-block;
  transform: translateY(112%);
  transition: transform var(--dur-4) var(--ease-out) calc(var(--i, 0) * var(--split-stagger, 60ms) + var(--split-delay, 0ms));
}

html.js .is-revealed .split-inner,
html.js .split-inner.is-revealed {
  transform: none;
}

html.js .split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(70%) rotate(5deg);
  transform-origin: 0 100%;
  transition:
    transform var(--dur-4) var(--ease-out) calc(var(--i, 0) * var(--split-stagger, 30ms) + var(--split-delay, 0ms)),
    opacity var(--dur-3) var(--ease-out) calc(var(--i, 0) * var(--split-stagger, 30ms) + var(--split-delay, 0ms));
}

html.js .is-revealed .split-char {
  opacity: 1;
  transform: none;
}

/* JS bölme işlemini bitirene dek (data-split-ready yok) ham metnin
   parlayıp sönmesini önle. JS hiç çalışmazsa 2.5 sn sonra görünür olur. */
html.js [data-split]:not([data-split-ready]) {
  visibility: hidden;
  animation: split-failsafe 0s linear 2.5s forwards;
}

@keyframes split-failsafe {
  to { visibility: visible; }
}


/* ==========================================================================
   9. HAREKET AZALTMA  (@media + JS'in eklediği html.reduce-motion)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  html.js [data-reveal],
  html.js [data-reveal="clip"],
  html.js [data-reveal="blur"] {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
    animation: none !important;
  }

  html.js .split-inner,
  html.js .split-char {
    opacity: 1;
    transform: none;
  }

  html.js [data-split]:not([data-split-ready]) {
    visibility: visible;
    animation: none !important;
  }

  .gradient-text--shimmer {
    animation: none;
    background-position: 50% 0;
  }
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

html.reduce-motion.js [data-reveal],
html.reduce-motion.js [data-reveal="clip"],
html.reduce-motion.js [data-reveal="blur"] {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: none;
  animation: none !important;
}

html.reduce-motion.js .split-inner,
html.reduce-motion.js .split-char {
  opacity: 1;
  transform: none;
}

html.reduce-motion.js [data-split]:not([data-split-ready]) {
  visibility: visible;
  animation: none !important;
}

html.reduce-motion .gradient-text--shimmer {
  animation: none;
  background-position: 50% 0;
}


/* ==========================================================================
   10. YAZDIRMA
   ========================================================================== */
@media print {
  @page { margin: 18mm; }

  html, body {
    background: #fff !important;
    color: #000 !important;
  }

  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  .preloader,
  .page-transition,
  .scroll-progress,
  .skip-link,
  .site-header,
  .mobile-menu,
  .floating-actions,
  .back-to-top,
  .cursor,
  .toast-region,
  .cta-band,
  .site-footer__bigtext,
  .spotlight {
    display: none !important;
  }

  html.js [data-reveal],
  html.js .split-inner,
  html.js .split-char {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }

  html.js [data-split]:not([data-split-ready]) {
    visibility: visible !important;
  }

  .gradient-text {
    -webkit-text-fill-color: #000 !important;
  }

  a {
    text-decoration: underline;
  }

  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: .85em;
    word-break: break-all;
  }

  h1, h2, h3, h4 {
    break-after: avoid;
  }

  img, table, blockquote {
    break-inside: avoid;
  }
}
