/* Joy Estrella - brand kit 08.11.2026. Mobile first. */
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --night: #0F1B3D;      /* Mitternachtsblau - ground */
  --night-2: #1B2C5E;    /* Blau hell - surfaces on night */
  --bolt: #FFE45C;       /* Blitzgelb (Lemon, chosen 08.11.2026) - the one accent */
  --bow: #F4A7B9;        /* Schleifenrosa - second accent */
  --bow-deep: #E98AA6;
  --cream: #FFF6E5;      /* text on night, light ground */
  --m: clamp(18px, 4.5vw, 32px);         /* the one pair of outer margins */
  --gap: clamp(96px, 14vw, 200px);       /* between sections */
  --pill: 999px;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --text: "Nunito", system-ui, sans-serif;
  --t-small: 16px;
  --t-body: 18px;
  --t-head: clamp(30px, 3.4vw, 44px);
  --t-lead: clamp(26px, 2.6vw, 36px);
  --t-big: clamp(44px, 6vw, 88px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font: 700 var(--t-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.02; letter-spacing: -0.02em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--bolt); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--bolt); color: var(--night); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: 12px; z-index: 10; background: var(--bolt); color: var(--night); padding: 10px 18px; border-radius: var(--pill); text-decoration: none; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons: pill, yellow main, cream secondary ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: var(--pill);
  font: 800 18px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn .arrow { width: 22px; height: 22px; }
.btn-main { background: var(--bolt); color: var(--night); }
.btn-play { background: var(--cream); color: var(--night); }
.btn:hover { transform: translateY(-2px); background: var(--bow); color: var(--night); }
.btn:active { transform: translateY(0) scale(.98); }

/* fitted words: JS scales them to the container; CSS sizes are the no-script fallback */
.estrella, .giant, .cta-word, .wordmark { overflow-x: clip; }
.fit { display: inline-block; white-space: nowrap; transform-origin: left top; padding-right: .08em; } /* room for the last letter's overhang (tight tracking) */

/* ---------- hero: the name as a monument ---------- */
.hero {
  position: relative; padding: 16px var(--m) 28px;
  display: grid; grid-template-rows: auto auto auto 1fr; align-content: start;
  background: radial-gradient(circle at 50% -10%, var(--night-2), var(--night) 60%); /* brand background, required by the brand kit. taste-skill-ignore */
}
.hero-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-small); text-decoration: none; }
.mark .bow { width: 40px; height: 34px; }
.mark span { color: var(--bow); }
.hero-bar nav { display: none; gap: 18px; font-size: var(--t-small); }
.hero-bar nav a { text-decoration: none; padding: 10px 0; }
.hero-bar nav a:hover { color: var(--bow); }

.monument { margin-top: clamp(8px, 3svh, 40px); line-height: .8; letter-spacing: -0.05em; }
.joy {
  display: flex; align-items: flex-end; justify-content: space-between;
  font-size: min(50vw, 74svh); line-height: .78; margin-bottom: .2em;
  transform-origin: 50% 100%;
}
.joy .ltr { display: block; }
.o-photo {
  display: block; flex: 0 0 auto; width: .6em; height: .74em; margin: 0 .03em .02em;
  border-radius: var(--pill); overflow: hidden; background: var(--night-2);
}
.o-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.04); }
.estrella { display: block; color: var(--bow); font-size: 20vw; line-height: .9; }

.hero-text { margin-top: 28px; display: grid; gap: 14px; justify-items: start; max-width: 36ch; }
.story-line { font-family: var(--display); font-size: var(--t-lead); line-height: 1.15; letter-spacing: -0.01em; }
.hero-text .btn { margin-top: 8px; }
.hero-corner { display: none; font-size: var(--t-small); color: var(--bow); }
.hero-bolt { position: absolute; right: var(--m); top: 22px; width: 22px; }

/* ---------- links: one giant word, filled pill bars ---------- */
.links { width: min(100% - 2 * var(--m), 640px); margin: clamp(40px, 8vw, 120px) auto 0; }
.giant { font-size: 31vw; line-height: .8; letter-spacing: -0.04em; color: var(--cream); }
.bars { margin-top: 24px; display: grid; gap: 10px; }
.bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 16px;
  min-height: 72px; padding: 14px 24px 14px 18px; border-radius: var(--pill);
  background: var(--night-2); text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.bar-name { font: 800 var(--t-body)/1.15 var(--text); }
.bar-name { grid-column: 2; }
.bar-note { grid-column: 2; font-size: var(--t-small); color: var(--bow); line-height: 1.3; }
.bar .pi { grid-column: 1; grid-row: 1 / span 2; width: 38px; height: 38px; }
.bar .arrow { grid-row: 1 / span 2; grid-column: 3; width: 26px; height: 26px; }
.bar-main { background: var(--bolt); color: var(--night); }
.bar-main .bar-note { color: var(--night); }
.bar:hover { transform: translateY(-2px); background: var(--bow); color: var(--night); }
.bar:hover .bar-note { color: var(--night); }
.bar:active { transform: scale(.985); }

/* ---------- watch: heading over a tall clip ---------- */
.watch { margin-top: var(--gap); padding: 0 var(--m); display: grid; gap: 32px; }
.watch h2 { font-size: var(--t-big); line-height: .95; letter-spacing: -0.03em; }
.hl { color: var(--bolt); }  /* brand rule: "happy again." in yellow, the one highlighted phrase */
.subline { margin-top: 18px; color: var(--bow); font-size: var(--t-body); }
.caption { margin-top: 10px; font-size: var(--t-small); max-width: 34ch; }
.player { position: relative; margin: 0 calc(-1 * var(--m)); aspect-ratio: 4 / 5; overflow: hidden; background: var(--night-2); }
.player video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.player.is-full { aspect-ratio: 9 / 16; }
.player.is-full video { object-fit: contain; background: #000; }
.btn-play { position: absolute; left: var(--m); bottom: var(--m); }
.player.is-full .btn-play { display: none; }

/* ---------- moments: a quiet strip of small frames ---------- */
.moments { margin-top: var(--gap); padding: 0 var(--m); }
.moments h2 { font-size: var(--t-head); }
.count { color: var(--bow); font-family: var(--text); font-size: .5em; letter-spacing: 0; vertical-align: .5em; }
.strip {
  margin: 24px calc(-1 * var(--m)) 0; padding: 0 var(--m) 8px;
  display: flex; gap: 5vw; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: 0 0 58vw; aspect-ratio: 2 / 3; scroll-snap-align: start; overflow: hidden; border-radius: 22px; background: var(--night-2); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.strip li:hover img { transform: scale(1.06); }

/* ---------- the live thing: a sky of stars, each holding a note ---------- */
.sky { margin-top: var(--gap); padding: 0 var(--m); }
.sky h2 { font-size: var(--t-head); }
.sky-field { position: relative; margin-top: 16px; height: min(78vw, 420px); border-radius: 22px; background: var(--night-2); overflow: hidden; }
.land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; pointer-events: none; filter: brightness(.64); transform: translateY(20%); }
.star { z-index: 1; }
.star {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  width: 56px; height: 56px; padding: 10px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
  transition: transform .25s var(--ease);
}
.star svg { width: 100%; height: 100%; fill: none; stroke: var(--cream); stroke-width: 5; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.star:nth-child(3n) svg { stroke: var(--bow); }
.star:hover { transform: scale(1.18); }
.star[aria-pressed="true"] svg { fill: var(--bolt); stroke: var(--bolt); }
.star.seen:not([aria-pressed="true"]) svg { fill: var(--bow); stroke: var(--bow); opacity: .55; }
.spark { position: absolute; width: 18px; pointer-events: none; }
.spark.s1 { left: 66%; top: 34%; } .spark.s2 { left: 78%; top: 32%; width: 12px; } .spark.s3 { left: 20%; top: 40%; width: 10px; }
.note {
  margin-top: 24px; min-height: 3.4em; max-width: 22ch;
  font-family: var(--display); font-size: var(--t-lead); line-height: 1.1; letter-spacing: -0.02em;
}
.note.swap { animation: note-in .45s var(--ease); }
@keyframes note-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- story: side facts, wide paragraph ---------- */
.story { margin-top: var(--gap); padding: 0 var(--m); display: grid; gap: 36px; }
.story h2 { font-size: var(--t-head); margin-bottom: 18px; }
.story-body p { font-size: var(--t-body); line-height: 1.55; max-width: 44ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; order: 2; }
.facts dt { color: var(--bow); font-size: var(--t-small); }
.facts dd { margin: 2px 0 0; font-size: var(--t-body); }

/* ---------- cta: one word is the button ---------- */
.cta {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 46svh;
  margin-top: var(--gap); padding: 22px var(--m) 20px;
  background: var(--bolt); color: var(--night); text-decoration: none; overflow: hidden;
  border-radius: 36px 36px 0 0;
}
.cta-sentence { max-width: 26ch; font-size: var(--t-body); line-height: 1.35; }
.cta-bolt { position: absolute; right: var(--m); top: 20px; width: 44px; }
.cta-bolt path { stroke: var(--night); stroke-width: 4; }
.cta-bolt .bolt-star { stroke: none; }
.cta-word { align-self: end; font: 700 30vw/.8 var(--display); letter-spacing: -0.05em; }
.cta:hover, .cta:focus-visible { background: var(--night-2); color: var(--bolt); }
.cta:focus-visible { outline-offset: -6px; }

/* ---------- footer: inverted, the name returns ---------- */
.foot { background: var(--cream); color: var(--night); }
.foot-inner { min-height: 100svh; padding: 40px var(--m) 20px; display: grid; grid-template-rows: auto 1fr auto auto auto; }
.foot-cols { display: grid; gap: 32px; }
.foot-col h2 { font: 700 var(--t-lead)/1.15 var(--display); letter-spacing: -0.01em; margin-bottom: 16px; }
.foot-col li, .foot-col p { font-size: 19px; line-height: 1.6; }
.bars-foot { margin-top: 0; }
.foot .bar { min-height: 60px; background: var(--night); color: var(--cream); }
.foot .bar .pi { width: 32px; height: 32px; }
.foot .bar .pi, .foot .bar .arrow { grid-row: auto; }
.foot .bar:hover { background: var(--bow); color: var(--night); }
.foot-col a { text-underline-offset: 3px; }
.foot-col a:hover { color: var(--bow-deep); }
.foot-help { background: var(--night); color: var(--cream); padding: 26px 28px; border-radius: 22px; }
.foot-help h2 { color: var(--bolt); }
.helplines li { font-size: 20px; line-height: 1.9; }
.helplines li span { color: var(--bow); display: inline-block; min-width: 6.5em; }
.helplines a { white-space: nowrap; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--pill); background: var(--night); color: var(--cream); text-decoration: none; font-weight: 800; }
.legal-links a:hover { background: var(--bow); color: var(--night); }
.farewell { align-self: end; margin-top: 56px; font-family: var(--display); font-size: var(--t-lead); line-height: 1.12; max-width: 24ch; }
.wordmark { margin-top: 28px; font: 700 15.5vw/.95 var(--display); letter-spacing: -0.05em; }
.legal { margin-top: 14px; font-size: var(--t-small); }

/* ---------- legal pages ---------- */
.legal-bar { padding: 16px var(--m); }
.legal-body { padding: 24px var(--m) 96px; max-width: 760px; }
.legal-body h1 { font-size: clamp(40px, 8vw, 72px); margin-bottom: 28px; }
.legal-body p { margin-bottom: 18px; max-width: 62ch; }
.legal-body .btn { margin-top: 16px; }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  .hero { min-height: 100svh; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; column-gap: 32px; }
  .hero-bar { grid-column: 1 / -1; }
  .hero-bar nav { display: flex; }
  .hero-bolt { display: none; }
  .monument { grid-column: 1 / -1; grid-row: 2; align-self: center; justify-self: center; margin-top: 16px; }
  .joy { justify-content: center; gap: .02em; font-size: min(36vw, 44svh); }
  .estrella { text-align: center; font-size: 15vw; }
  .estrella .fit { transform-origin: center top; }
  .hero-text { grid-row: 3; margin-top: 24px; }
  .hero-corner { display: block; grid-row: 3; grid-column: 2; align-self: end; justify-self: end; text-align: right; }
  .watch { grid-template-columns: 1fr minmax(300px, 34vw); align-items: center; column-gap: 6vw; }
  .player { margin: 0; aspect-ratio: 9 / 16; border-radius: 22px; }
  .strip li { flex-basis: 26vw; }
  .story { grid-template-columns: minmax(180px, 26%) 1fr; column-gap: 8%; align-items: start; }
  .story-body p { font-size: 22px; line-height: 1.45; max-width: 40ch; }
  .facts { order: 0; grid-template-columns: 1fr; padding-top: 70px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-help { grid-column: 1 / -1; }
  .cta { min-height: 60svh; border-radius: 48px 48px 0 0; }
  .cta-bolt { width: 64px; }
  .cta-word { font-size: 26vw; }
}
@media (min-width: 1100px) {
  .foot-cols { grid-template-columns: 1.3fr 1fr 1fr; }
  .foot-help { grid-column: auto; }
  .strip li { flex-basis: 19vw; }
  .sky-field { height: 460px; }
  .sky { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: 6vw; align-items: center; }
  .sky h2 { grid-column: 1; }
  .sky-field { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .note { grid-column: 1; }
}

/* ---------- motion layer (only with JS; content never waits for it) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }
@supports (animation-timeline: scroll()) {
  .joy { animation: monument linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  @keyframes monument { to { transform: scale(.93); } }
}
.o-photo img { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translateY(-2%); } }
.star:not(.seen) svg { animation: twinkle 3.2s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes twinkle { 50% { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
