/* Career Bloom — Advent Calendar 2026
   Built on the Career Bloom Visual Design Brief (v1, Sept 2026):
   Raspberry/Crimson/Coral/Apricot palette, DM Sans + Lora italic, pill buttons,
   rounded cards, alternating section backgrounds, always-light palette.
   Festive extras (pine green + candle gold) are used sparingly, as ornaments only. */

:root {
  color-scheme: light only;
  --raspberry: #BD135A;
  --crimson: #D01640;
  --coral: #FF5A5F;
  --apricot: #FFB38F;
  --peach: #FFCDA5;
  --salmon: #F48874;
  --cream: #FDF7F1;
  --white: #FFFFFF;
  --ink: #161014;
  --ink-soft: #4A3C40;
  --pine: #2F5D50;
  --pine-light: #4C8B73;
  --gold: #F6C453;
  --grad: linear-gradient(120deg, #BD135A 0%, #D01640 35%, #FF5A5F 72%, #FFB38F 100%);
  --grad-deep: linear-gradient(120deg, #BD135A 0%, #D01640 100%);
  --grad-soft: linear-gradient(160deg, #FFCDA5 0%, #FDF7F1 100%);
  --grad-photo: linear-gradient(150deg, #F48874 0%, #FFB38F 100%);
  --shadow-btn: 0 10px 24px -8px rgba(189, 19, 90, .55);
  --shadow-card: 0 18px 40px -18px rgba(22, 16, 20, .28);
  --r-s: 16px; --r-m: 22px; --r-l: 28px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink-soft); background: var(--cream); overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h1, h2, h3, .lede, .hero-sub, .b-say, .tq-teaser { text-wrap: balance; }
h3 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 22px; }
p { margin: 0 0 1em; }
a { color: var(--raspberry); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--raspberry); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--raspberry); margin: 0 0 14px; }
.eyebrow.on-color { color: rgba(255,255,255,.92); }
.tiny { font-size: 13px; }

/* ---------- Buttons: the only button shape is the pill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 17px 34px; text-decoration: none;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 15px;
  letter-spacing: .09em; text-transform: uppercase; text-align: center; line-height: 1.25;
  box-shadow: var(--shadow-btn); transition: transform .2s ease, box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(189, 19, 90, .7); }
.btn:hover::after { transform: translateX(120%); transition: transform .8s ease; }
.btn:active { transform: translateY(0); }
.btn-white { background: #fff; color: var(--raspberry); box-shadow: 0 10px 24px -10px rgba(22,16,20,.4); }
.btn-white::after { display: none; }
.btn-white-ghost { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-small { padding: 12px 22px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-quiet { background: #fff; color: var(--raspberry); box-shadow: inset 0 0 0 2px rgba(189,19,90,.25); }
.btn-quiet::after { display: none; }

/* ---------- Snow, confetti ---------- */
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }
main, .topbar, .foot { position: relative; z-index: 2; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; max-width: 1160px; margin: 0 auto;
}
.brand img { height: 66px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(120,40,30,.18)); }
.brand-text { font-weight: 700; color: var(--raspberry); font-size: 20px; }
.notebook-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.85); color: var(--raspberry); padding: 10px 18px;
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 18px -8px rgba(22,16,20,.35); backdrop-filter: blur(6px);
}
.notebook-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-soft); padding: 150px 0 110px; text-align: center; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; }
.hero::before { width: 420px; height: 420px; background: var(--apricot); left: -120px; top: 40px; }
.hero::after { width: 380px; height: 380px; background: #FF9E9B; right: -100px; bottom: -80px; opacity: .35; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { font-size: clamp(34px, 6.2vw, 58px); letter-spacing: -.02em; }
.hero .h1-soft { display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero-sub { font-family: var(--serif); font-size: clamp(20px, 3vw, 28px); color: var(--ink); margin: 18px 0 14px; }
.lede { font-size: 19px; font-weight: 500; max-width: 600px; margin: 0 auto 28px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-status { font-size: 15px; margin: 0; color: var(--ink-soft); min-height: 1.5em; }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 50px; z-index: 3; }

.lights { position: absolute; top: 0; left: 0; right: 0; height: 64px; z-index: 5; pointer-events: none; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 2 Q60 38 120 2' fill='none' stroke='%234A3C40' stroke-width='1.6' opacity='.55'/%3E%3C/svg%3E") repeat-x top left; }
.bulb { position: absolute; width: 14px; height: 20px; border-radius: 50% 50% 55% 55%; transform: translateX(-50%); animation: twinkle 2.6s ease-in-out infinite; }
.bulb::before { content: ""; position: absolute; top: -5px; left: 3px; width: 8px; height: 6px; background: #4A3C40; border-radius: 2px 2px 0 0; }
@keyframes twinkle { 0%, 100% { opacity: 1; filter: drop-shadow(0 0 7px currentColor); } 50% { opacity: .45; filter: drop-shadow(0 0 2px currentColor); } }

/* ---------- The gingerbread house ---------- */
.calendar-sec { padding: 56px 0 100px; margin-top: -2px; }
.cal-head { position: relative; z-index: 2; text-align: center; max-width: 560px; margin: 0 auto 44px; }
.cal-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; margin: 0; }
.progress { max-width: 340px; margin: 18px auto 0; }
.progress-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(189,19,90,.18); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.progress p { font-size: 14px; margin: 8px 0 0; color: var(--ink-soft); font-weight: 500; }
.board-wrap { position: relative; }
.board-foot { text-align: center; margin: 34px auto 0; font-size: 15px; color: var(--ink-soft); max-width: 460px; text-wrap: balance; }

:root {
  --drip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='%23fff'%3E%3Crect width='48' height='10'/%3E%3Ccircle cx='8' cy='11' r='6.500'/%3E%3Ccircle cx='24' cy='13' r='9'/%3E%3Ccircle cx='40' cy='11' r='5.500'/%3E%3C/g%3E%3C/svg%3E");
  --wire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 2 Q60 38 120 2' fill='none' stroke='%23FFF6E6' stroke-width='1.8' opacity='.8'/%3E%3C/svg%3E");
}
.house { position: relative; }
.gable { position: relative; z-index: 1; line-height: 0; }
.gsvg { display: block; width: 100%; height: auto; overflow: visible; }
.smoke { position: absolute; left: 77.5%; top: 25%; width: 0; height: 0; }
.puff { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.9); opacity: 0; animation: puff 4.8s ease-out infinite; }
.puff:nth-child(2) { animation-delay: 1.6s; } .puff:nth-child(3) { animation-delay: 3.2s; }
@keyframes puff { 0% { opacity: 0; transform: translate(-50%, 0) scale(.5); } 15% { opacity: .95; } 100% { opacity: 0; transform: translate(calc(-50% + 26px), -84px) scale(1.9); } }

.walls {
  position: relative; z-index: 2; margin: -2px 3% 0; border-radius: 0 0 22px 22px;
  padding: clamp(46px, 5.4vw, 64px) clamp(30px, 5vw, 62px) clamp(40px, 5vw, 58px);
  background:
    radial-gradient(rgba(70,32,12,.26) 1.6px, transparent 2.3px) 0 0 / 26px 26px,
    radial-gradient(rgba(70,32,12,.16) 1.2px, transparent 1.9px) 13px 13px / 26px 26px,
    radial-gradient(rgba(255,226,180,.18) 1px, transparent 1.6px) 6px 19px / 26px 26px,
    linear-gradient(180deg, #A8683A, #94592D);
  box-shadow: 0 34px 50px -26px rgba(60,25,10,.65);
}
.walls::before { /* icing ledge under the roof */ content: ""; position: absolute; left: -1.4%; right: -1.4%; top: -6px; height: 24px; z-index: 3; background: var(--drip) repeat-x top left / 48px 24px; filter: drop-shadow(0 3px 2px rgba(60,28,10,.4)); }
.walls::after { /* piped-icing dots down the corners and along the base */ content: ""; position: absolute; inset: 30px 14px 14px; pointer-events: none; border: 0 dotted #fff; border-left-width: 5px; border-right-width: 5px; border-bottom-width: 5px; border-radius: 0 0 14px 14px; }
.garland { position: absolute; top: 14px; left: 14px; right: 14px; height: 56px; pointer-events: none; z-index: 4; background: var(--wire) repeat-x top left; }
.garland .bulb { top: 0; }

/* snowy ground, little trees and sweets */
.ground { position: relative; z-index: 3; height: clamp(40px, 6vw, 70px); margin: -16px -2% 0; background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-shadow: 0 6px 0 #EADFD3, 0 18px 26px -12px rgba(120,80,50,.45); }
.ground img { display: block; width: auto; max-width: none; filter: drop-shadow(0 4px 4px rgba(60,25,10,.28)); }
.ground .tree { position: absolute; height: clamp(92px, 17vw, 200px); bottom: 30%; } .ground .tl { left: -1%; } .ground .tr { right: -1%; }
.ground .sweets { position: absolute; right: calc(clamp(92px, 17vw, 200px) * 0.735 + 1.5%); bottom: 36%; display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 12px); }
.ground .cane { height: clamp(56px, 9vw, 104px); } .ground .cocoa { height: clamp(52px, 8.5vw, 98px); }

/* ---------- The doors (gingerbread panels that open onto lit windows) ---------- */
.doors {
  position: relative; z-index: 2; display: grid; gap: clamp(18px, 2.8vw, 32px) clamp(14px, 2.4vw, 28px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.door {
  --arch: 42% 42% 9px 9px / 26% 26% 9px 9px;
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0;
  background: none; perspective: 700px; border-radius: var(--arch); -webkit-tap-highlight-color: transparent;
}
.door::before { /* white piped-icing frame and sill */
  content: ""; position: absolute; inset: -4px; border-radius: var(--arch); background: #fff; z-index: -1;
  box-shadow: 0 5px 0 #D9C3A8, 0 12px 14px -6px rgba(40,16,4,.6);
}
.door-hole { /* the warm lit window behind the door */
  position: absolute; inset: 0; border-radius: var(--arch); display: grid; place-items: center; align-content: center; gap: 6px; isolation: isolate;
  background: radial-gradient(circle at 50% 58%, #FFF3C7 0%, #FFD58A 38%, #F29A5A 100%);
  box-shadow: inset 0 6px 14px rgba(120,40,20,.4); overflow: hidden;
}
.door-hole::before { content: ""; position: absolute; inset: 0; opacity: .6;
  background: linear-gradient(#fff, #fff) center / 3px 100% no-repeat, linear-gradient(#fff, #fff) center 40% / 100% 3px no-repeat; }
.door-hole > * { position: relative; z-index: 1; }
.door-hole svg { width: 38%; max-width: 44px; fill: none; stroke: var(--raspberry); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.door-hole b { font-family: var(--serif); font-style: italic; font-weight: 700; color: #7A3A12; font-size: clamp(13px, 1.6vw, 18px); }
.door-leaf { /* the iced gingerbread door */
  position: absolute; inset: 0; border-radius: var(--arch); transform-origin: left center;
  transition: transform .9s cubic-bezier(.3,.7,.2,1), box-shadow .3s ease;
  box-shadow: 0 8px 16px -6px rgba(22,16,20,.5); backface-visibility: hidden; overflow: hidden;
  background: linear-gradient(160deg, #C98B4D, #B3733B);
}
.door-leaf::after { /* dotted icing border */ content: ""; position: absolute; inset: 7px; border-radius: var(--arch); border: 2.5px dotted rgba(255,255,255,.95); pointer-events: none; }
.door .paper { position: absolute; inset: 0;
  background: radial-gradient(rgba(70,32,12,.26) 1.4px, transparent 2px) 0 0 / 18px 18px, radial-gradient(rgba(70,32,12,.15) 1px, transparent 1.6px) 9px 9px / 18px 18px; }
.door .paper::before, .door .paper::after { /* two gumdrop candies */
  content: ""; position: absolute; bottom: 14%; width: 15%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9) 0 12%, transparent 13%), var(--g1, #D9304F);
  box-shadow: 0 2px 3px rgba(0,0,0,.35), inset 0 -3px 0 rgba(0,0,0,.18);
}
.door .paper::before { left: 22%; }
.door .paper::after { right: 22%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9) 0 12%, transparent 13%), var(--g2, #C9CED6); }
.p0 { --g1: #D9304F; --g2: #C9CED6; } .p1 { --g1: #3FB58B; --g2: #FF8FB1; } .p2 { --g1: #FF8FB1; --g2: #C9CED6; } .p3 { --g1: #F6C453; --g2: #D9304F; }
.door .rib-v, .door .rib-h, .door .bow { display: none; }
.door .tag { /* the number, piped in white icing */
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
  background: none; color: #fff; font-family: var(--font); font-style: normal; font-weight: 800; letter-spacing: .01em;
  font-size: clamp(22px, 3.6vw, 40px); line-height: 1; text-shadow: 0 2px 0 rgba(90,45,15,.6), 0 0 2px rgba(90,45,15,.5);
}
.door[data-state="locked"] .door-leaf { filter: saturate(.75) brightness(.96); }
.door[data-state="locked"] .tag::after { content: ""; position: absolute; left: 50%; top: 118%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: rgba(60,28,10,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 10px no-repeat; }
.door[data-state="ready"], .door[data-state="today"] { cursor: pointer; }
.door[data-state="ready"]:hover .door-leaf, .door[data-state="today"]:hover .door-leaf { transform: rotateY(-22deg); }
.door[data-state="today"] { animation: glow 2.4s ease-in-out infinite; }
.door[data-state="today"]::after { content: "Today"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(22,16,20,.3); z-index: 3; }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(246,196,83,0)); transform: scale(1); } 50% { filter: drop-shadow(0 0 14px rgba(246,196,83,.95)); transform: scale(1.035); } }
.door.is-open .door-leaf, .door[data-state="open"] .door-leaf { transform: rotateY(-118deg); }
.door[data-state="open"]:hover .door-leaf { transform: rotateY(-100deg); }
.door[data-state="open"] { cursor: pointer; }
.door[data-state="locked"].nope { animation: nope .45s ease; }
@keyframes nope { 20%, 60% { transform: translateX(-5px) rotate(-1.5deg); } 40%, 80% { transform: translateX(5px) rotate(1.5deg); } }
.door .wish { position: absolute; inset: auto 0 6%; text-align: center; font-size: 9px; }
@media (prefers-reduced-motion: reduce) { .puff { animation: none; opacity: 0; } }

/* ---------- How it works ---------- */
.how { background: #fff; padding: 88px 0; text-align: center; }
.how h2 { max-width: 640px; margin: 0 auto 44px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.card { background: var(--cream); border-radius: var(--r-m); padding: 30px 28px; box-shadow: 0 1px 0 rgba(22,16,20,.04); }
.how .card h3 { margin: 16px 0 8px; }
.how .card p { margin: 0; font-size: 16px; }
.how-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; }
.how-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Theresa ---------- */
.theresa { background: var(--grad-soft); padding: 88px 0; }
.theresa-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.t-card { aspect-ratio: 1 / 1; border-radius: var(--r-l); background: var(--grad-photo); display: grid; place-content: center; text-align: center; padding: 28px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.t-card::before { content: ""; position: absolute; inset: 14px; border-radius: 20px; border: 2px dashed rgba(255,255,255,.65); }
.t-sig { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(32px, 5vw, 48px); color: #fff; line-height: 1.1; margin: 0 0 10px; text-shadow: 0 3px 14px rgba(120,20,40,.3); }
.t-role { color: #fff; font-weight: 500; margin: 0; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.theresa h2 { margin-bottom: 18px; }

/* ---------- Closing panel ---------- */
.closing { background: var(--cream); padding: 88px 0; }
.cta-panel { background: var(--grad); color: #fff; border-radius: var(--r-l); padding: 64px 28px; text-align: center; box-shadow: 0 40px 70px -34px rgba(189,19,90,.7); }
.cta-panel h2 { color: #fff; font-size: clamp(28px, 4.2vw, 44px); max-width: 700px; margin: 0 auto 14px; }
.cta-panel p { max-width: 580px; margin: 0 auto 28px; font-size: 18px; font-weight: 500; color: rgba(255,255,255,.96); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.foot { background: #fff; padding: 34px 0 44px; text-align: center; font-size: 14px; }
.foot p { margin: 0 0 4px; }

/* ---------- Modal sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(22,16,20,.62); backdrop-filter: blur(6px); animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; width: min(760px, 100%); max-height: min(92vh, 100%); display: flex; flex-direction: column;
  background: var(--cream); border-radius: var(--r-l); box-shadow: 0 50px 100px -30px rgba(0,0,0,.6);
  animation: sheetIn .6s cubic-bezier(.2,.9,.25,1.05); overflow: hidden;
}
.sheet.narrow { width: min(620px, 100%); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 10; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 6px 16px -6px rgba(22,16,20,.4); display: grid; place-items: center; }
.sheet-close svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-head { padding: 46px 40px 26px; background: var(--grad-soft); text-align: center; position: relative; }
.sheet-head .door-badge { display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 30px; box-shadow: var(--shadow-btn); margin-bottom: 14px; }
.sheet-head h2 { font-size: clamp(24px, 3.6vw, 34px); max-width: 560px; margin: 0 auto; }
.sheet-kind { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); }
.sheet-body { padding: 28px 40px 44px; }
.sheet-body > * { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.sheet-body > .no-anim, .sheet-body .no-anim { animation: none; }
.sheet-body h3.b-h { font-family: var(--font); font-style: normal; font-size: clamp(22px, 3vw, 28px); margin: 6px 0 16px; text-align: center; }
.b-p { font-size: 17px; }
.b-lede { font-size: 19px; font-weight: 500; }
.b-say { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(21px, 3vw, 26px); line-height: 1.4; color: var(--ink); text-align: center; margin: 22px 0; padding: 0 6px; }
.b-say::before, .b-say::after { content: none; }
.b-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.b-list li { position: relative; padding-left: 36px; }
.b-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--raspberry) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.b-note { font-size: 13px; text-align: center; color: var(--ink-soft); opacity: .85; margin-top: 4px; }
.sheet-body strong { color: var(--ink); }

/* softlink & CTA */
.softlink { text-align: center; margin: 26px 0 0; font-size: 15px; }
.softlink a { font-weight: 700; }
.cta-block { text-align: center; margin: 30px 0 4px; padding: 28px 22px; border-radius: var(--r-m); background: #fff; box-shadow: var(--shadow-card); }
.cta-block .cta-lead { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px; color: var(--ink); margin: 0 0 16px; }
.cta-block.big { background: var(--grad); padding: 38px 24px; }
.cta-block.big .cta-lead { color: #fff; }
.cta-after { font-size: 15px; margin: 16px auto 0; max-width: 460px; }
.cta-block.big .cta-after { color: rgba(255,255,255,.96); }
.cta-block.soft { background: transparent; box-shadow: none; padding: 8px 0 0; }
.cta-block.soft .cta-lead { font-size: 19px; }

/* video / audio */
.media { border-radius: var(--r-m); overflow: hidden; background: var(--grad-photo); box-shadow: var(--shadow-card); margin: 8px 0 22px; }
.media .frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.media iframe, .media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.note-card { background: #fff; border-radius: var(--r-m); padding: 30px 30px 26px; box-shadow: var(--shadow-card); position: relative; margin: 8px 0 22px; }
.note-card::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 5px; border-radius: 0 0 6px 6px; background: var(--grad); }
.note-from { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-photo); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 700; color: #fff; font-size: 22px; flex: none; }
.note-from b { display: block; color: var(--ink); line-height: 1.2; }
.note-from small { color: var(--ink-soft); font-size: 13px; letter-spacing: .04em; }
.note-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px; color: var(--ink); line-height: 1.3; margin: 0 0 14px; }
.note-card p:last-child { margin-bottom: 0; }
.readalong { margin-top: 14px; }
.readalong summary { cursor: pointer; font-weight: 700; color: var(--raspberry); font-size: 15px; }
.audio-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--r-m); padding: 18px 22px; box-shadow: var(--shadow-card); margin: 8px 0 22px; }
.audio-card audio { width: 100%; }
.audio-card b { color: var(--ink); display: block; }

/* scenes */
.scene { margin: 4px 0 22px; border-radius: var(--r-m); overflow: hidden; background: var(--grad-soft); position: relative; }
.scene svg { display: block; width: 100%; height: auto; }
.scene .cap { text-align: center; font-size: 14px; padding: 0 16px 14px; margin: 0; font-style: italic; }
.scene img { display: block; width: 100%; }

/* gates (unwrap) */
.gate { text-align: center; padding: 10px 0 30px; overflow-x: clip; }
.gate-stage { position: relative; width: min(340px, 82%); margin: 0 auto 10px; cursor: pointer; background: none; border: 0; padding: 0; display: block; }
.gate-stage svg { width: 100%; height: auto; overflow: visible; }
.gate .gate-hint { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--raspberry); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); opacity: .7; } }
.gate .lid { transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.3,.8,.2,1.3), opacity .6s ease .3s; transform-box: fill-box; }
.gate.opening .lid { transform: translateY(-120px) rotate(-12deg); opacity: 0; }
.gate .glow { opacity: 0; transition: opacity .6s ease; }
.gate.opening .glow { opacity: 1; }
.gate.opening .gate-hint { display: none; }
.gate-stage:hover .lid { transform: translateY(-6px); }
.gate.opening .gate-stage:hover .lid { transform: translateY(-120px) rotate(-12deg); }
.gate .flap { transform-origin: 50% 0; transform-box: fill-box; transition: transform .8s ease; }
.gate.opening .flap { transform: rotateX(180deg) scaleY(-1); }
.gate .tree-star { transform-origin: center; transform-box: fill-box; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gate.opening .gift-pop { animation: pop .7s ease both; transform-origin: center bottom; transform-box: fill-box; }
@keyframes pop { 40% { transform: scale(1.18); } }

/* inputs */
.field { margin: 18px 0; }
.field label, .prompt { display: block; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
textarea, input[type="text"], input[type="email"] {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid rgba(189,19,90,.14);
  border-radius: var(--r-s); padding: 14px 16px; resize: vertical; transition: border-color .2s, box-shadow .2s;
}
textarea:focus, input[type="text"]:focus, input[type="email"]:focus { outline: none; border-color: var(--raspberry); box-shadow: 0 0 0 4px rgba(189,19,90,.12); }
.saved { font-size: 12px; color: var(--raspberry); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .3s; height: 16px; margin-top: 6px; }
.saved.show { opacity: 1; }
.options { display: grid; gap: 12px; margin: 14px 0; }
.opt { text-align: left; border: 2px solid rgba(189,19,90,.16); background: #fff; color: var(--ink); border-radius: var(--r-s); padding: 15px 18px; font-weight: 500; line-height: 1.45; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.opt:hover { transform: translateY(-2px); border-color: var(--raspberry); box-shadow: 0 10px 20px -12px rgba(189,19,90,.5); }
.opt.chosen { background: var(--raspberry); color: #fff; border-color: var(--raspberry); }
.opt.dim { opacity: .45; transform: none; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0; }
.pill { border-radius: 999px; padding: 11px 20px; border: 2px solid rgba(189,19,90,.22); background: #fff; font-weight: 700; color: var(--raspberry); font-size: 15px; transition: all .2s; }
.pill:hover { border-color: var(--raspberry); transform: translateY(-2px); }
.pill.chosen { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-btn); }
.after { background: #fff; border-radius: var(--r-m); padding: 22px 24px; margin: 18px 0; box-shadow: var(--shadow-card); border-left: 6px solid var(--raspberry); animation: rise .6s both; }
.after p:last-child { margin: 0; }
.reveal-wrap { text-align: center; margin: 18px 0; }
.reveal-body { margin-top: 10px; animation: rise .6s both; }
.fill-line { font-size: 19px; line-height: 2.1; color: var(--ink); margin: 6px 0; }
.fill-line input { display: inline-block; width: min(260px, 70%); border: 0; border-bottom: 2px solid var(--raspberry); border-radius: 0; background: rgba(255,205,165,.3); padding: 2px 8px; font-family: var(--serif); font-style: italic; font-size: 19px; text-align: center; vertical-align: baseline; }

/* wordpick -> chip bounce */
.chip-wide { flex: 1 1 140px; }

/* blindspot */
.blind { background: #fff; border-radius: var(--r-m); padding: 22px; box-shadow: var(--shadow-card); margin: 18px 0; }
.blind-center { text-align: center; padding: 18px; border-radius: var(--r-s); background: var(--grad-deep); color: #fff; max-width: 340px; margin: 0 auto 8px; }
.blind-center b { display: block; font-size: 22px; }
.blind-center span { opacity: .9; font-size: 14px; }
.blind-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 18px; }
.blind-skills i { font-style: normal; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--peach); color: var(--ink); }
.blind-hint { text-align: center; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--raspberry); margin: 4px 0 14px; }
.blind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.flip { perspective: 800px; aspect-ratio: 1 / 1.05; border: 0; background: none; padding: 0; }
.flip-in { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.3,.8,.2,1); transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.flip .f, .flip .b { position: absolute; inset: 0; border-radius: var(--r-s); backface-visibility: hidden; display: grid; place-items: center; padding: 12px; text-align: center; }
.flip .f { background: var(--grad); color: #fff; font-family: var(--serif); font-style: italic; font-size: 38px; font-weight: 700; box-shadow: var(--shadow-btn); }
.flip .b { background: var(--cream); transform: rotateY(180deg); align-content: center; gap: 4px; box-shadow: inset 0 0 0 2px var(--peach); }
.flip .b b { color: var(--ink); font-size: 16px; line-height: 1.2; }
.flip .b small { color: var(--raspberry); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.flip .b span { font-size: 13px; line-height: 1.35; }

/* puzzle */
.puzzle-stage { display: flex; justify-content: center; margin: 24px auto; max-width: 560px; filter: drop-shadow(0 14px 20px rgba(189,19,90,.25)); }
.piece { position: relative; border: 0; background: none; padding: 0; width: 37.1%; margin-left: -5.34%; flex: none; transition: transform .6s cubic-bezier(.3,.9,.3,1.2), filter .3s; }
.piece:first-child { margin-left: 0; }
.piece svg { display: block; width: 100%; height: auto; overflow: visible; }
.piece .txt { position: absolute; inset: 14% 22% 14% 18%; display: grid; place-items: center; text-align: center; color: #fff; font-weight: 700; font-size: clamp(12px, 2.4vw, 16px); line-height: 1.2; }
.puzzle-stage.apart .piece:nth-child(1) { transform: translateX(-10px) rotate(-4deg); }
.puzzle-stage.apart .piece:nth-child(2) { transform: translateY(8px) rotate(2deg); }
.puzzle-stage.apart .piece:nth-child(3) { transform: translateX(10px) rotate(4deg); }
.puzzle-stage.apart .piece:hover { transform: translateY(-6px) scale(1.04); }
.puzzle-stage.done .piece { transform: none; pointer-events: none; }
.puzzle-stage.done .piece:not(.picked) { filter: saturate(.5) opacity(.72); }
.puzzle-stage.done .piece.picked { animation: snap .8s ease; }
@keyframes snap { 40% { transform: scale(1.08); } }

/* tapquote */
.tq { text-align: center; margin: 14px 0; }
.tq-teaser { font-size: clamp(22px, 3.2vw, 28px); font-weight: 700; color: var(--ink); margin-bottom: 20px; line-height: 1.25; }
.tq-card { background: var(--grad); color: #fff; border-radius: var(--r-m); padding: 34px 28px; margin-top: 8px; box-shadow: var(--shadow-btn); position: relative; animation: rise .8s both; }
.tq-card blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vw, 25px); line-height: 1.45; position: relative; }
.tq-card blockquote::before { content: "“"; display: block; font-size: 70px; line-height: .6; opacity: .45; }
.tq-card cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; letter-spacing: .06em; }
.tq-card cite small { display: block; font-weight: 500; opacity: .92; letter-spacing: 0; }

/* visualize */
.viz-start { text-align: center; margin: 14px 0 20px; }
.viz-lines { text-align: center; }
.viz-lines p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vw, 24px); color: var(--ink); opacity: 0; transform: translateY(10px); transition: opacity 1.6s ease, transform 1.6s ease; margin: 0 0 14px; }
.viz-lines p.on { opacity: 1; transform: none; }

/* sorter */
.sorter { background: #fff; border-radius: var(--r-m); padding: 24px; box-shadow: var(--shadow-card); margin: 18px 0; text-align: center; }
.sorter-count { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--raspberry); }
.sort-card { margin: 16px auto; max-width: 380px; min-height: 120px; display: grid; place-items: center; background: var(--grad-soft); border-radius: var(--r-m); padding: 24px; font-size: 22px; font-weight: 700; color: var(--ink); box-shadow: inset 0 0 0 2px var(--peach); animation: cardIn .4s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateX(26px) rotate(3deg); } }
.sort-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px; margin: 0 auto; }
.sort-btns button { border-radius: 999px; border: 0; padding: 14px 10px; font-weight: 700; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; }
.sort-yes { background: var(--grad); color: #fff; box-shadow: var(--shadow-btn); }
.sort-no { background: #fff; color: var(--ink-soft); box-shadow: inset 0 0 0 2px rgba(74,60,64,.3); }
.sort-result { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; margin-top: 8px; }
.sort-col { border-radius: var(--r-s); padding: 16px 18px; }
.sort-col.yes { background: var(--grad-soft); box-shadow: inset 0 0 0 2px var(--peach); }
.sort-col.no { background: #f4efea; }
.sort-col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--raspberry); margin-bottom: 8px; }
.sort-col.no h4 { color: var(--ink-soft); }
.sort-col ul { margin: 0; padding-left: 18px; font-size: 15px; }
.sort-col li:empty, .sort-col .none { opacity: .7; font-style: italic; }

/* titlefade */
.biz { max-width: 420px; margin: 18px auto; background: #fff; border-radius: 14px; padding: 26px 22px; text-align: center; box-shadow: 0 24px 40px -22px rgba(22,16,20,.5), 0 0 0 1px rgba(22,16,20,.05); position: relative; min-height: 176px; display: grid; place-items: center; align-content: center; transform: rotate(-1.5deg); }
.biz .nm { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.biz .ttl { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: clamp(15px, 3.6vw, 19px); color: var(--raspberry); transition: all 1.2s ease; }
.biz.gone .ttl { opacity: 0; filter: blur(8px); letter-spacing: .5em; transform: scale(1.2); }
.biz .skills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; position: absolute; inset: 0; align-content: center; padding: 18px; pointer-events: none; }
.biz .skills i { font-style: normal; font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: var(--grad); color: #fff; opacity: 0; transform: translateY(14px) scale(.8); transition: all .7s cubic-bezier(.3,.9,.3,1.3); }
.biz.gone .skills i { opacity: 1; transform: none; }
.biz.gone .skills i:nth-child(2) { transition-delay: .2s; } .biz.gone .skills i:nth-child(3) { transition-delay: .4s; } .biz.gone .skills i:nth-child(4) { transition-delay: .6s; }
.biz.gone .nm, .biz.gone .rule { opacity: .25; transition: opacity 1s; }
.arrow-down { text-align: center; margin: 10px 0; color: var(--raspberry); font-weight: 700; }

/* compass */
.compass-wrap { background: #fff; border-radius: var(--r-m); padding: 24px; box-shadow: var(--shadow-card); margin: 18px 0; }
.dim { margin: 18px 0; }
.dim-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.dim-top b { color: var(--ink); font-size: 18px; }
.dim-top span { font-family: var(--serif); font-style: italic; }
.rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rate button { border-radius: 999px; border: 2px solid rgba(189,19,90,.22); background: #fff; padding: 10px 0; font-weight: 700; color: var(--raspberry); transition: all .2s; }
.rate button:hover { border-color: var(--raspberry); }
.rate button.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-btn); }
.compass-out { text-align: center; }
.compass-out svg { width: min(320px, 90%); margin: 0 auto; display: block; }
.cmp-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; text-align: left; }
.cmp-sum > div { background: var(--cream); border-radius: var(--r-s); padding: 14px 16px; }
.cmp-sum small { display: block; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--raspberry); }
.cmp-sum b { color: var(--ink); font-size: 18px; }

/* threedoors */
.td-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.td { perspective: 700px; border: 0; background: none; padding: 0; text-align: center; }
.td-frame { position: relative; aspect-ratio: 3 / 4; border-radius: 80px 80px 12px 12px; background: var(--pine); padding: 8px; box-shadow: 0 14px 24px -14px rgba(22,16,20,.6); }
.td-hole { position: absolute; inset: 8px; border-radius: 72px 72px 6px 6px; background: radial-gradient(circle at 50% 70%, #FFF3C7, #FFD58A 55%, #F29A6A); display: grid; place-items: center; font-size: 12px; padding: 8px; color: var(--ink); text-align: center; line-height: 1.3; }
.td-hole svg { width: 40%; stroke: var(--raspberry); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.td-leaf { position: absolute; inset: 8px; border-radius: 72px 72px 6px 6px; background: var(--grad-deep); transform-origin: left center; transition: transform .9s cubic-bezier(.3,.8,.2,1); display: grid; place-items: center; box-shadow: inset 0 0 0 4px rgba(255,255,255,.22); backface-visibility: hidden; }
.td-leaf::after { content: ""; position: absolute; right: 12%; top: 54%; width: 10px; height: 10px; background: var(--gold); border-radius: 50%; }
.td-leaf b { font-family: var(--serif); font-style: italic; font-size: 34px; color: #fff; }
.td.on .td-leaf { transform: rotateY(-115deg); }
.td-cap { margin-top: 10px; font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.25; }
.td-cap small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-top: 3px; }
.td-reveal { background: #fff; border-radius: var(--r-m); padding: 22px 24px; box-shadow: var(--shadow-card); border-left: 6px solid var(--raspberry); margin-top: 6px; animation: rise .6s both; }
.td-reveal small { color: var(--raspberry); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.td-reveal p { margin: 6px 0 0; }

/* fitfilter */
.ff-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.ff-card { text-align: left; border: 2px solid rgba(189,19,90,.16); background: #fff; border-radius: var(--r-m); padding: 22px 20px; transition: all .25s; display: flex; flex-direction: column; gap: 8px; }
.ff-card:hover { transform: translateY(-3px); border-color: var(--raspberry); box-shadow: var(--shadow-card); }
.ff-card .k { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ff-card b { color: var(--ink); font-size: 18px; line-height: 1.2; }
.ff-card span { font-size: 15px; }
.ff-card.chosen { background: var(--cream); border-color: var(--raspberry); box-shadow: 0 0 0 4px rgba(189,19,90,.12); }
.ff-pair.picked .ff-card:not(.chosen) { opacity: .55; }
.chip-count { text-align: center; font-size: 13px; color: var(--ink-soft); }

/* gapvs */
.gapvs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin: 20px 0; }
.gv { border-radius: var(--r-m); padding: 22px 20px; background: var(--grad-soft); box-shadow: inset 0 0 0 2px var(--peach); }
.gv.r { background: #fff; box-shadow: inset 0 0 0 2px rgba(189,19,90,.3); border-style: dashed; }
.gv h4 { font-family: var(--serif); font-style: italic; font-size: 20px; margin-bottom: 8px; color: var(--raspberry); }
.gv p { margin: 0; font-size: 15px; }
.gv-mid { align-self: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: var(--shadow-btn); animation: bob 2s ease-in-out infinite; }
.gv-mid svg { width: 22px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* roadmap */
.rm { margin: 12px 0 26px; }
.rm-hint { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--raspberry); margin-bottom: 8px; }
.rm-stage { position: relative; height: 430px; perspective: 1200px; }
.rm-page { position: absolute; left: 50%; top: 0; width: min(390px, 88%); height: 410px; transform-origin: 50% 100%; border-radius: 12px; background: #fff; padding: 22px 24px; box-shadow: 0 24px 40px -22px rgba(22,16,20,.55), 0 0 0 1px rgba(22,16,20,.06); overflow: hidden;
  transform: translateX(-50%) translateY(28px) scale(.9) rotate(var(--r, 0deg)); opacity: 0; transition: transform .9s cubic-bezier(.25,.9,.3,1.1), opacity .6s ease; }
.rm-page.in { opacity: 1; transform: translateX(-50%) translateY(0) scale(1) rotate(var(--r, 0deg)); }
.rm-page.back { opacity: .0; }
.rm-page::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--grad); }
.rm-page small { color: var(--raspberry); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.rm-page h4 { font-size: 20px; margin: 4px 0 12px; line-height: 1.2; }
.rm-page ul { margin: 0; padding: 0; list-style: none; font-size: 14px; display: grid; gap: 8px; }
.rm-page li { padding-left: 16px; position: relative; line-height: 1.4; }
.rm-page li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.rm-page .dir { background: var(--cream); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.rm-page .dir b { color: var(--ink); display: block; font-size: 15px; }
.rm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rm-table th, .rm-table td { text-align: left; padding: 7px 6px; border-bottom: 1px solid #eee; }
.rm-table th { color: var(--raspberry); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dots span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #eadcd3; margin-right: 2px; }
.dots span.f { background: var(--raspberry); }
.rm-ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 4px; }
.rm-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(189,19,90,.25); padding: 0; }
.rm-dot.on { background: var(--raspberry); width: 26px; border-radius: 999px; }
.rm-arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 6px 16px -6px rgba(22,16,20,.4); display: grid; place-items: center; }
.rm-arrow svg { width: 20px; stroke: var(--raspberry); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rm-sample { text-align: center; font-size: 13px; margin-top: 8px; }
.rm-img { width: min(390px, 88%); }
.rm-pages-img .rm-page { padding: 0; }
.rm-pages-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* journey */
.journey { position: relative; margin: 26px 0; padding-left: 0; }
.jr-step { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding-bottom: 28px; opacity: 0; transform: translateY(18px); transition: all .7s cubic-bezier(.2,.8,.2,1); }
.jr-step.on { opacity: 1; transform: none; }
.jr-step::before { content: ""; position: absolute; left: 37px; top: 70px; bottom: -4px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(var(--raspberry) 0 6px, transparent 6px 12px); opacity: .5; }
.jr-step:last-child::before { display: none; }
.jr-n { width: 74px; height: 74px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 28px; box-shadow: var(--shadow-btn); }
.jr-step h4 { font-size: 19px; margin: 6px 0 6px; }
.jr-step p { margin: 0; font-size: 16px; }
.jr-days { display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 700; color: var(--raspberry); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; margin: 0 0 6px; }
.jr-days::before, .jr-days::after { content: ""; height: 2px; width: 40px; background: var(--raspberry); opacity: .4; }
.extras { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 4px 0 20px; }
.extras span { background: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; color: var(--ink); box-shadow: inset 0 0 0 2px var(--peach); font-size: 15px; }

/* offer */
.offer { border-radius: var(--r-m); background: #fff; box-shadow: var(--shadow-card); overflow: hidden; margin: 22px 0; }
.offer-top { background: var(--grad); color: #fff; padding: 12px 20px; text-align: center; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.offer-body { padding: 28px; text-align: center; }
.offer-body h4 { font-family: var(--serif); font-style: italic; font-size: 24px; margin-bottom: 10px; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin: 8px 0 14px; }
.price b { font-size: 56px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price s { font-size: 24px; color: var(--ink-soft); opacity: .7; }
.offer-body p { font-size: 16px; }
.guarantee { font-size: 14px !important; background: var(--cream); border-radius: var(--r-s); padding: 12px 16px; margin: 14px 0 0 !important; }
.offer-note { font-size: 14px; }

/* keepsake / letter */
.keep { position: relative; background: #fff; border-radius: var(--r-m); padding: 34px 28px; box-shadow: var(--shadow-card); margin: 18px 0; }
.keep::before { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(189,19,90,.25); border-radius: 16px; pointer-events: none; }
.keep h4 { font-family: var(--serif); font-style: italic; text-align: center; font-size: 22px; color: var(--raspberry); margin-bottom: 14px; }
.keep .greeting { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink); margin: 0 0 10px; }
.keep-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.keep .closing-line { font-family: var(--serif); font-style: italic; text-align: center; font-size: 18px; margin: 20px 0 0; color: var(--ink); }
.signoff { font-family: var(--serif); font-style: italic; text-align: right; font-size: 20px; margin: 18px 6px 0 0; color: var(--raspberry); }

/* finale */
.finale { text-align: center; margin: 24px 0; }
.finale .f-line { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.4vw, 28px); color: var(--ink); line-height: 1.4; margin: 0 0 18px; opacity: 0; transform: translateY(12px); transition: all 1.2s ease; }
.finale .f-line.on { opacity: 1; transform: none; }
.finale .wish { margin-top: 28px; font-size: 19px; font-weight: 500; opacity: 0; transition: opacity 1.4s; }
.finale .wish.on { opacity: 1; }
.finale .btn { margin-top: 22px; }

/* notebook */
.nb-item { background: #fff; border-radius: var(--r-s); padding: 16px 18px; margin-bottom: 12px; box-shadow: 0 1px 0 rgba(22,16,20,.05), inset 4px 0 0 var(--raspberry); }
.nb-item small { color: var(--raspberry); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; display: block; margin-bottom: 4px; }
.nb-item b { color: var(--ink); display: block; margin-bottom: 4px; }
.nb-item p { margin: 0; white-space: pre-wrap; color: var(--ink-soft); }
.nb-empty { text-align: center; padding: 30px 10px; }
.nb-actions { text-align: center; margin: 18px 0 0; }

/* toast */
.toast { width: max-content; position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; z-index: 300; background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; font-weight: 500; font-size: 15px; box-shadow: 0 16px 30px -10px rgba(0,0,0,.5); transition: all .4s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 32px); text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .theresa-grid { grid-template-columns: 1fr; gap: 32px; }
  .t-card { aspect-ratio: auto; padding: 56px 24px; max-width: 460px; }
}
@media (max-width: 760px) {
  .how, .theresa, .closing { padding: 56px 0; }
  .how-grid { grid-template-columns: 1fr; }
  .doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding: 120px 0 90px; }
  .topbar { padding: 12px 18px; }
  .brand img { height: 54px; }
  .notebook-btn.is-in span { display: none; }
  .notebook-btn.is-in { padding: 11px; }
  .modal { padding: 0; align-items: end; }
  .sheet, .sheet.narrow { width: 100%; max-height: 94vh; border-radius: 26px 26px 0 0; }
  .sheet-head { padding: 40px 22px 22px; }
  .sheet-body { padding: 22px 20px 40px; }
  .ff-pair, .sort-result, .cmp-sum { grid-template-columns: 1fr; }
  .gapvs { grid-template-columns: 1fr; }
  .gv-mid { justify-self: center; transform: rotate(90deg); animation: none; }
  .td-row { gap: 8px; }
  .td-leaf b { font-size: 26px; }
  .td-cap { font-size: 13px; }
  .td-cap small { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .btn { padding: 15px 26px; font-size: 13.5px; }
  .walls { padding: 34px 20px 34px; }
  .cta-panel { padding: 48px 20px; }
  .rm-stage { height: 440px; }
  .jr-step { grid-template-columns: 58px 1fr; gap: 12px; }
  .jr-n { width: 56px; height: 56px; font-size: 22px; }
  .jr-step::before { left: 28px; top: 56px; }
}
@media (max-width: 400px) {
  .doors { gap: 18px 12px; }
  .door .tag { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  #snow, #confetti { display: none; }
}


/* ---------- sign-in, stars, Starry Notes ---------- */
.nb-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; }
.nb-count[hidden] { display: none; }
.star-story { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.star-story p { font-size: 18px; margin: 0 0 14px; text-wrap: pretty; }
.star-story .star-magic { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--raspberry); margin: 22px 0 10px; }
.star-story .star-sign { font-family: var(--serif); font-size: 22px; margin-top: 22px; color: var(--ink); }
.star-badge svg { width: 34px; height: 34px; fill: #fff; stroke: #fff; stroke-width: 1; stroke-linejoin: round; }
.si-err { color: #B3261E; font-weight: 700; margin: 4px 0 12px; }
.si-err[hidden], #si-sent[hidden], #si-form[hidden], #si-dev[hidden] { display: none; }
.si-actions { text-align: center; margin: 18px 0 8px; }
.si-fine { font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; text-align: center; text-wrap: pretty; }
.si-center { text-align: center; }
.linklike { background: none; border: 0; padding: 0; margin-left: 6px; font: inherit; color: var(--raspberry); text-decoration: underline; cursor: pointer; }
.linklike[hidden] { display: none; }
.nb-item small { display: block; }
.nb-note { text-align: center; font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin: 18px 0 0; }
.gstar { text-align: center; margin: 26px 0; padding: 30px 24px; border-radius: var(--r-m); background: var(--grad-soft); box-shadow: inset 0 0 0 2px rgba(246,196,83,.7); }
.gstar svg { width: 64px; height: 64px; fill: #F6C453; stroke: #E8A92B; stroke-width: 1; stroke-linejoin: round; filter: drop-shadow(0 6px 14px rgba(246,196,83,.7)); animation: starpulse 3s ease-in-out infinite; }
@keyframes starpulse { 50% { transform: scale(1.1) rotate(6deg); } }
.gstar h3 { font-family: var(--serif); font-style: italic; margin: 10px 0 8px; }
.gstar p { margin: 0 auto 14px; max-width: 460px; }
@media (prefers-reduced-motion: reduce) { .gstar svg { animation: none; } }

/* the light strings reach just past the edge on some widths; never let that scroll sideways */
html { overflow-x: clip; }
/* ---------- Page look v2: warm, serif, snowy ---------- */
h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.005em; }
#snow { z-index: 60; }
.brand { position: relative; display: inline-block; }
.hat { position: absolute; left: 2px; top: -17px; width: 38px; transform: rotate(-10deg); pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }

/* hero: left-aligned serif headline, festive doors fading in on the right */
.hero { text-align: left; background: linear-gradient(100deg, #FBB293 0%, #F9D3B8 40%, #F4D3BD 100%); padding: 120px 0 100px; min-height: 640px; display: flex; align-items: center; }
.hero::before, .hero::after { display: none; }
.hero > .wrap { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 560px; margin: 0; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06; letter-spacing: -.014em; }
.hero .h1-soft { display: block; font-style: italic; font-weight: 500; padding-bottom: .12em; }
.hero-sub { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.25; margin: 14px 0 12px; }
.hero-sub em { font-style: normal; }
.lede { margin: 0 0 26px; max-width: 480px; font-size: 18px; }
.hero-actions { align-items: flex-start; }
.hero-status { font-style: italic; font-size: 14.5px; }
.hero-wave { display: none; }
.hero-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url(/img/hero.jpg) right center / cover no-repeat; }

/* the house section floats on a soft peach glow */
.calendar-sec { background: linear-gradient(180deg, #F4D6C3 0%, #FAE6D8 14%, #FDF3EA 55%, #FDF7F1 100%); }

/* rose section with gold sparkle, like the signup page */
.how { position: relative; text-align: left; padding: 100px 0 108px; overflow: hidden; color: var(--ink);
  background:
    url(/img/glitter.svg) right top / cover no-repeat,
    url(/img/snowflakes.svg) left center / 62% auto no-repeat,
    radial-gradient(60% 90% at 88% 75%, rgba(176,36,104,.4), transparent 70%),
    radial-gradient(55% 80% at 8% 15%, rgba(255,230,196,.95), transparent 70%),
    linear-gradient(100deg, #F9DCCB 0%, #F5BDAF 45%, #EC9AA6 76%, #DA7C9C 100%); }
.how > .wrap { position: relative; z-index: 1; }
.how .eyebrow { color: #7A0F3C; }
.how h2 { max-width: 640px; margin: 0 0 26px; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
.star-story { text-align: left; margin: 0 0 52px; max-width: 640px; }
.star-story p { font-size: 17.5px; color: #2E2024; }
.star-story .star-magic { color: #8A0F42; }
.how .card { background: rgba(255,251,246,.9); backdrop-filter: blur(4px); box-shadow: 0 22px 40px -22px rgba(120,20,60,.55); }
/* a calm patch behind the words: the sparkle stays around the edges, the text stays easy to read */
.cta-panel { background:
  radial-gradient(ellipse 62% 78% at 50% 48%, rgba(196,20,84,.88), rgba(205,30,85,.72) 55%, rgba(210,40,90,0) 100%),
  url(/img/glitter.svg) right center / cover no-repeat, var(--grad); }

/* the little music button */
.music-btn { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 16px 10px 12px;
  background: rgba(255,255,255,.94); color: var(--raspberry); font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 22px -8px rgba(22,16,20,.5); }
.music-btn[hidden] { display: none; }
.music-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.music-btn:not(.on) svg { opacity: .55; }
.music-btn.hint { animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 50% { transform: scale(1.06); box-shadow: 0 0 0 7px rgba(189,19,90,.14), 0 8px 22px -8px rgba(22,16,20,.5); } }
@media (prefers-reduced-motion: reduce) { .music-btn.hint { animation: none; } }

@media (max-width: 900px) {
  .hero { min-height: 0; padding: 112px 0 250px; }
  .hero-scene { inset: auto 0 0 0; height: 260px; background-position: 74% center;
    -webkit-mask-image: linear-gradient(0deg, #000 40%, transparent 100%); mask-image: linear-gradient(0deg, #000 40%, transparent 100%); }
}
@media (max-width: 760px) {
  .music-btn span { display: none; } .music-btn { padding: 11px; }
  .how { padding: 64px 0 72px; }
  .hat { width: 32px; top: -14px; }
}

/* cookie question */
.consent { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: min(440px, calc(100vw - 32px)); background: #fff; color: var(--ink-soft); border-radius: 22px; padding: 20px 22px 18px; box-shadow: 0 24px 60px -18px rgba(22,16,20,.55), 0 0 0 1px rgba(189,19,90,.12); animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.consent h2 { font-size: 20px; margin: 0 0 8px; }
.consent p { font-size: 14.5px; line-height: 1.5; margin: 0 0 14px; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 140px; }
@media (max-width: 760px) { .consent { left: 12px; right: 12px; bottom: 12px; width: auto; } body.consent-open .music-btn { bottom: calc(var(--consent-h, 190px) + 28px); } }

/* the page now opens straight on the gingerbread house; leave room for the logo bar above it */
.calendar-sec { padding-top: 132px; }
@media (max-width: 760px) { .calendar-sec { padding-top: 108px; } }

/* the title and one line above the house */
.cal-head { max-width: 1100px; }
.cal-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -.012em; margin: 0 0 16px; }
.cal-sub { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.4; color: var(--ink-soft); margin: 0 auto; text-wrap: balance; }

/* ---------- Door 1: the first gift (Theresa's photo), the first wish, the first star ---------- */
.g-firstgift .gate-stage { width: min(400px, 94%); }
.fg-stage { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; }
.fg-stage > *, .fg-gift > * { position: absolute; }
.fg-gift { display: block; inset: 0; animation: fgbob 3.6s ease-in-out infinite; }
.fg-layer { left: 0; top: 20%; width: 100%; height: 80%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.fg-base { filter: drop-shadow(0 26px 26px rgba(70,10,25,.28)); }
.fg-glow { left: -10%; right: -10%; top: 0; height: 70%; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,140,.95) 0%, rgba(255,214,120,.55) 32%, rgba(255,214,120,0) 68%); opacity: 0; transition: opacity .6s ease .5s; }
.fg-in { left: 0; top: 20%; width: 100%; height: 80%; clip-path: polygon(13.3% 20.75%, 55.3% 13.25%, 85.4% 26%, 28.3% 29.3%); background: radial-gradient(ellipse at 52% 55%, #FFE7A0 0%, #F6C453 16%, #C0183F 46%, #3A0410 100%); opacity: 0; transition: opacity .35s ease .45s; }
.fg-star { left: 45.6%; top: 37.9%; width: 36%; height: auto; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.1); filter: drop-shadow(0 0 18px rgba(255,214,102,.95)); }
.fg-bow { transform-origin: 44% 33%; }
.fg-lid { transform-origin: 8% 30%; }
.fg-tag { left: 0; top: 20%; width: 100%; height: 80%; overflow: visible; pointer-events: none; }
.fg-tag-g { transform-origin: 43.7% 32%; transform-box: view-box; animation: fgtagidle 3.2s ease-in-out infinite; }
.fg-spark { width: 7%; aspect-ratio: 1; opacity: 0; background: #FFE9A8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.fg-spark.s1 { left: 18%; top: 12%; } .fg-spark.s2 { left: 76%; top: 8%; width: 5%; } .fg-spark.s3 { left: 8%; top: 34%; width: 4.5%; } .fg-spark.s4 { left: 86%; top: 30%; width: 6%; }

.g-firstgift.opening .fg-gift { animation: none; }
.g-firstgift.opening .fg-tag-g { animation: fgtag .7s cubic-bezier(.4,.1,.6,1) both; }
.g-firstgift.opening .fg-bow { animation: fgwiggle .8s ease .1s both; }
.g-firstgift.opening .fg-lid { animation: fgcrack .45s cubic-bezier(.3,.7,.3,1) .5s both; }
.g-firstgift.opening .fg-glow, .g-firstgift.opening .fg-in { opacity: 1; }
.g-firstgift.opening .fg-star { animation: fgstar 1.7s cubic-bezier(.2,.8,.25,1) 1.35s both, fgfloat 3s ease-in-out 3.1s infinite; }
.g-firstgift.opening .fg-spark { animation: fgtwinkle 1.6s ease-in-out infinite; }
.g-firstgift.opening .fg-spark.s1 { animation-delay: 2.2s; } .g-firstgift.opening .fg-spark.s2 { animation-delay: 2.5s; } .g-firstgift.opening .fg-spark.s3 { animation-delay: 2.8s; } .g-firstgift.opening .fg-spark.s4 { animation-delay: 2.35s; }
.gate-stage:hover .fg-bow { transform: rotate(-2deg) scale(1.02); transition: transform .3s ease; }

@keyframes fgbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2%); } }
@keyframes fgtagidle { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes fgtag { 0% { transform: rotate(0); opacity: 1; } 30% { transform: rotate(-9deg); opacity: 1; } 100% { transform: translate(-6%, 34%) rotate(28deg); opacity: 0; } }
/* the bow wiggles, loosens, then drifts up and away */
@keyframes fguntie {
  0% { transform: none; opacity: 1; }
  12% { transform: rotate(-3deg) scale(1.02); }
  24% { transform: rotate(3deg) scale(1.04); }
  38% { transform: rotate(0) scale(1.12, .94); opacity: 1; }
  100% { transform: translateY(-17%) rotate(-9deg) scale(1.55, 1.2); opacity: 0; }
}
@keyframes fglid { 0% { transform: none; opacity: 1; } 55% { opacity: 1; } 100% { transform: translate(-7%, -24%) rotate(-15deg); opacity: 0; } }
@keyframes fgstar {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.1); }
  18% { opacity: 1; }
  62% { opacity: 1; transform: translate(calc(-50% + 12%), calc(-50% - 88%)) scale(1.22); }
  100% { opacity: 1; transform: translate(calc(-50% + 12%), calc(-50% - 74%)) scale(1); }
}
@keyframes fgfloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -2.5%; } }
@keyframes fgtwinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(25deg); } }
@keyframes starrise { 0% { opacity: 0; transform: translateY(70px) scale(.2); } 55% { opacity: 1; transform: translateY(-62px) scale(1.18); } 100% { opacity: 1; transform: translateY(-48px) scale(1); } }
.gate-caption { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 4vw, 28px); color: var(--raspberry); margin: 4px 0 0; opacity: 0; animation: rise .9s ease 1.9s both; }

.wish-reveal { text-align: center; margin: 18px 0; animation: rise .7s both; }
.wish-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--raspberry); margin: 0 0 6px; }
.wish-star { position: relative; width: 168px; height: 168px; margin: 4px auto 10px; transition: opacity .5s ease; }
.wish-star.sent { opacity: 0; height: 0; margin: 0 auto; overflow: hidden; transition: opacity .4s ease, height .5s ease .25s, margin .5s ease .25s; }
.wish-star-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,140,.8), rgba(255,226,140,0) 65%); animation: starpulse 2.6s ease-in-out infinite; }
.wish-star-svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(246,196,83,.9)); animation: starpop .9s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes starpop { from { transform: scale(.2) rotate(-40deg); opacity: 0; } }
.wish-word { position: absolute; inset: 0; display: grid; place-items: center; padding: 14% 17% 0; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 700; color: #7A3A12; line-height: 1.05; overflow-wrap: break-word; }
.wish-fly .wish-star-svg { animation: none; }
.wish-reply { font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); max-width: 460px; margin: 6px auto 12px; text-wrap: balance; }
.wish-saved { display: inline-block; background: #FFF8EC; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; color: var(--raspberry); box-shadow: 0 0 0 2px rgba(246,196,83,.7); margin: 4px 0 10px; }
.wish-saved[hidden] { display: none; }
.wish-note { font-size: 14px; color: var(--ink-soft); font-style: italic; margin: 0; }
.wish-note:empty { display: none; }
#open-notebook.pop { animation: nbpop .8s ease; }
@keyframes nbpop { 40% { transform: scale(1.22); box-shadow: 0 0 0 9px rgba(246,196,83,.5), 0 6px 18px -8px rgba(22,16,20,.35); } }

.teaser { display: flex; gap: 18px; align-items: center; text-align: left; background: linear-gradient(160deg, #FFF8EC, #FFEBD6); border-radius: var(--r-m); padding: 20px 22px; margin: 26px 0 6px; box-shadow: 0 0 0 2px rgba(246,196,83,.55); }
.tz-door { flex: none; width: 72px; height: 90px; border-radius: 42% 42% 8px 8px / 26% 26% 8px 8px; background: radial-gradient(circle at 50% 58%, #FFF3C7, #FFD58A 45%, #F29A5A); box-shadow: 0 0 0 4px #fff, 0 0 26px 6px rgba(246,196,83,.7); display: grid; place-items: center; animation: starpulse 3s ease-in-out infinite; }
.tz-door b { font-family: var(--serif); font-style: italic; font-size: 32px; color: #7A3A12; }
.tz-when { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--raspberry); margin: 0 0 4px; }
.tz-text { font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--ink); margin: 0 0 4px; }
.tz-bye { margin: 0 0 12px; font-weight: 500; }
@media (max-width: 480px) { .teaser { flex-direction: column; text-align: center; } }

.door[data-next="1"]::before { animation: nextglow 2.8s ease-in-out infinite; box-shadow: 0 0 0 3px rgba(246,196,83,.95), 0 0 22px 8px rgba(246,196,83,.65), 0 5px 0 #D9C3A8; }
@keyframes nextglow { 50% { box-shadow: 0 0 0 3px rgba(246,196,83,.5), 0 0 12px 3px rgba(246,196,83,.3), 0 5px 0 #D9C3A8; } }
@media (prefers-reduced-motion: reduce) { .door[data-next="1"]::before, .tz-door, .wish-star-glow, .fg-gift, .fg-tag-g { animation: none; } .g-firstgift.opening .fg-bow, .g-firstgift.opening .fg-lid, .g-firstgift.opening .fg-tag-g { animation: none; opacity: 0; } .g-firstgift.opening .fg-star { animation: none; opacity: 1; transform: translate(calc(-50% + 12%), calc(-50% - 74%)); } }

.cta-panel .closing-lead { margin-bottom: 10px; font-size: 20px; }

/* the welcome video pops up on its own */
.media-pop { animation: videopop .8s cubic-bezier(.2,.9,.3,1.12) .1s both; transform-origin: 50% 30%; }
@keyframes videopop { from { opacity: 0; transform: scale(.82) translateY(24px); } }

/* Theresa's photo fills the square; her name sits on a soft fade at the bottom */
.t-card { padding: 0; display: block; background: #3a1a1c; }
.t-card::before { display: none; }
.t-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.t-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(to top, rgba(60,10,25,.72), rgba(60,10,25,0)); }
.t-card .t-sig, .t-card .t-role { position: absolute; left: 24px; right: 24px; z-index: 1; text-align: left; }
.t-card .t-sig { bottom: 52px; margin: 0; font-size: clamp(28px, 4.2vw, 40px); }
.t-card .t-role { bottom: 24px; font-size: 13px; }
@media (max-width: 900px) { .t-card { aspect-ratio: 1 / 1; padding: 0; max-width: 460px; } }

/* Door 1: the video grows out of the gift, so the sheet body is the anchor and the video sits above the gift */
#sheet-body { position: relative; }
.media-pop { position: relative; z-index: 3; }

/* Door 1: a little wiggle, a small crack of light, then the video takes over */
@keyframes fgwiggle { 0% { transform: none; } 22% { transform: rotate(-3deg) scale(1.02); } 48% { transform: rotate(3deg) scale(1.04); } 74% { transform: rotate(-1.5deg) scale(1.07, .96); } 100% { transform: rotate(0) scale(1.1, .94) translateY(-2%); } }
@keyframes fgcrack { 0% { transform: none; } 100% { transform: translate(-1%, -9%) rotate(-5deg); } }
/* blocks that wait for the video to finish */
.held { display: none !important; }

/* the wish question, as Theresa's picture */
.wish-q { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto 20px; border-radius: var(--r-m); box-shadow: var(--shadow-card); animation: rise .7s both; }

/* every door opens under the same pretty rose-and-gold sparkle as the "How it works" section */
.sheet-head {
  background:
    url(/img/glitter.svg) right top / cover no-repeat,
    url(/img/snowflakes.svg) left center / 70% auto no-repeat,
    radial-gradient(60% 90% at 88% 75%, rgba(176,36,104,.4), transparent 70%),
    radial-gradient(55% 80% at 8% 15%, rgba(255,230,196,.95), transparent 70%),
    linear-gradient(100deg, #F9DCCB 0%, #F5BDAF 45%, #EC9AA6 76%, #DA7C9C 100%);
}
.sheet-head .eyebrow { color: #7A0F3C; }
.sheet-head h2 { color: var(--ink); }
.sheet-kind { color: #3B2A30; }

/* "How it works": the words on the left, a peek at the Career Guiding Star on the right */
.how-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; margin-bottom: 52px; }
.how-top .star-story { margin-bottom: 0; }
.how-pic { display: block; width: 100%; height: auto; border-radius: var(--r-l); box-shadow: 0 30px 60px -28px rgba(120,20,60,.6); transform: rotate(1.5deg); }
@media (max-width: 900px) { .how-top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; } .how-pic { max-width: 460px; margin: 0 auto; } }

/* the snow at the foot of the house: Theresa's watercolor drifts. The walls reach down behind the snow. */
.walls { padding-bottom: 6.5%; }
.ground { height: auto; aspect-ratio: 1200 / 150; margin: -8% -2% 0; background: url(/img/snow-bottom.png) center bottom / 100% auto no-repeat; border-radius: 0; box-shadow: none; }
.ground .tree { bottom: 14%; }
.ground .sweets { bottom: 20%; }

/* a picture with a punchline underneath */
.scene .cap.cap-big { font-family: var(--serif); font-style: normal; font-weight: 700; font-size: clamp(16px, 2.4vw, 19px); line-height: 1.3; padding: 16px 22px 20px; color: var(--ink); text-wrap: balance; }

/* ---------- Door 2: the chosen card lights up, a message appears, the star flies to Your Starry Notes ---------- */
.opt { position: relative; }
.opt.chosen.lit { background: linear-gradient(135deg, #FFF6D6, #FFE29A); color: var(--ink); border-color: #F6C453; box-shadow: 0 0 0 3px rgba(246,196,83,.4), 0 0 30px rgba(255,214,102,.85); animation: litpulse 2.6s ease-in-out infinite; }
.spk { position: absolute; width: 15px; height: 15px; background: #F6C453; pointer-events: none; opacity: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: spkle 1.9s ease-in-out infinite; }
.spk.s1 { left: 7%; top: -8px; } .spk.s2 { right: 9%; top: -9px; animation-delay: .45s; } .spk.s3 { right: -6px; bottom: 28%; animation-delay: .9s; } .spk.s4 { left: -6px; bottom: 24%; animation-delay: 1.35s; }
@keyframes spkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(30deg); } }
@keyframes litpulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(246,196,83,.4), 0 0 26px rgba(255,214,102,.7); } 50% { box-shadow: 0 0 0 4px rgba(246,196,83,.55), 0 0 38px rgba(255,214,102,1); } }
.disc-head { font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 3vw, 22px); line-height: 1.3; color: var(--ink); max-width: 480px; margin: 6px auto 8px; text-wrap: balance; }
.disc-body { font-size: 17px; line-height: 1.5; max-width: 480px; margin: 0 auto 14px; text-wrap: pretty; }
.tz-more { font-size: 15.5px; line-height: 1.4; margin: 0 0 6px; }
@media (prefers-reduced-motion: reduce) { .opt.chosen.lit, .spk { animation: none; } .spk { opacity: 1; } }

/* the saved line under every answer on every door */
.save-line { display: table; margin: 14px auto 0; text-align: center; }
.save-line[hidden] { display: none; }

/* the answer cards keep the same spacing whichever one is chosen (the faded ones were picking up the compass game's ".dim" margin) */
.options .opt { margin: 0; }
.options .opt.chosen, .options .opt.chosen:hover { transform: none; }

/* ---------- Door 3: the clue (three common threads + something else) ---------- */
.thread-box { margin-top: 22px; }
.opt b { display: block; font-weight: 700; }
.opt-desc { display: block; font-weight: 400; font-size: 14.5px; line-height: 1.4; opacity: .85; margin-top: 2px; }
.opt-tag { display: inline-block; margin-top: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--raspberry); }
.opt.chosen:not(.lit) .opt-tag { color: #fff; }
.thread-other { margin: 4px 0 14px; }
.thread-other .field { margin-bottom: 10px; }

.scene video { display: block; width: 100%; height: auto; }
