/* ==========================================================================
   SHINOBU — LANDING DOSSIER
   Paper. Ink. Blood. Nothing that lingers.
   ========================================================================== */

/* ---------- FONTS ---------- */

@font-face {
  font-family: 'Archivo Black';
  src: url('assets/fonts/ArchivoBlack-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/SpaceGrotesk-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/JetBrainsMono-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Shippori Mincho';
  src: url('assets/fonts/ShipporiMincho-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Shippori Mincho';
  src: url('assets/fonts/ShipporiMincho-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- TOKENS ---------- */

:root {
  --paper: #EBE3D3;
  --paper-lift: #F3ECDC;
  --paper-deep: #DED2BC;
  --ink: #0A0A0A;
  --ink-soft: #121212;
  --ink-lift: #1A1A18;
  --red: #C1121F;
  --red-bright: #E5232F;
  --red-deep: #8E0C16;

  --muted: rgba(10, 10, 10, 0.62);
  --muted-soft: rgba(10, 10, 10, 0.45);
  --line: rgba(10, 10, 10, 0.16);
  --line-strong: rgba(10, 10, 10, 0.3);

  --paper-muted: rgba(235, 227, 211, 0.62);
  --paper-soft: rgba(235, 227, 211, 0.4);
  --line-paper: rgba(235, 227, 211, 0.16);

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-jp: 'Shippori Mincho', 'Yu Mincho', serif;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET / BASE ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

main {
  display: block;
}

h1, h2, h3, h4, p, blockquote, figure {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img, svg {
  display: block;
  max-width: 100%;
}

textarea, input {
  font: inherit;
}

::selection {
  background: var(--red);
  color: var(--paper-lift);
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

/* ---------- UTILITIES ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.red {
  color: var(--red-bright);
}

.period {
  color: var(--red-bright);
}

.mini-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(235, 227, 211, 0.62);
}

.eyebrow-brand {
  font-weight: 700;
  color: var(--paper);
}

.eyebrow-tail {
  color: rgba(235, 227, 211, 0.62);
}

.section {
  position: relative;
  padding: clamp(76px, 9vw, 142px) 0;
}

.section-paper {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.32), transparent 42%),
    radial-gradient(circle at 88% 96%, rgba(10, 10, 10, 0.035), transparent 55%);
  color: var(--ink);
}

.section-dark {
  background-color: var(--ink);
  background-image: radial-gradient(ellipse at 82% 0%, rgba(193, 18, 31, 0.08), transparent 58%);
  color: var(--paper);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(38px, 5vw, 68px);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-soft);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-head.light .section-label {
  color: rgba(235, 227, 211, 0.48);
}

.section-head.light .section-line {
  background: var(--line-paper);
}

/* reveal-on-scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* grain */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* scroll progress */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1200;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* skip link */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--paper-lift);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- BUTTONS / LINKS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper-lift);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.section-dark .btn-primary:hover,
.origin .btn-primary:hover,
.final-cta .btn-primary:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(235, 227, 211, 0.32);
  color: var(--paper);
}

.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn-nav {
  padding: 11px 16px;
  font-size: 9px;
  letter-spacing: 0.14em;
  border-color: rgba(235, 227, 211, 0.34);
  color: var(--paper);
}

.btn-nav:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper-lift);
}

.btn-large {
  padding: 17px 28px;
  font-size: 10px;
}

.btn-huge {
  padding: 23px 46px;
  font-size: 11px;
  letter-spacing: 0.18em;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.btn-huge:hover {
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--red);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.25s ease, gap 0.25s var(--ease);
}

.text-link:hover {
  color: var(--red);
  gap: 16px;
}

/* ---------- HEADER ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: linear-gradient(to bottom, rgba(6, 6, 6, 0.6), rgba(6, 6, 6, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(7, 7, 7, 0.9);
  border-bottom-color: rgba(235, 227, 211, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}

.header-inner {
  max-width: 1480px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.5vw, 44px);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.035em;
  line-height: 1;
  color: var(--paper);
  flex: none;
}

.wordmark-dot {
  color: var(--red-bright);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 30px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.17em;
  color: rgba(235, 227, 211, 0.58);
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="true"] {
  color: var(--paper);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(235, 227, 211, 0.28);
  flex: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 0 auto;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* mobile menu */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 28px) clamp(24px, 7vw, 60px) 36px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(193, 18, 31, 0.16), transparent 55%),
    #080808;
  overflow-y: auto;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  width: 100%;
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(235, 227, 211, 0.12);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.6vw, 1.7rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--paper);
  opacity: 0;
  transform: translateY(14px);
}

.mobile-menu:not([hidden]) nav a {
  animation: menuIn 0.5s var(--ease) forwards;
}

.mobile-menu:not([hidden]) nav a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu:not([hidden]) nav a:nth-child(2) { animation-delay: 0.09s; }
.mobile-menu:not([hidden]) nav a:nth-child(3) { animation-delay: 0.13s; }
.mobile-menu:not([hidden]) nav a:nth-child(4) { animation-delay: 0.17s; }
.mobile-menu:not([hidden]) nav a:nth-child(5) { animation-delay: 0.21s; }
.mobile-menu:not([hidden]) nav a:nth-child(6) { animation-delay: 0.25s; }
.mobile-menu:not([hidden]) nav a:nth-child(7) { animation-delay: 0.29s; }
.mobile-menu:not([hidden]) nav a:nth-child(8) { animation-delay: 0.33s; }
.mobile-menu:not([hidden]) nav a:nth-child(9) { animation-delay: 0.37s; }

@keyframes menuIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.mobile-menu nav a.mobile-menu-cta {
  justify-content: center;
  margin-top: 24px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--paper-lift);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 18px;
}

.mobile-menu-foot {
  margin-top: 34px;
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: rgba(235, 227, 211, 0.32);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  background: #060606;
  color: var(--paper);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/bg-desktop.jpg');
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.92) contrast(1.03);
  transform: scale(1.03);
  animation: heroDrift 30s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroDrift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.86) 40%, rgba(5, 5, 5, 0.46) 72%, rgba(5, 5, 5, 0.66) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.8) 0%, rgba(5, 5, 5, 0.08) 32%, rgba(5, 5, 5, 0.82) 100%);
}

.hero-ghost {
  position: absolute;
  top: 12%;
  right: -1vw;
  z-index: 1;
  font-family: var(--font-jp);
  font-size: clamp(260px, 40vw, 620px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(235, 227, 211, 0.07);
  pointer-events: none;
  user-select: none;
}

.hero-vertical {
  position: absolute;
  top: 19%;
  right: clamp(12px, 3vw, 46px);
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--font-jp);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: rgba(235, 227, 211, 0.4);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding-top: clamp(24px, 4vh, 54px);
  padding-bottom: clamp(32px, 5vh, 64px);
}

.hero-copy {
  max-width: 760px;
}

.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--red-bright);
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--red-bright);
  border-radius: 50%;
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.8; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

.hero h1 {
  margin: 22px 0 28px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.2vw, 6rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero h1 > span {
  display: block;
}

.hero h1 .period {
  display: inline;
}

.hero-sub {
  max-width: 56ch;
  color: rgba(235, 227, 211, 0.7);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(235, 227, 211, 0.48);
}

.hero-meta span + span {
  padding-left: 16px;
  border-left: 1px solid rgba(235, 227, 211, 0.18);
}

/* sealed dispatch card */

.hero-card-wrap {
  justify-self: end;
  width: 100%;
  max-width: 430px;
}

.sealed-card {
  position: relative;
  padding: 30px 30px 26px;
  background-color: var(--paper-lift);
  background-image:
    repeating-linear-gradient(0deg, rgba(10, 10, 10, 0.022) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.6), transparent 60%);
  color: var(--ink);
  transform: rotate(-1.2deg);
  box-shadow:
    0 44px 90px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(10, 10, 10, 0.2);
  animation: cardFloat 8s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50% { transform: rotate(-0.4deg) translateY(-8px); }
}

.sealed-ribbon {
  position: absolute;
  top: -14px;
  left: 24px;
  z-index: 2;
  padding: 9px 16px;
  background: var(--red);
  color: var(--paper-lift);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(10, 10, 10, 0.5);
}

.card-label {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--red);
}

.room-code {
  display: block;
  width: 100%;
  margin: 4px 0 2px;
  padding: 4px 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  color: var(--ink);
  transition: color 0.25s ease;
}

.room-code:hover {
  color: var(--red);
}

.card-key {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(10, 10, 10, 0.5);
}

.key-dots {
  letter-spacing: 0.1em;
  color: rgba(10, 10, 10, 0.72);
}

.card-rule {
  height: 1px;
  margin: 20px 0 14px;
  background: rgba(10, 10, 10, 0.18);
}

.card-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(10, 10, 10, 0.62);
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  animation: statusPulse 1.8s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.card-cipher {
  max-width: 64%;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(10, 10, 10, 0.24);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(10, 10, 10, 0.34);
  word-break: break-all;
}

.stamp {
  position: absolute;
  right: 22px;
  bottom: 20px;
  padding: 7px 9px;
  border: 2px solid rgba(193, 18, 31, 0.48);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-align: center;
  color: rgba(193, 18, 31, 0.66);
  transform: rotate(-7deg);
}

.card-caption {
  margin-top: 18px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: rgba(235, 227, 211, 0.34);
}

/* hero bottom */

.hero-bottom {
  position: relative;
  z-index: 3;
  margin-top: auto;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(235, 227, 211, 0.12);
  padding: 11px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: rgba(235, 227, 211, 0.32);
  white-space: nowrap;
}

.marquee-track .sep {
  color: var(--red-bright);
  letter-spacing: 0;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.scroll-cue {
  position: absolute;
  right: 4vw;
  bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.26em;
  color: rgba(235, 227, 211, 0.35);
}

.scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(235, 227, 211, 0.35), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0% { transform: scaleY(0.2); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- TICKER ---------- */

.ticker {
  overflow: hidden;
  padding: 13px 0;
  background: var(--red);
  color: #140707;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 44s linear infinite;
}

.ticker-track span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.ticker-track b {
  margin: 0 24px;
  font-size: 9px;
  font-weight: 400;
  opacity: 0.55;
}

/* ---------- PREMISE ---------- */

.premise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.premise-copy .display {
  margin-bottom: 30px;
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
}

.lead {
  max-width: 48ch;
  margin-bottom: 20px;
  font-size: clamp(1.12rem, 1.65vw, 1.4rem);
  line-height: 1.58;
  color: var(--ink);
}

.lead em {
  font-family: var(--font-jp);
  font-style: normal;
  color: var(--red);
}

.premise-copy p:not(.lead) {
  max-width: 56ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.principles {
  border-top: 1px solid var(--line-strong);
}

.principle {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.principle-num {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--red);
}

.principle h3 {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.principle p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.pull-quote {
  position: relative;
  margin-top: clamp(60px, 8vw, 100px);
  padding: clamp(38px, 5vw, 58px) 30px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-align: center;
  text-transform: uppercase;
}

.quote-mark {
  position: absolute;
  top: 8px;
  left: 6px;
  font-family: var(--font-jp);
  font-size: clamp(70px, 9vw, 120px);
  line-height: 1;
  color: rgba(193, 18, 31, 0.14);
  pointer-events: none;
}

.pull-quote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--muted-soft);
}

/* ---------- DEMO ---------- */

.demo-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: end;
  gap: clamp(28px, 5vw, 70px);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.demo-head .display {
  font-size: clamp(2.4rem, 4.8vw, 4.7rem);
}

.demo-head p {
  max-width: 48ch;
  padding-bottom: 6px;
  color: var(--paper-muted);
  font-size: 14.5px;
  line-height: 1.78;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: stretch;
}

.demo-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(235, 227, 211, 0.16);
  background: #0D0D0D;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.demo-panel:focus-within {
  border-color: rgba(229, 35, 47, 0.65);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.09);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(235, 227, 211, 0.12);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(235, 227, 211, 0.44);
}

.panel-tag {
  padding: 3px 7px;
  border: 1px solid rgba(235, 227, 211, 0.22);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.red-tag {
  border-color: rgba(229, 35, 47, 0.5);
  color: var(--red-bright);
}

#demo-input {
  flex: 1;
  width: 100%;
  min-height: 168px;
  padding: 22px;
  border: 0;
  background: transparent;
  color: var(--paper-lift);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.72;
  resize: vertical;
  outline: none;
}

#demo-input::placeholder {
  color: rgba(235, 227, 211, 0.26);
}

.cipher-panel {
  background:
    repeating-linear-gradient(0deg, rgba(235, 227, 211, 0.018) 0 1px, transparent 1px 4px),
    #0B0B0B;
}

.cipher-output {
  flex: 1;
  min-height: 168px;
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: rgba(235, 227, 211, 0.76);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.cipher-output.burnt {
  color: var(--red-bright);
  letter-spacing: 0.16em;
}

.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  border-top: 1px solid rgba(235, 227, 211, 0.12);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(235, 227, 211, 0.34);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-dot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  animation: statusPulse 1.8s ease-in-out infinite;
}

.demo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--red-bright);
}

.demo-payload-wrap {
  margin-top: 20px;
  border: 1px solid rgba(235, 227, 211, 0.14);
  background: #0A0A0A;
}

.payload-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(235, 227, 211, 0.1);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(235, 227, 211, 0.42);
}

.payload-badge {
  padding: 3px 7px;
  border: 1px solid rgba(229, 35, 47, 0.45);
  color: var(--red-bright);
  font-size: 7px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.demo-payload {
  max-height: 280px;
  margin: 0;
  padding: 20px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.75;
  color: rgba(235, 227, 211, 0.68);
  scrollbar-width: thin;
  scrollbar-color: rgba(235, 227, 211, 0.2) transparent;
}

.demo-payload code {
  font: inherit;
}

.demo-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
}

.demo-note {
  max-width: 52ch;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.9;
  letter-spacing: 0.14em;
  color: rgba(235, 227, 211, 0.38);
}

/* ---------- PROTOCOL ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(36px, 5vw, 56px);
}

.step {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
}

.step h3 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.step p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}

.step-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.server-view {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  margin-top: clamp(64px, 8vw, 110px);
}

.server-copy h3 {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.35vw, 2.1rem);
  font-weight: 400;
  line-height: 1.04;
  text-transform: uppercase;
}

.server-copy > p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.code-key {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 26px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.code-key > div {
  padding: 15px 12px;
}

.code-key > div + div {
  border-left: 1px solid var(--line);
}

.code-key span {
  display: block;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted-soft);
}

.code-key strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fine-print {
  font-size: 12px !important;
  line-height: 1.7 !important;
  color: var(--muted-soft) !important;
}

.code-window {
  border: 1px solid rgba(10, 10, 10, 0.22);
  background: #0B0B0B;
  color: var(--paper);
  box-shadow: 18px 18px 0 rgba(10, 10, 10, 0.07);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(235, 227, 211, 0.1);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(235, 227, 211, 0.4);
}

.code-dots {
  display: flex;
  gap: 5px;
  flex: none;
}

.code-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(235, 227, 211, 0.2);
}

.code-dots i:first-child {
  background: var(--red);
}

.code-window pre {
  margin: 0;
  padding: 21px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.82;
  scrollbar-width: thin;
  scrollbar-color: rgba(235, 227, 211, 0.2) transparent;
}

.code-keyword { color: #E5646C; }
.code-string { color: #D8C9A1; }
.code-number { color: #93A9B8; }

.code-window-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px 18px;
  border-top: 1px solid rgba(235, 227, 211, 0.1);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(235, 227, 211, 0.36);
}

/* ---------- MODES ---------- */

.modes-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  align-items: end;
  gap: clamp(28px, 5vw, 70px);
  margin-bottom: clamp(36px, 5vw, 48px);
}

.modes-head .display {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.modes-head p {
  max-width: 46ch;
  padding-bottom: 6px;
  color: var(--paper-muted);
  font-size: 14.5px;
  line-height: 1.78;
}

.mode-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(36px, 5vw, 54px);
  border: 1px solid rgba(235, 227, 211, 0.2);
}

.mode-tab {
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(235, 227, 211, 0.52);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.mode-tab:hover {
  color: var(--paper);
}

.mode-tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
}

.mode-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.mode-panel.active {
  animation: modeIn 0.55s var(--ease) both;
}

@keyframes modeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.mode-visual {
  min-width: 0;
}

.device {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  border: 1px solid rgba(235, 227, 211, 0.17);
  border-radius: 16px;
  background: #0B0B0B;
  overflow: hidden;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.device-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(235, 227, 211, 0.1);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(235, 227, 211, 0.5);
}

.device-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red-bright);
}

.device-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  animation: statusPulse 1.8s ease-in-out infinite;
}

.device-messages {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 312px;
  padding: 20px 18px;
  background: radial-gradient(circle at 50% 0%, rgba(193, 18, 31, 0.09), transparent 62%);
}

.bubble {
  position: relative;
  align-self: flex-start;
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 2px 12px 12px 12px;
  background: rgba(235, 227, 211, 0.08);
  color: rgba(235, 227, 211, 0.86);
  font-size: 13px;
  line-height: 1.5;
}

.bubble.sent {
  align-self: flex-end;
  border-radius: 12px 2px 12px 12px;
  background: var(--red);
  color: #FFF6EA;
}

.bubble-name {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(235, 227, 211, 0.46);
}

.bubble-time {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  text-align: right;
  opacity: 0.55;
}

.device-system {
  margin: 4px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.2em;
  color: rgba(235, 227, 211, 0.3);
}

.device-compose {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 0 16px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(235, 227, 211, 0.14);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: rgba(235, 227, 211, 0.3);
}

.device-compose b {
  color: var(--red-bright);
  font-size: 13px;
  font-weight: 400;
}

.device-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(235, 227, 211, 0.1);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
  color: rgba(235, 227, 211, 0.34);
}

.device-caption {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: rgba(235, 227, 211, 0.3);
}

.mode-kicker {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--red-bright);
}

.mode-copy h3 {
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.9vw, 3.4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.mode-copy > p {
  max-width: 52ch;
  color: var(--paper-muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 20px;
  margin: 26px 0 30px;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: rgba(235, 227, 211, 0.58);
}

.feature-list li::before {
  content: '—';
  flex: none;
  color: var(--red-bright);
}

/* note card */

.note-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  background: var(--paper-lift);
  color: var(--ink);
  transform: rotate(1.4deg);
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(10, 10, 10, 0.2);
}

.note-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.2);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(10, 10, 10, 0.5);
}

.note-for {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
}

.note-body {
  margin: 16px 0 28px;
  font-family: var(--font-jp);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.65;
  color: var(--ink);
}

.note-rule {
  height: 1px;
  background: rgba(10, 10, 10, 0.18);
}

.note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(10, 10, 10, 0.5);
}

.note-badge {
  padding: 3px 6px;
  border: 1px solid rgba(193, 18, 31, 0.5);
  color: var(--red);
}

.identity-pass {
  transform: rotate(-1.4deg);
}

.identity-pass-code {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.identity-pass .note-body {
  margin-top: 12px;
  margin-bottom: 24px;
}

.note-seal {
  position: absolute;
  right: 20px;
  bottom: 44px;
  font-family: var(--font-jp);
  font-size: 78px;
  line-height: 1;
  color: rgba(193, 18, 31, 0.1);
  pointer-events: none;
}

.note-stamp {
  position: absolute;
  top: 76px;
  right: 25px;
  padding: 7px 9px;
  border: 2px solid rgba(193, 18, 31, 0.4);
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-align: center;
  color: rgba(193, 18, 31, 0.55);
  transform: rotate(-8deg);
}

/* ---------- SECURITY ---------- */

.security-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr);
  align-items: end;
  gap: clamp(28px, 5vw, 70px);
  margin-bottom: clamp(40px, 5vw, 60px);
}

.security-head .display {
  font-size: clamp(2.2rem, 4.2vw, 3.9rem);
}

.security-head p {
  max-width: 46ch;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.78;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sec-card {
  padding: 30px 26px 34px;
  background: var(--paper);
  transition: background-color 0.3s ease;
}

.sec-card:hover {
  background: var(--paper-lift);
}

.sec-index {
  display: block;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
}

.sec-card h3 {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sec-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.honesty-box {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 3.5vw, 42px);
  margin-top: clamp(44px, 6vw, 68px);
  padding: clamp(28px, 4vw, 50px);
  background: var(--ink);
  color: var(--paper);
}

.honesty-stamp {
  display: grid;
  place-items: center;
  flex: none;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(229, 35, 47, 0.55);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red-bright);
  transform: rotate(-8deg);
}

.honesty-box h3 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.honesty-box p {
  max-width: 78ch;
  color: var(--paper-muted);
  font-size: 13.5px;
  line-height: 1.78;
}

.compare {
  margin-top: clamp(56px, 7vw, 86px);
}

.compare-head {
  margin-bottom: 24px;
}

.compare-head h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
  text-transform: uppercase;
}

.compare-hint {
  display: none;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--muted-soft);
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 10, 10, 0.25) transparent;
}

.compare table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.compare th,
.compare td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compare thead th {
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted-soft);
  vertical-align: bottom;
}

.compare tbody th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

.compare tbody td {
  color: rgba(10, 10, 10, 0.52);
  font-weight: 500;
}

.compare .shinobu-col {
  border-left: 1px solid rgba(193, 18, 31, 0.22);
  border-right: 1px solid rgba(193, 18, 31, 0.22);
  background: rgba(193, 18, 31, 0.055);
  color: var(--red);
  font-weight: 700;
}

.compare thead .shinobu-col {
  color: var(--red);
  font-size: 8px;
}

.compare tbody tr:hover td,
.compare tbody tr:hover th {
  background: rgba(10, 10, 10, 0.025);
}

.compare tbody tr:hover .shinobu-col {
  background: rgba(193, 18, 31, 0.075);
}

.compare-note {
  margin-top: 16px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
}

/* ---------- ORIGIN ---------- */

.origin {
  position: relative;
  padding: clamp(88px, 11vw, 160px) 0;
  background: #070707;
  color: var(--paper);
  overflow: hidden;
}

.origin-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/bg-desktop.jpg');
  background-position: center 35%;
  background-size: cover;
  opacity: 0.2;
  filter: saturate(0.7);
}

.origin-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #070707 0%, rgba(7, 7, 7, 0.92) 38%, rgba(7, 7, 7, 0.72) 70%, rgba(7, 7, 7, 0.9) 100%),
    linear-gradient(180deg, #070707 0%, rgba(7, 7, 7, 0.24) 24%, rgba(7, 7, 7, 0.3) 72%, #070707 100%);
}

.origin-rain {
  position: absolute;
  inset: -20%;
  background-image: repeating-linear-gradient(
    102deg,
    transparent 0 34px,
    rgba(235, 227, 211, 0.045) 34px 35px,
    transparent 35px 72px
  );
  background-size: 220px 420px;
  opacity: 0.75;
  animation: rain 2.4s linear infinite;
  pointer-events: none;
}

.origin-rain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    96deg,
    transparent 0 58px,
    rgba(235, 227, 211, 0.028) 58px 59px,
    transparent 59px 120px
  );
  background-size: 300px 500px;
  animation: rain 3.6s linear infinite reverse;
}

@keyframes rain {
  from { background-position: 0 0; }
  to { background-position: 80px 420px; }
}

.origin-inner {
  position: relative;
  z-index: 2;
}

.origin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(44px, 8vw, 118px);
  align-items: start;
}

.origin-sticky {
  position: sticky;
  top: calc(var(--header-h) + 44px);
  align-self: start;
}

.origin-kanji {
  position: absolute;
  top: -70px;
  left: -38px;
  z-index: 0;
  font-family: var(--font-jp);
  font-size: clamp(180px, 21vw, 320px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(235, 227, 211, 0.07);
  pointer-events: none;
  user-select: none;
}

.origin-sticky h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.5rem, 4.8vw, 4.6rem);
}

.origin-sticky p {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(235, 227, 211, 0.46);
}

.origin-coord {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--red-bright);
}

.origin-chapters {
  max-width: 640px;
}

.origin-chapter {
  position: relative;
  margin-bottom: 40px;
  padding-left: clamp(22px, 3vw, 34px);
  border-left: 1px solid rgba(235, 227, 211, 0.18);
}

.origin-chapter::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
}

.origin-chapter-last {
  margin-bottom: 0;
  border-left-color: rgba(229, 35, 47, 0.5);
}

.chapter-num {
  display: block;
  margin-bottom: 13px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--red-bright);
}

.origin-chapter p {
  color: rgba(235, 227, 211, 0.7);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.9;
}

.origin-chapter p::first-letter {
  float: left;
  padding: 4px 9px 0 0;
  font-family: var(--font-display);
  font-size: 2.7em;
  line-height: 0.78;
  color: var(--red-bright);
}

.origin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: clamp(52px, 7vw, 86px);
  padding-top: 24px;
  border-top: 1px solid rgba(235, 227, 211, 0.12);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(235, 227, 211, 0.42);
}

.origin-footer span:first-child {
  font-family: var(--font-jp);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(235, 227, 211, 0.62);
}

/* ---------- CREATOR ---------- */

.creator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.creator-card {
  position: relative;
  padding: clamp(28px, 4vw, 56px);
  background: #F1EADA;
  border: 1px solid rgba(10, 10, 10, 0.24);
  box-shadow: 14px 14px 0 rgba(10, 10, 10, 0.06);
}

.creator-top {
  display: flex;
  align-items: center;
  gap: 22px;
}

.creator-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 86px;
  height: 86px;
  background: var(--red);
  color: var(--paper-lift);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  box-shadow: inset 0 0 0 3px rgba(235, 227, 211, 0.24);
}

.creator-id > span:first-child {
  display: block;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.22em;
  color: var(--muted-soft);
}

.creator-id h2 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.01em;
}

.creator-role {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
}

.creator-card blockquote {
  margin: 38px 0 22px;
  padding-left: 20px;
  border-left: 3px solid var(--red);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  font-weight: 500;
  line-height: 1.62;
}

.creator-card > p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}

.creator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.creator-tags span {
  padding: 6px 10px 5px;
  border: 1px solid rgba(10, 10, 10, 0.28);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.creator-tags span:first-child {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-lift);
}

.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
}

.creator-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.creator-links a:hover {
  color: var(--red);
  border-color: var(--red);
}

.signature {
  margin-top: 30px;
  font-family: var(--font-jp);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.78;
  transform: rotate(-4deg);
  transform-origin: left center;
  width: fit-content;
}

.creator-stamp {
  position: absolute;
  right: 30px;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 2px solid rgba(193, 18, 31, 0.35);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-align: center;
  color: rgba(193, 18, 31, 0.55);
  transform: rotate(8deg);
}

.creator-aside {
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--ink);
  color: var(--paper);
}

.creed-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(235, 227, 211, 0.15);
}

.creed-line:first-child {
  border-top: 1px solid rgba(235, 227, 211, 0.15);
}

.creed-line span {
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--red-bright);
}

.creed-line strong {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.creed-note {
  margin-top: 20px;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.72;
}

.creator-aside-rule {
  height: 1px;
  margin: 26px 0 26px;
  background: rgba(235, 227, 211, 0.15);
}

.creator-aside .mini-label {
  color: var(--red-bright);
}

.creator-aside p:not(.creed-note) {
  margin-top: 10px;
  color: var(--paper-muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.creator-aside .btn {
  width: 100%;
  margin-top: 24px;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.faq-intro {
  align-self: start;
}

.faq-intro h2 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
}

.faq-intro > p {
  max-width: 32ch;
  color: var(--paper-muted);
  font-size: 14.5px;
  line-height: 1.78;
}

.faq-note {
  display: block;
  width: fit-content;
  max-width: 34ch;
  margin-top: 34px;
  padding-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.9;
  letter-spacing: 0.16em;
  color: var(--red-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(229, 35, 47, 0.4);
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

a.faq-note:hover {
  color: var(--paper);
  text-decoration-color: var(--paper);
}

.faq-list {
  border-top: 1px solid rgba(235, 227, 211, 0.16);
}

.faq-list details {
  border-bottom: 1px solid rgba(235, 227, 211, 0.16);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--paper);
  transition: color 0.25s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  content: '';
}

.faq-list summary:hover,
.faq-list details[open] summary {
  color: var(--red-bright);
}

.faq-plus {
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--red-bright);
  transition: transform 0.3s var(--ease);
}

.faq-list details[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 66ch;
  margin: 0;
  padding: 0 34px 24px 0;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.8;
  animation: fadeUp 0.35s var(--ease) both;
}

.faq-list code {
  padding: 2px 5px;
  background: rgba(235, 227, 211, 0.08);
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--paper);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- FINAL CTA ---------- */

.final-cta {
  position: relative;
  min-height: 78svh;
  display: grid;
  place-items: center;
  padding: clamp(90px, 12vw, 160px) 0;
  background: #060606;
  color: var(--paper);
  overflow: hidden;
  text-align: center;
}

.final-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/bg-desktop.jpg');
  background-position: center 42%;
  background-size: cover;
  opacity: 0.34;
  filter: saturate(0.85) contrast(1.05);
}

.final-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(6, 6, 6, 0.28) 0%, rgba(6, 6, 6, 0.82) 72%, #060606 100%),
    linear-gradient(180deg, #060606 0%, transparent 30%, transparent 70%, #060606 100%);
}

.final-ghost {
  position: absolute;
  right: -4vw;
  bottom: -14%;
  z-index: 1;
  font-family: var(--font-jp);
  font-size: clamp(280px, 52vw, 720px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(235, 227, 211, 0.055);
  pointer-events: none;
  user-select: none;
}

.final-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-inner .eyebrow {
  color: rgba(235, 227, 211, 0.52);
}

.final-cta h2 {
  margin: 20px 0 36px;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 0.9;
}

.final-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: rgba(235, 227, 211, 0.42);
  text-transform: uppercase;
}

/* ---------- FOOTER ---------- */

.site-footer {
  padding: 70px 0 28px;
  background: #050505;
  color: var(--paper);
  border-top: 1px solid rgba(235, 227, 211, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-brand .wordmark {
  font-size: 26px;
}

.footer-jp {
  margin-top: 16px;
  font-family: var(--font-jp);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--red-bright);
}

.footer-tag {
  margin-top: 6px;
  color: rgba(235, 227, 211, 0.42);
  font-size: 13px;
}

.footer-col h3 {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: rgba(235, 227, 211, 0.34);
}

.footer-col a {
  display: block;
  width: fit-content;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(235, 227, 211, 0.62);
  transition: color 0.25s ease, transform 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--paper);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(235, 227, 211, 0.1);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: rgba(235, 227, 211, 0.3);
}

/* ---------- TOAST ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 5000;
  max-width: calc(100vw - 40px);
  padding: 13px 22px;
  background: var(--ink);
  color: var(--paper);
  border-left: 3px solid var(--red-bright);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- EXIT WIPE ---------- */

.exit-wipe {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  background: var(--red);
  color: rgba(235, 227, 211, 0.3);
  opacity: 0;
  pointer-events: none;
  clip-path: inset(100% 0 0 0);
  transition:
    clip-path 0.55s cubic-bezier(0.76, 0, 0.24, 1),
    opacity 0.15s ease 0.55s;
}

.exit-wipe::before {
  content: 'VANISHING…';
  position: absolute;
  bottom: calc(50% - 86px);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: rgba(235, 227, 211, 0.7);
}

.exit-wipe::after {
  content: '影';
  font-family: var(--font-jp);
  font-size: clamp(90px, 16vw, 180px);
  line-height: 1;
  color: rgba(235, 227, 211, 0.22);
}

.exit-wipe.active {
  opacity: 1;
  pointer-events: all;
  clip-path: inset(0 0 0 0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 1081px) {
  .faq-intro {
    position: sticky;
    top: calc(var(--header-h) + 44px);
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    gap: 16px;
  }
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-card-wrap {
    justify-self: start;
    max-width: 440px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bottom {
    margin-top: 0;
  }

  .scroll-cue {
    display: none;
  }

  .hero-vertical {
    display: none;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.62) 42%, rgba(5, 5, 5, 0.9) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.3));
  }

  .premise-grid,
  .demo-head,
  .modes-head,
  .security-head,
  .creator-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .principles {
    margin-top: 14px;
  }

  .demo-head p,
  .modes-head p,
  .security-head p {
    max-width: 60ch;
    padding-bottom: 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .server-view {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .mode-visual {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }

  .device {
    max-width: 460px;
  }

  .note-card {
    max-width: 420px;
  }

  .origin-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .origin-sticky {
    position: static;
  }

  .origin-kanji {
    top: -46px;
    left: -20px;
    font-size: 190px;
  }

  .origin-chapters {
    max-width: 720px;
  }

  .creator-aside {
    max-width: 540px;
  }

  .faq-intro > p,
  .faq-note {
    max-width: 52ch;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 30px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }

  .hero-bg {
    background-image: url('assets/img/bg-mobile.jpg');
    background-position: center 18%;
  }

  .origin-bg,
  .final-bg {
    background-image: url('assets/img/bg-mobile.jpg');
  }

  .demo-payload,
  .code-window pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .btn-nav {
    display: none;
  }

  .hero h1 {
    margin: 18px 0 22px;
    font-size: clamp(2.15rem, 10.4vw, 3.4rem);
    line-height: 0.9;
  }

  .hero-ghost {
    top: 24%;
    right: -12vw;
    font-size: 78vw;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-actions {
    margin: 26px 0 24px;
  }

  .hero-actions .btn {
    padding: 16px 20px;
  }

  .hero-meta {
    gap: 8px 12px;
    font-size: 7px;
    letter-spacing: 0.16em;
  }

  .hero-meta span + span {
    padding-left: 12px;
  }

  .sealed-card {
    padding: 26px 22px 22px;
    transform: rotate(-0.6deg);
  }

  .card-cipher {
    max-width: 60%;
  }

  .card-caption {
    text-align: center;
  }

  .marquee-track span {
    font-size: 7px;
  }

  .ticker-track span {
    font-size: 8px;
  }

  .ticker-track b {
    margin: 0 16px;
  }

  .pull-quote {
    padding: 34px 12px;
  }

  .pull-quote cite {
    margin-top: 18px;
  }

  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-arrow {
    padding: 10px 0;
    transform: rotate(90deg);
    font-size: 18px;
  }

  #demo-input {
    min-height: 132px;
  }

  .cipher-output {
    min-height: 132px;
    font-size: 11px;
  }

  .demo-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .security-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sec-card {
    padding: 24px 22px 28px;
  }

  .sec-index {
    margin-bottom: 18px;
  }

  .honesty-box {
    flex-direction: column;
  }

  .honesty-stamp {
    width: 74px;
    height: 74px;
  }

  .compare-note {
    text-align: left;
  }

  .compare table {
    min-width: 0;
    table-layout: fixed;
    font-size: 7px;
  }

  .compare thead th:first-child,
  .compare tbody th:first-child {
    width: 38%;
  }

  .compare th,
  .compare td {
    padding: 10px 4px;
  }

  .compare thead th {
    font-size: 6px;
    letter-spacing: 0.03em;
    overflow-wrap: anywhere;
  }

  .compare thead .shinobu-col {
    font-size: 6.5px;
  }

  .compare tbody th {
    font-size: 10.5px;
    line-height: 1.35;
  }

  .compare tbody td {
    font-size: 7px;
  }

  .compare-hint {
    display: block;
  }

  .security-head .display {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .mode-tabs {
    width: 100%;
  }

  .mode-tab {
    flex: 1;
    padding: 13px 10px;
    font-size: 8px;
  }

  .device-messages {
    min-height: 268px;
  }

  .origin-rain {
    opacity: 0.5;
  }

  .origin-sticky h2 {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
  }

  .origin-kanji {
    top: -34px;
    left: -10px;
    font-size: 150px;
  }

  .origin-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .creator-top {
    align-items: flex-start;
    gap: 16px;
  }

  .creator-seal {
    width: 66px;
    height: 66px;
    font-size: 21px;
  }

  .creator-card blockquote {
    margin-top: 28px;
  }

  .signature {
    font-size: 2rem;
  }

  .creator-stamp {
    position: static;
    margin-top: 24px;
    width: 74px;
    height: 74px;
  }

  .faq-list summary {
    font-size: 14px;
    padding: 19px 0;
  }

  .faq-list details p {
    font-size: 13.5px;
    padding-right: 10px;
  }

  .final-cta {
    min-height: 60svh;
    padding: 84px 0 96px;
  }

  .final-cta h2 {
    font-size: clamp(2.3rem, 10.4vw, 3.8rem);
  }

  .btn-huge {
    width: 100%;
    padding: 19px 24px;
    font-size: 10px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .eyebrow {
    gap: 9px;
    font-size: 7.5px;
    letter-spacing: 0.16em;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 34px;
  }

  .section-label {
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-meta span + span {
    padding-left: 0;
    border-left: 0;
  }

  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-top {
    flex-direction: column;
  }

  .creator-id h2 {
    font-size: 1.9rem;
  }

  .card-cipher {
    max-width: 58%;
  }

  .stamp {
    right: 16px;
    bottom: 16px;
    font-size: 6.5px;
  }

  .sealed-ribbon {
    left: 16px;
  }

  .payload-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .demo-note {
    font-size: 7px;
  }

  .footer-jp {
    font-size: 12px;
  }
}

/* ---------- 404 ---------- */

.error-page {
  background: #060606;
  color: var(--paper);
}

.error-main {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 26px var(--gutter) 34px;
  overflow: hidden;
}

.error-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/bg-desktop.jpg');
  background-position: center 30%;
  background-size: cover;
  opacity: 0.26;
  filter: saturate(0.8);
}

.error-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 6, 0.97) 0%, rgba(6, 6, 6, 0.9) 45%, rgba(6, 6, 6, 0.62) 78%, rgba(6, 6, 6, 0.94) 100%),
    linear-gradient(180deg, rgba(6, 6, 6, 0.92) 0%, rgba(6, 6, 6, 0.36) 40%, rgba(6, 6, 6, 0.96) 100%);
}

.error-top {
  position: relative;
  z-index: 2;
}

.error-top .wordmark {
  display: inline-block;
}

.error-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: auto 0;
  padding: clamp(60px, 12vh, 120px) 0;
}

.error-inner .mini-label {
  color: var(--red-bright);
}

.error-inner h1 {
  margin: 18px 0 26px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

.error-inner p {
  max-width: 46ch;
  color: rgba(235, 227, 211, 0.66);
  font-size: 15px;
  line-height: 1.78;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.error-ghost {
  position: absolute;
  right: -2vw;
  bottom: -9%;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(240px, 44vw, 620px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(235, 227, 211, 0.055);
  pointer-events: none;
  user-select: none;
}

.error-foot {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  border-top: 1px solid rgba(235, 227, 211, 0.12);
  font-family: var(--font-jp);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: rgba(235, 227, 211, 0.42);
}

@media (max-width: 760px) {
  .error-ghost {
    right: -10vw;
    bottom: -2%;
    font-size: 62vw;
  }

  .error-actions .btn {
    width: 100%;
  }

  .error-foot {
    font-size: 8.5px;
    line-height: 1.9;
  }
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .sealed-card,
  .hero-bg {
    transform: none;
  }
}
