/* ================================================================
   MİRA — Kadın Butiği
   ================================================================ */
:root {
  --bg: #0e0b0c;
  --bg-2: #151012;
  --ink: #efe6dc;
  --muted: #9b8f87;
  --line: rgba(239, 230, 220, 0.14);
  --accent: #c9a27e;
  --wine: #6b1d2e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- Yükleniyor ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--bg);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { width: 26px; color: var(--ink); opacity: 0.8; }
.loader__bar { width: 190px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.loader__pct { font-family: var(--serif); font-size: 22px; letter-spacing: 0.06em; }
.loader__pct sup { font-size: 10px; color: var(--accent); margin-left: 2px; }
.loader__label { font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }

/* ---------- Üst menü ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background 0.5s, backdrop-filter 0.5s, padding 0.5s;
}
.site-header.is-solid {
  background: rgba(14, 11, 12, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 22px; color: var(--accent); }
.brand__word { font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: 0.5em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.nav a:hover { color: var(--ink); }
.nav .nav__cta { color: var(--ink); border: 1px solid var(--line); padding: 11px 18px; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.nav .nav__cta:hover { border-color: var(--accent); background: var(--accent); color: var(--bg); }

/* ---------- Sahne ---------- */
.scene { position: relative; height: 900vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.dress-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.grade { position: absolute; inset: 0; pointer-events: none; }
.grade--vignette { background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.6) 100%); }
.grade--bottom { top: auto; height: 32%; background: linear-gradient(to top, var(--bg), transparent); }
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); }
}

/* Paneller: opaklık JS'teki --a değişkeninden gelir */
.panel {
  --a: 0;
  position: absolute; z-index: 2;
  opacity: var(--a);
  transform: translate3d(0, calc((1 - var(--a)) * 26px), 0);
  will-change: opacity, transform;
}
.panel.is-hidden { visibility: hidden; }
.panel--left, .panel--right { top: 50%; translate: 0 -50%; width: min(340px, 30vw); }
.panel--left { left: var(--gutter); }
.panel--right { right: var(--gutter); text-align: right; }
.panel__index { display: block; font-family: var(--serif); font-size: 15px; color: var(--accent); margin-bottom: 18px; }
.panel__index::after { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--accent); margin-left: 12px; vertical-align: middle; opacity: 0.6; }
.panel--right .panel__index::after { display: none; }
.panel--right .panel__index::before { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--accent); margin-right: 12px; vertical-align: middle; opacity: 0.6; }
.panel__kicker { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }
.panel__title { margin: 0 0 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.04; }
.panel__body { margin: 0 0 18px; font-size: 15px; color: rgba(239, 230, 220, 0.75); }
.panel__spec { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }

.panel--hero {
  inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--gutter);
}
.eyebrow { margin: 0 0 22px; font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--accent); }
.hero-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 9vw, 132px); line-height: 0.95; letter-spacing: -0.01em; }
.hero-sub { max-width: 440px; margin: 28px auto 0; color: rgba(239, 230, 220, 0.72); font-size: 15px; }
.scroll-cue { position: absolute; bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Hero giriş animasyonu */
.is-loading .panel--hero > * { opacity: 0; transform: translateY(24px); }
.panel--hero > * { transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.panel--hero > :nth-child(2) { transition-delay: 0.12s; }
.panel--hero > :nth-child(3) { transition-delay: 0.24s; }
.panel--hero > :nth-child(4) { transition-delay: 0.5s; }

.chapter {
  position: absolute; right: var(--gutter); bottom: 34px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 14px; color: var(--muted);
}
.chapter__num { color: var(--ink); min-width: 18px; }
.chapter__line { width: 80px; height: 1px; background: var(--line); }
.chapter__line i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-block; margin-top: 6px; padding: 15px 26px;
  border: 1px solid var(--accent); color: var(--ink);
  font: 400 11px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase;
  background: transparent; cursor: pointer;
  transition: background 0.35s, color 0.35s;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn--solid { background: var(--accent); color: var(--bg); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- Genel bölümler ---------- */
.section { padding: clamp(90px, 14vw, 170px) var(--gutter); }
.section__head { max-width: 640px; margin-bottom: clamp(48px, 7vw, 80px); }
.section__title { margin: 0 0 20px; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 84px); line-height: 1; }
.section__lead { margin: 0; color: rgba(239, 230, 220, 0.7); font-size: 16px; max-width: 520px; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Koleksiyon ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.card { position: relative; cursor: pointer; }
.card__media {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #241b1e 0%, var(--bg-2) 70%);
  border: 1px solid rgba(239, 230, 220, 0.06);
}
.card__media svg { position: absolute; inset: 8% 10%; width: 80%; height: 84%; transition: transform 1.2s var(--ease); }
.card:hover .card__media svg { transform: scale(1.05) translateY(-1.5%); }
.card__tag { position: absolute; top: 16px; left: 16px; font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(201, 162, 126, 0.5); padding: 6px 10px; }
.card__cta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s var(--ease);
}
.card:hover .card__cta { opacity: 1; transform: none; }
.card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; }
.card__name { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.card__meta { margin: 2px 0 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.card__price { font-family: var(--serif); font-size: 19px; color: var(--accent); white-space: nowrap; }

/* ---------- Atölye ---------- */
.atelier { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: end; border-top: 1px solid var(--line); }
.atelier blockquote { margin: 0 0 28px; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.1; }
.atelier__text { margin: 0; max-width: 520px; color: rgba(239, 230, 220, 0.7); }
.stats { display: grid; gap: 28px; }
.stat { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.stat__num { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 64px); font-weight: 300; line-height: 1; color: var(--accent); }
.stat__label { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); text-align: right; }

/* ---------- Randevu ---------- */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); background: var(--bg-2); }
.booking__info { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.booking__info li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 15px; }
.booking__info span { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.form { display: grid; gap: 22px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); font: 300 17px/1.4 var(--sans);
  outline: none; transition: border-color 0.3s; color-scheme: dark;
}
.field select option { background: var(--bg-2); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field.is-error input { border-color: #d0766b; }
.form .btn { justify-self: start; margin-top: 8px; }
.form__msg { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--accent); }

/* ---------- Alt bilgi ---------- */
.site-footer {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding: 80px var(--gutter) 40px; border-top: 1px solid var(--line);
}
.footer__brand p { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 14px; color: rgba(239, 230, 220, 0.7); }
.footer__col h3 { margin: 0 0 6px; font-weight: 400; font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent); }
.footer__col a:hover { color: var(--ink); }
.footer__copy { grid-column: 1 / -1; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .atelier, .booking { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Telefon ---------- */
@media (max-width: 760px) {
  .nav a:not(.nav__cta) { display: none; }
  .nav .nav__cta { padding: 10px 14px; font-size: 10px; }
  .brand__word { letter-spacing: 0.36em; }
  .scene { height: 800vh; }
  .panel--left, .panel--right {
    top: auto; bottom: 64px; left: 16px; right: 16px; width: auto; translate: none;
    text-align: center;
  }
  .panel__index::after, .panel--right .panel__index::before { display: none; }
  .panel__index { margin-bottom: 8px; }
  .panel__title { font-size: 34px; margin-bottom: 10px; }
  .panel__body { font-size: 14px; margin-bottom: 10px; }
  .panel__spec { display: inline-block; padding-top: 10px; }
  .grade--bottom { height: 55%; background: linear-gradient(to top, var(--bg) 35%, transparent); }
  .chapter { left: 16px; right: 16px; bottom: 26px; justify-content: center; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card__name { font-size: 18px; }
  .card__info { flex-direction: column; gap: 4px; }
  .card__cta { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat__label { text-align: left; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .scroll-cue i { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
