/* KAMAE — studio site. A glass mark in an LED room, a liquid opening, works on bent cards,
   a white chapter set vertically, service reels. All brand, copy, works, fonts and assets are KAMAE's own. */

:root {
  --ink: #000;
  --white: #fff;
  --grey: #bababa;
  --dim: #7e7e7e;
  --accent: #f0461f;
  --line: rgb(255 255 255 / .18);
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-code: "Google Sans Code", "IBM Plex Mono", ui-monospace, monospace;
  --f-jp: "IBM Plex Sans JP", "Noto Sans JP", sans-serif;
  --f-jpb: "Noto Sans JP", "IBM Plex Sans JP", sans-serif;
  --f-disp: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --vh: 1vh;
  --pad: 50px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--f-jpb); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
.gl-on body { background: transparent; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, p, h1, h2, h3, figure { margin: 0; padding: 0; list-style: none; }
img, svg, canvas, video { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #fff; }
.sp { display: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- loader ---------------- */
.loader { position: fixed; inset: 0; z-index: 100; background: #000; display: none; color: rgb(255 255 255 / .5); font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; pointer-events: none; }
.js .loader { display: block; }
.is-ready .loader, .is-failsafe .loader { display: none; }
.loader__gl, .loader__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__bg { opacity: 0; }
.loader.is-3d { background: transparent; }                /* (灯り is drawn by the site's own canvas underneath) */
.loader.is-3d .loader__gl, .loader.is-3d .loader__bg { display: none; }
html.op-3d.is-loading body > *:not(#loader):not(.gl):not(svg) { visibility: hidden; }
.loader__brand { position: absolute; left: var(--pad); top: 0; height: 120px; display: flex; align-items: center; gap: 11px; color: #fff; opacity: 0; }
.loader__tag { position: absolute; right: var(--pad); top: 0; height: 120px; display: flex; align-items: center; opacity: 0; }
.loader__copy { position: absolute; left: var(--pad); bottom: 52px; }
.loader__jp { font-family: var(--f-jpb); font-size: clamp(20px, 1.9vw, 27px); font-weight: 700; letter-spacing: .14em; line-height: 1.55; color: #fff; white-space: nowrap; }
.loader--noren .loader__jp, .loader--noren .loader__en, .loader--noren .loader__mode, .loader--noren .loader__brand, .loader--noren .loader__tag { text-shadow: 0 0 14px rgb(0 0 0 / .55), 0 0 3px rgb(0 0 0 / .4); }
.loader__jp span { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.4em); transition: opacity .8s var(--ease), filter 1s var(--ease), transform 1s var(--ease); }
.loader__jp span.is-in { opacity: 1; filter: none; transform: none; }
.loader.is-exit .loader__jp span { transition: none; }
.loader__en { margin-top: 14px; font-family: var(--f-code); font-size: 11px; white-space: pre; color: rgb(255 255 255 / .5); opacity: 0; }
.loader__mode { position: absolute; right: var(--pad); bottom: 56px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: rgb(255 255 255 / .62); opacity: 0; }
/* 一筆 is drawn on washi: dark type until the ink floods the paper */
.loader--fude .loader__brand, .loader--fude .loader__jp { color: #151515; transition: color .9s var(--ease); }
.loader--fude .loader__tag, .loader--fude .loader__en, .loader--fude .loader__mode { color: rgb(21 21 21 / .55); transition: color .9s var(--ease); }
.loader--fude.is-flooded .loader__brand, .loader--fude.is-flooded .loader__jp { color: #fff; }
.loader--fude.is-flooded .loader__tag, .loader--fude.is-flooded .loader__en, .loader--fude.is-flooded .loader__mode { color: rgb(255 255 255 / .55); }

/* ---------------- header ---------------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: 120px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); pointer-events: none; color: var(--white); transition: color .8s var(--ease); }
.hdr > * { pointer-events: auto; }
.theme-light .hdr { color: #111; }
/* (the vermilion window opening over the header: each part turns light as the circle's edge passes it — main.js;
   the header itself changes at once there, under parts that are already light) */
.theme-light .hdr .on-dark { color: var(--white); }
.hdr.is-portal { transition: none; }
/* (the white paper coming up under the header: each part turns dark the moment the paper's edge passes its middle —
   main.js seamOverUI — at once, never fading through grey across the edge) */
.hdr .on-paper { color: #111; }
.is-seam .hdr, .is-seam .hdr__logo, .is-seam .hdr__nav a, .is-seam .hdr__right > * { transition: none; }
.hdr__logo { display: flex; align-items: center; gap: 11px; height: 44px; }
.hdr__mark { width: 26px; height: 26px; margin-right: -2px; }
.hdr__word { height: 18px; width: auto; fill: currentColor; }
.hdr__nav { position: absolute; left: 50%; translate: -50% 0; display: flex; gap: 40px; font-family: var(--f-mono); font-size: 14px; letter-spacing: .1em; }
.hdr__nav a { position: relative; display: block; padding: 10px 0; }
.hdr__nav a span { display: inline-block; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__right { display: flex; align-items: center; gap: 16px; }
.slot { position: relative; display: grid; place-items: center; width: 164px; height: 40px; border-radius: 1px; box-shadow: inset 0 0 0 1px currentColor; font-family: var(--f-mono); font-size: 11px; overflow: hidden; transition: background-color .5s var(--ease), color .5s var(--ease); }
.slot span { grid-area: 1 / 1; transition: transform .6s var(--ease); }
.slot__a { font-family: var(--f-jp); font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.slot__b { transform: translateY(160%); }
.slot:hover .slot__a { transform: translateY(-160%); }
.slot:hover .slot__b { transform: translateY(0); }
.slot:hover { background: var(--white); color: #000; }
.theme-light .slot:hover { background: #111; color: #fff; }
.sound-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.sound-btn i { width: 1px; height: 10px; background: currentColor; transform-origin: center; opacity: .7; }
.sound-btn[aria-pressed="true"] i { animation: bar .9s ease-in-out infinite alternate; opacity: 1; }
.sound-btn[aria-pressed="true"] i:nth-child(2) { animation-delay: -.35s; } .sound-btn[aria-pressed="true"] i:nth-child(3) { animation-delay: -.6s; }
@keyframes bar { from { transform: scaleY(.3); } to { transform: scaleY(1.2); } }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor; transition: transform .6s var(--ease), opacity .3s; }
.burger i:nth-child(1) { top: 15px; } .burger i:nth-child(2) { top: 21.5px; } .burger i:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; background: rgb(0 0 0 / .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 120px 28px 40px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__inner { display: flex; flex-direction: column; }
.menu__inner a { font-family: var(--f-disp); font-size: 40px; font-weight: 300; line-height: 1.35; letter-spacing: -.01em; border-bottom: 1px solid var(--line); padding: 6px 0; }
.menu__foot { font-family: var(--f-mono); font-size: 11px; color: var(--grey); }

/* ---------------- sound (first visit) ---------------- */
.sound-card { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 268px; padding: 16px 16px 14px 18px; border-radius: 2px; background: rgb(14 14 14 / .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); color: #fff; opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.sound-card.is-in { opacity: 1; transform: none; }
.sound-card__text { display: flex; align-items: center; gap: 12px; font-family: var(--f-jp); font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.sound-card__eq { display: flex; align-items: center; gap: 2px; height: 14px; }
.sound-card__eq i { width: 2px; height: 100%; background: var(--accent); transform-origin: 50% 100%; animation: eq 1.1s ease-in-out infinite alternate; }
.sound-card__eq i:nth-child(2) { animation-delay: -.4s; } .sound-card__eq i:nth-child(3) { animation-delay: -.8s; } .sound-card__eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.sound-card__actions { display: flex; gap: 8px; margin-top: 14px; }
.sound-card__actions button { flex: 1; height: 36px; border-radius: 1px; font-family: var(--f-jp); font-size: 12px; font-weight: 500; letter-spacing: .06em; transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.sound-card__on { background: #fff; color: #000; }
.sound-card__on:hover { background: var(--accent); color: #fff; }
.sound-card__off { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); color: rgb(255 255 255 / .8); }
.sound-card__off:hover { box-shadow: inset 0 0 0 1px #fff; color: #fff; }

/* ---------------- chapter rail (right edge) ---------------- */
.rail { position: fixed; right: 22px; top: 50%; z-index: 40; display: grid; gap: 12px; transform: translateY(-50%); font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: rgb(255 255 255 / .36); opacity: 0; transition: opacity .8s var(--ease), color .8s var(--ease); pointer-events: none; }
.rail.is-on { opacity: 1; }
.theme-light .rail { color: rgb(0 0 0 / .36); }
.rail__item { display: flex; align-items: center; justify-content: flex-end; gap: 9px; height: 14px; transition: color .6s var(--ease); }
.rail__item span { display: none; }
.rail__item b { font-weight: 400; font-variant-numeric: tabular-nums; }
.rail__item i { width: 6px; height: 1px; background: currentColor; transition: width .7s var(--ease), background-color .6s; }
.rail__item.is-active { color: #fff; }
.theme-light .rail__item.is-active { color: #111; }
.rail__item.is-active i { width: 20px; background: var(--accent); }
/* (the paper coming up passes the rail item by item: each turns dark as the edge passes it — main.js seamOverUI) */
.rail__item.on-paper { color: rgb(0 0 0 / .36); }
.rail__item.on-paper.is-active { color: #111; }
.is-seam .rail, .is-seam .rail__item { transition: opacity .8s var(--ease); }
.is-seam .rail__item i { transition-property: width; }

/* ---------------- WebGL layer ---------------- */
.gl { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.gl canvas { width: 100% !important; height: 100% !important; }
.main { position: relative; z-index: 1; }

/* ---------------- HUD (tweak-panel look) ---------------- */


/* ---------------- sections ---------------- */
.sec { position: relative; height: calc(var(--h) * var(--vh)); }
.sticky { position: sticky; top: 0; height: calc(100 * var(--vh)); overflow: hidden; }
/* the works and service copy belongs to the fixed WebGL scene: pinned for the whole chapter
   (a sticky box would start scrolling away during the last screen of its section) */
.gl-on .sec--works .sticky, .gl-on .sec--service .sticky, .gl-on .sec--mv .sticky, .gl-on .sec--plans .sticky, .gl-on .sec--contact .sticky { position: fixed; inset: 0; pointer-events: none; }
/* the pinned chapters sit above the (empty, scrolling) sections after them, so their buttons stay clickable */
.gl-on .sec--works .sticky, .gl-on .sec--service .sticky, .gl-on .sec--plans .sticky, .gl-on .sec--contact .sticky { z-index: 2; }

/* KV */
.kv__fallback { display: none; }
.news { position: absolute; left: var(--pad); bottom: 64px; width: 300px; font-family: var(--f-jp); color: var(--grey); }
.news__title { margin-bottom: 14px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.news__list li { display: grid; gap: 3px; margin-bottom: 20px; }
.news time { font-family: var(--f-code); font-size: 11px; font-weight: 500; }
.news a { font-size: 13px; font-weight: 500; line-height: 1.4; color: #fff; }
.news a:hover { text-decoration: underline; text-underline-offset: 4px; }
.kv__scroll { position: absolute; right: 22px; top: 50%; writing-mode: vertical-rl; font-family: var(--f-code); font-size: 12px; letter-spacing: .1em; color: rgb(255 255 255 / .8); display: none; }

/* WORKS */
.works { position: absolute; inset: 0; pointer-events: none; }
.work { position: absolute; left: 115px; bottom: 95px; width: min(720px, 60vw); visibility: hidden; }
.work.is-active { visibility: visible; pointer-events: auto; }
/* (the longer lines wrap short of the glass block's corner and its reflection) */
.work__ja, .work__plan { max-width: min(400px, 30vw); }
.work__meta { display: flex; align-items: baseline; gap: 18px; font-family: var(--f-code); }
.work__no { font-size: 12px; letter-spacing: .1em; color: #fff; }
.work__no i { margin: 0 4px; font-style: normal; color: rgb(255 255 255 / .4); }
.work time { font-size: 12px; font-weight: 300; letter-spacing: .16em; color: rgb(255 255 255 / .6); }
.work__imp { display: flex; align-items: center; gap: 10px; min-height: 1.6em; margin-top: 14px; font-family: var(--f-jp); font-size: 13px; letter-spacing: .06em; color: rgb(255 255 255 / .82); }
.work__imp::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.work__tags { display: flex; flex-wrap: wrap; margin-top: 10px; font-family: var(--f-code); font-size: 11px; letter-spacing: .06em; color: rgb(255 255 255 / .5); }
.work__tags li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.work__title { margin-top: 10px; font-family: var(--f-disp); font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -.005em; }
.work__ja { margin-top: 12px; font-size: 14px; letter-spacing: .15em; }
.work__plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 14px; font-family: var(--f-jp); font-size: 13px; letter-spacing: .08em; color: rgb(255 255 255 / .72); }
.work__plan span { padding: 3px 8px 2px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .34); font-size: 11px; letter-spacing: .12em; color: rgb(255 255 255 / .86); }
.work__plan b { font-weight: 600; font-size: 15px; letter-spacing: .04em; color: #fff; }
/* the real sample site laid over the window in front (live.js) */
.live { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
/* (the copy paints over the live sites; <main> lets the pointer through to them except on what can be pressed) */
.gl-on .main { pointer-events: none; }
.gl-on .main :is(a, button, input, select, textarea, label, summary, [data-plan-label]) { pointer-events: auto; }
/* (…but not what has gone: copy faded out — and the plans' panels not in front — keeps its links and buttons unpressable,
   or they would sit unseen over the rest of the page, the Contact's word over the works and the footer) */
.gl-on .main :is(.is-mute, .tier:not(.is-active), .care:not(.is-active), .plans__labels:not(.is-active)) :is(a, button, input, select, textarea, label, summary, [data-plan-label]) { pointer-events: none; }
.gl-on .work.is-active { pointer-events: none; }
/* (the box does not clip: the cue stands outside the page, under its foot — the site itself is rounded) */
.live__box { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; border-radius: 6px; opacity: 0; background: #000; }
.live__site { display: block; width: 1280px; height: 800px; border: 0; border-radius: inherit; background: #000; }
.live__sheen { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), inset 0 0 28px rgb(0 0 0 / .32); background: linear-gradient(118deg, rgb(255 255 255 / .07) 0%, rgb(255 255 255 / .02) 26%, rgb(255 255 255 / 0) 38%, rgb(255 255 255 / 0) 78%, rgb(255 255 255 / .035) 100%); }
/* the pointer over a site: its window's edge lights a little (this is where a scroll reads the site) */
.live__sheen { transition: box-shadow .5s var(--ease); }
.live__box.is-hover .live__sheen { box-shadow: inset 0 0 0 2px rgb(255 255 255 / .34), inset 0 0 28px rgb(0 0 0 / .32); }

/* the cue: a site in a window can be scrolled — a dark plate set outside its page (under its foot; on a phone over
   its top edge or under its foot), never over the shop's own logo or buttons: a mouse whose wheel turns and one line,
   until the visitor has scrolled that site (live.js) */
.cue { display: flex; align-items: center; justify-content: center; color: rgb(255 255 255 / .88); white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(.35em); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.cue__sign { position: relative; display: flex; align-items: center; gap: 1em; padding: .72em 1.25em .72em 1.05em;
  background: rgb(12 11 10 / .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 .6em 1.8em rgb(0 0 0 / .45); }
.cue__t { display: flex; align-items: center; gap: 1em; font-family: var(--f-jp); font-size: 1em; font-weight: 500; letter-spacing: .16em; }
.cue__t b { display: flex; align-items: center; gap: 1em; font-family: var(--f-mono); font-size: .72em; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.cue__t b::after { content: ""; width: 2em; height: 1px; background: currentColor; opacity: .55; }
/* a mouse whose wheel turns */
.cue__mouse { position: relative; flex: none; width: .9em; height: 1.4em; border-radius: .45em; box-shadow: inset 0 0 0 1px currentColor; }
.cue__mouse i { position: absolute; left: 50%; top: .27em; width: 1.5px; height: .34em; margin-left: -.75px; border-radius: 1px; background: currentColor; animation: cue-wheel 1.5s var(--ease) infinite; }
@keyframes cue-wheel { 0% { transform: translateY(0); opacity: 0; } 18% { opacity: 1; } 70% { transform: translateY(.44em); opacity: 0; } 100% { transform: translateY(.44em); opacity: 0; } }
.cue--live { position: absolute; left: 0; right: 0; top: calc(100% + 2.4em); z-index: 2; font-size: 21px; }
.live__box.is-cue .cue--live { opacity: 1; transform: none; }
/* (placed by its transform every frame: only its opacity eases; over the window the arrow points down at it) */
.cue--flat { position: fixed; left: 0; top: 0; z-index: 3; font-size: 11px; will-change: transform; transition: opacity .7s var(--ease); }
.cue--flat.is-cue { opacity: 1; }
.cue--flat.is-desk { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .cue__mouse i { animation: none; opacity: 1; } }
.is-in-site .kc { opacity: 0 !important; }
.work__fallback { display: none; }
.work__open { display: inline-flex; align-items: center; gap: 12px; height: 40px; margin-top: 22px; padding: 0 18px 0 20px; border-radius: 1px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); font-family: var(--f-jp); font-size: 12px; font-weight: 500; letter-spacing: .12em; transition: background-color .5s var(--ease), color .5s var(--ease); }
.work__open svg { width: 12px; height: 12px; transition: transform .5s var(--ease); }
.work__open:hover { background: #fff; color: #000; }
.work__open:hover svg { transform: translate(2px, -2px); }
/* ---------------- cursor: a different tool for each chapter (cursor.js) ---------------- */
.has-kc, .has-kc a, .has-kc button, .has-kc label, .has-kc summary { cursor: none; }
.has-kc input, .has-kc textarea, .has-kc select { cursor: auto; }
.has-kc .modal, .has-kc .modal * { cursor: auto; }
.has-kc .modal a, .has-kc .modal button, .has-kc .modal label { cursor: pointer; }
.kc { position: fixed; inset: 0; z-index: 140; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.kc.is-live { opacity: 1; }
.kc.is-native { opacity: 0; }
.kc__trail { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s; }
.kc__pos, .kc__lag { position: absolute; left: 0; top: 0; will-change: transform; }
.kc__pos > *, .kc__lag > * { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .45s var(--ease), transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease), margin .55s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease); }
/* 灯 — the top: a vermilion light */
.kc__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); }
.kc__glow { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(closest-side, rgb(240 70 31 / .34), rgb(240 70 31 / .1) 55%, rgb(240 70 31 / 0)); }
.kc[data-scene="kv"] .kc__dot, .kc[data-scene="kv"] .kc__glow { opacity: 1; }
.kc[data-scene="kv"].is-press .kc__glow { transform: scale(1.45); }
.kc[data-scene="kv"].is-drag .kc__dot { opacity: 0; }
.kc[data-scene="kv"].is-drag .kc__glow { transform: scale(.6); }
.kc[data-scene="kv"].is-drag .kc__frame { opacity: 1; transform: scale(.9); }
/* 構え — the K, and the vermilion ball resting in its crook (as in the white chapter), which swells on anything
   you can press */
.kc__frame { width: 22px; height: 22px; max-width: none; margin: -11px 0 0 -11px; color: #fff; overflow: visible; }
.kc[data-scene="contact"] .kc__frame { opacity: 1; }
.kc[data-scene="contact"] .kc__dot { opacity: 1; width: 6px; height: 6px; margin: -3.3px 0 0 4.2px; }
.kc[data-scene="contact"].is-press .kc__frame { transform: scale(1.3); }
.kc[data-scene="contact"].is-press .kc__dot { transform: translate(2.2px, -.1px) scale(1.6); }
/* トンボ — crop marks for the works */
.kc__tombo { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.kc__tombo i { position: absolute; width: 8px; height: 8px; border: 0 solid #fff; }
.kc__tombo i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.kc__tombo i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.kc__tombo i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.kc__tombo i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.kc[data-scene="works"] .kc__tombo { opacity: 1; }
.kc[data-scene="works"] .kc__dot { opacity: 1; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; background: #fff; }
.kc[data-scene="works"].is-card .kc__dot { opacity: 0; }
.kc[data-scene="works"].is-card .kc__tombo { width: 178px; height: 60px; margin: -30px 0 0 -89px; }
.kc[data-scene="works"].is-side .kc__tombo { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.kc[data-scene="works"].is-press:not(.is-card) .kc__tombo { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.kc__label { margin: 0; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 9px; font-family: var(--f-jp); font-size: 12px; font-weight: 500; letter-spacing: .12em; color: #fff; white-space: nowrap; }
.kc__label svg { width: 10px; height: 10px; transition: transform .5s var(--ease); }
.kc[data-scene="works"].is-card .kc__label { opacity: 1; }
.kc[data-scene="works"].is-side .kc__label span { display: none; }
/* 筆 — a vertical brush line for the white chapter (set top to bottom) */
.kc__line { width: 2px; height: 28px; margin: 0; border-radius: 1px; background: linear-gradient(#111 0 62%, rgb(17 17 17 / .55) 82%, rgb(17 17 17 / 0)); transition: opacity .45s var(--ease), width .45s var(--ease), height .45s var(--ease); transform-origin: 50% 100%; }
.kc[data-scene="read"] .kc__line { opacity: 1; }
.kc[data-scene="read"].is-press .kc__line { width: 3px; height: 36px; }
/* 一筆 — a point that leaves a brush trail */
.kc[data-scene="service"] .kc__trail { opacity: 1; }
.kc[data-scene="service"] .kc__dot { opacity: 1; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.kc[data-scene="service"].is-press .kc__dot { transform: scale(2.2); }
.is-card-hover body { cursor: none; }
.work [data-split-char] { display: inline-block; }
.works__more { position: absolute; right: 43px; bottom: 95px; display: flex; align-items: center; gap: 8px; font-family: var(--f-code); font-size: 16px; letter-spacing: .05em; opacity: 0; }
.works__more svg { width: 15px; height: 15px; transition: transform .5s var(--ease); }
.works__more:hover svg { transform: translate(3px, -3px); }

/* MISSION / VISION */
.sec--mv { color: #111; }
.mv { position: absolute; inset: 0; }
.mv__ttl { position: absolute; left: var(--pad); top: 150px; display: flex; align-items: baseline; gap: 14px; font-weight: 400; }
.mv__no { font-family: var(--f-code); font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.mv__name { font-family: var(--f-disp); font-size: 30px; font-weight: 300; letter-spacing: -.01em; line-height: 1; color: #111; }
.mv__ja { font-family: var(--f-jp); font-size: 12px; letter-spacing: .14em; color: #555; }
.mv__text { position: absolute; right: 14vw; top: 50%; translate: 0 -50%; writing-mode: vertical-rl; font-family: var(--f-jpb); font-size: 38px; font-weight: 700; letter-spacing: .22em; line-height: 1.5; color: #111; }
.mv__col { display: block; white-space: nowrap; }
.mv__text { --cut-glow: 240 70 31; --cut-blade: #f0461f; }
.mv__col + .mv__col { margin-block-start: .7em; }
.mv--vision .mv__text { right: auto; left: 15vw; top: calc(50% + 36px); }   /* (clear of the heading's label) */
.mv__en { position: absolute; left: var(--pad); bottom: 120px; font-family: var(--f-disp); font-size: 13.5px; font-weight: 300; letter-spacing: .08em; line-height: 1.4; color: #444; }   /* (the paper's shade is deeper than it was: still read) */

/* SERVICE */
.services { position: absolute; inset: 0; }
.svc { position: absolute; right: 72px; top: 240px; width: 454px; opacity: 0; visibility: hidden; }
.svc.is-active { visibility: visible; }
.svc__badge { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.svc__badge span { font-size: 22px; color: #fff; letter-spacing: .04em; }
.svc__title { margin-top: 56px; text-align: right; font-family: var(--f-disp); font-size: 43.2px; font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.svc__desc { margin-top: 26px; font-size: 13.1px; font-weight: 500; letter-spacing: .09em; line-height: 2.05; }
.svc__en { margin: 32px 0 0 auto; width: 216px; font-family: var(--f-disp); font-size: 12px; font-weight: 300; line-height: 1.3; color: var(--dim); }
.services__count { position: absolute; right: 72px; bottom: 110px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--grey); opacity: 0; }
.services__count b { font-weight: 400; color: #fff; }

/* PLANS — in the service room: the same inn at three prices, then the monthly care */
.plans { position: absolute; inset: 0; }
.plans__head, .plans__labels, .tier, .care { opacity: 0; visibility: hidden; }
.plans .is-active { visibility: visible; }
.plans__no { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.plans__no span { font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.plans__head { position: absolute; left: var(--pad); right: 72px; top: 128px; display: grid; grid-template-columns: 1fr 400px; column-gap: 40px; align-items: end; }
.plans__head .plans__no { grid-column: 1 / -1; margin-bottom: 18px; }
.plans__title { font-family: var(--f-jpb); font-size: 38px; font-weight: 700; letter-spacing: .12em; line-height: 1.45; }
.plans__lead { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; line-height: 2; color: rgb(255 255 255 / .82); }
.plans__labels li { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 4px; transform: translate(-50%, 0); white-space: nowrap; will-change: transform; cursor: pointer; }
.plans__labels b { font-family: var(--f-jpb); font-size: 15px; font-weight: 700; letter-spacing: .16em; }
.plans__labels span { font-family: var(--f-disp); font-size: 27px; font-weight: 300; letter-spacing: -.01em; }
/* what the price buys, in one line with the page glyphs: the distinction carries real weight */
.plans__labels small { display: flex; align-items: center; gap: 10px; margin-top: 9px; padding-top: 9px; border-top: 1px solid rgb(255 255 255 / .22); font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #fff; }
.plans__labels small > span { font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
/* page marks, drawn: one page with its lines; five pages stacked; one page that is water (the rings) */
.pg { flex: none; width: 24px; height: 18px; fill: rgb(255 255 255 / .1); stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; overflow: visible; }
.pg rect { fill: rgb(255 255 255 / .1); }
.pg path { fill: none; }
.pg--x circle { stroke: var(--accent); fill: none; }
.pg--x circle:first-of-type { fill: var(--accent); stroke: none; }
.tier { position: absolute; right: 72px; top: 196px; width: 430px; }
.tier__badge { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.tier__badge span { font-size: 22px; color: #fff; letter-spacing: .04em; }
.tier__name { margin-top: 30px; font-family: var(--f-jpb); font-size: 26px; font-weight: 700; letter-spacing: .16em; }
.tier__price { margin-top: 6px; font-family: var(--f-disp); font-size: 74px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.tier__price small { margin-left: 6px; font-family: var(--f-jpb); font-size: 16px; font-weight: 700; letter-spacing: .1em; }
.tier__digit { display: inline-block; }
.tier__what { margin-top: 18px; font-size: 15px; font-weight: 700; letter-spacing: .1em; }
.tier__list { margin-top: 18px; border-top: 1px solid var(--line); }
.tier__list li { position: relative; padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 500; letter-spacing: .05em; line-height: 1.7; }
.tier__list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 5px; height: 5px; background: var(--accent); }
.tier__meta { margin-top: 14px; font-size: 11px; letter-spacing: .1em; color: var(--grey); white-space: pre-wrap; }
.tier__open { display: inline-flex; align-items: center; gap: 12px; height: 44px; margin-top: 20px; padding: 0 20px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55); font-size: 13px; font-weight: 700; letter-spacing: .12em; transition: background-color .5s var(--ease), color .5s var(--ease); }
.tier__open svg { width: 12px; height: 12px; }
.tier__open:hover { background: #fff; color: #000; }
.tier.is-active .tier__open, .care.is-active, .plans__labels.is-active li { pointer-events: auto; }
.tier__fallback { display: none; }
/* the price scale: a hairline with the three prices, a vermilion mark sliding along it with the scroll */
.plans__scale { position: absolute; right: 72px; top: 132px; width: 340px; height: 56px; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.plans__scale.is-on { opacity: 1; }
.plans__scale::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgb(255 255 255 / .24); }
.plans__tick { position: absolute; left: -1px; top: -5px; width: 2px; height: 11px; background: var(--accent); box-shadow: 0 0 8px rgb(240 70 31 / .6); transform: translateX(var(--x, 0px)); }
.plans__marks { position: absolute; left: 0; right: 0; top: 14px; display: flex; justify-content: space-between; font-family: var(--f-jp); font-size: 10.5px; letter-spacing: .08em; color: rgb(255 255 255 / .42); opacity: 0; transition: opacity .5s var(--ease); }
.plans__marks.is-on { opacity: 1; }
.plans__marks li { display: grid; gap: 3px; text-align: center; transition: color .5s var(--ease); }
.plans__marks li:first-child { text-align: left; }
.plans__marks li:last-child { text-align: right; }
.plans__marks b { font-family: var(--f-disp); font-size: 15px; font-weight: 300; letter-spacing: -.01em; color: rgb(255 255 255 / .55); transition: color .5s var(--ease); }
.plans__marks li.is-now, .plans__marks li.is-now b { color: #fff; }
.plans__marks[data-scale="care"] li.is-now b { color: #fff; }
/* the last step stands alone in the room (the three boards have left): centred, title beside the rows */
.care { position: absolute; left: var(--pad); right: 72px; top: 50%; translate: 0 -50%; display: grid; grid-template-columns: 330px 1fr; column-gap: 56px; align-items: start; }
.care > .plans__no, .care__title, .care__lead { grid-column: 1; }
.care__title { margin-top: 18px; font-family: var(--f-jpb); font-size: 30px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; }
.care__lead { margin-top: 16px; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; line-height: 2; color: rgb(255 255 255 / .8); }
/* the monthly care: three rows on hairlines (the same hand as the tier lists), the usual one marked */
.care__rows { grid-column: 2; grid-row: 1 / span 3; border-top: 1px solid rgb(255 255 255 / .35); }
.care__row { position: relative; display: grid; grid-template-columns: 150px 170px 1fr; column-gap: 24px; align-items: baseline; padding: 16px 0 16px 18px; border-bottom: 1px solid var(--line); }
.care__row::before { content: ""; position: absolute; left: 2px; top: 25px; width: 5px; height: 5px; background: rgb(255 255 255 / .35); }
.care__row.is-main::before { background: var(--accent); }
.care__name { display: flex; flex-direction: column; gap: 3px; font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.care__name em { font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .1em; color: var(--accent); }
.care__price { font-family: var(--f-disp); font-size: 34px; font-weight: 300; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.care__price small { margin-left: 4px; font-family: var(--f-jpb); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.care__desc { font-size: 12px; font-weight: 500; letter-spacing: .04em; line-height: 1.85; color: rgb(255 255 255 / .78); }
.care__brand { grid-column: 2; margin-top: 16px; font-size: 12px; letter-spacing: .06em; color: var(--grey); }
.care__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.care__more, .care__ask { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px; font-size: 13px; font-weight: 700; letter-spacing: .12em; transition: background-color .5s var(--ease), color .5s var(--ease); }
.care__more { background: #fff; color: #000; }
.care__more:hover { background: var(--accent); color: #fff; }
.care__ask { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55); }
.care__ask:hover { background: #fff; color: #000; }
.care__more svg, .care__ask svg { width: 12px; height: 12px; }

/* plans in detail — a sheet over the room (the WebGL keeps running behind it) */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; background: rgb(0 0 0 / .32); }
.sheet__panel { position: relative; width: min(860px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 64px 56px; background: rgb(8 8 9 / .84); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); box-shadow: inset 1px 0 0 rgb(255 255 255 / .16); }
.sheet__title { margin-top: 10px; font-size: 30px; font-weight: 700; letter-spacing: .1em; }
.sheet__lead { margin-top: 14px; font-size: 13px; line-height: 1.9; letter-spacing: .05em; color: var(--grey); }
.sh { margin-top: 58px; }
.sh__ttl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 22px; font-size: 19px; font-weight: 700; letter-spacing: .1em; }
.sh__ttl span { font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--accent); }
.sh__ttl small { font-size: 11.5px; font-weight: 500; letter-spacing: .06em; color: var(--grey); }
.sh__note { margin-top: 18px; font-size: 12px; line-height: 1.95; letter-spacing: .04em; color: var(--grey); }
.sh__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sh__scroll { overflow-x: auto; }
.sheet .tbl { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 12.5px; }
.sheet .tbl th, .sheet .tbl td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; line-height: 1.7; }
.sheet .tbl thead th { font-size: 13px; font-weight: 700; letter-spacing: .12em; border-bottom-color: #fff; }
.sheet .tbl thead th small { display: block; margin-top: 2px; font-family: var(--f-disp); font-size: 20px; font-weight: 300; letter-spacing: 0; }
.sheet .tbl tbody th { width: 28%; color: var(--grey); letter-spacing: .06em; }
.sheet .tbl .no { color: rgb(255 255 255 / .3); }
.sh-cares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sh-care { padding: 20px 18px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.sh-care__name { font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.sh-care__price { margin-top: 8px; font-family: var(--f-disp); font-size: 30px; font-weight: 300; line-height: 1; }
.sh-care__price small { margin-left: 4px; font-family: var(--f-jpb); font-size: 11px; font-weight: 700; }
.sh-care ul { margin-top: 14px; display: grid; gap: 8px; }
.sh-care li { position: relative; padding-left: 13px; font-size: 12px; line-height: 1.75; color: rgb(255 255 255 / .8); }
.sh-care li::before { content: ""; position: absolute; left: 0; top: .8em; width: 4px; height: 4px; background: var(--accent); }
.sheet .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.sheet .opts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.sheet .opts li b { font-family: var(--f-disp); font-size: 15px; font-weight: 400; white-space: nowrap; }
.sheet .flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 0; counter-reset: f; }
.sheet .flow li { position: relative; padding: 22px 22px 0 0; border-top: 1px solid var(--line); }
.sheet .flow li::before { counter-increment: f; content: "0" counter(f); display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.sheet .flow li::after { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: #fff; }
.sheet .flow b { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.sheet .flow p { margin-top: 6px; font-size: 12px; line-height: 1.85; color: rgb(255 255 255 / .72); }
.sheet .promise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.sheet .promise li { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.sheet .promise b { display: block; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.sheet .promise p { margin-top: 6px; font-size: 12.5px; line-height: 1.9; color: rgb(255 255 255 / .74); }
.sheet .faq { border-top: 1px solid var(--line); }
.sheet .faq details { border-bottom: 1px solid var(--line); }
.sheet .faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-size: 14px; font-weight: 500; letter-spacing: .06em; cursor: pointer; }
.sheet .faq summary::-webkit-details-marker { display: none; }
.sheet .faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform .6s var(--ease); }
.sheet .faq details[open] summary::after { transform: rotate(45deg); }
.sheet .faq details p { padding-bottom: 20px; font-size: 13px; line-height: 1.95; color: rgb(255 255 255 / .8); }
.sheet__end { margin-top: 40px; }
.sheet__end .form__submit { padding: 0 30px; }

/* CONTACT */
.cta { position: absolute; inset: 0; }
.cta__main::before { content: ""; display: block; width: 44px; height: 2px; margin-bottom: 30px; background: var(--accent); }
.cta__main { position: absolute; left: 80px; bottom: 170px; width: 520px; }
.cta__link { display: flex; align-items: center; gap: 22px; font-family: var(--f-disp); font-size: 104px; font-weight: 700; font-stretch: 112%; letter-spacing: -.035em; line-height: 1; }
.cta__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 1px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); transition: background-color .5s var(--ease), color .5s var(--ease); }
.cta__arrow svg { width: 16px; height: 16px; }
.cta__link:hover .cta__arrow { background: #fff; color: #000; }
.cta__desc { margin-top: 26px; font-size: 13px; font-weight: 500; letter-spacing: .08em; line-height: 2; }
.cta__en { position: absolute; right: 80px; bottom: 170px; width: 260px; font-family: var(--f-disp); font-size: 12px; font-weight: 300; line-height: 1.35; color: var(--grey); }

/* OUTRO + FOOTER */
/* display type, cut in (assets/js/type.js): each character is clipped at a blade along the K's slash; the blade is
   a line of light (vermilion on paper) */
.cut-ch { display: inline-block; }
.cut--on .cut-ch { clip-path: polygon(-30% -20%, calc(var(--c, 1) * (100% + var(--s, .8em))) -20%, calc(var(--c, 1) * (100% + var(--s, .8em)) - var(--s, .8em)) 120%, -30% 120%);
  transform: translate(calc((var(--c, 1) - 1) * .09em), calc((1 - var(--c, 1)) * .11em)); text-shadow: 0 0 calc(var(--g, 0) * 16px) rgb(var(--cut-glow, 255 255 255) / calc(var(--g, 0) * .75)); }
.cut--v.cut--on .cut-ch { clip-path: polygon(-20% -30%, 120% -30%, 120% calc(var(--c, 1) * (100% + var(--s, .8em)) - var(--s, .8em)), -20% calc(var(--c, 1) * (100% + var(--s, .8em))));
  transform: translate(calc((var(--c, 1) - 1) * .09em), calc((var(--c, 1) - 1) * .11em)); }
.cut__blade { position: absolute; left: 0; top: 0; height: 1.5px; margin-top: -.75px; transform-origin: 0 50%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--cut-blade, #fff) 16%, var(--cut-blade, #fff) 84%, transparent); box-shadow: 0 0 9px 1px rgb(240 70 31 / .7), 0 0 2px var(--cut-blade, #fff); }
.outro { position: absolute; inset: 0; display: grid; place-items: center; }
/* the last KAMAE: with WebGL it is drawn by the composite (gl/post.js) exactly over this box; the svg keeps the
   place (and is the word itself without WebGL). The notes are the guides' labels while the word is being set. */
.outro__box { position: relative; width: min(86vw, 1240px); }
.outro__word { display: block; width: 100%; height: auto; overflow: visible; }
.gl-on .outro__word { visibility: hidden; }
.outro__spec { position: absolute; margin: 0; font-family: var(--f-code); font-size: 10px; letter-spacing: .14em; line-height: 1; color: rgb(255 255 255 / .55); white-space: nowrap; opacity: 0; pointer-events: none; }
.gl-off .outro__spec { display: none; }
/* (the notes keep off the guides: CAP / BASE end between the E's ticks, not on its edge line; CUT stands above the
   ticks, on the left of the cut it names, clear of the dashed line) */
.outro__spec--cap { right: 14px; bottom: calc(100% + 9px); }
.outro__spec--base { right: 14px; top: calc(100% + 9px); }
.outro__spec--cut { right: calc(43.6% - 10px); bottom: calc(100% + 44px); color: rgb(240 70 31 / .92); }
.outro__tag { position: absolute; left: 50%; bottom: calc(100% + clamp(30px, 4.4vw, 70px)); translate: -50% 0; margin: 0; font-family: var(--f-jpb); font-size: clamp(13px, 1.15vw, 16px); font-weight: 700; letter-spacing: .36em; line-height: 1; white-space: nowrap; color: rgb(255 255 255 / .9); }
.outro__word path { fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ftr { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 36px 34px; display: grid; grid-template-columns: 1fr auto; align-items: end; font-family: var(--f-mono); font-size: 14px; }
.ftr__nav { display: flex; gap: 48px; }
.ftr__nav ul { display: grid; gap: 12px; }
.ftr__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ftr__right { display: grid; justify-items: end; gap: 10px; }
.ftr__cta { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--grey); margin-left: 36px; }
.ftr__cta span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 1px; box-shadow: inset 0 0 0 1px currentColor; }
.ftr__cta svg { width: 12px; height: 12px; }
.ftr__cta:hover { color: #fff; }
.ftr__right { grid-template-columns: auto auto; }
.ftr__note { grid-column: 1 / -1; font-family: var(--f-jp); font-size: 11px; color: var(--dim); }
/* (a small line under the note, not a second, faint KAMAE under the last one, cut by the screen's edge) */
.ftr__copy { position: absolute; right: 36px; bottom: 12px; margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--dim); pointer-events: none; }
/* (main.js keeps the footer back until the last KAMAE stands; a keyboard that reaches it shows it at once) */
.ftr:focus-within { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
.ftr:focus-within .ftr__nav ul, .ftr:focus-within .ftr__right, .ftr:focus-within .ftr__copy { transform: none !important; }

/* ---------------- contact memo modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgb(0 0 0 / .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal__panel { position: relative; width: min(640px, 100%); max-height: calc(100 * var(--vh) - 48px); overflow: auto; padding: 44px 44px 40px; background: #0b0b0c; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }
.modal__close { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; }
.modal__close i { position: absolute; left: 12px; right: 12px; top: 21px; height: 1px; background: #fff; transform: rotate(45deg); }
.modal__close i + i { transform: rotate(-45deg); }
.modal__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--grey); }
.modal__title { margin-top: 10px; font-size: 26px; font-weight: 700; letter-spacing: .06em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 28px; }
.form__row { display: grid; gap: 8px; font-size: 12px; letter-spacing: .06em; color: var(--grey); }
.form__row--wide, .form__note, .form__submit { grid-column: 1 / -1; }
.form__row em { font-style: normal; font-family: var(--f-mono); font-size: 10px; color: var(--accent); margin-left: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; font-size: 15px; color: #fff; background: rgb(255 255 255 / .04); border: 0; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); border-radius: 2px; }
.form select { appearance: none; }
.form [aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--accent); }
.form__note { font-size: 12px; color: var(--dim); }
.form__note.is-error { color: var(--accent); }
.modal__lead { margin-top: 14px; font-size: 13px; line-height: 1.9; letter-spacing: .04em; color: var(--grey); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__agree { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; font-size: 12px; letter-spacing: .05em; color: var(--grey); cursor: pointer; }
.form__agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); box-shadow: none; }
.form__agree a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.form__submit { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; background: #fff; color: #000; font-size: 14px; font-weight: 700; letter-spacing: .14em; transition: background-color .5s var(--ease), color .5s var(--ease), opacity .3s; }
.form__submit svg { width: 12px; height: 12px; }
.form__submit:hover { background: var(--accent); color: #fff; }
.form__submit.is-sending { opacity: .5; pointer-events: none; }
.done { display: grid; justify-items: start; gap: 14px; margin-top: 30px; }
.done__mark { width: 34px; height: 34px; color: #fff; }
.done__title { font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.done__text { font-size: 13px; line-height: 2; color: var(--grey); }
.done__close { margin-top: 8px; height: 44px; padding: 0 22px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4); font-size: 13px; letter-spacing: .12em; }
.done__close:hover { background: #fff; color: #000; }

/* ---------------- no-WebGL / reduced motion fallback ---------------- */
.gl-off [data-sec="works_intro"], .gl-off [data-sec="works_outro"], .gl-off [data-sec="mission_in"], .gl-off [data-sec="vision_out"], .gl-off [data-sec="service_in"] { height: 0; }
.gl-off .sec--mv { height: auto; }
.gl-off .sec--mv .sticky { position: relative; height: auto; min-height: 100vh; }
.gl-off .sec--mv .mv { position: relative; min-height: 100vh; }
.gl-off .work { display: flex; flex-direction: column; }
.gl-off .work__fallback { order: -1; margin: 0 0 26px; }
.gl-off .sec--contact { background: radial-gradient(120% 90% at 70% 30%, #3a0d06, #000 70%); }
.gl-off .kv__fallback { display: grid; place-items: center; position: absolute; inset: 0; }
.gl-off .kv__fallback svg { width: 86vw; fill: #fff; }
.gl-off .sec--works { height: auto; }
.gl-off .sec--works .sticky { position: relative; height: auto; overflow: visible; padding: 140px 0 80px; }
.gl-off .works { position: relative; display: grid; gap: 90px; }
.gl-off .work { position: relative; left: auto; bottom: auto; width: auto; padding: 0 115px; visibility: visible; pointer-events: auto; }
.gl-off .work__fallback { display: block; margin-top: 26px; }
.gl-off .works__more { position: relative; right: auto; bottom: auto; opacity: 1; margin: 60px 115px 0; }
.gl-off .sec--mv { background: #e7e3dc; }
.gl-off .svc { position: relative; inset: auto; opacity: 1; visibility: visible; margin: 0 72px 80px auto; }
.gl-off .sec--service { height: auto; }
.gl-off .sec--service .sticky { position: relative; height: auto; padding: 140px 0 60px; }
.gl-off .services { position: relative; }
.gl-off .outro__word path { fill-opacity: 1; }
.gl-off .sec--plans { height: auto; }
.gl-off .sec--plans .sticky { position: relative; height: auto; overflow: visible; padding: 140px 0 60px; }
.gl-off .plans { position: relative; display: grid; gap: 70px; padding: 0 72px; }
.gl-off .plans__head, .gl-off .tier, .gl-off .care { position: relative; inset: auto; width: auto; opacity: 1; visibility: visible; }
.gl-off .plans__labels, .gl-off .plans__scale { display: none; }
.gl-off .tier { display: grid; grid-template-columns: 1fr 430px; column-gap: 50px; }
.gl-off .tier > * { grid-column: 2; }
.gl-off .tier__fallback { display: block; grid-column: 1; grid-row: 1 / span 8; }
.gl-off .tier__badge { justify-content: flex-start; }
.gl-off .tier__open, .gl-off .care { pointer-events: auto; }

/* ---------------- tablet / phone ---------------- */
@media (max-width: 1100px) {
  .hdr__nav { gap: 26px; }
}
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .hdr { height: 84px; }
  .hdr__nav, .slot, .sound-btn { display: none; }
  .burger { display: block; }
  .hdr__word { height: 15px; }
  .hdr__mark { width: 22px; height: 22px; }
  .loader__brand, .loader__tag { height: 84px; }
  .loader__tag { display: none; }
  .loader__copy { bottom: 74px; right: var(--pad); }
  .loader__jp { font-size: 19px; letter-spacing: .1em; white-space: normal; }
  .loader__en { font-size: 10px; }
  .loader__mode { left: var(--pad); right: auto; bottom: 34px; font-size: 11px; }
  .odo { font-size: 58px; }
  .sp { display: inline; }
  .sound-card { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .rail { display: none; }
  .work__meta { gap: 12px; }
  .work__imp { margin-top: 8px; font-size: 11px; }
  .work__tags { margin-top: 6px; font-size: 10px; }
  .mv__ttl { left: 20px; top: 104px; }
  .mv__name { font-size: 22px; }
  /* (the K stands in the sun of the upper half; the statement below it, in the shade, centred) */
  .mv__text, .mv--vision .mv__text { left: 50%; right: auto; top: 71%; translate: -50% -50%; font-size: 23px; letter-spacing: .16em; }
  .gl-off .mv__text, .gl-off .mv--vision .mv__text { top: 52%; }   /* (no K above it without WebGL) */
  .mv__en { left: 20px; bottom: 34px; font-size: 12px; }
  .news { left: 20px; right: 20px; bottom: 34px; width: auto; }
  .news__list li:nth-child(n + 2) { display: none; }
  .kv__scroll { display: block; right: 10px; top: auto; bottom: 120px; font-size: 11px; }
  .work { left: 20px; right: 20px; bottom: 90px; width: auto; }
  /* (the copy has the screen's width here: the window stands above it, not beside it — a label or a price never
     breaks in the middle; the line breaks between phrases) */
  .work__ja, .work__plan { max-width: none; }
  .work__plan span, .work__plan b { white-space: nowrap; }
  .work__ja { word-break: auto-phrase; text-wrap: pretty; }
  .work__title { font-size: 22px; line-height: 1.2; }
  .work__ja { font-size: 11px; letter-spacing: .08em; }
  .work__open { height: 36px; margin-top: 14px; font-size: 11px; }
  .works__more { right: 20px; bottom: 34px; font-size: 13px; }
  .svc { left: 20px; right: 20px; top: auto; bottom: 64px; width: auto; }
  .svc__badge { justify-content: flex-start; }
  .svc__title { margin-top: 12px; text-align: left; font-size: 26px; }
  .svc__desc { margin-top: 12px; font-size: 12px; line-height: 1.9; letter-spacing: .05em; }
  .svc__en { display: none; }
  .services__count { right: 20px; top: 104px; bottom: auto; }
  .cta__main { left: 34px; right: 34px; bottom: 90px; width: auto; }
  .cta__link { font-size: 62px; gap: 14px; }
  .cta__arrow { width: 36px; height: 36px; }
  .cta__desc { font-size: 12px; }
  .cta__en { display: none; }
  .ftr { grid-template-columns: 1fr; gap: 26px; padding: 0 20px 28px; font-size: 13px; }
  .ftr__right { justify-items: start; grid-template-columns: auto auto; }
  .ftr__cta { margin: 0 24px 0 0; font-size: 14px; }
  .ftr__copy { right: 20px; bottom: 8px; }
  /* (the last KAMAE just below the middle: the lit wall fills the screen above it, the floor that mirrors it the
     space down to the footer) */
  .outro { place-items: start center; padding-top: 46vh; }
  /* (only CUT 51.5° on a phone: CAP / BASE are wider than the E and would cross its ticks wherever they stood) */
  .outro__spec--cap, .outro__spec--base { display: none; }
  .modal__panel { padding: 56px 22px 28px; }
  .plans__head { left: 20px; right: 20px; top: 100px; display: block; }
  .plans__head .plans__no { margin-bottom: 10px; }
  .plans__title { font-size: 24px; letter-spacing: .1em; }
  .plans__lead { display: none; }
  .plans__labels li { justify-items: start; gap: 2px; transform: translate(0, -50%); }
  .plans__labels b { font-size: 12px; letter-spacing: .1em; }
  .plans__labels span { font-size: 17px; }
  .plans__labels small { flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 5px; padding-top: 6px; font-size: 11px; letter-spacing: .04em; line-height: 1.5; }
  .pg { width: 20px; height: 15px; }
  .tier { left: 20px; right: 20px; top: auto; bottom: 48px; width: auto; }
  .tier__badge { justify-content: flex-start; }
  .tier__name { margin-top: 8px; font-size: 18px; }
  .tier__price { font-size: 44px; }
  .tier__what { margin-top: 10px; font-size: 13px; }
  .tier__list { margin-top: 10px; }
  .tier__list li { padding: 6px 0 6px 15px; font-size: 11px; line-height: 1.6; letter-spacing: .02em; }
  .tier__list li:nth-child(n + 4) { display: none; }
  .tier__meta { display: none; }
  .tier__open { height: 40px; margin-top: 12px; font-size: 12px; }
  .plans__scale { display: none; }
  .care { left: 20px; right: 20px; display: block; }
  .care__title { margin-top: 8px; font-size: 21px; }
  .care__lead { margin-top: 8px; font-size: 11px; line-height: 1.8; }
  .care__rows { margin-top: 14px; }
  .care__row { grid-template-columns: 1fr auto; column-gap: 12px; padding: 11px 0 11px 14px; }
  .care__row::before { top: 19px; width: 4px; height: 4px; }
  .care__name { font-size: 12px; letter-spacing: .1em; }
  .care__price { font-size: 24px; }
  .care__desc { display: none; }
  .care__brand { margin-top: 10px; font-size: 10.5px; line-height: 1.7; }
  .care__actions { margin-top: 12px; gap: 8px; }
  .care__more, .care__ask { height: 42px; padding: 0 16px; font-size: 12px; }
  .sheet__panel { padding: 60px 20px 40px; }
  .sh-cares, .sheet .opts, .sheet .promise { grid-template-columns: 1fr; }
  .sheet .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the comparison table on a phone: each row becomes its heading over three narrow columns */
  .sheet .tbl { min-width: 0; font-size: 11.5px; }
  .sheet .tbl thead tr, .sheet .tbl tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; }
  .sheet .tbl thead th:first-child { display: none; }
  .sheet .tbl tbody th { grid-column: 1 / -1; width: auto; padding: 12px 0 2px; border-bottom: 0; font-size: 11px; }
  .sheet .tbl tbody td { padding: 2px 0 12px; line-height: 1.6; }
  .sheet .tbl thead th { padding: 0 0 10px; font-size: 12px; }
  .sheet .tbl thead th small { font-size: 16px; }
  .gl-off .plans { padding: 0 20px; }
  .gl-off .tier { display: block; }
  /* (without WebGL the works are a column too: the screen's width less the gutters, as the copy has with it) */
  .gl-off .work { left: auto; right: auto; padding: 0 20px; }
  .gl-off .works__more { margin: 60px 20px 0; }
  .form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- the AI consultation (chat.js): a panel at the right, the site's own type — a transcript, not bubbles */
.hdr__ai { position: relative; height: 40px; padding: 0 4px; font-family: var(--f-jp); font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.hdr__ai span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.hdr__ai::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 9px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.hdr__ai:hover::after { transform: scaleX(1); transform-origin: left; }
.care__ai, .cta__ai, .sheet__ai { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.care__ai { height: 48px; padding: 0 6px; color: rgb(255 255 255 / .82); }
.care__ai:hover, .cta__ai:hover, .sheet__ai:hover { color: var(--accent); }
.care__ai svg, .cta__ai svg, .sheet__ai svg { width: 12px; height: 12px; }
.cta__ai { margin-top: 22px; padding: 4px 0; border-bottom: 1px solid currentColor; font-size: 12px; pointer-events: auto; }
.sheet__ai { margin-left: 22px; height: 52px; color: rgb(255 255 255 / .82); }

.chat { position: fixed; inset: 0; z-index: 85; display: flex; justify-content: flex-end; background: rgb(0 0 0 / .32); }
.chat__panel { position: relative; display: flex; flex-direction: column; width: min(500px, 100%); height: 100%; padding: 56px 40px 26px; background: rgb(8 8 9 / .9); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); box-shadow: inset 1px 0 0 rgb(255 255 255 / .16); }
.chat__title { margin-top: 10px; font-size: 26px; font-weight: 700; letter-spacing: .06em; }
.chat__lead { margin-top: 14px; font-size: 12.5px; line-height: 1.9; letter-spacing: .04em; color: var(--grey); }
.chat__log { flex: 1; min-height: 0; margin: 22px -12px 0 0; padding-right: 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .2) transparent; }
.msg { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.msg__who { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.msg--ai .msg__who { color: var(--accent); }
.msg__t { margin-top: 8px; font-size: 14px; line-height: 1.95; letter-spacing: .04em; }
.msg__t p + p { margin-top: .8em; }
.msg--you .msg__t { color: rgb(255 255 255 / .72); }
.msg.is-writing .msg__t::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 3px; vertical-align: -.15em; background: currentColor; animation: chat-caret 1s steps(2) infinite; }
.msg.is-error .msg__t { color: var(--grey); }
.msg__wait { color: var(--grey); }
.msg__wait::after { content: ""; display: inline-block; width: 1.4em; text-align: left; animation: chat-dots 1.4s steps(4) infinite; }
@keyframes chat-dots { 0% { content: ""; } 25% { content: "．"; } 50% { content: "．．"; } 75% { content: "．．．"; } }
.msg.is-writing .msg__t:has(.msg__wait)::after { display: none; }
@keyframes chat-caret { 50% { opacity: 0; } }
/* the button to the form under an answer (the AI asked for it): what it fills in, in small type under it */
.msg__go { display: grid; justify-items: start; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgb(255 255 255 / .16); }
.msg__go-btn { position: relative; display: inline-flex; align-items: center; gap: 14px; height: 44px; padding: 0 20px 0 18px; background: #fff; color: #000; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; overflow: hidden; transition: color .45s var(--ease); }
.msg__go-btn::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(calc(-100% - 14px)) skewX(-24deg); transform-origin: left; transition: transform .55s var(--ease); }
.msg__go-btn > * { position: relative; }
.msg__go-btn svg { width: 11px; height: 11px; transition: transform .45s var(--ease); }
.msg__go-btn:hover { color: #fff; }
.msg__go-btn:hover::before { transform: translateX(0) skewX(-24deg) scaleX(1.3); }
.msg__go-btn:hover svg { transform: translate(2px, -2px); }
.msg__go-note { font-size: 11px; line-height: 1.7; letter-spacing: .04em; color: var(--grey); }
.chat__starts { margin-top: 6px; border-top: 1px solid var(--line); }
.chat__starts li { border-bottom: 1px solid var(--line); }
.chat__starts button { width: 100%; padding: 15px 0; text-align: left; font-size: 13.5px; font-weight: 500; letter-spacing: .06em; transition: color .4s var(--ease), padding .5s var(--ease); }
.chat__starts button::before { content: "→"; margin-right: 12px; font-family: var(--f-mono); color: var(--grey); }
.chat__starts button:hover { color: var(--accent); padding-left: 6px; }
.chat__form { display: flex; align-items: flex-end; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .5); }
.chat__form textarea { flex: 1; min-height: 26px; max-height: 120px; padding: 4px 0; resize: none; background: none; border: 0; color: #fff; font: 500 14px/1.8 var(--f-jpb); letter-spacing: .04em; outline: none; }
.chat__form textarea::placeholder { color: rgb(255 255 255 / .34); }
.chat__send { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; background: #fff; color: #000; font-size: 12px; font-weight: 700; letter-spacing: .14em; transition: background-color .4s var(--ease), color .4s var(--ease); }
.chat__send:hover { background: var(--accent); color: #fff; }
.chat__send:disabled, .chat__form textarea:disabled { opacity: .35; }
.chat__send svg { width: 11px; height: 11px; }
.chat__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 12px; }
.chat__note { font-size: 11px; line-height: 1.7; letter-spacing: .04em; color: var(--grey); }
.chat__acts { display: flex; gap: 16px; flex: none; }
.chat__acts button { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; color: rgb(255 255 255 / .82); }
.chat__acts button:hover { color: var(--accent); }
.chat__acts svg { width: 10px; height: 10px; }
.has-kc .chat, .has-kc .chat * { cursor: auto; }
.has-kc .chat button { cursor: pointer; }
/* (the header has room for it only on a wide screen — narrower, it would run into the centred nav; the chat is also
   at the plans' details, the monthly care, the contact chapter, and in the phone menu) */
@media (max-width: 1179px) { .hdr__ai { display: none; } }
@media (max-width: 900px) {
  .chat__panel { width: 100%; padding: 64px 20px calc(18px + env(safe-area-inset-bottom)); }
  .chat__title { font-size: 22px; }
  .chat__foot { flex-direction: column; gap: 8px; }
  .care__ai { height: 42px; font-size: 12px; }
  .sheet__ai { margin: 14px 0 0; height: auto; }
}

/* ---------- first visit: how to see it (main.js) ----------
   a dark glass card in the middle over the dimmed room: three recommendations, each with its own switch, and
   "はじめる"; nothing moves until then */
.welcome { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgb(6 6 8 / .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .7s var(--ease); }
.welcome.is-in { opacity: 1; }
.welcome__card { width: min(520px, 100%); padding: 34px 34px 28px; background: rgb(14 13 13 / .82); color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 2em 5em rgb(0 0 0 / .5); transform: translateY(14px); transition: transform .9s var(--ease); }
.welcome.is-in .welcome__card { transform: none; }
.welcome__eyebrow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.welcome__title { margin-top: 14px; font-family: var(--f-jp); font-size: 22px; font-weight: 500; letter-spacing: .08em; line-height: 1.5; }
.welcome__lead { margin-top: 10px; font-family: var(--f-jp); font-size: 13px; line-height: 1.9; letter-spacing: .04em; color: rgb(255 255 255 / .66); }
.welcome__list { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / .12); }
.welcome__list li { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgb(255 255 255 / .12); }
.welcome__list b { font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: rgb(255 255 255 / .5); }
.welcome__list span { font-family: var(--f-jp); font-size: 12.5px; line-height: 1.75; letter-spacing: .03em; color: rgb(255 255 255 / .86); }
.welcome__list button { min-width: 116px; height: 36px; padding: 0 14px; font-family: var(--f-jp); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .34); transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.welcome__list button:hover { box-shadow: inset 0 0 0 1px #fff; }
.welcome__list button[aria-pressed="true"] { background: #fff; color: #000; box-shadow: none; }
.welcome__go { width: 100%; height: 48px; margin-top: 24px; background: var(--accent); color: #fff; font-family: var(--f-jp); font-size: 14px; font-weight: 500; letter-spacing: .2em; transition: background-color .4s var(--ease); }
.welcome__go:hover { background: #ff5a30; }
@media (max-width: 600px) {
  .welcome__card { padding: 26px 20px 20px; }
  .welcome__title { font-size: 19px; }
  .welcome__list li { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .welcome__list b { grid-column: 1 / -1; }
}

/* ---------- the guide (main.js): a note on each chapter, like a subtitle along the foot of the screen (the one band
   that every chapter leaves free), folding to a small "Guide" ---------- */
.guide { position: fixed; left: 50%; bottom: 18px; z-index: 55; width: min(760px, calc(100% - 48px)); display: grid; grid-template-columns: auto 1fr; gap: 4px 18px;
  padding: 12px 16px 13px 18px; background: rgb(12 11 11 / .8); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 1em 3em rgb(0 0 0 / .4);
  opacity: 0; transform: translate(-50%, 10px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.guide.is-in { opacity: 1; transform: translate(-50%, 0); }
.guide__head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgb(255 255 255 / .5); }
.guide__head b { font-weight: 500; color: var(--accent); }
.guide__min { margin-left: auto; width: 26px; height: 22px; color: rgb(255 255 255 / .6); }
.guide__off { height: 22px; padding: 0 8px; font-family: var(--f-jp); font-size: 10.5px; letter-spacing: .04em; text-transform: none; color: rgb(255 255 255 / .6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.guide__min:hover, .guide__off:hover { color: #fff; }
.guide__title { font-family: var(--f-jp); font-size: 14px; font-weight: 500; letter-spacing: .1em; white-space: nowrap; }
.guide__text { font-family: var(--f-jp); font-size: 12.5px; line-height: 1.8; letter-spacing: .03em; color: rgb(255 255 255 / .84); }
.guide-chip { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 55; height: 30px; padding: 0 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: #fff; background: rgb(12 11 11 / .7); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.guide-chip::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; vertical-align: 1px; background: var(--accent); }
@media (max-width: 900px) {
  .guide { width: calc(100% - 24px); bottom: 12px; grid-template-columns: 1fr; padding: 10px 12px 12px; }
  .guide__text { font-size: 12px; line-height: 1.7; }
  .guide-chip { left: auto; right: 12px; bottom: 60px; transform: none; }   /* (clear of the corner's own links) */
}
