﻿:root {
  --bg: #f7f2ec;
  --bg-2: #f0e8de;
  --bg-3: #fdfbf8;
  --primary: #f2b8c6;
  --primary-strong: #e69bb2;
  --accent: #9fb4a5;
  --ink: #1c1713;
  --text: #332925;
  --muted: #756a64;
  --glass: rgba(255, 255, 255, 0.7);
  --border: rgba(51, 41, 37, 0.08);
  --shadow: 0 18px 45px rgba(28, 23, 19, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 20%, #f7dfe6 0%, transparent 26%),
              radial-gradient(circle at 80% 0%, #e1eee6 0%, transparent 25%),
              linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

.hidden { display: none !important; }

body.locked .app { filter: blur(12px) saturate(0.7); pointer-events: none; user-select: none; }

.gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(247, 242, 236, 0.9);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.gate__glass {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(242,184,198,0.18), transparent 40%),
              radial-gradient(circle at 70% 40%, rgba(183,211,198,0.18), transparent 45%);
  filter: blur(12px);
}

.gate__card {
  position: relative;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  width: min(420px, 92vw);
  box-shadow: 0 22px 55px rgba(28,23,19,0.18);
  text-align: center;
  z-index: 1;
}

.gate__card h1 { margin: 10px 0 8px; font-family: 'Playfair Display', 'Space Grotesk', serif; color: var(--ink); }
.gate__card p { margin: 0 0 14px; color: var(--muted); }
.gate__card .hint { color: var(--muted); display: block; margin-top: 10px; }

#gator { display: none; }

#gate-form { display: grid; gap: 10px; margin-top: 12px; }

#gate-input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(28,23,19,0.08);
}

#gate-error { color: #c25464; min-height: 16px; }

.btn.full { width: 100%; justify-content: center; display: inline-flex; align-items: center; text-align: center; }

.bg-glow {
  position: fixed;
  inset: -25% -15% auto auto;
  width: 42vmax;
  height: 42vmax;
  background: radial-gradient(circle, #f2b8c6bb 0%, transparent 60%);
  filter: blur(45px);
  z-index: 0;
  animation: pulse 12s ease-in-out infinite;
}

.bg-orbs::before,
.bg-orbs::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, #b7d3c6aa 0%, transparent 60%);
  filter: blur(38px);
  animation: float 18s ease-in-out infinite;
}

.bg-orbs::before { width: 30vmax; height: 30vmax; top: 12%; left: -8%; animation-delay: -4s; }
.bg-orbs::after { width: 22vmax; height: 22vmax; bottom: -6%; right: 6%; }

.grain { pointer-events: none; position: fixed; inset: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900" viewBox="0 0 1600 900"><filter id="n" x="0" y="0"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.06"/></svg>'); mix-blend-mode: soft-light; z-index: 1; }

.float-hearts::before,
.float-hearts::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(242,184,198,0.2), transparent 35%),
              radial-gradient(circle at 80% 30%, rgba(183,211,198,0.16), transparent 35%);
  animation: slow-drift 16s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  z-index: 1;
}

.float-hearts::after { animation-delay: -4s; opacity: 0.7; }

.hero { position: relative; z-index: 2; padding: 108px 22px 48px; max-width: 1080px; margin: 0 auto; text-align: center; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--accent); font-weight: 600; letter-spacing: 0.3px; box-shadow: 0 10px 30px rgba(28,23,19,0.06); }

.hero h1 { font-family: 'Playfair Display', 'Space Grotesk', serif; font-size: clamp(46px, 7vw, 76px); margin: 20px 0 10px; line-height: 1.05; color: var(--ink); }

.highlight { background: linear-gradient(90deg, #f2b8c6 0%, #f7dfe6 50%, #b7d3c6 100%); -webkit-background-clip: text; color: transparent; }

.lede { max-width: 720px; margin: 0 auto 26px; color: var(--muted); font-size: 18px; line-height: 1.6; }

.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.btn { padding: 12px 20px; border-radius: 14px; font-weight: 600; border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; transition: transform 200ms ease, box-shadow 220ms ease, background 200ms ease, border 200ms ease, color 200ms ease; text-decoration: none; }

.btn.primary { background: linear-gradient(120deg, #f2b8c6, #f7dfe6); color: #3b2b28; box-shadow: 0 14px 40px rgba(242, 184, 198, 0.35); }

.btn.ghost { border-color: var(--border); background: rgba(255,255,255,0.8); box-shadow: 0 12px 32px rgba(28,23,19,0.06); }

.btn.soft { background: #fff9f4; border: 1px solid rgba(28,23,19,0.08); color: #6d5b55; box-shadow: 0 12px 30px rgba(28,23,19,0.08); }

.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(0,0,0,0.10); }
.btn:active { transform: translateY(-1px) scale(0.99); }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.pill { background: #fff; border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; box-shadow: 0 12px 26px rgba(28,23,19,0.05); }

.scroll-hint { margin-top: 24px; color: var(--muted); display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }

.chevrons span { display: block; width: 18px; height: 18px; border-bottom: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); margin-top: -6px; animation: bounce 2s infinite; }

.chevrons span:nth-child(2) { animation-delay: -0.2s; }
.chevrons span:nth-child(3) { animation-delay: -0.4s; }

.section { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 72px 22px; }

.section-head { margin-bottom: 32px; }

.eyebrow { text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-size: 12px; font-weight: 700; }

.section h2 { margin: 8px 0 12px; font-size: clamp(30px, 5vw, 44px); color: var(--ink); }

.section p { margin: 0; color: var(--muted); line-height: 1.6; }

.cards .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

.card {
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  min-height: 160px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border 220ms ease, box-shadow 220ms ease;
  position: relative;
  overflow: hidden;
}

.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(242, 184, 198, 0.05), rgba(183, 211, 198, 0.05)); opacity: 0; transition: opacity 200ms ease; }

.card h3 { margin-top: 0; color: var(--ink); }

.tilt:hover { transform: translateY(-4px) rotate(-0.4deg); border-color: rgba(242, 184, 198, 0.6); box-shadow: 0 18px 45px rgba(28,23,19,0.18); }
.tilt:hover::after { opacity: 1; }

.rotator { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(242,184,198,0.18), rgba(183,211,198,0.16)); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }

.rotator p { margin: 0; color: var(--ink); font-weight: 600; }

.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

.bento-card { background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }

.bento-card.stretch { grid-column: span 2; }

.bento-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(242, 184, 198, 0.15), transparent 40%), radial-gradient(circle at 80% 0%, rgba(183, 211, 198, 0.15), transparent 40%); opacity: 0.8; }

.bento-card > * { position: relative; z-index: 1; }

.list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.list li { background: rgba(255,255,255,0.8); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: 0 12px 26px rgba(28,23,19,0.05); }
.list li span { font-weight: 700; color: var(--ink); display: block; }
.list li small { color: var(--muted); }

.list.checks li { display: flex; align-items: center; gap: 8px; }
.list.checks li::before { content: '✓'; color: var(--accent); font-weight: 700; }

.journal { display: grid; gap: 10px; }
.journal div { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; background: rgba(255,255,255,0.86); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: 0 12px 24px rgba(28,23,19,0.05); }
.journal span { font-weight: 700; color: var(--accent); }

.gallery .section-head p code { background: rgba(255,255,255,0.8); padding: 2px 6px; border-radius: 6px; }

.carousel { background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; position: relative; padding: 16px; }

.carousel__viewport { position: relative; border-radius: 16px; overflow: hidden; height: min(420px, 70vh); background: linear-gradient(120deg, rgba(242,184,198,0.15), rgba(183,211,198,0.16)); }

.carousel__image { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(1.05); transition: opacity 600ms ease, transform 700ms ease; opacity: 0; transform: scale(1.02); }

.carousel__image.show { opacity: 1; transform: scale(1); }

.carousel__caption { position: absolute; left: 16px; bottom: 14px; background: rgba(255,255,255,0.85); padding: 10px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; box-shadow: 0 12px 30px rgba(28,23,19,0.12); }

.carousel__controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 12px; }

.nav { height: 44px; width: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--border); color: var(--ink); font-size: 20px; cursor: pointer; box-shadow: 0 10px 26px rgba(28,23,19,0.08); transition: transform 150ms ease, box-shadow 150ms ease; }

.nav:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(28,23,19,0.12); }

.dots { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }

.dots button { width: 12px; height: 12px; border-radius: 999px; border: 1px solid rgba(51,41,37,0.18); background: rgba(51,41,37,0.08); cursor: pointer; transition: transform 150ms ease, background 150ms ease, border 150ms ease; }

.dots button.active { background: linear-gradient(120deg, #f2b8c6, #b7d3c6); border-color: transparent; transform: scale(1.1); }

.frame__img { width: 100%; height: 220px; }

.timeline-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

.timeline-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: flex-start; background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }

.dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(120deg, #f2b8c6, #b7d3c6); margin-top: 6px; box-shadow: 0 0 0 6px rgba(242, 184, 198, 0.18); }

.timeline h4 { margin: 0 0 6px; color: var(--ink); }

.quote { background: radial-gradient(circle at 20% 20%, rgba(242, 184, 198, 0.15), transparent 40%), radial-gradient(circle at 70% 40%, rgba(183, 211, 198, 0.14), transparent 42%); border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); }

.marquee { overflow: hidden; position: relative; padding: 16px 0; }

.marquee__track { display: inline-flex; gap: 28px; white-space: nowrap; animation: marquee 16s linear infinite; font-weight: 700; color: var(--ink); }

.marquee__track span { padding: 8px 16px; background: rgba(255,255,255,0.82); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(28,23,19,0.06); }

.note { background: linear-gradient(120deg, rgba(183, 211, 198, 0.18), rgba(242, 184, 198, 0.18)); border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 22px 55px rgba(28,23,19,0.18); text-align: center; overflow: hidden; }

.note .floating-heart { font-size: 34px; animation: beat 1.6s ease-in-out infinite; }

.footer { text-align: center; padding: 36px 16px 64px; color: var(--muted); }

.confetti.heart { position: fixed; top: -20px; width: 16px; height: 16px; background: #f2b8c6; transform: rotate(45deg); left: 50%; border-radius: 2px; pointer-events: none; opacity: 0.9; animation: fall 3.4s ease-in forwards; box-shadow: 0 4px 10px rgba(0,0,0,0.08); z-index: 9; }

.confetti.heart::before,
.confetti.heart::after { content: ''; position: absolute; width: 16px; height: 16px; background: inherit; border-radius: 50%; top: -8px; left: 0; }

.confetti.heart::after { top: 0; left: -8px; }

[data-animate] { opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 600ms ease, transform 600ms ease; }
[data-animate].visible { opacity: 1; transform: translateY(0) scale(1); }

@keyframes pulse { 0% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.06); } 100% { opacity: 0.5; transform: scale(1); } }
@keyframes float { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -18px, 0); } 100% { transform: translate3d(0, 0, 0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); } 40% { transform: rotate(45deg) translateY(6px); } 60% { transform: rotate(45deg) translateY(3px); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes fall { 0% { transform: translateY(0) rotate(15deg) scale(1); opacity: 1; } 60% { transform: translateY(60vh) rotate(25deg) scale(0.96); opacity: 0.95; } 100% { transform: translateY(95vh) rotate(35deg) scale(0.9); opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slow-drift { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(0, -18px, 0); } }

@media (max-width: 900px) { .bento-card.stretch { grid-column: span 1; } }

@media (max-width: 680px) {
  .rotator { flex-direction: column; align-items: flex-start; }
  .timeline-list li { grid-template-columns: auto 1fr; }
  .btn { width: 100%; text-align: center; }
  .carousel__controls { grid-template-columns: 1fr auto; }
  .nav { order: -1; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
