:root {
  --bg: #120f0b;
  --cabinet: #1c1711;
  --cabinet-2: #251e16;
  --cabinet-inset: #0d0a07;
  --chrome: #d8ccb4;
  --chrome-dim: #8a7f6a;
  --led-amber: #ffb01f;
  --led-amber-soft: #d98a16;
  --reel-red: #e23b2e;
  --reel-green: #4fd36a;
  --ink: #f6ecd6;
  --muted: #b3a387;
  --soft: #7d705b;
  --line: rgba(216, 204, 180, 0.16);
  --line-strong: rgba(216, 204, 180, 0.30);
  --font-display: "Chakra Petch", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(125% 78% at 50% -12%, rgba(255, 176, 31, 0.11), transparent 58%),
    linear-gradient(180deg, #17120c, var(--bg) 46%);
  background-attachment: fixed;
  font-family: var(--font-body);
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: var(--led-amber);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 16px rgba(255, 176, 31, 0.7);
}

.site-header {
  position: relative;
  z-index: 100;
  background:
    linear-gradient(180deg, var(--cabinet-2), var(--cabinet));
  border-bottom: 1px solid var(--line-strong);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 2px 0 rgba(216, 204, 180, 0.06);
}

.header-shell,
.floor-console,
.reel,
.content-section,
.footer-grid,
.footer-bottom,
.archive-hero,
.article-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-logo,
.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-logo {
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--cabinet-inset);
  background: linear-gradient(180deg, var(--led-amber), var(--led-amber-soft));
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 18px rgba(255, 176, 31, 0.3);
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-copy span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.led-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--reel-green);
  box-shadow: 0 0 8px rgba(79, 211, 106, 0.9);
}

.led-dot[data-blink] {
  animation: led-blink 1.7s steps(1, end) infinite;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a,
.search-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-nav a:hover,
.search-button:hover {
  color: var(--led-amber);
}

.search-button {
  padding: 9px 15px;
  color: var(--cabinet-inset);
  background: linear-gradient(180deg, var(--led-amber), var(--led-amber-soft));
  border-radius: 4px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 0 rgba(0, 0, 0, 0.45);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--cabinet-2);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.site-main {
  min-height: 68vh;
}

.section-kicker,
.eyebrow,
.review-kicker,
.plate-kicker {
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.led-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  color: var(--led-amber);
  background: var(--cabinet-inset);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
}

.led-readout {
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-shadow: 0 0 10px rgba(255, 176, 31, 0.55);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 22px;
  padding: 12px 20px;
  color: var(--cabinet-inset);
  background: linear-gradient(180deg, var(--led-amber), var(--led-amber-soft));
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.button-primary:hover {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 0 rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ---- Home: floor console hero ---- */
.floor-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 20px;
  padding: 52px 0 30px;
}

.console-deck,
.main-screen,
.reel-window,
.symbol-card,
.spec-plate,
.metric-panel,
.post-card,
.review-card,
.side-module {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cabinet-2), var(--cabinet));
  box-shadow: inset 0 1px 0 rgba(216, 204, 180, 0.06), 0 12px 30px rgba(0, 0, 0, 0.42);
}

.console-deck {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding: 34px;
}

.console-deck h1 {
  margin: 16px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.console-deck > p {
  max-width: 600px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.06rem;
}

.button-bank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.button-bank a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  color: var(--ink);
  background: linear-gradient(180deg, #2c241a, #1f1913);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(216, 204, 180, 0.08), 0 3px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.08s ease, color 0.15s ease;
}

.button-bank a:hover {
  transform: translateY(1px);
  color: var(--led-amber);
}

.button-bank span {
  display: grid;
  place-items: center;
  width: 42px;
  padding: 4px 0;
  color: var(--led-amber);
  background: var(--cabinet-inset);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
}

.main-screen {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: linear-gradient(180deg, #0f0c08, var(--cabinet-inset));
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-bar .led-readout {
  margin-left: auto;
}

.screen-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px;
}

.screen-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 176, 31, 0.04) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.screen-feature h2 {
  margin: 13px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.8vw, 2.55rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.screen-feature p {
  margin: 0;
  color: var(--muted);
}

.screen-feature .button-primary {
  margin-top: auto;
}

/* ---- Home: reels ---- */
.reel {
  padding: 8px 0 30px;
}

.reel-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.reel-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.reel-head .plate-kicker {
  order: -1;
  flex: 0 0 auto;
}

.reel-head h2 {
  flex: 0 0 auto;
}

.reel-all {
  margin-left: auto;
  align-self: center;
  color: var(--reel-green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}

.reel-all:hover {
  color: var(--led-amber);
}

.reel-window {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  max-width: 100%;
  padding: 16px;
  background: linear-gradient(180deg, #0f0c08, var(--cabinet-inset));
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  scrollbar-color: var(--led-amber-soft) var(--cabinet-inset);
  scrollbar-width: thin;
}

.reel-window::-webkit-scrollbar {
  height: 8px;
}

.reel-window::-webkit-scrollbar-track {
  background: var(--cabinet-inset);
}

.reel-window::-webkit-scrollbar-thumb {
  background: var(--led-amber-soft);
  border-radius: 4px;
}

.reel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  max-width: none;
}

.symbol-card {
  display: flex;
  flex: 0 0 308px;
  flex-direction: column;
  min-height: 210px;
  padding: 18px;
}

.symbol-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.symbol-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}

.symbol-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.symbol-card .foot {
  margin-top: auto;
  align-self: flex-start;
}

.symbol-card h3 a:hover {
  color: var(--led-amber);
}

/* ---- Sections / grids ---- */
.content-section {
  padding: 46px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-heading a {
  flex: 0 0 auto;
  color: var(--reel-green);
  font-family: var(--font-display);
  font-weight: 700;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card-body,
.review-card-link {
  display: flex;
  height: 260px;
  min-height: 260px;
  flex-direction: column;
  padding: 18px;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.post-card h3,
.review-card h3 {
  margin: 13px 0 10px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.post-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.post-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.post-card:hover h3,
.review-card:hover h3 {
  color: var(--led-amber);
}

.review-card-link {
  gap: 10px;
}

.review-meta {
  margin-top: auto;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ---- Archive ---- */
.archive-hero {
  padding: 54px 0 0;
}

.archive-hero h1 {
  margin: 16px 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.archive-hero p {
  max-width: 760px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.08rem;
}

.archive-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.archive-list article {
  display: grid;
  grid-template-columns: 135px minmax(0, 0.78fr) minmax(240px, 1fr);
  gap: 22px;
  min-height: 118px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.archive-list time {
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.archive-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.archive-list h3 a:hover {
  color: var(--led-amber);
}

.archive-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  color: var(--soft);
  font-family: var(--font-mono);
}

.pagination a:hover {
  color: var(--led-amber);
}

/* ---- Article ---- */
.article-shell {
  padding: 54px 0 0;
}

.spec-plate {
  width: min(880px, 100%);
  margin-inline: auto;
  padding: 26px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cabinet-2), var(--cabinet));
  box-shadow: inset 0 1px 0 rgba(216, 204, 180, 0.06), 0 12px 30px rgba(0, 0, 0, 0.42);
}

.article-meta,
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.spec-plate h1 {
  margin: 16px 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.spec-plate > p {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.article-feature {
  width: min(800px, 100%);
  margin: 32px auto 0;
}

.article-feature img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: var(--cabinet-inset);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.35), 0 10px 26px rgba(0, 0, 0, 0.4);
}

.article-feature figcaption {
  margin-top: 10px;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
}

.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 800px);
  justify-content: center;
  gap: 44px;
  align-items: start;
  margin-top: 42px;
}

.article-layout.toc-empty,
.article-layout.single {
  grid-template-columns: minmax(0, 800px);
}

.article-toc {
  position: sticky;
  top: 24px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--cabinet);
  color: var(--muted);
}

.article-toc.is-empty {
  display: none;
}

.article-toc span {
  display: block;
  margin-bottom: 12px;
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc-link {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
}

.toc-link.child {
  padding-left: 22px;
}

.toc-link:hover {
  color: var(--led-amber);
  border-left-color: var(--led-amber);
}

.article-content {
  min-width: 0;
  color: #e7dcc4;
  font-size: 1.07rem;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 2.1em 0 0.7em;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.article-content h2 {
  font-size: 1.95rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line);
}

.article-content h3 {
  font-size: 1.42rem;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 1.25em;
}

.article-content a {
  color: var(--reel-green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--reel-red);
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.62;
}

.article-content pre,
.article-content code {
  font-family: var(--font-mono);
}

.article-content code {
  padding: 2px 6px;
  background: var(--cabinet-inset);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.9em;
}

.article-content pre {
  overflow: auto;
  padding: 18px;
  background: var(--cabinet-inset);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}

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

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.article-content th {
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.article-content .kg-image-card img,
.article-content .kg-gallery-image img {
  border: 1px solid var(--line);
  border-radius: 4px;
}

.article-content .kg-embed-card,
.article-content .kg-video-card,
.article-content .kg-file-card {
  width: 100%;
  margin: 2.2em 0;
}

.article-content .kg-embed-card iframe,
.article-content .kg-video-card video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.article-content .kg-embed-card iframe[src*="youtube"],
.article-content .kg-embed-card iframe[src*="youtu.be"] {
  min-height: 450px;
}

.article-content .kg-card figcaption {
  margin-top: 10px;
  color: var(--soft);
  font-size: 0.84rem;
  text-align: center;
}

.article-content .kg-width-wide {
  width: min(1040px, calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .kg-width-full img {
  width: 100%;
}

.related-section {
  padding-top: 48px;
}

/* ---- Contact page ---- */
.contact-shell {
  padding-top: 58px;
}

.contact-hero {
  width: min(960px, 100%);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  width: min(960px, 100%);
  margin: 28px auto 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cabinet-2), var(--cabinet));
  box-shadow: inset 0 1px 0 rgba(216, 204, 180, 0.06), 0 12px 30px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.contact-main {
  padding: 30px;
}

.contact-main h2 {
  margin: 14px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.16;
}

.contact-main p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.contact-handle {
  display: inline-flex;
  max-width: 100%;
  margin-top: 22px;
  padding: 12px 14px;
  color: var(--led-amber);
  background: var(--cabinet-inset);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.62);
}

.contact-action {
  display: flex;
}

.contact-side {
  display: grid;
  align-content: stretch;
  border-left: 1px solid var(--line-strong);
  background: var(--cabinet-inset);
}

.contact-readout {
  display: grid;
  align-content: center;
  gap: 9px;
  min-height: 104px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.contact-readout:last-child {
  border-bottom: 0;
}

.contact-readout span {
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.contact-readout strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.contact-notes {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  width: min(960px, 100%);
  margin: 16px auto 0;
}

.contact-notes article {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(36, 29, 21, 0.94), rgba(24, 19, 14, 0.96));
}

.contact-notes h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
}

.contact-notes p,
.contact-notes ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-notes ul {
  padding-left: 1.2em;
}

.contact-notes li + li {
  margin-top: 7px;
}

/* ---- Page / error ---- */
.page-shell .article-layout {
  margin-top: 0;
}

.error-hero {
  padding: 90px 0;
  text-align: center;
}

.button.primary {
  display: inline-flex;
  margin-top: 8px;
  padding: 12px 22px;
  color: var(--cabinet-inset);
  background: linear-gradient(180deg, var(--led-amber), var(--led-amber-soft));
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 rgba(0, 0, 0, 0.5);
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 70px;
  padding: 44px 0 26px;
  color: var(--muted);
  background: linear-gradient(180deg, var(--cabinet), #0c0906);
  border-top: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 0 rgba(216, 204, 180, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(170px, 0.55fr));
  gap: 38px;
}

.footer-brand {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-grid p {
  max-width: 520px;
  margin: 12px 0 0;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid section:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-grid section:not(:first-child) a:hover {
  color: var(--led-amber);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.footer-bottom a:hover {
  color: var(--led-amber);
}

/* ---- Load choreography ---- */
@keyframes led-blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.22; }
}

@keyframes boot-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.floor-console > *,
.reel,
.archive-hero,
.spec-plate {
  animation: boot-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.console-deck { animation-delay: 0.02s; }
.main-screen { animation-delay: 0.1s; }
.reel:nth-of-type(2) { animation-delay: 0.16s; }
.reel:nth-of-type(3) { animation-delay: 0.22s; }
.reel:nth-of-type(4) { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .floor-console > *,
  .reel,
  .archive-hero,
  .spec-plate,
  .led-dot[data-blink] {
    animation: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1040px) {
  .floor-console,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .console-deck {
    min-height: auto;
  }

  .article-toc {
    display: none;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-list article {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .archive-list p {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .header-shell,
  .floor-console,
  .reel,
  .content-section,
  .footer-grid,
  .footer-bottom,
  .archive-hero,
  .article-shell {
    width: min(calc(100% - 28px), 1180px);
  }

  .header-shell {
    min-height: 66px;
  }

  .brand-copy span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 66px 14px auto 14px;
    z-index: 120;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--cabinet-2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .search-button {
    width: 100%;
    padding: 12px 10px;
    text-align: left;
  }

  .search-button {
    text-align: center;
  }

  .floor-console {
    padding-top: 32px;
  }

  .console-deck {
    padding: 22px;
  }

  .console-deck h1 {
    font-size: clamp(2.1rem, 10vw, 2.9rem);
  }

  .button-bank {
    grid-template-columns: 1fr;
  }

  .symbol-card {
    flex-basis: 78vw;
  }

  .post-grid,
  .post-grid.compact,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .post-card-body,
  .review-card-link {
    height: auto;
    min-height: 230px;
  }

  .content-section {
    padding: 38px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 10px;
  }

  .archive-list article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .archive-list p {
    grid-column: auto;
  }

  .spec-plate {
    padding: 20px;
  }

  .spec-plate h1 {
    font-size: clamp(1.85rem, 8vw, 2.3rem);
    line-break: anywhere;
  }

  .contact-shell {
    padding-top: 38px;
  }

  .contact-panel,
  .contact-notes {
    grid-template-columns: 1fr;
  }

  .contact-main,
  .contact-notes article {
    padding: 20px;
  }

  .contact-main h2 {
    font-size: 1.65rem;
  }

  .contact-side {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .contact-readout {
    min-height: 86px;
  }

  .archive-hero h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
    line-break: anywhere;
  }

  .article-content {
    font-size: 1.02rem;
  }

  .article-content h2 {
    font-size: 1.65rem;
  }

  .article-content .kg-embed-card iframe[src*="youtube"],
  .article-content .kg-embed-card iframe[src*="youtu.be"] {
    min-height: 204px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
