/* Aveline Istanbul · Brand Guidelines
   Token kaynağı: sektorler/01-estetik-cerrahi/marka/tasarim-dili.md (site ile aynı değerler) */

:root {
  --porcelain: #f1f2ef;
  --limestone: #e6e8e4;
  --paper: #fafaf8;
  --ink: #0e141c;
  --ink-2: #2a3440;
  --stone: #5a616a;
  --stone-2: #8b9199;
  --line: rgb(14 20 28 / 0.11);
  --line-strong: rgb(14 20 28 / 0.22);
  --cobalt: #1f3fb8;
  --cobalt-light: #7d93ff;
  --f-display: "Libre Caslon Display", "Times New Roman", serif;
  --f-sans: "Schibsted Grotesk", system-ui, sans-serif;
  --ease-measure: cubic-bezier(0.2, 0, 0, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --k: 1;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--porcelain); scroll-snap-type: y mandatory; scroll-behavior: smooth; }
body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
::selection { background: var(--cobalt); color: #fff; }

/* ---------- Sahne: 1920×1080 tuval, pencereye ölçeklenir ---------- */
.slide {
  position: relative;
  width: 100%;
  height: calc(1080px * var(--k));
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--bg, var(--porcelain));
}
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--k));
  transform-origin: center;
  overflow: hidden;
  background: var(--bg, var(--porcelain));
  color: var(--fg, var(--ink));
}
.pad { position: absolute; inset: 0; padding: 150px 120px 110px; }

/* Sayfa üst bilgisi: her slaytta aynı yerde */
.meta {
  position: absolute;
  top: 56px;
  left: 120px;
  right: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--meta, var(--stone));
  z-index: 5;
}
.meta b { font-weight: 500; color: var(--fg, var(--ink)); }
.meta .num { font-variant-numeric: tabular-nums; }
.meta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}
.on-dark { --fg: var(--porcelain); --meta: rgb(241 242 239 / 0.62); }
.on-photo .meta { color: rgb(241 242 239 / 0.85); }
.on-photo .meta b { color: #fff; }

/* ---------- Tipografi ---------- */
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.012em; font-feature-settings: "lnum"; line-height: 0.98; }
.h1 { font-size: 150px; }
.h2 { font-size: 104px; }
.h3 { font-size: 64px; line-height: 1.02; }
.h4 { font-size: 40px; line-height: 1.08; }
.lead { font-size: 26px; line-height: 1.5; color: var(--stone); max-width: 34ch; }
.on-dark .lead { color: rgb(241 242 239 / 0.72); }
.body { font-size: 19px; line-height: 1.6; color: var(--stone); }
.on-dark .body { color: rgb(241 242 239 / 0.7); }
.tab { font-variant-numeric: tabular-nums lining-nums; }
.c { color: var(--cobalt); }
.on-dark .c { color: var(--cobalt-light); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.on-dark .label { color: var(--cobalt-light); }
.label svg { width: 26px; height: 14px; }
.small { font-size: 14px; letter-spacing: 0.02em; color: var(--stone); }
.on-dark .small { color: rgb(241 242 239 / 0.6); }
.caps { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

/* Cetvel: sitenin imza çizgisi */
.ruler {
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 12px) 0 100% / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 60px) 0 100% / 100% 14px no-repeat;
  opacity: 0.35;
}

/* Kart ve çerçeveler */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.photo { position: absolute; overflow: hidden; }
.photo img, .photo video { width: 100%; height: 100%; object-fit: cover; }
.rounded { border-radius: 22px; }
.cap {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.3);
}
.glass {
  background: rgb(250 250 248 / 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgb(255 255 255 / 0.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 10px 30px -8px rgb(14 20 28 / 0.16);
}

/* ---------- Hareket: ölçülü ---------- */
[data-r] { opacity: 0; transform: translateY(28px); }
.slide.in [data-r] {
  animation: rise 1s var(--ease-measure) both;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

[data-clip] { clip-path: inset(0 0 100% 0); }
.slide.in [data-clip] {
  animation: unclip 1.2s var(--ease-measure) both;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}
@keyframes unclip { to { clip-path: inset(0 0 0 0); } }

.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.slide.in .draw {
  animation: draw 1.4s var(--ease-draw) both;
  animation-delay: calc(var(--i, 0) * 140ms + 300ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.scale-in { transform: scale(1.08); }
.slide.in .scale-in { animation: settle 2.4s var(--ease-measure) both; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-r], [data-clip], .scale-in { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
  .draw { stroke-dashoffset: 0 !important; animation: none !important; }
}

/* ---------- Gezinme ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  transition: opacity 420ms var(--ease-measure), transform 420ms var(--ease-measure);
}
.dock.idle { opacity: 0; transform: translate(-50%, 14px); pointer-events: none; }
.dock button {
  all: unset;
  cursor: pointer;
  height: 38px;
  min-width: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  transition: background 160ms var(--ease-measure);
}
.dock button:hover { background: rgb(14 20 28 / 0.06); }
.dock button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.dock .where { padding: 0 12px; min-width: 250px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dock .where span { color: var(--stone); }
.dock svg { width: 18px; height: 18px; }

.overview {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(230 232 228 / 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: auto;
  padding: 88px 5vw 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-measure);
}
.overview.open { opacity: 1; pointer-events: auto; }
.overview h2 { font-family: var(--f-display); font-weight: 400; font-size: 44px; margin-bottom: 36px; }
.grid-ov { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 22px; }
.thumb { all: unset; cursor: pointer; display: block; }
.thumb .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--porcelain);
  box-shadow: 0 1px 0 rgb(14 20 28 / 0.08), 0 12px 30px -16px rgb(14 20 28 / 0.35);
  transition: transform 320ms var(--ease-measure);
}
.thumb:hover .frame, .thumb:focus-visible .frame { transform: translateY(-4px); }
.thumb:focus-visible .frame { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.thumb .frame .stage { left: 0; top: 0; transform: scale(var(--tk)); transform-origin: 0 0; }
.thumb .frame .stage [data-r], .thumb .frame .stage [data-clip] { opacity: 1; transform: none; clip-path: none; }
.thumb .frame .stage .draw { stroke-dashoffset: 0; }
.thumb p { margin-top: 12px; font-size: 14px; display: flex; gap: 10px; }
.thumb p span { color: var(--stone); font-variant-numeric: tabular-nums; }

.hint {
  display: none;
}
@media (orientation: portrait) and (max-width: 820px) {
  .hint {
    display: block;
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 55;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
  }
  html { scroll-snap-type: y proximity; }
  .dock .where { min-width: 0; }
  .dock .where span { display: none; }
}
