/* Thumbdial — round-3 design system (Docs/SITE-R3-SYSTEM.md). One stylesheet for every page.
   Page-specific styles live in assets/css/p-<page>.css. 8-pt spacing. Geist display with tight tracking; Geist Mono only
   inside readouts; Doto only for live values. Two grounds: the page (follows the colour scheme) and the stage (the
   dark bench, in both schemes). */

@font-face { font-family: "Geist"; src: url("../fonts/Geist.woff2") format("woff2"), url("../fonts/Geist.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono.woff2") format("woff2"), url("../fonts/GeistMono.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Doto"; src: url("../fonts/Doto.woff2") format("woff2"), url("../fonts/Doto.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --f-sans: "Geist", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-dot: "Doto", "Geist Mono", ui-monospace, monospace;
  /* page ground (light) */
  --bg: #E7E5E0; --bg-2: #DEDCD6; --bg-3: #F3F2EE; --ink: #1E1E1C; --ink2: #4A4843; --ink3: #5F5C56; --ink4: #6F6C66;
  --hair: #C9C6BF; --hair-2: #B5B2AB; --line: #1E1E1C; --accent: #EC642E; --accent-text: #A8401A; --green: #1B6E40; --green-led: #3DCB7A;
  --card: #F3F2EE;
  /* stage ground (always dark) */
  --st: #0B0B0A; --st-2: #121211; --st-3: #1A1A18; --st-ink: #F1EFE9; --st-ink2: #CBC8C0; --st-ink3: #A3A098; --st-hair: #2A2926; --st-hair-2: #34332F;
  --orange: #F06A35; --orange-hi: #F7A784; --orange-lo: #C9531F;
  --e-travel: cubic-bezier(.2, .7, .2, 1);
  --e-click: cubic-bezier(.3, 1.6, .5, 1);
  /* landscape phones: never closer to the notch / rounded corners than the safe area */
  --gutter: max(clamp(16px, 4.4vw, 64px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --max: 1200px;
  --hd: 48px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121211; --bg-2: #1A1A18; --bg-3: #1F1F1D; --ink: #F1EFE9; --ink2: #CBC8C0; --ink3: #A3A098; --ink4: #8F8C86;
    --hair: #2A2926; --hair-2: #3A3936; --line: #E9E6DF; --accent: #F06A35; --accent-text: #FF8A5C; --green: #45D483; --card: #1A1A18; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; hanging-punctuation: first last; scroll-padding-top: calc(var(--hd) + 16px); }
body { font: 400 17px/1.47 var(--f-sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; letter-spacing: 0 !important; }
/* auto-phrase keeps a phrase whole; on a 360px phone a long katakana phrase can be wider than the column — let it break. */
:lang(ja) :is(h1, h2, h3) { overflow-wrap: anywhere; }
:lang(de) h1, :lang(fr) h1, :lang(de) h2, :lang(fr) h2 { hyphens: auto; }
:focus-visible { outline: 2px solid #6AA8FF; outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 8px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ------------------------------------------------------------------ type */
.h-hero { font-size: clamp(48px, 7.6vw, 112px); line-height: .94; letter-spacing: -.045em; }
.h-ch { font-size: clamp(40px, 5.6vw, 80px); line-height: .98; letter-spacing: -.04em; }
.h-sec { font-size: clamp(32px, 3.8vw, 56px); line-height: 1.02; letter-spacing: -.035em; }
.h-step { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.12; letter-spacing: -.022em; }
.h-item { font-size: 21px; line-height: 1.2; letter-spacing: -.015em; }
.intro { font-size: clamp(19px, 1.65vw, 24px); line-height: 1.38; letter-spacing: -.012em; font-weight: 450; color: var(--ink2); max-width: 38ch; }
.body-l { font-size: 19px; line-height: 1.5; color: var(--ink2); }
.fine { font-size: 14px; line-height: 1.43; color: var(--ink3); }
:lang(ja) .h-hero { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.12; }
:lang(ja) .h-ch { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.15; }
:lang(de) .h-hero, :lang(fr) .h-hero { font-size: clamp(44px, 6.4vw, 96px); }
:lang(de) .h-ch, :lang(fr) .h-ch { font-size: clamp(36px, 4.8vw, 70px); }
.textlink { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.textlink:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
.prose a, .ans a { text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* ------------------------------------------------------------------ header */
.hd { position: sticky; top: 0; z-index: 60; height: var(--hd); color: var(--ink);
  background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--hair) 70%, transparent); }
[data-hd="dark"] .hd { color: var(--st-ink); background: rgb(11 11 10 / .66); box-shadow: inset 0 -1px 0 rgb(255 255 255 / .07); color-scheme: dark; }
.hd { transition: background-color .25s var(--e-travel), color .25s var(--e-travel), box-shadow .25s; }
.hd__in { height: 100%; width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.hd__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; text-decoration: none; }
.hd__brand img { border-radius: 6px; }
.hd__nav { display: flex; gap: 20px; margin-inline-start: auto; font-size: 13px; }
.hd__group { display: flex; gap: 18px; }
.hd__group + .hd__group { padding-inline-start: 20px; box-shadow: inset 1px 0 0 color-mix(in srgb, currentColor 18%, transparent); }
.hd__nav a { text-decoration: none; opacity: .78; padding: 6px 0; }
.hd__nav a:hover, .hd__nav a[aria-current] { opacity: 1; }
.hd__nav a[aria-current] { box-shadow: inset 0 -1.5px 0 var(--orange); }
.hd__end { display: flex; align-items: center; gap: 8px; }
.hd__cta { height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 600; text-decoration: none;
  color: #1E1E1C; background: linear-gradient(#F7A784, #F06A35 45%, #C9531F); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 0 0 1px rgb(0 0 0 / .45); white-space: nowrap; }
.hd-lang, .hd-menu { position: relative; }
.hd-lang summary, .hd-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px; border-radius: 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.hd-lang summary::-webkit-details-marker, .hd-menu summary::-webkit-details-marker { display: none; }
.hd-lang summary svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; }
.hd-lang ul, .hd-menu nav { position: absolute; right: 0; top: 46px; min-width: 200px; list-style: none; padding: 8px; border-radius: 14px;
  background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--hair), 0 24px 48px -16px rgb(0 0 0 / .4); }
[data-hd="dark"] .hd-lang ul, [data-hd="dark"] .hd-menu nav { background: #1A1A18; color: var(--st-ink); box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgb(255 255 255 / .06), 0 24px 48px -16px #000; }
.hd-lang a, .hd-menu a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.hd-lang a:hover, .hd-menu a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.hd-lang a[aria-current], .hd-menu a[aria-current] { font-weight: 600; }
.hd-menu ul { list-style: none; }
.hd-menu summary { width: 36px; justify-content: center; flex-direction: column; gap: 5px; }
.hd-menu summary span { width: 16px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .2s var(--e-travel); }
.hd-menu[open] summary span:first-child { transform: translateY(3.25px) rotate(45deg); }
.hd-menu[open] summary span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.hd__nav { font-size: 14px; }
@media (max-width: 899px) { .hd__nav { display: none; } .hd__end { margin-inline-start: auto; } }
@media (min-width: 900px) { .hd-menu { display: none; } }

/* ------------------------------------------------------------------ buttons, badges, tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 24px; font: 600 17px/1 var(--f-sans);
  letter-spacing: -.01em; text-decoration: none; transition: transform .12s var(--e-travel), filter .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; }
.btn--accent { color: #1E1E1C; background: linear-gradient(#F7A784, #F06A35 42%, #C9531F); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 0 0 1px rgb(0 0 0 / .55), 0 8px 18px -8px rgb(240 106 53 / .6); }
.btn--plate { color: var(--st-ink); background: linear-gradient(#34332F, #252422); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 0 0 1px #000, 0 8px 16px -8px #000; }
.btn--ink { color: var(--bg); background: var(--ink); }
.btn:hover { filter: brightness(1.06); }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 24px; font-size: 15px; line-height: 1.2;
  color: var(--ink); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--hair); }
.soon svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.on-stage .soon { color: var(--st-ink); background: #151514; box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 0 0 1px #000; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font: 600 14px/1 var(--f-sans); letter-spacing: .01em; vertical-align: .28em; margin-inline-start: 10px; white-space: nowrap; }
.tag--free { color: var(--ink2); box-shadow: inset 0 0 0 1px var(--hair-2); }
.tag--pro { color: #F3F1EB; background: #131312; }
.tag--freePro { color: var(--ink2); box-shadow: inset 0 0 0 1px var(--hair-2); }
@media (prefers-color-scheme: dark) { .tag--pro { color: #1E1E1C; background: linear-gradient(#F2F1EC, #DCDAD3); } }
.on-stage .tag--free { color: var(--st-ink2); box-shadow: inset 0 0 0 1px var(--st-hair-2); } .on-stage .tag--pro { color: #1E1E1C; background: linear-gradient(#F2F1EC, #DCDAD3); } .on-stage .tag--freePro { color: var(--st-ink2); box-shadow: inset 0 0 0 1px var(--st-hair-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ instruments */
.oled { display: inline-grid; gap: 4px; padding: 12px 16px; border-radius: 14px; color: #F3F1EB; background: #0B0B0A;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / .9), inset 0 0 0 1px rgb(255 255 255 / .04), 0 1px 0 rgb(255 255 255 / .08), 0 0 0 1px #000; }
.oled__l { font: 600 14px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #A3A098; display: flex; align-items: center; gap: 8px; }
:lang(ja) .oled__l { letter-spacing: .02em; }
.oled__v { font: 700 28px/1 var(--f-dot); font-variant-numeric: tabular-nums; text-shadow: 0 0 .1em currentColor; }
.oled__v small { font: 600 11px/1 var(--f-mono); letter-spacing: .1em; color: #A3A098; margin-inline-start: 6px; text-shadow: none; text-transform: uppercase; }
.oled.tick .oled__v { animation: blink .09s steps(1) 1; }
@keyframes blink { 50% { opacity: .5; } }
.led { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #45D483; box-shadow: 0 0 0 1px rgb(0 0 0 / .5), 0 0 8px #45D483; }
.led--accent { background: var(--orange); box-shadow: 0 0 0 1px rgb(0 0 0 / .5), 0 0 8px var(--orange); }
.led--off { background: #3A3936; box-shadow: 0 0 0 1px rgb(0 0 0 / .5); }
.led--blue { background: #6AA8FF; box-shadow: 0 0 0 1px rgb(0 0 0 / .5), 0 0 8px #6AA8FF; }
.ruler { --n: 24; height: 10px; color: currentColor; opacity: .5;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px calc(100% / var(--n))) bottom / 100% 6px no-repeat, linear-gradient(currentColor, currentColor) bottom / 100% 1px no-repeat; }
.engraved { color: #ECE9E2; text-shadow: 0 -1.5px 0 rgb(0 0 0 / .9), 0 -1px 2px rgb(0 0 0 / .5), 0 1px 0 rgb(255 255 255 / .22); }

/* Plate: brushed anodized graphite, a chamfer that catches light, a contact shadow below. */
.plate { position: relative; border-radius: 24px; color: var(--st-ink);
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / .018) 0 1px, transparent 1px 3px), linear-gradient(#2B2A27, #1D1C1A 60%, #181816);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), inset 0 -1px 0 rgb(0 0 0 / .6), 0 0 0 1px #000, 0 30px 60px -30px rgb(0 0 0 / .8), 0 2px 4px rgb(0 0 0 / .4); }
.plate .hair { border-color: var(--st-hair-2); }

/* Drawing sheet: hairline frame + tick rulers (one tick per detent across the width). */
.sheet { position: relative; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--hair); }
.sheet::before, .sheet::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; color: var(--ink3); opacity: .55;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px calc(100% / 48)); }
.sheet::before { top: 0; } .sheet::after { bottom: 0; }

/* Spec block: hairline cells of true numbers. */
.spec { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-block: 1px solid var(--line); }
.spec > div { padding: 12px 16px 14px; display: grid; gap: 4px; align-content: start; }
.spec > div + div { box-shadow: inset 1px 0 0 var(--hair); }
.spec dt, .spec span { font-size: 13px; color: var(--ink3); }
.spec dd, .spec b { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 17px; }
.spec .big { font: 700 clamp(32px, 4vw, 48px)/1 var(--f-dot); }
@media (max-width: 760px) { .spec { --cols: 2 !important; } .spec > div:nth-child(2n+1) { box-shadow: none; } .spec > div:nth-child(n+3) { border-top: 1px solid var(--hair); } }

/* Numbered steps: hairline rows with Doto numerals. */
.steps { list-style: none; display: grid; gap: 0; counter-reset: s; }
.steps > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding: 20px 0 22px; border-top: 1px solid var(--hair); }
.steps > li::before { counter-increment: s; content: counter(s); grid-row: span 3; font: 700 30px/1 var(--f-dot); color: var(--ink3); }
.steps h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.015em; }
.steps p { margin-top: 6px; color: var(--ink2); }

/* Ticked list (no glyph decoration: a short hairline). */
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 22px; color: var(--ink2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1.5px; background: var(--accent); }

/* Device capture standing on the ground: contact shadow + soft reflection-less ambient. */
.fig { position: relative; isolation: isolate; }
.fig::after { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; bottom: 1%; height: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / .35), transparent); filter: blur(6px); }
.fig img { width: 100%; }
.fig figcaption, figcaption.cap { margin-top: 12px; font-size: 14px; color: var(--ink3); }

/* FAQ */
.qa { border-top: 1px solid var(--hair); }
.qa:last-child { border-bottom: 1px solid var(--hair); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-size: 19px; font-weight: 600; letter-spacing: -.012em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--e-travel); opacity: .6; }
.qa[open] summary::after { transform: rotate(225deg); }
.qa .ans { padding: 0 0 24px; color: var(--ink2); max-width: 68ch; display: grid; gap: 12px; }

/* ------------------------------------------------------------------ sections */
.sec { padding-block: clamp(80px, 11vw, 160px); }
.sec--tight { padding-block: clamp(56px, 7vw, 96px); }
.on-stage { background: var(--st); color: var(--st-ink); color-scheme: dark;
  --ink: var(--st-ink); --ink2: var(--st-ink2); --ink3: var(--st-ink3); --hair: var(--st-hair); --hair-2: var(--st-hair-2); --line: #E9E6DF; --accent: var(--orange); --accent-text: #FF8A5C; --green: #45D483; --card: #1A1A18; --bg-3: #151514; }
.sec-head { display: grid; gap: 20px; max-width: 900px; }
.sec-head .intro { margin-top: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--flip > :first-child { order: 2; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }
.edge { box-shadow: 0 -1px 0 rgb(255 255 255 / .07); }

/* Pinned stage: a sticky 100svh box over a taller section. Without motion: static. */
.pin { position: relative; }
.pin__stage { position: relative; }
.m .pin__stage { position: sticky; top: 0; height: 100svh; overflow: clip; }

/* ------------------------------------------------------------------ footer */
.ft { background: var(--st); color: var(--st-ink); color-scheme: dark; padding: 64px 0 40px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
  --ink2: var(--st-ink2); --ink3: var(--st-ink3); }
.ft__in { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.ft__plate { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 24px; padding-bottom: 32px; }
.ft__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.ft__brand img { border-radius: 8px; }
.ft__tag { color: var(--st-ink3); font-size: 15px; }
.ft__ruler { grid-column: 1 / -1; --n: 48; color: var(--st-ink3); margin-top: 16px; }
.ft__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; padding: 32px 0; }
.ft__col h2 { font-size: 13px; font-weight: 600; color: var(--st-ink); margin-bottom: 12px; }
.ft__col ul { list-style: none; display: grid; gap: 8px; }
.ft__col a { font-size: 14px; color: var(--st-ink3); text-decoration: none; }
.ft__col a:hover { color: var(--st-ink); text-decoration: underline; text-underline-offset: .2em; }
.ft__col a[aria-current] { color: var(--st-ink); }
.ft__fine { border-top: 1px solid var(--st-hair); padding-top: 24px; display: grid; gap: 8px; font-size: 12px; line-height: 1.5; color: #8F8C86; }
@media (max-width: 899px) { .ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ motion preferences, print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media print {
  .hd, .ft, .skip, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .on-stage { background: #fff; color: #000; }
  a { text-decoration: underline; }
}

/* Stage-toned pages: the bench shows under the sticky header; light sections paint their own ground. */
body[data-tone="stage"] { background: var(--st); }
body[data-tone="stage"] #main > section:not(.on-stage) { background: var(--bg); }
@media (max-width: 599px) { .oled__l { font-size: 13px; } .tag { font-size: 13px; } }
.ft__cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 899px) { .ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ft__col a { overflow-wrap: anywhere; }
:lang(ja) .ft__col a { word-break: auto-phrase; }
.ft__col a { font-size: 15px; } .ft__fine { font-size: 13px; }

/* ------------------------------------------------------------------ touch + small screens (mobile release gate)
   Every control is ≥ 44 × 44 px to the finger without changing what the eye sees: header controls grow inside the
   48px bar (negative margins keep the footprint), the small CTA pill gets an invisible hit skirt, footer links
   become 44px rows on touch/narrow screens. Fixed/sticky chrome respects the safe areas (viewport-fit=cover). */
.hd { height: calc(var(--hd) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
.hd__brand { min-height: 44px; }
.hd-lang summary, .hd-menu summary { height: 44px; min-width: 44px; justify-content: center; font-size: 13px; }
.hd-menu summary { width: 44px; margin-inline: -4px; }
.hd__cta { position: relative; }
.hd__cta::before { content: ""; position: absolute; inset: -8px -4px; }
.hd-lang ul, .hd-menu nav { max-height: calc(100svh - var(--hd) - env(safe-area-inset-top, 0px) - 16px); overflow-y: auto; overscroll-behavior: contain; }
.hd-lang a, .hd-menu a { display: flex; align-items: center; min-height: 44px; padding-block: 10px; }
.hd-lang summary:focus-visible, .hd-menu summary:focus-visible { outline-offset: -2px; }
.ft { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.ft__brand { min-height: 44px; }
@media (max-width: 899px), (pointer: coarse) {
  .ft__col h2 { margin-bottom: 4px; }
  .ft__col ul { gap: 0; }
  .ft__col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-block: 8px; line-height: 1.3; }
}
/* Text links that stand alone on their line ("all questions", captions, back to top): a 44px tall tap area,
   same layout (inline-block + padding cancelled by a negative margin). Links inside running text are exempt. */
.textlink--solo, :is(.uf__more, .uc__cta, .ch__head p, .faq2__head p, .lg-end, .lg-side__top, .pop li, .device figcaption, .hx-cut__text p, .pget__cta, .yr p) > a.textlink {
  display: inline-block; padding-block: 11px; margin-block: -11px; }

/* ------------------------------------------------------------------ light scheme: page ↔ stage seams
   Where the light page meets the dark bench, the page takes a soft shade off the bench's edge: a deliberate band, not a
   hard cut. Pure CSS on the sections' own backgrounds (nothing toggles while scrolling, so nothing can flicker). */
@media (prefers-color-scheme: light) {
  :root body #main > section:not(.on-stage) { --seam-t: linear-gradient(transparent, transparent); --seam-b: linear-gradient(transparent, transparent);
    background-image: var(--seam-t), var(--seam-b); background-repeat: no-repeat; background-size: 100% clamp(72px, 10vh, 120px); background-position: top, bottom; }
  :root body #main > .on-stage + section:not(.on-stage) { --seam-t: linear-gradient(180deg, #A9A69F, #CFCCC5 2px, rgb(231 229 224 / 0)); }
  :root body #main > section:not(.on-stage):has(+ .on-stage), :root body #main > section:not(.on-stage):last-child { --seam-b: linear-gradient(0deg, #A9A69F, #CFCCC5 2px, rgb(231 229 224 / 0)); }
  :root body #main > .on-stage:has(+ section:not(.on-stage)), :root body #main > section:not(.on-stage) + .on-stage { border-block: 0 solid #2A2926; }
  :root body #main > .on-stage:has(+ section:not(.on-stage)) { border-bottom-width: 1px; }
  :root body #main > section:not(.on-stage) + .on-stage { border-top-width: 1px; }
}

/* ------------------------------------------------------------------ footer on narrow screens: the languages as one
   wrapped row under the four link columns (the list was a fifth tall column: ~200px of scrolling on every page). */
@media (max-width: 899px) {
  .ft { padding-top: 48px; }
  .ft__plate { padding-bottom: 24px; }
  .ft__cols { padding: 24px 0; gap: 24px; }
  .ft__col:last-child { grid-column: 1 / -1; }
  .ft__col:last-child ul { display: flex; flex-wrap: wrap; column-gap: 20px; }
}
/* Japanese: no hanging punctuation. WebKit hangs a line-final full-width bracket (）」) outside the box, which pushed
   the page 3px sideways on phones (legal headings). Latin locales keep the hang for quotes. */
html:lang(ja) { hanging-punctuation: none; }
