/* ==========================================================================
   mrHumildad.github.io — developer portfolio
   Hand-written CSS. No framework, no build step.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #080a07;
  --bg-2: #0d100a;
  --panel: #11150d;
  --panel-2: #171c12;
  --line: #2a3220;
  --line-strong: #3d4a2c;
  --chalk: #f0f4e6;
  --muted: #9fae8d;
  --acid: #c9f24a;
  --acid-ink: #0a0c06;
  --amber: #ffb648;
  --red: #ff5a4a;
  --hard: 7px 7px 0 rgba(0, 0, 0, .75);
  --radius: 14px;
  --font-display: ui-sans-serif, system-ui, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --cell-0: #1c2318;
  --cell-1: #38491f;
  --cell-2: #5f7d24;
  --cell-3: #8fb52f;
  --cell-4: #c9f24a;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f0e4;
  --bg-2: #ece8d8;
  --panel: #fffdf4;
  --panel-2: #f8f4e6;
  --line: #d8d2bd;
  --line-strong: #b6ae92;
  --chalk: #1a1d12;
  --muted: #5d6550;
  --acid: #4f7d00;
  --acid-ink: #fffdf4;
  --amber: #8a5200;
  --red: #b3261e;
  --hard: 7px 7px 0 #d3ccb4;
  --cell-0: #e2dcc8;
  --cell-1: #c4d79a;
  --cell-2: #9cc45f;
  --cell-3: #6f9f2a;
  --cell-4: #3f6b00;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

/* CRT scanlines + grid, purely decorative */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
  opacity: .45;
}

body::after {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(201, 242, 74, .09), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 96px, rgba(255, 255, 255, .018) 96px 192px);
}

[data-theme="light"] body::before { opacity: .18; }
[data-theme="light"] body::after { opacity: .5; }

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

a { color: inherit; }

h1, h2, h3, p, ul, ol, dl, dd, pre { margin: 0; }

ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--acid);
  color: var(--acid-ink);
  font: 700 .8rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  border-radius: 6px;
}

.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* --- top bar ------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.brand b {
  color: var(--chalk);
  letter-spacing: .1em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
  flex: none;
}

.topbar .spacer { margin-left: auto; }

.icon-btn {
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--chalk);
  font: 700 .72rem/1 var(--font-mono);
  letter-spacing: .1em;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--acid);
  color: var(--acid);
}

[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun { display: none; }

/* --- hero --------------------------------------------------------------- */
.hero {
  padding: clamp(34px, 6vw, 76px) 0 clamp(18px, 3vw, 28px);
}

.hero-grid {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}

.kicker {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--acid);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--acid);
}

.hero h1 {
  font-size: clamp(2.5rem, 7.4vw, 4.9rem);
  line-height: .92;
  letter-spacing: -.015em;
  text-transform: uppercase;
  font-weight: 800;
  text-wrap: balance;
}

.hero h1 .hero-handle {
  display: block;
  color: var(--muted);
  font-size: .3em;
  letter-spacing: .14em;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-top: 14px;
}

/* Headline alternates between the two words of the name: each holds 5s. */
.hero-swap { display: grid; }

.hero-swap > .hero-word {
  grid-area: 1 / 1;
  justify-self: start;
}

.hero-word.is-first { animation: heroWordFirst 10s ease-in-out infinite; }

.hero-word.is-last { animation: heroWordLast 10s ease-in-out infinite; }

@keyframes heroWordFirst {
  0%, 40%  { opacity: 1; transform: translateY(0); }
  50%, 90% { opacity: 0; transform: translateY(-.12em); }
  100%     { opacity: 1; transform: translateY(0); }
}

@keyframes heroWordLast {
  0%, 40%  { opacity: 0; transform: translateY(.12em); }
  50%, 90% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(.12em); }
}

/* No motion: both words sit inline, reading as the full name. */
@media (prefers-reduced-motion: reduce) {
  .hero-swap { display: inline; }
  .hero-swap > .hero-word { animation: none; }
}

.roles {
  margin-top: 18px;
  max-width: 42ch;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--chalk);
}

.contract {
  margin-top: 8px;
  max-width: 46ch;
  color: var(--muted);
  font-size: .95rem;
}

.cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .72em 1.05em;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--panel);
  color: var(--chalk);
  font: 700 .76rem/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}

.btn:hover { border-color: var(--acid); color: var(--acid); transform: translateY(-2px); }

.btn-primary {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--acid-ink);
}

.btn-primary:hover { color: var(--acid-ink); background: color-mix(in srgb, var(--acid) 86%, white); }

/* --- hero logo ---------------------------------------------------------- */
.hero-logo {
  justify-self: center;
  width: min(400px, 84vw);
  margin: 0;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .45));
}

[data-theme="light"] .hero-logo img {
  filter: drop-shadow(0 14px 24px rgba(60, 52, 20, .22));
}

/* Narrow screens: logo on the right, exactly as tall as the name block, with
   the headline and its handle beside it. */
@media (max-width: 899px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(12px, 3.5vw, 20px);
    row-gap: 0;
    align-items: start;
  }

  /* Let the copy's children become grid items so the logo can pair with the h1. */
  .hero-copy { display: contents; }

  .hero .kicker { grid-column: 1 / -1; }

  .hero h1 {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-logo {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    justify-self: end;
    position: relative;
    width: clamp(76px, 24vw, 140px);
  }

  /* Absolutely positioned so the image can't stretch the row: the h1 sets the
     height, the logo fills it. */
  .hero-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
  }

  .hero .roles,
  .hero .contract,
  .hero .cta-row { grid-column: 1 / -1; }
}

/* Very narrow phones need a hair less headline to clear the logo. */
@media (max-width: 379px) {
  .hero h1 { font-size: 2rem; }
}

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--acid);
  translate: 0 2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* --- ticker ------------------------------------------------------------- */
.ticker {
  margin-top: clamp(26px, 4vw, 44px);
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 9px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: ticker 170s linear infinite;
}

.ticker-track span {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ticker-track span::before {
  content: "◆";
  color: var(--acid);
  margin-right: 2.5rem;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- section scaffolding ------------------------------------------------ */
section { padding-block: clamp(46px, 7vw, 78px); }

.section-head {
  margin-bottom: clamp(24px, 4vw, 38px);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  font-weight: 800;
  text-wrap: balance;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 56ch;
}

/* --- telemetry ---------------------------------------------------------- */
.stats {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 90%, transparent) 12%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

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

@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
  .stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.tile {
  position: relative;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.tile .label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tile .value {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.tile .value[data-missing="true"] { color: var(--muted); }

.tile.is-featured { border-color: var(--acid); }

.tile.is-featured::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
}

.stats-lower {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .stats-lower { grid-template-columns: 1.15fr .85fr; }
}

.contrib-card,
.langs-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px;
  overflow: hidden;
}

.contrib-card h3,
.langs-card h3 {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.contrib-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.contrib-svg rect {
  rx: 2;
  fill: var(--cell-0);
}

.contrib-svg rect.lvl1 { fill: var(--cell-1); }
.contrib-svg rect.lvl2 { fill: var(--cell-2); }
.contrib-svg rect.lvl3 { fill: var(--cell-3); }
.contrib-svg rect.lvl4 { fill: var(--cell-4); }

.contrib-foot {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.langs { display: grid; gap: 10px; }

.lang {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr) 2.6rem;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
}

.lang-name { color: var(--chalk); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-bar { height: 7px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.lang-bar i { display: block; height: 100%; background: var(--acid); border-radius: 99px; }
.lang-pct { text-align: right; color: var(--muted); }

.contrib-pending {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.stats-fallback {
  margin: 0;
}

.stats-fallback[hidden] { display: none; }

.stats-fallback img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--hard);
}

.stats-fallback figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
}

.stats-fallback a { color: var(--chalk); text-decoration-color: var(--line-strong); }
.stats-fallback a:hover { color: var(--acid); }

.stats-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: .82rem;
}

/* --- builds ------------------------------------------------------------- */
.builds-grid {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

@media (min-width: 900px) {
  .builds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.builds-more { margin-top: clamp(18px, 3vw, 28px); }

.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--panel-2), var(--panel) 55%);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

@media (max-width: 560px) {
  .card { grid-template-columns: 1fr; }
}

@media (hover: hover) {
  .card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--line-strong);
    box-shadow: var(--hard);
  }
}

.card-shot {
  position: relative;
  min-height: 260px;
  background: #060704;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

@media (max-width: 560px) {
  .card-shot { border-right: 0; border-bottom: 1px solid var(--line); min-height: 200px; max-height: 220px; }
}

.card-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.02);
}

/* logo art when a project has no screenshot yet */
.card-shot.is-art {
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(80% 70% at 30% 20%, rgba(201, 242, 74, .16), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px),
    #0b0f07;
}

.card-shot.is-art img {
  position: static;
  inset: auto;
  height: auto;
  width: min(78%, 190px);
  object-fit: contain;
  filter: none;
}


.card-body {
  padding: clamp(16px, 2.2vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.path {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .04em;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.chip.is-live { color: var(--acid); border-color: color-mix(in srgb, var(--acid) 55%, transparent); }
.chip.is-live::before { box-shadow: 0 0 8px currentColor; }
.chip.is-draft { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.chip.is-collective { color: var(--chalk); }

.card h3 {
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  line-height: 1.06;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -.005em;
}

.card-line {
  font-size: .96rem;
  color: var(--chalk);
  font-weight: 600;
}

.card-fact {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 4px;
}

.tags li {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  padding: 3px 6px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.card-actions .btn { padding: .55em .8em; font-size: .66rem; }

/* --- profile ------------------------------------------------------------ */
.bio-grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

@media (min-width: 900px) {
  .bio-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
  }
}

.bio-copy {
  display: grid;
  gap: 16px;
  max-width: 64ch;
}

.bio-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.bio-copy p:first-child {
  color: var(--chalk);
  font-size: 1.06rem;
}

.bio-cv {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 20px 20px 22px;
  border: 1px dashed var(--line-strong);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  background: color-mix(in srgb, var(--amber) 7%, transparent);
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.7;
  letter-spacing: .02em;
}

.bio-cv-label {
  margin: 0;
  color: var(--amber);
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.bio-cv-warning {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0;
  color: var(--muted);
}

.bio-cv-icon {
  flex: none;
  color: var(--amber);
  font-size: .82rem;
  line-height: 1;
}

.bio-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--amber);
  border-radius: 6px;
  color: var(--chalk);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.bio-cv-link::after {
  content: "→";
  font-size: .8rem;
}

.bio-cv-link:hover,
.bio-cv-link:focus-visible {
  background: var(--amber);
  color: var(--acid-ink);
  transform: translate(-1px, -1px);
}


/* --- llm notice ---------------------------------------------------------- */
.llm-note {
  margin-top: clamp(26px, 4vw, 42px);
  padding-inline: var(--gutter);
  display: flex;
  justify-content: center;
}

.llm-crt {
  display: block;
  width: min(620px, 100%);
  padding: 3px;
  border-radius: 15px;
  background: linear-gradient(160deg, var(--line-strong), var(--panel));
  box-shadow: var(--hard);
  color: var(--chalk);
  text-decoration: none;
  transform: rotate(.35deg);
  transition: transform .2s ease, box-shadow .2s ease;
}

.llm-crt:hover,
.llm-crt:focus-visible {
  transform: rotate(0) translateY(-2px);
  box-shadow: var(--hard), 0 0 26px rgba(201, 242, 74, .22);
}

.llm-screen {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 15px 18px 17px;
  border-radius: 12px;
  background: radial-gradient(130% 140% at 18% 0%, #14240f, #060a04 72%);
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.65;
  letter-spacing: .02em;
  overflow: hidden;
}

/* scanlines, purely decorative */
.llm-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .32) 0 1px, transparent 1px 3px);
  opacity: .55;
}

.llm-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 2px;
}

.llm-top b {
  color: #c9f24a;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(201, 242, 74, .55);
}

.llm-top i {
  margin-left: auto;
  color: #7f9469;
  font-style: normal;
  font-size: .58rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.llm-line {
  display: block;
  color: #cfe0b8;
}

.llm-line.is-strong {
  margin-top: 6px;
  color: #ffb648;
  font-size: .72rem;
}

.llm-meta {
  margin-top: 3px;
  color: #6f8560;
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* --- footer log --------------------------------------------------------- */
.footer-wrap { padding-bottom: clamp(40px, 6vw, 70px); }

.log-card {
  max-width: 620px;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--hard);
  overflow: hidden;
}

.log-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .06em;
  color: var(--muted);
}

.log-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}

.log-head em {
  margin-left: 6px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.log-prompt { color: var(--acid); }

.site-foot {
  margin-top: clamp(30px, 5vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--acid); }

#sound-toggle {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

#sound-toggle:hover { color: var(--acid); }

/* --- reveal ------------------------------------------------------------- */
/* only hide for the reveal animation when JS is actually running */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}

/* --- motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .llm-crt { transform: none; }
  .term-cursor { animation: none; opacity: 1; }
}
