:root {
  --bg: #FAF7F2;
  --bg-alt: #F2EDE3;
  --fg: #1A1614;
  --fg-muted: #6B6358;
  --line: #D9CFBE;
  --red: #E84A3B;
  --gold: #F4B942;
  --indigo: #2D4A7C;
  --cream: #FFF8EA;
  --paper: #FAF7F2;
  --shadow: 0 1px 0 rgba(26,22,20,0.04), 0 12px 32px -16px rgba(26,22,20,0.12);
}

[data-theme="dark"] {
  --bg: #0E0C0A;
  --bg-alt: #18140F;
  --fg: #F5F1EA;
  --fg-muted: #9A9285;
  --line: #2A241D;
  --paper: #14110D;
  --shadow: 0 1px 0 rgba(0,0,0,0.4), 0 12px 32px -16px rgba(0,0,0,0.6);
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

.serif { font-family: 'Instrument Serif', 'Shippori Mincho B1', serif; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: 'JetBrains Mono', monospace; }
.jp { font-family: 'Shippori Mincho B1', 'Instrument Serif', serif; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 50%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-stamp {
  width: 36px; height: 36px; border-radius: 6px;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-family: 'Shippori Mincho B1', serif; font-size: 20px;
  transform: rotate(-4deg);
  box-shadow: 0 2px 0 color-mix(in oklab, var(--red) 70%, black);
  transition: transform 0.3s;
}
.brand-stamp:hover { transform: rotate(0deg) scale(1.05); }
.brand-name { font-family: 'Instrument Serif', serif; font-size: 20px; }
.brand-name em { font-style: italic; color: var(--red); }

.nav-links { display: flex; gap: 28px; font-size: 13.5px; }
.nav-links a { position: relative; padding: 6px 0; color: var(--fg-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; height: 2px; width: 0;
  background: var(--red); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
@media (max-width: 900px) { .nav-links { display: none; } }

.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; background: var(--bg-alt); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch button {
  font-size: 11px; padding: 6px 11px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.04em; color: var(--fg-muted);
  transition: all 0.2s;
}
.lang-switch button.active { background: var(--fg); color: var(--bg); }
.theme-btn {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--bg-alt);
  display: grid; place-items: center;
  transition: transform 0.4s;
}
.theme-btn:hover { transform: rotate(20deg); }

/* === HERO === */
.hero { position: relative; min-height: 100vh; padding: 140px 0 100px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, color-mix(in oklab, var(--red) 18%, transparent), transparent 40%),
    radial-gradient(circle at 80% 70%, color-mix(in oklab, var(--indigo) 15%, transparent), transparent 45%),
    radial-gradient(circle at 60% 20%, color-mix(in oklab, var(--gold) 14%, transparent), transparent 40%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-3%,2%) scale(1.05); }
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--fg-muted); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--red); box-shadow: 0 0 0 4px color-mix(in oklab, var(--red) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--red) 25%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--red) 0%, transparent); } }

.hero-title { font-family: 'Instrument Serif', serif; font-size: clamp(56px, 9vw, 128px); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero-title .accent { color: var(--red); font-style: italic; }
.hero-title .underline { position: relative; display: inline-block; }
.hero-title .underline::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.18em;
  background: var(--gold); z-index: -1; opacity: 0.7;
  transform: skewX(-10deg);
}

.hero-sub { font-size: 19px; line-height: 1.6; color: var(--fg-muted); max-width: 520px; margin-bottom: 36px; }
.hero-sub b { color: var(--fg); font-weight: 600; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  transition: all 0.25s;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px color-mix(in oklab, var(--fg) 60%, transparent); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.4s;
}
.hero-card:hover { transform: rotate(0deg); }
.hero-card .avatar {
  width: 100%; aspect-ratio: 1; border-radius: 16px;
  object-fit: cover;
  margin-bottom: 18px;
  display: block;
}
.hero-card .meta { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.hero-card .meta-row { display: flex; justify-content: space-between; gap: 12px; }
.hero-card .meta-row .k { color: var(--fg-muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-card .meta-row .v { font-weight: 600; }

.hero-side-jp {
  position: absolute; top: 140px; right: 24px;
  writing-mode: vertical-rl;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 14px; color: var(--fg-muted); letter-spacing: 0.4em;
  opacity: 0.6;
}
@media (max-width: 980px) { .hero-side-jp { display: none; } }

/* ticker */
.ticker {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0; overflow: hidden;
  background: var(--bg-alt);
  position: relative; z-index: 1;
}
.ticker-track { display: flex; gap: 60px; animation: scroll 30s linear infinite; white-space: nowrap; }
.ticker-item { display: inline-flex; align-items: center; gap: 14px; font-family: 'Instrument Serif', serif; font-size: 22px; }
.ticker-item .dot { width: 6px; height: 6px; background: var(--red); border-radius: 999px; }
.ticker-item .jp { color: var(--fg-muted); font-size: 16px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* === SECTION HEAD === */
section { padding: 120px 0; position: relative; }
.section-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 56px; }
.section-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--red); letter-spacing: 0.1em; }
.section-num::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--red); vertical-align: middle; margin-right: 12px; }
.section-title { font-family: 'Instrument Serif', serif; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.section-title em { color: var(--red); font-style: italic; }
.section-jp { font-family: 'Shippori Mincho B1', serif; color: var(--fg-muted); font-size: 16px; letter-spacing: 0.2em; }

/* fade-up animation */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.d4 { transition-delay: 0.4s; }
