/* hp05 cyber-hud — Amaranthe corporate site draft
   Palette: void #05070C / neon cyan #00F0FF / neon magenta #FF2E88 / warning yellow #F5E663 (sparingly)
   Type: Orbitron (display) / JetBrains Mono (labels) / M PLUS 1 (Japanese) */

:root {
  --bg: #05070C;
  --bg-2: #080C14;
  --panel: rgba(8, 12, 20, .84);
  --cyan: #00F0FF;
  --magenta: #FF2E88;
  --yellow: #F5E663;
  --text: #E6F1F5;
  --text-2: #AFC0CB;
  --text-3: #8396A3;
  --line: rgba(0, 240, 255, .18);
  --line-2: rgba(0, 240, 255, .45);
  --f-en: "Orbitron", "Segoe UI", "Hiragino Sans", sans-serif;
  --f-mono: "JetBrains Mono", "M PLUS 1", ui-monospace, Consolas, "Hiragino Sans", "Yu Gothic", monospace;
  --f-ja: "M PLUS 1", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  /* phone / fax numbers: plain zero (Orbitron's slashed zero reads as "Ø") */
  --f-num: "M PLUS 1", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  /* M PLUS 1 has no glyph for 筥, so the address uses one system font for every character */
  --f-addr: "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --header-h: 72px;
  --pad: clamp(20px, 4vw, 48px);
  --maxw: 1160px;
  --chamfer: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

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

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

/* body stays transparent: html paints the void colour, so the fixed graph paper (body::before)
   and the outlined giant words (z-index -1) are not hidden behind an opaque body background */
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--f-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 0;
}

/* faint HUD graph paper behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
/* Long body copy fills the line (normal Japanese breaking + strict kinsoku; "pretty" avoids a lone
   character on the last line). Phrase-aware breaks and balancing are kept for short texts only:
   headings, warnings, questions, leads and the one- or two-sentence notes in steps, strengths and answers. */
p, li, dt, dd, th, td, label { word-break: normal; line-break: strict; text-wrap: pretty; }
h1, h2, h3,
.warn__text, .qa__q, .hub__title, .hub__text, .scan__note, .hero__catch, .hero__lead,
.modules__lead, .inhouse__claim, .spec__lead, .protocol__lead, .philosophy,
.step__body p, .spec-item__body p, .contact__lead,
.mod__io dd, .data-rows dd, .log-item__text, .origin__word { word-break: auto-phrase; text-wrap: balance; }
/* short answers and the name-origin note: phrase-aware breaks (no split words) but lines stay full */
.qa dd, .core__panel--origin p:last-child { word-break: auto-phrase; text-wrap: wrap; }
em { font-style: normal; }
.nw { white-space: nowrap; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.mono { font-family: var(--f-mono); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 10001;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--yellow);
  color: #05070C;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--maxw));
  margin-inline: auto;
}

/* HUD corner brackets: put class .hud on any positioned box */
.hud { position: relative; }
.hud::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  pointer-events: none;
  --c: var(--cyan);
  --s: 16px;
  --w: 2px;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c) 0 0) top left / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c) 0 0) top right / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c) 0 0) top right / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c) 0 0) bottom left / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c) 0 0) bottom left / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c) 0 0) bottom right / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c) 0 0) bottom right / var(--w) var(--s) no-repeat;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  font-family: var(--f-ja);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn .ico { width: 16px; height: 16px; }
.btn--primary {
  color: #05070C;
  background: var(--cyan);
  clip-path: var(--chamfer);
}
.btn--primary:hover { background: var(--magenta); }
.btn--primary:focus-visible { outline: none; background: var(--yellow); }
.btn--ghost {
  color: var(--text);
  background: rgba(5, 7, 12, .45);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost .ico { color: var(--cyan); }
.btn--ghost:hover { background: rgba(0, 240, 255, .1); box-shadow: inset 0 0 0 1px var(--cyan); }
.btn--sm { min-height: 46px; padding: 0 18px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 24px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.link-arrow .ico { width: 14px; height: 14px; transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- boot sequence (only while html.is-booting) ---------- */
.boot { display: none; }
.is-booting .boot {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  animation: boot-failsafe .01s linear 2.6s forwards;
}
.boot.is-leaving { clip-path: inset(0 0 100% 0); transition: clip-path .42s cubic-bezier(.7, 0, .3, 1); }
@keyframes boot-failsafe { to { opacity: 0; visibility: hidden; } }
.boot__inner { position: relative; width: min(100% - 48px, 560px); font-family: var(--f-mono); }
.boot__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  font-family: var(--f-ja);
  font-weight: 800;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: .16em;
  color: #fff;
}
.boot__mark {
  width: 18px; height: 18px;
  border: 2px solid var(--cyan);
  background: var(--magenta);
  box-shadow: inset 0 0 0 3px var(--bg);
  transform: rotate(45deg);
}
.boot__lines { list-style: none; margin: 0; padding: 0; min-height: 9.6em; font-size: 14px; line-height: 1.9; color: var(--text-2); }
.boot__lines li { display: flex; justify-content: space-between; gap: 16px; }
.boot__ok { color: var(--cyan); }
.boot__bar { height: 2px; margin-top: 18px; background: rgba(0, 240, 255, .15); overflow: hidden; }
.boot__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--magenta)); transform: scaleX(0); transform-origin: left; transition: transform .16s linear; }
.boot__skip {
  position: absolute;
  right: 0;
  bottom: -76px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--cyan);
  font: 600 13px/1 var(--f-mono);
  letter-spacing: .2em;
  cursor: pointer;
}
.boot__skip span { font-family: var(--f-ja); letter-spacing: .1em; color: var(--text-2); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 7, 12, .5);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(0, 240, 255, .14);
  transition: background-color .3s;
}
.site-header.is-scrolled::before { background: rgba(5, 7, 12, .88); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.6vw, 32px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.logo__mark { width: 30px; height: 30px; color: var(--cyan); }
.logo__core { fill: var(--magenta); }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__en { font-family: var(--f-en); font-weight: 800; font-size: 17px; letter-spacing: .16em; }
.logo__ja { font-size: 11px; font-weight: 500; letter-spacing: .24em; color: var(--text-2); }
.logo:hover .logo__en { animation: glitch .42s steps(2, end) 1; }

.gnav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.gnav__list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.gnav__list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 9px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s;
}
/* section numbers and English names are shown in the phone / tablet menu only */
.gnav__no, .gnav__en { display: none; }
.gnav__list a::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; bottom: 4px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.gnav__list a:hover, .gnav__list a[aria-current] { color: var(--text); }
.gnav__list a:hover::after, .gnav__list a[aria-current]::after { transform: scaleX(1); }
.gnav__cta { margin-left: 8px; }
.gnav__cta a {
  padding: 10px 16px;
  color: #05070C;
  background: var(--cyan);
  font-weight: 800;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.gnav__cta a::after { display: none; }
.gnav__cta a:hover { color: #05070C; background: var(--magenta); }
.gnav__cta a:focus-visible { outline: none; background: var(--yellow); }
.gnav__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--text);
  font-family: var(--f-num);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
  text-decoration: none;
}
.gnav__tel .ico { color: var(--cyan); width: 14px; height: 14px; }
.header-tel, .menu-btn { display: none; }

@media (max-width: 1279px) {
  .gnav__list a { padding: 10px 8px; }
}

/* section rail (wide screens only): ticks at the right edge, names appear on hover */
.rail { display: none; }
@media (min-width: 1200px) {
  .rail {
    display: block;
    position: fixed;
    right: 12px;
    top: 50%;
    z-index: 40;
    transform: translateY(-50%);
  }
  .rail ol { display: grid; margin: 0; padding: 0; list-style: none; }
  .rail a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30px;
    height: 24px;
    color: var(--text-3);
    text-decoration: none;
  }
  .rail a::after {
    content: "";
    width: 12px;
    height: 1px;
    background: currentColor;
    transition: width .2s, background-color .2s;
  }
  .rail__no, .rail__name {
    position: absolute;
    right: 100%;
    top: 50%;
    margin-right: 6px;
    transform: translateY(-50%);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .12em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
  }
  .rail__no { display: none; }
  .rail__name { padding: 2px 8px; background: rgba(5, 7, 12, .92); color: var(--text); transition: opacity .2s; }
  .rail a[aria-current] { color: var(--cyan); }
  .rail a[aria-current]::after { width: 26px; background: var(--magenta); }
  .rail a:hover::after { width: 22px; background: var(--cyan); }
  .rail a:hover .rail__name, .rail a:focus-visible .rail__name { opacity: 1; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  min-height: max(660px, 100svh);
  /* the body never starts inside the band of the top HUD tags (HUD inset 16px + tag 20px + one 18px line),
     so short laptop screens (1366x657, 1280x720...) cannot stack the tag on the eyebrow */
  padding: calc(var(--header-h) + 76px) 0 24px;
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: #0a0618 url("../video/hero.jpg") center / cover no-repeat; }
.hero__video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(1.06); }
.hero__video::-webkit-media-controls, .monitor__video::-webkit-media-controls { display: none !important; }
.hero__shade { position: absolute; inset: 0; background: rgba(5, 7, 12, .22); }
/* PC / tablet: grade the footage toward the palette's two neons (cyan on the left, magenta on the right).
   Left off on phones to keep compositing over the playing video light. */
@media (min-width: 641px) {
  .hero__shade::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(0, 240, 255, .35) 0%, rgba(0, 240, 255, 0) 50%, rgba(255, 46, 136, 0) 55%, rgba(255, 46, 136, .25) 100%);
    mix-blend-mode: color;
  }
}
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}
.scanlines::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -20%;
  height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, .07), transparent);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { to { transform: translateY(700%); } }

.hero__hud {
  position: absolute;
  inset: calc(var(--header-h) + 16px) 16px 16px;
  z-index: -1;
  pointer-events: none;
  --c: rgba(0, 240, 255, .85);
}
.hero__hud::before {
  content: "";
  position: absolute;
  inset: 0;
  --s: 22px; --w: 2px; --c: rgba(0, 240, 255, .8);
  background:
    linear-gradient(var(--c) 0 0) top left / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c) 0 0) top left / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c) 0 0) top right / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c) 0 0) top right / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c) 0 0) bottom left / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c) 0 0) bottom left / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c) 0 0) bottom right / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c) 0 0) bottom right / var(--w) var(--s) no-repeat;
}
.hud-ruler { position: absolute; display: block; }
.hud-ruler--x {
  left: 48px; right: 48px; top: 0;
  height: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 240, 255, .55) 0 1px, transparent 1px 96px) top / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(0, 240, 255, .32) 0 1px, transparent 1px 12px) top / 100% 5px no-repeat;
}
.hud-ruler--y {
  top: 48px; bottom: 48px; left: 0;
  width: 10px;
  background:
    repeating-linear-gradient(180deg, rgba(0, 240, 255, .55) 0 1px, transparent 1px 96px) left / 10px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(0, 240, 255, .32) 0 1px, transparent 1px 12px) left / 5px 100% no-repeat;
}
.hud-tag {
  position: absolute;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .18em;
  color: rgba(230, 241, 245, .82);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.hud-tag--tl { left: 24px; top: 20px; color: var(--cyan); white-space: nowrap; }
.hud-tag--tr { right: 24px; top: 20px; text-align: right; }
.hud-tag--tr span { color: #fff; font-weight: 700; }

.reticle {
  position: absolute;
  right: 11%;
  top: 16%;
  width: clamp(130px, 15vw, 210px);
  color: rgba(0, 240, 255, .85);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, .45));
}
.reticle svg { width: 100%; height: auto; overflow: visible; }
.reticle__spin { transform-origin: 110px 110px; animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* iPad landscape / small laptops: keep the reticle clear of the hero panel */
@media (min-width: 1024px) and (max-width: 1199px) {
  .reticle { right: 4%; top: 7%; width: 150px; }
}

.hero__body {
  position: relative;
  width: min(100% - 2 * var(--pad), 1240px);
  margin-inline: auto;
}
.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}
.hero__eyebrow .mono { font-size: 13px; font-weight: 500; letter-spacing: .16em; color: var(--cyan); }
.hero__en {
  display: flex;
  flex-direction: column;
  margin: 0 0 22px;
  font-family: var(--f-en);
  font-weight: 900;
  font-size: clamp(44px, 9.2vw, 128px);
  line-height: .95;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 0 28px rgba(0, 240, 255, .35), 0 2px 14px rgba(0, 0, 0, .6);
}
.hero__en-line + .hero__en-line {
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
  text-shadow: 0 0 22px rgba(0, 240, 255, .4);
}
@media (min-width: 1024px) {
  .hero__en { flex-direction: row; flex-wrap: wrap; column-gap: .3em; font-size: clamp(64px, 8.6vw, 124px); }
}
.hero__panel {
  max-width: 760px;
  padding: 28px 34px 30px;
  background: rgba(5, 7, 12, .7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-left: 2px solid var(--cyan);
}
.hero__title {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .03em;
}
.hero__lead { margin: 0 0 24px; color: var(--text-2); font-size: 16px; line-height: 1.9; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.hero__cta .btn--ghost { font-family: var(--f-num); font-size: 18px; font-weight: 800; letter-spacing: .05em; }

.hero__status {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 2 * var(--pad), 1240px);
  margin-inline: auto;
  padding: 10px 6px 10px 20px;
  background: rgba(5, 7, 12, .74);
  border-top: 1px solid rgba(0, 240, 255, .4);
}
.hero__status-label { margin: 0; font-size: 12px; letter-spacing: .22em; color: var(--magenta); font-weight: 700; flex: none; }
.hero__catch { flex: 1; margin: 0; font-size: 15px; font-weight: 500; line-height: 1.7; }
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .2em;
  text-decoration: none;
  flex: none;
}
.hero__scroll .ico { width: 14px; height: 14px; }
.br-pc { display: inline; }

/* ---------- section scaffolding ---------- */
.sec {
  position: relative;
  padding: clamp(88px, 10vw, 140px) 0;
  border-top: 1px solid rgba(0, 240, 255, .12);
  overflow-x: clip;
}
.sec::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(0, 240, 255, .4) 0 1px, transparent 1px 16px);
  opacity: .45;
  pointer-events: none;
}
.sec-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--cyan);
  text-transform: uppercase;
}
.sec-code__no {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--cyan);
  font-weight: 700;
  letter-spacing: .06em;
}
.sec-code__name::before { content: "// "; color: var(--text-3); }
.sec-title {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .06em;
}

.giant {
  position: absolute;
  z-index: -1;
  margin: 0;
  font-family: var(--f-en);
  font-weight: 900;
  font-size: clamp(84px, 15vw, 220px);
  line-height: 1;
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 240, 255, .2);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* glitch: one short RGB split, used once per element */
.glitch { animation: glitch .42s steps(2, end) 1; }
@keyframes glitch {
  0% { text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan); transform: translateX(0); clip-path: inset(0 0 0 0); }
  20% { text-shadow: -3px 0 var(--magenta), 3px 0 var(--cyan); transform: translateX(-2px); clip-path: inset(8% 0 52% 0); }
  40% { text-shadow: 3px 0 var(--magenta), -3px 0 var(--cyan); transform: translateX(2px); clip-path: inset(58% 0 6% 0); }
  60% { text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan); transform: translateX(-1px); clip-path: inset(28% 0 30% 0); }
  80% { text-shadow: 1px 0 var(--magenta), -1px 0 var(--cyan); transform: none; clip-path: inset(0); }
  100% { text-shadow: none; transform: none; clip-path: none; }
}

/* ---------- 01 scan ---------- */
.scan__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 72px;
  align-items: start;
}
.scan__head .sec-title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.4; letter-spacing: .03em; }
.scan__note { margin: 20px 0 0; color: var(--text-2); font-size: 17px; }
.warn-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.warn {
  padding: 22px 24px 24px;
  background: linear-gradient(180deg, rgba(245, 230, 99, .07), rgba(245, 230, 99, 0) 70%), var(--panel);
  border: 1px solid rgba(245, 230, 99, .22);
  border-left: 3px solid var(--yellow);
}
.warn__code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--yellow);
}
.warn__code .ico { width: 15px; height: 15px; }
.warn__text { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.65; word-break: auto-phrase; }

/* ---------- 02 modules ---------- */
.modules .giant { top: 56px; right: -1vw; }
.modules__head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px 72px;
  align-items: end;
  margin-bottom: 64px;
}
/* one terminal-style command line instead of a two-colour slogan */
.modules__lead {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 14px 0 14px 18px;
  border-left: 2px solid var(--cyan);
  background: linear-gradient(90deg, rgba(0, 240, 255, .07), rgba(0, 240, 255, 0) 70%);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .03em;
}
.modules__prompt { flex: none; font-size: .8em; font-weight: 700; color: var(--cyan); }
.modules__intro p:not(.modules__lead) { margin: 18px 0 0; color: var(--text-2); max-width: 42em; }

.board { position: relative; }
.board__traces {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.js .board__traces { display: block; }
html:not(.js) .board__traces { display: none; }
.trace { fill: none; stroke: var(--cyan); stroke-width: 1.5; opacity: .75; filter: drop-shadow(0 0 3px rgba(0, 240, 255, .6)); }
.pulse { fill: var(--magenta); opacity: 0; filter: drop-shadow(0 0 5px var(--magenta)); }
.board__mods {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px;
}
.mod {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  background: var(--panel);
  border: 1px solid rgba(0, 240, 255, .16);
}
.mod__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.mod__code { display: flex; flex-direction: column; margin: 0; font-family: var(--f-mono); font-size: 13px; letter-spacing: .16em; color: var(--text-3); line-height: 1.5; }
.mod__en { font-family: var(--f-en); font-weight: 800; font-size: 26px; letter-spacing: .08em; color: var(--cyan); line-height: 1.25; }
.mod__icon { width: 34px; height: 34px; fill: var(--magenta); flex: none; }
.mod__title { margin: 0 0 12px; font-size: 22px; font-weight: 800; line-height: 1.45; }
.mod__text { margin: 0 0 22px; color: var(--text-2); font-size: 15px; line-height: 1.9; }
.mod__io { display: grid; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px dashed rgba(0, 240, 255, .28); }
/* the trace starts inside each module: a bus line from the I/O block down to a terminal pad at the
   bottom edge, where the board's SVG trace takes over. It absorbs the height difference between cards. */
.mod__bus {
  position: relative;
  flex: 1 0 34px;
  align-self: center;
  width: 2px;
  margin: 16px 0 -26px;
  background: repeating-linear-gradient(180deg, rgba(0, 240, 255, .55) 0 6px, transparent 6px 11px);
}
.mod__bus::before, .mod__bus::after { content: ""; position: absolute; left: 50%; }
.mod__bus::before {
  top: -4px;
  width: 8px; height: 8px;
  border: 1px solid var(--cyan);
  transform: translateX(-50%);
}
.mod__bus::after {
  bottom: -5px;
  width: 12px; height: 12px;
  background: var(--bg-2);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, .55);
  transform: translateX(-50%) rotate(45deg);
}
.mod__io div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.mod__io dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--cyan); }
.mod__io dd { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.6; }
.hub {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(100%, 640px);
  margin: 104px auto 0;
  padding: 22px 28px;
  background: rgba(8, 12, 20, .94);
  border: 1px solid var(--magenta);
  box-shadow: 0 0 0 4px rgba(255, 46, 136, .08), inset 0 0 36px rgba(255, 46, 136, .1);
}
.hub__icon { width: 42px; height: 42px; fill: var(--magenta); flex: none; }
.hub__code { margin: 0; font-size: 12px; letter-spacing: .22em; color: var(--magenta); }
.hub__title { margin: 2px 0 4px; font-size: 24px; font-weight: 800; line-height: 1.4; }
.hub__text { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- 03 in-house ---------- */
.inhouse__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px 64px;
  align-items: center;
}
.inhouse__fig, .spec__fig { position: relative; margin: 0; overflow: hidden; background: var(--bg-2); }
.inhouse__fig { aspect-ratio: 5 / 4; }
.inhouse__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.fig-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  padding: 4px 10px;
  background: rgba(5, 7, 12, .78);
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .16em;
}
.fig-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 2;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 18px 2px rgba(0, 240, 255, .7);
  opacity: 0;
}
/* the one big claim of the page: white, with the key words marked like a selected terminal line */
.inhouse__claim {
  margin: 16px 0 0;
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .02em;
}
.inhouse__claim em {
  padding: 0 .12em;
  background: rgba(255, 46, 136, .2);
  box-shadow: inset 3px 0 0 var(--magenta);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.inhouse__body > p:not(.sec-code):not(.inhouse__claim) { margin: 22px 0 0; color: var(--text-2); }
.data-rows { margin: 28px 0 0; border-top: 1px solid var(--line); }
.data-rows div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.data-rows dt { font-family: var(--f-mono); font-size: 13px; letter-spacing: .18em; color: var(--cyan); }
.data-rows dd { margin: 0; font-weight: 700; }

/* ---------- 04 spec ---------- */
.spec__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 72px;
  align-items: start;
}
.spec__lead {
  margin: 18px 0 0;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--text);
}
/* --fx / --fy: where the fingertip touches the light, in the visible crop */
.spec__fig { margin-top: 40px; aspect-ratio: 1 / 1; --fx: 66%; --fy: 40%; }
/* cropped in on the fingertip and the light, then framed as a HUD readout */
.spec__fig img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.35);
  transform-origin: var(--fx) var(--fy);
}
.fig-ticks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(0, 240, 255, .7) 0 1px, transparent 1px 24px) left 14px top 10px / calc(100% - 28px) 6px no-repeat,
    repeating-linear-gradient(180deg, rgba(0, 240, 255, .7) 0 1px, transparent 1px 24px) right 10px top 14px / 6px calc(100% - 28px) no-repeat,
    linear-gradient(rgba(0, 240, 255, .5) 0 0) var(--fx) 0 / 1px 100% no-repeat,
    linear-gradient(rgba(0, 240, 255, .5) 0 0) 0 var(--fy) / 100% 1px no-repeat;
  mix-blend-mode: screen;
  opacity: .55;
}
.fig-lock {
  position: absolute;
  left: var(--fx);
  top: var(--fy);
  z-index: 2;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  color: var(--magenta);
  filter: drop-shadow(0 0 6px rgba(255, 46, 136, .7));
}
.spec-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.spec-item {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 32px;
  gap: 20px;
  padding: 28px 8px 28px 0;
  border-bottom: 1px solid var(--line);
}
.spec-item::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px; bottom: -1px;
  width: 2px;
  background: var(--magenta);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s ease;
}
.spec-item:hover::before { transform: scaleY(1); }
/* the big numbers carry this section (no slogan): outlined, filling up in magenta on hover */
.spec-item__no {
  font-family: var(--f-en);
  font-weight: 900;
  font-size: 64px;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  padding-left: 10px;
  text-shadow: 0 0 18px rgba(0, 240, 255, .25);
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.spec-item:hover .spec-item__no { color: rgba(255, 46, 136, .85); -webkit-text-stroke-color: var(--magenta); }
.spec-item__en { margin: 0 0 4px; font-size: 12px; letter-spacing: .2em; color: var(--cyan); }
.spec-item__title { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.45; }
.spec-item__body p:last-child { margin: 0; color: var(--text-2); }
.spec-item__icon { width: 26px; height: 26px; margin-top: 4px; fill: var(--magenta); }

/* ---------- 05 protocol ---------- */
.protocol__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  grid-template-areas: "head aside" "steps aside";
  grid-template-rows: auto 1fr;
  gap: 48px 72px;
}
.protocol__head { grid-area: head; }
.protocol__lead { margin: 16px 0 0; font-size: 18px; font-weight: 700; line-height: 1.7; color: var(--text); }
.steps { grid-area: steps; position: relative; padding-left: 70px; }
.protocol__aside { grid-area: aside; position: sticky; top: calc(var(--header-h) + 36px); align-self: start; }
.steps__rail { position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: rgba(0, 240, 255, .15); }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(var(--cyan), var(--magenta)); transform-origin: top; }
.steps__list { display: grid; gap: 34px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; }
.step__node {
  position: absolute;
  left: -70px; top: 2px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  font-family: var(--f-en);
  font-size: 14px;
  font-weight: 800;
  color: #05070C;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, .45);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.has-gsap .step:not(.is-on) .step__node { color: var(--text-3); background: var(--bg); border-color: rgba(0, 240, 255, .32); box-shadow: none; }
.step.is-current .step__node { background: var(--magenta); border-color: var(--magenta); box-shadow: 0 0 18px rgba(255, 46, 136, .55); }
.step__title { display: flex; flex-direction: column; margin: 0 0 6px; font-size: 21px; font-weight: 800; line-height: 1.45; }
.step__en { font-size: 12px; font-weight: 500; letter-spacing: .22em; color: var(--cyan); line-height: 1.6; }
.step__body p { margin: 0; color: var(--text-2); }

.monitor { aspect-ratio: 16 / 11; overflow: hidden; background: #02040a; border: 1px solid var(--line); }
.monitor__video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }
.monitor__hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px 18px;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
}
.monitor__top { display: flex; justify-content: space-between; margin: 0; font-size: 12px; letter-spacing: .22em; color: var(--cyan); text-shadow: 0 1px 6px #000; }
.monitor__step {
  display: flex;
  align-items: baseline;
  gap: 14px;
  align-self: flex-start;
  margin: 0;
  padding: 10px 16px 12px;
  background: rgba(5, 7, 12, .82);
  border-left: 2px solid var(--magenta);
}
.monitor__no { font-family: var(--f-en); font-weight: 900; font-size: 34px; line-height: 1; color: var(--magenta); white-space: nowrap; }
.monitor__name { font-size: 20px; font-weight: 800; white-space: nowrap; }

/* ---------- 06 core (three.js terrain) ---------- */
.core {
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: max(760px, 100svh);
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 240, 255, .12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255, 46, 136, .1), transparent 70%);
}
.core__terrain { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.core__terrain canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
/* no WebGL: a flat CSS grid stands in for the terrain */
.core__terrain.is-fallback {
  background:
    linear-gradient(rgba(0, 240, 255, .14) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(0, 240, 255, .14) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 80%);
  mask-image: linear-gradient(to top, #000, transparent 80%);
}
.core__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: end;
}
.core__panel {
  padding: 34px 36px 36px;
  background: rgba(5, 7, 12, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 240, 255, .18);
}
.core__panel--origin { border-color: rgba(255, 46, 136, .32); }
.core__panel--origin::after { --c: var(--magenta); }
/* the company's own words are the statement of this section (no paraphrase) */
.philosophy {
  margin: 24px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--cyan);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 700;
  line-height: 1.85;
  letter-spacing: .03em;
}
.philosophy em { color: var(--cyan); }
.origin__label { margin: 0 0 14px; font-size: 13px; letter-spacing: .2em; color: var(--magenta); }
.origin__word {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 18px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.3;
}
.origin__word span[lang] { font-family: var(--f-en); font-weight: 700; letter-spacing: .04em; color: var(--cyan); }
.origin__word .ico { width: 18px; height: 18px; color: var(--magenta); }
.core__panel--origin p:last-child { margin: 0; color: var(--text-2); }
.core__hint {
  position: absolute;
  right: var(--pad);
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 10px;
  background: rgba(5, 7, 12, .8);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--text-2);
}
.core__hint .ico { width: 14px; height: 14px; color: var(--cyan); }
/* without motion the terrain is a still frame: nothing to steer */
@media (prefers-reduced-motion: reduce) { .core__hint { display: none !important; } }

/* ---------- 07 log ---------- */
.terminal { background: var(--panel); border: 1px solid rgba(0, 240, 255, .2); }
.terminal__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 22px 30px;
  background: rgba(0, 240, 255, .04);
  border-bottom: 1px solid rgba(0, 240, 255, .2);
}
.terminal__bar .sec-code { margin: 0; }
.terminal__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; line-height: 1.3; }
.terminal__en { font-family: var(--f-en); font-size: 14px; font-weight: 700; letter-spacing: .22em; color: var(--cyan); }
.terminal__file { margin: 0 0 0 auto; font-size: 13px; color: var(--text-3); }
.log-list { margin: 0; padding: 10px 30px; list-style: none; }
.log-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px dashed rgba(0, 240, 255, .16);
}
.log-item:last-child { border-bottom: 0; }
.log-item__date { margin: 0; font-family: var(--f-mono); font-weight: 700; font-size: 16px; color: var(--cyan); letter-spacing: .04em; }
.log-item__date::before { content: "["; color: var(--text-3); margin-right: .3em; }
.log-item__date::after { content: "]"; color: var(--text-3); margin-left: .3em; }
.log-item__text { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.7; }
.terminal__prompt { margin: 0; padding: 14px 30px 22px; font-size: 14px; color: var(--text-3); border-top: 1px solid rgba(0, 240, 255, .1); }
.terminal__caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--cyan); opacity: .8; }

/* ---------- 08 query ---------- */
.query__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; margin-bottom: 40px; }
.query__head .sec-code { margin: 0; }
.query__head .sec-title { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: .03em; }
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
.qa { padding: 24px 28px 28px; background: var(--panel); border: 1px solid rgba(0, 240, 255, .14); border-top: 2px solid rgba(0, 240, 255, .5); }
.qa dt { margin: 0 0 14px; }
.qa__tag { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--cyan); }
.qa__q { display: block; font-size: 18px; font-weight: 800; line-height: 1.6; }
.qa dd { display: flex; gap: 12px; margin: 0; padding-top: 14px; border-top: 1px dashed rgba(0, 240, 255, .2); color: var(--text-2); }
.qa__a { flex: none; color: var(--magenta); font-weight: 700; }

/* ---------- 09 profile ---------- */
.profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px 72px;
  align-items: start;
}
.profile__head .sec-title { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: .03em; }
.locator { margin-top: 36px; padding: 22px 22px 24px; background: var(--panel); border: 1px solid var(--line); }
.locator__label { margin: 0; font-size: 12px; letter-spacing: .22em; color: var(--cyan); }
.locator__place { margin: 4px 0 16px; font-size: 20px; font-weight: 800; }
.profile-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.profile-table th, .profile-table td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.profile-table th { width: 34%; padding-right: 20px; font-size: 15px; font-weight: 700; line-height: 1.6; }
.profile-table th .mono { display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--cyan); }
.profile-table td { font-size: 16px; line-height: 1.8; padding-top: 24px; }
.profile-table .addr { font-family: var(--f-addr); font-weight: 500; }
.profile-table .num { font-family: var(--f-mono); letter-spacing: .02em; }
.profile-table td a { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; color: var(--cyan); text-underline-offset: 4px; word-break: break-all; }

/* ---------- 10 contact ---------- */
.contact { isolation: isolate; padding-bottom: clamp(160px, 18vw, 240px); }
/* perspective grid floor: the plane is anchored at the bottom edge and recedes to a horizon at the top */
.floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: -1;
  height: 40%;
  overflow: hidden;
  perspective: 420px;
  perspective-origin: 50% 0;
  pointer-events: none;
}
.floor::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, var(--magenta) 20%, var(--cyan) 50%, var(--magenta) 80%, transparent);
  box-shadow: 0 0 24px 4px rgba(255, 46, 136, .35);
  opacity: .8;
}
.floor::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(5, 7, 12, .92) 0, rgba(5, 7, 12, 0) 45%);
}
.floor__plane {
  position: absolute;
  left: -150%; right: -150%;
  bottom: 0;
  height: 2600px;
  transform: rotateX(82deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(255, 46, 136, .6) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0, 240, 255, .55) 2px, transparent 2px);
  background-size: 80px 80px;
  background-position: 0 0, 50% 0;
  animation: floor 2.8s linear infinite;
}
@keyframes floor { to { background-position: 0 80px, 50% 0; } }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px;
  align-items: start;
}
.contact__info > p:not(.sec-code):not(.fax) { margin: 20px 0 0; color: var(--text-2); }
.tel-big {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 30px;
  padding: 18px 26px 20px;
  min-width: min(100%, 400px);
  color: #fff;
  text-decoration: none;
  background: rgba(0, 240, 255, .06);
  border: 1px solid var(--cyan);
  transition: background-color .2s;
}
.tel-big:hover { background: rgba(0, 240, 255, .14); }
.tel-big__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .22em; color: var(--cyan); }
.tel-big__label .ico { width: 14px; height: 14px; }
/* the phone number is the largest thing in this section */
.tel-big__num { font-family: var(--f-num); font-weight: 800; font-size: clamp(34px, 4vw, 52px); letter-spacing: .04em; line-height: 1.2; white-space: nowrap; }
.fax { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 0; }
.fax__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .22em; color: var(--text-3); }
.fax__label .ico { width: 14px; height: 14px; }
.fax__num { font-family: var(--f-num); font-weight: 700; font-size: 22px; letter-spacing: .05em; }

.form { padding: 32px 32px 30px; background: rgba(8, 12, 20, .92); border: 1px solid rgba(0, 240, 255, .22); }
.form__title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 22px; font-size: 18px; font-weight: 800; }
.form__title .mono { font-size: 12px; font-weight: 500; letter-spacing: .22em; color: var(--cyan); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field--full { grid-column: 1 / -1; }
.field label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.req { padding: 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; color: #05070C; background: var(--yellow); }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 240, 255, .28);
  border-radius: 0;
  background: rgba(0, 240, 255, .04);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  caret-color: var(--cyan);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.7; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: var(--cyan); }
.field [aria-invalid="true"] { border-color: var(--yellow); }
.agree { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.agree input { width: 22px; height: 22px; margin: 0; accent-color: var(--cyan); flex: none; }
.agree input[aria-invalid="true"] { outline: 2px solid var(--yellow); outline-offset: 2px; }
.agree label { display: inline-flex; flex-wrap: wrap; align-items: center; min-height: 44px; }
.agree a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cyan); text-underline-offset: 4px; }
.btn--submit { width: 100%; margin-top: 20px; }
.form__note { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--yellow); background: rgba(245, 230, 99, .07); color: var(--yellow); font-weight: 700; }
.form__note:empty { display: none; }

/* ---------- footer ---------- */
.site-footer { position: relative; padding: 44px 0 36px; background: #03050a; border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 40px; align-items: center; }
.site-footer__addr { margin: 0; font-family: var(--f-addr); font-size: 14px; font-weight: 500; color: var(--text-3); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); font-size: 14px; text-decoration: none; }
.site-footer__links a:hover { color: var(--cyan); }
.site-footer__copy { grid-column: 1 / -1; margin: 6px 0 0; font-family: var(--f-mono); font-size: 13px; color: var(--text-3); }
.site-footer__copy small { font-size: inherit; }

/* ---------- crosshair cursor (fine pointers, JS adds .has-cursor) ---------- */
.has-cursor, .has-cursor body, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.has-cursor input[type="checkbox"] { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor.is-on { opacity: 1; }
.cursor.is-text { opacity: 0; }
.cursor__dot, .cursor__cross, .cursor__ring, .cursor__xy { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor__dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--magenta); }
.cursor__cross {
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  background:
    linear-gradient(var(--cyan) 0 0) center / 1px 100% no-repeat,
    linear-gradient(var(--cyan) 0 0) center / 100% 1px no-repeat;
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px);
  mask: radial-gradient(circle, transparent 5px, #000 5.5px);
}
.cursor__ring {
  width: 42px; height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid rgba(0, 240, 255, .55);
  border-radius: 50%;
  transition: width .2s, height .2s, margin .2s, border-color .2s;
}
/* yellow lock ring: stays visible on buttons that turn magenta / cyan on hover */
.cursor.is-lock .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border: 1px dashed var(--yellow); }
.cursor__xy { margin: 16px 0 0 18px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--cyan); white-space: nowrap; text-shadow: 0 1px 4px #000; transition: opacity .15s; }
/* coordinates only over empty space: never on top of text the visitor is reading or a control */
.cursor.is-lock .cursor__xy, .cursor.is-read .cursor__xy { opacity: 0; }

.is-paused .scanlines::after, .is-paused .reticle__spin, .is-paused .floor__plane { animation-play-state: paused; }

/* =========================================================
   TABLET (641px - 1023px)
   ========================================================= */
@media (max-width: 1023px) {
  :root { --header-h: 66px; }

  .site-header__inner { gap: 10px; }
  .header-tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-left: auto;
    padding: 0 14px;
    color: var(--text);
    font-family: var(--f-num);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--line-2);
  }
  .header-tel .ico { width: 15px; height: 15px; color: var(--cyan); }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    background: var(--cyan);
    color: #05070C;
    font: 700 13px/1 var(--f-mono);
    letter-spacing: .18em;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  }
  .menu-btn:focus-visible { outline: none; background: var(--yellow); }
  .menu-btn__icon { position: relative; width: 16px; height: 16px; }
  .menu-btn__icon .ico { position: absolute; inset: 0; width: 16px; height: 16px; }
  .menu-btn .ico--close { opacity: 0; }
  .menu-btn[aria-expanded="true"] .ico--open { opacity: 0; }
  .menu-btn[aria-expanded="true"] .ico--close { opacity: 1; }

  .gnav {
    position: fixed;
    inset: 0;
    z-index: -2;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    margin: 0;
    padding: calc(var(--header-h) + 28px) var(--pad) 40px;
    overflow-y: auto;
    background:
      linear-gradient(rgba(0, 240, 255, .04) 1px, transparent 1px) 0 0 / 100% 48px,
      var(--bg);
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s, visibility 0s linear .25s;
  }
  .gnav.is-open { visibility: visible; opacity: 1; transition: opacity .25s; }
  /* HUD ruler across the top of the open menu */
  .gnav::before {
    content: "";
    position: absolute;
    left: var(--pad); right: var(--pad);
    top: calc(var(--header-h) + 10px);
    height: 9px;
    background:
      repeating-linear-gradient(90deg, rgba(0, 240, 255, .85) 0 1px, transparent 1px 96px) top / 100% 9px no-repeat,
      repeating-linear-gradient(90deg, rgba(0, 240, 255, .4) 0 1px, transparent 1px 12px) top / 100% 4px no-repeat;
    pointer-events: none;
  }
  .gnav__list { flex-direction: column; align-items: stretch; }
  .gnav__list a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    min-height: 56px;
    padding: 14px 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .gnav__list a::after { display: none; }
  .gnav__no { display: inline-block; min-width: 2em; font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--cyan); }
  .gnav__en { display: inline-block; margin-left: auto; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .18em; color: var(--text-3); }
  .gnav__list a[aria-current] .gnav__en { color: var(--magenta); }
  .gnav__cta { margin: 0; }
  .gnav__cta a { padding: 14px 4px; color: var(--cyan); background: none; clip-path: none; }
  .gnav__cta a .gnav__en { color: var(--cyan); }
  .gnav__tel {
    justify-content: center;
    min-height: 56px;
    padding: 0 20px;
    border: 1px solid var(--cyan);
    font-size: 20px;
  }
  .menu-open { overflow: hidden; }

  .hero { gap: 22px; }
  .hero__en { font-size: clamp(56px, 11vw, 96px); }
  .reticle { right: 7%; top: 13%; }
  .hero__panel { max-width: none; }

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

  .modules .giant { top: 40px; }
  .modules__head { grid-template-columns: minmax(0, 1fr); margin-bottom: 44px; }
  .board { padding-left: 34px; }
  .board__mods { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mod {
    display: grid;
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "head text" "title text" ". io";
    column-gap: 32px;
  }
  .mod__head { grid-area: head; }
  .mod__title { grid-area: title; align-self: start; }
  .mod__text { grid-area: text; margin-bottom: 16px; }
  .mod__io { grid-area: io; }
  .mod__bus { display: none; }
  .hub { width: 100%; margin: 28px 0 0; }

  .inhouse__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .inhouse__fig { aspect-ratio: 16 / 9; }
  .data-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; gap: 0 16px; }
  .data-rows div { grid-template-columns: minmax(0, 1fr); gap: 2px; border-top: 1px solid var(--line); }

  .spec__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .spec__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
  .spec__fig { margin-top: 0; aspect-ratio: 4 / 3; --fx: 62%; }

  /* flex (not grid) so the sticky monitor can travel the whole section while the steps scroll under it */
  .protocol__grid { display: flex; flex-direction: column; gap: 36px; }
  .protocol__head { order: 0; }
  .protocol__aside { order: 1; position: sticky; top: var(--header-h); z-index: 2; padding-top: 8px; background: var(--bg); box-shadow: 0 14px 22px rgba(5, 7, 12, .92); }
  .steps { order: 2; }
  .monitor { aspect-ratio: 21 / 9; }

  /* the terrain gets its own band above the panels (it was hidden behind full-width panels) */
  .core { --band: clamp(300px, 38vh, 420px); min-height: 0; padding: var(--band) 0 120px; }
  .core__terrain {
    bottom: auto;
    height: calc(var(--band) + 200px);
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  .core__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .core__hint { top: calc(var(--band) - 52px); bottom: auto; }

  .log-item { grid-template-columns: 170px minmax(0, 1fr); }

  .profile__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .profile__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; align-items: start; }
  .profile__head .locator { margin-top: 0; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: end; }
  .contact__info > * { grid-column: 1 / -1; }
  .contact__info .tel-big { grid-column: 1; min-width: 0; }
  .contact__info .fax { grid-column: 2; margin: 0 0 20px; }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* =========================================================
   PHONE (<= 640px)
   ========================================================= */
@media (max-width: 640px) {
  :root { --header-h: 60px; --pad: 20px; }
  body { line-height: 1.8; }

  .logo { gap: 10px; }
  .logo__mark { width: 26px; height: 26px; }
  .logo__en { font-size: 15px; letter-spacing: .12em; }
  .logo__ja { font-size: 13px; letter-spacing: .08em; }
  .header-tel { width: 44px; padding: 0; justify-content: center; }
  .header-tel__num { display: none; }
  .menu-btn { padding: 0 12px; }
  .menu-btn__label { display: none; }
  .menu-btn { width: 44px; justify-content: center; }

  .hero { min-height: max(640px, 100svh); padding-top: calc(var(--header-h) + 150px); gap: 18px; }
  .hero__hud { inset: calc(var(--header-h) + 10px) 10px 10px; }
  .hud-ruler--x { left: 30px; right: 30px; }
  .hud-ruler--y { top: 30px; bottom: 30px; }
  .hud-tag--tl { left: 16px; top: 16px; font-size: 11px; }
  .hud-tag--tr { right: 16px; top: 16px; font-size: 11px; }
  .reticle { width: 96px; right: 7%; top: 44px; }
  .hero__eyebrow { font-size: 14px; gap: 2px 12px; }
  .hero__eyebrow .mono { display: none; }
  .hero__en { font-size: min(13vw, 56px); margin-bottom: 18px; }
  .hero__en-line + .hero__en-line { -webkit-text-stroke-width: 1.5px; }
  .hero__panel { padding: 22px 20px 22px; background: rgba(5, 7, 12, .85); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero__title { font-size: 25px; line-height: 1.5; }
  .hero__lead { font-size: 16px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__status { flex-wrap: wrap; gap: 4px 12px; padding: 12px 6px 6px 16px; }
  .hero__status-label { font-size: 13px; }
  .hero__catch { flex-basis: 100%; font-size: 15px; }
  .hero__scroll { margin-left: auto; padding: 0 10px; font-size: 13px; }
  .br-pc { display: none; }

  .sec { padding: 80px 0; }
  .sec-title { font-size: 22px; }
  .giant { font-size: 84px; }
  .modules__lead { padding: 12px 0 12px 14px; gap: 12px; }

  .scan__head .sec-title { font-size: 28px; }
  .scan__note { font-size: 16px; }
  .warn-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .warn { padding: 18px 18px 20px; }
  .warn__text { font-size: 17px; }

  .board { padding-left: 26px; }
  .mod { display: flex; padding: 24px 20px 22px; }
  .mod__en { font-size: 22px; }
  .mod__title { font-size: 21px; }
  .mod__text { font-size: 16px; margin-bottom: 18px; }
  .mod__io div { grid-template-columns: 70px minmax(0, 1fr); }
  .mod__io dt { font-size: 13px; }
  .mod__io dd { font-size: 15px; }
  .hub { padding: 18px 18px; gap: 14px; align-items: flex-start; }
  .hub__icon { width: 34px; height: 34px; }
  .hub__code { font-size: 13px; }
  .hub__title { font-size: 21px; }
  .hub__text { font-size: 16px; }

  .inhouse__fig { aspect-ratio: 4 / 3; }
  .data-rows { grid-template-columns: minmax(0, 1fr); }
  .data-rows div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .data-rows div + div { border-top: 0; }
  .data-rows { border-bottom: 0; }

  .spec__side { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .spec-item { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 24px 0; }
  .spec-item__no { font-size: 40px; padding-left: 4px; }
  .spec-item__icon { display: none; }
  .spec-item__en { font-size: 13px; }
  .spec-item__title { font-size: 20px; }

  .steps { padding-left: 60px; }
  .steps__rail { left: 21px; }
  .step__node { left: -60px; }
  .step__title { font-size: 20px; }
  .step__en { font-size: 13px; }
  .monitor { aspect-ratio: 2 / 1; }
  .monitor__hud { padding: 10px 12px 12px; }
  .monitor__step { padding: 8px 12px 9px; gap: 10px; }
  .monitor__top { font-size: 11px; }
  .monitor__no { font-size: 26px; }
  .monitor__name { font-size: 18px; }

  .core { --band: clamp(250px, 40vh, 340px); padding: var(--band) 0 96px; }
  .core__terrain { height: calc(var(--band) + 150px); }
  /* lighter to draw on phones: no blur over the WebGL canvas */
  .core__panel { padding: 26px 20px 28px; background: rgba(5, 7, 12, .85); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .philosophy { padding-left: 14px; }
  .core__hint { font-size: 11px; top: calc(var(--band) - 48px); }

  .terminal__bar { padding: 20px 18px; }
  .terminal__file { display: none; }
  .log-list { padding: 4px 18px; }
  .log-item { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
  .log-item__text { font-size: 17px; }
  .terminal__prompt { padding: 14px 18px 18px; font-size: 13px; }

  .query__head .sec-title { font-size: 28px; }
  .qa-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .qa { padding: 22px 18px 24px; }
  .qa dt { font-size: 17px; }

  .profile__head { grid-template-columns: minmax(0, 1fr); }
  .profile__head .locator { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .profile__head .sec-title { font-size: 28px; }
  .locator__label { font-size: 13px; }
  .profile-table, .profile-table tbody, .profile-table tr, .profile-table th, .profile-table td { display: block; width: 100%; }
  .profile-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .profile-table th, .profile-table td { padding: 0; border: 0; }
  .profile-table th { margin-bottom: 4px; font-size: 14px; color: var(--text-2); }
  .profile-table th .mono { font-size: 13px; }
  .profile-table td a { margin: -6px 0; }

  .contact__info { display: block; }
  .tel-big { display: flex; width: 100%; min-width: 0; padding: 16px 18px 18px; }
  .tel-big__num { font-size: 36px; }
  .fax { margin: 16px 0 0; }
  .form { padding: 24px 18px 22px; }
  .form__title .mono { font-size: 13px; }
  .form__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .req { font-size: 13px; }

  .site-footer__links { gap: 0 18px; }
}

/* =========================================================
   Reduced motion: everything stops; content stays put
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .scanlines::after, .reticle__spin, .floor__plane { animation: none !important; }
  .glitch, .logo:hover .logo__en { animation: none !important; }
}
