:root {
  color-scheme: light;
  --bg: #f7f3ee;
  --bg-ink: #0b0b0b;
  --ink: #101010;
  --muted: #505050;
  --accent: #0f6f6b;
  --accent-2: #d95b43;
  --accent-3: #6b5bd9;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --radius-lg: 26px;
  --measure: 68ch;
  --pad: clamp(20px, 4vw, 44px);
  --gutter: clamp(18px, 3vw, 34px);
  --title: clamp(2.4rem, 3.8vw, 4.2rem);
  --subtitle: clamp(1.1rem, 2vw, 1.4rem);
  --body: clamp(1rem, 1vw + 0.8rem, 1.15rem);
  --mono: "SFMono-Regular", "Cascadia Code", "Fira Code", "JetBrains Mono", monospace;
  --serif: "Iowan Old Style", "Palatino", "Book Antiqua", "Noto Serif", serif;
  --sans: "Suisse Int'l", "Avenir Next", "Helvetica Neue", "Noto Sans", sans-serif;
  --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.7;
  color: var(--ink);
  background: radial-gradient(1200px 900px at 85% -10%, rgba(15, 111, 107, 0.16), transparent 60%),
    radial-gradient(900px 800px at -10% 20%, rgba(217, 91, 67, 0.18), transparent 55%),
    radial-gradient(700px 700px at 30% 110%, rgba(107, 91, 217, 0.16), transparent 50%),
    var(--bg);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(900px 700px at 50% -20%, rgba(0, 0, 0, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body.blog {
  background: #f6f4f0;
  color: #1a1a1a;
}

body.blog::before {
  opacity: 0.18;
}

body.blog::after {
  opacity: 0.2;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

a.inline-link {
  position: relative;
  color: var(--accent);
  font-weight: 600;
}

a.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 0.12em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--easing);
}

a.inline-link:hover::after,

a.inline-link:focus-visible::after {
  transform: scaleX(1);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus-visible {
  left: 16px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 280ms var(--easing), box-shadow 280ms var(--easing);
}

.nav-toggle::after {
  content: "≡";
  font-size: 0.9rem;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--easing);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  padding: clamp(72px, 16vh, 140px) 0 clamp(60px, 12vh, 120px);
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
  background: radial-gradient(600px 400px at var(--mx, 60%) var(--my, 20%), rgba(255, 255, 255, 0.6), transparent 70%);
  border-radius: var(--radius-lg);
}

.hero-title {
  font-family: var(--serif);
  font-size: var(--title);
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero-copy {
  font-size: var(--subtitle);
  max-width: 40ch;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  transition: transform 300ms var(--easing), box-shadow 300ms var(--easing);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: var(--pad);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -30% 10% auto auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(15, 111, 107, 0.4), rgba(217, 91, 67, 0.4), rgba(107, 91, 217, 0.4));
  filter: blur(4px);
  opacity: 0.7;
}

.hero-meta {
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.section {
  padding: clamp(60px, 12vh, 120px) 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-family: var(--serif);
  margin: 0;
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: var(--gutter);
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: var(--pad);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(15, 111, 107, 0.1), transparent 60%);
  transform: translateX(-100%);
  transition: transform 600ms var(--easing);
}

.card:hover::after,
.card:focus-within::after {
  transform: translateX(100%);
}

.card h3 {
  margin-top: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 111, 107, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 18px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.timeline-item {
  display: grid;
  gap: 6px;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-item {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 280ms var(--easing), box-shadow 280ms var(--easing);
}

.blog-item:hover,
.blog-item:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.16);
}

.blog-item h3 {
  margin: 0;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer {
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 700ms var(--easing), transform 700ms var(--easing);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.article {
  padding: clamp(40px, 8vh, 80px) 0 100px;
}

.article-header {
  max-width: var(--measure);
  margin: 0 auto 40px;
  display: grid;
  gap: 16px;
}

.article-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0;
  font-family: var(--serif);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-body {
  max-width: var(--measure);
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1rem + 0.7vw, 1.3rem);
  line-height: 1.95;
  color: #1c1c1c;
  letter-spacing: 0.01em;
  text-wrap: pretty;
  line-break: strict;
}

.article-body p {
  margin: 0 0 1.6em;
}

.article-body h2 {
  margin-top: 2.8em;
  margin-bottom: 0.7em;
  font-family: var(--sans);
  font-size: 1.3em;
  letter-spacing: 0.02em;
}

.article-body blockquote {
  margin: 1.6em 0;
  padding: 1em 1.4em;
  border-left: 3px solid var(--accent);
  background: rgba(15, 111, 107, 0.08);
  border-radius: 10px;
  color: var(--muted);
}

.article-body code {
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.3em;
  border-radius: 6px;
}

.article-body pre {
  background: #111;
  color: #f6f6f6;
  padding: 18px;
  border-radius: 14px;
  overflow: auto;
  font-size: 0.95rem;
}

.article-body pre code {
  background: none;
  padding: 0;
}

.reading-rail {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 2;
  transition: width 120ms linear;
}

.article-footer {
  max-width: var(--measure);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-hero {
  padding: clamp(60px, 10vh, 100px) 0 40px;
}

.blog-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  font-family: var(--serif);
}

.blog-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 50ch;
}

.blog .blog-hero p {
  color: #4f4f4f;
}

.blog .blog-meta {
  color: #5a5a5a;
  letter-spacing: 0.06em;
}

.blog .blog-item {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.blog .blog-item:hover,
.blog .blog-item:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.blog .tag {
  background: rgba(0, 0, 0, 0.04);
}

.blog .filter-button[aria-pressed="true"] {
  background: #111;
  color: #fff;
  border-color: #111;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.6);
}

.filter-bar {
  gap: 8px;
}

.filter-button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font: inherit;
}

.filter-button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.filter-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-card {
    order: -1;
  }

  .nav {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Hyper geek --- */
body.geek {
  color-scheme: dark;
  color: #d9ffb6;
  background: #020503;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

body.geek::before {
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    var(--noise);
  opacity: 0.4;
  mix-blend-mode: screen;
}

body.geek::after {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(186, 255, 122, 0.16), transparent 70%),
    radial-gradient(1200px 900px at 50% 110%, rgba(0, 0, 0, 0.8), transparent 60%);
}

body.home {
  min-height: 100svh;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  font-size: calc(var(--body) + 1pt);
}

.geek .geek-topbar {
  padding: 24px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(186, 255, 122, 0.18);
  text-transform: uppercase;
  width: min(960px, 90vw);
  margin: 0 auto;
}

.home main {
  min-height: 0;
  display: flex;
  align-items: center;
}

.geek .nav a::after {
  display: none;
}

.geek .geek-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(186, 255, 122, 0.35);
  background: linear-gradient(90deg, rgba(5, 14, 8, 0.92), rgba(2, 8, 4, 0.78));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6), 0 0 18px rgba(186, 255, 122, 0.15);
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.geek .nav-toggle {
  border-radius: 4px;
  border: 1px solid rgba(186, 255, 122, 0.4);
  background: rgba(5, 12, 7, 0.85);
  color: rgba(217, 255, 185, 0.95);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.geek .nav-toggle::after {
  content: "▦";
  font-size: 0.8rem;
}

.geek .geek-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0 1px, transparent 1px 3px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.geek .geek-nav::after {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: linear-gradient(120deg, transparent 40%, rgba(186, 255, 122, 0.25), transparent 60%);
  transform: translateX(-120%);
  animation: nav-sweep 7s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.geek .geek-nav a {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid rgba(186, 255, 122, 0.25);
  background: rgba(5, 12, 7, 0.8);
  color: rgba(217, 255, 185, 0.95);
  overflow: hidden;
  transition: box-shadow 320ms var(--easing), transform 320ms var(--easing);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.geek .geek-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 45%, rgba(186, 255, 122, 0.35), transparent 70%);
  transform: translateX(-120%);
  transition: transform 420ms var(--easing);
  opacity: 0.8;
}

.geek .geek-nav a::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(186, 255, 122, 0.25);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  opacity: 0;
  transition: opacity 320ms var(--easing);
}

.geek .geek-nav a:hover,
.geek .geek-nav a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(186, 255, 122, 0.35);
}

.geek .geek-nav a:hover::before,
.geek .geek-nav a:focus-visible::before {
  transform: translateX(0);
}

.geek .geek-nav a:hover::after,
.geek .geek-nav a:focus-visible::after {
  opacity: 1;
}

.glitch {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.35em;
  font-size: 0.95rem;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.6;
}

.glitch::before {
  color: rgba(186, 255, 122, 0.7);
  transform: translate(2px, -1px);
  animation: glitch-shift 3.5s infinite;
}

.glitch::after {
  color: rgba(125, 255, 207, 0.7);
  transform: translate(-2px, 1px);
  animation: glitch-shift 4s infinite reverse;
}

@keyframes glitch-shift {
  0% {
    clip-path: inset(0 0 0 0);
  }
  20% {
    clip-path: inset(10% 0 65% 0);
  }
  40% {
    clip-path: inset(60% 0 10% 0);
  }
  60% {
    clip-path: inset(30% 0 45% 0);
  }
  80% {
    clip-path: inset(15% 0 55% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes nav-sweep {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(120%);
  }
}

.home .geek-hero {
  padding: clamp(24px, 6vh, 60px) 0;
  display: grid;
  gap: clamp(16px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  width: 100%;
}

.terminal-frame {
  border-radius: 16px;
  border: 1px solid rgba(186, 255, 122, 0.35);
  background: linear-gradient(160deg, rgba(4, 10, 5, 0.9), rgba(2, 6, 4, 0.9));
  box-shadow: 0 0 40px rgba(186, 255, 122, 0.12), inset 0 0 24px rgba(0, 0, 0, 0.8);
  padding: clamp(14px, 2.5vw, 24px);
  display: grid;
  gap: 14px;
}

.terminal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(186, 255, 122, 0.7);
}

.terminal-title {
  flex: 1;
}

.terminal-pill,
.terminal-status {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(186, 255, 122, 0.35);
  font-size: 0.7rem;
}

.terminal-body {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(260px, 1.15fr);
  gap: 16px;
  align-items: start;
}

.eye-display {
  position: relative;
  height: clamp(180px, 28vh, 260px);
  border-radius: 12px;
  border: 1px solid rgba(186, 255, 122, 0.4);
  background: #050a06;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 0 24px rgba(186, 255, 122, 0.2);
  overflow: hidden;
}

.eye-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.45) brightness(1.1);
}

.eye-display::before,
.eye-display::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.eye-display::before {
  background-image: radial-gradient(rgba(0, 0, 0, 0.65) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.eye-display::after {
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
  opacity: 0.6;
}

.terminal-copy {
  display: grid;
  gap: 10px;
}

.terminal-paragraph {
  margin: 0;
  font-size: clamp(0.7rem, 0.5vw + 0.6rem, 0.92rem);
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: rgba(217, 255, 185, 0.92);
  text-transform: none;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", var(--mono);
}

.terminal-line {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(217, 255, 185, 0.9);
}

.terminal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(186, 255, 122, 0.35);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(186, 255, 122, 0.75);
}

.geek .button {
  border-radius: 6px;
  border: 1px solid rgba(186, 255, 122, 0.45);
  background: rgba(6, 15, 8, 0.9);
  color: rgba(217, 255, 185, 0.95);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  padding: 10px 18px;
}

.geek .button.ghost {
  background: transparent;
}

.geek .button:hover,
.geek .button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(186, 255, 122, 0.25);
}

.signal-stack {
  display: grid;
  gap: 10px;
}

.signal-card {
  border-radius: 14px;
  border: 1px solid rgba(186, 255, 122, 0.3);
  background: rgba(3, 10, 5, 0.7);
  padding: 14px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 6px;
}

.signal-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(186, 255, 122, 0.7);
}

.signal-value {
  margin: 0;
  font-size: 0.9rem;
}

.link-card {
  transition: transform 280ms var(--easing), box-shadow 280ms var(--easing);
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(186, 255, 122, 0.25);
}

.geek .section {
  padding: clamp(50px, 10vh, 110px) 0;
}

.geek .section-tag {
  color: rgba(186, 255, 122, 0.7);
  letter-spacing: 0.3em;
}

.geek .section-title {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.geek .card,
.geek .blog-item {
  background: rgba(3, 10, 5, 0.72);
  border: 1px solid rgba(186, 255, 122, 0.25);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  color: rgba(217, 255, 185, 0.92);
}

.geek .card h3 {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.geek .blog-meta {
  color: rgba(186, 255, 122, 0.6);
}

.geek .inline-link {
  color: rgba(186, 255, 122, 0.9);
}

.geek .inline-link::after {
  background: linear-gradient(90deg, rgba(186, 255, 122, 0.9), rgba(125, 255, 207, 0.8));
}

.geek-footer {
  border-top: 1px solid rgba(186, 255, 122, 0.2);
  color: rgba(186, 255, 122, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

@media (max-width: 700px) {
  .geek .geek-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .terminal-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .geek .geek-nav {
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }

  .geek .geek-nav a {
    padding: 6px 10px;
  }

  .glitch {
    font-size: 0.85rem;
    letter-spacing: 0.22em;
  }

  .terminal-line {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .terminal-paragraph {
    font-size: 0.74rem;
    line-height: 1.55;
  }
}

@media (max-width: 880px) {
  .topbar,
  .geek-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    column-gap: 8px;
    row-gap: 8px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    white-space: nowrap;
  }

  .brand,
  .glitch {
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .geek .nav-toggle {
    display: inline-flex;
  }

  .nav {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height 420ms var(--easing), opacity 320ms var(--easing), transform 320ms var(--easing);
  }

  .nav.is-open {
    max-height: 380px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav.is-open a {
    width: 100%;
    text-align: left;
  }

  .geek .geek-nav {
    padding: 0;
    border-width: 0;
    background: transparent;
    box-shadow: none;
  }

  .geek .geek-nav.is-open {
    padding: 10px;
    margin-top: 10px;
    border-width: 1px;
    width: 100%;
    background: linear-gradient(90deg, rgba(5, 14, 8, 0.92), rgba(2, 8, 4, 0.78));
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6), 0 0 18px rgba(186, 255, 122, 0.15);
  }

  .geek .geek-nav a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .geek .geek-nav {
    width: 100%;
    justify-content: center;
    border-radius: 6px;
  }

  .geek .geek-nav a {
    flex: 1 1 auto;
    text-align: center;
    min-width: 120px;
  }

  .home main {
    align-items: flex-start;
  }

  .home .geek-hero {
    grid-template-columns: 1fr;
  }

  .terminal-body {
    grid-template-columns: 1fr;
  }

  .terminal-foot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .signal-stack {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .signal-card {
    padding: 12px;
  }

  .terminal-paragraph {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .geek .section {
    padding: clamp(40px, 8vh, 80px) 0;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1120px, 88vw);
  }

  .geek-topbar,
  .topbar {
    grid-template-columns: 1fr auto;
    justify-content: space-between;
  }

  .geek .geek-topbar {
    width: min(960px, 86vw);
  }

  .nav-toggle {
    justify-self: end;
  }

  .brand,
  .glitch {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .nav-toggle {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    padding: 6px 10px;
  }

  .geek .geek-nav {
    padding: 6px;
    gap: 6px;
  }

  .geek .geek-nav a {
    min-width: 110px;
    letter-spacing: 0.18em;
  }

  .geek .geek-topbar {
    padding: 18px 0 12px;
  }

  .terminal-frame {
    padding: 12px;
    gap: 10px;
  }

  .eye-display {
    height: clamp(140px, 22vh, 180px);
  }

  .terminal-line {
    font-size: 0.68rem;
  }

  .terminal-paragraph {
    font-size: 0.66rem;
  }

  .chip {
    padding: 4px 8px;
    font-size: 0.65rem;
  }

  .signal-label {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
  }

  .signal-value {
    font-size: 0.8rem;
  }
}

@media (max-height: 720px) {
  .home .geek-topbar {
    padding: 14px 0 10px;
  }

  .home main {
    align-items: flex-start;
  }

  .home .geek-hero {
    padding: 18px 0;
    gap: 12px;
  }

  .terminal-frame {
    gap: 10px;
    padding: 10px;
  }

  .eye-display {
    height: clamp(140px, 20vh, 190px);
  }

  .terminal-copy {
    gap: 6px;
  }

  .terminal-paragraph {
    font-size: 0.66rem;
    line-height: 1.4;
  }

  .signal-stack {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-height: 620px) {
  .terminal-line {
    font-size: 0.64rem;
  }

  .terminal-paragraph {
    font-size: 0.6rem;
  }

  .signal-card {
    padding: 8px;
  }

  .chip {
    padding: 4px 8px;
  }
}

@media (max-width: 420px), (max-height: 760px) {
  .home .geek-topbar {
    padding: 12px 0 8px;
  }

  .geek .geek-topbar {
    width: min(960px, 82vw);
  }

  .geek .geek-nav.is-open {
    padding: 8px;
  }

  .home .geek-hero {
    padding: 12px 0;
    gap: 10px;
  }

  .terminal-frame {
    padding: 8px;
    gap: 8px;
  }

  .terminal-head {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }

  .terminal-body {
    grid-template-columns: 110px 1fr;
    gap: 8px;
  }

  .eye-display {
    height: 120px;
  }

  .terminal-copy {
    gap: 6px;
  }

  .terminal-paragraph {
    font-size: 0.56rem;
    line-height: 1.28;
  }

  .terminal-foot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .terminal-foot .button {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .chip {
    font-size: 0.56rem;
    padding: 3px 5px;
  }

  .home .button {
    font-size: 0.6rem;
    padding: 5px 8px;
    letter-spacing: 0.12em;
  }

  .signal-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .signal-card {
    padding: 8px;
  }

  .signal-label {
    font-size: 0.5rem;
    letter-spacing: 0.18em;
  }

  .signal-value {
    font-size: 0.68rem;
  }
}

/* --- Node rebuild --- */
.node .node-header {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 18px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(186, 255, 122, 0.2);
  position: relative;
  z-index: 20;
}

.home .lang-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(186, 255, 122, 0.4);
  background: rgba(5, 12, 7, 0.85);
  color: rgba(217, 255, 185, 0.95);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.home .lang-toggle::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: linear-gradient(120deg, transparent 45%, rgba(186, 255, 122, 0.35), transparent 65%);
  transform: translateX(-120%);
  animation: lang-sweep 6.5s linear infinite;
  pointer-events: none;
}

.home .lang-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0 1px, transparent 1px 3px);
  opacity: 0.25;
  pointer-events: none;
}

.home .lang-toggle__glyph,
.home .lang-toggle__text {
  position: relative;
  z-index: 1;
}

.home .lang-toggle__glyph {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.home .lang-toggle__text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home .lang-divider {
  opacity: 0.5;
}

.home .lang-chip {
  opacity: 0.45;
  transition: opacity 200ms ease;
}

.home .lang-toggle[data-lang="ja"] .lang-chip[data-lang="ja"],
.home .lang-toggle[data-lang="en"] .lang-chip[data-lang="en"] {
  opacity: 1;
}

@keyframes lang-sweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.node .node-header .brand,
.node .node-header .glitch {
  flex: 1 1 auto;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node .node-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid rgba(186, 255, 122, 0.35);
  background: linear-gradient(90deg, rgba(5, 14, 8, 0.92), rgba(2, 8, 4, 0.78));
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.6), 0 0 14px rgba(186, 255, 122, 0.12);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.node .node-nav a {
  position: relative;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid rgba(186, 255, 122, 0.25);
  background: rgba(5, 12, 7, 0.8);
  color: rgba(217, 255, 185, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: transform 280ms var(--easing), box-shadow 280ms var(--easing);
}

.node .node-nav a:hover,
.node .node-nav a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(186, 255, 122, 0.25);
}

.node .node-main {
  width: min(1040px, 92vw);
  margin: 0 auto;
  padding: clamp(18px, 4vh, 60px) 0;
  display: grid;
  gap: clamp(18px, 4vh, 42px);
}

.node-shell {
  display: grid;
  gap: 12px;
}

.node-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.node-tag {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(186, 255, 122, 0.7);
}

.node-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.node-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.node-card,
.node-panel {
  border-radius: 8px;
  border: 1px solid rgba(186, 255, 122, 0.25);
  background: rgba(5, 12, 7, 0.7);
  padding: clamp(14px, 2.4vw, 20px);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.7);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.node-card h3 {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.node-meta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(186, 255, 122, 0.65);
}

.node-panel .timeline {
  border-left-color: rgba(186, 255, 122, 0.25);
}

.node-panel strong {
  color: rgba(217, 255, 185, 0.95);
}

.node-footer {
  width: min(980px, 92vw);
  margin: 0 auto 40px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  border-top: 1px solid rgba(186, 255, 122, 0.2);
  color: rgba(186, 255, 122, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.home .node-main {
  height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2vh, 20px) 0;
  position: relative;
  z-index: 1;
}

.home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(186, 255, 122, 0.08) 0 1px, transparent 1px 4px);
  opacity: 0.08;
  mix-blend-mode: screen;
  z-index: 1;
}

.home::after {
  content: "";
  position: fixed;
  inset: -20% -10%;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 45%, rgba(186, 255, 122, 0.12), transparent 60%);
  opacity: 0.12;
  mix-blend-mode: screen;
  animation: home-glitch-scan 10s steps(6) infinite;
  z-index: 1;
}

.home .boot-sequence {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(34, 90, 52, 0.4), rgba(3, 8, 5, 0.95) 60%);
  color: rgba(217, 255, 185, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-family: var(--mono);
  transition: opacity 280ms ease, visibility 280ms ease;
}

.home.is-booted .boot-sequence {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home .boot-frame {
  position: relative;
  width: min(420px, 82vw);
  border: 1px solid rgba(186, 255, 122, 0.35);
  border-radius: 6px;
  padding: 18px 16px 20px;
  background: rgba(5, 12, 7, 0.8);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.7), 0 0 18px rgba(186, 255, 122, 0.2);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  overflow: hidden;
}

.home .boot-title {
  font-size: 0.7rem;
  margin-bottom: 12px;
  opacity: 0.9;
}

.home .boot-meta {
  font-size: 0.6rem;
  opacity: 0.7;
  margin-top: 10px;
}

.home .boot-bar {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(186, 255, 122, 0.4);
  background: rgba(6, 14, 8, 0.9);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.home .boot-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(186, 255, 122, 0.15), rgba(186, 255, 122, 0.85));
  box-shadow: 0 0 12px rgba(186, 255, 122, 0.65);
}

.home .boot-glitch {
  position: absolute;
  inset: -40% -10%;
  background: linear-gradient(120deg, transparent 40%, rgba(186, 255, 122, 0.25), transparent 60%);
  opacity: 0.8;
  transform: translateX(-120%);
  animation: boot-glitch 2.6s steps(5) infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes home-glitch-scan {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes boot-glitch {
  0% {
    transform: translateX(-120%);
    opacity: 0.1;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(120%);
    opacity: 0.1;
  }
}

.home .node-grid {
  width: min(1040px, 92vw);
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) minmax(260px, 1.15fr);
  gap: clamp(12px, 3vw, 28px);
  align-items: center;
}

.home .portrait-panel {
  display: grid;
  gap: 8px;
}

.home .portrait-frame {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(186, 255, 122, 0.35);
  background: rgba(5, 12, 7, 0.7);
  aspect-ratio: 1 / 1;
  width: min(320px, 100%);
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.8);
}

.home .portrait-frame::before,
.home .portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home .portrait-frame::before {
  background-image: radial-gradient(rgba(0, 0, 0, 0.7) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.home .portrait-frame::after {
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.home .portrait-frame img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
}

.home .copy-frame {
  border-radius: 8px;
  border: 1px solid rgba(186, 255, 122, 0.25);
  background: rgba(5, 12, 7, 0.7);
  padding: clamp(10px, 2.4vw, 18px);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
  display: block;
}

.home .copy-lang {
  display: grid;
  gap: 8px;
}

.home .copy-lang[hidden] {
  display: none;
}

.home .bot-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 6, 3, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
  z-index: 60;
}

.home .bot-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.home .bot-window {
  width: min(520px, 92vw);
  border-radius: 6px;
  border: 1px solid rgba(186, 255, 122, 0.4);
  background: rgba(5, 12, 7, 0.92);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.7), 0 0 22px rgba(186, 255, 122, 0.2);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  overflow: hidden;
}

.home .bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(186, 255, 122, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.62rem;
  color: rgba(217, 255, 185, 0.9);
  background: linear-gradient(90deg, rgba(6, 16, 9, 0.9), rgba(4, 10, 6, 0.85));
}

.home .bot-id {
  font-family: var(--mono);
}

.home .bot-close {
  border: 1px solid rgba(186, 255, 122, 0.35);
  background: transparent;
  color: rgba(217, 255, 185, 0.85);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  padding: 4px 8px;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.home .bot-body {
  padding: 16px 18px 20px;
  display: grid;
  gap: 12px;
}

.home .bot-log {
  display: grid;
  gap: 8px;
  max-height: min(40vh, 320px);
  overflow-y: auto;
  padding-right: 4px;
}

.home .bot-line {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: rgba(217, 255, 185, 0.92);
}

.home .bot-entry {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: rgba(217, 255, 185, 0.9);
  font-family: var(--mono);
}

.home .bot-entry--reply {
  color: rgba(186, 255, 122, 0.85);
}

.home .bot-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border-top: 1px dashed rgba(186, 255, 122, 0.25);
  padding-top: 10px;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  color: rgba(186, 255, 122, 0.8);
}

.home .bot-caret {
  font-size: 0.8rem;
}

.home .bot-field {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(186, 255, 122, 0.3);
  color: rgba(217, 255, 185, 0.92);
  font-size: 0.7rem;
  padding: 6px 8px;
  outline: none;
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.home .bot-field:focus {
  border-color: rgba(186, 255, 122, 0.6);
  box-shadow: 0 0 12px rgba(186, 255, 122, 0.25);
}

.home .bot-send {
  border: 1px solid rgba(186, 255, 122, 0.35);
  background: transparent;
  color: rgba(217, 255, 185, 0.85);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  padding: 6px 8px;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}


.home .terminal-paragraph {
  margin: 0;
  font-size: calc(clamp(0.58rem, 0.55vw + 0.46rem, 0.9rem) + 2pt);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(217, 255, 185, 0.92);
  text-transform: none;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", var(--mono);
}

@media (max-width: 980px) {
  .home .node-main {
    height: auto;
  }

  .home .node-grid {
    grid-template-columns: 1fr;
  }

  .home .portrait-frame {
    width: min(240px, 100%);
  }
}

@media (max-width: 880px) {
  .node .node-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
  }
  .home .node-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }


  .node .node-nav {
    grid-column: 1 / -1;
    padding: 0;
    border-width: 0;
    background: transparent;
    box-shadow: none;
  }

  .node .node-nav.is-open {
    position: relative;
    z-index: 25;
    padding: 8px;
    margin-top: 8px;
    border-width: 1px;
    background: linear-gradient(90deg, rgba(5, 14, 8, 0.92), rgba(2, 8, 4, 0.78));
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(186, 255, 122, 0.12);
  }

  .node .node-nav a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .node .node-header {
    width: min(980px, 90vw);
  }

  .node .node-header .brand,
  .node .node-header .glitch {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .node .node-nav a {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .node .node-title {
    font-size: 1.1rem;
  }

  .node-card,
  .node-panel {
    padding: 12px;
  }

  .home .portrait-frame {
    width: min(85vw, 330px);
    margin-inline: auto;
  }

  .home .copy-lang {
    gap: 6px;
  }

  .home .portrait-panel {
    justify-items: center;
  }

  .home .copy-panel {
    width: 100%;
  }

  .home .terminal-paragraph {
    font-size: calc(0.56rem + 2pt);
    line-height: 1.28;
  }

  .home .bot-field {
    font-size: 16px;
  }

  .blog .blog-hero {
    padding-top: 24px;
  }
}

@media (max-height: 760px) {
  .home .node-header {
    padding: 12px 0 8px;
  }

  .home .node-main {
    padding: 6px 0 10px;
  }

  .home .portrait-frame {
    width: min(70vw, 260px);
  }

  .home .terminal-paragraph {
    font-size: calc(0.54rem + 2pt);
    line-height: 1.24;
  }

  .home .copy-frame {
    padding: 10px;
  }

  .home .copy-lang {
    gap: 6px;
  }
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1.6em auto;
}

.article-figure {
  margin: 1.8em 0;
}
