/* Sushi public site and customer portal (plan 015). Palette, type and materials come from
   openbot/docs/design/sushi-rebrand.html: Nori is the default ground, Shari (light) follows the
   viewer's system. Fonts are the app's own bundled latin subsets (OFL, see /licenses). */

@font-face {
  font-family: "M PLUS 1";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/m-plus-1-latin.woff2") format("woff2");
}
@font-face {
  font-family: "M PLUS 1 Code";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/m-plus-1-code-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Dela Gothic One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dela-gothic-one-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --page: #070908;
  --page-line: rgba(214, 232, 220, 0.1);
  --canvas: #0f1311;
  --surface: #161b18;
  --raised: #1d231f;
  --pressed: #2b352e;
  --hover: rgba(226, 240, 230, 0.05);
  --line: rgba(214, 232, 220, 0.08);
  --line-strong: rgba(214, 232, 220, 0.15);
  --ink: #eeece5;
  --ink-2: #cfd3ce;
  --muted: #9aa39d;
  --dim: #6d766f;
  --sake: #ff7a5a;
  --sake-hover: #ff8f73;
  --sake-text: #ff9678;
  --sake-soft: rgba(255, 122, 90, 0.14);
  --on-sake: #1a0e0a;
  --wasabi: #a3c94b;
  --wasabi-text: #b8d86a;
  --wasabi-soft: rgba(163, 201, 75, 0.14);
  --tamago: #f2c14e;
  --tamago-text: #f5cf72;
  --tamago-soft: rgba(242, 193, 78, 0.14);
  --maguro-text: #ff7079;
  --maguro-soft: rgba(232, 67, 79, 0.15);
  --nori: #131915;
  --rice: #f4f1ea;
  --belt: #050706;
  --belt-raised: #121714;
  --plate-face: #1a201c;
  --win-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(214, 232, 220, 0.1);
  --card-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
  --stage-glow: rgba(255, 196, 150, 0.08);
  --font-ui: "M PLUS 1", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-code: "M PLUS 1 Code", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-display: "Dela Gothic One", "M PLUS 1", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --page: #e6e9e3;
    --page-line: rgba(20, 35, 27, 0.12);
    --canvas: #fafaf7;
    --surface: #ffffff;
    --raised: #f3f5f0;
    --pressed: #e5eae2;
    --hover: rgba(20, 35, 27, 0.045);
    --line: rgba(20, 35, 27, 0.09);
    --line-strong: rgba(20, 35, 27, 0.16);
    --ink: #141a16;
    --ink-2: #2f3732;
    --muted: #5b655e;
    --dim: #7f8882;
    --sake: #ec5b3c;
    --sake-hover: #f06b4e;
    --sake-text: #c4432a;
    --sake-soft: rgba(236, 91, 60, 0.11);
    --on-sake: #fff8f5;
    --wasabi: #6a9a22;
    --wasabi-text: #4c7410;
    --wasabi-soft: rgba(106, 154, 34, 0.12);
    --tamago: #e2a91a;
    --tamago-text: #8a6300;
    --tamago-soft: rgba(226, 169, 26, 0.16);
    --maguro-text: #b3202e;
    --maguro-soft: rgba(209, 47, 61, 0.1);
    --plate-face: #ffffff;
    --win-shadow: 0 50px 110px -40px rgba(30, 45, 35, 0.45), 0 0 0 1px rgba(20, 35, 27, 0.1);
    --card-shadow: 0 24px 60px -34px rgba(30, 45, 35, 0.35);
    --stage-glow: rgba(255, 226, 200, 0.6);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
canvas,
iframe {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
::selection {
  background: var(--sake-soft);
}
:focus-visible {
  outline: 2px solid var(--sake);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: var(--surface);
  padding: 8px 12px;
}
.wrap {
  width: min(100%, var(--wide));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow-wrap {
  width: min(100%, 560px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono {
  font-family: var(--font-code);
}
.eyebrow {
  font: 500 12px/1.4 var(--font-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sake-text);
  margin: 0 0 14px;
}
.muted {
  color: var(--muted);
}
.dim {
  color: var(--dim);
}
.small {
  font-size: 13px;
}
.center {
  text-align: center;
}

/* ───────── Top bar ───────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--page-line);
}
.bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-tile {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--nori);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo-tile img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  object-position: 0 0;
}
.logo-word {
  font: 400 22px/1 var(--font-display);
  letter-spacing: -0.01em;
}
.logo-kanji {
  font-size: 10px;
  line-height: 1.05;
  writing-mode: vertical-rl;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.bar-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.bar-links a,
.bar-actions a.quiet,
.bar-actions button.quiet {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.bar-links a:hover,
.bar-links a[aria-current="page"],
.bar-actions a.quiet:hover {
  color: var(--ink);
  background: var(--hover);
}
.bar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bar-actions form {
  margin: 0;
}
.bar-actions a.quiet {
  white-space: nowrap;
}
@media (max-width: 860px) {
  .bar-links {
    display: none;
  }
}
@media (max-width: 400px) {
  .bar-inner {
    gap: 12px;
  }
  .logo-kanji {
    display: none;
  }
  .bar-actions {
    gap: 2px;
  }
  .bar-actions a.quiet {
    padding-inline: 10px;
  }
  .bar-actions .btn.sm {
    padding-inline: 14px;
  }
}

/* ───────── Buttons ───────── */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--sake);
  color: var(--on-sake);
  font: 600 15px/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--sake) 70%, transparent);
  white-space: nowrap;
}
.btn:hover {
  background: var(--sake-hover);
}
.btn:active {
  transform: translateY(1px);
}
.btn.sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.btn.lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn.ghost:hover {
  background: var(--hover);
}
.btn.quiet-btn {
  background: var(--raised);
  color: var(--ink);
  box-shadow: none;
}
.btn.quiet-btn:hover {
  background: var(--pressed);
}
.btn.danger {
  background: transparent;
  color: var(--maguro-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--maguro-text) 40%, transparent);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.block {
  width: 100%;
}
.linkish {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--sake-text);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 72px) 0 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background: radial-gradient(ellipse 60% 55% at 50% 30%, var(--stage-glow), transparent 70%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  text-align: center;
  max-width: 1040px;
  margin-inline: auto;
}
.hero h1 {
  font: 400 clamp(38px, 6vw, 72px) / 1.04 var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 .sake {
  color: var(--sake);
}
.hero-lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-2);
  max-width: 680px;
  margin: 24px auto 0;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--dim);
}
.hero-pieces {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2vw, 18px);
  margin: 0 auto 26px;
}
.hero-pieces .piece {
  width: clamp(44px, 6vw, 64px);
  height: clamp(44px, 6vw, 64px);
}

/* A rendered piece: the baked still, then the live engine draws over it (data-drawn hides the still). */
.piece {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
}
.piece .still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.piece canvas.still[data-drawn="1"] {
  background: none;
}

/* ───────── The window that holds the live app ───────── */
.stage {
  position: relative;
  margin: clamp(40px, 6vw, 72px) auto 0;
  width: min(100%, 1240px);
  padding-inline: var(--gutter);
}
.window {
  position: relative;
  border-radius: 16px;
  background: var(--canvas);
  box-shadow: var(--win-shadow);
  overflow: hidden;
}
.window-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}
.window-bar .title {
  margin-inline: auto;
  font: 500 12px/1 var(--font-code);
  color: var(--dim);
  letter-spacing: 0.04em;
}
.window-bar .live-dot {
  font: 500 11px/1 var(--font-code);
  color: var(--wasabi-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.window-bar .live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wasabi);
  box-shadow: 0 0 0 4px var(--wasabi-soft);
}
.window-body {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  max-height: 780px;
  width: 100%;
  background: var(--canvas);
}
.window-body > img,
.window-body > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: top left;
}
.window-body > iframe {
  opacity: 0;
  transform-origin: 0 0;
  transition:
    opacity 0.6s var(--ease),
    transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
.window-body.ready > iframe {
  opacity: 1;
}
.window-body .launch {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--page) 70%, transparent));
  transition: opacity 0.4s var(--ease);
}
.window-body.ready .launch,
.window-body.loading .launch {
  opacity: 0;
  pointer-events: none;
}
.launch-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line);
  text-align: center;
  max-width: 340px;
}
.launch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.window-body .spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  font: 500 12px/1 var(--font-code);
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.window-body.loading .spinner {
  opacity: 1;
}
/* The window's views in the tour, in place of its title. */
.window-tabs {
  margin-inline: auto;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line);
}
.window-tabs[hidden] {
  display: none;
}
.window-bar:has(.window-tabs:not([hidden])) .title {
  display: none;
}
.window-tabs a {
  padding: 5px 12px;
  border-radius: 999px;
  font: 500 12px/1 var(--font-code);
  color: var(--dim);
  text-decoration: none;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.window-tabs a:hover {
  color: var(--ink-2);
}
.window-tabs a[aria-current="true"] {
  color: var(--ink);
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.window-tabs a:focus-visible {
  outline: 2px solid var(--sake);
  outline-offset: 1px;
}

/* The camera: in close on the app's work, a click pulls back to the whole app. */
.window-body.zoomed {
  cursor: zoom-out;
}
.window-body.zoomed > iframe {
  pointer-events: none;
}
.window-hint {
  display: none;
}
.touring .window-hint {
  display: block;
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font: 600 13px/1 var(--font-ui);
  white-space: nowrap;
  pointer-events: none;
  transform-origin: 50% 100%;
  translate: -50% 6px;
  scale: calc(1 / var(--s, 1));
  opacity: 0;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease);
}
.touring .window-body.zoomed.hinting .window-hint {
  opacity: 1;
  translate: -50% 0;
}

/* The chapters under the window: feature rows with their renders, until the tour takes them over. */
.tour-chapters {
  width: min(100%, var(--wide));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter) 0;
}

/* The tour (site.js): the window holds still under the bar while the chapters' copy scrolls past it. The
   hero clips its glow without becoming a scroller, so the window can stick. */
.touring .hero {
  overflow: clip;
}
.touring .tour {
  display: grid;
}
.touring .tour > * {
  grid-area: 1 / 1;
  min-width: 0;
}
.touring .tour-stage {
  position: sticky;
  top: var(--bar-h, 64px);
  z-index: 1;
  height: calc(100vh - var(--bar-h, 64px));
}
.touring .tour-stage .window {
  transform-origin: 0 0;
  will-change: transform;
}
.touring .tour-chapters {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--tour-intro, 55vh) 0 0;
  pointer-events: none;
}
.touring .chapter {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--bar-h, 64px));
  margin: 0;
  padding-left: var(--gutter);
  view-timeline: --chapter block;
}
.touring .chapter .feature-copy {
  order: 0;
  width: var(--copy-w, 360px);
  pointer-events: auto;
}
.touring .chapter h3 {
  font-size: clamp(28px, 2.6vw, 40px);
}
.touring .chapter .shot {
  display: none;
}
/* Parallax: each line of copy rides the scroll at its own pace, rising into the middle and lifting away,
   the same both ways. Where scroll timelines are missing, the chapter at the middle fades in instead. */
@supports (animation-timeline: view()) {
  .touring .chapter .feature-copy > * {
    animation:
      chapter-in linear both,
      chapter-out linear forwards;
    animation-timeline: --chapter, --chapter;
    animation-range:
      entry 20% entry 100%,
      exit 0% exit 80%;
  }
  .touring .chapter .eyebrow {
    --rise: 40px;
  }
  .touring .chapter h3 {
    --rise: 80px;
  }
  .touring .chapter .feature-copy > p:not(.eyebrow) {
    --rise: 125px;
  }
  .touring .chapter .ticks {
    --rise: 175px;
  }
}
@supports not (animation-timeline: view()) {
  .touring .chapter .feature-copy {
    opacity: 0.15;
    translate: 0 48px;
    transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
  }
  .touring .chapter.on .feature-copy {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes chapter-in {
  from {
    opacity: 0;
    translate: 0 var(--rise, 80px);
  }
}
@keyframes chapter-out {
  to {
    opacity: 0;
    translate: 0 calc(var(--rise, 80px) * -0.7);
  }
}
.stage-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--dim);
}
@media (max-width: 720px) {
  .window-body {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }
  .window-body > img {
    object-position: 8% top;
  }
}

/* ───────── The belt: plates carried slowly across ───────── */
.belt {
  position: relative;
  margin-top: clamp(48px, 7vw, 84px);
  height: 96px;
  background: var(--belt);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.belt::before,
.belt::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.belt::before {
  left: 0;
  background: linear-gradient(90deg, var(--belt), transparent);
}
.belt::after {
  right: 0;
  background: linear-gradient(270deg, var(--belt), transparent);
}
.belt-track {
  display: flex;
  gap: 28px;
  width: max-content;
  height: 100%;
  align-items: center;
  padding-left: 28px;
  animation: belt 60s linear infinite;
}
.belt-plate {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #22291f 0 54%, #151a16 55% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05), 0 8px 14px -8px rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
}
.belt-plate.sake {
  background: radial-gradient(circle at 50% 42%, #2a221e 0 54%, #3a2620 55% 100%);
}
.belt-plate.tamago {
  background: radial-gradient(circle at 50% 42%, #2a2719 0 54%, #3b3218 55% 100%);
}
.belt-plate .still {
  width: 58px;
  height: 58px;
  background-size: 700% 100%;
  background-repeat: no-repeat;
  rotate: calc(var(--lean) * 1deg);
  translate: calc(var(--lean) * 0.15px) 0;
}
/* Each plate is a bubble (site.js belts()): near the pointer it swells and leans in (--near 0..1,
   --lean in degrees), the one under it shows its flag, and a press pops it until it refills. */
.belt {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.belt-plate {
  --near: 0;
  --lean: 0;
  position: relative;
  cursor: pointer;
  translate: calc(var(--lean) * 0.2px) calc(var(--near) * -5px);
  scale: calc(1 + var(--near) * 0.14);
}
.belt-plate::before,
.belt-plate::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: var(--near);
}
.belt-plate::before {
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    transparent,
    rgba(130, 210, 255, 0.4),
    rgba(255, 150, 210, 0.34),
    rgba(255, 225, 140, 0.34),
    transparent 72%
  );
  -webkit-mask: radial-gradient(circle closest-side, transparent 80%, #000 86%, #000 96%, transparent);
  mask: radial-gradient(circle closest-side, transparent 80%, #000 86%, #000 96%, transparent);
}
.belt-plate::after {
  top: 13%;
  left: 19%;
  width: 26%;
  height: 14%;
  border-radius: 50%;
  rotate: -38deg;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.6), transparent);
}
.belt-plate.over .still {
  background-position: 16.6667% 0;
}
.belt-plate.popping .still {
  background-position: 66.6667% 0;
}
.belt-plate.popped {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.07);
  cursor: default;
}
.belt-plate.popped::before,
.belt-plate.popped::after,
.belt-plate.popped .still {
  opacity: 0;
}
.belt-burst,
.belt-burst i {
  position: absolute;
  pointer-events: none;
}
.belt-burst {
  inset: 0;
}
.belt-burst .ring {
  inset: 0;
  border-radius: 50%;
  border: 2px solid;
}
.belt-burst .flash {
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 60%, transparent);
}
.belt-burst .drop,
.belt-burst .grain {
  left: 50%;
  top: 50%;
  border-radius: 50%;
}
.belt-burst .drop {
  background: radial-gradient(circle at 35% 35%, #fff, rgba(255, 255, 255, 0.35) 55%, transparent 72%);
}
.belt-burst .grain {
  width: 3px;
  height: 6px;
  margin: -3px 0 0 -1.5px;
  background: #f3eedf;
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .belt-plate:not(.popped):hover .still {
    background-position: 16.6667% 0;
  }
}
@keyframes belt {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .belt-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ───────── Sections ───────── */
.section {
  padding: clamp(64px, 10vw, 128px) 0;
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--page-line);
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head.center {
  margin-inline: auto;
}
.section h2 {
  font: 400 clamp(30px, 4.4vw, 52px) / 1.06 var(--font-display);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.section h2 .sake {
  color: var(--sake);
}
.section-head p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-2);
  margin: 18px 0 0;
  text-wrap: pretty;
}

/* Team cards: a rendered piece and what that agent does for you. */
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1000px) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .team {
    grid-template-columns: 1fr;
  }
}
.member {
  background: var(--canvas);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: start;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.member:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--card-shadow);
}
.member .piece {
  grid-row: span 2;
  width: 64px;
  height: 64px;
}
.member h3 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 700;
}
.member p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.member .says {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--raised);
  font-size: 13.5px;
  color: var(--ink-2);
}
.member .says b {
  color: var(--ink);
  font-weight: 600;
}

/* Feature rows: copy beside a real render of the app. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.feature + .feature {
  margin-top: clamp(64px, 9vw, 112px);
}
.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .feature-copy {
  order: 2;
}
.feature h3 {
  font: 400 clamp(24px, 3vw, 34px) / 1.12 var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}
.feature-copy p {
  color: var(--ink-2);
  margin: 16px 0 0;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  font-size: 15px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--wasabi);
  border-bottom: 2px solid var(--wasabi);
  transform: rotate(-45deg);
}
.shot {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--win-shadow);
  background: var(--canvas);
}
.shot img {
  width: 100%;
  height: auto;
}
@media (max-width: 860px) {
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
  }
  .feature.flip .feature-copy {
    order: 0;
  }
}

/* Sushi World: a poster until the visitor steps inside. */
.world {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--win-shadow);
  aspect-ratio: 16 / 9;
  background: #0b0e0c center / cover no-repeat;
}
.world > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.world iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.world .enter {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 6, 0.82));
  color: #eeece5;
}
.world .enter p {
  margin: 0;
  max-width: 460px;
  font-size: 14px;
  color: rgba(238, 236, 229, 0.78);
}
.world.open .enter {
  display: none;
}
@media (max-width: 720px) {
  .world {
    aspect-ratio: 4 / 5;
  }
}

/* Steps for a server: ordered, delivered, yours. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  background: var(--canvas);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 24px;
}
.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sake-soft);
  color: var(--sake-text);
  font: 600 14px/1 var(--font-code);
  margin-bottom: 14px;
}
.step h3 {
  margin: 0;
  font-size: 18px;
}
.step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.steps + .feature {
  margin-top: clamp(56px, 8vw, 96px);
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ───────── Pricing ───────── */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 28px;
}
.plan.featured {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sake) 60%, transparent), var(--card-shadow);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sake) 7%, var(--canvas)), var(--canvas) 55%);
}
.plan .tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font: 500 11px/1 var(--font-code);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sake-text);
  background: var(--sake-soft);
  padding: 6px 8px;
  border-radius: 999px;
}
.plan h3 {
  margin: 0;
  /* Keeps a long name ("Business cloud office") clear of the tag in the corner. */
  padding-right: 120px;
  font-size: 19px;
  font-weight: 700;
}
.plan .blurb {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  min-height: 3.2em;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 22px 0 4px;
}
.price strong {
  font: 400 44px/1 var(--font-display);
  letter-spacing: -0.02em;
}
.price span {
  color: var(--muted);
  font-size: 14px;
}
.plan .ticks {
  margin: 18px 0 26px;
}
.plan .ticks li {
  font-size: 14.5px;
}
.plan form,
.plan .plan-action {
  margin-top: auto;
}
.fineprint {
  margin-top: 22px;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

/* Downloads */
.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.download {
  background: var(--canvas);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 22px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.download h3 {
  margin: 0;
  font-size: 17px;
}
.download p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
}
@media (max-width: 860px) {
  .downloads {
    grid-template-columns: 1fr;
  }
}

/* Private by design */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 28px;
}
.promise h3 {
  margin: 0;
  font-size: 17px;
}
.promise p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.promise::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--sake);
  margin-bottom: 16px;
}

/* With Sushi on the landing: the four industries beside the one you picked, one screen tall. */
.tales {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.tales-side h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}
.tales-lede {
  margin: 16px 0 28px;
  color: var(--ink-2);
  font-size: 16px;
  text-wrap: pretty;
}
/* Each tab carries a stock photo. On a site of flat colour and sushi, the photos are graded as one set and
   rest dimmed, like prints on a dark wall; the one you pick comes up to full colour beside its card. */
.tales {
  --photo-rest: grayscale(0.8) brightness(0.62) contrast(1.06);
  --photo-hover: grayscale(0.35) brightness(0.86);
}
.tale-tabs {
  display: grid;
  gap: 6px;
}
.tale-tab {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 8px 16px 8px 8px;
  border-radius: 20px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tale-tab:hover {
  background: var(--hover);
}
.tale-tab[aria-selected="true"] {
  background: var(--canvas);
  box-shadow: inset 0 0 0 2px var(--sake), var(--card-shadow);
}
.tale-photo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--raised);
  outline: 1px solid var(--line-strong);
  outline-offset: -1px;
  filter: var(--photo-rest);
  transition: filter 0.4s var(--ease);
}
.tale-tab:hover .tale-photo {
  filter: var(--photo-hover);
}
.tale-tab[aria-selected="true"] .tale-photo {
  filter: none;
}
.tale-tab b {
  display: block;
  font-size: 15.5px;
}
.tale-tab small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
/* Every panel sits in the same cell, so the block keeps the tallest one's height and nothing below jumps. */
.tale-panels {
  display: grid;
}
.tale {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(20px, 3vw, 36px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.tale.on {
  opacity: 1;
  visibility: visible;
}
.tale h3 {
  margin: 26px 0 0;
  font: 400 clamp(24px, 2.4vw, 32px) / 1.1 var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.tale-team {
  margin: 16px 0 28px;
  gap: 8px;
}
.tale-team li {
  font-size: 14.5px;
}
.tale-team b {
  color: var(--ink);
  font-weight: 600;
}
.tale-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: auto;
}
@media (max-width: 960px) {
  .tales {
    grid-template-columns: 1fr;
  }
  .tale-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tale-tab {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }
  .tale-photo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
  /* Stacked, the card fits its own industry; nothing below it is on screen to jump. */
  .tale {
    display: none;
  }
  .tale.on {
    display: flex;
  }
}
/* On a phone the tabs are four small prints, two by two, with the name under each. */
@media (max-width: 560px) {
  .tale-tab {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 6px 6px 10px;
    border-radius: 18px;
  }
  .tale-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .tale-tab b {
    padding-inline: 4px;
    font-size: 14px;
    line-height: 1.3;
  }
  .tale-tab small {
    display: none;
  }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .tales {
    --photo-rest: grayscale(0.85) brightness(1.04) contrast(0.92);
    --photo-hover: grayscale(0.4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tale,
  .tale-tab,
  .tale-photo {
    transition: none;
  }
}

/* Charts: published research, drawn. The point the story is about wears sake; everything else is grey,
   and every value is written on its mark, so nothing depends on telling colours apart. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.chart {
  --quiet: color-mix(in srgb, var(--ink) 22%, transparent);
  margin: 0;
  padding: 18px 20px 14px;
  border-radius: 16px;
  background: var(--raised);
}
.chart figcaption {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}
.chart-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}
.chart-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.chart-plot {
  display: block;
  overflow: visible;
}
.chart-plot text {
  font: 500 12.5px/1 var(--font-ui);
  fill: var(--muted);
  text-anchor: middle;
}
.chart-plot .chart-value {
  font-weight: 600;
  font-size: 13.5px;
  fill: var(--ink-2);
}
.chart-mark rect {
  fill: var(--quiet);
}
.chart-mark.on rect {
  fill: var(--sake);
}
.chart-mark.on .chart-value {
  fill: var(--ink);
}
.chart-axis {
  stroke: var(--line-strong);
  stroke-width: 1;
}
.chart-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 12.5px;
}
.chart-key {
  color: var(--muted);
}
.chart-key i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 3px;
  background: var(--sake);
  vertical-align: -1px;
}
.cite a,
.story-sources a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}
.cite a:hover,
.story-sources a:hover {
  color: var(--sake-text);
  text-decoration-color: currentColor;
}
/* Columns rise when their chart comes into view: on the landing once the section is on
   screen (site.js swaps .wait for .seen), on a page straight away. */
@media (prefers-reduced-motion: no-preference) {
  .tales.wait .chart rect {
    transform: translateY(100%);
  }
  .tales.seen .tale.on .chart rect,
  .story-chart rect {
    animation: chart-rise 0.8s var(--ease) both;
  }
  .tales.wait .chart-value {
    opacity: 0;
  }
  .tales.seen .tale.on .chart-value,
  .story-chart .chart-value {
    animation: chart-fade 0.4s 0.55s var(--ease) both;
  }
  .chart-mark:nth-child(2) rect {
    animation-delay: 0.07s;
  }
  .chart-mark:nth-child(3) rect {
    animation-delay: 0.14s;
  }
  .chart-mark:nth-child(4) rect {
    animation-delay: 0.21s;
  }
  .chart-mark:nth-child(5) rect {
    animation-delay: 0.28s;
  }
}
@keyframes chart-rise {
  from {
    transform: translateY(100%);
  }
}
@keyframes chart-fade {
  from {
    opacity: 0;
  }
}
@media (max-width: 560px) {
  .chart {
    padding: 16px 14px 12px;
  }
  .chart-plot text {
    font-size: 11.5px;
  }
  .chart-plot .chart-value {
    font-size: 12.5px;
  }
}

/* An industry's own page: the research, the team, a week with it, what others have seen, then the rest. */
.story-page {
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 10vw, 112px);
}
.story-crumbs {
  display: flex;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
  font: 500 12px/1.4 var(--font-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.story-crumbs a {
  color: var(--sake-text);
  text-decoration: none;
}
.story-crumbs a:hover {
  text-decoration: underline;
}
.story-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--sake-soft);
  color: var(--sake-text);
  font: 500 11.5px/1 var(--font-code);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.story-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.story-head h1 {
  margin: 0;
  font: 400 clamp(34px, 4.4vw, 58px) / 1.04 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.story-dek {
  margin: 22px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
  text-wrap: pretty;
}
.story-chart .chart {
  padding: 22px 24px 16px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow);
}
.story-body {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--page-line);
}
.story-facts {
  align-self: start;
  position: sticky;
  top: 96px;
}
.story-facts h2,
.story-text h2 {
  font: 500 12px/1.4 var(--font-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sake-text);
  margin: 0 0 12px;
}
.story-hired {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.story-hired li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
}
.story-hired .piece {
  width: 40px;
  height: 40px;
}
.story-hired b {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
}
.story-hired b + span {
  display: block;
}
.story-hired b + span::first-letter {
  text-transform: uppercase;
}
.story-text {
  max-width: 760px;
}
.story-text > p {
  margin: 0 0 28px;
  color: var(--ink-2);
  font-size: 17px;
  text-wrap: pretty;
}
.story-text > .story-sources {
  margin: -16px 0 24px;
  color: var(--dim);
  font-size: 13px;
}
.story-text > .story-aside {
  margin: -8px 0 40px;
  color: var(--muted);
  font-size: 14.5px;
}
.story-text > h2 + .story-aside {
  margin: -2px 0 18px;
}
.story-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.story-result {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 18px;
}
.story-result strong {
  display: block;
  font: 400 clamp(28px, 3vw, 38px) / 1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--sake);
}
.story-result > span:not(.cite) {
  display: block;
  margin: 10px 0 12px;
  font-size: 14px;
  line-height: 1.45;
}
.story-result .cite,
.story-case .cite {
  margin-top: auto;
  color: var(--dim);
  font-size: 12px;
}
.story-day {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-left: 2px solid var(--line-strong);
}
.story-day li {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 8px 0 8px 20px;
  font-size: 15px;
  color: var(--ink-2);
}
.story-day li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sake);
  box-shadow: 0 0 0 4px var(--page);
}
.story-day time {
  font: 500 13px/1.8 var(--font-code);
  color: var(--muted);
}
.story-day b {
  color: var(--ink);
}
.story-seen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.story-case {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 16px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  line-height: 1.5;
}
.story-case b {
  font-size: 15.5px;
}
.story-case small {
  color: var(--dim);
  font-size: 12.5px;
}
.story-case p {
  margin: 10px 0 0;
  color: var(--ink-2);
}
.story-case .story-case-result {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 600;
}
.story-worry {
  border-radius: 16px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 20px 22px;
  margin-bottom: 32px;
}
.story-worry h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
}
.story-worry p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}
.story-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.story-next {
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
}
.story-next b {
  color: var(--ink);
  font-weight: 600;
}
.story-next:hover b {
  color: var(--sake-text);
}
.story-next::after {
  content: " →";
  color: var(--sake-text);
}
.story-more {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--page-line);
}
.story-more > h2 {
  margin: 0 0 24px;
  font: 400 clamp(26px, 3vw, 36px) / 1.1 var(--font-display);
}
.story-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.corner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 26px);
  border-radius: var(--radius);
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.corner:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--card-shadow);
}
.corner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.corner .tale-photo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}
.corner h3 {
  margin: 0;
  font: 400 clamp(19px, 1.8vw, 22px) / 1.18 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.corner-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.corner-read {
  color: var(--sake-text);
  font-weight: 600;
}
.corner-read::after {
  content: " →";
}
@media (max-width: 960px) {
  .story-head,
  .story-body {
    grid-template-columns: 1fr;
  }
  .story-facts {
    position: static;
  }
  .story-seen,
  .story-more-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .story-results {
    grid-template-columns: 1fr;
  }
  .story-day li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .corner,
  .corner:hover {
    transition: none;
    transform: none;
  }
}

/* FAQ */
.faq {
  max-width: 820px;
  margin-inline: auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font: 400 24px/1 var(--font-ui);
  color: var(--dim);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 18px;
  color: var(--ink-2);
  max-width: 680px;
}
@media (min-width: 960px) {
  .faq {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 104px);
    align-items: start;
  }
  .faq .section-head {
    position: sticky;
    top: 112px;
    margin-bottom: 0;
  }
}

/* "Ask anything else": one more line our AI fills in. Asked rows join the list above it. */
.ask-line {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
  transition: border-color 0.2s var(--ease);
}
.ask-line[hidden] {
  display: none;
}
.ask-line:focus-within {
  border-bottom-color: var(--line-strong);
}
.ask-line input {
  flex: 1;
  min-width: 0;
  appearance: none;
  background: none;
  border: 0;
  outline: 0;
  padding: 18px 0;
  color: var(--ink);
  font: 600 17px/1.4 var(--font-ui);
}
.ask-line input::placeholder {
  color: var(--dim);
  font-weight: 500;
  opacity: 1;
}
.ask-line button {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: -4px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.ask-line button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ask-line input:not(:placeholder-shown) + button {
  background: var(--sake);
  color: var(--on-sake);
}
.ask-line button:hover {
  color: var(--ink);
}
.ask-line input:not(:placeholder-shown) + button:hover {
  background: var(--sake-hover);
  color: var(--on-sake);
}
.ask-line button:active {
  transform: translateX(2px);
}
.ask-line button[disabled] {
  cursor: progress;
  opacity: 0.55;
}
.ask-note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 13px;
}
.ask-note a {
  color: var(--muted);
}
.faq details.asked {
  animation: ask-in 0.45s var(--ease) both;
}
.answer {
  padding-bottom: 6px;
}
.answer p {
  margin: 0 0 12px;
  color: var(--ink-2);
  max-width: 680px;
  overflow-wrap: anywhere;
}
.answer a {
  color: var(--sake-text);
}
.answer:empty::before {
  content: "";
  display: block;
  width: 36px;
  height: 18px;
  margin: 0 0 18px;
  background: radial-gradient(circle, var(--muted) 3px, transparent 3.5px) 0 50% / 12px 12px repeat-x;
  opacity: 0.7;
  animation: ask-wait 1.2s steps(3, jump-none) infinite;
}
.answer[aria-busy="true"] p:last-child::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  border-radius: 2px;
  background: var(--sake);
  animation: ask-caret 1s steps(2, start) infinite;
}
.answer .cut {
  color: var(--dim);
  font-size: 14px;
}
.ask-done {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  animation: ask-in 0.45s var(--ease) both;
}
.ask-done p {
  margin: 0;
  color: var(--ink-2);
}
.ask-done b {
  color: var(--ink);
}
.ask-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
@keyframes ask-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes ask-wait {
  from {
    width: 12px;
  }
  to {
    width: 36px;
  }
}
@keyframes ask-caret {
  to {
    visibility: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq details.asked,
  .ask-done,
  .answer:empty::before,
  .answer[aria-busy="true"] p:last-child::after {
    animation: none;
  }
}


/* Closing call */
.closing {
  text-align: center;
  padding: clamp(72px, 10vw, 128px) 0;
}
.closing h2 {
  font: 400 clamp(32px, 5vw, 60px) / 1.04 var(--font-display);
  margin: 0;
  text-wrap: balance;
}
.closing p {
  color: var(--ink-2);
  margin: 18px auto 0;
  max-width: 560px;
}

/* Footer */
.foot {
  border-top: 1px solid var(--page-line);
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
  color: var(--dim);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}

/* ───────── Forms: sign in, create account ───────── */
.auth {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 0 72px;
}
.auth-card {
  width: min(100%, 440px);
  background: var(--canvas);
  border-radius: 24px;
  box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line);
  padding: clamp(24px, 5vw, 40px);
}
.auth-card .piece {
  width: 72px;
  height: 72px;
  margin: -6px auto 10px;
}
.auth-card h1 {
  font: 400 30px/1.1 var(--font-display);
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
}
.auth-card .sub {
  text-align: center;
  color: var(--muted);
  margin: 10px 0 26px;
  font-size: 15px;
}
.auth-switch {
  text-align: center;
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--sake-text);
}
.fields {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 6px;
}
.field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: 400 15px/1.4 var(--font-ui);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--sake) 70%, transparent);
  box-shadow: 0 0 0 4px var(--sake-soft);
}
.field .hint {
  font-size: 12.5px;
  color: var(--dim);
}
.field .error {
  font-size: 13px;
  color: var(--maguro-text);
}
.notice,
.alert {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 16px;
}
.notice {
  background: var(--wasabi-soft);
  color: var(--wasabi-text);
}
.alert {
  background: var(--maguro-soft);
  color: var(--maguro-text);
}
.warn {
  background: var(--tamago-soft);
  color: var(--tamago-text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 16px;
}

/* ───────── Portal (Manage) ───────── */
.portal {
  padding: clamp(28px, 5vw, 56px) 0 96px;
}
.portal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.portal-head h1 {
  font: 400 clamp(28px, 4vw, 40px) / 1.05 var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}
.portal-head p {
  margin: 8px 0 0;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  font-size: 14.5px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs a:hover {
  color: var(--ink);
}
.tabs a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--sake);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.panel {
  background: var(--canvas);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(18px, 3vw, 26px);
  min-width: 0;
}
.panel + .panel {
  margin-top: 16px;
}
.grid-2 > .panel + .panel {
  margin-top: 0;
}
.grid-2 + .panel,
.panel + .grid-2 {
  margin-top: 16px;
}
.panel h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.panel .panel-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.big-figure {
  font: 400 40px/1 var(--font-display);
  letter-spacing: -0.02em;
  margin: 10px 0 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 12px/1 var(--font-ui);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.ok {
  background: var(--wasabi-soft);
  color: var(--wasabi-text);
}
.pill.wait {
  background: var(--tamago-soft);
  color: var(--tamago-text);
}
.pill.bad {
  background: var(--maguro-soft);
  color: var(--maguro-text);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.actions form {
  margin: 0;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rows > li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.rows > li:first-child {
  border-top: 0;
}
.rows .grow {
  flex: 1;
  min-width: 0;
}
.rows .title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rows .meta {
  font-size: 13px;
  color: var(--muted);
}
.rows form {
  margin: 0;
}
.empty {
  color: var(--muted);
  font-size: 14.5px;
  padding: 8px 0;
  margin: 0;
}
.server-plate {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 50% 42%, var(--raised) 0 52%, var(--pressed) 53% 100%);
  display: grid;
  place-items: center;
  font: 600 13px/1 var(--font-code);
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
table.list {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.list th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 12.5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.list td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.list td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.code-box {
  font: 500 15px/1.5 var(--font-code);
  background: var(--raised);
  border-radius: 12px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  user-select: all;
}
.choice {
  display: grid;
  gap: 10px;
}
.choice label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  background: var(--surface);
}
.choice label:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--sake);
  background: color-mix(in srgb, var(--sake) 5%, var(--surface));
}
.choice input {
  margin-top: 4px;
  accent-color: var(--sake);
}
.choice .grow {
  flex: 1;
}
.choice .price-tag {
  font-weight: 700;
  white-space: nowrap;
}
.continue {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

/* Baked stills from the app's pieces engine: one 128px frame per mood (scripts/render-sushi-art.ts). */
.still-sake,
.still-tamago,
.still-maguro,
.still-kappa,
.still-ebi,
.still-uni,
.still-ikura,
.still-inari,
.still-saba,
.still-california {
  background-size: 700% 100%;
  background-repeat: no-repeat;
}
.still-sake {
  background-image: url("/assets/pieces/sake.webp");
}
.still-tamago {
  background-image: url("/assets/pieces/tamago.webp");
}
.still-maguro {
  background-image: url("/assets/pieces/maguro.webp");
}
.still-kappa {
  background-image: url("/assets/pieces/kappa.webp");
}
.still-ebi {
  background-image: url("/assets/pieces/ebi.webp");
}
.still-uni {
  background-image: url("/assets/pieces/uni.webp");
}
.still-ikura {
  background-image: url("/assets/pieces/ikura.webp");
}
.still-inari {
  background-image: url("/assets/pieces/inari.webp");
}
.still-saba {
  background-image: url("/assets/pieces/saba.webp");
}
.still-california {
  background-image: url("/assets/pieces/california.webp");
}
.mood-idle {
  background-position: 0.0% 0;
}
.mood-waiting {
  background-position: 16.6667% 0;
}
.mood-responded {
  background-position: 33.3333% 0;
}
.mood-failed {
  background-position: 50.0% 0;
}
.mood-connecting {
  background-position: 66.6667% 0;
}
.mood-asleep {
  background-position: 83.3333% 0;
}
.mood-working {
  background-position: 100.0% 0;
}
table.list a,
.rows .title a {
  color: var(--ink);
  text-decoration: none;
}
table.list a:hover,
.rows .title a:hover {
  color: var(--sake-text);
}
table.list td a {
  color: var(--sake-text);
}
details.confirm > summary {
  list-style: none;
}
details.confirm > summary::-webkit-details-marker {
  display: none;
}
details.confirm[open] > summary {
  display: none;
}
.member h3 .role {
  display: block;
  font: 500 12px/1.4 var(--font-code);
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-top: 2px;
}

/* "See if Sushi fits" (SF-25): a call or a note, side by side. */
.talk {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
  align-items: stretch;
}
.talk-card {
  position: relative;
  background: var(--canvas);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(22px, 3.4vw, 34px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.talk-call {
  background: linear-gradient(180deg, color-mix(in srgb, var(--sake) 7%, var(--canvas)), var(--canvas) 60%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sake) 45%, transparent), var(--card-shadow);
}
.talk-call .piece {
  width: 72px;
  height: 72px;
  margin: -6px 0 6px -6px;
}
.talk-card h3 {
  font: 400 clamp(22px, 2.4vw, 28px) / 1.15 var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}
.talk-card > p {
  color: var(--ink-2);
  margin: 10px 0 0;
}
.talk-call .ticks {
  margin: 20px 0 28px;
}
.talk-call .btn {
  margin-top: auto;
  align-self: flex-start;
}
.talk-note form {
  margin-top: 20px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.chips {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0;
  margin-bottom: 8px;
}
.chips label {
  position: relative;
  cursor: pointer;
}
.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.chips input:checked + span {
  box-shadow: inset 0 0 0 2px var(--sake);
  background: color-mix(in srgb, var(--sake) 8%, var(--surface));
  color: var(--ink);
}
.chips input:focus-visible + span {
  outline: 2px solid var(--sake);
  outline-offset: 3px;
}
.talk-note .btn {
  align-self: flex-start;
}
.talk-sent {
  margin: auto 0;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 0;
}
.talk-sent .piece {
  width: 80px;
  height: 80px;
}
.talk-sent p {
  color: var(--ink-2);
  margin: 0;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .talk {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.talk-note .fields > .btn {
  justify-self: start;
  min-width: 180px;
}
@media (max-width: 560px) {
  .talk-note .fields > .btn {
    justify-self: stretch;
  }
}

/* Sushi Mobile (SF-34): real app screens in a phone body drawn here, three fanned. */
.phones {
  position: relative;
  height: clamp(420px, 46vw, 600px);
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  margin: 0;
  position: absolute;
  aspect-ratio: 9 / 20;
  height: 100%;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a302c, #0b0d0c 40%, #161a17);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 26%;
  height: 22px;
  translate: -50% 0;
  border-radius: 999px;
  background: #050605;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 38px;
  background: #0f1311;
}
.phone-front {
  z-index: 2;
}
.phone-back {
  height: 86%;
  opacity: 0.92;
  filter: saturate(0.9);
}
.phone-left {
  translate: -58% 4%;
  rotate: -5deg;
}
.phone-right {
  translate: 58% 4%;
  rotate: 5deg;
}
@media (max-width: 860px) {
  .phones {
    height: 520px;
  }
}
@media (max-width: 520px) {
  .phones {
    height: 440px;
    overflow: clip;
  }
  .phone-left {
    translate: -38% 6%;
  }
  .phone-right {
    translate: 38% 6%;
  }
}

/* ───────── Always on (SF-35 story; the pricing slot while plans are hidden, D-108) ─────────
   The night is the hero's belt: each job a plate with its agent's piece, where it happened.
   You are the ink line above it; the playhead is sake; a plate that's done gets wasabi. */
.section.always {
  padding-block: clamp(56px, 7vw, 92px);
}
.always-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px clamp(28px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(24px, 3.2vw, 36px);
}
.always-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
}
.always-side > p {
  font-size: clamp(15px, 1.35vw, 17px);
  color: var(--ink-2);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.night-stats {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  margin: 0;
}
.night-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  min-width: 0;
}
.night-stats dd {
  margin: 0;
  font: 400 clamp(26px, 2.6vw, 34px) / 1 var(--font-display);
  color: var(--ink);
}
.night-stats div:last-child dd {
  color: var(--wasabi-text);
}
.night-stats dt {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
  max-width: 15ch;
}
.night {
  margin: 0;
  background: var(--canvas);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow);
  padding: clamp(16px, 2.2vw, 26px) clamp(16px, 2.4vw, 28px) clamp(14px, 1.8vw, 20px);
}
.night-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.night-title {
  font-weight: 700;
  font-size: 15px;
}
.night-title span {
  font: 500 12px var(--font-code);
  color: var(--dim);
  margin-left: 8px;
}
.night-key {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.night-key span::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
}
.key-you::before {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink-2);
}
.key-agents::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wasabi);
  box-shadow: 0 0 0 3px var(--wasabi-soft);
}

/* The track: a 52px gutter for the lane names, then the night. site.js puts everything with data-at in place. */
.night-track {
  --gutter-left: 52px;
  position: relative;
  padding-left: var(--gutter-left);
}
.night-you {
  position: relative;
  height: 26px;
}
.lane {
  position: absolute;
  left: calc(-1 * var(--gutter-left));
  top: 50%;
  transform: translateY(-50%);
  font: 500 11px var(--font-code);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.you-on,
.you-off {
  position: absolute;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  left: calc(var(--at, 0) * 100%);
  width: calc((var(--to, 0) - var(--at, 0)) * 100%);
}
.you-on {
  background: var(--ink-2);
  border-radius: 2px;
}
.you-off {
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 9px);
}
.you-off span {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  font: 500 11px var(--font-code);
  color: var(--dim);
  white-space: nowrap;
}
.night-belt {
  position: relative;
  list-style: none;
  margin: 6px 0 0;
  padding: 0 34px;
  height: 84px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 44px),
    var(--belt);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    inset 0 10px 20px -12px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.night.playing .night-belt {
  animation: night-belt 1.2s linear infinite;
}
@keyframes night-belt {
  to {
    background-position: -44px 0, 0 0;
  }
}
.night-track.placed .night-belt li {
  position: absolute;
  top: 50%;
  left: calc(34px + var(--at, 0) * (100% - 68px));
  transform: translate(-50%, -50%);
}
.night-plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 50% 42%, #22291f 0 54%, #151a16 55% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    0 8px 14px -8px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), box-shadow 0.2s;
}
.night-plate .still {
  position: static;
  width: 48px;
  height: 48px;
}
.night-plate::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wasabi);
  box-shadow: 0 0 0 3px var(--belt);
  transform: scale(0);
  transition: transform 0.3s var(--ease) 0.15s;
}
.night-plate.on::after,
.night:not(.playing) .night-plate::after {
  transform: scale(1);
}
.night.playing .night-plate:not(.on) {
  opacity: 0.28;
  transform: scale(0.82);
}
.night-plate:hover,
.night-plate:focus-visible,
.night-plate.said {
  box-shadow:
    inset 0 0 0 2px rgba(255, 122, 90, 0.75),
    0 10px 18px -8px rgba(0, 0, 0, 0.85);
}
.night-plate:focus-visible {
  outline: 2px solid var(--sake);
  outline-offset: 3px;
}
.night-ticks {
  position: relative;
  height: 22px;
  margin: 0 34px;
  display: none;
}
.night-track.placed .night-ticks {
  display: block;
}
.night-ticks span {
  position: absolute;
  top: 6px;
  left: calc(var(--at, 0) * 100%);
  transform: translateX(-50%);
  font: 500 11px var(--font-code);
  color: var(--dim);
  white-space: nowrap;
}
.night-head {
  position: absolute;
  top: 0;
  bottom: 22px;
  left: calc(var(--gutter-left) + 34px + var(--at, 0) * (100% - var(--gutter-left) - 68px));
  width: 2px;
  margin-left: -1px;
  background: var(--sake);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 122, 90, 0.55);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.night.playing .night-head {
  opacity: 1;
}
.night-clock {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -4px);
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sake);
  color: var(--on-sake);
  font: 600 11px var(--font-code);
  white-space: nowrap;
}
.night-now {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 24px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.night-now time {
  font: 500 12px var(--font-code);
  color: var(--dim);
  flex: none;
  min-width: 62px;
}
.night-now b {
  color: var(--ink);
  flex: none;
}
.night-now span {
  min-width: 0;
}
.always-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-top: 20px;
}
.always-foot .fineprint {
  margin: 0;
  text-align: left;
  max-width: 52ch;
}
.always-foot .hero-cta {
  margin: 0;
  flex: none;
}
@media (max-width: 900px) {
  .always-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .always-foot {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}
/* On a phone the plates ride in two rows, so neighbours at 5:30 and 6:30 am never cover each other. */
@media (max-width: 640px) {
  .night-track {
    --gutter-left: 0px;
  }
  .lane {
    left: 0;
    top: -6px;
    transform: none;
  }
  .night-you {
    margin-top: 12px;
  }
  .night-belt {
    height: 104px;
    padding: 0 22px;
  }
  .night-track.placed .night-belt li {
    left: calc(22px + var(--at, 0) * (100% - 44px));
  }
  .night-track.placed .night-belt li:nth-child(odd) {
    top: 30%;
  }
  .night-track.placed .night-belt li:nth-child(even) {
    top: 70%;
  }
  .night-plate {
    width: 42px;
    height: 42px;
  }
  .night-plate .still {
    width: 33px;
    height: 33px;
  }
  .night-ticks {
    margin: 0 22px;
  }
  .night-ticks span:nth-child(even) {
    display: none;
  }
  .night-head {
    left: calc(22px + var(--at, 0) * (100% - 44px));
  }
  .night-stats dt {
    font-size: 11.5px;
  }
  .night-now {
    flex-wrap: wrap;
    gap: 2px 10px;
  }
  .night-now span {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .night.playing .night-belt {
    animation: none;
  }
}

/* MO-111: the privacy policy and the terms (views-legal.ts). One readable column. */
.legal-page {
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 10vw, 112px);
}
.legal {
  max-width: 720px;
}
.legal h1 {
  margin: 0;
  font: 400 clamp(32px, 4vw, 50px) / 1.06 var(--font-display);
  letter-spacing: -0.02em;
}
.legal-updated {
  margin: 14px 0 0;
  font: 500 12px/1.4 var(--font-code);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.legal-lead {
  margin: 20px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
  text-wrap: pretty;
}
.legal section {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--page-line);
}
.legal h2 {
  margin: 0 0 12px;
  font: 500 12px/1.4 var(--font-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sake-text);
}
.legal p,
.legal li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}
.legal p {
  margin: 0 0 14px;
}
.legal ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
  list-style: disc;
}
.legal li + li {
  margin-top: 8px;
}
.legal strong {
  color: var(--ink);
}
.legal a {
  color: var(--sake-text);
}
.legal-other {
  margin-top: clamp(28px, 4vw, 40px);
}
