/* Choichu main page: one day with Choichu, 07:40 to 23:30.
   The sky colour and the ink follow the time of day as the page scrolls. */

:root {
  /* skies, one per moment of the day */
  --sky-dawn: oklch(92% 0.055 62);
  --sky-morning: oklch(92.5% 0.045 228);
  --sky-noon: oklch(96% 0.04 98);
  --sky-cafe: oklch(93% 0.075 90);
  --sky-mint: oklch(92% 0.06 165);
  --sky-gold: oklch(86% 0.105 78);
  --sky-sunset: oklch(74% 0.14 44);
  --sky-dusk: oklch(38% 0.095 300);
  --sky-night: oklch(27% 0.07 268);
  --sky-deep: oklch(18% 0.04 262);
  --sky-weekend: oklch(94% 0.04 200);
  --sky-paper: oklch(97% 0.012 85);

  --ink-day: oklch(23% 0.025 55);
  --ink-night: oklch(95% 0.02 85);
  --heart: oklch(60% 0.21 25);
  --on-heart: oklch(99% 0.01 85);
  --sun: oklch(78% 0.17 70);
  --moon: oklch(94% 0.04 98);
  --dino: oklch(83% 0.06 170);
  --paint-0: oklch(97% 0.01 90);
  --paint-1: oklch(58% 0.21 27);
  --paint-2: oklch(87% 0.17 95);
  --paint-3: oklch(45% 0.16 262);
  --paint-line: oklch(20% 0.01 60);
  --card-back: oklch(40% 0.12 285);
  --card-face: oklch(96% 0.03 90);
  --card-ink: oklch(25% 0.05 285);

  --font-display: "Hahmlet", "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --nav-h: 64px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-pill: 999px;
  --r-card: 24px;

  --sky: var(--sky-dawn);
  --ink: var(--ink-day);
}
html[data-ink="night"] { --ink: var(--ink-night); }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  background: var(--sky-paper); color: var(--ink-day);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.js body { background: var(--sky); color: var(--ink); transition: color .5s var(--ease); }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--heart); outline-offset: 3px; border-radius: 8px; }

html[data-lang="ko"] .en, html[data-lang="en"] .ko { display: none !important; }
[hidden] { display: none !important; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--s-4); top: -80px; z-index: 50; padding: var(--s-3) var(--s-4); background: var(--ink-day); color: var(--sky-paper); border-radius: 12px; }
.skip:focus { top: var(--s-3); }

/* sections carry their own sky when scripting is off */
[data-sky] { background: var(--sec); }
[data-night] { color: var(--ink-night); }
.js [data-sky] { background: transparent; }
.js [data-night] { color: inherit; }
[data-sky="dawn"] { --sec: var(--sky-dawn); }
[data-sky="morning"] { --sec: var(--sky-morning); }
[data-sky="noon"] { --sec: var(--sky-noon); }
[data-sky="cafe"] { --sec: var(--sky-cafe); }
[data-sky="mint"] { --sec: var(--sky-mint); }
[data-sky="gold"] { --sec: var(--sky-gold); }
[data-sky="sunset"] { --sec: var(--sky-sunset); }
[data-sky="dusk"] { --sec: var(--sky-dusk); }
[data-sky="night"] { --sec: var(--sky-night); }
[data-sky="deep"] { --sec: var(--sky-deep); }
[data-sky="weekend"] { --sec: var(--sky-weekend); }
[data-sky="paper"] { --sec: var(--sky-paper); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); background: color-mix(in oklab, var(--sky) 84%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav-in { display: flex; align-items: center; gap: var(--s-4); height: 100%; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 800; font-size: 1.3125rem; text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 22px; height: 22px; fill: var(--heart); }
.chip { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1rem; padding: 2px var(--s-3); border-radius: var(--r-pill); border: 1.5px solid color-mix(in oklab, currentColor 28%, transparent); }
.nav-links { display: flex; gap: var(--s-1); margin-left: auto; }
.nav-links a { display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-pill); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: background-color .15s var(--ease); }
.nav-links a:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.lang { display: flex; border: 1.5px solid color-mix(in oklab, currentColor 28%, transparent); border-radius: var(--r-pill); overflow: hidden; }
.lang button { min-width: 44px; height: 36px; padding: 0 var(--s-3); border: 0; background: transparent; font-size: .875rem; font-weight: 600; cursor: pointer; }
.lang button:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--sky); }
.lang button:focus-visible { outline-offset: -3px; }

/* ---------- the day: track on the left, sticky dial on the right ---------- */
.day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); column-gap: clamp(32px, 6vw, 96px); }
.stage { position: sticky; top: var(--nav-h); align-self: start; height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; gap: var(--s-5); }
html:not(.js) .stage { display: none; }

.dial { position: relative; width: min(100%, 60svh, 540px); aspect-ratio: 1; margin-inline: auto; }
.dial-pics { position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; background: color-mix(in oklab, currentColor 10%, transparent); }
.dial-pics img, .dial-pics video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), filter .4s var(--ease); }
.dial-pics .on { opacity: 1; }
.dial-pics img.on { animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.05); } }
.dial-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-ring line { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; opacity: .35; }
.dial-ring line.h { stroke-width: 2.5; opacity: .7; }
.dial-ring text { fill: currentColor; font-family: var(--font-display); font-weight: 700; font-size: 15px; text-anchor: middle; dominant-baseline: central; opacity: .75; }
.dial-orb { position: absolute; inset: 0; transform: rotate(var(--a, 0deg)); pointer-events: none; }
.dial-orb i { position: absolute; top: -2px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px color-mix(in oklab, var(--sun) 30%, transparent); transition: background-color .5s var(--ease), box-shadow .5s var(--ease); }
html[data-ink="night"] .dial-orb i { background: var(--moon); box-shadow: 0 0 0 6px color-mix(in oklab, var(--moon) 18%, transparent); }

.stage-read { display: flex; align-items: baseline; justify-content: center; gap: var(--s-4); }
.stage-read b { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.5rem, 6.4vw, 6rem); line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stage-read span { font-size: 1.125rem; font-weight: 600; }

.rail { display: flex; justify-content: center; gap: var(--s-1); flex-wrap: wrap; }
.rail button { width: 44px; height: 44px; padding: 5px; border: 0; background: transparent; border-radius: 14px; cursor: pointer; opacity: .45; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.rail button img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
.rail button:hover { opacity: .85; }
.rail button:active { transform: scale(.94); }
.rail button[aria-current="true"] { opacity: 1; transform: scale(1.14); }

/* ---------- hero ---------- */
.hero { min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s-5); padding: var(--s-7) 0 var(--s-8); }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: 1.1; letter-spacing: -.025em; overflow-wrap: break-word; min-width: 0; word-break: keep-all; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 34ch; word-break: keep-all; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn { display: inline-flex; align-items: center; gap: var(--s-2); height: 52px; padding: 0 var(--s-5); border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--ink); color: var(--sky); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
html:not(.js) .btn { border-color: currentColor; background: var(--ink-day); color: var(--sky-paper); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: inherit; border-color: color-mix(in oklab, currentColor 55%, transparent); }
html:not(.js) .btn.ghost { background: transparent; color: inherit; }
.btn.ghost:hover { border-color: currentColor; }
.btn.small { height: 44px; padding: 0 var(--s-4); font-size: .9375rem; }
.now { display: inline-flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2); border-radius: var(--r-pill); background: color-mix(in oklab, currentColor 8%, transparent); text-decoration: none; font-weight: 500; transition: background-color .2s var(--ease); }
.now:hover { background: color-mix(in oklab, currentColor 14%, transparent); }
.now img { width: 40px; height: 40px; border-radius: 12px; }
.now b { font-weight: 700; }
.facts { display: flex; gap: var(--s-6); margin-top: var(--s-4); }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dd { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.facts dt { font-size: .875rem; opacity: .75; }

/* ---------- moments ---------- */
.moment { min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s-4); padding: var(--s-8) 0; }
.m-pic { display: none; }
.m-time { display: flex; align-items: baseline; gap: var(--s-3); }
.m-time b { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.m-time span { font-weight: 600; opacity: .8; }
.m-app { display: flex; align-items: center; gap: var(--s-4); }
.m-app > img { width: 72px; height: 72px; border-radius: 20px; flex: none; box-shadow: 0 6px 20px color-mix(in oklab, var(--ink-day) 18%, transparent); }
.m-app h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.12; letter-spacing: -.02em; overflow-wrap: break-word; min-width: 0; word-break: keep-all; }
.m-desc { font-size: .9375rem; opacity: .78; }
.m-line { font-size: clamp(1.125rem, 1.7vw, 1.4375rem); font-weight: 500; max-width: 26ch; word-break: keep-all; }
.m-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.m-find { font-size: .875rem; opacity: .78; }

/* ---------- toys ---------- */
.toy { width: min(100%, 460px); padding: var(--s-5); border-radius: var(--r-card); background: color-mix(in oklab, currentColor 7%, transparent); display: flex; flex-direction: column; gap: var(--s-4); }
.toy:empty { display: none; }
.toy-label { font-size: .875rem; font-weight: 600; opacity: .75; }
.toy-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.toy-out { min-height: 1.6em; font-weight: 600; }
.toy-big { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.25; word-break: keep-all; }
.pop { animation: pop .45s var(--ease); }
@keyframes pop { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tbtn { min-height: 44px; padding: 0 var(--s-4); border: 1.5px solid color-mix(in oklab, currentColor 45%, transparent); border-radius: var(--r-pill); background: transparent; font-weight: 600; font-size: .9375rem; cursor: pointer; transition: background-color .15s var(--ease), transform .12s var(--ease), border-color .15s var(--ease); }
.tbtn:hover { border-color: currentColor; background: color-mix(in oklab, currentColor 8%, transparent); }
.tbtn:active { transform: scale(.96); }
.tbtn:disabled { opacity: .45; cursor: not-allowed; }
.tbtn[aria-pressed="true"], .tbtn.solid { background: var(--ink); color: var(--sky); border-color: var(--ink); }
html:not(.js) .tbtn.solid { background: var(--ink-day); color: var(--sky-paper); }

/* 5초 사자성어 */
.q-bar { height: 8px; border-radius: var(--r-pill); background: color-mix(in oklab, currentColor 14%, transparent); overflow: hidden; }
.q-bar i { display: block; height: 100%; background: var(--heart); transform-origin: 0 50%; transform: scaleX(0); }
.q-bar.run i { animation: drain 5s linear forwards; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* 모두의 키캡 */
.keys { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.key { width: 52px; height: 52px; border: 0; border-radius: 12px; background: var(--sky-paper); color: var(--ink-day); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; cursor: pointer; box-shadow: 0 6px 0 color-mix(in oklab, var(--ink-day) 30%, var(--sky-paper)), 0 8px 14px color-mix(in oklab, var(--ink-day) 18%, transparent); transition: transform .06s linear, box-shadow .06s linear; }
.key:nth-child(3n+1) { background: var(--sky-morning); }
.key:nth-child(3n+2) { background: var(--sky-cafe); }
.key:hover { transform: translateY(-1px); }
.key:active, .key.down { transform: translateY(5px); box-shadow: 0 1px 0 color-mix(in oklab, var(--ink-day) 30%, var(--sky-paper)), 0 2px 4px color-mix(in oklab, var(--ink-day) 18%, transparent); }

/* 궁합 */
.field { display: flex; flex-direction: column; gap: var(--s-1); font-size: .875rem; font-weight: 600; flex: 1 1 120px; min-width: 0; }
.field input { height: 44px; padding: 0 var(--s-3); border-radius: 12px; border: 1.5px solid color-mix(in oklab, currentColor 40%, transparent); background: transparent; font-size: 1rem; font-weight: 500; width: 100%; }
.field input::placeholder { color: inherit; opacity: .5; }
.field input:hover { border-color: currentColor; }

/* 큰글자 */
.big-list { font-weight: 700; font-size: calc(1rem * var(--z, 1)); line-height: 1.5; word-break: keep-all; }
.range { width: 100%; height: 44px; accent-color: var(--heart); cursor: pointer; }

/* 리코더 */
.pipe { display: flex; align-items: center; gap: var(--s-1); padding: var(--s-2) var(--s-3); border-radius: var(--r-pill); background: var(--sky-paper); color: var(--ink-day); box-shadow: inset 0 -6px 0 color-mix(in oklab, var(--ink-day) 10%, transparent); overflow-x: auto; }
.hole { flex: 1 1 0; min-width: 0; max-width: 44px; aspect-ratio: 1; padding: 0; border-radius: 50%; border: 2px solid var(--ink-day); background: transparent; font-size: .8125rem; font-weight: 700; cursor: pointer; transition: background-color .1s linear, transform .1s linear; }
.hole:hover { background: color-mix(in oklab, var(--ink-day) 10%, transparent); }
.hole:active, .hole.down { background: var(--ink-day); color: var(--sky-paper); transform: scale(.92); }

/* 레트로 사진관: the filter lands on the big picture */
html[data-film="sepia"] .pic-m1930 { filter: sepia(.8) contrast(1.06) saturate(.8) brightness(1.03); }
html[data-film="mono"] .pic-m1930 { filter: grayscale(1) contrast(1.18); }

/* 명화 색칠하기 */
.paint { width: min(100%, 260px); border-radius: 8px; }
.paint rect { stroke: var(--paint-line); stroke-width: 5; fill: var(--paint-0); cursor: pointer; transition: fill .25s var(--ease); }
.paint rect[data-n="0"] { cursor: default; }
.paint rect:hover:not(.done):not([data-n="0"]) { fill: color-mix(in oklab, var(--paint-0) 82%, var(--paint-line)); }
.paint rect:focus-visible { outline: 3px solid var(--heart); outline-offset: -5px; }
.paint rect.done[data-n="1"] { fill: var(--paint-1); }
.paint rect.done[data-n="2"] { fill: var(--paint-2); }
.paint rect.done[data-n="3"] { fill: var(--paint-3); }
.paint text { font-family: var(--font-display); font-weight: 700; font-size: 20px; fill: var(--paint-line); text-anchor: middle; dominant-baseline: central; pointer-events: none; opacity: .6; }
.paint rect.done + text { opacity: 0; }
.swatch { display: inline-flex; align-items: center; gap: var(--s-2); font-size: .875rem; font-weight: 600; }
.swatch i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid currentColor; }
.swatch .p1 { background: var(--paint-1); } .swatch .p2 { background: var(--paint-2); } .swatch .p3 { background: var(--paint-3); }

/* 공짜타로 */
.cards { display: flex; gap: var(--s-3); perspective: 800px; }
.card { position: relative; flex: 1 1 0; max-width: 110px; aspect-ratio: 5 / 8; padding: 0; border: 0; background: transparent; cursor: pointer; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card.open { transform: rotateY(180deg); cursor: default; }
.card:disabled { cursor: default; }
.card span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.card .back { background: var(--card-back); background-image: radial-gradient(circle at 50% 50%, transparent 0 26%, color-mix(in oklab, var(--moon) 55%, transparent) 27% 29%, transparent 30%), repeating-conic-gradient(from 0deg, color-mix(in oklab, var(--moon) 14%, transparent) 0 10deg, transparent 10deg 20deg); border: 2px solid color-mix(in oklab, var(--moon) 60%, transparent); }
.card .face { transform: rotateY(180deg); background: var(--card-face); color: var(--card-ink); padding: var(--s-2); font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; text-align: center; line-height: 1.25; border: 2px solid var(--card-ink); word-break: keep-all; }

/* ---------- voice + tour bar ---------- */
.btn-voice { display: inline-flex; align-items: center; gap: var(--s-2); height: 48px; padding: 0 var(--s-5) 0 var(--s-4); border: 0; border-radius: var(--r-pill); background: var(--heart); color: var(--on-heart); font-weight: 700; cursor: pointer; transition: transform .15s var(--ease), filter .15s var(--ease); }
.btn-voice svg { width: 18px; height: 18px; fill: currentColor; }
.btn-voice:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-voice:active { transform: scale(.97); }
.btn-voice:disabled { opacity: .5; cursor: not-allowed; }
html:not(.js) .btn-voice, html:not(.js) #tour-go, html:not(.js) .toy { display: none; }

.bar { position: fixed; left: 50%; bottom: var(--s-5); z-index: 30; transform: translateX(-50%); width: min(calc(100vw - 2 * var(--gutter)), 600px); display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-radius: 28px; background: var(--ink-day); color: var(--sky-paper); box-shadow: 0 16px 40px color-mix(in oklab, var(--ink-day) 35%, transparent); }
.bar[hidden] { display: none; }
.bar-wave { display: flex; align-items: center; gap: 3px; height: 24px; flex: none; }
.bar-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--heart); transform: scaleY(.3); animation: wave 0.9s ease-in-out infinite alternate; }
.bar-wave i:nth-child(2) { animation-delay: -.3s; } .bar-wave i:nth-child(3) { animation-delay: -.6s; } .bar-wave i:nth-child(4) { animation-delay: -.15s; }
@keyframes wave { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.bar p { flex: 1; min-width: 0; font-size: .9375rem; font-weight: 500; line-height: 1.45; word-break: keep-all; }
.bar button { flex: none; height: 44px; padding: 0 var(--s-4); border: 1.5px solid color-mix(in oklab, currentColor 45%, transparent); border-radius: var(--r-pill); background: transparent; font-weight: 600; cursor: pointer; }
.bar button:hover { border-color: currentColor; }
.bar button:active { transform: scale(.96); }

/* ---------- bands after the day ---------- */
.band { padding: clamp(72px, 10vw, 136px) 0; }
.band-head { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-7); max-width: 46rem; }
.band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.14; letter-spacing: -.02em; overflow-wrap: break-word; min-width: 0; word-break: keep-all; }
.band-sub { font-size: 1.0625rem; max-width: 40ch; opacity: .85; word-break: keep-all; }

.big { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.work { display: flex; flex-direction: column; gap: var(--s-4); }
.work-art { border-radius: var(--r-card); overflow: hidden; background: var(--dino); }
.work-art img { width: 100%; height: auto; }
.work-art.pixel img { image-rendering: pixelated; aspect-ratio: 1; object-fit: cover; }
.work h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; }
.work p { max-width: 46ch; word-break: keep-all; }
.work .where { font-size: .9375rem; font-weight: 600; opacity: .8; }
.work.wide { margin-top: clamp(0px, 8vw, 96px); }
.spec { border-top: 1.5px solid color-mix(in oklab, currentColor 22%, transparent); }
.spec div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1.5px solid color-mix(in oklab, currentColor 22%, transparent); font-size: .9375rem; }
.spec dt { opacity: .75; }
.spec dd { font-weight: 600; text-align: right; }

.tools { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tool h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; margin-bottom: var(--s-3); }
.tool p { max-width: 44ch; margin-bottom: var(--s-3); word-break: keep-all; }
.tool a { font-weight: 700; text-underline-offset: 4px; }
.tool a:hover { color: var(--heart); }
.making { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.making figure { display: flex; flex-direction: column; gap: var(--s-3); }
.making img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.making figcaption { font-size: .9375rem; word-break: keep-all; }
.making b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; }
.making-note { grid-column: 1 / -1; font-size: .875rem; opacity: .78; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.values h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: var(--s-3); }
.values p { max-width: 24ch; word-break: keep-all; }

.company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 1.5px solid color-mix(in oklab, currentColor 22%, transparent); }
.company div { padding: var(--s-5) 0; border-bottom: 1.5px solid color-mix(in oklab, currentColor 22%, transparent); }
.company dt { font-size: .875rem; opacity: .75; margin-bottom: var(--s-1); }
.company dd { font-size: 1.125rem; font-weight: 600; word-break: keep-all; }

.foot { padding: var(--s-8) 0 calc(var(--s-9) + var(--s-5)); font-size: .875rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.foot p { max-width: 52ch; opacity: .8; }
.foot a { text-underline-offset: 4px; }
.foot a:hover { color: var(--sun); }
.foot-bear { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: var(--s-4); }

/* ---------- small screens: no sticky dial, each moment carries its own picture ---------- */
@media (max-width: 60rem) {
  .day { grid-template-columns: minmax(0, 1fr); }
  .stage { display: none; }
  .m-pic { display: block; width: min(76vw, 340px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: var(--s-2); background: color-mix(in oklab, currentColor 10%, transparent); }
  .m-pic img, .m-pic video { width: 100%; height: 100%; object-fit: cover; transition: filter .4s var(--ease); }
  .hero { min-height: 0; padding: var(--s-6) 0 var(--s-8); gap: var(--s-4); }
  .hero .m-pic { width: min(44vw, 200px); }
  .moment { min-height: 0; padding: var(--s-8) 0; }
  .toy { padding: var(--s-4); }
  .pipe { gap: 2px; padding: var(--s-2); }
  .hole { font-size: .75rem; }
  .big, .tools { grid-template-columns: minmax(0, 1fr); }
  .work.wide { margin-top: 0; }
}
@media (max-width: 48rem) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .company { grid-template-columns: minmax(0, 1fr); }
  .facts { gap: var(--s-5); }
  .bar { bottom: var(--s-3); padding-left: var(--s-4); gap: var(--s-3); }
  .bar-wave { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dial-pics img.on, .bar-wave i, .pop { animation: none; }
  .q-bar.run i { animation-timing-function: steps(5, end); }
  .card, .btn, .btn-voice, .rail button { transition: none; }
  .js body { transition: none; }
}
