/* ============================================================
   Ekin için — Özür Sitesi
   Ton: krem, sessiz, modern
   ============================================================ */

:root {
  --color-bg: #FAF7F5;
  --color-bg-deep: #F2EAE5;
  --color-ink: #2A1F1D;
  --color-ink-soft: #6B5550;
  --color-ink-faint: rgba(42, 31, 29, 0.45);
  --color-rose: #C8546B;
  --color-rose-deep: #8E3349;
  --color-rose-mist: #F4E1E5;
  --color-gold: #B8956A;
  --color-paper: #F8EFE6;

  --shadow-soft: 0 10px 40px -15px rgba(42, 31, 29, 0.15);
  --shadow-deep: 0 20px 60px -20px rgba(42, 31, 29, 0.25);
  --shadow-polaroid: 0 12px 30px -10px rgba(42, 31, 29, 0.25), 0 4px 8px -4px rgba(42, 31, 29, 0.1);

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --hand: 'Caveat', 'Dancing Script', cursive;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --motion: 1; /* tweakable: 0..1 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* iOS Safari'de overflow-x: hidden burada KULLANILMAZ — position:fixed kırılıyor.
     Yatay taşmayı body üzerinde tutuyoruz. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* eski Edge/IE */
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;                /* Chrome, Safari, yeni Edge */
}

body {
  position: relative;
}

/* film grain overlay — neredeyse görünmez */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--color-rose-mist); color: var(--color-rose-deep); }

/* =========== Typography =========== */
.serif { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; }
.hand  { font-family: var(--hand); }
.mono  { font-family: var(--mono); }
.caps  { text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; font-weight: 500; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }

/* =========== Layout =========== */
.section {
  position: relative;
  min-height: 100vh;
  padding: 120px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.section-inner { width: 100%; max-width: 760px; }

/* =========== Reveal-on-scroll =========== */
.reveal {
  opacity: 0;
  transform: translateY(calc(30px * var(--motion)));
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========== Scroll progress =========== */
.scroll-progress {
  position: fixed;
  top: 0; right: 18px;
  width: 1px;
  height: 100vh;
  background: rgba(42, 31, 29, 0.06);
  z-index: 50;
  pointer-events: none;
}
.scroll-progress-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--color-gold);
  transform-origin: top;
  height: 0;
  transition: height 0.1s linear;
}
.scroll-progress-heart {
  position: absolute;
  left: 50%;
  width: 8px; height: 8px;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: var(--color-rose);
  border-radius: 1px;
}
.scroll-progress-heart::before,
.scroll-progress-heart::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  background: var(--color-rose);
  border-radius: 50%;
}
.scroll-progress-heart::before { top: -4px; left: 0; }
.scroll-progress-heart::after  { top: 0;    left: 4px; }

@media (max-width: 640px) {
  .scroll-progress { right: 10px; }
  .section {
    padding: max(80px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
             max(96px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .numbers { margin: 0 -20px; padding: 96px 20px; width: calc(100% + 40px); }
  .letter { padding: 48px 26px; }
  .hero-name { font-size: clamp(48px, 14vw, 72px); }
  .twk-panel {
    width: calc(100vw - 24px);
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    max-height: 60vh;
  }
  .closing { padding-bottom: max(140px, calc(140px + env(safe-area-inset-bottom))); }
  body { overflow-x: hidden; }
}

/* iPhone 16 / 16 Pro özel optimizasyon — 393px ve 402px viewports */
@media (min-width: 380px) and (max-width: 430px) {
  .section { padding-left: 22px; padding-right: 22px; }
  .hero-name { font-size: clamp(56px, 15vw, 78px); }
  .section-title { font-size: clamp(32px, 8.5vw, 44px); }
  .letter { font-size: 21px; line-height: 1.75; }
  .polaroid-grid { gap: 24px; }
  .heart-svg { width: 200px; height: 200px; }
  .closing-text { font-size: clamp(26px, 7vw, 34px); }
  .player, .spotify-wrap { max-width: 100%; }
  .numbers-row { padding: 22px 0; }
  .numbers-value { font-size: 36px; }
  .numbers-label { font-size: 18px; }
  .list-item { grid-template-columns: 40px 1fr; gap: 14px; }
  .list-text { font-size: 22px; }
  .loki-fixed { --loki-x: 22px; --loki-y: 6px; width: 100px; }
}

@media (max-width: 380px) {
  .section { padding: 80px 16px; }
  .letter { padding: 40px 20px; font-size: 19px; }
  .hero-bear-wrap { gap: 14px; }
}

/* Dynamic Island / notch için üst güvenli alan */
@supports (padding-top: env(safe-area-inset-top)) {
  .scroll-progress { top: env(safe-area-inset-top); height: calc(100vh - env(safe-area-inset-top)); }
}

/* =========== Ambient floating hearts =========== */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.ambient-heart {
  position: absolute;
  color: var(--color-rose-mist);
  opacity: 0;
  will-change: transform, opacity;
}

/* =========== Cursor trail =========== */
.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-rose);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
}
@media (hover: none), (max-width: 768px) {
  .cursor-dot { display: none !important; }
}

/* =========== HERO =========== */
.hero {
  min-height: 100vh;
  text-align: center;
}
.hero-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-ink);
  margin: 0 auto;
  opacity: 0;
  animation: pulseDot 1s ease-out 0.4s forwards, heartbeat 1s ease-in-out 1.5s infinite;
}
@keyframes pulseDot {
  to { opacity: 1; }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 1; }
}
.hero-line {
  width: 1px;
  height: 0;
  background: var(--color-gold);
  margin: 24px auto 32px;
  animation: drawLine 1.2s cubic-bezier(0.22, 1, 0.36, 1) 2s forwards;
}
@keyframes drawLine {
  to { height: 80px; }
}
.hero-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 96px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-ink);
  opacity: 0;
  filter: blur(8px);
  animation: inkBleed 1.5s cubic-bezier(0.22, 1, 0.36, 1) 3s forwards;
}
@keyframes inkBleed {
  0%   { opacity: 0; filter: blur(8px); letter-spacing: 0.05em; }
  60%  { opacity: 1; }
  100% { opacity: 1; filter: blur(0); letter-spacing: -0.03em; }
}
.hero-icin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--color-ink-soft);
  margin-top: 18px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 4.2s forwards;
}
.hero-heart-wrap {
  margin-top: 36px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 5.4s forwards;
}

/* arkada yumuşak gül-renkli halo */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80vw, 720px);
  height: min(80vw, 720px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244, 225, 229, 0.55) 0%, rgba(250, 247, 245, 0) 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: heroGlowIn 2s ease-out 1.2s forwards, heroGlowPulse 8s ease-in-out 3s infinite;
}
@keyframes heroGlowIn { to { opacity: 1; } }
@keyframes heroGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.06); }
}

/* yüzen kalpler — hero'ya özel */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.hero-float {
  position: absolute;
  bottom: -40px;
  opacity: 0;
  animation: heroFloatUp var(--dur) ease-in-out var(--delay) infinite;
  will-change: transform, opacity;
}
@keyframes heroFloatUp {
  0%   { transform: translate(0, 0) rotate(-8deg);    opacity: 0; }
  15%  { opacity: var(--op); }
  50%  { transform: translate(var(--sway), -55vh) rotate(6deg); }
  85%  { opacity: var(--op); }
  100% { transform: translate(calc(var(--sway) * -0.4), -110vh) rotate(-4deg); opacity: 0; }
}

/* ayıcık */
.hero-bear-wrap {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  animation: fadeIn 0.9s ease-out 4.6s forwards;
}
.hero-bear {
  width: clamp(96px, 14vw, 132px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(184, 149, 106, 0.28));
  animation: bearBob 4.2s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes bearBob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-6px) rotate(1.5deg); }
}
.hero-side-heart {
  display: inline-block;
  animation: sideHeartFloat 3s ease-in-out infinite;
}
.hero-side-heart.left  { animation-delay: 0s; }
.hero-side-heart.right { animation-delay: 1.5s; }
@keyframes sideHeartFloat {
  0%, 100% { transform: translateY(0) scale(1);     opacity: 0.85; }
  50%      { transform: translateY(-10px) scale(1.15); opacity: 1; }
}
.hero-heart {
  display: inline-block;
  animation: heartPulse 2.4s ease-in-out infinite;
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
.hero-scroll {
  margin-top: 60px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 5.9s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* =========== MEKTUP =========== */
.letter {
  background: linear-gradient(180deg, #FBF5EE 0%, #F6EBDF 100%);
  padding: 72px clamp(28px, 6vw, 72px);
  border-radius: 4px;
  box-shadow: var(--shadow-deep), inset 0 0 60px rgba(184, 149, 106, 0.06);
  position: relative;
  font-family: var(--hand);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.7;
  color: var(--color-ink);
  animation: letterSway 8s ease-in-out infinite;
  --motion-amp: calc(0.4deg * var(--motion));
}
@keyframes letterSway {
  0%, 100% { transform: rotate(calc(-1 * var(--motion-amp))); }
  50%      { transform: rotate(var(--motion-amp)); }
}
.letter::before, .letter::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  background: rgba(184, 149, 106, 0.18);
  border-radius: 50%;
  filter: blur(6px);
}
.letter::before { top: 12px; left: 16px; }
.letter::after  { bottom: 12px; right: 16px; }

.letter-line {
  display: block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.letter-line.in {
  opacity: 1;
  transform: translateY(0);
}
.letter-line.empty { height: 0.7em; }

.letter-sig {
  margin-top: 28px;
  font-size: clamp(20px, 2.4vw, 24px);
  color: var(--color-rose-deep);
}
.letter-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-ink-faint);
  text-transform: uppercase;
  margin-top: 8px;
}

/* =========== POLAROID =========== */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
}
@media (max-width: 900px) { .polaroid-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .polaroid-grid { grid-template-columns: 1fr; gap: 28px; } }

.polaroid {
  background: #fff;
  padding: 12px 12px 44px;
  box-shadow: var(--shadow-polaroid);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
  cursor: default;
  transform: rotate(var(--rot, 0deg));
  position: relative;
}
.polaroid:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-deep);
  z-index: 5;
}
.polaroid-frame {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #F4E8D8 0%, #E5D2BC 100%);
  position: relative;
  overflow: hidden;
}
.polaroid-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 8px, transparent 8px 16px);
}
.polaroid-frame-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hand);
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0;
  color: var(--color-ink);
  text-transform: none;
  text-align: center;
  padding: 22px;
  line-height: 1.4;
  font-style: normal;
  white-space: pre-line;
}
.polaroid-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* öne çıkan polaroid — gül halo + hafif büyütme */
.polaroid-featured {
  position: relative;
  z-index: 3;
  transform: rotate(var(--rot, 0deg)) scale(1.04);
}
.polaroid-featured::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(200, 84, 107, 0.22) 0%, rgba(200, 84, 107, 0) 70%);
  z-index: -1;
  border-radius: 12px;
  pointer-events: none;
  animation: featuredPulse 4s ease-in-out infinite;
}
@keyframes featuredPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
.polaroid-featured:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.06);
}
.polaroid-caption {
  font-family: var(--hand);
  font-size: 22px;
  text-align: center;
  margin-top: 12px;
  color: var(--color-ink);
  line-height: 1;
}
.polaroid-date {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--color-ink-faint);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.polaroid:hover .polaroid-date { opacity: 1; }
.polaroid-caption-wrap {
  position: relative;
  height: 32px;
  margin-top: 8px;
}
.polaroid:hover .polaroid-caption { opacity: 0; }
.polaroid-caption { transition: opacity 0.3s; position: absolute; left: 0; right: 0; }

/* =========== SAYILAR =========== */
.numbers {
  background: #1A1310;
  color: var(--color-bg);
  margin: 0 -32px;
  padding: 140px 32px;
  width: calc(100% + 64px);
  max-width: none;
}
.numbers-inner {
  max-width: 760px;
  margin: 0 auto;
}
.numbers-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 20px;
}
.numbers-row:last-child { border-bottom: 0; }
.numbers-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 26px);
  color: rgba(250, 247, 245, 0.75);
  font-weight: 300;
}
.numbers-value {
  font-family: var(--mono);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--color-gold);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.numbers-unit {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(184, 149, 106, 0.55);
  margin-left: 8px;
}
@keyframes wobble {
  0%, 100% { transform: translateY(0); }
  25%      { transform: translateY(-2px) rotate(-1deg); }
  75%      { transform: translateY(2px) rotate(1deg); }
}
.wobble { animation: wobble 3s ease-in-out infinite; display: inline-block; }

/* =========== ŞARKI PLAYER =========== */
.player {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 149, 106, 0.2);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  max-width: 480px;
  margin: 40px auto 0;
}
.player-art {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #C8546B 0%, #8E3349 100%);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
}
.player-art svg { width: 28px; height: 28px; }
.player-info {
  flex: 1;
  min-width: 0;
}
.player-title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}
.player-artist {
  font-size: 12px;
  color: var(--color-ink-faint);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.player-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.player-btn:hover { background: rgba(0,0,0,0.06); }
.player-progress {
  height: 1px;
  background: rgba(42, 31, 29, 0.1);
  margin-top: 14px;
  position: relative;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.player-progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--color-gold);
  width: 0%;
}

/* =========== KALP =========== */
.heart-section {
  text-align: center;
}
.heart-svg {
  width: clamp(180px, 30vw, 260px);
  height: clamp(180px, 30vw, 260px);
  cursor: pointer;
  transition: filter 0.4s ease;
  user-select: none;
}
.heart-svg path {
  stroke: var(--color-rose-deep);
  stroke-width: 1.5;
  fill: transparent;
  transition: fill 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.heart-svg.filled path {
  fill: var(--color-rose);
}
.heart-svg.filled {
  animation: heartbeatBig 1s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(200, 84, 107, 0.35));
}
@keyframes heartbeatBig {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.08); }
  40%      { transform: scale(1); }
  60%      { transform: scale(1.04); }
}
.heart-prompt {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--color-ink-soft);
  margin-top: 32px;
  transition: opacity 0.5s ease;
}
.heart-particle {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
  color: var(--color-rose);
  opacity: 0;
}

/* =========== LİSTE =========== */
.list {
  margin-top: 56px;
}
.list-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(42, 31, 29, 0.08);
}
.list-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-ink-faint);
}
.list-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--color-ink);
  font-weight: 300;
}

/* =========== KAPANIŞ =========== */
.closing {
  background: linear-gradient(180deg, var(--color-bg) 0%, #1A1310 80%);
  text-align: center;
  min-height: 100vh;
  color: var(--color-bg);
}
.closing-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-bg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.closing-heart-wrap {
  margin: 60px auto 0;
  cursor: default;
  position: relative;
  display: inline-block;
}
.closing-heart-wrap .secret-zone {
  position: absolute;
  inset: -20px;
  cursor: pointer;
}
.closing-sig {
  font-family: var(--hand);
  font-size: clamp(28px, 3.4vw, 36px);
  color: var(--color-gold);
  margin-top: 36px;
}
.closing-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(250, 247, 245, 0.4);
  text-transform: uppercase;
  margin-top: 12px;
}

/* =========== Section eyebrow =========== */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-ink-faint);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 300;
  text-align: center;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
.section-title.on-dark { color: var(--color-bg); }

/* =========== Easter egg modal =========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 19, 16, 0.7);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--color-paper);
  padding: 56px 44px;
  max-width: 520px;
  border-radius: 4px;
  box-shadow: var(--shadow-deep);
  text-align: center;
  font-family: var(--hand);
  font-size: clamp(22px, 2.8vw, 26px);
  line-height: 1.5;
  color: var(--color-ink);
  position: relative;
  transform: scale(0.94);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-backdrop.show .modal { transform: scale(1); }
.modal-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--color-rose);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-ink-faint);
  font-size: 18px;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
}
.modal-close:hover { background: rgba(0,0,0,0.05); color: var(--color-ink); }

/* ===== LOKI — sayfa boyu sabit dekoratif kedi =====
   iOS Safari için: position:fixed + safe-area-inset-bottom + non-negative
   bottom. Eski "kenara taşma" görünümünü transform değişkenleriyle veriyoruz. */
.loki-fixed {
  --loki-x: 40px;
  --loki-y: 20px;
  position: fixed;
  right: 0;
  bottom: env(safe-area-inset-bottom, 0px);
  width: clamp(140px, 18vw, 260px);
  height: auto;
  pointer-events: none;
  z-index: 40;
  filter: drop-shadow(0 8px 24px rgba(42, 31, 29, 0.18));
  opacity: 0.92;
  transform-origin: bottom right;
  animation: lokiBob 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes lokiBob {
  0%, 100% { transform: translate(var(--loki-x), var(--loki-y))      rotate(0deg); }
  50%      { transform: translate(var(--loki-x), calc(var(--loki-y) - 6px)) rotate(-1.5deg); }
}
@media (max-width: 768px) {
  .loki-fixed {
    --loki-x: 18px;
    --loki-y: 8px;
    width: clamp(138px, 32vw, 170px);
    opacity: 0.94;
  }
}
@media (max-width: 420px) {
  .loki-fixed {
    --loki-x: 14px;
    --loki-y: 6px;
    width: clamp(142px, 38vw, 162px);
  }
}

/* Spotify embed wrap */
.spotify-wrap {
  margin-top: 36px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.5);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.spotify-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}
.spotify-fallback {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}
.spotify-fallback-art {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #C8546B 0%, #8E3349 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* reduced motion */@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
