/* 硝影 / SHOEI — fictional brand site (Novaia Labs concept). Light theme by design: stone, sunlight, coloured glass. */
:root {
  --stone: #e9e5de; --paper: #f4f2ee; --ink: #0c1633; --ink2: #3a4560; --ink3: #5d667a;
  --cobalt: #0b2a8f; --night: #071331; --ruri: #1f3fa0; --beni: #a3122c; --kohaku: #d9781a;
  --min: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --got: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --pad: clamp(20px, 4.4vw, 64px); --len: 380;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--stone); color: var(--ink); font-family: var(--got); font-feature-settings: "palt" 1; -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { overflow-x: clip; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.display { font-family: var(--min); font-weight: 800; letter-spacing: .02em; line-height: 1.12; }
html[lang="en"] .display { letter-spacing: -.005em; line-height: 1.04; }
.ln { display: block; } .ln > span { display: block; white-space: nowrap; will-change: transform, opacity; }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: baseline; gap: 44px; padding: 26px var(--pad); transition: color .45s, opacity .45s; pointer-events: none; }
.site-head > * { pointer-events: auto; }
.site-head.dark { color: #eef1f8; }
.site-head::before { content: ""; position: absolute; inset: 0; background: rgba(244,242,238,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; z-index: -1; }
.site-head.solid::before { opacity: 1; }
.mark { display: flex; align-items: baseline; gap: 14px; text-decoration: none; }
.mark b { font-family: var(--min); font-weight: 800; font-size: 22px; letter-spacing: .24em; }
html[lang="en"] .mark b { letter-spacing: .3em; font-size: 20px; }
.mark small { font-size: 11.5px; letter-spacing: .06em; opacity: .75; }
.nav ul { display: flex; gap: 28px; font-size: 13px; letter-spacing: .08em; }
.nav a { text-decoration: none; opacity: .7; padding: 6px 0; border-bottom: 1px solid transparent; transition: opacity .3s, border-color .3s; }
.nav a:hover, .nav a[aria-current="true"] { opacity: 1; border-color: currentColor; }
.lang { margin-left: auto; font-size: 13px; text-decoration: none; opacity: .8; }
.lang b { font-weight: 700; }
.menu-btn { display: none; }
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--night); color: #eef1f8; padding: 26px 20px calc(30px + env(safe-area-inset-bottom)); display: grid; grid-template-rows: 1fr auto auto; gap: 18px; }
.sheet[hidden] { display: none; }
.sheet ul { align-self: center; display: grid; gap: 6px; }
.sheet a { font-family: var(--min); font-weight: 800; font-size: 44px; text-decoration: none; display: block; padding: 6px 0; }
.sheet .sheet-lang { font-family: var(--got); font-weight: 500; font-size: 15px; }
.sheet-close { justify-self: start; background: none; border: 1px solid rgba(255,255,255,.4); padding: 12px 22px; cursor: pointer; }

/* ---------- stage (hero + craft) ---------- */
.stage { position: relative; height: calc(var(--len) * 1svh); }
.anchor { position: absolute; left: 0; top: calc(var(--len) * 1svh * .40); }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--stone); }
.still, .still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl, #craftSeq { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gl { opacity: 0; transition: opacity .9s ease; }
.gl.on { opacity: 1; }
.js .s-hero, .js .s-col, .js .s-close { opacity: 1; }
.wash { position: absolute; inset: 0; background: radial-gradient(circle at var(--ox, 30%) var(--oy, 70%), #3b62d6, #1a3fb4 30%, var(--cobalt) 62%); opacity: 0; pointer-events: none; }
.craft-layer { position: absolute; inset: 0; opacity: 0; background: var(--night); }
.craft-layer .still { opacity: 0; }
.no-seq .craft-layer .still { opacity: 1; }
.craft-layer::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(rgba(7,19,49,0), rgba(7,19,49,.72)); pointer-events: none; }
.hero-copy { position: absolute; left: var(--pad); top: calc(26px + 7vh + 26px); z-index: 3; }
.hero-copy h1 { font-size: clamp(64px, 9.4vw, 150px); }
html[lang="en"] .hero-copy h1 { font-size: clamp(50px, 6.6vw, 104px); }
html[lang="en"] .hero-copy .ln:nth-child(n+2) { display: inline-block; } html[lang="en"] .hero-copy .ln:nth-child(2) { margin-right: .26em; }
.hero-copy .sub { margin-top: 30px; max-width: 25em; font-size: 15px; line-height: 2; color: var(--ink2); }
html[lang="en"] .hero-copy .sub { font-size: 16px; line-height: 1.6; max-width: 27em; }
.craft-copy { position: absolute; inset: 0; z-index: 3; color: #eef1f8; pointer-events: none; }
.steps li { position: absolute; left: var(--pad); bottom: 52px; max-width: min(560px, 46vw); opacity: 0; }
.steps .k { font-size: 13px; letter-spacing: .3em; color: #9fb4ff; margin-bottom: 14px; }
html[lang="en"] .steps .k { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.steps h3 { font-size: clamp(40px, 4.6vw, 74px); }
.steps .p { margin-top: 18px; font-size: 15px; line-height: 1.95; color: #dfe5f3; max-width: 30em; }
html[lang="en"] .steps .p { font-size: 16px; line-height: 1.6; }
.hint { position: absolute; right: var(--pad); bottom: 52px; z-index: 3; font-size: 12px; color: var(--ink2); letter-spacing: .06em; opacity: 0; transition: opacity .5s; }
.stepbar { position: absolute; right: var(--pad); bottom: 52px; z-index: 3; display: flex; gap: 18px; color: #dfe5f3; font-size: 12px; letter-spacing: .12em; opacity: 0; }
.stepbar li { display: grid; gap: 8px; opacity: .55; transition: opacity .3s; }
.stepbar li.on { opacity: 1; }
.stepbar i { display: block; width: 52px; height: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.stepbar b { display: block; height: 100%; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }

/* ---------- collection ---------- */
.collection { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--stone); touch-action: pan-y; }
.col-copy { position: absolute; left: var(--pad); bottom: 56px; z-index: 3; max-width: min(520px, 38vw); }
.col-copy h2 { font-size: clamp(44px, 4.8vw, 80px); }
.col-copy .intro { margin-top: 20px; font-size: 15px; line-height: 1.95; color: var(--ink2); }
html[lang="en"] .col-copy .intro { font-size: 16px; line-height: 1.6; }
.chips { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.chips button { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 11px 16px 10px 12px; background: rgba(244,242,238,.55); border: 1px solid rgba(12,22,51,.18); cursor: pointer; transition: background .3s, border-color .3s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); min-height: 48px; }
.chips button:hover { border-color: rgba(12,22,51,.45); }
.chips button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips .sw { grid-row: 1 / 3; width: 14px; height: 14px; border-radius: 50%; }
.sw-ruri { background: var(--ruri); } .sw-beni { background: var(--beni); } .sw-kohaku { background: var(--kohaku); }
.chips b { font-family: var(--min); font-weight: 800; font-size: 17px; line-height: 1.2; }
.chips span { font-size: 11px; opacity: .7; letter-spacing: .06em; }
.items { margin-top: 20px; min-height: 3.6em; }
.item { font-size: 15px; line-height: 1.8; }
html[lang="en"] .item { font-size: 16px; line-height: 1.55; }
.size { margin-top: 10px; font-size: 12px; color: var(--ink3); letter-spacing: .06em; }
.overlap { position: absolute; right: var(--pad); bottom: 56px; z-index: 3; max-width: 22em; font-size: 12.5px; line-height: 1.9; color: var(--ink2); }
html[lang="en"] .overlap { font-size: 13px; line-height: 1.55; }

/* ---------- about ---------- */
.about { position: relative; background: var(--paper); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 6vw; padding: 16vh var(--pad) 14vh; }
.about-fig { position: relative; grid-row: 1 / 3; aspect-ratio: 9 / 13; align-self: start; overflow: hidden; }
.about-fig .still { position: absolute; }
.about-text { align-self: end; max-width: 34em; }
.about-text h2 { font-size: clamp(40px, 4.4vw, 72px); }
.about-text .lead { margin-top: 28px; font-size: 17px; line-height: 2.05; }
html[lang="en"] .about-text .lead { font-size: 18px; line-height: 1.65; }
.about-text .fiction { margin-top: 22px; font-size: 13px; line-height: 1.9; color: var(--ink3); border-left: 2px solid var(--ruri); padding-left: 14px; }
.process { margin-top: 9vh; align-self: start; }
.process h3 { font-size: 13px; letter-spacing: .2em; color: var(--ink3); font-weight: 500; margin-bottom: 22px; }
html[lang="en"] .process h3 { letter-spacing: .1em; }
.process ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(12,22,51,.25); counter-reset: s; }
.process li { padding: 18px 14px 0 0; position: relative; }
.process li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ruri); }
.process b { display: block; font-family: var(--min); font-weight: 800; font-size: 19px; }
.process span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--ink2); }
.history { margin-top: 30px; font-size: 12.5px; line-height: 1.9; color: var(--ink3); max-width: 46em; }

/* ---------- closing ---------- */
.closing { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #d8cfc3; touch-action: pan-y; }
.close-copy { position: absolute; left: var(--pad); top: 50%; transform: translateY(-40%); z-index: 3; max-width: 34em; }
.close-copy h2 { font-size: clamp(48px, 6vw, 104px); }
.close-copy .sub { margin-top: 24px; font-size: 15px; line-height: 2; color: var(--ink2); max-width: 26em; }
html[lang="en"] .close-copy .sub { font-size: 16px; line-height: 1.6; }
.cta { display: inline-flex; gap: 16px; align-items: center; margin-top: 30px; padding: 17px 26px; background: var(--ink); color: var(--paper); border: 0; font-weight: 700; font-size: 14px; letter-spacing: .06em; cursor: pointer; min-height: 48px; }
.cta:hover i { transform: translateX(4px); } .cta i { font-style: normal; transition: transform .25s; }
.cta-note { margin-top: 12px; font-size: 13px; color: var(--ink2); min-height: 1.6em; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #cfd6e6; padding: 64px var(--pad) calc(48px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 6vw; font-size: 13px; line-height: 1.8; }
.f-brand { font-family: var(--min); font-weight: 800; font-size: 26px; letter-spacing: .24em; color: #fff; display: flex; align-items: baseline; gap: 14px; }
.f-brand small { font-family: var(--got); font-weight: 400; font-size: 12px; letter-spacing: .06em; color: #aeb8cf; }
.f-nav { display: flex; gap: 22px; justify-self: end; align-self: center; }
.f-nav a, .foot a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.f-fiction { grid-column: 1 / -1; color: #fff; }
.f-made, .f-credits { color: #aeb8cf; font-size: 12px; }

/* ---------- mobile: its own compositions ---------- */
@media (max-width: 760px) {
  .site-head { padding: 16px 20px; gap: 0; align-items: center; }
  .mark small, .nav, .site-head .lang { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; background: none; border: 0; padding: 10px 0 10px 14px; font-size: 13px; letter-spacing: .08em; cursor: pointer; min-height: 44px; }
  .menu-btn i { width: 22px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
  .hero-copy { top: calc(16px + 5vh + 26px); max-width: 64%; }
  .hero-copy h1 { font-size: 64px; } html[lang="en"] .hero-copy h1 { font-size: 40px; line-height: 1.06; } html[lang="en"] .hero-copy .ln:nth-child(n+2) { display: block; margin: 0; } html[lang="en"] .hero-copy .ln > span { white-space: nowrap; }
  html[lang="en"] .ln > span { white-space: normal; }
  .hero-copy .sub { display: none; }
  .hint { left: 20px; right: auto; bottom: calc(26px + env(safe-area-inset-bottom)); }
  .steps li { left: 20px; right: 20px; max-width: none; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .steps h3 { font-size: 36px; } html[lang="en"] .steps h3 { font-size: 32px; }
  .steps .p { font-size: 13.5px; line-height: 1.85; } html[lang="en"] .steps .p { font-size: 14.5px; }
  .stepbar { left: 20px; right: 20px; bottom: calc(24px + env(safe-area-inset-bottom)); justify-content: space-between; }
  .stepbar li { flex: 1; } .stepbar i { width: 100%; }
  .col-copy { left: 20px; right: 20px; top: 74px; bottom: auto; max-width: none; }
  .col-copy h2 { font-size: 36px; } html[lang="en"] .col-copy h2 { font-size: 32px; }
  .col-copy .intro, .size { display: none; }
  .collection .chips { position: absolute; left: 20px; right: 20px; bottom: calc(96px + env(safe-area-inset-bottom)); margin: 0; flex-wrap: nowrap; gap: 8px; }
  .collection .chips button { flex: 1; padding: 10px; }
  .items { position: absolute; left: 20px; right: 20px; bottom: calc(22px + env(safe-area-inset-bottom)); top: auto; margin: 0; min-height: 0; }
  .col-copy { position: static; } .col-copy h2 { position: absolute; left: 20px; right: 20px; top: 74px; z-index: 3; }
  .item { font-size: 13.5px; line-height: 1.75; background: rgba(244,242,238,.82); padding: 10px 12px; } html[lang="en"] .item { font-size: 14.5px; }
  .collection .items, .collection .chips { z-index: 3; }
  .overlap { display: none; }
  .about { grid-template-columns: 1fr; padding: 12vh 20px 10vh; }
  .about-fig { grid-row: auto; aspect-ratio: 4 / 5; margin: 0 -20px 40px; }
  .about-text .lead { font-size: 15.5px; } html[lang="en"] .about-text .lead { font-size: 16.5px; }
  .process ol { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid rgba(12,22,51,.25); }
  .process li { padding: 0 0 22px 22px; } .process li::before { top: 8px; left: -4px; }
  .close-copy { left: 20px; right: 20px; top: auto; bottom: calc(40px + env(safe-area-inset-bottom)); transform: none; }
  .close-copy::before { content: ""; position: absolute; inset: -60px -20px -40px; z-index: -1; background: linear-gradient(rgba(240,232,222,0), rgba(240,232,222,.86) 34%); }
  .close-copy h2 { font-size: 40px; } html[lang="en"] .close-copy h2 { font-size: 36px; }
  .close-copy .sub { font-size: 13.5px; } .cta { width: 100%; justify-content: center; }
  .foot { grid-template-columns: 1fr; } .f-nav { justify-self: start; flex-wrap: wrap; }
}

/* ---------- reduced motion: same chapters, no movement (crossfades only; see app.js) ---------- */
@media (prefers-reduced-motion: reduce) {
  .gl, .site-head, .hint, .stepbar li { transition: none; }
}
/* target size (WCAG 2.2: 24px) */
.nav a { display: inline-block; min-height: 24px; padding: 4px 0; }
.lang, .foot a { display: inline-block; min-height: 24px; padding: 3px 0; }
