:root {
  --paper: #f4efe4;
  --paper-2: #ebe4d4;
  --ink: #17261e;
  --ink-2: #22362b;
  --moss: #2f4a36;
  --fern: #6f8f5a;
  --sage: #c9d3b8;
  --sun: #f08a4b;
  --sun-2: #ffb36b;
  --clay: #c9653c;
  --night: #0d1430;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "opsz" 144; }
h2 { font-size: clamp(2.2rem, 1.4rem + 4vw, 5rem); line-height: .98; }
h2 em, h1 em { font-style: italic; color: var(--clay); }

/* --- grain --- */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* --- cursor --- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 120; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--sun); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(240, 138, 75, .7);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor.away { opacity: 0; }
.cursor.hover .cursor-ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(240, 138, 75, .15); border-color: transparent; }
.cursor.grab .cursor-ring { width: 90px; height: 90px; margin: -45px 0 0 -45px; background: rgba(255, 220, 150, .2); border-color: rgba(255, 230, 180, .9); }

/* --- nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--pad);
  color: #fff; mix-blend-mode: difference;
}
.logo { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; text-decoration: none; letter-spacing: -.04em; line-height: 1; margin: 0; }
.logo span { color: var(--sun); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; font-size: .95rem; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.sound-toggle { display: flex; align-items: center; gap: .6rem; background: none; border: 1px solid currentColor; border-radius: 99px; padding: .45rem .95rem; }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 2px; height: 3px; background: currentColor; border-radius: 2px; transition: height .3s; }
.sound-on .eq i { animation: eq 1s ease-in-out infinite; }
.sound-on .eq i:nth-child(2) { animation-delay: -.3s; } .sound-on .eq i:nth-child(3) { animation-delay: -.6s; } .sound-on .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

@media (max-width: 760px) { .nav-links { display: none; } }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.6rem; border-radius: 99px; border: 0;
  font-weight: 600; text-decoration: none; font-size: 1rem; transition: background .3s, color .3s, box-shadow .3s;
}
.magnetic.settling { transition: transform .6s var(--ease), background .3s, color .3s, box-shadow .3s; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 40px -10px rgba(240, 138, 75, .7); }
.btn-sun:hover { background: var(--sun-2); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .25); }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--moss); }
.btn.big { font-size: 1.2rem; padding: 1.3rem 2.4rem; }
.chip { background: rgba(255, 255, 255, .15); border: 1px solid currentColor; border-radius: 99px; padding: .3rem .8rem; font-size: .8rem; font-weight: 500; }

.section-tag { font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 600; margin: 0 0 1.2rem; display: flex; align-items: center; gap: .7rem; opacity: .8; }
.section-tag::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head { max-width: 56rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.lede { max-width: 38rem; margin-top: 1.5rem; opacity: .75; }

/* --- reveal (kun med JS, så indholdet altid er synligt uden) --- */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(40px); }
.reveal-load { opacity: 0; transform: translateY(20px); animation: rise 1.2s var(--ease) forwards; }
.eyebrow.reveal-load { animation-delay: .2s; }
.hero-sub.reveal-load { animation-delay: 1s; }
.hero-cta.reveal-load { animation-delay: 1.2s; }
.time-dial.reveal-load { animation-delay: 1.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============ HERO ============ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; color: #fff; background: #5b9be0; touch-action: pan-y; }
#sky, #fx { position: absolute; inset: 0; width: 100%; height: 100%; }
#fx { pointer-events: none; }
.hills { position: absolute; left: -4%; right: -4%; bottom: -2px; width: 108%; height: 68%; pointer-events: none; }
.hills g { will-change: transform; }
.hills .l1 { fill: #9db3cf; fill: color-mix(in oklab, #9db3cf, #0a1022 calc(var(--night, 0) * 70%)); }
.hills .l2 { fill: #789c86; fill: color-mix(in oklab, #789c86, #0a1022 calc(var(--night, 0) * 65%)); }
.hills .l3 { fill: #426f52; fill: color-mix(in oklab, #426f52, #0a1022 calc(var(--night, 0) * 60%)); }
.hills .l4 { fill: var(--ink); }

.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad) 18vh; pointer-events: none; text-shadow: 0 2px 30px rgba(0, 0, 0, .15);
}
.hero-content a, .hero-content button { pointer-events: auto; }
.eyebrow { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin: 0 0 1rem; opacity: .9; }
.hero-title { font-size: clamp(5rem, 2rem + 17vw, 17rem); line-height: .82; letter-spacing: -.05em; font-weight: 500; display: flex; flex-wrap: wrap; gap: 0 .22em; }
/* Bogstaverne rejser sig op bag en kant: kun bunden klippes (så skygge og det kursive d's
   opstreg ikke skæres af), og klipningen fjernes helt, når animationen er færdig. */
.hero-title .word { display: inline-flex; padding-bottom: .08em; clip-path: inset(-1em -1em 0 -1em); animation: unclip 0s 1.6s forwards; }
.hero-title .word > span { display: inline-block; transform: translateY(110%) rotate(8deg); animation: letter 1.2s var(--ease) forwards; }
.hero-title .word > span:nth-child(2) { animation-delay: .06s; }
.hero-title .word > span:nth-child(3) { animation-delay: .12s; }
.hero-title .accent > span { animation-delay: .2s; }
.hero-title .accent > span:nth-child(2) { animation-delay: .26s; }
.hero-title .accent > span:nth-child(3) { animation-delay: .32s; }
.hero-title .accent { font-style: italic; color: var(--sun-2); }
@keyframes letter { to { transform: none; } }
@keyframes unclip { to { clip-path: none; } }
.hero-sub { max-width: 34rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.35rem); margin: 1.6rem 0 2.2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.time-dial {
  position: absolute; right: var(--pad); bottom: 2.2rem; z-index: 3; width: min(320px, calc(100% - 2 * var(--pad)));
  display: grid; grid-template-columns: 1fr auto; gap: .5rem .8rem; align-items: center; font-size: .85rem; color: #fff;
  padding: 1rem 1.1rem; border-radius: 18px; background: rgba(10, 20, 30, .25); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.time-dial label { display: flex; align-items: center; gap: .5rem; }
.time-dial .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun-2); box-shadow: 0 0 12px var(--sun-2); }
.time-dial input { grid-column: 1 / -1; }
.time-dial .chip { color: #fff; grid-row: 1; grid-column: 2; }
.hint { grid-column: 1 / -1; margin: 0; opacity: .6; font-size: .75rem; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 20px; transform: translateX(-50%); z-index: 3; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) {
  .scroll-cue { display: none; }
  .hero-content { padding-bottom: 30vh; }
  .time-dial { bottom: 1rem; }
}

/* range inputs */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: currentColor; opacity: .9; }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: currentColor; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border-radius: 50%; background: var(--sun); border: 3px solid var(--paper); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); border: 3px solid var(--paper); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.3); }

/* ============ MANIFEST ============ */
.manifest { background: var(--ink); color: var(--paper); height: 260vh; position: relative; }
.manifest-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); }
.manifest-text { font-family: var(--serif); font-size: clamp(1.8rem, 1rem + 3.6vw, 4.4rem); line-height: 1.12; letter-spacing: -.02em; max-width: 72rem; margin: 0; font-variation-settings: "SOFT" 100; }
.manifest-text .w { opacity: .14; transition: opacity .25s linear, color .4s; }
.manifest-text .w.lit { opacity: 1; }
.manifest-text .w.hot { color: var(--sun-2); font-style: italic; }

/* ============ MARQUEE ============ */
.marquee { background: var(--sun); color: var(--ink); overflow: hidden; padding: 1.4rem 0; transform: rotate(-2deg) scale(1.05); margin: -1.5rem 0; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 2.2rem; width: max-content; animation: marquee 30s linear infinite; font-family: var(--serif); font-size: clamp(1.8rem, 1.2rem + 2.5vw, 3.4rem); font-style: italic; align-items: center; white-space: nowrap; }
.marquee-track b { font-style: normal; font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ VERBS ============ */
.verbs, .stats, .finder, .sound, .breath { padding: clamp(6rem, 14vw, 11rem) var(--pad); }
.verb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; perspective: 1200px; }
.verb {
  position: relative; background: var(--paper-2); border-radius: 26px; padding: 2rem 1.8rem 2.2rem; min-height: 360px;
  display: flex; flex-direction: column; transform-style: preserve-3d; transition: background .5s, color .5s, transform .6s var(--ease), opacity 1s var(--ease);
}
.verb.reveal.in { transition: background .5s, color .5s, transform .15s linear, opacity 1s var(--ease); }
.verb:nth-child(2) { transition-delay: .08s; } .verb:nth-child(3) { transition-delay: .16s; } .verb:nth-child(4) { transition-delay: .24s; }
.verb:hover { background: var(--moss); color: var(--paper); }
.verb .num { font-size: .8rem; font-weight: 600; opacity: .5; }
.verb .icon { width: 64px; height: 64px; margin: 2.4rem 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: translateZ(40px); transition: transform .6s var(--ease); }
.verb .icon .fill { fill: currentColor; }
.verb:hover .icon { stroke: var(--sun-2); transform: translateZ(60px) scale(1.1) rotate(-6deg); }
.verb h3 { font-size: 2.6rem; margin: 2rem 0 .6rem; transform: translateZ(30px); }
.verb p { margin: 0; opacity: .8; transform: translateZ(20px); }

/* ============ STATS ============ */
.stats { background: var(--moss); color: var(--paper); }
.stats h2 em { color: var(--sun-2); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3rem 2rem; }
.stat { border-top: 1px solid rgba(244, 239, 228, .25); padding-top: 1.6rem; }
.stat-num { font-family: var(--serif); font-size: clamp(5rem, 3rem + 7vw, 9rem); line-height: .9; margin: 0 0 1rem; letter-spacing: -.05em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.stat-num small { font-size: .3em; letter-spacing: 0; margin-left: .3em; font-style: italic; color: var(--sun-2); }
.stat p:last-child { max-width: 22rem; opacity: .8; margin: 0; }
.sources { margin-top: 4rem; font-size: .8rem; opacity: .55; }

/* ============ FINDER ============ */
.finder-wrap { display: grid; grid-template-columns: minmax(260px, 1fr) 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 860px) { .finder-wrap { grid-template-columns: 1fr; } }
.finder-controls { display: flex; flex-direction: column; gap: 2.4rem; align-items: flex-start; }
.control { width: 100%; color: var(--ink); }
.control-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; font-weight: 600; }
.control-head output { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.4rem; color: var(--clay); }
.control-ends { display: flex; justify-content: space-between; font-size: .8rem; opacity: .55; margin-top: .3rem; }
.die { width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 6px; position: relative; display: inline-block; transition: transform .8s var(--ease); }
.die i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.die i:nth-child(1) { top: 3px; left: 3px; } .die i:nth-child(2) { top: 3px; right: 3px; } .die i:nth-child(3) { top: 7px; left: 7px; }
.die i:nth-child(4) { bottom: 3px; left: 3px; } .die i:nth-child(5) { bottom: 3px; right: 3px; }
#roll.rolling .die { transform: rotate(720deg) scale(1.2); }

.idea-stage { position: relative; min-height: 420px; display: grid; }
.idea, .idea-ghost { grid-area: 1 / 1; border-radius: 30px; }
.idea {
  position: relative; z-index: 3; background: var(--ink); color: var(--paper); padding: clamp(2rem, 4vw, 3.4rem);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 420px;
  transition: transform .6s var(--ease), opacity .4s;
}
.idea::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0%, rgba(240, 138, 75, 0) 70%); opacity: .55; transition: transform 1s var(--ease); }
.idea.swap-out { transform: translateX(-30px) rotate(-6deg) scale(.95); opacity: 0; }
.idea.swap-in { animation: ideaIn .8s var(--ease); }
@keyframes ideaIn { from { transform: translateY(40px) rotate(4deg) scale(.96); opacity: 0; } }
.idea-meta { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--sun-2); margin: 0 0 1rem; position: relative; }
.idea h3 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); line-height: 1; margin-bottom: 1rem; position: relative; }
.idea p:not(.idea-meta) { margin: 0; max-width: 32rem; opacity: .8; position: relative; }
.idea-energy { margin-top: 2rem; height: 4px; border-radius: 4px; background: rgba(244, 239, 228, .15); position: relative; overflow: hidden; }
.idea-energy span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--sage), var(--sun)); border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.idea-ghost { background: var(--fern); transform: rotate(3deg) translate(14px, 8px); z-index: 2; opacity: .6; }
.idea-ghost.two { background: var(--sun); transform: rotate(-3deg) translate(-10px, 14px); z-index: 1; opacity: .5; }

/* ============ SOUND ============ */
.sound { position: relative; background: var(--night); color: var(--paper); overflow: hidden; }
.sound h2 em { color: var(--sun-2); }
.sound-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 80% 10%, rgba(120, 100, 200, .35), transparent 70%), radial-gradient(50% 50% at 10% 100%, rgba(111, 143, 90, .35), transparent 70%); }
.sound .section-head, .sound-grid { position: relative; }
.sound-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.sound-tile {
  text-align: left; border-radius: 24px; padding: 1.6rem; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: var(--paper);
  transition: background .4s, border-color .4s, transform .4s var(--ease), opacity 1s var(--ease);
}
.sound-tile:hover { background: rgba(255, 255, 255, .1); }
.sound-tile strong { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.sound-tile small { opacity: .6; }
.sound-tile[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.viz { display: flex; gap: 4px; align-items: center; height: 60px; margin-bottom: auto; }
.viz i { width: 4px; height: 4px; border-radius: 4px; background: currentColor; opacity: .5; }
.sound-tile[aria-pressed="true"] .viz i { opacity: 1; animation: viz 1.4s ease-in-out infinite; background: var(--clay); }
.sound-tile[aria-pressed="true"] .viz i:nth-child(2n) { animation-duration: 1.1s; }
.sound-tile[aria-pressed="true"] .viz i:nth-child(3n) { animation-duration: 1.7s; }
.viz i:nth-child(1) { animation-delay: -.2s; } .viz i:nth-child(2) { animation-delay: -.5s; } .viz i:nth-child(3) { animation-delay: -.9s; }
.viz i:nth-child(4) { animation-delay: -.1s; } .viz i:nth-child(5) { animation-delay: -.7s; } .viz i:nth-child(6) { animation-delay: -.4s; } .viz i:nth-child(7) { animation-delay: -1s; }
@keyframes viz { 0%, 100% { height: 6px; } 50% { height: 48px; } }

/* ============ WEATHER ============ */
.weather { background: linear-gradient(180deg, #b9d3e6 0%, #e7eef0 100%); padding: clamp(6rem, 14vw, 11rem) var(--pad); position: relative; overflow: hidden; }
.weather-inner { display: grid; grid-template-columns: 1fr minmax(300px, 460px); gap: 3rem; align-items: center; }
@media (max-width: 860px) { .weather-inner { grid-template-columns: 1fr; } }
.weather-card { background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8); border-radius: 30px; padding: 2rem; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 80px -30px rgba(23, 38, 30, .3); }
.weather-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.weather-place { margin: 0; font-weight: 600; }
.weather-main { display: flex; align-items: center; gap: 1.4rem; margin: 1.4rem 0; }
.weather-temp { font-family: var(--serif); font-size: clamp(5rem, 4rem + 4vw, 7.5rem); line-height: .9; letter-spacing: -.05em; }
.weather-desc { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.1; }
.weather-wind { margin: .3rem 0 0; opacity: .65; font-size: .9rem; }
.weather-tip { margin: 0; padding-top: 1.2rem; border-top: 1px solid rgba(23, 38, 30, .15); font-size: 1.1rem; }
.weather-src { margin: 1.4rem 0 0; font-size: .72rem; opacity: .45; }
.rain-drop { position: absolute; top: -10%; width: 1px; height: 60px; background: linear-gradient(transparent, rgba(23, 38, 30, .35)); animation: fall linear infinite; pointer-events: none; }
.snow-flake { position: absolute; top: -5%; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: fall linear infinite; pointer-events: none; }
@keyframes fall { to { transform: translateY(120vh); } }

/* ============ YEAR ============ */
.year { position: relative; background: var(--paper); }
.year-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 3rem; }
.year-head { padding: 0 var(--pad); }
.year-track { display: flex; gap: 1.2rem; padding: 0 var(--pad); width: max-content; will-change: transform; }
.month {
  width: clamp(260px, 26vw, 360px); height: clamp(320px, 46vh, 440px); flex: none; border-radius: 28px; padding: 1.8rem;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; color: var(--ink);
}
.month::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -60px; bottom: -60px; background: rgba(255, 255, 255, .25); transition: transform .8s var(--ease); }
.month:hover::after { transform: scale(1.5); }
.month .m-name { font-family: var(--serif); font-size: 3rem; line-height: 1; font-style: italic; position: relative; z-index: 1; }
.month .m-idx { font-size: .8rem; font-weight: 600; opacity: .55; display: flex; justify-content: space-between; position: relative; z-index: 1; }
.month p { margin: 0; font-size: 1.05rem; position: relative; z-index: 1; }
.month.now { outline: 3px solid var(--ink); outline-offset: 5px; }
.month .now-badge { background: var(--ink); color: var(--paper); border-radius: 99px; padding: .15rem .6rem; opacity: 1; }
.year-progress { margin: 0 var(--pad); height: 2px; background: rgba(23, 38, 30, .12); border-radius: 2px; overflow: hidden; }
.year-progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* ============ BREATH ============ */
.breath { background: var(--sage); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .breath { grid-template-columns: 1fr; } }
.breath-stage { display: flex; flex-direction: column; align-items: center; gap: 2.4rem; }
.breath-orb { position: relative; width: min(340px, 72vw); aspect-ratio: 1; display: grid; place-items: center; }
.breath-orb .ring { position: absolute; inset: 0; border-radius: 50%; transform: scale(.55); transition: transform 4s cubic-bezier(.45, 0, .55, 1); }
.breath-orb .r1 { background: rgba(47, 74, 54, .12); }
.breath-orb .r2 { inset: 12%; background: rgba(47, 74, 54, .2); transition-delay: .1s; }
.breath-orb .r3 { inset: 26%; background: var(--moss); transition-delay: .2s; box-shadow: 0 20px 60px -10px rgba(23, 38, 30, .5); }
.breath-orb.in .ring { transform: scale(1); }
.breath-orb.hold .ring { transform: scale(1); }
.breath-orb.out .ring { transform: scale(.55); transition-duration: 6s; }
.breath-word { position: relative; z-index: 1; font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--paper); transition: opacity .5s; }

/* ============ FINALE ============ */
.finale { position: relative; min-height: 100vh; overflow: hidden; display: grid; place-items: center; text-align: center; padding: 6rem var(--pad);
  background: linear-gradient(180deg, #2f3d7a 0%, #b4587a 45%, #ff8a5c 75%, #ffc28a 100%); color: #fff; }
.sun-big { position: absolute; left: 50%; bottom: -30vmin; width: 70vmin; height: 70vmin; margin-left: -35vmin; border-radius: 50%;
  background: radial-gradient(circle, #fff3d6 0%, #ffcf8a 40%, rgba(255, 160, 100, 0) 70%); transform: translateY(var(--sun-y, 30%)); filter: blur(2px); }
.finale-content { position: relative; z-index: 1; }
.finale h2 { font-size: clamp(3rem, 1.5rem + 7vw, 8rem); line-height: .95; margin-bottom: 3rem; }
.finale h2 em { color: #fff3d6; }

.footer { background: var(--ink); color: var(--paper); padding: 3rem var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; font-size: .9rem; }
.footer p { margin: 0; opacity: .75; }
.footer .logo { opacity: 1; font-size: 3rem; }

/* goodbye */
.goodbye { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 120%, #ffc28a 0%, #ff8a5c 25%, #6c4a8a 55%, #0d1430 85%);
  clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%)); transition: clip-path 1.2s var(--ease); pointer-events: none; }
.goodbye.show { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); pointer-events: auto; }
.goodbye-small { margin: 0; letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; }
.goodbye-big { font-family: var(--serif); font-size: clamp(3rem, 2rem + 6vw, 7rem); margin: .5rem 0 2.5rem; line-height: 1; }
.goodbye .chip { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee-track { animation: none; }
  .js .reveal:not(.in), .reveal-load, .hero-title .word > span { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-title .word { clip-path: none; animation: none; }
}
