/* ===========================================
   Sıla — sweet, modern, animated
   =========================================== */
:root {
  --bg:           #fffaf3;
  --bg-soft:      #fbede2;
  --bg-elev:      #ffffff;
  --ink:          #2b2018;
  --ink-soft:     #6b5849;
  --ink-mute:     #9b8771;
  --line:         rgba(60, 40, 25, 0.10);
  --line-strong:  rgba(60, 40, 25, 0.18);
  --accent:       #d99a8e;
  --accent-2:     #e8b4b8;
  --accent-3:     #c08a5e;
  --shadow:       0 14px 40px -18px rgba(60, 40, 25, .25);
  --shadow-lg:    0 30px 80px -30px rgba(60, 40, 25, .35);
  --radius:       20px;
  --radius-lg:    32px;
  --maxw:         1240px;

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand:  'Caveat', cursive;
}

[data-theme="dark"] {
  --bg:           #14110d;
  --bg-soft:      #1d1813;
  --bg-elev:      #25201a;
  --ink:          #f3e8d6;
  --ink-soft:     #d9c7ad;
  --ink-mute:     #a18d72;
  --line:         rgba(243, 232, 214, 0.10);
  --line-strong:  rgba(243, 232, 214, 0.18);
  --accent:       #e8b4b8;
  --accent-2:     #f0c8c8;
  --accent-3:     #e6b88a;
  --shadow:       0 14px 40px -18px rgba(0,0,0,.6);
  --shadow-lg:    0 30px 80px -30px rgba(0,0,0,.85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  transition: background 0.6s ease, color 0.6s ease;
  overflow-x: hidden;
  cursor: default;
}

/* soft gradient background blobs */
body::before, body::after {
  content: '';
  position: fixed;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  z-index: -1;
  pointer-events: none;
  transition: opacity .6s ease, background .6s ease;
  will-change: transform;
}
/* lighter blur on mobile (perf) */
@media (max-width: 720px) {
  body::before, body::after { filter: blur(80px); opacity: .28; width: 80vmax; height: 80vmax; }
}
body::before {
  background: var(--accent-2);
  top: -20vmax; left: -20vmax;
  animation: float1 22s ease-in-out infinite alternate;
}
body::after {
  background: var(--accent-3);
  bottom: -25vmax; right: -25vmax;
  animation: float2 26s ease-in-out infinite alternate;
}
[data-theme="dark"] body::before { opacity: .15; }
[data-theme="dark"] body::after  { opacity: .15; }
@keyframes float1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vmax, 6vmax) scale(1.15); }
}
@keyframes float2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8vmax, -6vmax) scale(1.1); }
}

img, video { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ===========================================
   Cursor orb (subtle parallax light)
   =========================================== */
.cursor-orb {
  position: fixed;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
              color-mix(in srgb, var(--accent-2) 35%, transparent),
              transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
  mix-blend-mode: multiply;
  opacity: 0;
}
[data-theme="dark"] .cursor-orb { mix-blend-mode: screen; }
@media (hover: hover) and (pointer: fine) {
  .cursor-orb { opacity: 1; }
}

/* ===========================================
   Topbar
   =========================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) clamp(14px, 4vw, 40px) 12px;
  background: var(--bg);  /* solid fallback for older Safari */
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .topbar { background: var(--bg); }
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-mark {
  color: var(--accent);
  display: inline-flex;
  animation: beat 1.4s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  10%      { transform: scale(1.18); }
  20%      { transform: scale(1); }
  30%      { transform: scale(1.12); }
  40%      { transform: scale(1); }
}

.topnav {
  display: flex; gap: 20px; margin-left: auto;
  flex-wrap: wrap;
}
.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  padding: 4px 2px;
  position: relative;
  transition: color .25s ease;
}
.topnav a::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: -4px;
  height: 1.5px; background: var(--accent); transition: left .35s ease, right .35s ease;
  border-radius: 2px;
}
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { left: 0; right: 0; }

.theme-toggle {
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .35s ease, border-color .25s ease, background .25s ease;
}
.theme-toggle:hover { transform: rotate(-20deg) scale(1.08); border-color: var(--accent); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: inline-block; }

@media (max-width: 820px) {
  .topnav { display: none; }
  .brand { font-size: 22px; }
}

/* ===========================================
   Hero
   =========================================== */
.hero {
  position: relative;
  min-height: 100vh;            /* iOS fallback */
  min-height: 100svh;           /* small viewport: avoids iOS URL-bar jump */
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 32%;  /* keep their faces in frame */
  filter: brightness(.65) saturate(1.05);
  transform: scale(1.08);
  animation: kenBurns 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.16) translate(-2%, -1.5%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 50% at 50% 70%, rgba(0,0,0,.5), transparent 75%),
    linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.45) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  color: #fff7ea;
  padding: 0 20px;
}
.hero-eyebrow {
  font-family: var(--font-hand);
  font-size: clamp(24px, 3.4vw, 38px);
  color: #f7d2c2;
  margin: 0 0 6px;
  opacity: 0;
  animation: fadeUp 1.4s .3s ease forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(64px, 13vw, 180px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center;
  white-space: normal;
}
.hero-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotate(-6deg);
  animation: dropIn 1.1s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(.55s + var(--i, 0) * .12s);
  text-shadow: 0 16px 60px rgba(0,0,0,.35);
}
.hero-title .space {
  display: inline-block;
  width: 0.3em;
}
@keyframes dropIn {
  0%   { opacity: 0; transform: translateY(40px) rotate(-6deg); }
  60%  { opacity: 1; transform: translateY(-6px) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}
.hero-sub {
  margin: 26px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--accent-2);
  opacity: 0;
  animation: fadeUp 1.6s 1.5s ease forwards, pulse 2.6s 2.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 12px rgba(255, 180, 184, .5));
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  animation: fadeUp 1.5s 2s ease forwards;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: 8px;  opacity: 1; }
  100% { top: 26px; opacity: 0; }
}

/* ===========================================
   Sections
   =========================================== */
.section {
  padding: clamp(60px, 12vw, 160px) clamp(16px, 5vw, 60px);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.section.soft {
  background: var(--bg-soft);
  max-width: none;
  border-radius: 0;
}
.section.soft > * { max-width: var(--maxw); margin-inline: auto; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(44px, 9vw, 110px);
  letter-spacing: -0.02em;
  margin: 0 0 clamp(32px, 6vw, 56px);
  line-height: 1;
  text-align: center;
  position: relative;
}
.section-title span {
  display: inline-block;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1);
}
.section.in-view .section-title span { opacity: 1; transform: translateY(0); }
.section-title::after {
  content: '♡';
  display: block;
  font-family: var(--font-sans);
  font-size: 0.22em;
  color: var(--accent);
  margin-top: 10px;
  opacity: 0;
  transition: opacity 1s ease .3s;
}
.section.in-view .section-title::after { opacity: 1; }

/* ===========================================
   Masonry — pure CSS columns
   =========================================== */
.masonry {
  --cols: 4;
  column-count: var(--cols);
  column-gap: 14px;
}
.masonry.small { --cols: 3; max-width: 900px; margin-inline: auto; }
@media (max-width: 1100px) { .masonry { --cols: 3; } .masonry.small { --cols: 2; } }
@media (max-width: 720px)  { .masonry { --cols: 2; column-gap: 10px; } .masonry.small { --cols: 2; column-gap: 10px; } }
@media (max-width: 380px)  { .masonry { --cols: 1; } .masonry.small { --cols: 1; } }
.tile { margin-bottom: 14px; }
@media (max-width: 720px) { .tile { margin-bottom: 10px; } }

.tile {
  break-inside: avoid;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transform: translateY(40px) scale(.96);
  opacity: 0;
  transition: transform .9s cubic-bezier(.22,.8,.2,1),
              opacity .9s ease,
              box-shadow .4s ease,
              border-radius .4s ease;
  -webkit-tap-highlight-color: transparent;
}
.tile.in { transform: translateY(0) scale(1); opacity: 1; }
.tile:hover {
  box-shadow: var(--shadow-lg);
  border-radius: 26px;
}
.tile img {
  width: 100%; height: auto;
  display: block;
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1), filter .5s ease;
  image-orientation: from-image;
}
.tile:hover img {
  transform: scale(1.06);
  filter: brightness(1.05) saturate(1.08);
}
.tile::before {
  content: '♡';
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.92);
  color: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .3s ease, transform .35s cubic-bezier(.3,1.5,.4,1);
  z-index: 2;
}
@media (hover: hover) {
  .tile:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: beat 1.4s ease-in-out infinite .3s;
  }
}
@media (hover: none) {
  .tile::before { display: none; }
  .tile:hover img { transform: none; filter: none; }
  .tile:active img { transform: scale(.98); }
}

/* ===========================================
   Video / Gif grids
   =========================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.video-grid.small { margin-top: 18px; }
.media-card {
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(40px) scale(.96);
  opacity: 0;
  transition: transform .9s cubic-bezier(.22,.8,.2,1),
              opacity .9s ease,
              box-shadow .4s ease;
}
.media-card.in { transform: translateY(0) scale(1); opacity: 1; }
.media-card:hover { box-shadow: var(--shadow-lg); }
.media-card video, .media-card img {
  width: 100%; height: auto; display: block;
  background: #000;
}
.media-card.video-loop video {
  pointer-events: none;  /* GIF-like: no click-to-pause */
}

/* ===========================================
   Letter
   =========================================== */
.letter-section { text-align: center; position: relative; }
.letter {
  margin: 0 auto;
  max-width: 620px;
  text-align: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 7vw, 72px);
  box-shadow: var(--shadow);
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.65;
  color: var(--ink);
  position: relative;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1),
              opacity 1.1s ease;
}
.section.in-view .letter { transform: translateY(0); opacity: 1; }
.letter::before, .letter::after {
  content: '';
  position: absolute;
  width: 40px; height: 40px;
  border: 1.5px solid var(--accent);
  opacity: .6;
  border-radius: 4px;
}
.letter::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.letter::after  { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.letter p { margin: 0 0 14px; }
.letter p:last-of-type { margin: 0; }
.letter-sign {
  font-family: var(--font-hand);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--accent);
  margin-top: 28px !important;
}

.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.floaters span {
  position: absolute;
  color: var(--accent);
  font-size: 22px;
  opacity: 0;
  animation: floatUp 7s linear infinite;
}
.floaters span:nth-child(1) { left: 8%;  animation-delay: 0s;   font-size: 18px; }
.floaters span:nth-child(2) { left: 22%; animation-delay: 1.5s; font-size: 26px; }
.floaters span:nth-child(3) { left: 50%; animation-delay: 3s;   font-size: 16px; }
.floaters span:nth-child(4) { left: 72%; animation-delay: 1s;   font-size: 22px; }
.floaters span:nth-child(5) { left: 88%; animation-delay: 4s;   font-size: 20px; }
@keyframes floatUp {
  0%   { bottom: -10%; opacity: 0; transform: translateX(0) rotate(0); }
  10%  { opacity: .8; }
  90%  { opacity: .8; }
  100% { bottom: 110%; opacity: 0; transform: translateX(40px) rotate(20deg); }
}

/* ===========================================
   Footer
   =========================================== */
.foot {
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--ink-mute);
  font-family: var(--font-hand);
  font-size: 20px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.foot-mark {
  color: var(--accent);
  margin-right: 6px;
  display: inline-block;
  animation: beat 1.4s ease-in-out infinite;
}

/* ===========================================
   Lightbox
   =========================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 6, 3, .94);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lbFade .35s ease;
}
.lightbox.open { display: flex; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lb-figure {
  max-width: 92vw; max-height: 88vh;
  margin: 0;
  display: flex; align-items: center; justify-content: center;
}
.lb-figure img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  object-fit: contain;
  image-orientation: from-image;
  animation: lbPop .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes lbPop {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-close, .lb-nav {
  position: fixed;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .25s ease;
  backdrop-filter: blur(8px);
}
.lb-close { top: max(16px, env(safe-area-inset-top, 0px)); right: 16px; font-size: 26px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
@media (max-width: 720px) {
  .lb-close, .lb-nav { width: 44px; height: 44px; }
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav.prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-nav.next:hover { transform: translateY(-50%) translateX(3px); }

/* ===========================================
   Reduced motion
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile, .media-card, .letter { opacity: 1; transform: none; }
  .hero-title .letter { opacity: 1; transform: none; }
}
