/* ===================== TOKENS ===================== */
:root {
  --bg: #efefea;
  --bg-2: #e4e4de;
  --ink: #121212;
  --ink-2: #555;
  --line: #c9c9c2;
  --y: #fff000;
  --y-ink: #121212;
  --dark: #131313;
  --dark-2: #1d1d1d;
  --nav-w: 76px;
  --f-cn: 'Noto Sans SC', system-ui, sans-serif;
  --f-en: 'Barlow Condensed', 'Noto Sans SC', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.7, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-cn);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }
::selection { background: var(--y); color: var(--ink); }

/* ===================== LOGO ===================== */
.logo { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 0 2px; font-weight: 900; line-height: .95; }
.logo b { font-size: 18px; }
.logo b:nth-child(3) { grid-column: 1 / 3; }
.logo--big b { font-size: 64px; }
.logo--big { gap: 0 6px; }
.logo small { font-family: var(--f-en); font-size: 13px; letter-spacing: .3em; grid-column: 1 / 3; background: var(--ink); color: var(--bg); padding: 2px 6px; margin-top: 6px; text-align: center; }

/* ===================== LOADER ===================== */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--dark); color: #eee;
  display: grid; place-items: center;
  transition: clip-path .9s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #333; }
.loader__bar i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--y); transition: height .2s; }
.loader__pct { position: absolute; left: 18px; top: 14px; font-family: var(--f-en); font-weight: 800; font-size: 44px; color: var(--y); }
.loader__log { position: absolute; left: 20px; top: 70px; color: #777; }
.loader__mark { text-align: left; }
.loader__mark .logo small { background: var(--y); color: var(--ink); }
.loader__line { width: 280px; height: 1px; background: #444; margin: 24px 0 10px; position: relative; overflow: hidden; }
.loader__line::after { content: ''; position: absolute; inset: 0; width: 30%; background: var(--y); animation: scan 1.4s infinite var(--ease); }
.loader__mark p { color: #888; font-style: italic; font-weight: 600; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* ===================== SIDENAV ===================== */
.sidenav {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--nav-w); z-index: 50;
  background: var(--bg); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 18px 0;
}
.sidenav__logo { margin-bottom: 36px; }
.sidenav__menu { display: flex; flex-direction: column; gap: 6px; }
.sidenav__menu a {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  transition: background .25s;
}
.sidenav__menu svg { width: 20px; height: 20px; fill: #8a8a85; stroke: #8a8a85; transition: fill .25s, stroke .25s; }
.sidenav__menu a::after {
  content: attr(data-label); position: absolute; left: 54px; top: 50%; transform: translate(-6px, -50%);
  white-space: nowrap; background: var(--ink); color: var(--bg); font-size: 13px; padding: 6px 12px;
  opacity: 0; pointer-events: none; transition: .25s;
}
.sidenav__menu a:hover::after { opacity: 1; transform: translate(0, -50%); }
.sidenav__menu a:hover svg { fill: var(--ink); stroke: var(--ink); }
.sidenav__menu a.active { background: var(--ink); }
.sidenav__menu a.active svg { fill: var(--y); stroke: var(--y); }
.sidenav__menu a.active::before { content: ''; position: absolute; left: -16px; top: 0; bottom: 0; width: 4px; background: var(--y); }
.sidenav__foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vert { writing-mode: vertical-rl; color: var(--ink-2); font-size: 10px; }
.sound { display: flex; align-items: flex-end; gap: 2px; height: 18px; padding: 4px; }
.sound i { width: 3px; height: 4px; background: var(--ink); }
.sound.on i { animation: eq .8s infinite ease-in-out alternate; }
.sound.on i:nth-child(2) { animation-delay: -.3s; }
.sound.on i:nth-child(3) { animation-delay: -.6s; }
.sound.on i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { to { height: 16px; } }

.topbar { display: none; }

/* ===================== INDICATOR ===================== */
.indicator {
  position: fixed; right: 28px; top: 24px; z-index: 40;
  display: flex; align-items: center; gap: 8px; mix-blend-mode: difference; color: #fff;
}
.indicator i { width: 40px; height: 1px; background: currentColor; }
.indicator em { font-style: normal; margin-left: 10px; padding: 2px 8px; border: 1px solid currentColor; }

/* ===================== SECTIONS ===================== */
main { margin-left: var(--nav-w); }
.sec { position: relative; min-height: 100vh; padding: 90px 6vw 70px; overflow: hidden; }
.sec.dark { background: var(--dark); color: #eee; }
.sec__head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 48px; border-bottom: 1px solid var(--line); padding-bottom: 18px; position: relative; }
.dark .sec__head { border-color: #333; }
.sec__head::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 120px; height: 3px; background: var(--y); }
.sec__idx { font-family: var(--f-en); font-weight: 800; font-size: 72px; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--ink-2); letter-spacing: 0; }
.dark .sec__idx { -webkit-text-stroke-color: #555; }
.sec__head h2 { font-size: 34px; font-weight: 900; letter-spacing: .05em; }
.sec__head p { color: var(--ink-2); margin-top: 4px; }
.sec__deco { margin-left: auto; color: var(--ink-2); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== BUTTONS ===================== */
.btn { display: inline-flex; align-items: center; gap: 14px; height: 50px; padding: 0 22px; font-weight: 700; position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 14px) 100%, 0 100%); }
.btn span, .btn i { position: relative; z-index: 1; font-style: normal; }
.btn::before { content: ''; position: absolute; inset: 0; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--y { background: var(--y); color: var(--ink); }
.btn--y::before { background: var(--ink); }
.btn--y:hover { color: var(--y); }
.btn--ghost { border: 1px solid var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }
.arrow { width: 46px; height: 46px; border: 1px solid currentColor; font-size: 18px; transition: .25s; }
.arrow:hover { background: var(--y); color: var(--ink); border-color: var(--y); }
.chip { background: var(--y); color: var(--ink); padding: 3px 8px; font-weight: 600; }

/* ===================== HOME ===================== */
.sec--home { display: flex; align-items: center; padding-top: 60px; }
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px; opacity: .45;
  mask-image: radial-gradient(ellipse at 65% 50%, #000 20%, transparent 75%);
}
.home__visual {
  position: absolute; right: 0; top: 0; bottom: 40px; width: 58%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden; background: var(--dark);
}
.home__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; display: block; animation: heroZoom 18s ease-in-out infinite alternate; }
.home__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0, rgba(239,239,234,0) 30%), repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.06) 3px 4px); }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.home__rings { position: absolute; z-index: 1; right: -6vw; top: 50%; width: 92vh; height: 92vh; transform: translateY(-50%); pointer-events: none; }
.home__rings svg { width: 100%; height: 100%; overflow: visible; }
.home__rings circle { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; }
.home__rings .r1 { stroke-dasharray: 2 8; animation: spin 80s linear infinite; transform-origin: center; }
.home__rings .r2 { stroke: #fff; stroke-dasharray: 160 40 20 40; animation: spin 40s linear infinite reverse; transform-origin: center; }
.home__rings .r3 { stroke: var(--y); stroke-width: 3; stroke-dasharray: 60 900; animation: spin 12s linear infinite; transform-origin: center; }
.home__rings .ticks line { stroke: rgba(255,255,255,.7); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(calc(-50% - 14px)); } }

.home__title { position: relative; z-index: 2; max-width: 680px; }
.home__title .tag { color: var(--ink-2); margin-bottom: 18px; }
.home__title h1 { font-size: clamp(72px, 11vw, 168px); font-weight: 900; line-height: .9; letter-spacing: -.02em; }
.home__title .en { font-family: var(--f-en); font-weight: 800; font-size: clamp(24px, 3vw, 40px); letter-spacing: .04em; margin-top: 12px; display: inline-block; background: var(--ink); color: var(--bg); padding: 0 14px; }
.home__title .en span { color: var(--y); font-weight: 600; }
.home__title .lead { margin: 26px 0 34px; font-size: 17px; line-height: 1.9; color: #333; border-left: 3px solid var(--y); padding-left: 16px; }
.home__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.home__hud { position: absolute; z-index: 2; color: var(--ink-2); line-height: 1.9; }
.hud-tl { left: 6vw; top: 30px; }
.hud-br { right: 30px; bottom: 80px; text-align: right; color: #fff; background: rgba(0,0,0,.55); padding: 8px 12px; }
.hud-br .sig i { background: #fff; }
.blink { color: #e33; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sig { display: inline-flex; gap: 2px; align-items: flex-end; vertical-align: middle; }
.sig i { width: 3px; background: var(--ink); }
.sig i:nth-child(1){height:3px}.sig i:nth-child(2){height:5px}.sig i:nth-child(3){height:7px}.sig i:nth-child(4){height:9px}.sig i:nth-child(5){height:11px;background:#bbb}

.home__ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: var(--y); overflow: hidden; display: flex; align-items: center; z-index: 3; }
.ticker { display: flex; gap: 60px; white-space: nowrap; animation: marquee 30s linear infinite; font-weight: 600; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.scroll-hint { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-2); z-index: 3; }
.scroll-hint i { width: 1px; height: 40px; background: var(--ink-2); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--ink); animation: drop 1.6s infinite; }
@keyframes drop { from { transform: translateY(-14px); } to { transform: translateY(40px); } }

/* ===================== OPERATORS ===================== */
.ops { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 236px; gap: 36px; align-items: stretch; }
.ops__portrait { position: relative; min-height: 600px; background: var(--bg-2); overflow: hidden; --ec: var(--y); }
.ops__portrait::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--ec) 28%, transparent), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(0,0,0,.035) 12px 13px);
  transition: background .6s;
}
.ops__bigname { position: absolute; left: -6px; top: 6px; right: 0; font-family: var(--f-en); font-weight: 800; font-size: clamp(80px, 9vw, 150px); line-height: .85; color: transparent; -webkit-text-stroke: 1px #b5b5ad; word-break: break-all; transition: opacity .5s; }
.ops__art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: opacity .5s var(--ease), transform .6s var(--ease); filter: drop-shadow(0 10px 30px rgba(0,0,0,.18)); }
.ops__art.is-avatar { width: 50%; height: auto; left: 25%; bottom: 25%; }
.ops__portrait.switching .ops__art { opacity: 0; transform: translateX(40px); }
.ops__portrait.switching .ops__bigname { opacity: 0; }
.ops__frame i { position: absolute; width: 18px; height: 18px; border: 2px solid var(--ink); z-index: 2; }
.ops__frame i:nth-child(1) { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.ops__frame i:nth-child(2) { right: 12px; top: 12px; border-left: 0; border-bottom: 0; }
.ops__frame i:nth-child(3) { left: 12px; bottom: 12px; border-right: 0; border-top: 0; }
.ops__frame i:nth-child(4) { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.ops__code { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--y); padding: 8px 14px; z-index: 2; }
.ops__elem { position: absolute; right: 16px; top: 16px; z-index: 2; background: var(--ec); color: #111; padding: 4px 10px; font-weight: 600; }

.ops__info { display: flex; flex-direction: column; justify-content: center; --ec: var(--y); }
.ops__info > * { transition: opacity .4s, transform .4s var(--ease); }
.ops__info.switching > * { opacity: 0; transform: translateY(12px); }
.ops__count { color: var(--ink-2); margin-bottom: 8px; }
.ops__info h3 { font-size: 64px; font-weight: 900; line-height: 1; }
.ops__en { font-family: var(--f-en); font-size: 20px; font-weight: 600; letter-spacing: .25em; color: var(--ink-2); margin: 6px 0 18px; }
.ops__meta { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); column-gap: 16px; }
.ops__meta div { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.ops__meta dt { color: var(--ink-2); font-size: 13px; min-width: 32px; }
.ops__meta dd { font-weight: 700; font-size: 14px; }
.ops__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ops__tags span { font-size: 12px; padding: 3px 10px; border: 1px solid var(--ink); }
.ops__tags span:first-child { background: var(--ink); color: var(--y); }
.ops__info blockquote { margin: 18px 0 12px; font-size: 14px; line-height: 1.8; font-weight: 500; padding: 12px 16px 12px 20px; background: var(--ink); color: var(--bg); position: relative; }
.ops__info blockquote::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ec); }
.ops__desc { line-height: 1.9; color: #333; font-size: 14px; }
.ops__stats { margin-top: 16px; display: grid; gap: 8px; }
.ops__statcap { color: var(--ink-2); font-size: 10px; }
.stat { display: grid; grid-template-columns: 40px 1fr 36px; align-items: center; gap: 12px; font-size: 13px; }
.stat__bar { height: 6px; background: var(--line); position: relative; overflow: hidden; }
.stat__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.stat__bar i::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; background: var(--ec); }
.stat b { font-family: var(--f-mono); font-size: 12px; text-align: right; }
.ops__cv { margin-top: 16px; color: var(--ink-2); }
.ops__cv a { color: var(--ink); border-bottom: 1px solid var(--y); }

.ops__side { display: flex; flex-direction: column; gap: 10px; min-height: 0; max-height: 600px; }
.ops__filter { display: flex; flex-wrap: wrap; gap: 4px; }
.ops__filter button { font-size: 12px; padding: 4px 9px; border: 1px solid var(--line); transition: .2s; }
.ops__filter button.active { background: var(--ink); color: var(--y); border-color: var(--ink); }
.ops__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; overflow-y: auto; padding-right: 4px; align-content: start; scrollbar-width: thin; }
.ops__list button { position: relative; aspect-ratio: 1 / 1.18; background: #d9d9d2; border: 1px solid var(--line); overflow: hidden; transition: .25s; }
.ops__list button::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sc); z-index: 2; }
.ops__list button::after { content: ''; position: absolute; right: 0; top: 0; border-top: 12px solid var(--ec); border-left: 12px solid transparent; z-index: 2; }
.ops__list img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.6); transition: .3s; }
.ops__list span { position: absolute; left: 0; right: 0; bottom: 3px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: 11px; font-weight: 700; padding: 10px 4px 3px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops__list button:hover img { filter: none; transform: scale(1.06); }
.ops__list button.active { border-color: var(--ink); outline: 2px solid var(--y); outline-offset: -2px; }
.ops__list button.active img { filter: none; }
.ops__list button.hide { display: none; }

/* ===================== LORE ===================== */
.lore { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.lore__stage { position: relative; aspect-ratio: 16 / 10; background: var(--dark-2); border: 1px solid #333; overflow: hidden; }
.lore__stage::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#2a2a2a 1px, transparent 1px), linear-gradient(90deg, #2a2a2a 1px, transparent 1px); background-size: 40px 40px; }
.lore__stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lore__stage .scan { position: absolute; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, rgba(255,240,0,.12), transparent); animation: vscan 4s linear infinite; }
@keyframes vscan { from { top: -80px; } to { top: 100%; } }
.lore__stage .corner { position: absolute; color: var(--y); font-family: var(--f-mono); font-size: 10px; }
.lore__panel h3 { font-size: 46px; font-weight: 900; margin: 10px 0 4px; }
.lore__num { color: var(--y); }
.lore__sub { color: #888; margin-bottom: 22px; }
.lore__panel > p:not(.mono) { line-height: 2; color: #bbb; min-height: 130px; }
.lore__ctrl { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.lore__dots { display: flex; gap: 6px; }
.lore__dots button { width: 24px; height: 4px; background: #444; transition: .3s; }
.lore__dots button.active { width: 48px; background: var(--y); }
.fade-swap { animation: fadeSwap .6s var(--ease); }
@keyframes fadeSwap { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ===================== MEDIA ===================== */
.media { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; }
.media__screen {
  position: relative; aspect-ratio: 16 / 9; background: var(--dark) center / cover no-repeat; overflow: hidden; cursor: pointer;
}
.media__screen::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.12) 3px 4px); pointer-events: none; }
.media__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity .4s; z-index: 1; }
.media__screen.playing video { opacity: 1; }
.media__screen.playing::after, .media__screen.playing .media__play, .media__screen.playing .media__time { display: none; }
.media__play { z-index: 2; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); background: var(--y); color: var(--ink); display: grid; place-items: center; font-size: 26px; clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%); transition: transform .3s var(--ease); }
.media__screen:hover .media__play { transform: translate(-50%, -50%) scale(1.12); }
.media__time { position: absolute; right: 14px; top: 12px; color: #fff; background: rgba(0,0,0,.6); padding: 3px 8px; z-index: 2; }
.media__more { margin-left: auto; color: var(--ink); border-bottom: 1px solid var(--y); }
.media__cap { padding: 18px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.media__cap h3 { width: 100%; font-size: 22px; font-weight: 900; }
.media__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.media__list { max-height: 520px; overflow-y: auto; scrollbar-width: thin; }
.media__list li { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 14px; padding: 10px 8px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .25s, padding .25s; }
.media__list li:hover { background: var(--bg-2); padding-left: 14px; }
.media__list li.active { background: var(--ink); color: var(--bg); }
.media__list li.active .mono { color: var(--y); }
.media__list img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.media__list h4 { font-size: 14px; }
.media__list .mono { color: var(--ink-2); font-size: 10px; }

/* ===================== INDUSTRY ===================== */
.ind__groups { display: flex; gap: 24px; margin-bottom: 16px; }
.ind__groups button { font-size: 22px; font-weight: 900; color: #aaa; display: flex; align-items: baseline; gap: 8px; padding-bottom: 6px; border-bottom: 3px solid transparent; transition: .25s; }
.ind__groups button small { font-size: 11px; font-weight: 400; }
.ind__groups button.active { color: var(--ink); border-color: var(--y); }
.ind__group { color: var(--ink-2); }
.ind__tabs { display: flex; gap: 0; border: 1px solid var(--ink); width: fit-content; margin-bottom: 30px; flex-wrap: wrap; }
.ind__tabs button { padding: 12px 22px; font-weight: 700; border-right: 1px solid var(--ink); transition: .25s; }
.ind__tabs button:last-child { border-right: 0; }
.ind__tabs button.active { background: var(--ink); color: var(--y); }
.ind__tabs button:not(.active):hover { background: var(--y); }
.ind__body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.ind__viz { position: relative; background: var(--dark); padding: 20px; }
.ind__viz svg { width: 100%; display: block; }
#factory .grid-lines line { stroke: #222; }
#factory .m { fill: #1a1a1a; stroke: #666; stroke-width: 1.5; }
#factory .m--y { stroke: var(--y); stroke-width: 2; }
#factory .ml { fill: #aaa; font-family: var(--f-mono); font-size: 11px; text-anchor: middle; }
#factory .item { fill: var(--y); }
#factory .item.raw { fill: #7fd0ff; }
.ind__readout { position: absolute; right: 18px; top: 16px; color: #888; line-height: 1.8; text-align: right; }
.ind__readout b { color: #fff; }
.ind__readout .ok { color: #6f6; }
.ind__step { font-family: var(--f-en); font-size: 80px; font-weight: 800; color: var(--y); -webkit-text-stroke: 1px var(--ink); line-height: 1; letter-spacing: 0; }
.ind__text h3 { font-size: 36px; font-weight: 900; margin: 6px 0 16px; }
.ind__text > p:not(.mono) { line-height: 2; color: #333; }
.ind__feat { margin-top: 22px; display: grid; gap: 8px; }
.ind__feat li { padding: 10px 14px; border: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.ind__feat li::before { content: ''; width: 8px; height: 8px; background: var(--y); outline: 1px solid var(--ink); }

/* ===================== NOTICE ===================== */
.notice__filter { display: flex; gap: 8px; margin-bottom: 18px; }
.notice__filter button { padding: 8px 18px; border: 1px solid var(--line); font-size: 14px; transition: .25s; }
.notice__filter button.active { background: var(--ink); color: var(--y); border-color: var(--ink); }
.notice__list li { display: grid; grid-template-columns: 110px 90px 1fr 30px; gap: 20px; align-items: center; padding: 22px 10px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; isolation: isolate; transition: padding .3s var(--ease); }
.notice__list li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--y); z-index: -1; transition: width .4s var(--ease); }
.notice__list li:hover { padding-left: 24px; }
.notice__list li:hover::before { width: 100%; }
.notice__list .cat { font-size: 12px; border: 1px solid var(--ink); text-align: center; padding: 2px 0; }
.notice__list h4 { font-size: 16px; }
.notice__list .go { font-family: var(--f-mono); }
.notice__list li.hide { display: none; }

.footer { margin-top: 80px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.footer a { color: var(--ink); border-bottom: 1px solid var(--y); }
.footer .logo { color: var(--ink); margin-bottom: 8px; align-self: flex-start; }

/* ===================== MODAL ===================== */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,10,.7); backdrop-filter: blur(4px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; padding: 16px; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal__box { background: var(--bg); width: min(640px, 100%); padding: 40px; position: relative; border-top: 6px solid var(--y); transform: translateY(20px); transition: transform .4s var(--ease); }
.modal.open .modal__box { transform: none; }
.modal__close { position: absolute; right: 16px; top: 14px; font-size: 18px; width: 36px; height: 36px; }
.modal__close:hover { background: var(--ink); color: var(--y); }
.modal__meta { color: var(--ink-2); margin-bottom: 8px; }
.modal h3 { font-size: 26px; font-weight: 900; margin-bottom: 18px; }
#modalBody { line-height: 2; color: #333; }

/* ===================== CURSOR ===================== */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 1px solid var(--ink); mix-blend-mode: difference; border-color: #fff; transition: width .2s, height .2s, margin .2s; }
.cursor i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; background: var(--y); }
.cursor.hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
@media (hover: none) { .cursor { display: none; } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .ops { grid-template-columns: 1fr 1fr; }
  .ops__side { grid-column: 1 / 3; max-height: none; }
  .ops__list { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); max-height: 260px; }
  .home__visual { width: 70%; opacity: .9; }
  .lore, .media, .ind__body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --nav-w: 0px; }
  .sidenav { transform: translateX(-100%); width: 220px; align-items: stretch; padding: 70px 16px 20px; transition: transform .4s var(--ease); }
  .sidenav.open { transform: none; }
  .sidenav__logo { display: none; }
  .sidenav__menu a { width: 100%; justify-content: start; display: flex; gap: 12px; padding: 0 12px; }
  .sidenav__menu a::after { position: static; opacity: 1; transform: none; background: none; color: inherit; padding: 0; }
  .sidenav__menu a.active::after { color: var(--y); }
  .sidenav__menu a.active::before { display: none; }
  .topbar { display: flex; position: fixed; left: 0; right: 0; top: 0; height: 56px; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; padding: 0 16px; }
  .burger { width: 36px; height: 36px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
  .burger i { height: 2px; background: var(--ink); transition: .3s; }
  .burger.open i:first-child { transform: translateY(4px) rotate(45deg); }
  .burger.open i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .indicator { display: none; }
  .sec { padding: 86px 16px 60px; }
  .sec__head { flex-wrap: wrap; }
  .sec__idx { font-size: 48px; }
  .sec__head h2 { font-size: 26px; }
  .sec__deco { display: none; }
  .hud-tl { left: 16px; top: 70px; }
  .hud-br { display: none; }
  .home__visual { width: 100%; bottom: 40px; top: auto; height: 42%; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .home__visual::after { background: linear-gradient(180deg, var(--bg) 0, rgba(239,239,234,0) 35%); }
  .sec--home { align-items: flex-start; padding-top: 140px; }
  .home__title .lead { background: rgba(239,239,234,.85); }
  .home__rings { width: 70vh; height: 70vh; right: -40vw; opacity: .6; }
  .scroll-hint { display: none; }
  .ops { grid-template-columns: 1fr; }
  .ops__side { grid-column: auto; }
  .ops__portrait { min-height: 460px; }
  .ops__info h3 { font-size: 48px; }
  .media__list li { grid-template-columns: 80px 1fr; }
  .media__list li > span { display: none; }
  .media__list img { width: 80px; }
  .ind__groups button { font-size: 18px; }
  .ops__meta { grid-template-columns: 1fr; }
  .lore__panel h3 { font-size: 34px; }
  .ind__tabs { width: 100%; }
  .ind__tabs button { flex: 1 1 50%; padding: 10px; border-bottom: 1px solid var(--ink); }
  .ind__readout { position: static; text-align: left; margin-top: 10px; }
  .notice__list li { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .notice__list .date { grid-row: 1; }
  .notice__list h4 { grid-column: 1 / 3; }
  .notice__list .go { display: none; }
  .notice__list .cat { padding: 2px 8px; }
  .modal__box { padding: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
