:root {
  --night: #070a10;
  --night-2: #111722;
  --paper: #eae8e1;
  --coral: #ff5b42;
  --blue: #5577ff;
  --ice: #a9e6e8;
  --muted: #8791a3;
  --line-dark: rgba(234, 232, 225, 0.14);
  --line-light: rgba(7, 10, 16, 0.18);
  --display: "Arial Narrow", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --body: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --pad: clamp(1.25rem, 4.7vw, 5.5rem);
  --header: 5.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; overflow-x: hidden; color: var(--paper); background: var(--night); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
::selection { color: var(--night); background: var(--coral); }
.ja, .en { display: inline; }
html[data-lang="ja"] .en, html[data-lang="en"] .ja { display: none !important; }
.skip { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 999; padding: 0.6rem 1rem; color: var(--night); background: var(--paper); transform: translateY(-180%); transition: transform 0.2s; }
.skip:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

.header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--header); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); border-bottom: 1px solid var(--line-dark); background: rgba(7, 10, 16, 0.72); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; width: fit-content; }
.brand-mark { width: 2.25rem; height: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; transform: skewX(-14deg); }
.brand-mark i { display: block; height: 0.25rem; background: var(--coral); }
.brand-mark i:nth-child(1) { width: 100%; }.brand-mark i:nth-child(2) { width: 78%; }.brand-mark i:nth-child(3) { width: 56%; }
.brand-copy { display: grid; line-height: 0.86; }
.brand-copy b { font-family: var(--display); font-size: 1rem; letter-spacing: 0.08em; }
.brand-copy small { margin-top: 0.25rem; font-family: var(--mono); font-size: 0.48rem; letter-spacing: 0.14em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3.2rem); }
.nav a { position: relative; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -0.5rem; width: 100%; height: 1px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; padding: 0.2rem; border: 1px solid var(--line-dark); border-radius: 100px; }
.lang-switch button { width: 2rem; height: 1.7rem; padding: 0; border: 0; border-radius: 100px; color: var(--muted); background: transparent; font-family: var(--mono); font-size: 0.6rem; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { color: var(--night); background: var(--paper); }
.header-contact { padding: 0.58rem 0.85rem; border: 1px solid var(--paper); font-size: 0.68rem; font-weight: 700; transition: 0.25s ease; }
.header-contact:hover { color: var(--night); background: var(--paper); }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--header) + 4rem) var(--pad) 7rem; }
.market-flow, .regime-canvas, .blaze-source, .blaze-output, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.market-flow { z-index: -5; opacity: 0.68; filter: contrast(1.12) saturate(0.9); pointer-events: none; }
.regime-canvas { z-index: -4; pointer-events: none; }
.blaze-source { z-index: -8; visibility: hidden; }
.blaze-output { z-index: -2; pointer-events: none; opacity: 0.45; mix-blend-mode: screen; }
.hero-shade { z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(7,10,16,.97) 0%, rgba(7,10,16,.82) 38%, rgba(7,10,16,.24) 76%, rgba(7,10,16,.58) 100%), linear-gradient(180deg, rgba(7,10,16,.25), transparent 60%, #070a10 100%); }
.hero-content { width: min(78rem, 92vw); }
.kicker, .eyebrow, .section-meta, .hero-index, .hero-coordinate, .hero-status { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.11em; }
.kicker { margin: 0 0 1.7rem; color: var(--ice); font-size: 0.64rem; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(5rem, 8.2vw, 8.6rem); font-weight: 800; line-height: 0.78; letter-spacing: -0.075em; text-transform: uppercase; }
.hero h1 b, .hero h1 em { display: block; font-style: normal; white-space: nowrap; }
.hero h1 em { margin-left: clamp(1rem, 4vw, 4rem); color: var(--coral); }
.hero-lead { max-width: 41rem; margin: 2.8rem 0 0; font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 500; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; }
.button { min-width: 14.5rem; display: inline-flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 0.92rem 1rem; border: 1px solid var(--paper); font-size: 0.75rem; font-weight: 700; transition: 0.25s ease; }
.button b { font-size: 1rem; }
.button-primary { color: var(--night); border-color: var(--coral); background: var(--coral); }
.button-primary:hover { color: var(--paper); background: transparent; }
.button-line:hover { color: var(--night); background: var(--paper); }
.hero-coordinate { position: absolute; z-index: 2; top: 50%; color: rgba(234,232,225,.38); font-size: 0.52rem; writing-mode: vertical-rl; }
.coordinate-left { left: 1rem; transform: translateY(-50%) rotate(180deg); }.coordinate-right { right: 1rem; transform: translateY(-50%); }
.hero-status { position: absolute; top: calc(var(--header) + 1.2rem); right: var(--pad); font-size: 0.52rem; color: var(--muted); }
.hero-status span { display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.35rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 14px var(--coral); animation: pulse 2s steps(2) infinite; }
.hero-index { position: absolute; left: var(--pad); right: var(--pad); bottom: 1.5rem; display: flex; justify-content: space-between; color: rgba(234,232,225,.52); font-size: 0.52rem; }

.signal-strip { height: 3.3rem; overflow: hidden; color: var(--night); background: var(--coral); border-top: 1px solid var(--night); border-bottom: 1px solid var(--night); }
.signal-track { width: max-content; height: 100%; display: flex; align-items: center; gap: 2rem; padding-left: 2rem; font-family: var(--mono); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.13em; animation: ticker 22s linear infinite; }
.signal-track i { width: 3rem; height: 1px; background: var(--night); transform: rotate(-12deg); }

.section { position: relative; padding: 6rem var(--pad) 8rem; }
.section-meta { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-light); color: rgba(7,10,16,.52); font-size: 0.55rem; }
.section-meta.light, .section-meta.dark { color: rgba(234,232,225,.52); border-color: var(--line-dark); }
.eyebrow { margin: 0 0 1.2rem; font-size: 0.6rem; font-weight: 700; }
.section-title h2, .system h2, .risk h2, .contact h2 { margin: 0; font-family: var(--display); font-size: clamp(3.5rem, 7.4vw, 8rem); font-weight: 800; line-height: 0.86; letter-spacing: -0.065em; }

.philosophy { color: var(--night); background: var(--paper); }
.philosophy-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(3rem, 9vw, 10rem); padding-top: 6rem; }
.section-title { align-self: start; position: sticky; top: calc(var(--header) + 2rem); }
.section-title h2 { max-width: 8ch; }
.principles { border-top: 2px solid var(--night); }
.principle { position: relative; min-height: 14rem; display: grid; grid-template-columns: 0.18fr 0.36fr 0.46fr; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line-light); }
.principle::before { content: ""; position: absolute; inset: 0 100% 0 0; z-index: -1; background: var(--coral); transition: right 0.65s var(--ease); }
.principle:hover::before { right: 0; }
.principle-code { align-self: start; padding-top: 1.4rem; font-family: var(--mono); font-size: 0.55rem; }
.principle h3 { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -0.055em; }
.principle p { margin: 0; font-size: 0.9rem; }

.system { color: var(--paper); background: var(--night-2); }
.system-head { display: grid; grid-template-columns: 1fr 0.7fr; gap: 4rem; align-items: end; padding: 6rem 0 5rem; }
.system h2 { max-width: 11ch; }
.system-intro { max-width: 34rem; margin: 0 0 0.8rem; color: #b8c0ce; font-size: 1rem; }
.stages { margin: 0; padding: 0; border-top: 1px solid var(--paper); list-style: none; }
.stage { position: relative; display: grid; grid-template-columns: 0.13fr 0.65fr 0.22fr; gap: 1rem; min-height: 13rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.stage::before { content: attr(data-stage); position: absolute; right: 8%; bottom: -0.28em; color: rgba(85,119,255,.07); font-family: var(--display); font-size: clamp(7rem, 15vw, 15rem); font-weight: 900; line-height: 0.7; letter-spacing: -0.09em; pointer-events: none; }
.stage-number, .stage-state { position: relative; z-index: 1; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.1em; }
.stage-state { justify-self: end; color: var(--ice); }
.stage h3 { position: relative; z-index: 1; margin: 0 0 0.65rem; font-family: var(--display); font-size: clamp(3rem, 6vw, 6.5rem); line-height: 0.9; letter-spacing: -0.06em; }
.stage p { position: relative; z-index: 1; max-width: 46rem; margin: 0; color: #aeb7c5; font-size: 0.9rem; }

.risk { position: relative; min-height: 100svh; overflow: hidden; color: var(--night); background: #dce2ed; padding: 6rem var(--pad); isolation: isolate; }
#riskCanvas, .risk-grid-overlay { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.risk-grid-overlay { z-index: -1; opacity: 0.35; background-image: linear-gradient(rgba(7,10,16,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(7,10,16,.08) 1px, transparent 1px); background-size: 5rem 5rem; mask-image: linear-gradient(90deg, transparent 0%, black 38%, black 100%); }
.risk-copy { max-width: 58rem; padding-top: 7rem; }
.risk h2 { max-width: 11ch; }
.risk-copy > p:last-child { max-width: 37rem; margin: 2.2rem 0 0; font-size: 1.05rem; font-weight: 600; }
.risk-controls { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 8rem; border-top: 1px solid var(--night); border-bottom: 1px solid var(--night); background: rgba(220,226,237,.62); backdrop-filter: blur(8px); }
.risk-controls article { min-height: 10rem; display: grid; align-content: space-between; padding: 1rem; border-right: 1px solid var(--line-light); }
.risk-controls article:last-child { border-right: 0; }
.risk-controls b, .risk-controls small { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.1em; }
.risk-controls span { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.7rem); font-weight: 700; }
.risk-controls small { color: #4d5d75; }
.risk-axis { position: absolute; right: 1rem; top: 10rem; bottom: 4rem; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--mono); font-size: 0.45rem; writing-mode: vertical-rl; color: rgba(7,10,16,.48); }

.firm { color: var(--night); background: var(--paper); }
.firm-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 9vw, 10rem); padding-top: 6rem; }
.firm .section-title h2 { max-width: none; text-transform: uppercase; }
.firm-note { max-width: 28rem; margin-top: 2rem; font-weight: 600; }
.facts { margin: 0; border-top: 2px solid var(--night); }
.facts > div { display: grid; grid-template-columns: 0.32fr 0.68fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-light); }
.facts dt { font-family: var(--mono); font-size: 0.58rem; color: rgba(7,10,16,.58); }
.facts dd { margin: 0; font-size: 0.88rem; }

.contact { position: relative; min-height: 88vh; overflow: hidden; padding: 6rem var(--pad) 4rem; color: var(--paper); background: var(--blue); isolation: isolate; }
.contact::before { content: "TIGER"; position: absolute; z-index: -1; left: -0.05em; bottom: -0.19em; color: rgba(7,10,16,.12); font-family: var(--display); font-size: 33vw; font-weight: 900; letter-spacing: -0.11em; line-height: 0.7; }
.contact-content { padding-top: 7rem; }
.contact h2 { max-width: 12ch; }
.contact-mail { width: min(48rem, 100%); display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; padding: 1.2rem 0; border-top: 2px solid var(--paper); border-bottom: 2px solid var(--paper); font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; }
.contact-mail b { transition: transform 0.3s var(--ease); }.contact-mail:hover b { transform: translate(0.35rem,-0.35rem); }
.contact-details { display: grid; grid-template-columns: 1fr 1.5fr 0.7fr; gap: 1rem; margin-top: 7rem; padding-top: 1rem; border-top: 1px solid rgba(234,232,225,.45); }
.contact-details div { display: flex; flex-direction: column; align-items: flex-start; }
.contact-details span { margin-bottom: 0.7rem; font-family: var(--mono); font-size: 0.52rem; color: rgba(234,232,225,.62); }
.contact-details a, .contact-details p { margin: 0; font-size: 0.82rem; }
.contact-orbit { position: absolute; z-index: -1; right: -8vw; top: 10%; width: 50vw; aspect-ratio: 1; border: 1px solid rgba(234,232,225,.22); border-radius: 50%; }
.contact-orbit i { position: absolute; inset: 16%; border: 1px solid rgba(234,232,225,.16); border-radius: 50%; }.contact-orbit i:nth-child(2){inset:32%}.contact-orbit i:nth-child(3){inset:48%;background:var(--coral);border:0}

.disclosure { display: grid; grid-template-columns: 0.35fr 0.65fr; gap: 3rem; padding: 3rem var(--pad); color: #a4adbb; background: var(--night); border-top: 1px solid var(--line-dark); }
.disclosure h2 { margin: 0; color: var(--paper); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; }
.disclosure p { margin: 0; font-size: 0.7rem; line-height: 1.8; }
.footer { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; min-height: 7rem; padding: 1rem var(--pad); color: var(--paper); background: var(--night); border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: 0.55rem; }
.footer-brand .brand-mark { width: 1.7rem; height: 1.15rem; }.footer-brand .brand-copy b{font-size:.8rem}

.reveal { opacity: 0; transform: translateY(3rem); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: 0.3; } }

@media (max-width: 980px) {
  .header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .philosophy-grid, .firm-grid { grid-template-columns: 1fr; }
  .section-title { position: relative; top: auto; }
  .system-head { grid-template-columns: 1fr; }
  .system-intro { max-width: 42rem; }
  .risk-controls { grid-template-columns: repeat(2,1fr); }
  .risk-controls article:nth-child(2n) { border-right: 0; }
  .risk-controls article:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header: 4.4rem; --pad: 1.1rem; }
  .brand-copy small { display: none; }
  .brand-mark { width: 1.85rem; height: 1.3rem; }
  .header-contact { display: none; }
  .header-actions { gap: 0; }
  .hero { min-height: 100svh; padding-top: calc(var(--header) + 3rem); }
  .hero-content { width: 100%; }
  .kicker { width: 75%; line-height: 1.5; }
  .hero h1 { font-size: 16vw; line-height: 0.84; }
  .hero h1 b, .hero h1 em { white-space: normal; }
  .hero h1 em { margin-left: 0; }
  .hero-lead { width: 92%; margin-top: 2rem; font-size: 0.95rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; min-width: 0; }
  .hero-status, .hero-coordinate { display: none; }
  .hero-index { font-size: 0.42rem; }
  .hero-index span:nth-child(2) { display: none; }
  .section { padding-top: 4rem; padding-bottom: 5rem; }
  .section-title h2, .system h2, .risk h2, .contact h2 { font-size: 14.5vw; }
  .philosophy-grid, .firm-grid { padding-top: 4rem; gap: 4rem; }
  .principle { grid-template-columns: 0.2fr 0.8fr; min-height: 12rem; }
  .principle p { grid-column: 2; padding-bottom: 1.5rem; }
  .system-head { padding: 4rem 0 3rem; }
  .stage { grid-template-columns: 0.18fr 0.82fr; min-height: 13rem; }
  .stage-state { position: absolute; right: 0; top: 1.7rem; }
  .stage::before { right: -4%; font-size: 29vw; }
  .risk { min-height: auto; padding-top: 4rem; padding-bottom: 4rem; }
  .risk-copy { padding-top: 4rem; }
  .risk-controls { margin-top: 5rem; }
  .risk-controls article { min-height: 8.5rem; }
  .facts > div { grid-template-columns: 0.34fr 0.66fr; }
  .contact { min-height: auto; padding-top: 4rem; }
  .contact-content { padding-top: 4rem; }
  .contact-details { grid-template-columns: 1fr; gap: 2rem; margin-top: 5rem; }
  .contact-orbit { width: 90vw; right: -40vw; }
  .disclosure { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer { grid-template-columns: 1fr; gap: 0.7rem; padding-top: 2rem; padding-bottom: 2rem; }
}

@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; }
  .market-flow, .blaze-output { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Japanese display lines stay intact; no orphan characters. */
html[data-lang="ja"] .section-title h2,
html[data-lang="ja"] .system h2,
html[data-lang="ja"] .risk h2,
html[data-lang="ja"] .contact h2 {
  font-size: clamp(3rem, 4.8vw, 5.8rem);
}
html[data-lang="ja"] .section-title h2 .ja,
html[data-lang="ja"] .system h2 .ja,
html[data-lang="ja"] .risk h2 .ja,
html[data-lang="ja"] .contact h2 .ja,
html[data-lang="ja"] .principle h3 .ja {
  white-space: nowrap;
  word-break: keep-all;
}
html[data-lang="ja"] .principle h3 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}

@media (max-width: 640px) {
  html[data-lang="ja"] .section-title h2,
  html[data-lang="ja"] .system h2,
  html[data-lang="ja"] .risk h2,
  html[data-lang="ja"] .contact h2 { font-size: 11vw; }
  html[data-lang="ja"] .principle h3 { font-size: 10vw; }
}
