:root {
  color-scheme: dark;
  --bg: #0d0f11;
  --bg-2: #121518;
  --surface: #171b1f;
  --surface-2: #1d2227;
  --ink: #ece6dc;
  --muted: #a09d96;
  --rust: #e0632a;
  --rust-2: #f29a4a;
  --rust-dim: rgba(224, 99, 42, 0.14);
  --line: rgba(236, 230, 220, 0.09);
  --line-strong: rgba(236, 230, 220, 0.18);
  --display: "Barlow Condensed", "Noto Sans JP", "Noto Sans SC", sans-serif;
  --sans: "Inter", "Noto Sans JP", "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html:lang(ja) {
  --sans: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --display: "Barlow Condensed", "Noto Sans JP", sans-serif;
}
html:lang(zh-Hans) {
  --sans: "Inter", "Noto Sans SC", system-ui, sans-serif;
  --display: "Barlow Condensed", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html:lang(ja) body, html:lang(zh-Hans) body { line-height: 1.9; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
p { color: var(--muted); }
p + p { margin-top: 14px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--rust-2); outline-offset: 4px; }
::selection { background: var(--rust); color: #fff; }
a, button, summary { transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s var(--ease); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 18px; background: var(--rust); color: #fff; }
.skip-link:focus { top: 12px; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
@media (min-width: 720px) { .container { width: min(1180px, calc(100% - 80px)); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--rust-2);
  font: 600 12px/1.4 var(--display);
  letter-spacing: 0.24em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--rust); }

/* ─── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 15, 17, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1320px, calc(100% - 32px)); margin-inline: auto;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-name { font: 700 22px/1 var(--display); letter-spacing: 0.14em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); border-color: var(--rust); }
.lang-switch { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.lang-switch button { padding: 6px 10px; font-size: 12px; color: var(--muted); }
.lang-switch button + button { border-left: 1px solid var(--line-strong); }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--rust); color: #fff; }
.menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform 0.25s var(--ease), background 0.2s;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-inner { gap: 12px; }
  .lang-switch { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: rgba(13, 15, 17, 0.98); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .brand-name { font-size: 18px; }
  .lang-switch button { padding: 6px 7px; font-size: 11px; }
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 0 150px; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    url("assets/hero.jpg") center 40% / cover no-repeat,
    radial-gradient(120% 80% at 70% 20%, #3a1d10 0%, #160f0b 45%, var(--bg) 80%);
  transform: scale(1.03);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 15, 17, 0.92) 0%, rgba(13, 15, 17, 0.55) 55%, rgba(13, 15, 17, 0.25) 100%),
    linear-gradient(180deg, rgba(13, 15, 17, 0) 55%, var(--bg) 100%);
}
.hero-content { position: relative; }
.hero-logo { display: none; width: min(560px, 100%); margin: 26px 0 8px -6px; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6)); }
.hero-title {
  margin-top: 22px;
  font: 700 clamp(64px, 12vw, 150px)/0.9 var(--display);
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #f6efe4 0%, #d9b48c 60%, var(--rust) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.has-logo .hero-logo { display: block; }
.has-logo .hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.hero-desc { max-width: 560px; margin-top: 18px; font-size: 17px; color: #d6d0c6; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-tags li {
  padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 2px;
  font: 600 13px/1.4 var(--display); letter-spacing: 0.16em; color: var(--ink);
  background: rgba(13, 15, 17, 0.45);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 14px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; letter-spacing: 0.02em; border: 1px solid transparent;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--rust); color: #fff; }
.button-primary:hover { background: #f07436; }
.button-ghost { border-color: var(--line-strong); background: rgba(13, 15, 17, 0.5); backdrop-filter: blur(8px); }
.button-ghost:hover { border-color: var(--ink); }
.button-ghost[aria-disabled="true"] { color: var(--muted); cursor: default; }
.button-ghost[aria-disabled="true"]:hover { transform: none; border-color: var(--line-strong); }
.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 104px;
  display: flex; justify-content: space-between; gap: 16px;
  font: 600 11px/1.4 var(--display); letter-spacing: 0.22em; color: var(--muted);
}
.hero-bottom a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .hero { min-height: auto; padding: 64px 0 132px; }
  .hero-bottom span:first-child, .hero-bottom span:last-child { display: none; }
  .hero-bottom { justify-content: center; bottom: 96px; }
  .hero-desc { font-size: 15px; }
  .button { flex: 1 1 100%; justify-content: center; }
}

/* ─── Connect bar ──────────────────────────────────────── */
.connect-bar {
  position: relative; z-index: 5; margin-top: -76px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 1px;
  background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.panel { background: var(--surface); padding: 24px 26px; min-width: 0; }
.panel:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.panel:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.panel-label { font: 600 13px/1.4 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--rust-2); }
.panel-hint { margin-top: 10px; font-size: 13px; }
.command-row {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 6px 6px 16px;
}
.command-row code { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.copy-button {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 9px 14px; border-radius: 3px; background: var(--surface-2); font-size: 13px; font-weight: 600;
}
.copy-button:hover { background: var(--rust); color: #fff; }
.copy-feedback { font-size: 12px; color: var(--rust-2); min-height: 0; }
.copy-feedback:empty { display: none; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.countdown div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0 6px; text-align: center; }
.countdown strong { display: block; font: 700 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown small { font: 600 10px/1.6 var(--display); letter-spacing: 0.2em; color: var(--muted); }
@media (max-width: 820px) {
  .connect-bar { grid-template-columns: 1fr; }
  .panel:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .panel:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .panel { padding: 20px 18px; }
  .countdown strong { font-size: 28px; }
}

/* ─── Sections ─────────────────────────────────────────── */
.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--line); }
#rates, #commands { background: var(--bg-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.section-heading h2 {
  margin: 16px 0 18px;
  font: 700 clamp(30px, 4vw, 46px)/1.1 var(--display);
  letter-spacing: 0.01em; color: var(--ink); text-wrap: balance;
}
html:lang(ja) .section-heading h2, html:lang(zh-Hans) .section-heading h2 {
  font-family: var(--sans); font-size: clamp(24px, 3vw, 34px); line-height: 1.45; font-weight: 700;
}
.section-heading.narrow { max-width: 680px; margin-bottom: 48px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 72px 0; }
}

/* Settings grid */
.settings-grid {
  margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.settings-grid div { background: var(--surface); padding: 20px 22px; }
.settings-grid dt { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.settings-grid dd { margin: 4px 0 0; font: 600 24px/1.25 var(--display); letter-spacing: 0.02em; }
html:lang(ja) .settings-grid dd, html:lang(zh-Hans) .settings-grid dd { font-family: var(--sans); font-size: 18px; }
.settings-grid small { font-size: 0.7em; color: var(--rust-2); letter-spacing: 0.06em; }
@media (max-width: 420px) { .settings-grid div { padding: 16px 14px; } .settings-grid dd { font-size: 20px; } }

/* Rates */
.rate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rate-card {
  position: relative; padding: 28px 26px 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.rate-card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--rust), transparent 70%);
}
.rate-value { font: 700 46px/1 var(--display); color: var(--rust); }
.rate-card h3 { margin: 12px 0 8px; font-size: 17px; font-weight: 600; }
.rate-card p { font-size: 14px; }
@media (max-width: 900px) { .rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rate-grid { grid-template-columns: 1fr; } }

/* Schedule */
.schedule-list { border-top: 1px solid var(--line-strong); }
.schedule-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.schedule-what h3 { font-size: 18px; font-weight: 600; }
.schedule-what p { font-size: 14px; margin-top: 4px; }
.zone-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.zone-times li { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.zone-times small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone-times strong { font: 600 22px/1.3 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
html:lang(ja) .zone-times strong, html:lang(zh-Hans) .zone-times strong { font-family: var(--sans); font-size: 17px; }
.zone-times .is-local { border-color: rgba(224, 99, 42, 0.6); background: var(--rust-dim); }
.zone-times .is-local small { color: var(--rust-2); }
.notes { margin-top: 28px; display: grid; gap: 8px; }
.notes li { position: relative; padding-left: 20px; font-size: 14px; color: var(--muted); }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 2px; background: var(--rust); }
@media (max-width: 900px) {
  .schedule-row { grid-template-columns: 1fr; gap: 14px; }
  .zone-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Rules */
.rule-list { display: grid; gap: 12px; counter-reset: none; }
.rule-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--rust); border-radius: var(--radius);
}
.rule-no { font: 700 30px/1 var(--display); color: var(--rust); }
.rule-list h3 { font-size: 17px; font-weight: 600; }
.rule-list p { margin-top: 4px; font-size: 14px; }
@media (max-width: 420px) { .rule-list li { gap: 14px; padding: 18px 16px; } }

/* Commands */
.command-list { margin: 0; display: grid; gap: 12px; }
.command-list div {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center;
  padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.command-list code { font-size: 17px; color: #7fd67f; }
.command-list dd { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 420px) { .command-list div { grid-template-columns: 1fr; gap: 6px; } }

/* FAQ */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 16px; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 26px/1 var(--display); color: var(--rust-2); transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--rust-2); }
.faq-list details p { padding: 0 0 22px; font-size: 14px; max-width: 640px; overflow-wrap: anywhere; }

/* ─── Footer ───────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; background: #0a0b0d; }
.footer-inner { display: grid; gap: 14px; }
.footer-disclaimer, .footer-meta { font-size: 12px; }
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 480px) {
  .command-row { padding-left: 12px; }
  .command-row code { font-size: 13px; }
  .copy-button { padding: 9px 10px; }
  .copy-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ─── Artwork ──────────────────────────────────────────── */
.stack { display: grid; gap: 16px; min-width: 0; }
.scene {
  position: relative; margin: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.scene img { width: 100%; height: 100%; object-fit: cover; }
.scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 15, 17, 0.55));
  box-shadow: inset 0 0 0 1px rgba(224, 99, 42, 0.08);
}
.stack .scene { aspect-ratio: 16 / 9; }
.scene-wide { aspect-ratio: 21 / 8; margin-bottom: 40px; }
.scene-side { aspect-ratio: 4 / 3; margin-top: 32px; }
@media (max-width: 720px) { .scene-wide { aspect-ratio: 16 / 9; } }

.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.section-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: 0.32; }
.section-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, rgba(18, 21, 24, 0.6) 35%, rgba(18, 21, 24, 0.75) 70%, var(--bg-2) 100%);
}
.section-bg-forge { background-image: url("assets/forge.jpg"); }
.has-bg .rate-card { background: rgba(23, 27, 31, 0.86); backdrop-filter: blur(6px); }

/* ═══ Visual polish v2 ═══════════════════════════════════ */

/* Film grain over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Hero: slow push-in and rising embers */
.hero-bg { animation: push-in 24s var(--ease) both; }
@keyframes push-in { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero-logo { animation: rise 1.1s 0.15s var(--ease) both; }
.hero-content > :not(.hero-logo) { animation: rise 1s var(--ease) both; }
.hero-desc { animation-delay: 0.3s !important; }
.hero-tags { animation-delay: 0.4s !important; }
.hero-actions { animation-delay: 0.5s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.embers { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.embers i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: #ffb066; box-shadow: 0 0 8px 2px rgba(255, 120, 40, 0.75);
  animation: ember linear infinite; opacity: 0;
}
@keyframes ember {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--drift, 40px), -90vh) scale(0.3); opacity: 0; }
}

/* Eyebrow numbering */
.eyebrow-no { color: var(--ink); opacity: 0.55; font-variant-numeric: tabular-nums; }
.eyebrow-no::after { content: "/"; margin-left: 10px; color: var(--rust); opacity: 1; }

/* Section headings: rust underline accent */
.section-heading h2 { position: relative; }

/* Ticker */
.ticker {
  margin-top: 56px; overflow: hidden; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--bg) 0%, #15100d 50%, var(--bg) 100%);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span {
  padding: 16px 28px; white-space: nowrap;
  font: 700 18px/1 var(--display); letter-spacing: 0.16em; color: var(--muted);
}
.ticker span::after { content: "✦"; margin-left: 56px; color: var(--rust); font-size: 12px; vertical-align: 3px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Images: hover zoom */
.scene img, .rate-art img, .life-card img { transition: transform 1.2s var(--ease), filter 0.6s; }
.scene:hover img { transform: scale(1.04); }

/* Rate cards with art */
.rate-card { padding: 0; display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.4s var(--ease); }
.rate-card:hover { border-color: rgba(224, 99, 42, 0.5); transform: translateY(-4px); }
.rate-card:hover .rate-art img { transform: scale(1.07); }
.rate-art { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.rate-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95) contrast(1.05); }
.rate-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(23, 27, 31, 0.95) 100%); }
.rate-body { position: relative; padding: 0 24px 24px; margin-top: -34px; z-index: 1; }
.rate-value { text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8); }
.rate-art:empty, .rate-art.is-missing { display: none; }
.rate-card:has(.rate-art.is-missing) .rate-body { margin-top: 0; padding-top: 26px; }

/* Life on Rustica */
#life { background: radial-gradient(80% 60% at 50% 0%, #1b120d 0%, var(--bg) 70%); }
.life-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.life-card {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.life-card img { width: 100%; height: 100%; object-fit: cover; }
.life-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 17, 0) 35%, rgba(13, 15, 17, 0.92) 85%);
  transition: background 0.5s;
}
.life-card:hover img { transform: scale(1.08); filter: saturate(1.15); }
.life-card:hover { border-color: rgba(224, 99, 42, 0.55); }
.life-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 20px; }
.life-caption span { font: 700 12px/1 var(--display); letter-spacing: 0.24em; color: var(--rust-2); }
.life-caption h3 { margin: 8px 0 6px; font: 700 24px/1.15 var(--display); letter-spacing: 0.02em; color: var(--ink); }
html:lang(ja) .life-caption h3, html:lang(zh-Hans) .life-caption h3 { font-family: var(--sans); font-size: 17px; line-height: 1.5; }
.life-caption p { font-size: 13px; line-height: 1.65; color: #c9c3b8; }
@media (max-width: 1000px) { .life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .life-grid { grid-template-columns: 1fr; }
  .life-card { aspect-ratio: 4 / 4.2; }
}

/* CTA band */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: 150px 0; border-top: 1px solid var(--line); }
.cta-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 15, 17, 0.92) 0%, rgba(13, 15, 17, 0.5) 60%, rgba(13, 15, 17, 0.2) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, #0a0b0d 100%),
    url("assets/cta.jpg") center / cover no-repeat,
    radial-gradient(100% 80% at 70% 50%, #3a1d10, var(--bg));
}
.cta-inner { max-width: 1180px; }
.cta h2 {
  margin: 16px 0 14px; max-width: 640px;
  font: 700 clamp(36px, 5.4vw, 68px)/1.02 var(--display); letter-spacing: 0.01em; color: var(--ink); text-wrap: balance;
}
html:lang(ja) .cta h2, html:lang(zh-Hans) .cta h2 { font-family: var(--sans); font-size: clamp(28px, 4vw, 44px); line-height: 1.35; }
.cta p { max-width: 520px; color: #d6d0c6; }
@media (max-width: 720px) { .cta { padding: 96px 0; } }

/* Footer logo */
.footer-logo { width: 112px; height: 112px; border-radius: 18px; border: 1px solid var(--line); }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.rate-grid .reveal:nth-child(3n + 2), .life-grid .reveal:nth-child(4n + 2) { transition-delay: 0.08s; }
.rate-grid .reveal:nth-child(3n + 3), .life-grid .reveal:nth-child(4n + 3) { transition-delay: 0.16s; }
.life-grid .reveal:nth-child(4n + 4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  body::after, .hero-bg, .embers, .ticker-track { animation: none !important; }
  .embers { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Japanese headings: break at phrase boundaries, not mid-word */
html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; }
html:lang(ja) .cta h2, html:lang(zh-Hans) .cta h2 { max-width: 760px; }

@media (max-width: 480px) {
  .hero-logo { margin-left: 0; width: 100%; }
  .command-row code { font-size: 12px; letter-spacing: -0.02em; }
}

/* Hero catchphrase */
.hero-catch {
  margin-top: 14px; max-width: 640px;
  font: 600 clamp(20px, 2.4vw, 28px)/1.3 var(--display); letter-spacing: 0.04em; color: var(--ink);
}
html:lang(ja) .hero-catch, html:lang(zh-Hans) .hero-catch { font-family: var(--sans); font-weight: 700; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.5; }
.hero-catch + .hero-desc { margin-top: 10px; }

/* Fair play & performance */
.fair { position: relative; isolation: isolate; overflow: hidden; }
.fair-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(13, 15, 17, 0.55) 30%, rgba(13, 15, 17, 0.7) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(13, 15, 17, 0.85) 0%, rgba(13, 15, 17, 0.35) 70%),
    url("assets/fair.jpg") center / cover no-repeat;
}
.fair-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fair-card {
  padding: 28px 26px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(18, 21, 24, 0.78); backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.fair-card:hover { border-color: rgba(224, 99, 42, 0.6); transform: translateY(-4px); }
.fair-card svg { width: 34px; height: 34px; color: var(--rust); stroke-width: 1.6; }
.fair-card h3 { margin: 16px 0 8px; font: 700 24px/1.2 var(--display); letter-spacing: 0.02em; }
html:lang(ja) .fair-card h3, html:lang(zh-Hans) .fair-card h3 { font-family: var(--sans); font-size: 18px; line-height: 1.5; }
.fair-card p { font-size: 14px; color: #c3bdb2; }
@media (max-width: 900px) { .fair-grid { grid-template-columns: 1fr; } }
