/* Omakase: retro shōwa poster × kaiseki menu */

/* self-hosted, subset to the page's charset; regenerate with fonts/update-fonts.mjs */

@font-face {
  font-family: "RocknRoll One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/rocknroll-one-400.woff2") format("woff2");
}

@font-face {
  font-family: "Shippori Mincho";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/shippori-mincho-400.woff2") format("woff2");
}

@font-face {
  font-family: "Shippori Mincho";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/shippori-mincho-700.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
}

:root {
  --paper: oklch(0.95 0.025 90);
  --paper-dim: oklch(0.91 0.035 88);
  --ink: oklch(0.24 0.015 60);
  --ink-soft: oklch(0.38 0.02 60);
  --vermillion: oklch(0.60 0.2 33);
  --vermillion-deep: oklch(0.52 0.19 32);
  --blossom: oklch(0.76 0.11 350);
  --blossom-light: oklch(0.85 0.07 350);

  --display: "RocknRoll One", sans-serif;
  --serif: "Shippori Mincho", serif;
  --mono: "JetBrains Mono", monospace;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;

  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);

  --dots-ink: radial-gradient(var(--ink) 1.1px, transparent 1.2px);
  --dots-paper: radial-gradient(oklch(0.95 0.025 90 / 0.55) 1.1px, transparent 1.2px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--vermillion-deep);
  padding: clamp(var(--s-3), 2.5vw, var(--s-8));
}

.frame {
  max-width: 1224px;
  margin: 0 auto;
  border: var(--border);
  padding: 22px;
  background:
    repeating-conic-gradient(var(--vermillion) 0% 25%, var(--paper) 0% 50%)
    0 0 / 22px 22px;
}

.page {
  background: var(--paper);
  border: var(--border);
  overflow: clip;
}

::selection { background: var(--blossom); color: var(--ink); }

a { color: inherit; }

code, pre { font-family: var(--mono); font-variant-ligatures: none; }

/* ---------- top strip ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-6);
  border-bottom: var(--border);
}

.topbar .enso { width: 30px; height: 30px; flex: none; }

.topbar .wordmark {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: var(--s-6);
}

.topbar nav a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar nav a:hover { color: var(--vermillion); }

@media (max-width: 720px) {
  .topbar nav a:not(.gh) { display: none; }
}

/* ---------- hero poster ---------- */

.hero {
  padding: clamp(var(--s-6), 4vw, var(--s-12));
  border-bottom: var(--border);
}

.hero-title { text-align: center; margin-bottom: var(--s-6); }

.kana-circles {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.kana-circles span {
  font-family: var(--display);
  width: 2.4em;
  height: 2.4em;
  display: grid;
  place-items: center;
  font-size: clamp(0.8rem, 1.6vw, 1.1rem);
  background: var(--blossom);
  border: var(--border);
  border-radius: 50%;
  padding-bottom: 0.1em;
}

.hero-title h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 9.5vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero-title .brush-under {
  display: block;
  width: min(420px, 60%);
  margin: 0.35rem auto 0;
}

.poster-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--s-4);
}

.panel {
  border: var(--border);
  background: var(--paper);
  overflow: clip;
}

.panel svg { display: block; width: 100%; height: 100%; }

.panel-fuji { grid-row: 1 / 3; }

/* living poster: cursor parallax (vars set from app.js) + ambient print motion */

.fuji-scene .fuji-sun { translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -8px); }
.fuji-scene .fuji-mountain { translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 4px); }
.fuji-scene .fuji-snow { paint-order: stroke fill; }
.fuji-scene .fuji-clouds { translate: calc(var(--px, 0) * 24px) calc(var(--py, 0) * 12px); }
.fuji-scene .fuji-wind { translate: calc(var(--px, 0) * 32px) calc(var(--py, 0) * 16px); }

@media (prefers-reduced-motion: no-preference) {
  .fuji-scene .sun-core,
  .fuji-scene .sun-halo {
    transform-box: fill-box;
    transform-origin: center;
  }
  .fuji-scene .sun-core { animation: sun-pulse 7s ease-in-out infinite; }
  .fuji-scene .sun-halo { animation: halo-pulse 7s ease-in-out infinite; }

  .fuji-scene .cloud-l { animation: cloud-drift 14s ease-in-out infinite alternate; }
  .fuji-scene .cloud-r { animation: cloud-drift 18s ease-in-out infinite alternate-reverse; }

  .fuji-scene .fuji-wind path { animation: wind-ripple 5s ease-in-out infinite; }
  .fuji-scene .fuji-wind .w2 { animation-delay: 1.2s; }
  .fuji-scene .fuji-wind .w3 { animation-delay: 2.5s; }
  .fuji-scene .fuji-wind .w4 { animation-delay: 3.7s; }

  .fuji-scene .speckles { animation: speckle-shimmer 5.5s ease-in-out infinite; }
  .fuji-scene .speckles.s2 { animation-delay: 1.8s; }
  .fuji-scene .speckles.s3 { animation-delay: 3.6s; }
}

@keyframes sun-pulse {
  50% { transform: scale(1.05); }
}

@keyframes halo-pulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes cloud-drift {
  from { transform: translate(-16px, 2px); }
  to { transform: translate(20px, -3px); }
}

@keyframes wind-ripple {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(26px); opacity: 0.3; }
}

@keyframes speckle-shimmer {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.25; }
}

.panel-standard {
  background: var(--blossom);
  background-image: var(--dots-ink);
  background-size: 11px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  padding: var(--s-6) var(--s-4);
}

.panel-standard .tatebanko {
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 0.22em;
  background: var(--paper);
  border: var(--border);
  padding: var(--s-4) var(--s-2);
}

.panel-standard .hanko { width: 56px; flex: none; align-self: flex-end; }

.panel-night { background: var(--ink); }

.hero-tagline {
  margin-top: var(--s-8);
  text-align: center;
}

.hero-tagline p.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-tagline p.sub {
  max-width: 56ch;
  margin: var(--s-3) auto 0;
  color: var(--ink-soft);
}

.hero-cta {
  margin-top: var(--s-6);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.cmd-chip {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--ink);
  color: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  transition: translate 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.cmd-chip .dollar { color: var(--blossom); }

.cmd-chip:hover { translate: -2px -2px; box-shadow: 8px 8px 0 var(--ink); }
.cmd-chip:active { translate: 0 0; box-shadow: var(--shadow-sm); }

.btn {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--vermillion);
  color: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--s-3) var(--s-6);
  transition: translate 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover { translate: -2px -2px; box-shadow: 8px 8px 0 var(--ink); }

@media (max-width: 820px) {
  .poster-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .panel-fuji { grid-row: auto; }
  .panel-night { display: none; }
}

/* ---------- course sections ---------- */

.course { border-bottom: var(--border); }

.course-head {
  padding: clamp(var(--s-8), 5vw, var(--s-12)) clamp(var(--s-6), 4vw, var(--s-12)) var(--s-6);
}

.course-title {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.course-num {
  font-family: var(--display);
  flex: none;
  width: 2.2em;
  height: 2.2em;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--paper);
  background: var(--vermillion);
  border: var(--border);
  padding-bottom: 0.15em;
}

.course-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15;
  text-wrap: balance;
}

.course-body { padding: 0 clamp(var(--s-6), 4vw, var(--s-12)) clamp(var(--s-8), 5vw, var(--s-12)); }

/* ---------- philosophy (sakizuke) ---------- */

.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: var(--s-8);
  align-items: start;
}

.philosophy-art {
  border: var(--border);
  background: var(--vermillion);
  position: sticky;
  top: var(--s-4);
}

.philosophy-art svg { display: block; width: 100%; height: auto; }

.principles { list-style: none; }

.principles li {
  padding: var(--s-4) 0;
  border-bottom: 1px solid oklch(0.24 0.015 60 / 0.25);
}

.principles li:first-child { padding-top: 0; }
.principles li:last-child { border-bottom: none; padding-bottom: 0; }

.principles .p-name {
  font-family: var(--display);
  font-size: 1.15rem;
  display: block;
}

.principles p { color: var(--ink-soft); max-width: 60ch; }

@media (max-width: 820px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-art { position: static; max-width: 380px; }
}

/* ---------- the twelve rules (menu) ---------- */

.course-rules {
  background: var(--paper-dim);
}

.menu-sheet {
  list-style: none;
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(var(--s-6), 4vw, var(--s-12));
  columns: 2;
  column-gap: var(--s-12);
  column-rule: 1px solid oklch(0.24 0.015 60 / 0.25);
}

@media (max-width: 820px) { .menu-sheet { columns: 1; } }

.menu-item {
  break-inside: avoid;
  padding-block: var(--s-3) var(--s-4);
}

.menu-line {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}

.menu-line .name {
  font-family: var(--display);
  font-size: 1.05rem;
}

.menu-line .leader {
  flex: 1;
  border-bottom: 2px dotted oklch(0.24 0.015 60 / 0.5);
  translate: 0 -0.3em;
  min-width: var(--s-6);
}

.menu-line .num {
  display: inline-block;
  font-weight: 700;
  color: var(--vermillion-deep);
  font-size: 1.05rem;
}

.menu-item p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: var(--s-1);
}

.menu-item:hover .name { color: var(--vermillion); }

/* ---------- the counter (leads) ---------- */

.leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
}

.lead-card {
  border: var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.lead-card .lead-art {
  border-bottom: var(--border);
  aspect-ratio: 5 / 3;
}

.lead-card .lead-art svg { width: 100%; height: 100%; display: block; }

.lead-card .lead-text { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }

.lead-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
}

.lead-card h3 .jp-inline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--vermillion-deep);
}

.lead-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.lead-engineer { background: var(--paper); }
.lead-critic { background: var(--blossom-light); }
.lead-archivist { background: var(--paper-dim); }

.shokunin {
  border-top: 2px dotted oklch(0.24 0.015 60 / 0.4);
  padding-top: var(--s-3);
}

.shokunin-label {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermillion-deep);
  margin-bottom: var(--s-2);
}

.shokunin-label [lang="ja"] { letter-spacing: 0.3em; margin-left: var(--s-1); }

.shokunin ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.shokunin li {
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 0.05em 0.55em;
}

.call-ticket {
  max-width: 640px;
  margin-top: var(--s-8);
}

.ticket .at { color: var(--blossom); }

/* ---------- the gate (critique) ---------- */

.course-gate { background: var(--ink); color: var(--paper); }

.course-gate .course-num { background: var(--blossom); color: var(--ink); }

.gate-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  border: 2px solid var(--paper);
}

.gate-item {
  padding: var(--s-6);
  border: 1px solid oklch(0.95 0.025 90 / 0.4);
}

.gate-item .g-num {
  font-family: var(--display);
  color: var(--blossom);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--s-2);
}

.gate-item h3 { font-family: var(--display); font-size: 1.1rem; margin-bottom: var(--s-2); }

.gate-item p { font-size: 0.9rem; color: oklch(0.95 0.025 90 / 0.75); line-height: 1.65; }

.gate-stamp-row {
  margin-top: var(--s-8);
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.gate-stamp-row .stamp { width: 110px; flex: none; rotate: -8deg; }

.stamp-specks circle { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  html.js .stamp:not(.stamped) { opacity: 0; }

  .stamp.stamped { animation: stamp-slam 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }

  .stamp.stamped .stamp-specks circle {
    animation: speck-pop 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .stamp.stamped .stamp-specks circle:nth-child(1) { animation-delay: 0.65s; }
  .stamp.stamped .stamp-specks circle:nth-child(2) { animation-delay: 0.71s; }
  .stamp.stamped .stamp-specks circle:nth-child(3) { animation-delay: 0.66s; }
  .stamp.stamped .stamp-specks circle:nth-child(4) { animation-delay: 0.69s; }
  .stamp.stamped .stamp-specks circle:nth-child(5) { animation-delay: 0.74s; }
  .stamp.stamped .stamp-specks circle:nth-child(6) { animation-delay: 0.68s; }
  .stamp.stamped .stamp-specks circle:nth-child(7) { animation-delay: 0.72s; }

  .stamp.stamped + blockquote { animation: paper-jolt 0.4s ease-out 0.63s both; }
}

@keyframes stamp-slam {
  0% { scale: 2.6; opacity: 0; }
  55% { scale: 0.92; opacity: 1; }
  72% { scale: 1.04; }
  100% { scale: 1; opacity: 1; }
}

@keyframes speck-pop {
  from { scale: 0; opacity: 0; }
  to { scale: 1; opacity: 1; }
}

@keyframes paper-jolt {
  0% { translate: 0 0; rotate: 0deg; }
  30% { translate: 2px 3px; rotate: 0.5deg; }
  60% { translate: -1px -1px; rotate: -0.25deg; }
  100% { translate: 0 0; rotate: 0deg; }
}

.gate-stamp-row blockquote {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 700;
  max-width: 36ch;
  text-wrap: balance;
}

/* ---------- how to order (quick start) ---------- */

.order-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}

@media (max-width: 880px) { .order-grid { grid-template-columns: 1fr; } }

.ticket {
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--ink);
  color: var(--paper);
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  background: var(--vermillion);
  color: var(--paper);
  padding: var(--s-2) var(--s-4);
  border-bottom: var(--border);
}

.ticket pre {
  padding: var(--s-6);
  font-size: 0.88rem;
  line-height: 1.9;
  overflow-x: auto;
}

.ticket-prompt { white-space: pre-wrap; }

.ticket-foot {
  padding: 0 var(--s-6) var(--s-6);
}

.ticket-foot .copied-note {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.75rem;
  margin-left: var(--s-2);
}

.ticket .c { color: oklch(0.95 0.025 90 / 0.5); }
.ticket .dollar { color: var(--blossom); }

.order-steps { display: flex; flex-direction: column; gap: var(--s-6); }

.ticket-stack { display: flex; flex-direction: column; gap: var(--s-8); }

.terminal-note .tn-night {
  margin-top: var(--s-4);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.terminal-note {
  border: 1px solid oklch(0.24 0.015 60 / 0.35);
  background: var(--paper-dim);
  padding: var(--s-4) var(--s-6);
}

.terminal-note .tn-label {
  display: block;
  font-family: var(--display);
  font-size: 0.85rem;
  margin-bottom: var(--s-3);
}

.terminal-note .tn-cmds {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
}

.terminal-note .tn-cmds code {
  font-size: 0.8rem;
  background: var(--paper);
  border: 1px solid oklch(0.24 0.015 60 / 0.35);
  padding: 0.15em 0.6em;
}

.order-step h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.order-step h3 .step-no {
  flex: none;
  width: 1.8em;
  height: 1.8em;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  background: var(--blossom);
  border: 2px solid var(--ink);
  border-radius: 50%;
  padding-bottom: 0.1em;
}

.order-step p { color: var(--ink-soft); font-size: 0.95rem; max-width: 55ch; }

.order-step code.inline {
  background: var(--paper-dim);
  border: 1px solid oklch(0.24 0.015 60 / 0.35);
  padding: 0 0.35em;
  font-size: 0.85em;
}

.harness-table { margin-top: var(--s-8); }

.harness-table table {
  width: 100%;
  border-collapse: collapse;
  border: var(--border);
  background: var(--paper);
  font-size: 0.9rem;
}

.harness-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: var(--s-3);
}

.harness-table th, .harness-table td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid oklch(0.24 0.015 60 / 0.25);
}

.harness-table th {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
  background: var(--blossom-light);
  border-bottom: var(--border);
}

.harness-table tr:last-child td { border-bottom: none; }

.harness-table td code { font-size: 0.82rem; }

.harness-table tr:hover td { background: var(--paper-dim); }

/* ---------- takeout (chat apps) ---------- */

.takeout {
  margin-top: var(--s-8);
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 1.6fr;
}

.takeout-intro {
  padding: var(--s-6);
  border-right: 1px solid oklch(0.24 0.015 60 / 0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
}

.takeout-intro h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
}

.takeout-intro h3 .jp-inline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--vermillion-deep);
}

.takeout-intro p { color: var(--ink-soft); font-size: 0.95rem; }

.takeout-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.takeout-app { padding: var(--s-6); }

.takeout-app + .takeout-app { border-left: 1px solid oklch(0.24 0.015 60 / 0.25); }

.takeout-app h4 { font-family: var(--display); font-size: 1rem; margin-bottom: var(--s-3); }

.takeout-app ol { padding-left: 1.2em; font-size: 0.92rem; color: var(--ink-soft); }

.takeout-app li { padding-block: var(--s-1); }

.takeout-app .plan-note {
  margin-top: var(--s-3);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--vermillion-deep);
}

@media (max-width: 880px) {
  .takeout { grid-template-columns: 1fr; }
  .takeout-intro { border-right: none; border-bottom: 1px solid oklch(0.24 0.015 60 / 0.25); }
  .takeout-app + .takeout-app { border-left: none; border-top: 1px solid oklch(0.24 0.015 60 / 0.25); }
}

/* ---------- memory strip ---------- */

.memory-strip {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  margin-top: var(--s-8);
  border: var(--border);
  background: var(--blossom-light);
  padding: var(--s-6);
  flex-wrap: wrap;
}

.memory-strip .scroll-icon { width: 64px; flex: none; }

.memory-strip .memory-text { flex: 1; min-width: 260px; }

.memory-strip .memory-text strong { font-family: var(--display); font-weight: 400; }

.memory-strip .memory-text p { font-size: 0.95rem; }

.memory-strip .memory-text code { font-size: 0.82rem; background: var(--paper); border: 1px solid var(--ink); padding: 0 0.35em; }

/* ---------- dark factory ---------- */

.course-factory { background: var(--vermillion); color: var(--paper); }

.course-factory .course-num { background: var(--ink); }

.factory-quote {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.55;
  max-width: 30ch;
  text-wrap: balance;
  margin-bottom: var(--s-8);
}

.factory-quote em { font-style: normal; color: var(--ink); }

.marubatsu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-6);
}

.mb-col {
  border: var(--border);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.mb-col h3 {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: var(--s-3) var(--s-4);
  border-bottom: var(--border);
}

.mb-col.is h3 { background: var(--blossom-light); }
.mb-col.isnot h3 { background: var(--paper-dim); }

.mb-col ul { list-style: none; padding: var(--s-4); }

.mb-col li {
  font-size: 0.92rem;
  padding: var(--s-2) 0;
  color: var(--ink-soft);
}


/* ---------- footer ---------- */

.kanjo {
  padding: clamp(var(--s-8), 5vw, var(--s-12)) clamp(var(--s-6), 4vw, var(--s-12));
}

.footer-sushi {
  display: flex;
  justify-content: center;
  gap: var(--s-8);
  margin-bottom: var(--s-8);
}

.footer-sushi svg { width: 84px; height: auto; }

.footer-cta {
  text-align: center;
  margin-bottom: var(--s-8);
}

.footer-cta h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: var(--s-4);
}

.footer-cta .hero-cta { margin-top: var(--s-4); }

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  border-top: var(--border);
  padding-top: var(--s-6);
  font-size: 0.85rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.footer-meta nav { display: flex; gap: var(--s-6); }

.footer-meta a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-meta a:hover { color: var(--vermillion); }

/* ---------- section delights: tiny ambient touches ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* hero: kana lanterns bob in sequence */
  .kana-circles span { animation: kana-bob 5s ease-in-out infinite; }
  .kana-circles span:nth-child(2) { animation-delay: 0.45s; }
  .kana-circles span:nth-child(3) { animation-delay: 0.9s; }
  .kana-circles span:nth-child(4) { animation-delay: 1.35s; }

  /* philosophy: ramen steam rises */
  .philosophy-art .steam circle { animation: steam-rise 4.5s ease-in-out infinite; }
  .philosophy-art .steam circle:nth-child(2) { animation-delay: 0.8s; }
  .philosophy-art .steam circle:nth-child(3) { animation-delay: 1.6s; }
  .philosophy-art .steam circle:nth-child(4) { animation-delay: 2.4s; }
  .philosophy-art .steam circle:nth-child(5) { animation-delay: 3.2s; }
  .philosophy-art .steam circle:nth-child(6) { animation-delay: 4s; }

  /* rules: a wave of fresh ink crosses the kanji numerals */
  .menu-line .num { animation: ink-wave 8s ease-in-out infinite; }
  .menu-item:nth-child(2) .num { animation-delay: 0.6s; }
  .menu-item:nth-child(3) .num { animation-delay: 1.2s; }
  .menu-item:nth-child(4) .num { animation-delay: 1.8s; }
  .menu-item:nth-child(5) .num { animation-delay: 2.4s; }
  .menu-item:nth-child(6) .num { animation-delay: 3s; }
  .menu-item:nth-child(7) .num { animation-delay: 3.6s; }
  .menu-item:nth-child(8) .num { animation-delay: 4.2s; }
  .menu-item:nth-child(9) .num { animation-delay: 4.8s; }
  .menu-item:nth-child(10) .num { animation-delay: 5.4s; }
  .menu-item:nth-child(11) .num { animation-delay: 6s; }
  .menu-item:nth-child(12) .num { animation-delay: 6.6s; }

  /* counter: each lead's tools are at work */
  .lead-art .knife-rock {
    transform-box: fill-box;
    transform-origin: center;
    animation: knife-rock 5.5s ease-in-out infinite;
  }
  .lead-art .stamp-hand { animation: stamp-press 7s ease-out infinite; }
  .lead-art .scroll-sway {
    transform-box: fill-box;
    transform-origin: center;
    animation: scroll-sway 8s ease-in-out infinite;
  }

  /* gate: inspection numbers glint in turn */
  .gate-item .g-num { animation: gnum-glint 6.4s ease-in-out infinite; }
  .gate-item:nth-child(2) .g-num { animation-delay: 0.8s; }
  .gate-item:nth-child(3) .g-num { animation-delay: 1.6s; }
  .gate-item:nth-child(4) .g-num { animation-delay: 2.4s; }
  .gate-item:nth-child(5) .g-num { animation-delay: 3.2s; }
  .gate-item:nth-child(6) .g-num { animation-delay: 4s; }
  .gate-item:nth-child(7) .g-num { animation-delay: 4.8s; }
  .gate-item:nth-child(8) .g-num { animation-delay: 5.6s; }

  /* footer: the kaiten belt */
  .footer-sushi svg { animation: sushi-bob 6s ease-in-out infinite; }
  .footer-sushi svg:nth-child(2) { animation-delay: 0.7s; }
  .footer-sushi svg:nth-child(3) { animation-delay: 1.4s; }
}

@keyframes kana-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

@keyframes steam-rise {
  0% { transform: translateY(2px); opacity: 0; }
  25% { opacity: 0.9; }
  100% { transform: translateY(-14px); opacity: 0; }
}

@keyframes ink-wave {
  0%, 20%, 100% { color: var(--vermillion-deep); transform: scale(1); }
  10% { color: var(--ink); transform: scale(1.3); }
}

@keyframes knife-rock {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1.4deg); }
}

@keyframes stamp-press {
  0%, 86%, 100% { transform: translateY(0); }
  90% { transform: translateY(7px); }
  94% { transform: translateY(0); }
}

@keyframes scroll-sway {
  0%, 100% { transform: rotate(-0.5deg); }
  50% { transform: rotate(0.5deg); }
}

@keyframes gnum-glint {
  0%, 16%, 100% { color: var(--blossom); }
  8% { color: var(--paper); }
}

@keyframes sushi-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---------- reveal motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    translate: 0 18px;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), translate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.js .reveal.shown { opacity: 1; translate: 0 0; }
}

/* ---------- copy feedback: order toast + sushi burst ---------- */

.order-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  translate: -50%;
  z-index: 50;
  width: max-content;
  max-width: min(440px, calc(100vw - 48px));
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: var(--s-4) var(--s-6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.order-toast.show {
  opacity: 1;
  visibility: visible;
}

.order-toast .toast-head {
  display: block;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vermillion-deep);
  margin-bottom: var(--s-1);
}

.order-toast .toast-head [lang="ja"] {
  font-family: var(--serif);
  letter-spacing: 0.25em;
  margin-left: var(--s-2);
}

.order-toast p {
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .order-toast {
    translate: -50% 14px;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      translate 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s 0.3s;
  }
  .order-toast.show {
    translate: -50% 0;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      translate 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }
}

.sushi-burst {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: clip;
}

.sushi-burst .piece {
  position: absolute;
  will-change: transform, opacity;
}

.sushi-burst .piece svg { display: block; width: 100%; height: auto; }
