/* ==========================================================================
   MedikalPR — style.css

   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0A0C10;
  --bg-raised: #11141A;
  --text: #F2F4F8;
  --text-dim: #9BA3AF;
  --accent: #4495D1;
  --accent-soft: rgba(68, 149, 209, 0.14);
  --accent-ink: #041824; /* accent zemin üstünde koyu metin */
  --radius: 20px;
  --font: "Manrope", system-ui, sans-serif;
  --header-h: 4.75rem;
  --container: 1200px;
  --edge: clamp(1.25rem, 5vw, 2rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* .sticky-title'ın sticky çalışabilmesi için en yakın scroll ekseni burası (overflow ancestor) */
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  /* 1.3: satir kutusu Manrope'un tum murekkebini (asc+desc ~1.37em) kapsar;
     rotator descender'i degisim animasyonu sirasinda bile kirpilamaz (kullanici dogrulamasi) */
  line-height: 1.3;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h3 { font-weight: 700; letter-spacing: -0.01em; }

section {
  padding-block: clamp(6rem, 14vh, 10rem);
  padding-inline: var(--edge);
  position: relative;
}

/* Bölüm içeriğini 1200px konteynere ortala */
#hizmetler,
#neden,
#surec,
#iletisim,
#manifesto {
  max-width: var(--container);
  margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(1.25rem, calc((100% - var(--container)) / 2));
  background: rgba(10, 12, 16, 0.72); /* --bg (#0A0C10) ile aynı ton, saydamlıklı */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header img { height: 28px; width: auto; }

.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* dokunma hedefi: metin küçük olsa da tıklanabilir alan >= 44px */
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-header nav a:hover { color: var(--text); }
.site-header nav a:hover::after { transform: scaleX(1); }

/* ==========================================================================
   Hero
   ========================================================================== */

#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 8%, var(--accent-soft), transparent);
  animation: hero-breathe 9s ease-in-out infinite;
  transform: translateY(calc(var(--glow-y, 0) * 1px));
  pointer-events: none;
}

@keyframes hero-breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  text-align: left;
}

.hero-phone {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone-frame {
  width: min(270px, 70vw);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  border: 10px solid #1a1e26;
  background: var(--bg-raised);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(68, 149, 209, 0.15);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: rotateY(calc(-14deg + 14deg * var(--phone-p, 0)))
             rotateX(calc(4deg - 4deg * var(--phone-p, 0)))
             translateY(calc(-30px * var(--phone-p, 0)));
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 14px;
  background: var(--bg);
}

.phone-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #12161d, #0d1015);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.4rem;
  border: 1px solid rgba(68, 149, 209, 0.35);
}

.profile-name { font-weight: 700; font-size: 1.05rem; margin-top: 0.35rem; }
.profile-tag { color: var(--text-dim); font-size: 0.8rem; }
.profile-stars { color: #E9B949; font-size: 0.9rem; letter-spacing: 2px; margin-top: 0.5rem; }
.profile-reviews { color: var(--text-dim); font-size: 0.75rem; }

.profile-btn {
  margin-top: 0.9rem;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #06121c;
  font-weight: 700;
  font-size: 0.85rem;
}

.eyebrow {
  position: relative;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

#hero h1 em {
  font-style: normal;
}

.rotator {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  white-space: nowrap;
  transition: width 0.35s ease, clip-path 0.25s ease;
  /* Dururken alt -0.4em ACIK: descender hicbir font/zoom'da kesilmez.
     Kelime degisimi sirasinda .swapping kapatir: alttan giren kelime
     alt satir uzerinde hayalet gibi gorunmesin. */
  clip-path: inset(0 0 -0.4em 0);
}

.rotator.swapping { clip-path: inset(0 0 0 0); }

.rotator-word {
  display: inline-block;
  background: linear-gradient(90deg, #7CC0EE, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.js .rotator-word.word-exit {
  animation: word-exit 0.3s ease forwards;
}

.js .rotator-word.word-enter {
  animation: word-enter 0.35s ease;
}

/* %150: acik birakilan alt kirpma bandinin disindan girip cikar */
@keyframes word-exit {
  to { transform: translateY(-150%); opacity: 0; }
}

@keyframes word-enter {
  from { transform: translateY(150%); opacity: 0; }
}

.hero-description {
  max-width: 52ch;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  line-height: 1.6;
}

.scroll-hint {
  position: absolute;
  z-index: 1;
  bottom: clamp(1.5rem, 5vh, 3rem);
  left: 0;
  right: 0;
  margin-inline: auto;
  width: max-content;
  color: var(--text-dim);
  animation: scroll-bounce 2.2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ==========================================================================
   Manifesto
   ========================================================================== */

#manifesto {
  max-width: 1000px;
  text-align: center;
}

.manifesto-line {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.word {
  display: inline-block;
  transition: opacity 0.4s ease, color 0.4s ease;
}

/* Sönük halde metin rengi degrade üstünü örter; .lit'te renk saydamlasip hero mavisi görünür */
.js .word {
  opacity: 0.18;
  background: linear-gradient(90deg, #7CC0EE, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.word.lit { opacity: 1; }

/* Manifesto scroll-story: cümle kilitlenir, kelimeler scroll'la yanar */
.js .manifesto-pin { height: 250vh; }
.js .manifesto-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.js #manifesto .word.lit {
  color: transparent;
  text-shadow: 0 0 28px rgba(68, 149, 209, 0.45);
}

/* ==========================================================================
   Hizmetler (service cards)
   ========================================================================== */

#hizmetler { text-align: center; }

.section-subtitle {
  max-width: 50ch;
  margin: 1rem auto 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.services-grid {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.25rem;
  text-align: left;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2rem;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.service-card:hover {
  border-color: rgba(68, 149, 209, 0.45);
  box-shadow: 0 0 40px rgba(68, 149, 209, 0.12);
  transform: translateY(-4px);
}

.service-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.service-card p {
  color: var(--text-dim);
  line-height: 1.6;
}

/* ==========================================================================
   Neden (sticky)
   ========================================================================== */

#neden {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2rem;
}

.sticky-wrap { position: relative; }

.sticky-title {
  position: sticky;
  top: 30vh;
}

.reasons {
  display: flex;
  flex-direction: column;
}

.reason {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reason h3 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin-bottom: 0.85rem;
}

.reason p {
  max-width: 55ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ==========================================================================
   Hasta yolculuğu — scroll-story (statik varsayılan, pinned .js scope'unda)
   ========================================================================== */

#surec { text-align: center; }

/* --- Statik varsayılan (no-JS temeli) --- */
.journey-pin { max-width: 1200px; margin-inline: auto; }
.journey-stage { display: flex; flex-direction: column; gap: 2.5rem; }
.stage-head { text-align: center; }
.stage-texts { display: grid; gap: 2rem; }
.stage-text h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-top: 0.25rem; }
.stage-text > p:last-child { color: var(--text-dim); }
.stage-eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--accent); font-weight: 700; }

/* Statikte telefon kasası gizlenir, 4 ekran kart olarak akar */
.stage-phone .phone-frame--stage { border: none; background: none; box-shadow: none; border-radius: 0; aspect-ratio: auto; width: 100%; transform: none; overflow: visible; position: static; }
.phone-frame--stage .phone-notch { display: none; }
.phone-frame--stage .phone-screen { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; background: none; padding: 0; }
.scene-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.5rem; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
.stage-progress { display: none; }

/* --- Ekran içi bileşenler (iki düzende ortak) --- */
.search-bar { display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.55rem 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 0.8rem; color: var(--text); }
.search-bar svg { color: var(--text-dim); flex-shrink: 0; }
.search-result { width: 100%; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-size: 0.8rem; text-align: left; }
.search-result.is-featured { border: 1px solid rgba(68, 149, 209, 0.5); background: var(--accent-soft); }
.search-result.is-featured span { color: var(--text-dim); font-size: 0.72rem; }
.skeleton { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.skeleton-w45 { width: 45%; }
.skeleton-w50 { width: 50%; }
.skeleton-w60 { width: 60%; }
.skeleton-w70 { width: 70%; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; }
.mini-cal span { aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, 0.06); font-size: 0.6rem; display: grid; place-items: center; color: var(--text-dim); }
.mini-cal .cal-selected { background: var(--accent); color: #06121c; font-weight: 700; }
.time-pill { padding: 0.35rem 1rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.8rem; font-weight: 700; }
.confirm-card { width: 100%; padding: 0.7rem; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(68, 149, 209, 0.5); color: var(--text); font-size: 0.8rem; font-weight: 600; }
.review-score { font-size: 1rem; color: #E9B949; letter-spacing: 2px; }
.review-score strong { color: var(--text); margin-left: 0.4rem; letter-spacing: normal; }
.review-bubble { max-width: 90%; align-self: flex-start; padding: 0.6rem 0.9rem; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, 0.07); font-size: 0.78rem; text-align: left; }
.review-bubble--alt { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--accent-soft); }

/* --- Pinned scroll-story düzeni (yalnız JS varken) --- */
.js .journey-pin { height: 400vh; }
.js .journey-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  justify-content: center;
  gap: clamp(1rem, 2.5vh, 3rem);
  overflow: hidden;
}
.js .stage-body { display: grid; grid-template-columns: 6fr 6fr; align-items: center; gap: 3rem; }
.js .stage-texts { position: relative; min-height: 180px; display: block; }
.js .stage-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  text-align: left;
}
.js .journey-stage[data-scene="1"] .stage-text[data-step="1"],
.js .journey-stage[data-scene="2"] .stage-text[data-step="2"],
.js .journey-stage[data-scene="3"] .stage-text[data-step="3"],
.js .journey-stage[data-scene="4"] .stage-text[data-step="4"] { opacity: 1; transform: none; pointer-events: auto; }
.js .stage-phone { display: flex; justify-content: center; }
.js .stage-phone .phone-frame--stage {
  border: 10px solid #1a1e26;
  background: var(--bg-raised);
  border-radius: 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(68, 149, 209, 0.12);
  aspect-ratio: 9 / 19;
  /* 28vh: kisa laptop ekranlarinda (768px) ilerleme cubugu fold ustunde kalsin */
  width: min(300px, 28vh);
  position: relative;
  overflow: hidden;
  transform: none;
}
.js .phone-frame--stage .phone-notch { display: block; }
.js .phone-frame--stage .phone-screen {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  background: linear-gradient(180deg, #12161d, #0d1015);
}
.js .scene-screen {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  background: none;
  padding: 1.6rem 1.3rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.js .journey-stage[data-scene="1"] .scene-screen[data-step="1"],
.js .journey-stage[data-scene="2"] .scene-screen[data-step="2"],
.js .journey-stage[data-scene="3"] .scene-screen[data-step="3"],
.js .journey-stage[data-scene="4"] .scene-screen[data-step="4"] { opacity: 1; transform: translateY(calc(var(--scene-p, 0) * -6px)); }
.js .stage-progress { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.js .stage-progress-bar { width: min(360px, 60%); height: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; border-radius: 1px; }
.js .stage-progress-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #7CC0EE); transform: scaleX(0); transform-origin: left center; }
.js .stage-dots { display: flex; gap: 0.6rem; }
.js .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); transition: background 0.3s ease, transform 0.3s ease; }
.js .dot.active { background: var(--accent); transform: scale(1.25); }
/* ==========================================================================
   İletişim
   ========================================================================== */

/*
 * Not: #contact-form, .contact-grid'in İÇİNDE değil, DOM'da onun kardeşi
 * (aynı ebeveyn #iletisim altında). "Solda linkler, sağda form" iki
 * kolonlu yerleşimi bu yüzden #iletisim üzerinde kuruluyor: .contact-grid
 * ve #contact-form aynı grid satırına yerleştirilen iki ayrı grid öğesi.
 */
#iletisim {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  column-gap: 3rem;
  text-align: center;
}

#iletisim h2,
#iletisim > .contact-subtitle {
  grid-column: 1 / -1;
}

#iletisim h2 {
  font-size: clamp(2.6rem, 8vw, 7rem);
}

.contact-subtitle {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.contact-grid {
  grid-column: 1;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s ease;
}

.contact-button svg { color: var(--text-dim); transition: color 0.3s ease; }
.contact-button:hover { color: var(--accent); }
.contact-button:hover svg { color: var(--accent); }

/* WhatsApp: dolu, tam yuvarlak buton */
a.contact-button[href*="wa.me"] {
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 999px;
  padding: 1rem 1.75rem;
  font-weight: 700;
  box-shadow: 0 0 0 rgba(68, 149, 209, 0);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

a.contact-button[href*="wa.me"] svg { color: var(--accent-ink); }

a.contact-button[href*="wa.me"]:hover {
  color: var(--accent-ink);
  box-shadow: 0 0 40px rgba(68, 149, 209, 0.35);
  transform: translateY(-2px);
}

#contact-form {
  grid-column: 2;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-self: start;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

#contact-form button {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 1rem 1.85rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

#contact-form button:hover {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 40px rgba(68, 149, 209, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: 2.5rem;
  padding-inline: var(--edge);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ==========================================================================
   Reveal states
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
}

.js [data-reveal].is-visible {
  opacity: 1;
  animation: reveal 0.7s ease var(--reveal-delay, 0s) backwards;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(28px); }
}

.js [data-reveal].reveal-strong.is-visible {
  animation-name: reveal-strong;
  animation-duration: 0.9s;
}

@keyframes reveal-strong {
  from { opacity: 0; transform: translateY(48px); }
}

.js .service-card.is-visible .service-icon {
  animation: icon-pop 0.5s ease calc(var(--reveal-delay, 0s) + 0.25s) backwards;
}

@keyframes icon-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   Responsive ≤768px
   ========================================================================== */

@media (max-width: 768px) {
  img, svg { max-width: 100%; }

  .site-header { padding-inline: 1.25rem; }
  .site-header img { height: 24px; }

  #neden {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sticky-title { position: static; top: auto; margin-bottom: 1rem; }

  .reason { min-height: auto; padding-block: 2rem; }

  .js .stage-body { grid-template-columns: 1fr; gap: 0.75rem; }
  .js .stage-texts { min-height: 120px; text-align: center; }
  .js .stage-text { text-align: center; align-items: center; }
  /* 24vh: kucuk telefonlarda (667px) telefon + ilerleme fold icinde kalsin */
  .js .stage-phone .phone-frame--stage { width: min(210px, 24vh); }
  .js .journey-stage { gap: 0.75rem; }
  .stage-head h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }

  #iletisim { grid-template-columns: 1fr; }

  .contact-grid,
  #contact-form { grid-column: auto; }

  .contact-button { justify-content: flex-start; }

  .hero-inner { grid-template-columns: 1fr; gap: 2rem; justify-items: center; }
  .hero-content { align-items: center; text-align: center; }
  .eyebrow::before { left: 50%; transform: translateX(-50%); }
  .hero-phone { perspective: none; }
  .phone-frame { width: 190px; transform: none; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] { opacity: 1 !important; animation: none !important; transform: none; }
  .word { opacity: 1 !important; }
  .phone-frame { transform: none !important; }
  #hero::before { transform: none !important; }
  /* Scroll-story reduced-motion'da statik düzene döner */
  .word { text-shadow: none !important; color: var(--text) !important; background: none !important; }
  .manifesto-pin { height: auto !important; }
  .manifesto-stage { position: static !important; min-height: 0 !important; }
  .journey-pin { height: auto !important; }
  .journey-stage { position: static !important; min-height: 0 !important; padding-top: 0 !important; overflow: visible !important; gap: 2.5rem !important; }
  .stage-body { display: block !important; }
  .stage-texts { min-height: 0 !important; position: static !important; display: grid !important; gap: 2rem !important; margin-bottom: 2rem; }
  .stage-text, .scene-screen { position: static !important; opacity: 1 !important; transform: none !important; }
  .stage-text { pointer-events: auto !important; }
  .stage-phone .phone-frame--stage { border: none !important; aspect-ratio: auto !important; width: 100% !important; overflow: visible !important; position: static !important; box-shadow: none !important; background: none !important; }
  .phone-frame--stage .phone-notch { display: none !important; }
  .phone-frame--stage .phone-screen { position: static !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)) !important; gap: 1rem !important; background: none !important; }
  .scene-screen { border-radius: var(--radius) !important; background: var(--bg-raised) !important; padding: 1.5rem !important; }
  .stage-progress { display: none !important; }
  html { scroll-behavior: auto; }
}
