/* ── Variables ── */
:root {
  --blue: #2f69c7;
  --blue-dark: #0d438f;
  --orange: #e57b4f;
  --green: #59a14f;
  --white: #f7f3ed;
  --muted: #9f9789;
  --line: rgba(229, 123, 79, 0.98);
  --soft-line: rgba(159, 151, 137, 0.7);
}

/* ── Reset ── */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

/* ── CRT scanlines ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.032) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Base ── */
body {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.055), transparent 40%),
    linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.terminal {
  width: min(94vw, 1500px);
  margin: 28px auto 22px;
}

/* ── Boxes ── */
.boot-box,
.journal-box {
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: visible;
}

.boot-box {
  border-top-width: 3px;
  padding: 40px 40px 28px;
}

.journal-box {
  padding: 30px 40px 32px;
  background: rgba(0,0,0,0.15);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}

/* ── Boot title (fieldset legend) ── */
.boot-title {
  display: inline-block;
  padding: 0 22px;
  margin-left: 44px;
  color: var(--orange);
  font-size: clamp(17px, 2vw, 27px);
  font-weight: 900;
  letter-spacing: -0.05em;
  white-space: nowrap;
  line-height: 1;
}

.boot-title span {
  display: inline;
  margin-left: 10px;
  color: var(--muted);
}

/* ── Boot grid ── */
.boot-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 58px;
}

.welcome {
  text-align: center;
  border-right: 3px solid var(--line);
  padding-right: 58px;
}

.welcome h1 {
  margin: 0 0 22px;
  font-size: clamp(19px, 2.2vw, 31px);
  letter-spacing: -0.045em;
}

.welcome h1,
.bot span,
.post-figure svg {
  cursor: crosshair;
}

.welcome h1:focus-visible,
.bot span:focus-visible,
.post-figure svg:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}

.welcome p {
  margin: 8px 0;
  color: var(--muted);
  font-size: clamp(13px, 1.4vw, 21px);
  line-height: 1.2;
}

/* ── Bot figures ── */
.bot {
  width: 250px;
  height: 92px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.bot span {
  position: relative;
  width: 78px;
  height: 62px;
  background: var(--orange);
  display: block;
}

.bot span::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 13px;
  background: #050505;
  top: 22px;
  left: 22px;
  box-shadow: 26px 0 #050505;
}

.bot span::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -20px;
  width: 8px;
  height: 20px;
  background: var(--orange);
  box-shadow: 18px 0 var(--orange), 36px 0 var(--orange);
}

.bot span:nth-child(2) {
  background: var(--green);
  box-shadow: -10px 0 var(--green), 10px 0 var(--green);
}

.bot span:nth-child(2)::after {
  background: var(--green);
  box-shadow: 18px 0 var(--green), 36px 0 var(--green);
}

/* ── Tips sidebar ── */
.tips h2 {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: clamp(17px, 1.9vw, 27px);
  letter-spacing: -0.05em;
}

.tips p {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(13px, 1.4vw, 21px);
  line-height: 1.2;
  position: relative;
}

.tips p::before {
  content: "• ";
  color: var(--green);
}

.system-status p::before {
  animation: bootPulse 1.8s infinite;
}

.tips p + p {
  color: var(--muted);
  margin-top: -10px;
}

.tips button {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: clamp(13px, 1.4vw, 21px);
  line-height: 1.35;
  text-align: left;
}

.tips button::before {
  content: "> ";
  color: var(--green);
}

.tips button:hover,
.tips button:focus-visible {
  color: var(--green);
  outline: none;
}

.tips hr {
  border: 0;
  border-top: 3px solid var(--line);
  margin: 28px 0;
}

.index-pulse {
  display: block;
}

.index-pulse a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  margin: 0 0 10px;
  color: var(--white);
  text-decoration: none;
}

.index-pulse a::before {
  content: "> ";
  color: var(--green);
}

.index-pulse a:hover,
.index-pulse a:focus-visible {
  color: var(--green);
  outline: none;
}

.index-pulse strong {
  display: inline;
  color: var(--green);
  font-size: clamp(13px, 1.4vw, 21px);
  line-height: 1;
  letter-spacing: 0;
}

.index-pulse span {
  display: inline;
  min-width: 0;
  margin-top: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.4vw, 21px);
  line-height: 1.2;
}

.index-pulse a:hover span,
.index-pulse a:focus-visible span {
  color: var(--green);
}

/* ── Command prompt ── */
.prompt {
  margin: 22px 0 18px;
  padding: 11px 16px;
  border: 2px solid var(--soft-line);
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.prompt span {
  font-size: 26px;
  font-weight: 900;
}

.prompt i {
  width: 17px;
  height: 32px;
  display: block;
  background: var(--white);
  animation: blink 1.05s steps(1) infinite;
}

.prompt input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: clamp(15px, 1.7vw, 25px);
  caret-color: var(--white);
}

.prompt input::placeholder {
  color: rgba(247, 243, 237, 0.55);
}

/* ── Journal box content ── */
.journal-box h2 {
  margin: 0 0 28px;
  color: var(--orange);
  font-size: clamp(17px, 1.9vw, 27px);
  letter-spacing: -0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}


.journal-box ul {
  margin: 0;
  padding-left: 76px;
}

.journal-box li {
  margin: 14px 0;
  color: var(--orange);
  font-size: clamp(14px, 1.6vw, 23px);
  line-height: 1.2;
}

.journal-box a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 900;
  min-width: 220px;
  display: inline-block;
}

.journal-box li span {
  color: var(--muted);
}

.journal-box li:hover a {
  text-decoration: underline;
}

/* ── Status bar ── */
.status {
  margin-top: 26px;
  padding: 20px 10px 0;
  border-top: 3px solid var(--soft-line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: clamp(12px, 1.3vw, 19px);
}

.status strong {
  color: var(--orange);
}

/* ── Animations ── */
@keyframes blink {
  50% { opacity: 0; }
}

@keyframes bootPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes scrambleBlink {
  0% { opacity: 1; }
  50% { opacity: 0.25; }
  100% { opacity: 1; }
}

/* ── Link hover effects ── */
a {
  transition: color 140ms ease, letter-spacing 140ms ease;
}

a:hover {
  color: var(--green) !important;
  letter-spacing: 0.04em;
  text-shadow: 1px 0 var(--orange), -1px 0 var(--green);
}

.journal-box a:hover,
.blackiris a:hover {
  color: var(--green) !important;
  text-decoration: none;
  letter-spacing: normal;
  text-shadow: none;
}

.journal-box a:hover::after,
.blackiris a:hover::after {
  content: " ▓";
  color: var(--orange);
  animation: scrambleBlink 0.45s steps(2) infinite;
}

/* ── Home recent signals ── */
.signal-panel {
  position: relative;
  margin: 0 0 18px;
  padding: 20px 24px 22px;
  border: 2px solid rgba(89,161,79,0.62);
  background: rgba(0,0,0,0.14);
  overflow: hidden;
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 8px,
    rgba(0,0,0,0.08) 9px
  );
  opacity: 0.32;
  pointer-events: none;
}

.signal-panel__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(89,161,79,0.55);
}

.signal-panel__header h2 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(16px, 1.6vw, 23px);
  letter-spacing: -0.04em;
}

.signal-panel__header span {
  color: var(--green);
  font-size: clamp(12px, 1.1vw, 16px);
  animation: signalStatus 1.2s steps(2) 4 forwards;
}

.signal-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.signal-row {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(110px, auto);
  gap: 16px;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border-left: 3px solid rgba(89,161,79,0.7);
  color: var(--white);
  text-decoration: none;
  opacity: 0;
  transform: translateY(7px);
  animation: signalIn 420ms ease forwards;
}

.signal-row[hidden] {
  display: none;
}

.signal-row:nth-child(1) { animation-delay: 180ms; }
.signal-row:nth-child(2) { animation-delay: 360ms; }
.signal-row:nth-child(3) { animation-delay: 540ms; }
.signal-row:nth-child(4) { animation-delay: 720ms; }
.signal-row:nth-child(5) { animation-delay: 900ms; }
.signal-row:nth-child(6) { animation-delay: 1080ms; }
.signal-row:nth-child(7) { animation-delay: 1260ms; }
.signal-row:nth-child(8) { animation-delay: 1440ms; }

.signal-row span {
  color: var(--green);
  font-weight: 900;
}

.signal-row strong {
  min-width: 0;
  color: var(--white);
  font-size: clamp(14px, 1.35vw, 20px);
}

.signal-row em {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.signal-row:hover,
.signal-row:focus-visible {
  color: var(--white) !important;
  background: rgba(89,161,79,0.14);
  letter-spacing: normal;
  text-shadow: none;
  outline: none;
}

.signal-row:hover::before,
.signal-row:focus-visible::before {
  content: ">";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
}

@keyframes signalIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signalStatus {
  0%, 70% { opacity: 0.45; }
  100% { opacity: 1; }
}

/* ── About page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 58px;
}

.about-grid h1 {
  margin: 0 0 24px;
  color: var(--white);
  font-size: clamp(24px, 2.5vw, 40px);
  letter-spacing: -0.06em;
}

.about-grid p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 26px);
  line-height: 1.3;
}

.about-grid > section {
  border-right: 3px solid var(--line);
  padding-right: 58px;
}

.about-terminal .journal-box h2::after {
  content: " (active)";
  color: var(--muted);
  font-size: 0.6em;
}

/* ── Black Iris ── */
.blackiris {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px solid var(--soft-line);
}

.blackiris h2 {
  color: var(--orange);
  margin: 0 0 14px;
  font-size: clamp(18px, 1.9vw, 28px);
  letter-spacing: -0.04em;
}

.blackiris p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.3;
}

.blackiris a {
  color: var(--orange);
  text-decoration: none;
}

.blackiris a:hover {
  text-decoration: underline;
}

/* ── Global nav ── */
.global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 22px 0 16px;
  padding: 12px 16px;
  border: 2px solid rgba(229,123,79,0.55);
  border-radius: 10px;
  background: rgba(0,0,0,0.10);
}

.global-nav a,
.global-nav span {
  color: var(--orange);
  font-weight: 800;
  text-decoration: none;
}

.global-nav a:hover {
  color: var(--green) !important;
}

/* ── Archive ── */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.archive-grid article {
  border: 2px solid rgba(229,123,79,0.72);
  border-radius: 10px;
  padding: 12px;
  background: rgba(0,0,0,0.12);
  transition: transform 140ms ease, border-color 140ms ease;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.archive-grid article::after {
  content: "[ + ]";
  position: absolute;
  top: 18px;
  right: 16px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 140ms ease;
  pointer-events: none;
}

.archive-grid article:hover::after {
  opacity: 1;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 20, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: min(88vw, 1100px);
  max-height: 78vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.lightbox__counter {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.lightbox__meta {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.lightbox__title {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: clamp(15px, 1.6vw, 24px);
  letter-spacing: -0.04em;
}

.lightbox__caption {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 1.1vw, 17px);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 30px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color 120ms;
}

.lightbox__close:hover { color: var(--orange); }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 2px solid rgba(229,123,79,0.35);
  color: var(--orange);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  padding: 10px 18px;
  transition: border-color 140ms ease, color 140ms ease;
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__prev:hover,
.lightbox__next:hover {
  border-color: var(--orange);
  color: var(--white);
}

@media (max-width: 480px) {
  .lightbox__prev { left: 6px; padding: 8px 12px; }
  .lightbox__next { right: 6px; padding: 8px 12px; }
  .lightbox__meta { bottom: 16px; }
}

.archive-grid article:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}

.archive-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  filter: grayscale(1) contrast(1.08);
  opacity: 0;
  transition: filter 200ms ease, opacity 600ms ease;
}

.archive-grid article.loaded img {
  opacity: 0.82;
}

.archive-grid article:not(.loaded)::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: rgba(229,123,79,0.15);
  z-index: 2;
}

.archive-grid article:not(.loaded)::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  background-position: -40% 0;
  z-index: 3;
  animation: archiveScan 1.6s ease-in-out infinite;
}

@keyframes archiveScan {
  0%   { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}

.archive-grid article:hover img {
  filter: grayscale(0) contrast(1.04);
  opacity: 1 !important;
}

.archive-grid article.is-portrait img {
  filter: grayscale(0) contrast(1.02) !important;
  opacity: 1 !important;
}

.archive-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 17px);
}

.archive-grid h2 {
  margin: 4px 0 0;
  color: var(--orange);
  font-size: clamp(18px, 1.6vw, 26px);
  letter-spacing: -0.04em;
}

.archive-grid p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 15px);
}

/* ── Post page ── */
.post-box {
  border: 2px solid rgba(229,123,79,0.78);
  border-radius: 10px;
  margin: 28px 0;
  padding: 30px 40px;
  background: rgba(0,0,0,0.14);
}

.post-box h2 {
  margin: 0 0 24px;
  color: var(--orange);
  font-size: clamp(22px, 2.2vw, 36px);
  letter-spacing: -0.05em;
}

.post-box p {
  max-width: 920px;
  color: var(--white);
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.4;
  margin: 0 0 20px;
}

.post-box p:first-of-type {
  color: var(--muted);
}

.film-intro { color: var(--muted); margin-bottom: 20px; }
.film-closing { margin-top: 24px; font-style: italic; color: var(--white); }
.film-rating { margin-top: 18px; color: var(--orange); font-weight: 800; }

.post-figure {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  opacity: 0.6;
  transition: opacity 180ms ease, filter 180ms ease;
}

.post-figure:hover {
  opacity: 0.9;
  filter: brightness(1.18);
}

/* ASCII portrait */
.ascii-portrait {
  overflow-x: auto;
}

.ascii-portrait pre {
  display: inline-block;
  font-size: 0.55rem;
  line-height: 1.15;
  color: var(--orange);
  opacity: 0.75;
  letter-spacing: 0;
  margin: 0;
  white-space: pre;
  text-align: left;
}

.tips .ascii-portrait {
  padding-top: 1.2rem;
  text-align: left;
}

/* ── Films list ── */
.films-list {
  margin: 28px 0;
  border: 2px solid rgba(229,123,79,0.6);
  border-radius: 10px;
  overflow: hidden;
}

.films-list article {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(229,123,79,0.4);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: center;
  transition: background 120ms ease;
}

.films-list article:last-child { border-bottom: 0; }
.films-list article > div { min-width: 0; }

.films-list article:hover {
  background: rgba(229,123,79,0.08);
}

.films-list article:hover span::before {
  content: ">";
  color: var(--green);
  margin-right: 8px;
}

.films-list span { color: var(--muted); font-size: 17px; }
.films-list h2 { margin: 0; color: var(--orange); font-size: 22px; }
.films-list p { grid-column: 2; margin: 3px 0 0; color: var(--muted); font-size: 15px; letter-spacing: -0.02em; }

.films-terminal .journal-box li:hover { background: rgba(89,161,79,0.08); }

.film-tags span::after { content: " · "; color: var(--muted); }
.film-tags span:last-child::after { content: ""; }

.films-list article.is-active {
  background: rgba(89,161,79,0.16);
  border-left: 5px solid var(--green);
}

.films-list article.is-active h2::before {
  content: "> ";
  color: var(--green);
}

[data-tags].is-hidden {
  display: none !important;
}

/* ── Journal list ── */
.journal-list {
  margin: 28px 0;
  border: 2px solid rgba(229,123,79,0.6);
  border-radius: 10px;
  overflow: hidden;
}

.journal-list article {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(229,123,79,0.4);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: center;
  transition: background 120ms ease;
}

.journal-list article:last-child { border-bottom: 0; }
.journal-list article:hover { background: rgba(229,123,79,0.08); }
.journal-list article > div { min-width: 0; }
.journal-list span { color: var(--muted); font-size: 17px; }
.journal-list h2 { margin: 0; color: var(--orange); font-size: 22px; }
.journal-list p { grid-column: 2; margin: 3px 0 0; color: var(--muted); font-size: 15px; letter-spacing: -0.02em; }

/* ── Objects list ── */
.objects-list {
  margin: 28px 0;
  border: 2px solid rgba(229,123,79,0.6);
  border-radius: 10px;
  overflow: hidden;
}

.objects-list article {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(229,123,79,0.4);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: center;
  transition: background 120ms ease;
}

.objects-list article:last-child { border-bottom: 0; }
.objects-list article:hover { background: rgba(229,123,79,0.08); }
.objects-list span { color: var(--muted); font-size: 17px; }
.objects-list h2 { margin: 0; color: var(--orange); font-size: 22px; }
.objects-list p { grid-column: 2; margin: 3px 0 0; color: var(--muted); font-size: 15px; letter-spacing: -0.02em; }

/* ── ASCII image ── */
.about-ascii-image {
  margin-top: 24px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  padding: 16px;
  border-radius: 10px;
}

.about-ascii-image img {
  width: min(100%, 760px);
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  mix-blend-mode: screen;
  opacity: 0.92;
}

/* ── 900px ── */
@media (max-width: 900px) {
  .terminal { margin: 16px auto; }

  .boot-box { padding: 36px 24px 22px; }
  .journal-box { padding: 24px 22px 26px; }

  .boot-title {
    font-size: clamp(15px, 4vw, 22px);
    margin-left: 20px;
  }

  .boot-grid { grid-template-columns: 1fr; gap: 28px; }

  .welcome {
    border-right: 0;
    border-bottom: 3px solid var(--line);
    padding-right: 0;
    padding-bottom: 26px;
  }

  .welcome h1 { font-size: clamp(17px, 4.5vw, 26px); margin-bottom: 14px; }
  .welcome p, .tips p { font-size: clamp(13px, 3.2vw, 17px); }
  .tips h2, .journal-box h2 { font-size: clamp(15px, 4vw, 20px); }

  .journal-box li { font-size: clamp(13px, 3.6vw, 18px); margin: 10px 0; }
  .journal-box ul { padding-left: 20px; }
  .journal-box a { display: block; min-width: 0; }

  .prompt { padding: 9px 13px; margin: 14px 0 12px; }
  .prompt span { font-size: 20px; }
  .prompt i { width: 13px; height: 26px; }
  .prompt input { font-size: clamp(14px, 3.8vw, 19px); }

  .signal-panel {
    padding: 16px;
    margin-bottom: 12px;
  }

  .signal-panel__header {
    display: block;
  }

  .signal-panel__header span {
    display: block;
    margin-top: 6px;
  }

  .signal-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
  }

  .signal-row em {
    grid-column: 2;
    text-align: left;
    font-size: 12px;
  }

  .status { font-size: clamp(11px, 2.8vw, 15px); display: block; }

  .about-grid { grid-template-columns: 1fr; }
  .about-grid > section {
    border-right: 0;
    border-bottom: 3px solid var(--line);
    padding-right: 0;
    padding-bottom: 28px;
  }

  .archive-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .terminal { margin: 10px auto; }

  .boot-box { padding: 28px 14px 16px; border-radius: 8px; }
  .journal-box { padding: 18px 14px 20px; border-radius: 8px; }

  .boot-title { font-size: 14px; margin-left: 12px; padding: 0 9px; }
  .boot-grid { gap: 18px; }

  .welcome h1 { font-size: 17px; margin-bottom: 12px; }
  .welcome { padding-bottom: 16px; }
  .welcome p, .tips p { font-size: 13px; }
  .tips h2 { font-size: 14px; margin-bottom: 4px; }

  .journal-box h2 { font-size: 14px; margin-bottom: 12px; }
  .journal-box li { font-size: 13px; margin: 7px 0; }
  .journal-box ul { padding-left: 12px; }

  .prompt { padding: 7px 10px; margin: 10px 0 8px; gap: 9px; }
  .prompt span { font-size: 16px; }
  .prompt i { width: 11px; height: 22px; }
  .prompt input { font-size: 13px; }

  .signal-panel {
    padding: 12px 10px;
  }

  .signal-row {
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 0;
  }

  .signal-row em {
    grid-column: auto;
  }

  .status { font-size: 12px; }

  .archive-grid { grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }

  .post-box { padding: 18px 14px; }
  .post-box p { font-size: 14px; }

  .films-list article { padding: 11px 13px; gap: 9px; grid-template-columns: 44px 1fr; }
  .films-list h2 { font-size: 16px; }
  .films-list p, .film-tags { font-size: 12px; }

  .objects-list article { padding: 11px 13px; gap: 9px; grid-template-columns: 44px 1fr; }
  .objects-list h2 { font-size: 16px; }
  .objects-list p { font-size: 12px; }
}

/* Journal system v2 */
.journal-list {
  margin: 32px 0;
  border: 2px solid rgba(229,123,79,0.6);
  border-radius: 10px;
  overflow: hidden;
}

.journal-list article {
  padding: 18px 28px;
  border-bottom: 1px solid rgba(229,123,79,0.4);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
}

.journal-list article:last-child {
  border-bottom: 0;
}

.journal-list span {
  color: var(--muted);
}

.journal-list h2 {
  margin: 0;
  color: var(--orange);
}

.journal-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* Journal v3 — select highlight */
.journal-list article {
  transition: background 140ms ease, border-left 140ms ease;
}

.journal-list article:hover {
  background: rgba(229,123,79,0.08);
}

.journal-list article.is-active {
  background: rgba(89,161,79,0.16);
  border-left: 5px solid var(--green);
}

.journal-list article.is-active h2::before {
  content: "> ";
  color: var(--green);
}

/* v3 — figure hover effect */
.bot span {
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  cursor: crosshair;
}

.bot:hover span:first-child {
  transform: translateX(-8px) translateY(-4px) rotate(-2deg);
  box-shadow:
    0 0 0 2px var(--orange),
    0 0 18px rgba(229,123,79,0.85);
  filter: brightness(1.18);
}

.bot:hover span:nth-child(2) {
  transform: translateX(8px) translateY(-4px) rotate(2deg);
  box-shadow:
    0 0 0 2px var(--green),
    0 0 18px rgba(89,161,79,0.85);
  filter: brightness(1.18);
}

.bot:hover::before {
  content: "SYSTEM AWAKE";
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Objects system v2 */
.object-list {
  margin: 32px 0;
  border: 2px solid rgba(229,123,79,0.6);
  border-radius: 10px;
  overflow: hidden;
}

.object-list article {
  padding: 18px 28px;
  border-bottom: 1px solid rgba(229,123,79,0.4);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
}

.object-list article:last-child {
  border-bottom: 0;
}

.object-list span {
  color: var(--muted);
}

.object-list h2 {
  margin: 0;
  color: var(--orange);
}

.object-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* External polish */
a[href^="http"]::after {
  content: " ↗";
  color: var(--green);
  font-size: 0.82em;
}

a[href^="https://mcamner.github.io/mcamner-journal"]::after {
  content: "";
}

/* Global focus panel */
.focus-panel {
  border: 2px solid rgba(89,161,79,0.72);
  border-radius: 10px;
  background: rgba(0,0,0,0.16);
  padding: 18px 22px;
  margin: 24px 0 30px;
  opacity: 0.88;
}

.focus-panel h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: clamp(18px, 1.6vw, 26px);
  letter-spacing: -0.04em;
}

.focus-panel p {
  margin: 6px 0;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 19px);
}

.focus-panel strong {
  color: var(--orange);
  font-weight: 800;
}

.focus-panel [data-focus-command] {
  color: var(--green);
  font-weight: 800;
}

.journal-list article,
.films-list article,
.object-list article,
.archive-grid article,
.catalogue-list article {
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.journal-list article:hover,
.films-list article:hover,
.object-list article:hover,
.archive-grid article:hover,
.catalogue-list article:hover,
.journal-list article.is-focused,
.films-list article.is-focused,
.object-list article.is-focused,
.archive-grid article.is-focused,
.catalogue-list article.is-focused {
  background: rgba(89,161,79,0.12);
  border-color: var(--green);
  cursor: crosshair;
}

/* Tag readability */
.film-tags,
.catalogue-tags,
.object-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.film-tags span,
.catalogue-tags span,
.object-tags span {
  color: var(--green);
  border: 1px solid rgba(89,161,79,0.55);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 13px;
}

.film-tags span[role="button"],
.catalogue-tags span[role="button"],
.object-tags span[role="button"] {
  cursor: pointer;
}

.film-tags span[role="button"]:hover,
.film-tags span[role="button"]:focus-visible,
.catalogue-tags span[role="button"]:hover,
.catalogue-tags span[role="button"]:focus-visible,
.object-tags span[role="button"]:hover,
.object-tags span[role="button"]:focus-visible {
  color: var(--white);
  background: rgba(89,161,79,0.18);
  outline: none;
}
