@import url('fonts.css');

/* ============================================================
   1. TOKENLAR
   ============================================================ */
:root {
  /* Yüzeyler — neredeyse beyaz, hafif sıcak */
  --cream:      #FCFBF7;
  --cream-sub:  #F5F2EA;
  --cream-deep: #EFEBE0;

  /* Mürekkep */
  --ink:        #181511;
  --ink-body:   #3E3931;   /* gövde — 10:1 üzeri */
  --ink-muted:  #6E6960;   /* ikincil — 5:1 üzeri */
  --rule:       #E4DFD3;
  --rule-soft:  #EDE9DF;

  /* Marka turuncusu — logodaki noktalardan örneklendi */
  --orange:      #FF751F;
  --orange-ink:  #C24E08;  /* metinde okunaklı varyant — 4.6:1 */
  --orange-soft: #FBEADB;

  /* Koyu blok (footer, detay hero) */
  --dark:        #171411;
  --dark-sub:    #23201B;
  --on-dark:     #EFEDE6;
  --on-dark-mut: #ABA69C;

  --focus: #2C5BC7;

  /* Tipografi — tek aile, ağırlıkla konuşur */
  --font-display: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --fs-hero:  clamp(2.4rem, 1.35rem + 4.2vw, 4.6rem);
  --fs-h2:    clamp(1.9rem, 1.35rem + 2.2vw, 3rem);
  --fs-h3:    clamp(1.35rem, 1.1rem + 0.95vw, 1.8rem);
  --fs-lede:  clamp(1.06rem, 0.99rem + 0.3vw, 1.24rem);
  --fs-body:  1rem;
  --fs-small: 0.9rem;
  --fs-micro: 0.79rem;

  /* Ölçü */
  --shell: 1280px;
  --pad: clamp(1.25rem, 0.6rem + 2.8vw, 4rem);
  --gap-section: clamp(4.5rem, 2.8rem + 6.5vw, 8.5rem);

  /* Hareket */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.55s;

  /* Katman */
  --z-base: 1;
  --z-sticky: 40;
  --z-header: 50;
  --z-menu: 60;
  --z-skip: 70;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
html.lenis { scroll-behavior: auto; }

body {
  background: var(--cream);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
  font-weight: 800;
}
h1 { font-size: var(--fs-hero); letter-spacing: -0.032em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

a { color: inherit; }

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

::selection { background: var(--orange); color: #fff; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-skip);
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1.4rem;
  font-weight: 600;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   3. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--cream) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--rule-soft);
}
.site-header.is-hidden { transform: translateY(-102%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: clamp(64px, 4.6vw, 84px);
}

.brand { display: inline-flex; align-items: center; position: relative; }
.brand img {
  height: clamp(21px, 1.9vw, 26px);
  width: auto;
  max-width: none;
  transition: opacity 0.35s var(--ease-out);
}
.brand .logo-alt { position: absolute; inset: 0; opacity: 0; }

/* Koyu başlıklı sayfalarda (eğitim detayı) header ilk halde açık renk çalışır */
body.hero-dark .site-header:not(.is-stuck) .logo-main { opacity: 0; }
body.hero-dark .site-header:not(.is-stuck) .logo-alt { opacity: 1; }
body.hero-dark .site-header:not(.is-stuck) .nav-link,
body.hero-dark .site-header:not(.is-stuck) .lang-switch,
body.hero-dark .site-header:not(.is-stuck) .lang-switch a { color: var(--on-dark-mut); }
body.hero-dark .site-header:not(.is-stuck) .lang-switch [aria-current='true'] { color: var(--on-dark); }
body.hero-dark .site-header:not(.is-stuck) .nav-toggle span { background: var(--on-dark); }
body.hero-dark.menu-open .site-header .logo-main { opacity: 1; }
body.hero-dark.menu-open .site-header .logo-alt { opacity: 0; }
body.hero-dark.menu-open .site-header .nav-link,
body.hero-dark.menu-open .site-header .lang-switch a { color: var(--ink); }
body.hero-dark.menu-open .site-header .nav-toggle span { background: var(--ink); }

.nav-main { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); }
.nav-main ul {
  display: flex;
  gap: clamp(1.1rem, 2vw, 2.1rem);
  list-style: none;
  padding: 0;
}
.nav-link {
  text-decoration: none;
  color: var(--ink-body);
  font-size: var(--fs-small);
  font-weight: 500;
  position: relative;
  padding-block: 0.35rem;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.42s var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current='true']::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.lang-switch a { text-decoration: none; padding: 0.2rem 0.1rem; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch [aria-current='true'] { color: var(--ink); }
.lang-switch span { opacity: 0.4; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  margin-right: -8px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 24px; height: 1.6px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.25s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   4. BUTONLAR
   ============================================================ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.36s var(--ease-out), border-color 0.36s var(--ease-out);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateY(101%);
  transition: transform 0.46s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; border-color: var(--orange); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { color: #fff; }

.btn--light {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
}

.btn .arrow { transition: transform 0.42s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   5. BÖLÜM BAŞLIKLARI
   ============================================================ */
main > section { padding-block: var(--gap-section); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: clamp(1.5rem, 2.4vw, 2.4rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  position: relative;
}
/* Alt çizgi soldan sağa çizilir (--rule-x JS ile 0→1; JS yoksa 1 kalır) */
.sec-head::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(var(--rule-x, 1));
  transform-origin: left;
}
.sec-head p {
  color: var(--ink-muted);
  font-size: var(--fs-small);
  max-width: 42ch;
}
@media (max-width: 720px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
}

/* ============================================================
   6. HERO — metin odaklı
   ============================================================ */
main > section.hero {
  position: relative;
  padding-block: clamp(7.5rem, 5.5rem + 7vw, 12rem) clamp(3rem, 5vw, 5rem);
}
.hero-copy { max-width: 940px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.4rem, 2.2vw, 2.1rem);
  color: var(--orange-ink);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: '';
  flex: none;
  width: clamp(24px, 3vw, 38px);
  height: 2px;
  background: var(--orange);
}

.hero h1 { margin-bottom: clamp(1.4rem, 2.4vw, 2rem); max-width: 21ch; }
.hero h1 .hl { color: var(--orange-ink); }

/* Vurgu kelimelerin altındaki el çizimi çizgi */
.hl-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.14em;
  overflow: visible;
  pointer-events: none;
}
.hl-line path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
/* JS varken gizli başlar; başlık yerleşince sırayla çizilir */
.js [data-hero-title] .hl-line path { stroke-dashoffset: 1; }
[data-hero-title].lines-drawn .hl-line path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.55s var(--ease-out);
  transition-delay: calc(var(--hl-i, 0) * 0.22s);
}

.hero-lede {
  font-size: var(--fs-lede);
  color: var(--ink-body);
  max-width: 54ch;
  margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-strip {
  margin-top: clamp(2.4rem, 4.5vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
  color: var(--ink-muted);
  font-size: var(--fs-micro);
  letter-spacing: 0.02em;
}
.hero-strip strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   7. HAKKIMDA — portre + metin
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about-photo {
  position: sticky;
  top: clamp(88px, 8vw, 116px);
  border: 1px solid var(--rule);
  background: var(--cream-sub);
  overflow: hidden;
}
.about-photo img { width: 100%; }
.about-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-micro);
  color: var(--ink-muted);
}
.about-photo figcaption b { color: var(--ink); font-weight: 700; }

.about-text > * + * { margin-top: 1.15rem; }
.about-text p { max-width: 62ch; }
.about-text p:first-child {
  font-size: var(--fs-lede);
  color: var(--ink);
}

.skills {
  list-style: none;
  padding: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.skills li {
  padding: clamp(1.1rem, 1.8vw, 1.5rem) 1.2rem clamp(1.1rem, 1.8vw, 1.5rem) 0;
  border-bottom: 1px solid var(--rule);
}
.skills h3 {
  font-size: 1.02rem;
  letter-spacing: -0.012em;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.skills h3::before {
  content: '';
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  translate: 0 -2px;
}
.skills p { color: var(--ink-muted); font-size: var(--fs-small); max-width: 44ch; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 420px; }
}

/* ============================================================
   8. EĞİTİM KATALOĞU — kartlar
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: clamp(1.4rem, 2.5vw, 2.2rem);
}
.filter {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.48rem 1.05rem;
  font: 500 var(--fs-small)/1 var(--font-body);
  color: var(--ink-body);
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.4rem);
}

.course-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--cream);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.35s var(--ease-out), transform 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out);
}
.course-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(24, 21, 17, 0.28);
}
.course-card.is-out { display: none; }

.card-illo {
  background: var(--cream-deep);
  aspect-ratio: 16 / 8.5;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-illo svg {
  width: 52%;
  height: auto;
  color: var(--ink);
  transition: transform 0.6s var(--ease-out);
}
.course-card:hover .card-illo svg { transform: translateY(-3px) scale(1.04); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  padding: 1.25rem 1.3rem 1.35rem;
}
.card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.card-sum {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  flex: 1;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-micro);
  color: var(--ink-muted);
}
.card-foot b { color: var(--ink); font-weight: 700; }
.card-go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--orange-ink);
  white-space: nowrap;
  transition: gap 0.35s var(--ease-out);
}
.course-card:hover .card-go { gap: 0.6rem; }

.catalog-empty {
  padding: 3rem 0;
  color: var(--ink-muted);
  font-size: var(--fs-small);
}

/* ============================================================
   9. AKTİF ÜRÜNLER
   ============================================================ */
.projects { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.project:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.project:nth-child(even) .project-shot { order: 2; }

.project-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--cream-sub);
}
.project-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}
.project:hover .project-shot img { transform: scale(1.028); }

.project-tag {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 0.7rem;
  display: block;
}
.project h3 { font-size: var(--fs-h3); margin-bottom: 0.8rem; }
.project p { color: var(--ink-body); max-width: 52ch; margin-bottom: 1.2rem; }
.project-feats {
  list-style: none;
  padding: 0;
  margin-bottom: 1.6rem;
  display: grid;
  gap: 0.45rem;
}
.project-feats li {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  padding-left: 1.05rem;
  position: relative;
}
.project-feats li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--orange);
  padding-bottom: 2px;
  transition: gap 0.35s var(--ease-out);
}
.project-link:hover { gap: 0.85rem; }

@media (max-width: 860px) {
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-shot { order: 0; }
}

/* ============================================================
   10. İLETİŞİM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-intro p {
  color: var(--ink-body);
  font-size: var(--fs-lede);
  max-width: 40ch;
  margin-bottom: 2rem;
}
.channels { display: grid; gap: 0.6rem; }
.channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.35s var(--ease-out), background-color 0.35s var(--ease-out),
              transform 0.35s var(--ease-out);
}
.channel:hover {
  border-color: var(--ink);
  background: var(--cream-sub);
  transform: translateX(4px);
}
.channel svg { flex: none; width: 20px; height: 20px; color: var(--orange-ink); }
.channel-txt { display: grid; gap: 1px; min-width: 0; }
.channel-txt b { font-size: var(--fs-small); font-weight: 700; }
.channel-txt span { font-size: var(--fs-micro); color: var(--ink-muted); }

.form-card {
  background: var(--cream-sub);
  border: 1px solid var(--rule);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.form-card h3 { font-size: 1.2rem; margin-bottom: 1.4rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-body);
}
.field input, .field select, .field textarea {
  font: 400 var(--fs-body)/1.5 var(--font-body);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.72rem 0.85rem;
  width: 100%;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder, .field textarea::placeholder { color: #7A756B; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 25%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: var(--fs-micro); color: var(--ink-muted); margin-top: 0.9rem; }
.form-status { font-size: var(--fs-small); margin-top: 0.9rem; font-weight: 600; }
.form-status.ok { color: var(--orange-ink); }
.form-status.err { color: #A3372B; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(1.6rem, 3vw, 2.4rem);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
  border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 16%, transparent);
}
.footer-brand img { height: clamp(20px, 2vw, 26px); width: auto; max-width: none; margin-bottom: 1.1rem; }
.footer-brand p { color: var(--on-dark-mut); font-size: var(--fs-small); max-width: 34ch; }
.footer-certs {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
  max-width: 320px;
}
.footer-cert {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
}
.footer-cert img, .footer-cert .cert-icon { width: 44px; height: 44px; margin: 0; flex: none; }
.footer-cert .cert-icon { color: var(--on-dark-mut); }
.footer-cert span {
  font-size: var(--fs-micro);
  color: var(--on-dark-mut);
  line-height: 1.45;
}
.footer-cert b {
  display: block;
  color: var(--on-dark);
  font-weight: 700;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}
.footer-cols h4 {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
  margin-bottom: 0.85rem;
}
.footer-cols ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-cols a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--on-dark);
  text-decoration: none;
  font-size: var(--fs-small);
  transition: color 0.3s var(--ease-out);
}
.footer-cols a:hover { color: var(--orange); }
.footer-cols a svg { width: 15px; height: 15px; flex: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--on-dark-mut);
  font-size: var(--fs-micro);
}
.site-footer :focus-visible { outline-color: var(--orange); }

@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================================
   12. EĞİTİM DETAY SAYFASI
   ============================================================ */
.course-hero {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(7.5rem, 11vw, 11rem) clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.course-hero::after {
  content: '';
  position: absolute;
  right: -14%;
  top: -34%;
  width: min(58vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--orange) 55%, transparent), transparent 68%);
  pointer-events: none;
}
.course-hero .shell { position: relative; z-index: 1; }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-dark-mut);
  font-size: var(--fs-small);
  text-decoration: none;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  transition: gap 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.crumb:hover { gap: 0.85rem; color: var(--on-dark); }
.course-hero h1 {
  color: var(--on-dark);
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.9rem);
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: 1.3rem;
}
.course-hero .lede {
  color: var(--on-dark-mut);
  font-size: var(--fs-lede);
  max-width: 60ch;
  line-height: 1.66;
}
.course-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.6rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 18%, transparent);
}
.course-facts div { display: grid; gap: 2px; }
.course-facts dt {
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
}
.course-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--on-dark);
}

.course-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: var(--gap-section);
}
.course-intro {
  font-size: var(--fs-lede);
  color: var(--ink);
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.block { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.block h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  position: relative;
}
.block h2::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(var(--rule-x, 1));
  transform-origin: left;
}
.gain-list, .audience-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.gain-list li, .audience-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--ink-body);
}
.gain-list svg, .audience-list svg { width: 17px; height: 17px; color: var(--orange-ink); margin-top: 0.28em; }

.modules { counter-reset: mod; display: grid; }
.module {
  counter-increment: mod;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem clamp(1rem, 2vw, 1.8rem);
  padding-block: clamp(1.1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--rule);
}
.module:first-child { border-top: 1px solid var(--rule); }
.module::before {
  content: counter(mod, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--orange-ink);
  padding-top: 0.15em;
}
.module h3 { font-size: 1.06rem; margin-bottom: 0.3rem; letter-spacing: -0.014em; }
.module p { color: var(--ink-muted); font-size: var(--fs-small); max-width: 68ch; }

.course-aside {
  position: sticky;
  top: clamp(88px, 8vw, 116px);
  background: var(--cream-sub);
  border: 1px solid var(--rule);
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
}
.course-aside h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.course-aside p { font-size: var(--fs-small); color: var(--ink-muted); margin-bottom: 1.2rem; }
.course-aside .btn { width: 100%; margin-bottom: 0.55rem; }

.related { border-top: 1px solid var(--rule); padding-block: clamp(3rem, 6vw, 5rem); }
.related h2 { font-size: var(--fs-h3); margin-bottom: 1.6rem; }

@media (max-width: 900px) {
  .course-body { grid-template-columns: 1fr; }
  .course-aside { position: static; }
}

/* ============================================================
   13. MOBİL MENÜ
   ============================================================ */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-main {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.4rem;
    padding: 2rem var(--pad);
    background: var(--cream);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.62s var(--ease-out);
    pointer-events: none;
  }
  body.menu-open .nav-main { clip-path: inset(0 0 0 0); pointer-events: auto; }
  /* Header üzerindeki transform, içindeki position:fixed menüyü hapseder. */
  body.menu-open .site-header { transform: none !important; }
  .nav-main ul { flex-direction: column; gap: 1.1rem; }
  .nav-main .nav-link { font-size: 1.6rem; font-family: var(--font-display); font-weight: 800; color: var(--ink); }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { z-index: calc(var(--z-menu) + 1); }
  .header-inner { position: relative; z-index: 2; }
}

/* ============================================================
   14. GİRİŞ ANİMASYONLARI
   Görünürlük varsayılan; JS yalnızca zenginleştirir.
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal-line .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; position: relative; }
.reveal-line .line-in { display: inline-block; }
/* Satır maskesi transform ile değil opaklıkla gizlenir; GSAP yüzdeli
   CSS transform'unu kendi değerinin üstüne eklediği için transform burada kullanılmaz. */
.js .reveal-line .line-in { opacity: 0; }

/* ============================================================
   14b. DOKUNMATİK UYARLAMA
   Ekran boyutu değil giriş yöntemi: kaba işaretçide (parmak)
   hedefler 44px sınırına çekilir. (impeccable adapt + WCAG 2.5.8)
   ============================================================ */
@media (pointer: coarse) {
  .brand { padding-block: 0.55rem; }
  .nav-link { padding-block: 0.7rem; }
  .lang-switch a { padding: 0.85rem 0.5rem; }
  .filter { padding: 0.92rem 1.3rem; }
  .project-link { padding-block: 0.55rem; }
  .crumb { padding-block: 0.55rem; }
  .footer-cols ul { gap: 0.1rem; }
  .footer-cols a { padding-block: 0.6rem; }
}

/* Çentikli cihazlarda güvenli alan */
.site-footer {
  padding-bottom: max(clamp(1.6rem, 3vw, 2.4rem), env(safe-area-inset-bottom));
}

/* ============================================================
   15. SAYFA GEÇİŞLERİ (cross-document View Transitions)
   Destekleyen tarayıcılarda sayfalar arası yumuşak geçiş;
   header kendi grubunda kalır, içerik kısa bir kaymayla değişir.
   ============================================================ */
@view-transition { navigation: auto; }

.site-header { view-transition-name: site-header; }

::view-transition-old(root) {
  animation: vt-out 0.18s cubic-bezier(0.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-in 0.32s var(--ease-out) both;
}
@keyframes vt-out {
  to { opacity: 0; transform: translateY(-10px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .reveal-line .line-in { opacity: 1 !important; transform: none !important; }
  .js [data-hero-title] .hl-line path { stroke-dashoffset: 0 !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
