/* 氷楽 HYOURAKU — site styles. Polar night by default; light when the OS / user asks. */
:root {
  --bg: #03070f;
  --bg2: #071427;
  --fg: #eef6fc;
  --muted: #8ea4ba;
  --line: rgba(173, 216, 240, 0.13);
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.07);
  --glass: rgba(14, 30, 52, 0.55);
  --accent: #7fd6ff;
  --accent2: #9ff5dc;
  --warm: #ff9a6b;
  --glow: rgba(127, 214, 255, 0.35);
  --radius: 26px;
  --grad: linear-gradient(120deg, #e8f8ff 0%, #8fdcff 35%, #6ee7c8 70%, #b9a7ff 100%);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f8fc; --bg2: #e2eef8; --fg: #0b1f33; --muted: #4c6276;
    --line: rgba(20, 70, 110, 0.13); --card: rgba(255, 255, 255, 0.72); --card-hi: #fff;
    --glass: rgba(255, 255, 255, 0.62); --accent: #1a74ab; --accent2: #0c8a72; --warm: #d9622f;
    --glow: rgba(26, 116, 171, 0.22);
    --grad: linear-gradient(120deg, #0b3557 0%, #1a74ab 45%, #0c8a72 80%, #5a4bcf 100%);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f8fc; --bg2: #e2eef8; --fg: #0b1f33; --muted: #4c6276;
  --line: rgba(20, 70, 110, 0.13); --card: rgba(255, 255, 255, 0.72); --card-hi: #fff;
  --glass: rgba(255, 255, 255, 0.62); --accent: #1a74ab; --accent2: #0c8a72; --warm: #d9622f;
  --glow: rgba(26, 116, 171, 0.22);
  --grad: linear-gradient(120deg, #0b3557 0%, #1a74ab 45%, #0c8a72 80%, #5a4bcf 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans", "Noto Sans JP", sans-serif;
  line-height: 1.7; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, .tagline { word-break: auto-phrase; text-wrap: balance; }
a { color: var(--accent); }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 100; background: var(--bg2); padding: 8px 12px; border-radius: 8px; clip-path: inset(50%); }
.skip:focus { clip-path: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(64, 160, 220, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(80, 230, 200, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 100px -40px rgba(0, 0, 0, 0.55);
}

/* ---- nav ---- */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1200px, 100% - 24px); border-radius: 999px;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 62%, transparent); border: 1px solid var(--line);
  transition: background .3s;
}
.nav-inner { height: 58px; padding: 0 8px 0 14px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); margin-inline-end: auto; }
.brand img { border-radius: 9px; }
.brand-ja { font-weight: 900; font-size: 18px; letter-spacing: 0.08em; }
.brand-en { font-weight: 600; font-size: 11px; letter-spacing: 0.3em; color: var(--muted); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); background: var(--card-hi); }
.lang { display: flex; align-items: center; gap: 6px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; height: 40px; }
.lang svg { width: 18px; height: 18px; flex: none; }
.lang select { background: transparent; color: var(--fg); border: 0; font: inherit; font-size: 13px; max-width: 150px; cursor: pointer; }
.lang select option { color: #0b1f33; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; display: flex; flex-direction: column; padding: 8px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--bg2);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.menu[hidden] { display: none; }
.menu a { color: var(--fg); text-decoration: none; padding: 12px 14px; border-radius: 12px; font-weight: 600; min-height: 44px; }
.menu a:hover, .menu a:focus-visible { background: var(--card-hi); }
@media (max-width: 820px) {
  .nav-links { display: none; } .brand-en { display: none; } .lang select { max-width: 96px; }
  .menu-btn { display: grid; }
}
/* 英語以外は翻訳を当てるまで文字を隠す（英語が一瞬見えないように。最大 1.5 秒） */
html.i18n-pending main, html.i18n-pending .nav, html.i18n-pending .footer, html.i18n-pending .wordmark { visibility: hidden; }

/* ---- hero ---- */
.hero { position: relative; min-height: min(100vh, 980px); display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 110px 0 90px; }
#aurora { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(1%,3%)} }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.title { margin: 0; line-height: .95; display: flex; flex-direction: column; gap: 14px; }
.title-ja { direction: ltr; display: flex; font-size: clamp(88px, 13vw, 190px); font-weight: 900; letter-spacing: 0.04em; }
.title-ja .ch {
  display: inline-block; background: linear-gradient(175deg, #ffffff 0%, #dff4ff 30%, #8fd8ff 62%, #5ee0c4 100%), linear-gradient(100deg, transparent 40%, rgba(255,255,255,.9) 50%, transparent 60%); background-size: 100% 100%, 250% 100%; background-blend-mode: screen;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both, sheen 8s linear infinite;
  filter: drop-shadow(0 20px 60px rgba(110, 200, 255, .35));
}
:root[data-theme="light"] .title-ja .ch { background-image: linear-gradient(175deg, #0b3557 0%, #1a74ab 60%, #0c8a72 100%), none; filter: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .title-ja .ch { background-image: linear-gradient(175deg, #0b3557 0%, #1a74ab 60%, #0c8a72 100%), none; filter: none; } }
.title-ja .ch:nth-child(2) { animation-delay: .12s, 0s; }
@keyframes rise { from { opacity: 0; transform: translateY(40%) scale(.96); filter: blur(12px); } }
@keyframes sheen { 0%, 60% { background-position: 0 0, 160% 0; } 100% { background-position: 0 0, -160% 0; } }
.title-en { font-size: clamp(12px, 1.4vw, 15px); font-weight: 700; letter-spacing: 0.7em; color: var(--muted); }
.tagline { margin: 30px 0 10px; font-size: clamp(22px, 2.8vw, 34px); font-weight: 800; letter-spacing: 0.01em; line-height: 1.3; }
.desc { margin: 0; max-width: 560px; color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); }
.free { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-width: 176px; padding: 11px 18px;
  border-radius: 14px; background: var(--fg); color: var(--bg); text-decoration: none;
  box-shadow: 0 14px 40px -14px var(--glow); transition: transform .25s, box-shadow .25s;
}
.store:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -14px var(--glow); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store small { font-size: 11px; opacity: .75; }
.store b { font-size: 17px; }
.store.soon { background: transparent; color: var(--fg); border: 1px solid var(--line); box-shadow: none; cursor: default; }

/* interactive melt panel */
.melt { direction: ltr; position: relative; padding: 14px; aspect-ratio: 1 / 1.02; display: flex; flex-direction: column; gap: 12px; animation: float-in 1.2s .2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes float-in { from { opacity: 0; transform: translateY(30px) rotate(1.5deg); } }
#melt-canvas { flex: 1; width: 100%; min-height: 0; border-radius: 18px; touch-action: pan-y; cursor: ew-resize; }
.readouts { display: flex; gap: 8px; flex-wrap: wrap; }
.ro { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card-hi); border: 1px solid var(--line); font-variant-numeric: tabular-nums; font-size: 14px; }
.ro svg { width: 16px; height: 16px; }
.ro.warm { color: var(--warm); } .ro.sea { color: var(--accent); } .ro.ice { color: var(--fg); }
.ro b { color: var(--fg); font-weight: 700; }
.melt-slider { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.melt-slider svg { width: 20px; height: 20px; }
.melt-slider .cold { color: var(--accent); } .melt-slider .hot { color: var(--warm); }
.melt-slider input { flex: 1; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent2) 45%, var(--warm)); outline-offset: 6px; }
.melt-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 6px 18px rgba(0,0,0,.4); cursor: grab; }
.melt-slider input::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 6px 18px rgba(0,0,0,.4); cursor: grab; }
.drag-hint { position: absolute; left: 50%; top: 42%; width: 46px; height: 46px; margin-left: -23px; pointer-events: none; transition: opacity .4s; }
.drag-hint i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; opacity: .8; animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateX(-60px) scale(.7); opacity: 0; } 20% { opacity: .9; } 80% { opacity: .9; } 100% { transform: translateX(60px) scale(.7); opacity: 0; } }
.melt.touched .drag-hint { opacity: 0; }
.scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.scroll svg { width: 18px; height: 18px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
@media (max-width: 900px) {
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .title { align-items: center; }
  .desc { margin-inline: auto; }
  .stores { justify-content: center; }
  .melt { aspect-ratio: auto; height: min(520px, 110vw); }
  .scroll { display: none; }
}

/* ---- marquee ---- */
.marquee { direction: ltr; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.seq { display: flex; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.modes-band { border-block: 1px solid var(--line); padding: 18px 0; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.tick { display: inline-flex; align-items: center; gap: 12px; padding: 0 34px; font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; white-space: nowrap; }
.tick svg { width: 26px; height: 26px; color: var(--k); }
.tick::after { content: "✦"; margin-inline-start: 34px; color: var(--muted); font-size: 14px; }
.marquee:hover .track { animation-play-state: paused; }

/* ---- sections ---- */
.section { padding: 120px 0 0; }
.sec-head { max-width: 760px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head.center .eyebrow { justify-content: center; }
.section h2, .cta h2 { margin: 0; font-size: clamp(32px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 900; }
.sub { color: var(--muted); margin: 16px 0 0; font-size: 17px; }

/* scrollytelling */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px); margin-top: 56px; align-items: start; }
.stage { position: sticky; top: 96px; aspect-ratio: 4 / 3.4; padding: 12px; }
#stage-canvas { width: 100%; height: 100%; border-radius: 18px; display: block; }
.stage-dots { position: absolute; inset-inline-start: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; }
[dir="rtl"] .stage-dots { transform: translateX(50%); }
.stage-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.3); transition: width .3s, background .3s; }
.stage-dots i.on { width: 24px; background: #fff; }
.steps { display: flex; flex-direction: column; }
.step { min-height: min(62vh, 640px); display: flex; flex-direction: column; justify-content: center; padding: 20px 0; opacity: .28; transition: opacity .5s; }
.step.active { opacity: 1; }
.mini-wrap { display: none; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 32%, transparent); }
:root[data-theme="light"] .step .ic { color: color-mix(in srgb, var(--k) 45%, #0b1f33); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .step .ic { color: color-mix(in srgb, var(--k) 45%, #0b1f33); } }
.step .ic svg { width: 28px; height: 28px; }
.step .num { font-size: 14px; font-weight: 800; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.step .new { font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 3px 10px; border-radius: 999px; color: #03202c; background: linear-gradient(90deg, #8fe3ff, #a7f3d0); }
.step h3 { margin: 22px 0 10px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.15; }
.step p { margin: 0; color: var(--muted); font-size: 17px; max-width: 460px; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; margin-top: 36px; }
  .stage { display: none; }
  .steps { gap: 18px; }
  .step { min-height: 0; opacity: 1; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
  .mini-wrap { display: block; aspect-ratio: 16 / 10; }
  .mini { width: 100%; height: 100%; display: block; }
  .step-body { padding: 20px 22px 24px; }
  .step h3 { font-size: 24px; margin-top: 14px; }
  .step p { font-size: 15px; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.stats div { text-align: center; padding: 34px 10px; border-top: 1px solid var(--line); }
.stats dt { font-size: clamp(56px, 9vw, 120px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stats dd { margin: 10px 0 0; color: var(--muted); font-size: 15px; font-weight: 600; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

.science { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.sci { padding: 28px; }
.sci-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.sci-ic svg { width: 24px; height: 24px; }
.sci h3 { margin: 22px 0 6px; font-size: 20px; }
.sci p { margin: 0; color: var(--muted); }
.features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.feature { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.feature svg { width: 20px; height: 20px; color: var(--accent2); flex: none; }
.feature p { margin: 0; font-weight: 600; font-size: 14.5px; }
@media (max-width: 820px) { .science { grid-template-columns: 1fr; } }

.langs-sec .sec-head { margin-bottom: 40px; }
.langs-a, .langs-b { padding: 10px 0; }
.langs-a .track { animation-duration: 70s; }
.langs-b .track { animation-duration: 80s; animation-direction: reverse; }
.lname { padding: 0 26px; font-size: clamp(26px, 4vw, 46px); font-weight: 800; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 45%, transparent); transition: color .3s; }
.lname:nth-child(4n+1) { color: var(--fg); -webkit-text-stroke: 0; }
.lname:nth-child(6n+3) { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }

.cta { margin: 140px 0 0; padding: 80px 24px; text-align: center; border-radius: 36px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background: radial-gradient(700px 360px at 50% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%), var(--card); }
.cta p { color: var(--muted); margin: 14px 0 0; font-size: 17px; }
.cta .stores { justify-content: center; }
.tilt { width: 120px; height: 120px; margin: 0 auto 28px; perspective: 600px; }
.tilt img { border-radius: 28px; box-shadow: 0 30px 60px -20px var(--glow), 0 0 0 1px var(--line); transition: transform .2s ease-out; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -12deg)); }

/* ---- documents ---- */
.page { padding: 120px 0 0; }
.page-head h1 { margin: 0; font-size: clamp(36px, 5.5vw, 60px); font-weight: 900; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dates { color: var(--muted); margin: 10px 0 0; font-size: 14px; }
.doc { display: grid; gap: 14px; margin-top: 36px; max-width: 880px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 26px 28px; }
.doc .card.lead { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.doc h2 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.doc p, .prose p { margin: 0 0 10px; }
.prose > :last-child, .doc .card > p:last-child { margin-bottom: 0; }
.prose ul, .bugs { margin: 6px 0 10px; padding-inline-start: 1.3em; }
.prose li, .bugs li { margin: 4px 0; }
.table-wrap { overflow-x: auto; margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 560px; }
th, td { text-align: start; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--card-hi); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq:first-of-type { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; transition: transform .2s; color: var(--muted); }
.faq[open] summary svg { transform: rotate(180deg); }
.faq p { margin: 0 0 16px; color: var(--muted); }
.mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 18px; border-radius: 14px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 700; }
.mail svg { width: 20px; height: 20px; }

/* ---- footer ---- */
.wordmark { margin-top: 120px; text-align: center; font-weight: 900; font-size: clamp(120px, 30vw, 420px); line-height: .8; letter-spacing: .02em; user-select: none; overflow: hidden;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 16%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 75%); -webkit-background-clip: text; background-clip: text; }
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.page + .wordmark, main.page ~ .footer { margin-top: 110px; }
.footer-inner { width: min(1200px, 100% - 32px); margin-inline: auto; display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 10px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.links a:hover { color: var(--fg); }
.copy { margin: 0; color: var(--muted); font-size: 13px; }

/* ---- motion ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .title-ja .ch, .melt, .grain, .drag-hint i, .scroll svg { animation: none; }
  .track { animation: none; }
  .marquee { overflow-x: auto; }
  .step { opacity: 1; }
}
