:root {
  --bg: #0C0C0E;
  --bg-soft: #121214;
  --bg-card: #101013;
  --text: #F4F3EE;
  --text-sub: #97968E;
  --hairline: rgba(244,243,238,0.12);
  --hairline-soft: rgba(244,243,238,0.07);
  --yellow: #FFD600;
  --yellow-dim: rgba(255,214,0,0.5);
  --yellow-faint: rgba(255,214,0,0.12);
  --particle: rgba(190,188,178,0.7);
  --link-line: rgba(190,188,178,0.13);
  --font-body: 'IBM Plex Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: #0C0C0E; }

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ═══════ Nav ═══════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 44px;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12,12,14,0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline-soft);
}
.logo {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--yellow); }
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  color: #0C0C0E;
  background: var(--yellow);
  padding: 9px 20px;
  font-weight: 500;
}
.nav-links a.nav-cta:hover { color: #0C0C0E; background: #FFE04D; }

/* ═══════ Shared section machinery ═══════ */
.section {
  border-top: 1px solid var(--hairline-soft);
  padding: 130px 0;
}
.inner {
  width: min(1160px, 92%);
  margin: 0 auto;
}
.sec-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}
.sec-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--text-sub);
  text-transform: uppercase;
}
/* hex crystal glyph — the signature motif carried through the page */
.glyph {
  width: 18px; height: 18px;
  flex: none;
}
.glyph circle { fill: var(--text-sub); opacity: 0.6; }
.glyph .core { fill: var(--yellow); opacity: 1; }

h2.sec-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.sec-lead {
  max-width: 640px;
  font-size: 0.96rem;
  font-weight: 300;
  color: var(--text-sub);
}
.sec-lead strong, .lead strong { color: var(--text); font-weight: 500; }

/* fade-in on scroll */
.fade {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade.visible { opacity: 1; transform: translateY(0); }

/* ═══════ Hero ═══════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, 92%);
  margin: 0 auto;
  padding: 120px 0 90px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  opacity: 0;
  animation: rise 1s var(--ease) 0.2s forwards;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--yellow);
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 4.1rem);
  line-height: 1.42;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
}
.hero h1 .line {
  display: block;
  opacity: 0;
  animation: rise 1.1s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) { animation-delay: 0.4s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.6s; }
.mark { position: relative; white-space: nowrap; }
.mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.12em;
  background: var(--yellow);
  opacity: 0.28;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease), opacity 0.6s;
  z-index: -1;
}
body.ignited .mark::after { transform: scaleX(1); opacity: 0.85; }

.hero-sub {
  max-width: 560px;
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text-sub);
  margin-bottom: 44px;
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.85s forwards;
}
.hero-sub strong { color: var(--text); font-weight: 500; }
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1.1s var(--ease) 1.05s forwards;
}
.btn {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 15px 34px;
  border: 1px solid var(--text);
  text-decoration: none;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn.primary {
  background: var(--yellow);
  color: #0C0C0E;
  border-color: var(--yellow);
}
.btn:hover { border-color: var(--yellow); color: var(--yellow); }
.btn.primary:hover { background: #FFE04D; border-color: #FFE04D; color: #0C0C0E; }

.readout {
  position: absolute;
  right: 44px; bottom: 40px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  text-align: right;
  line-height: 2;
  user-select: none;
}
.readout .val { color: var(--yellow); }

.scroll-hint {
  position: absolute;
  left: 44px; bottom: 40px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-sub);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(var(--text-sub), transparent);
  animation: drop 2.2s var(--ease) infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════ Evidence (statement) ═══════ */
.statement { background: var(--bg-soft); }
.statement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.transform-diagram {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
  padding: 40px 0;
}
.td-box {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-sub);
}
.td-shape {
  width: 120px; height: 120px;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.td-dots { display: grid; grid-template-columns: repeat(3, 10px); gap: 9px; }
.td-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-sub); opacity: 0.6; }
.td-scatter i:nth-child(2n) { transform: translate(3px, -4px); }
.td-scatter i:nth-child(3n) { transform: translate(-4px, 5px); }
.td-crystal { border-color: var(--yellow-dim); background: var(--yellow-faint); }
.td-crystal i { background: var(--yellow); opacity: 1; }
.td-arrow {
  font-family: var(--font-mono);
  color: var(--yellow);
  font-size: 1.1rem;
  letter-spacing: 0;
}

/* ═══════ Roles ═══════ */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
}
.card {
  background: var(--bg);
  padding: 46px 36px 52px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card .idx {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
  display: block;
  margin-bottom: 22px;
}
.card h3 {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.card p {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--text-sub);
}

/* ═══════ AI Citation Score ═══════ */
.score { background: var(--bg-soft); }
.score-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: start;
}
.axes { list-style: none; margin-top: 10px; }
.axes li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.axes .ax-idx {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--yellow);
  letter-spacing: 0.14em;
  flex: none;
  width: 52px;
}
.axes .ax-name {
  font-weight: 500;
  font-size: 0.98rem;
  flex: none;
  width: 10.5em;
}
.axes .ax-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-sub);
}
.score-note {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  padding: 16px 20px;
  border-left: 2px solid var(--yellow);
  background: var(--yellow-faint);
  line-height: 1.9;
}
/* instrument panel */
.panel {
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  padding: 34px 30px;
  font-family: var(--font-mono);
}
.panel .p-head {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}
.panel .p-head .live { color: var(--yellow); }
.scan-row {
  margin-bottom: 24px;
}
.scan-row span {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  display: block;
  margin-bottom: 8px;
}
.scan-track {
  height: 4px;
  background: rgba(244,243,238,0.08);
  overflow: hidden;
  position: relative;
}
.scan-beam {
  position: absolute;
  top: 0; bottom: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, var(--yellow-dim), transparent);
  animation: sweep 3.4s ease-in-out infinite;
}
.scan-row:nth-child(3) .scan-beam { animation-delay: 0.5s; }
.scan-row:nth-child(4) .scan-beam { animation-delay: 1.0s; }
.scan-row:nth-child(5) .scan-beam { animation-delay: 1.5s; }
@keyframes sweep {
  0% { left: -34%; }
  55% { left: 100%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-beam { animation: none; left: 33%; }
}
.panel .p-foot {
  margin-top: 26px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 16px;
}

/* ═══════ Process ═══════ */
.steps { list-style: none; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 90px 300px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--hairline-soft);
  align-items: baseline;
}
.step .s-idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--yellow);
}
.step h3 {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.step p {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--text-sub);
}

/* ═══════ Works ═══════ */
.works { background: var(--bg-soft); }
.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.wcard {
  border: 1px solid var(--hairline-soft);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s;
}
.wcard:hover { border-color: var(--hairline); }
.wcard-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--hairline-soft);
}
.wcard-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.wcard:hover .wcard-img img { transform: scale(1.03); }
.wcard-body { padding: 28px 26px 32px; display: flex; flex-direction: column; gap: 10px; }
.wcard .w-cat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
  text-transform: uppercase;
}
.wcard h3 { font-weight: 700; font-size: 1.02rem; line-height: 1.6; }
.wcard p { font-size: 0.82rem; font-weight: 300; color: var(--text-sub); }
.wcard .w-fact {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 14px;
}

/* ═══════ About ═══════ */
.about { background: var(--bg-soft); }
.mission {
  font-size: clamp(1.02rem, 1.9vw, 1.3rem);
  font-weight: 500;
  line-height: 2.3;
  letter-spacing: 0.04em;
  border: none;
  margin-bottom: 80px;
  position: relative;
  padding-left: 28px;
}
.mission::before {
  content: "";
  position: absolute;
  left: 0; top: 0.4em; bottom: 0.4em;
  width: 2px;
  background: var(--yellow);
}
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 70px;
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline-soft);
  overflow: hidden;
  background: var(--bg-card);
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.timeline { list-style: none; margin-top: 34px; }
.timeline li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.88rem;
}
.timeline .t-org { font-weight: 500; }
.timeline .t-role { font-weight: 300; color: var(--text-sub); }
.about-name {
  margin-top: 34px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.about-name .ja {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}
.about-name .en {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--text-sub);
}
.about-name .role {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 300;
}

/* ═══════ Contact ═══════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.form-mock { display: grid; gap: 18px; }
.form-mock label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.form-mock input, .form-mock select, .form-mock textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 14px 16px;
}
.form-mock textarea { min-height: 130px; resize: vertical; }
.form-mock select { appearance: none; }

/* ═══════ Footer ═══════ */
footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 50px 0;
}
.foot-inner {
  width: min(1160px, 92%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-inner .copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--text-sub);
}

/* ═══════ Responsive ═══════ */
@media (max-width: 960px) {
  .nav { padding: 18px 22px; }
  .nav-links { gap: 18px; }
  .nav-links li:not(:last-child) { display: none; }
  .section { padding: 90px 0; }
  .hero-inner { padding: 130px 0 130px; }
  .readout { right: 22px; bottom: 96px; }
  .scroll-hint { display: none; }
  .statement-grid, .score-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards3 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 60px 1fr; }
  .step p { grid-column: 2; }
  .work-cards { grid-template-columns: 1fr; }
  .axes .ax-name { width: auto; }
  .axes li { flex-wrap: wrap; }
  .portrait { max-width: 320px; }
}

/* ═══════ Reduced motion ═══════ */
@media (prefers-reduced-motion: reduce) {
  .eyebrow, .hero h1 .line, .hero-sub, .cta-row { animation: none; opacity: 1; transform: none; }
  .fade { opacity: 1; transform: none; transition: none; }
  .mark::after { transition: none; }
  .scroll-hint::after { animation: none; }
}