:root {
  --paper: #fffaf4;
  --cream: #f7eee5;
  --peach: #f3cbbb;
  --rose: #d7838f;
  --rose-dark: #a95568;
  --ink: #382832;
  --soft-ink: #765f68;
  --lavender: #ddd1e1;
  --line: rgba(90, 60, 70, .14);
  --shadow: 0 24px 70px rgba(113, 69, 77, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(243, 203, 187, .52), transparent 27rem),
    radial-gradient(circle at 92% 25%, rgba(221, 209, 225, .7), transparent 25rem),
    linear-gradient(140deg, #fffaf4 0%, #f9eee8 52%, #fffdf9 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: radial-gradient(rgba(64, 39, 45, .11) .7px, transparent .7px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  z-index: -1;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.page-shell { position: relative; isolation: isolate; }
.bg-noise, .glow { display: none; }

.site-header, main, .site-footer { width: min(1120px, calc(100% - 2.2rem)); margin-inline: auto; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 0 1rem;
  position: relative;
  z-index: 2;
}
.brand { color: var(--rose-dark); font-size: .92rem; letter-spacing: .12em; text-transform: lowercase; }
.brand span { display: inline-block; margin-left: .2rem; font-size: 1.2rem; animation: heartbeat 2.2s ease-in-out infinite; }
nav { display: flex; gap: 1.25rem; }
nav a { text-decoration: none; color: var(--soft-ink); font: 600 .73rem/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; transition: color .25s ease; }
nav a:hover { color: var(--rose-dark); }

.hero { min-height: 690px; display: grid; grid-template-columns: 1fr .85fr; gap: 3rem; align-items: center; padding: 3rem 0 5rem; }
.eyebrow { color: var(--rose-dark); font: 700 .68rem/1.3 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1rem; }
.hero-copy h1, .section-header h2, .story-copy h2, .final-message h2, .quote p { font-weight: 400; letter-spacing: -.045em; line-height: .94; }
.hero-copy h1 { max-width: 680px; margin: 0; font-size: clamp(3.4rem, 7vw, 7.2rem); }
.hero-copy h1 em { color: var(--rose-dark); font-style: italic; }
.subtext, .story-copy p, .final-message p, .trait-card p { color: var(--soft-ink); font-size: 1.04rem; line-height: 1.8; }
.subtext { max-width: 560px; margin: 1.5rem 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.35rem; font: 700 .78rem/1 Arial, sans-serif; letter-spacing: .06em; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.button:hover { transform: translateY(-4px) rotate(-1deg); }
.button.primary { color: #fff; background: var(--rose-dark); box-shadow: 0 14px 24px rgba(169, 85, 104, .2); }
.button.ghost { border: 1px solid rgba(169, 85, 104, .25); background: rgba(255, 255, 255, .45); }
.note-trigger { margin-top: 1rem; border: 0; color: var(--rose-dark); background: transparent; padding-left: 0; cursor: pointer; }
.note-trigger:hover { box-shadow: none; }
.mini-stats { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2.2rem; }
.mini-stats div { min-width: 125px; padding: .85rem 1rem; border: 1px solid rgba(169, 85, 104, .13); border-radius: 16px; background: rgba(255,255,255,.48); }
.mini-stats strong, .mini-stats span { display: block; }
.mini-stats strong { font-size: 1.2rem; font-weight: 400; }
.mini-stats span { margin-top: .25rem; color: var(--soft-ink); font: .68rem/1.3 Arial, sans-serif; }

.hero-visual { min-height: 600px; position: relative; display: grid; place-items: center; }
.hero-visual::before { content: '♡'; position: absolute; top: 1rem; right: 2rem; color: var(--rose); font-size: 5rem; transform: rotate(12deg); animation: drift 5s ease-in-out infinite; }
.hero-portrait-frame { width: min(350px, 70vw); padding: .75rem .75rem 1.6rem; border-radius: 12px 12px 5px 5px; background: #fff; box-shadow: var(--shadow); transform: rotate(3deg); transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s ease; }
.hero-portrait-frame:hover { transform: rotate(-1deg) translateY(-10px); box-shadow: 0 34px 90px rgba(113, 69, 77, .22); }
.hero-portrait-frame img { width: 100%; height: 410px; object-fit: cover; filter: saturate(.86) sepia(.08); cursor: zoom-in; }
.floating-card { position: absolute; max-width: 220px; padding: .8rem 1rem; border-radius: 12px; color: var(--ink); background: rgba(255, 252, 246, .88); box-shadow: 0 15px 35px rgba(113, 69, 77, .12); font-style: italic; line-height: 1.4; backdrop-filter: blur(8px); animation: drift 4.8s ease-in-out infinite; }
.chat-one { bottom: 2rem; left: 0; transform: rotate(-5deg); }
.chat-two { top: 4rem; right: 0; transform: rotate(5deg); animation-delay: -1.7s; }

.ticker { margin: 0 0 3rem; overflow: hidden; border-block: 1px solid rgba(169,85,104,.14); background: rgba(255,255,255,.28); }
.ticker-track { display: flex; gap: 1.4rem; min-width: max-content; padding: 1rem 0; color: var(--rose-dark); font: 700 .7rem/1 Arial, sans-serif; letter-spacing: .17em; text-transform: uppercase; animation: tickerScroll 20s linear infinite; }
.ticker-track span::after { content: '  ·'; color: var(--peach); margin-left: 1.4rem; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

.signature, .voice, .gallery, .story, .quote, .final-message, .hook-panel { padding: 4rem 0; }
.section-header { margin-bottom: 2rem; }
.section-header h2, .story-copy h2, .final-message h2 { max-width: 760px; margin: 0; font-size: clamp(2.7rem, 5vw, 5.4rem); }
.trait-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trait-card, .chat-collection, .hook-card, .mini-card { border: 1px solid rgba(169,85,104,.14); background: rgba(255,255,255,.5); box-shadow: 0 15px 35px rgba(113,69,77,.06); }
.trait-card { padding: 1.4rem; border-radius: 24px; transition: transform .35s ease, background .35s ease; }
.trait-card:hover { transform: translateY(-8px) rotate(-1deg); background: rgba(255,255,255,.8); }
.trait-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: 1.2rem; border-radius: 50%; color: #fff; background: var(--rose); font: .75rem Arial, sans-serif; }
.trait-card h3 { margin: 0 0 .5rem; font-size: 1.32rem; font-weight: 400; }
.trait-card p { margin: 0; font-size: .95rem; }

.chat-collection { display: grid; gap: 1.2rem; padding: 1.4rem; border-radius: 28px; background: rgba(255,255,255,.36); }
.bubble-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.right-row { justify-content: flex-end; }
.bubble { max-width: 500px; padding: .95rem 1.1rem; border-radius: 18px 18px 18px 5px; background: var(--paper); box-shadow: 0 7px 15px rgba(113,69,77,.07); font-size: .98rem; line-height: 1.55; transition: transform .25s ease; }
.bubble:hover { transform: scale(1.03) rotate(-1deg); }
.bubble.accent { border-radius: 18px 18px 5px 18px; background: var(--lavender); }

.hook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hook-card { cursor: pointer; padding: 1.3rem; border-radius: 22px; text-align: left; color: var(--ink); transition: transform .35s ease, box-shadow .35s ease, background .35s ease; }
.hook-card:hover, .hook-card.is-open { transform: translateY(-8px); box-shadow: 0 24px 45px rgba(113,69,77,.12); background: #fff; }
.hook-tag { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 1rem; border-radius: 50%; color: #fff; background: var(--rose); font: .75rem Arial, sans-serif; }
.hook-card strong, .hook-card small { display: block; }
.hook-card strong { font-size: 1.08rem; font-weight: 400; }
.hook-card small { margin-top: .7rem; color: var(--soft-ink); font-style: italic; }

.image-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1rem; }
.image-card { margin: 0; overflow: hidden; border: 8px solid #fff; background: #fff; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .45s ease, box-shadow .45s ease; }
.image-card:nth-child(1) { transform: rotate(-2deg); }
.image-card:nth-child(2) { transform: rotate(2deg); }
.image-card:nth-child(3) { transform: rotate(-1deg); }
.image-card:nth-child(4) { transform: rotate(1deg); }
.image-card:hover { z-index: 1; transform: rotate(0) scale(1.035); box-shadow: 0 30px 75px rgba(113,69,77,.2); }
.image-card img { width: 100%; height: 260px; object-fit: cover; }
.image-card.tall { grid-row: span 2; }
.image-card.tall img { height: 540px; }
.image-card.wide { grid-column: span 2; }

.story { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.story-copy p { max-width: 650px; }
.story-panel { display: grid; gap: .9rem; }
.mini-card { padding: 1.2rem; border-radius: 20px; transition: transform .35s ease; }
.mini-card:hover { transform: translateX(10px); }
.mini-card span { color: var(--rose-dark); font: .7rem Arial, sans-serif; }
.mini-card h3 { margin: .65rem 0 0; font-size: 1.3rem; font-weight: 400; }
.quote { text-align: center; }
.quote p { max-width: 850px; margin: 0 auto; color: var(--rose-dark); font-size: clamp(2.5rem, 5vw, 5.5rem); font-style: italic; }
.final-message { padding-bottom: 6rem; text-align: center; }
.final-message h2 { margin-inline: auto; }
.final-message p { max-width: 700px; margin: 1.3rem auto 2rem; }
.site-footer { padding-bottom: 2.5rem; text-align: center; color: var(--soft-ink); font: .75rem Arial, sans-serif; letter-spacing: .1em; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.heart-pop { position: fixed; z-index: 10; pointer-events: none; color: var(--rose); font-size: 1.5rem; animation: heartPop 1.2s ease forwards; }
.lightbox { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1.5rem; background: rgba(44, 27, 35, .78); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 88vh; max-width: min(900px, 94vw); border: 8px solid white; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.lightbox button { position: fixed; top: 1.2rem; right: 1.2rem; border: 0; color: #fff; background: transparent; font-size: 2rem; cursor: pointer; }
.secret-note { max-width: 580px; margin: 1.5rem auto 0; padding: 0 1.3rem; max-height: 0; overflow: hidden; opacity: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow); text-align: left; transition: max-height .7s ease, opacity .5s ease, padding .7s ease; }
.secret-note.is-open { max-height: 420px; padding-block: 1.3rem; opacity: 1; overflow-y: auto; }
.secret-note p { margin: 0; color: var(--soft-ink); line-height: 1.7; }
.secret-note p + p { margin-top: 1rem; }

@keyframes heartbeat { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.25); } 18% { transform: scale(1); } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes heartPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -150px) scale(1.4) rotate(20deg); } }

@media (max-width: 900px) { .hero, .story { grid-template-columns: 1fr; } .hero { padding-top: 2rem; } .hero-visual { min-height: 560px; } .trait-grid, .hook-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  body { overflow-x: hidden; }
  .site-header { flex-direction: column; gap: 1rem; }
  nav { justify-content: center; flex-wrap: wrap; gap: .7rem 1rem; }
  .hero { min-height: auto; padding-bottom: 3rem; }
  .hero-copy h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-visual { min-height: auto; display: flex; flex-direction: column; gap: .8rem; }
  .hero-portrait-frame { width: min(300px, 78vw); transform: rotate(2deg); }
  .hero-portrait-frame img { height: 365px; }
  .floating-card { position: static; max-width: 100%; animation: none; }
  .trait-grid, .hook-grid, .image-grid { grid-template-columns: 1fr; }
  .image-card.tall, .image-card.wide { grid-row: auto; grid-column: auto; }
  .image-card.tall img, .image-card img { height: 330px; }
  .bubble-row { flex-direction: column; }
  .right-row { align-items: flex-end; }
  .secret-note.is-open { max-height: 55vh; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
