/* mivelu.com · one page. Tokens match the app (ios/Dumpy/Core/CoreStyle.swift); rules: references/good-css. */
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/assets/fonts/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('/assets/fonts/nunito-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('/assets/fonts/nunito-latin-ext-900-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
:root {
  interpolate-size: allow-keywords; scrollbar-gutter: stable; text-wrap: pretty; overflow-wrap: break-word;
  font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
  color-scheme: light;
  --ink: oklch(22% 0.005 100);
  --paper: oklch(96.8% 0.003 85);
  --paper-warm: oklch(92.5% 0.028 80);
  --card: oklch(100% 0 none);
  --muted: oklch(50% 0.006 90);
  --soft: oklch(38% 0.006 90);
  --butter: oklch(91% 0.1 88);
  --butter-deep: oklch(84% 0.13 80);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --display: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --text: -apple-system, 'SF Pro Text', system-ui, 'Segoe UI', sans-serif;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --section: clamp(5rem, 3rem + 7vw, 10rem);
  --h1: clamp(2.1rem, 1rem + 6vw, 6.2rem);
  --h2: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  --body: clamp(1.06rem, 1rem + 0.25vw, 1.25rem);
}
html { scroll-padding-block-start: 5.5rem; overscroll-behavior-y: none; }
@media (any-pointer: coarse) { html { overscroll-behavior-y: auto; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-block-size: 100svh; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: var(--body); line-height: 1.55; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--display); font-weight: 900; letter-spacing: -0.025em; line-height: 1.02; }
p { margin: 0; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; user-select: none; -webkit-user-select: none; }
:focus-visible { outline: 3px solid oklch(60% 0.15 250); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 10; padding: 0.6rem 1rem; border-radius: 12px; background: var(--ink); color: white; }
.skip:focus-visible { inset-block-start: 1rem; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-block-size: 56px; padding-inline: 28px; border: none; border-radius: 28px;
  background: var(--ink); color: oklch(99% 0 none); font-size: 17px; font-weight: 650; text-decoration: none;
  box-shadow: 0 14px 30px -18px oklch(20% 0.02 90 / 0.7);
}
.button.small { white-space: nowrap; min-block-size: 44px; padding-inline: 18px; font-size: 15px; box-shadow: none; }
.button:active, .ghost:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .button:hover { background: color-mix(in oklch, var(--ink), white 14%); } }
@media (prefers-reduced-motion: no-preference) { .button, .ghost { transition: scale 140ms var(--ease-out), background-color 180ms var(--ease-out); } }
.ghost { min-block-size: 44px; padding-inline: 14px; border: none; background: none; color: var(--muted); font-size: 15px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-block-size: 56px; padding-inline: 18px 22px; border-radius: 16px;
  background: oklch(100% 0 none / 0.75); color: var(--ink); box-shadow: inset 0 0 0 1px oklch(20% 0.01 90 / 0.08);
}
.store-badge svg { inline-size: 24px; flex: none; }
.store-badge span { display: flex; flex-direction: column; font-weight: 700; font-size: 17px; line-height: 1.1; }
.store-badge small { font-size: 11px; font-weight: 500; color: var(--muted); }
.store-badge.light { background: oklch(100% 0 none / 0.55); }

/* Navigation: floats on glass over the hero */
.nav {
  position: sticky; inset-block-start: 0; z-index: 5; display: flex; align-items: center; gap: 1.5rem;
  padding-block: 14px; padding-inline: var(--gutter);
  background: oklch(97% 0.03 90 / 0.6); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
.logo { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; }
.logo img { inline-size: 36px; border-radius: 10px; box-shadow: 0 6px 14px -8px oklch(40% 0.1 70 / 0.6); }
.nav nav { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.nav nav a { font-size: 15px; font-weight: 550; text-decoration: none; color: var(--soft); }
@media (hover: hover) and (pointer: fine) { .nav nav a:hover { color: var(--ink); } }

/* Hero */
.hero {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem;
  padding-block: clamp(1rem, 4vh, 3rem) var(--section); padding-inline: var(--gutter); overflow: clip;
  background:
    radial-gradient(60rem 36rem at 50% 18%, oklch(97% 0.07 92), transparent 70%),
    radial-gradient(40rem 30rem at 85% 70%, oklch(93% 0.06 60 / 0.55), transparent 70%),
    linear-gradient(oklch(95% 0.05 88), var(--paper));
}
.hero-stage { position: relative; inline-size: min(100%, 64rem); block-size: clamp(280px, 15rem + 11vw, 450px); }
.orb-mivelu { container-type: inline-size; position: absolute; inset-inline-start: 50%; inset-block-start: 50%; inline-size: clamp(230px, 14rem + 12vw, 440px); aspect-ratio: 1; translate: -50% -50%; isolation: isolate; }
.mivelu-hero { position: relative; z-index: 50; inline-size: 100%; filter: drop-shadow(0 40px 40px oklch(55% 0.1 75 / 0.25)); }
.ground { position: absolute; z-index: 1; inset-inline: 22%; inset-block-end: 6%; block-size: 9%; border-radius: 50%; background: radial-gradient(closest-side, oklch(50% 0.08 75 / 0.22), transparent); }
.moon { position: absolute; z-index: 10; inline-size: 9%; translate: 30cqi -10cqi; aspect-ratio: 1; border-radius: 50%; inset-inline-start: 46%; inset-block-start: 46%; }
.m1 { background: radial-gradient(circle at 35% 30%, white, oklch(78% 0.1 250) 60%); box-shadow: 0 0 18px 3px oklch(78% 0.1 250 / 0.6); }
.m2 { background: radial-gradient(circle at 35% 30%, white, oklch(78% 0.12 10) 60%); box-shadow: 0 0 18px 3px oklch(78% 0.12 10 / 0.6); }
.m3 { background: radial-gradient(circle at 35% 30%, white, oklch(85% 0.11 80) 60%); box-shadow: 0 0 18px 3px oklch(85% 0.11 80 / 0.7); inline-size: 7%; }
.hero h1 { font-size: var(--h1); max-inline-size: 13ch; }
.lede { max-inline-size: 36rem; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); color: var(--soft); }
.pause {
  position: absolute; inset-inline-end: var(--gutter); inset-block-end: 1.5rem; display: grid; place-items: center; inline-size: 44px; block-size: 44px;
  border: none; border-radius: 50%; background: oklch(100% 0 none / 0.7); color: var(--ink);
}
.pause svg { inline-size: 16px; }
.pause:active { scale: 0.95; }
@media (prefers-reduced-motion: reduce) { .pause { display: none; } }
html.still *, html.still *::before, html.still *::after { animation-play-state: paused !important; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-block-start: 0.4rem; }

/* Floating layers at their own depth (canvas "schwebende Ebenen"): far ones are smaller and softly blurred. */
.layer { position: absolute; z-index: 60; }
.layer.far { filter: blur(1.5px); opacity: 0.8; scale: 0.88; z-index: 5; }
.l1 { inset-inline-start: 6%; inset-block-start: 14%; }
.l2 { inset-inline-end: 6%; inset-block-start: 6%; }
.l3 { inset-inline-start: 12%; inset-block-end: 6%; }
.l4 { inset-inline-end: 14%; inset-block-end: 14%; }
.chip-feel { display: inline-flex; align-items: center; gap: 2px; padding: 4px 16px 4px 4px; border-radius: 999px; background: var(--tint, white); font-weight: 700; font-size: 16px; box-shadow: 0 18px 30px -20px oklch(30% 0.05 70 / 0.5); }
.chip-feel .sprite { --s: 46px; }
.mini-print { margin: 0; inline-size: clamp(110px, 6rem + 4vw, 160px); padding: 8px 8px 26px; border-radius: 4px; background: linear-gradient(160deg, oklch(99.5% 0.002 90), oklch(96.5% 0.004 90)); rotate: 6deg; box-shadow: 0 26px 40px -22px oklch(25% 0.05 60 / 0.5); }
.mini-print img { inline-size: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 70%; border-radius: 2px; }
.mini-print figcaption { position: absolute; inset-inline-end: 12px; inset-block-end: 6px; font-family: 'Bradley Hand', 'Segoe Print', cursive; font-size: 13px; color: var(--muted); }
.task-mini { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 20px; background: white; font-weight: 600; font-size: 15px; box-shadow: 0 18px 30px -20px oklch(30% 0.05 70 / 0.5); }
.tick { display: grid; place-items: center; inline-size: 22px; block-size: 22px; border-radius: 50%; background: var(--ink); }
.tick::after { content: ''; inline-size: 9px; block-size: 5px; border-inline-start: 2px solid white; border-block-end: 2px solid white; rotate: -45deg; translate: 0 -1px; }

@media (prefers-reduced-motion: no-preference) {
  /* Anticipation and squash on arrival, then the moons settle into a tilted orbit (depth sorts them around the body). */
  .orb-mivelu { animation: arrive-mivelu 1100ms var(--spring) both 120ms; }
  /* Two independent axes, half a period apart, make an ellipse; depth (scale, z-index) follows the vertical axis. */
  .moon { animation: orbit-x var(--d) var(--ease-in-out) infinite alternate, orbit-y var(--d) var(--ease-in-out) infinite alternate, orbit-z var(--d) var(--ease-in-out) infinite alternate, moon-in 900ms var(--ease-out) both 700ms;
    animation-delay: var(--p), calc(var(--p) - var(--d) / 2), calc(var(--p) - var(--d) / 2), var(--in); }
  .m1 { --d: 5.2s; --p: -1s; --in: 700ms; }
  .m2 { --d: 6.4s; --p: -3.8s; --in: 850ms; }
  .m3 { --d: 4.4s; --p: -2.2s; --in: 1000ms; }
  .layer { animation: layer-in 1000ms var(--ease-out) both; }
  .l1 { animation-delay: 650ms; } .l2 { animation-delay: 800ms; } .l3 { animation-delay: 950ms; } .l4 { animation-delay: 1100ms; }
  .layer > * { animation: drift var(--drift, 7s) var(--ease-in-out) infinite alternate; }
  .l2 > * { --drift: 8.5s; } .l3 > * { --drift: 6.4s; } .l4 > * { --drift: 9s; }
  .hero h1, .lede, .hero .cta-row { animation: rise 800ms var(--ease-out) both; }
  .hero h1 { animation-delay: 300ms; } .lede { animation-delay: 420ms; } .hero .cta-row { animation-delay: 540ms; }
}
@keyframes arrive-mivelu { 0% { opacity: 0; transform: translateY(40px) scale(0.7, 0.62); } 55% { opacity: 1; transform: translateY(-10px) scale(1.04, 0.97); } 78% { transform: translateY(2px) scale(0.99, 1.02); } 100% { opacity: 1; transform: none; } }
@keyframes orbit-x { from { translate: -44cqi 6cqi; } to { translate: 44cqi -6cqi; } }
@keyframes orbit-y { from { transform: translateY(-13cqi) scale(0.7); opacity: 0.85; } to { transform: translateY(13cqi) scale(1.2); opacity: 1; } }
@keyframes orbit-z { from { z-index: 10; } to { z-index: 90; } }
@keyframes moon-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes layer-in { from { opacity: 0; translate: 0 26px; } }
@keyframes drift { from { translate: 0 -6px; } to { translate: 0 8px; } }
@keyframes rise { from { opacity: 0; translate: 0 18px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: none; } }

/* Chapters */
.chapter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center;
  inline-size: min(100% - var(--gutter) * 2, 72rem); margin-inline: auto; padding-block: var(--section) 0;
}
.chapter.flip .chapter-text { order: 2; }
.chapter-text { display: flex; flex-direction: column; gap: 1.2rem; }
.chapter-text h2 { font-size: var(--h2); }
.chapter-text p { max-inline-size: 30rem; color: var(--ink); }
.chapter-text.center { align-self: stretch; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 28px; background: var(--card); box-shadow: 0 30px 60px -40px oklch(30% 0.05 70 / 0.45); }
.card-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--muted); }
.card-label svg { inline-size: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* Sprites: 16 frames side by side; JS moves the frame now and then */
.sprite { display: inline-block; flex: none; inline-size: var(--s, 64px); block-size: var(--s, 64px); background-repeat: no-repeat; background-size: 1600% 100%; background-position: 0 0; transform-origin: 50% 96%; }

/* Demo 1: listening */
.demo { position: relative; }
.hear { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: 36px; background: linear-gradient(170deg, oklch(98.5% 0.02 90), var(--paper-warm)); }
.hear-mivelu { container-type: inline-size; position: relative; inline-size: 150px; block-size: 150px; isolation: isolate; }
.mivelu-sprite { position: absolute; inset: 20%; z-index: 50; --s: 90px; }
.hear-mivelu .moon { inline-size: 12px; inset-inline-start: 46%; inset-block-start: 46%; box-shadow: 0 0 10px 2px oklch(100% 0 none / 0.6); }
.d1 { background: radial-gradient(circle at 35% 30%, white, oklch(93% 0.03 340) 55%); }
.d2 { background: radial-gradient(circle at 35% 30%, white, oklch(94% 0.04 95) 55%); }
.d3 { background: radial-gradient(circle at 35% 30%, white, oklch(92% 0.03 250) 55%); }
.hear-caption { font-size: 15px; color: var(--muted); min-block-size: 1.5em; }
.hear-card { padding: 20px 22px; border-radius: 24px; background: white; font-size: 17px; line-height: 1.65; color: oklch(30% 0.006 90); box-shadow: 0 20px 40px -32px oklch(30% 0.05 70 / 0.5); }
.hear-card mark { background: linear-gradient(var(--c), var(--c)) no-repeat 0 100% / 0% 0.42em; color: inherit; }
.hear-card mark.on { background-size: 100% 0.42em; }
@media (prefers-reduced-motion: no-preference) { .hear-card mark { transition: background-size 650ms var(--ease-out); } }
.hear .orb { position: absolute; z-index: 60; inline-size: 16px; block-size: 16px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, white, var(--c) 60%); box-shadow: 0 0 16px 4px var(--c); }
@media (prefers-reduced-motion: no-preference) { .hear .orb { animation: orb-fly 900ms var(--ease-in-out) forwards; } }
@keyframes orb-fly { 0% { opacity: 0; transform: none; } 12% { opacity: 1; } 100% { opacity: 0.3; transform: translate(var(--dx), var(--dy)) scale(0.5); } }
.heard { display: flex; flex-direction: column; align-items: center; gap: 6px; min-block-size: 140px; opacity: 0; }
.heard.on { opacity: 1; }
.heard-title { font-family: var(--display); font-weight: 900; font-size: 20px; text-align: center; }
.heard-stage { display: flex; align-items: end; justify-content: center; }
.heard-stage .fig { margin-inline: -6px; }
@media (prefers-reduced-motion: no-preference) {
  .heard { transition: opacity 400ms var(--ease-out); }
  .heard.on .fig { animation: stagein 820ms var(--spring) both; }
  .heard.on .fig:nth-child(2) { animation-delay: 110ms; } .heard.on .fig:nth-child(3) { animation-delay: 220ms; }
}
@keyframes stagein { 0% { opacity: 0; transform: translateY(-90px) scale(0.3); } 100% { opacity: 1; transform: none; } }

/* Demo 2: patterns */
.patterns { display: flex; flex-direction: column; gap: 14px; }
.bars { display: flex; align-items: end; gap: 10px; block-size: 170px; padding-block-start: 10px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bars .stack { display: flex; flex-direction: column-reverse; inline-size: min(100%, 30px); border-radius: 8px; overflow: clip; transform-origin: bottom; }
.bars .stack i { display: block; }
.bars small { font-size: 11px; color: var(--muted); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .bars .stack { scale: 1 0; transition: scale 900ms var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
  .patterns.on .bars .stack { scale: 1 1; }
}
.insight { flex-direction: row; align-items: center; gap: 14px; }
.insight > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.insight small { font-size: 12px; color: var(--muted); }
.insight strong { font-size: 19px; }
.insight span span { color: var(--soft); font-size: 15px; }

/* Demo 3: tasks */
.tasks { display: flex; flex-direction: column; gap: 14px; }
.suggestion strong { font-size: 20px; line-height: 1.3; }
.suggestion .row { display: flex; gap: 6px; align-items: center; }
.suggestion.gone { opacity: 0; scale: 0.96; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .suggestion { transition: opacity 260ms var(--ease-out), scale 260ms var(--ease-out); } }
.list { gap: 0; padding-block: 12px; }
.todo { display: flex; align-items: center; gap: 12px; min-block-size: 52px; cursor: pointer; font-size: 17px; }
.todo + .todo { border-block-start: 1px solid oklch(94% 0.003 90); }
.todo input { appearance: none; margin: 0; flex: none; inline-size: 26px; block-size: 26px; border-radius: 50%; border: 2px solid oklch(80% 0.005 90); display: grid; place-content: center; cursor: pointer; }
.todo input:checked { background: var(--ink); border-color: var(--ink); }
.todo input:checked::after { content: ''; inline-size: 10px; block-size: 6px; border-inline-start: 2px solid white; border-block-end: 2px solid white; rotate: -45deg; translate: 0 -1px; }
.todo input:checked + span { color: var(--muted); text-decoration: line-through; }
.todo input:active { scale: 0.9; }
@media (prefers-reduced-motion: no-preference) {
  .todo input { transition: scale 140ms var(--ease-out), background-color 200ms var(--ease-out); }
  .todo.new:not([hidden]) { animation: arrive 560ms var(--ease-out) both; }
}
@keyframes arrive { 0% { opacity: 0; transform: translateY(18px) scale(0.97); } 70% { opacity: 1; transform: translateY(-2px); } 100% { opacity: 1; transform: none; } }

/* Demo 4: prints */
.prints-chapter { grid-template-columns: minmax(0, 1fr); justify-items: stretch; overflow-x: clip; overflow-y: visible; }
.prints { inline-size: 100%; display: flex; justify-content: center; align-items: center; padding-block: 2rem 5rem; perspective: 1200px; }
.print { position: relative; margin: 0; flex: none; inline-size: clamp(130px, 6rem + 10vw, 280px); padding: 12px 12px 0; border-radius: 6px; background: linear-gradient(160deg, oklch(99.5% 0.002 90), oklch(96.5% 0.004 90)); box-shadow: 0 1px 0 white inset, 0 24px 36px -26px oklch(25% 0.05 60 / 0.45), 0 2px 6px -3px oklch(25% 0.05 60 / 0.2); }
.print .photo { position: relative; display: block; overflow: clip; border-radius: 2px; background: oklch(96% 0.012 80); }
.print img { inline-size: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.print figcaption { white-space: nowrap; display: flex; justify-content: space-between; align-items: center; block-size: 52px; padding-inline: 4px; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.print b { font-size: 14px; color: oklch(30% 0.01 90); letter-spacing: 0.06em; }
.p1 { rotate: -7deg; translate: 18% 6%; z-index: 1; }
.p2 { z-index: 2; }
.p3 { rotate: 6deg; translate: -18% 8%; z-index: 1; }
.chem { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, oklch(38% 0.03 230), oklch(26% 0.03 240)); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .prints .print { transition: rotate 700ms var(--spring), translate 700ms var(--spring); }
  .prints:not(.on) .p1 { rotate: 0deg; translate: 60% 0; }
  .prints:not(.on) .p3 { rotate: 0deg; translate: -60% 0; }
  .prints.on .develop img { animation: develop 4.2s var(--ease-in-out) both 400ms; }
  .prints.on .develop .chem { animation: chem 4.2s var(--ease-in-out) both 400ms; }
  .prints:not(.on) .develop .chem { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .prints.on .print:hover { translate: 0 -12px; rotate: 0deg; z-index: 3; }
}
@keyframes develop { 0% { filter: brightness(0.35) saturate(0) contrast(0.6) blur(1px); } 35% { filter: brightness(0.75) saturate(0.25) contrast(0.8); } 100% { filter: none; } }
@keyframes chem { 0% { opacity: 1; } 100% { opacity: 0; } }

/* The cast: native horizontal scroll */
.cast { padding-block: var(--section) 0; display: flex; flex-direction: column; gap: 2.5rem; }
.cast .chapter-text { inline-size: min(100% - var(--gutter) * 2, 60rem); margin-inline: auto; }
.cast-row {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  padding-block: 10px 24px; overscroll-behavior-x: contain; scrollbar-width: none;
}
.cast-row::-webkit-scrollbar { display: none; }
.cast-row .being { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; inline-size: 132px; padding: 14px 8px 16px; border-radius: 28px; background: var(--tint); }
.cast-row .being .sprite { --s: 96px; }
.cast-row .being span { font-weight: 700; font-size: 15px; }

/* Private */
.private {
  margin-block-start: var(--section); padding-block: var(--section); padding-inline: var(--gutter);
  display: grid; grid-template-columns: auto minmax(0, calc(64rem - 120px - 3rem)); justify-content: center; align-items: center; column-gap: clamp(1.5rem, 1rem + 2vw, 3rem); row-gap: 1.6rem;
  background: radial-gradient(50rem 30rem at 30% 0%, oklch(32% 0.03 270), oklch(20% 0.012 270) 70%); color: oklch(96% 0.01 270);
}
.private-mivelu { inline-size: 120px; filter: drop-shadow(0 20px 30px oklch(80% 0.1 300 / 0.25)); }
.private h2 { font-size: var(--h2); }
.promises { grid-column: 1 / -1; list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 14px; inline-size: min(100%, 64rem); text-align: start; }
.promises li { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 26px; background: oklch(100% 0 none / 0.06); box-shadow: inset 0 0 0 1px oklch(100% 0 none / 0.08); }
.promises strong { font-family: var(--display); font-weight: 800; font-size: 20px; }
.promises span { color: oklch(82% 0.01 270); font-size: 16px; }

/* Final */
.final { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; text-align: center; padding-block: var(--section); padding-inline: var(--gutter); background: linear-gradient(var(--paper), oklch(94% 0.07 88)); }
.final h2 { font-size: var(--h2); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; overflow: clip; gap: 1rem; padding-block: 2rem max(2rem, env(safe-area-inset-bottom, 0px)); padding-inline: var(--gutter); background: oklch(94% 0.07 88); font-size: 14px; }
.footer .logo { font-size: 18px; }
.wordmark { grid-column: 1 / -1; inline-size: 100%; margin-block-end: 1rem; font-family: var(--display); font-weight: 900; font-size: 23.5vw; line-height: 0.8; letter-spacing: -0.05em; color: oklch(88% 0.11 85); }
.footer .logo img { inline-size: 28px; border-radius: 8px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer a { text-decoration: none; color: var(--soft); }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--ink); text-decoration: underline; } }

/* Legal pages */
.legal { inline-size: min(100% - var(--gutter) * 2, 44rem); margin: 3rem auto 6rem; display: flex; flex-direction: column; gap: 1rem; }
.legal h1 { font-size: var(--h2); }
.legal h2 { font-size: 1.4rem; margin-block-start: 1.4rem; }
.legal h3 { font-family: var(--text); font-weight: 700; letter-spacing: 0; font-size: 1.05rem; margin-block-start: 0.6rem; }
.legal ul { margin: 0; padding-inline-start: 1.2em; display: flex; flex-direction: column; gap: 0.4rem; }
.legal a { text-underline-offset: 2px; }
.quiet-date { color: var(--muted); }
.summary { padding: 20px 24px; border-radius: 24px; background: oklch(94% 0.06 88); display: flex; flex-direction: column; gap: 0.6rem; }
.summary h2 { margin-block-start: 0; }
.facts { display: grid; grid-template-columns: minmax(10rem, max-content) minmax(0, 1fr); gap: 0.9rem 2rem; margin: 1rem 0 0; }
.facts dt { font-weight: 650; color: var(--muted); }
.facts dd { margin: 0; }
@media (width < 40rem) { .facts { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; } .facts dd { margin-block-end: 0.8rem; } }
.legal .todo-note { padding: 14px 18px; border-radius: 16px; background: oklch(94% 0.06 85); }

/* Phones: one column, the floating layers move closer to Mivelu */
@media (width < 52rem) {
  .nav nav { display: none; }
  .nav .button { margin-inline-start: auto; }
  .chapter { grid-template-columns: minmax(0, 1fr); }
  .chapter.flip .chapter-text { order: 0; }
  .private { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .private-mivelu { justify-self: start; inline-size: 96px; }
  .l1 { inset-inline-start: 0; inset-block-start: 8%; }
  .l2 { inset-inline-end: 0; inset-block-start: 2%; }
  .l3 { inset-inline-start: 0; inset-block-end: 2%; }
  .l4 { inset-inline-end: 0; inset-block-end: 10%; }
  .chip-feel { font-size: 14px; }
  .chip-feel .sprite { --s: 38px; }
  .mini-print { inline-size: 86px; padding: 5px 5px 16px; }
  .mini-print figcaption { font-size: 10px; inset-block-end: 2px; }
  .l2 { inset-inline-end: -4px; inset-block-start: -2%; }
  .nav { gap: 0.75rem; }
  .logo { font-size: 20px; }
  .task-mini { font-size: 13px; padding: 10px 14px 10px 10px; }
  .bars .col:nth-child(even) small { visibility: hidden; }
  .print { inline-size: 128px; padding: 7px 7px 0; }
  .print figcaption { block-size: 34px; font-size: 8px; letter-spacing: 0.04em; }
  .print b { font-size: 11px; }
}
