/* =========================================================
   神臨浴 制作記録 / SHINRINYOKU Production Log
   Palette: dusk light through cedar — umber, amber, moss, kinari
   ========================================================= */
:root {
  --bg: #15100b;          /* deep umber night */
  --bg-2: #1d1610;        /* raised panel */
  --bg-3: #261d15;
  --line: rgba(240, 228, 206, 0.14);
  --line-strong: rgba(240, 228, 206, 0.28);
  --ink: #efe4ce;         /* kinari */
  --ink-2: #c9bba1;
  --ink-3: #9a8b74;
  --amber: #e2a55a;       /* lantern light */
  --amber-2: #f3c27d;
  --vermilion: #c4553a;   /* torii */
  --moss: #8a9a5b;

  --f-jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-en: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --f-ui: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: 17px;
  line-height: 1.9;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; }

/* ---------- bilingual pairs ---------- */
.en {
  font-family: var(--f-en);
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.prose p { margin: 0; }
.prose p.jp { color: var(--ink); }
.prose p.en { font-size: 1.12em; line-height: 1.6; margin: 0.35em 0 1.6em; }
.prose p.en:last-child { margin-bottom: 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(21,16,11,.75), rgba(21,16,11,0));
  transition: background .3s;
}
.site-header.is-solid { background: rgba(21,16,11,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand .jp { font-weight: 800; font-size: 20px; letter-spacing: .08em; }
.brand .en { font-size: 15px; font-style: italic; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); font-family: var(--f-ui); font-size: 13px; letter-spacing: .08em; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }
.site-nav .num { color: var(--amber); margin-right: 2px; }
.nav-play { border: 1px solid var(--line-strong); padding: 4px 14px; border-radius: 999px; color: var(--ink) !important; }
.nav-play:hover { border-color: var(--amber); }
@media (max-width: 900px) {
  .site-nav a:not(.nav-play) { display: none; }
}

/* ---------- 00 hero ---------- */
/* The title image already carries the logo + subtitle, so it is shown whole
   (16:9, never cropped) and the copy sits underneath, fading out of it. */
.hero { position: relative; isolation: isolate; }
.hero-bg { display: block; position: relative; z-index: -2; }
.hero-bg img { width: 100%; aspect-ratio: 16 / 9; max-height: 88svh; object-fit: cover; object-position: 50% 50%; }
.hero-shade {
  position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  aspect-ratio: 16 / 9; max-height: 88svh;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(21,16,11,0) 22%),
    linear-gradient(to bottom, rgba(21,16,11,.55) 0%, rgba(21,16,11,0) 14%);
}
.hero-body {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(72px, 10vw, 120px);
}
.stamp {
  margin: 0 0 18px;
  font-family: var(--f-ui); font-size: 12px; letter-spacing: .14em;
  color: var(--amber);
  text-transform: uppercase;
}
.stamp time { font-variant-numeric: tabular-nums; }
.hero-title { margin: 0; font-weight: 600; line-height: 1.3; word-break: auto-phrase; }
.hero-title .jp { display: block; font-size: clamp(30px, 5.4vw, 60px); letter-spacing: .06em; }
.hero-title .en { display: block; font-size: clamp(22px, 3vw, 34px); font-style: italic; font-weight: 500; margin-top: 4px; color: var(--ink-2); }
.hero-lead { margin: 22px 0 0; max-width: 40em; font-size: 15px; line-height: 1.8; }
.hero-lead .jp, .hero-lead .en { display: block; }
.hero-lead .en { font-size: 1.12em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: 8px 26px;
  border-radius: var(--radius); text-decoration: none; line-height: 1.25;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn .jp { font-weight: 600; font-size: 16px; letter-spacing: .08em; }
.btn .en { font-size: 14px; font-style: italic; }
.btn-primary { background: var(--amber); color: #20160c; }
.btn-primary .en { color: rgba(32,22,12,.72); }
.btn-primary:hover { background: var(--amber-2); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); background: rgba(21,16,11,.35); }
.btn-ghost:hover { border-color: var(--amber); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 1px; height: 44px; overflow: hidden; background: var(--line);
}
.scroll-cue span { display: block; width: 1px; height: 16px; background: var(--amber); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0% { transform: translateY(-16px); } 100% { transform: translateY(44px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }
@media (max-width: 720px) {
  .hero-bg img { aspect-ratio: 4 / 3; }
  .hero-shade { aspect-ratio: 4 / 3; }
  .scroll-cue { display: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.sec-num {
  margin: 0; font-family: var(--f-en); font-size: clamp(44px, 6vw, 72px); line-height: .9;
  color: var(--amber); font-weight: 500;
}
.sec-head h2 { margin: 0; font-weight: 800; line-height: 1.3; word-break: auto-phrase; }
.sec-head h2 .jp { display: block; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: .08em; }
.sec-head h2 .en { display: block; font-size: clamp(17px, 2vw, 21px); font-style: italic; font-weight: 500; }

/* ---------- 01 game ---------- */
.game-intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .game-intro { grid-template-columns: 1fr; } }

.combo {
  margin: 0; padding: 26px 26px 22px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.combo figcaption { font-family: var(--f-ui); font-size: 12px; letter-spacing: .14em; color: var(--amber); margin-bottom: 14px; }
.combo figcaption .en { font-family: var(--f-ui); margin-left: 8px; color: var(--ink-3); }
.combo-chain { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.combo-chain li {
  counter-increment: c;
  position: relative; padding: 8px 0 8px 46px; line-height: 1.4;
}
.combo-chain li::before {
  content: counter(c);
  position: absolute; left: 0; top: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--amber); color: var(--amber);
  font-family: var(--f-en); font-size: 17px; line-height: 28px; text-align: center;
}
.combo-chain li:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 40px; bottom: -8px; width: 1px; background: var(--line-strong);
}
.combo-chain li:last-child::before { background: var(--vermilion); border-color: var(--vermilion); color: var(--ink); }
.combo-chain .jp { display: block; font-size: 17px; font-weight: 600; }
.combo-chain .en { display: block; font-size: 16px; font-style: italic; }
.combo-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.75; }
.combo-note .jp, .combo-note .en { display: block; }
.combo-note .en { font-size: 15px; }

.trailer { margin: clamp(56px, 8vw, 96px) 0 28px; }
.yt-lite {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: #000; cursor: pointer; overflow: hidden;
}
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .3s, transform .6s; }
.yt-lite:hover img { opacity: .9; transform: scale(1.015); }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: rgba(21,16,11,.6); border: 1px solid var(--amber);
}
.yt-play::after {
  content: ""; position: absolute; left: 34px; top: 27px;
  border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--amber-2);
}
.yt-meta {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between;
  padding: 14px 18px; font-family: var(--f-ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0));
}
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.gallery li { min-width: 0; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.gallery .g-wide img { aspect-ratio: auto; height: 100%; }
.gallery .g-wide button { height: calc(100% - 34px); }
.gallery button:hover img { transform: scale(1.04); }
.gallery p { margin: 8px 0 0; font-size: 13px; line-height: 1.3; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.gallery p .en { font-style: italic; font-size: 14px; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-wide { grid-row: auto; }
  .gallery .g-wide img { aspect-ratio: 16 / 9; height: auto; }
  .gallery .g-wide button { height: auto; }
}

/* ---------- 02 jam ---------- */
.section-jam { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.kicker { font-family: var(--f-ui) !important; font-size: 13px; letter-spacing: .12em; color: var(--amber) !important; margin-bottom: 18px !important; }
.kicker strong { color: var(--ink); font-weight: 500; }
.jam-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .jam-grid { grid-template-columns: 1fr; } }

.stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats > div { padding: 18px 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats dt { font-size: 13px; line-height: 1.4; }
.stats dt .jp, .stats dt .en { display: block; }
.stats dt .en { font-size: 14px; font-style: italic; }
.stats dd { margin: 10px 0 0; font-family: var(--f-en); font-size: clamp(34px, 4vw, 46px); line-height: 1; color: var(--amber-2); font-variant-numeric: tabular-nums; }
.stats dd small { font-size: .42em; color: var(--ink-3); margin: 0 3px 0 2px; letter-spacing: .04em; }

.runway { margin: clamp(64px, 9vw, 110px) 0 0; }
.runway figcaption { font-size: 14px; margin-bottom: 64px; line-height: 1.5; }
.runway figcaption .jp, .runway figcaption .en { display: block; }
.runway figcaption .en { font-style: italic; font-size: 15px; }
.runway-track { position: relative; height: 44px; margin: 0 0 84px; }
.phase {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--from) * 1%); width: calc((var(--to) - var(--from)) * 1%);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; line-height: 1.1; overflow: hidden; white-space: nowrap;
}
.phase .en { font-style: italic; font-size: 14px; }
.phase-plan { background: repeating-linear-gradient(135deg, rgba(138,154,91,.22) 0 6px, rgba(138,154,91,.1) 6px 12px); border: 1px solid rgba(138,154,91,.5); }
.phase-build { background: linear-gradient(90deg, rgba(226,165,90,.28), rgba(226,165,90,.55)); border: 1px solid rgba(226,165,90,.7); border-left: 0; }
.phase-rest { background: transparent; border: 1px dashed var(--line-strong); border-left: 0; }
.day { position: absolute; left: calc(var(--at) * 1%); top: -10px; bottom: -10px; width: 0; border-left: 1px dotted var(--line-strong); }
.day span { position: absolute; bottom: 100%; left: 4px; font-family: var(--f-ui); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.mark { position: absolute; left: calc(var(--at) * 1%); top: 100%; transform: translateX(-50%); padding-top: 12px; text-align: center; font-size: 12px; line-height: 1.35; white-space: nowrap; }
.mark::before { content: ""; position: absolute; left: 50%; top: 0; height: 10px; border-left: 1px solid var(--ink-3); }
.mark time { display: block; font-family: var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--ink); }
.mark > span { color: var(--ink-3); }
.mark .jp, .mark .en { display: block; }
.mark .en { font-style: italic; }
.mark-start { transform: none; text-align: left; }
.mark-start::before { left: 0; }
.mark-end { transform: translateX(-100%); text-align: right; top: auto; bottom: 100%; padding: 0 0 12px; }
.mark-end::before { left: auto; right: 0; top: auto; bottom: 0; }
.mark-submit time { color: var(--amber-2); }
.mark-submit::before { border-color: var(--amber); }
.mark-submit { transform: translateX(-100%); text-align: right; }
.mark-submit::before { left: auto; right: 0; }
.runway-note { margin: 0; max-width: 46em; font-size: 15px; line-height: 1.8; }
.runway-note .jp, .runway-note .en { display: block; }
.runway-note .en { font-size: 16px; }
@media (max-width: 640px) {
  .phase .en { display: none; }
  .day span { font-size: 10px; }
  .mark-build { transform: translateX(-30%); }
}

/* ---------- shared bits ---------- */
.narrow { max-width: 46em; }
blockquote { margin: 14px 0 0; padding-left: 14px; border-left: 2px solid var(--amber); }
blockquote p { margin: 0 !important; line-height: 1.5 !important; }
blockquote .jp { font-weight: 600; font-size: 17px; }
blockquote .en { font-style: italic; font-size: 16px !important; }

/* ---------- 03 concept ---------- */
.ideas {
  list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 860px) { .ideas { grid-template-columns: 1fr; } }
.idea {
  position: relative; display: flex; flex-direction: column;
  padding: 24px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
}
.idea p { margin: 0; font-size: 15px; line-height: 1.8; }
.idea p.en { font-size: 16px; line-height: 1.55; margin: 4px 0 0; }
.idea-time { font-family: var(--f-ui); font-size: 12px !important; letter-spacing: .06em; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-bottom: 10px !important; }
.idea h3 { margin: 0 0 12px; line-height: 1.25; }
.idea h3 .jp { display: block; font-size: 24px; font-weight: 800; letter-spacing: .06em; }
.idea h3 .en { display: block; font-size: 18px; font-style: italic; font-weight: 500; }
.idea-verdict {
  margin-top: auto !important; padding-top: 18px; display: flex; gap: 8px; align-items: baseline;
  font-family: var(--f-ui); font-size: 12px !important; letter-spacing: .14em;
}
.idea-verdict .en { font-family: var(--f-ui); font-size: 12px !important; text-transform: uppercase; margin: 0 !important; }
.idea.is-dropped { opacity: .62; }
.idea.is-dropped h3 .jp { text-decoration: line-through; text-decoration-color: var(--vermilion); text-decoration-thickness: 2px; }
.idea.is-dropped .idea-verdict { color: var(--ink-3); }
.idea.is-chosen { border-color: var(--amber); background: linear-gradient(160deg, rgba(226,165,90,.14), var(--bg-2) 60%); }
.idea.is-chosen .idea-verdict, .idea.is-chosen .idea-verdict .en { color: var(--amber-2); }
.idea:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  width: 12px; text-align: center; color: var(--ink-3); font-family: var(--f-en); font-size: 18px;
}
@media (max-width: 860px) {
  .idea:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -15px; transform: translateX(-50%); }
}

.core { margin-top: clamp(48px, 7vw, 80px); padding: clamp(28px, 4vw, 44px) 0 0; border-top: 1px solid var(--line); text-align: center; }
.core-time { margin: 0 0 14px; font-family: var(--f-ui); font-size: 12px; letter-spacing: .14em; color: var(--amber); }
.core-line { margin: 0 auto; max-width: 34em; line-height: 1.6; text-wrap: balance; word-break: auto-phrase; }
.core-line .jp { display: block; font-size: clamp(21px, 2.8vw, 30px); font-weight: 600; letter-spacing: .04em; }
.core-line .en { display: block; font-size: clamp(19px, 2.2vw, 24px); font-style: italic; margin-top: 8px; }
.core-sub { margin: 24px auto 0; max-width: 44em; font-size: 15px; line-height: 1.85; text-align: left; }
.core-sub .jp, .core-sub .en { display: block; }
.core-sub .en { font-size: 16px; line-height: 1.6; margin-top: 6px; }

/* ---------- 04 setup ---------- */
.section-setup { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 25%, var(--bg-2) 75%, var(--bg)); }
.setup-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .setup-intro { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: var(--radius); }
.shot figcaption, .log-shot figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; }
.shot figcaption .jp, .shot figcaption .en, .log-shot figcaption .jp, .log-shot figcaption .en { display: block; }
.shot figcaption .en, .log-shot figcaption .en { font-style: italic; font-size: 14px; }

.flow { margin: clamp(56px, 8vw, 96px) 0 0; }
.flow > figcaption { font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.flow > figcaption .jp, .flow > figcaption .en { display: block; }
.flow > figcaption .en { font-style: italic; font-size: 15px; }
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  grid-template-areas:
    "gpt arrow grok"
    "fork fork fork"
    "machines machines machines"
    "ret ret ret"
    "loop loop loop";
  align-items: stretch;
}
.node {
  padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg);
}
.node p { margin: 0; line-height: 1.45; }
.node-tag { font-family: var(--f-ui); font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--amber-2); }
.node-tag small { color: var(--ink-3); font-weight: 400; }
.node-role { margin-top: 6px !important; }
.node-role .jp { display: block; font-size: 16px; font-weight: 600; }
.node-role .en { display: block; font-size: 15px; font-style: italic; }
.node-note { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; }
.node-note .jp, .node-note .en { display: block; }
.node-note .en { font-size: 14px; font-style: italic; }
.node-gpt { grid-area: gpt; }
.node-grok { grid-area: grok; border-color: var(--amber); }
.flow-arrow { grid-area: arrow; position: relative; }
.arrow-right::before { content: ""; position: absolute; left: 6px; right: 10px; top: 50%; border-top: 1px solid var(--amber); }
.arrow-right::after { content: ""; position: absolute; right: 6px; top: calc(50% - 5px); border: 5px solid transparent; border-left: 7px solid var(--amber); border-right: 0; }

/* fork: from Grok (right column) down to the three machines */
.flow-fork { grid-area: fork; position: relative; height: 56px; }
.flow-fork::before { /* drop from grok */
  content: ""; position: absolute; top: 0; height: 28px; left: calc((100% + 48px) / 2 + (100% - 48px) / 4); border-left: 1px solid var(--amber);
}
.flow-fork span { position: absolute; top: 28px; left: 18%; right: 18%; border-top: 1px solid var(--amber); }
.flow-fork span::before, .flow-fork span::after, .flow-fork::after {
  content: ""; position: absolute; top: 0; height: 28px; border-left: 1px solid var(--amber);
}
.flow-fork span::before { left: 0; }
.flow-fork span::after { right: 0; }
.flow-fork::after { top: 28px; left: 50%; }

.machines { grid-area: machines; display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 16px; }
.machine { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.015); }
.machine-name { margin: 0; font-family: var(--f-ui); font-size: 12px; letter-spacing: .14em; color: var(--ink-2); text-transform: uppercase; }
.machine-name .en { font-family: var(--f-ui); margin-left: 8px; font-size: 12px; }
.machine-mid { border-style: dashed; }
.node-small .node-role .jp { font-size: 14px; }
.node-small .node-role .en { font-size: 14px; }

.flow-return { grid-area: ret; position: relative; height: 40px; margin: 0 18%; border: 1px solid var(--ink-3); border-top: 0; border-radius: 0 0 6px 6px; }
.flow-loop { grid-area: loop; margin: 12px 0 0; text-align: center; font-size: 14px; line-height: 1.6; }
.flow-loop .jp, .flow-loop .en { display: block; }
.flow-loop .en { font-style: italic; font-size: 15px; }
.flow-loop::before { content: "↺ "; color: var(--amber); }

@media (max-width: 860px) {
  .flow-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "gpt" "arrow" "grok" "fork" "machines" "loop";
  }
  .flow-arrow { height: 36px; }
  .arrow-right::before { left: 50%; right: auto; top: 6px; bottom: 10px; border-top: 0; border-left: 1px solid var(--amber); }
  .arrow-right::after { left: calc(50% - 5px); right: auto; top: auto; bottom: 4px; border: 5px solid transparent; border-top: 7px solid var(--amber); border-bottom: 0; }
  .flow-fork { height: 36px; }
  .flow-fork::before { left: 50%; height: 36px; }
  .flow-fork span, .flow-fork::after { display: none; }
  .machines { grid-template-columns: 1fr; }
  .flow-return { display: none; }
}

.aside { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 40em; text-align: center; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.aside .jp, .aside .en { display: block; }
.aside .en { font-size: 16px; margin-top: 4px; }

/* ---------- 05 build ---------- */
.compare { margin: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 88px); }
.compare-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); --pos: 50%; user-select: none; }
.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; border-left: 2px solid var(--ink); pointer-events: none; }
.compare-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: -21px; width: 40px; height: 40px; margin-top: -20px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--ink);
  font-family: var(--f-ui); font-size: 15px; line-height: 38px; text-align: center; color: var(--ink);
}
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-range:focus-visible + .compare-handle, .compare-stage:focus-within .compare-handle { border-color: var(--amber-2); }
.compare-label {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 2px; background: rgba(21,16,11,.78);
  font-family: var(--f-ui); font-size: 12px; letter-spacing: .08em; line-height: 1.4; pointer-events: none;
}
.compare-label .en { font-family: var(--f-ui); margin-left: 6px; }
.label-before { left: 12px; }
.label-after { right: 12px; }
.compare figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; }
.compare figcaption .jp, .compare figcaption .en { display: block; }
.compare figcaption .en { font-style: italic; font-size: 14px; }

.log { list-style: none; margin: 0; padding: 0; position: relative; }
.log::before { content: ""; position: absolute; left: 76px; top: 12px; bottom: 12px; border-left: 1px solid var(--line-strong); }
.log-day {
  position: relative; margin: 40px 0 18px; padding-left: 104px;
  font-family: var(--f-ui); font-size: 13px; letter-spacing: .12em; color: var(--amber);
}
.log-day:first-child { margin-top: 0; }
.log-day::before { content: ""; position: absolute; left: 70px; top: 50%; width: 13px; height: 13px; margin-top: -7px; border-radius: 50%; background: var(--amber); }
.log-day .en { font-family: var(--f-ui); margin-left: 10px; color: var(--ink-3); }
.log-item { position: relative; display: grid; grid-template-columns: 60px 1fr; column-gap: 44px; padding: 14px 0; }
.log-item::before { content: ""; position: absolute; left: 73px; top: 24px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-2); }
.log-item > time { padding-top: 4px; text-align: right; font-family: var(--f-ui); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.log-item h3 { margin: 0 0 6px; line-height: 1.35; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.log-item h3 .jp { font-size: 19px; font-weight: 600; }
.log-item h3 .en { font-size: 17px; font-style: italic; font-weight: 500; }
.log-item p { margin: 0; font-size: 15px; line-height: 1.8; max-width: 44em; }
.log-item p.en { font-size: 16px; line-height: 1.55; margin-top: 3px; }
.step { font-family: var(--f-jp); color: var(--amber); font-size: 19px; }
.log-item.is-stumble::before { background: var(--vermilion); border-color: var(--vermilion); }
.log-item.is-stumble h3 .jp { color: #e9a08d; }
.log-shot { margin: 14px 0 6px; max-width: 520px; }
.log-shot img { border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 640px) {
  .log::before { left: 6px; }
  .log-day { padding-left: 28px; }
  .log-day::before { left: 0; }
  .log-item { grid-template-columns: 1fr; padding-left: 28px; }
  .log-item::before { left: 3px; top: 22px; }
  .log-item > time { text-align: left; padding: 0 0 2px; font-size: 13px; color: var(--amber); }
}

/* ---------- zoomable images ---------- */
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.zoomable img { width: 100%; transition: transform .6s ease; }
.zoomable:hover img { transform: scale(1.02); }

/* ---------- 06 assets ---------- */
.section-assets { background: linear-gradient(to bottom, var(--bg), #120e0d 30%, #120e0d 70%, var(--bg)); }
.assets-wall { margin: clamp(36px, 5vw, 56px) 0 0; }
.assets-wall img { border: 1px solid var(--line); border-radius: var(--radius); }
.assets-wall figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; }
.assets-wall figcaption .jp, .assets-wall figcaption .en { display: block; }
.assets-wall figcaption .en { font-style: italic; font-size: 14px; }
.assets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); margin-top: clamp(48px, 7vw, 80px); align-items: start; }
@media (max-width: 860px) { .assets-grid { grid-template-columns: 1fr; } }
.asset-steps { list-style: none; margin: 0; padding: 0; }
.asset-steps li { position: relative; padding: 0 0 22px 22px; border-left: 1px solid var(--line-strong); }
.asset-steps li:last-child { padding-bottom: 0; }
.asset-steps li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.asset-steps li.is-stumble::before { background: var(--vermilion); }
.asset-steps time { display: block; font-family: var(--f-ui); font-size: 13px; color: var(--amber); font-variant-numeric: tabular-nums; line-height: 1.4; margin-bottom: 4px; }
.asset-steps p { margin: 0; font-size: 15px; line-height: 1.8; }
.asset-steps p.en { font-size: 16px; line-height: 1.55; margin-top: 3px; }
.asset-steps b { color: var(--amber-2); font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 8px; }
.pair figure { margin: 0; }
.pair img { aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.pair figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; }
.pair figcaption .jp, .pair figcaption .en { display: block; }
.pair figcaption .en { font-style: italic; font-size: 14px; }
.pair-arrow { text-align: center; color: var(--amber); font-family: var(--f-en); font-size: 22px; padding-bottom: 40px; }

/* ---------- 07 ushimitsu ---------- */
.section-ushimitsu .sec-num { color: var(--ink-2); }
.ushi { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .ushi { grid-template-columns: 1fr; } }
.ushi-photo { margin: 0; }
.ushi-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border: 1px solid var(--line); border-radius: var(--radius); }
.ushi-time { margin: 0 0 14px; font-family: var(--f-ui); font-size: 12px; letter-spacing: .14em; color: var(--amber); }
.ushi-text blockquote { margin: 0 0 20px; }
.ushi-text blockquote .jp { font-size: 20px; }
.ushi-text blockquote .en { font-size: 18px !important; }
.ushi-text .prose p.en:last-child { margin-bottom: 0; }
.ushi-rig { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 640px; }
.ushi-rig img { border: 1px solid var(--line); border-radius: var(--radius); }
.ushi-rig figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; text-align: center; }
.ushi-rig figcaption .jp, .ushi-rig figcaption .en { display: block; }
.ushi-rig figcaption .en { font-style: italic; font-size: 14px; }

/* ---------- 08 submit ---------- */
.section-submit { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 30%, var(--bg-2) 75%, var(--bg)); }
.morning { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: clamp(40px, 6vw, 64px); align-items: start; }
@media (max-width: 960px) { .morning { grid-template-columns: 1fr; } }
.log-tight .log-item { padding: 12px 0; }
.log-item .step + .step { margin-left: -4px; }
.submitted {
  position: sticky; top: 90px;
  padding: clamp(28px, 4vw, 40px) 24px; text-align: center;
  border: 1px solid var(--amber); border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 0%, rgba(226,165,90,.2), rgba(21,16,11,0) 70%), var(--bg);
}
@media (max-width: 960px) { .submitted { position: static; } }
.submitted p { margin: 0; }
.sub-label { font-family: var(--f-ui); font-size: 12px; letter-spacing: .16em; color: var(--amber); line-height: 1.6; }
.sub-label .en { display: block; font-family: var(--f-ui); font-size: 12px; text-transform: uppercase; }
.sub-time { font-family: var(--f-en); font-size: clamp(72px, 10vw, 112px); line-height: 1; color: var(--amber-2); margin: 10px 0 8px !important; font-variant-numeric: tabular-nums; }
.sub-left { font-family: var(--f-en); font-size: 26px; line-height: 1.3; }
.sub-left small { font-size: .6em; color: var(--ink-3); margin-left: 1px; }
.sub-left .jp { font-family: var(--f-jp); font-size: 15px; }
.sub-left .en { display: block; font-size: 17px; font-style: italic; }
.sub-note { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.sub-note .jp, .sub-note .en { display: block; }
.sub-note .en { font-size: 15px; font-style: italic; }
.epilogue { margin: clamp(56px, 8vw, 96px) auto 0; max-width: 38em; text-align: center; text-wrap: balance; word-break: auto-phrase; }
.epilogue p { margin: 0; }
.epilogue .jp { font-size: clamp(17px, 2vw, 19px); line-height: 2; }
.epilogue .en { font-size: clamp(18px, 2vw, 20px); line-height: 1.6; margin-top: 10px; font-style: italic; }

/* ---------- 09 play ---------- */
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .play-grid { grid-template-columns: 1fr; } }
.play-card {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius); isolation: isolate;
}
.play-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.play-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(21,16,11,.95) 10%, rgba(21,16,11,.2) 70%); }
.play-card:hover img { transform: scale(1.04); }
.play-card:hover { border-color: var(--amber); }
.play-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; display: flex; flex-direction: column; line-height: 1.35; }
.play-kicker { font-family: var(--f-ui); font-size: 12px; letter-spacing: .16em; color: var(--amber); text-transform: uppercase; margin-bottom: 6px; }
.play-body .jp { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: .04em; }
.play-body .en { font-size: clamp(17px, 2vw, 20px); font-style: italic; }
.play-meta { margin-top: 8px; font-family: var(--f-ui); font-size: 12px; letter-spacing: .08em; color: var(--ink-2); }

.credits { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: clamp(48px, 7vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .credits { grid-template-columns: 1fr; } }
.credits h3 { margin: 0 0 16px; font-size: 15px; line-height: 1.4; }
.credits h3 .jp { font-weight: 600; letter-spacing: .08em; }
.credits h3 .en { margin-left: 10px; font-style: italic; font-weight: 500; font-size: 16px; }
.tools { margin: 0; }
.tools > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tools dt { font-family: var(--f-ui); font-size: 14px; color: var(--ink); }
.tools dd { margin: 0; font-size: 14px; line-height: 1.5; }
.tools dd .jp, .tools dd .en { display: block; }
.tools dd .en { font-style: italic; font-size: 15px; }
@media (max-width: 520px) { .tools > div { grid-template-columns: 1fr; gap: 2px; } }
.studio { margin: 0; font-family: var(--f-en); font-size: 30px; letter-spacing: .12em; }
.jam-note { margin: 10px 0 0; font-size: 14px; line-height: 1.6; }
.jam-note .jp, .jam-note .en { display: block; }
.jam-note .en { font-style: italic; font-size: 15px; }

.thanks-head { margin: 32px 0 8px !important; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--f-en); font-size: 17px !important; font-weight: 500; font-style: italic; letter-spacing: .06em; color: var(--ink-2); }
.thanks-name { margin: 0; font-size: 17px; line-height: 1.6; }
.thanks-name .en-name { font-family: var(--f-en); font-size: 19px; }
.thanks-dates { font-family: var(--f-ui); font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }

/* ---------- 07 memorial (quiet, no effects) ---------- */
.memorial {
  margin: clamp(72px, 10vw, 120px) auto 0; max-width: 640px;
  padding: clamp(40px, 6vw, 64px) 0 0; border-top: 1px solid var(--line);
  text-align: center;
}
.memorial-portrait { margin: 0 auto; max-width: 420px; }
.memorial-portrait img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); filter: saturate(.9); }
.memorial-portrait .zoomable:hover img, .memorial-gallery .zoomable:hover img { transform: none; }
.memorial-title { margin: 32px 0 0; font-family: var(--f-en); font-size: clamp(24px, 3vw, 30px); font-weight: 500; font-style: italic; letter-spacing: .03em; color: var(--ink); }
.memorial-dates { margin: 6px 0 0; font-size: 15px; letter-spacing: .12em; color: var(--ink-2); }
.memorial-body { margin: 28px 0 0; }
.memorial-body p { margin: 0; }
.memorial-body .jp { font-size: 16px; line-height: 2.1; }
.memorial-body .en { margin-top: 14px; font-size: 17px; line-height: 1.75; }
.memorial-gallery { list-style: none; margin: 36px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 520px; }
.memorial-gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); filter: saturate(.9); }
.memorial-farewell { margin: 36px 0 0; line-height: 1.7; }
.memorial-farewell .jp { display: block; font-size: 17px; letter-spacing: .06em; }
.memorial-farewell .en { display: block; font-size: 18px; font-style: italic; }
@media (max-width: 640px) {
  .memorial-body .jp, .memorial-body .en { text-align: left; }
  .memorial-gallery { gap: 6px; }
}

.site-footer { padding: 40px var(--gutter) 56px; text-align: center; font-family: var(--f-ui); font-size: 12px; letter-spacing: .1em; color: var(--ink-3); border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink-2); }

/* ---------- lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,7,4,.9); }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; }
.lb-close {
  position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(21,16,11,.7); font-size: 24px; line-height: 1; cursor: pointer;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
