/* ------------------------------------------------------------------
   Ceyda — story: hero + every section
   ------------------------------------------------------------------ */

/* ---------- 01 hero: clear sky → sunrise ---------- */
.hero { position: relative; height: 200svh; z-index: 1; }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 34% at 84% 6%, rgba(255, 252, 236, 0.55), rgba(255, 252, 236, 0) 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-haze) 100%);
}
.hero__clouds { position: absolute; inset: 0; overflow: hidden; will-change: opacity; }
.hero__clouds-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__sunrise {
  position: absolute;
  inset: 0 0 -80px 0;                 /* a little taller than the stage so the parallax lift never shows a gap */
  opacity: 0;
  transform: scale(1.06);
  will-change: opacity, transform;
}
.hero__sunrise img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.hero__sunrise::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 48%;
  background: linear-gradient(180deg, var(--sky-top) 0%, rgba(142, 197, 255, 0.55) 40%, rgba(142, 197, 255, 0) 100%);
}
.hero__dim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(20, 38, 80, 0.9) 0%, rgba(20, 38, 80, 0) 70%);
  pointer-events: none;
}

.hero__title {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 20px;
  pointer-events: none;
}
.hero__title-in { will-change: transform, opacity; }
.hero__date {
  font-family: var(--font-hand);
  font-size: clamp(1.45rem, 1rem + 1.6vw, 2.1rem);
  color: #1f3a66;
  margin: 0 0 0.05em;
}
.hero__name {
  font-size: clamp(5.2rem, 2.6rem + 15vw, 12.5rem);
  font-weight: 500;
  line-height: 0.95;
  color: #122244;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 30px rgba(255, 255, 255, 0.35);
}
.hero__scroll {
  color: #2a4b7c;
  margin: 2.6rem 0 0;
  display: grid;
  justify-items: center;
}
.hero__scroll svg { width: 24px; height: 42px; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.hero__caption {
  position: absolute;
  left: 20px;
  bottom: max(22px, env(safe-area-inset-bottom));
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: #fff;
  opacity: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* every section after the hero sits above its sticky stage */
.sec { z-index: 2; }

/* ---------- 01 text ---------- */
.skytext { padding-top: clamp(56px, 9vh, 110px); }
.skytext__grid { position: relative; }

/* ---------- 02 dream ---------- */
.dream { padding-top: 0; }
.dream__grid { display: grid; gap: 40px; align-items: center; }
.dream__photo { max-width: 420px; margin-inline: auto; width: 100%; }
@media (max-width: 759px) {
  .dream__text { order: -1; }
}
@media (min-width: 760px) {
  .dream__grid { grid-template-columns: 5fr 6fr; gap: 64px; }
}

/* ---------- 03 time ---------- */
.time { background: #142036; color: #e8eef9; }
.time .kicker { color: var(--lis); }
.time h2 { color: #fff; }
.time .note { color: #a9b8d6; }
.time__grid { display: grid; gap: 36px; }
.time__photo { position: relative; max-width: 340px; margin-inline: auto; width: 100%; isolation: isolate; }
.time__photo .polaroid { position: relative; z-index: 1; }
.time__glow {
  position: absolute;
  inset: -14%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(53, 196, 242, 0.42), rgba(53, 196, 242, 0));
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.14); opacity: 0.75; } }
.butterfly {
  position: absolute;
  right: -8px;
  top: -26px;
  width: 44px;
  height: 34px;
  z-index: 2;
  color: var(--lis);
  filter: drop-shadow(0 0 6px rgba(53, 196, 242, 0.8));
  animation: flutter-float 6s ease-in-out infinite;
}
.butterfly svg { width: 100%; height: 100%; overflow: visible; }
.butterfly .fore { fill: currentColor; opacity: 0.95; }
.butterfly .hind { fill: currentColor; opacity: 0.72; }
.butterfly .body { stroke: #0b2a3a; stroke-width: 2; stroke-linecap: round; }
.butterfly .ant { stroke: #0b2a3a; stroke-width: 0.9; fill: none; stroke-linecap: round; }
.butterfly .wing { transform-origin: 20px 16px; animation: flap 0.9s ease-in-out infinite alternate; }
.butterfly .wing--r { animation-direction: alternate-reverse; }
@keyframes flap { from { transform: rotateY(0deg); } to { transform: rotateY(62deg); } }
@keyframes flutter-float { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(-6px, -10px) rotate(8deg); } }

.time__head h2 { margin-bottom: 0; }
.bubble {
  position: relative;
  max-width: 34rem;
  padding: 14px 18px 14px;
  border-radius: 18px;
  color: var(--ink);
  font-size: 0.98em;
  line-height: 1.5;
  margin: 0 0 14px;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.5);
}
.bubble p { margin: 0; }
.bubble__name { display: block; font-family: var(--font-hand); font-size: 1.25rem; margin-bottom: 2px; }
.bubble--her { background: var(--her); border-bottom-left-radius: 4px; margin-right: 10%; }
.bubble--his { background: var(--his); border-bottom-right-radius: 4px; margin-left: 10%; }
.bubble--her .bubble__name { color: #1c6fb0; }
.bubble--his .bubble__name { color: var(--string); }
.bubble--her::after, .bubble--his::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: inherit;
}
.bubble--her::after { left: -6px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.bubble--his::after { right: -6px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.time__prose p { color: #d7e0f2; }
.time__note { margin-top: -8px; }
@media (min-width: 820px) {
  .time__grid { grid-template-columns: 4fr 7fr; column-gap: 64px; align-items: center; }
  .time__head, .time__prose, .time__note { grid-column: 1 / -1; }
  .time__prose { max-width: 48ch; }
}

/* ---------- 04 Kaan ---------- */
.kaan__intro { margin-top: 28px; }
.cluster { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 460px; margin-inline: auto; }
.cluster .polaroid { position: absolute; }
.cluster__a { left: 0; top: 0; width: 58%; z-index: 1; }
.cluster__b { right: 0; bottom: 0; width: 68%; z-index: 2; }

.block {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: clamp(64px, 10vh, 110px);
}
.block > .slot { max-width: 480px; width: 100%; margin-inline: auto; }
.block--wide > .slot { max-width: 680px; }
@media (min-width: 760px) {
  .block { grid-template-columns: 1fr 1fr; gap: 56px; }
  .block--flip > :first-child { order: 2; }
  .block--wide { grid-template-columns: 7fr 5fr; }
  .block--wide.block--flip { grid-template-columns: 5fr 7fr; }
}

.pile { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; width: 100%; }
.pile .polaroid { position: absolute; width: 50%; }
.pile .p1 { left: 1%; top: 2%; }
.pile .p2 { right: 2%; top: 0; width: 54%; }
.pile .p3 { left: 12%; bottom: 0; }
.pile .p4 { right: 6%; bottom: 4%; }
.pile .polaroid[data-reveal] { transition-delay: calc(var(--i) * 140ms); }

.kaan__two .block { margin-top: clamp(56px, 9vh, 96px); }
.kaan__two .block > .slot { max-width: 340px; }
.kaan__two .block > .slot--narrow { max-width: 250px; }
@media (min-width: 760px) {
  .kaan__two .block--flip { align-items: start; }
  .kaan__two .block--flip > div:last-child { padding-top: clamp(40px, 9vw, 120px); }
}
.note--after { margin-top: 14px; }

/* ---------- 05 Oyunlar ---------- */
.games h2 { margin-bottom: 0.1em; }
.game { margin-top: clamp(64px, 10vh, 110px); }
.game h3 { margin-bottom: 0.45em; }

.polaroid--pixel { overflow: visible; }
.polaroid--pixel .pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.game--stardew > .slot { max-width: 300px; }
.orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}
.orbit i {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px;
  background: var(--string);
  clip-path: path("M8 15 C 4.5 12, 1 9.5, 1 6.2 C 1 3.8, 2.8 2, 5 2 C 6.4 2, 7.4 2.8, 8 3.8 C 8.6 2.8, 9.6 2, 11 2 C 13.2 2, 15 3.8, 15 6.2 C 15 9.5, 11.5 12, 8 15 Z");
}
.is-in .orbit { opacity: 1; animation: orbit-spin 18s linear 0.3s infinite; transition: opacity 1.2s ease 0.3s; }
.is-in .orbit i { animation: heart-beat 2.4s ease-in-out infinite; }
.is-in .orbit i:nth-child(2n) { animation-delay: -0.8s; }
.is-in .orbit i:nth-child(3n) { animation-delay: -1.5s; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes heart-beat { 0%, 100% { scale: 1; } 50% { scale: 1.28; } }

.game--awayout { position: relative; display: grid; justify-items: center; }
.game--awayout .knot { justify-self: start; margin: 6px 0 0 14%; }
.prison-note {
  margin: 0;
  width: min(100%, 520px);
  background: #efe6cf;
  padding: 30px 30px 26px;
  position: relative;
  border: 1px dashed rgba(31, 42, 58, 0.3);
  box-shadow: 0 2px 6px rgba(20, 30, 50, 0.08), 0 18px 36px -18px rgba(20, 30, 50, 0.45);
  font-family: ui-monospace, "Courier New", Courier, monospace;
  color: #2a2f3a;
}
.prison-note h3 { font-family: inherit; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1em; }
.prison-note p { margin: 0 0 0.6em; font-size: 1rem; }
.prison-note__big {
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--string);
  margin: 0.4em 0 0 !important;
}

.itt__row { display: grid; gap: 28px; }
.itt__row > .slot { max-width: 420px; margin-inline: auto; width: 100%; }
.itt__cap { margin: 16px 6px 0; font-size: 0.98em; color: var(--ink-2); }
@media (min-width: 760px) {
  .itt__row { grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
  .itt__row > .slot:nth-child(2) { margin-top: 40px; }
}

.lol__opener {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
  max-width: 24ch;
}
.lol__opener em { color: var(--string); font-style: italic; }

.timer {
  text-align: center;
  width: min(100%, 540px);
  margin: 34px auto 0;
  --tilt: -0.8deg;
}
.timer__when { font-family: var(--font-hand); font-size: 1.6rem; color: var(--string); margin: 0 0 12px; }
.timer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.timer__grid b {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-weight: 600;
  font-size: clamp(1.7rem, 0.8rem + 4.6vw, 3.2rem);
  line-height: 1;
}
.timer__grid span { font-family: var(--font-hand); font-size: 1.15rem; color: var(--ink-2); }
.timer__grid b.tick { animation: tick 0.24s ease-out; }
@keyframes tick { from { transform: translateY(-28%); opacity: 0; } }
.timer__foot { font-family: var(--font-hand); font-size: 1.2rem; color: var(--ink-3); margin: 12px 0 0; }
.game--lol { position: relative; }

.sticker-q {
  position: absolute;
  right: -14px;
  top: -20px;
  font-size: 44px;
  line-height: 1;
  z-index: 3;
  transform: rotate(12deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}
.q-inline { font-size: 1.3em; vertical-align: -0.1em; }

.lol__strip { margin-top: clamp(56px, 9vh, 96px); max-width: 560px; }
.polaroid--strip { padding-bottom: 12px; }

/* ---------- 06 Küçük Dostlarımız ---------- */
.friends__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  align-items: start;
  margin: 20px 0 36px;
}
.friends__grid > .slot:nth-child(2) { margin-top: 28px; }
.friends__grid > .slot:nth-child(4) { margin-top: 28px; }
@media (min-width: 760px) {
  .friends__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .friends__grid > .slot:nth-child(2), .friends__grid > .slot:nth-child(4) { margin-top: 44px; }
}
.polaroid--casper { overflow: visible; }
.polaroid--casper picture { background: #fff; }
.polaroid--casper img {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.35) 9%, #000 26%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.35) 9%, #000 26%);
}
.halo {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 42%;
  height: 34px;
  margin-left: -12%;                  /* a little to the right, over her head */
  border-radius: 50%;
  border: 6px solid #f7c531;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 247, 214, 0.9),
    0 0 14px 2px rgba(255, 196, 60, 0.55),
    inset 0 0 0 1px rgba(255, 247, 214, 0.9),
    inset 0 0 6px rgba(255, 220, 120, 0.35);
  z-index: 3;
  animation: halo-float 3.6s ease-in-out infinite;
  transform: perspective(160px) rotateX(58deg) rotate(-6deg);
}
@keyframes halo-float {
  0%, 100% { transform: translateY(0) perspective(160px) rotateX(58deg) rotate(-6deg); }
  50% { transform: translateY(-6px) perspective(160px) rotateX(58deg) rotate(-6deg); }
}
.friends__prose { margin-inline: auto; text-align: center; }
.blue-heart { width: 52px; margin: 18px auto 0; color: #3d8bff; }
.blue-heart svg path { fill: currentColor; }
.blue-heart svg { animation: heart-pulse 2.6s ease-in-out infinite; transform-origin: 50% 55%; filter: drop-shadow(0 6px 14px rgba(61, 139, 255, 0.45)); }
@keyframes heart-pulse { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.14); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } }

/* ---------- 07 Gün batımı ---------- */
.sundown { position: relative; background: #000; z-index: 2; margin-top: -1px; overflow-x: clip; }
.sundown__fig { position: relative; }
.sundown__fig::before {               /* paper melts into her sky */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 30%;
  background: linear-gradient(to bottom, var(--paper) 0%, rgba(251, 246, 234, 0.75) 22%, rgba(251, 246, 234, 0.3) 55%, rgba(251, 246, 234, 0) 100%);
  pointer-events: none;
  z-index: 1;
}
.sundown__fig img { width: 100%; height: auto; max-height: 92svh; object-fit: cover; object-position: 50% 40%; }
.sundown__cap {
  position: absolute;
  left: 20px;
  bottom: 18px;
  margin: 0;
  color: #fff;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.sundown__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.sundown__line {
  position: relative;
  margin: 0;
  padding: 40px 20px max(130px, 18vh);
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.8rem);
  line-height: 1.2;
}
.sundown__line em { color: var(--string-light); }
.sundown__black { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }

/* ---------- 08 Evren ---------- */
.space {
  position: relative;
  background: #000;
  color: #e9eefc;
  overflow: hidden;
  z-index: 2;
  padding: 8vh 0 max(18vh, calc(10vh + env(safe-area-inset-bottom)));
  min-height: 140svh;
}
.space__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.space__nebula {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 18% 28%, rgba(70, 45, 140, 0.45), rgba(0, 0, 0, 0) 70%),
    radial-gradient(55% 38% at 82% 58%, rgba(30, 80, 150, 0.4), rgba(0, 0, 0, 0) 70%),
    radial-gradient(45% 32% at 50% 92%, rgba(140, 40, 90, 0.32), rgba(0, 0, 0, 0) 70%);
}
.space__content { position: relative; z-index: 2; text-align: center; }
.space .kicker { color: var(--string-light); }
.space__h { color: #fff; margin-bottom: 1.2em; }
.space__p {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.6;
  margin: 0 auto 2.6em;
  max-width: 34ch;
  color: #d9e1f6;
}
.space__p b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.space__p sup { font-size: 0.6em; vertical-align: super; line-height: 0; }
.quiet-sp { color: #9fb0d4; font-size: 0.86em; }
.space__note { font-family: var(--font-hand); font-size: 1.3rem; color: #b9c4e0; max-width: 34ch; margin: -1.4em auto 1.2em; line-height: 1.2; }
.space__note--after { margin: 0.2em auto 2.6em; }
.space__p--calc { font-size: 1.02em; color: #c9d3ea; margin-bottom: 1.2em; }
.zeros {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.78rem, 0.6rem + 0.7vw, 1rem);
  letter-spacing: 0.06em;
  color: #fff;
  word-break: break-all;
  max-width: 38ch;
  margin: 0 auto 1.2em;
  line-height: 1.5;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}
.zeros--pct { color: #c9d3ea; text-shadow: none; margin-top: -0.6em; }
.space__p--fingers { margin-top: 2vh; }
.space__p--fingers em { color: #9fb0d4; }
.space__p--fingers b { color: #fff; }

.bday { margin: 8vh auto 10vh; }
.bday__hand { font-family: var(--font-hand); font-size: 2.1rem; color: #8fbaff; margin: 0; }
.bday__name {
  font-size: clamp(4.2rem, 2.4rem + 11vw, 9.5rem);
  color: #fff;
  margin: 0;
  line-height: 0.95;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
}
.bday__num { display: flex; align-items: flex-end; justify-content: center; gap: 0; margin-top: 22px; }
.candle { width: clamp(84px, 13.5vw, 120px); height: auto; aspect-ratio: 180 / 300; flex: none; margin: 0 -12px -0.06em; }
.bday.is-in .bday__26 { animation: num-glow 2.8s ease-in-out 1.2s infinite alternate; }
@keyframes num-glow {
  from { text-shadow: 0 0 28px rgba(224, 180, 87, 0.45); }
  to { text-shadow: 0 0 34px rgba(255, 196, 110, 0.7), 0 0 70px rgba(255, 160, 70, 0.28); }
}
.bday__26 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 0.9;
  margin: 0;
  text-shadow: 0 0 28px rgba(224, 180, 87, 0.45);
}
.bday__wish { color: #d9e1f6; max-width: 34ch; margin: 1.4em auto 0; }

.final {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.8rem);
  color: #fff;
  margin: 12vh 0 6vh;
  line-height: 1.15;
}
.final[data-reveal] { transition-duration: 1.6s; }
.nines {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.34);
  margin: -2.2vh 0 0 0.32em;          /* tucked right under the word, offset so the tracking stays centered */
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
  transition-delay: 1.4s;             /* appears a beat after "Seni seviyorum" */
}
.nines[data-reveal] { transition-duration: 2.4s; }
