/* ─── Direction B · Console / Marathon Terminal ──────────────────── */

.console {
  --bg: #0a0c10;
  --panel: #11151b;
  --panel-2: #161b22;
  --line: #2a323d;
  --line-bright: #3a4856;
  --ink: #d8dde3;
  --ink-soft: #a1aab3;
  --dim: #5a6471;
  --amber: #cdfc51;
  --amber-dim: #9bc23a;
  --cyan: #6fe0e8;
  --cyan-dim: #3aa3a8;
  --magenta: #ff5fa2;
  --green: #7df896;
  --scanline-opacity: 0.025;

  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.55;
  width: 100%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

/* scanlines */
.console::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, var(--scanline-opacity)) 0px,
    rgba(255, 255, 255, var(--scanline-opacity)) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 3;
}

/* subtle noise */
.console::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 2;
}

.console > * { position: relative; z-index: 1; }

.console a { color: var(--cyan); }
.console a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* ── top status bar ────────────────────────────────────────────── */
.console .status-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.console .status-bar .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.console .status-bar .blink {
  width: 8px; height: 8px;
  background: var(--green);
  box-shadow: 0 0 6px color-mix(in oklab, var(--green) 70%, transparent);
  animation: console-blink 1.4s steps(2) infinite;
}
@keyframes console-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}
.console .status-bar .center {
  text-align: center;
  text-transform: uppercase;
  color: var(--dim);
  letter-spacing: 0.18em;
}
.console .status-bar .right { display: flex; gap: 16px; color: var(--ink-soft); }
.console .status-bar .right span { text-transform: uppercase; }
.console .status-bar .right .k { color: var(--dim); margin-right: 6px; }

/* ── frame helpers ─────────────────────────────────────────────── */
.console .frame {
  border: 1px solid var(--line);
  position: relative;
}
.console .frame::before,
.console .frame::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cyan);
}
.console .frame::before { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.console .frame::after { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.console .frame-amber::before,
.console .frame-amber::after { border-color: var(--amber); }

.console .ascii-rule {
  font-family: 'JetBrains Mono', monospace;
  color: var(--line-bright);
  white-space: nowrap;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

/* ── hero ──────────────────────────────────────────────────────── */
.console .hero {
  padding: 56px 22px 40px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.console .hero-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 22px;
}
.console .hero-head .right { color: var(--amber); }

.console .hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: end;
}

.console .hero h1 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 92px;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 22px;
}
.console .hero h1 .amber { color: var(--amber); }


.console .hero .lede {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 58ch;
  margin-bottom: 24px;
}
.console .hero .lede .amber { color: var(--amber); }
.console .hero .bio {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 10px;
}

.console .prompt-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.console .prompt-row .sigil { color: var(--cyan); }
.console .prompt-row .cmd { color: var(--ink); }
.console .prompt-row a { color: var(--amber); border-bottom: 1px dashed var(--amber); padding-bottom: 1px; }

/* hero right — quiet "now" panel (no chrome, no big mark) */
.console .now-panel {
  align-self: end;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-soft);
  padding: 0 0 0 18px;
  border-left: 1px dashed var(--line);
  position: relative;
  max-width: 280px;
}
.console .now-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--dim);
  margin-bottom: 12px;
}
.console .now-head .now-head-l { color: var(--amber); }
.console .now-head .now-head-r { font-family: 'VT323', monospace; font-size: 14px; letter-spacing: 0.04em; }

.console .now-lines { display: flex; flex-direction: column; }
.console .now-lines .line { display: block; font-size: 12px; }
.console .now-lines .lbl { color: var(--dim); margin-right: 6px; }
.console .now-lines .v { color: var(--ink); }
.console .now-lines .cy { color: var(--cyan); }
.console .now-lines .ok {
  color: var(--green);
  margin-right: 6px;
  animation: console-ok-pulse 2.2s ease-in-out infinite;
}
.console .now-lines .cur .cy {
  animation: console-cursor-blink 1.1s steps(2) infinite;
}
@keyframes console-ok-pulse {
  0%, 100% {
    text-shadow:
      0 0 4px color-mix(in oklab, var(--green) 40%, transparent),
      0 0 10px color-mix(in oklab, var(--green) 20%, transparent);
  }
  50% {
    text-shadow:
      0 0 8px color-mix(in oklab, var(--green) 75%, transparent),
      0 0 18px color-mix(in oklab, var(--green) 45%, transparent);
  }
}
@keyframes console-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}

/* ── section heads ─────────────────────────────────────────────── */
.console .section { padding: 56px 22px 16px; }
.console .sec-divider {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 0 -22px 36px;
}
.console .sec-divider .idx {
  font-family: 'VT323', monospace;
  font-size: 30px;
  line-height: 1;
  color: var(--amber);
  text-shadow: 0 0 6px color-mix(in oklab, var(--amber) 18%, transparent);
}
.console .sec-divider .title {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.console .sec-divider .meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-align: right;
}

.console p.section-intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 64ch;
  margin-bottom: 28px;
}

/* ── credits grid ──────────────────────────────────────────────── */
.console .credits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  gap: 6px;
}
.console .credit {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 220ms ease;
  isolation: isolate;
}
.console .credit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 12, 16, 0.15), rgba(10, 12, 16, 0.55));
  pointer-events: none;
  transition: background 240ms ease;
  z-index: 1;
}
.console .credit img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.7) brightness(0.9);
  transition: filter 260ms ease, transform 380ms cubic-bezier(.22,.61,.36,1);
}

/* tile number — bottom-left, always visible, faint */
.console .credit-idx {
  position: absolute;
  bottom: 6px;
  left: 8px;
  z-index: 2;
  font-family: 'VT323', monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0.45;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
  transition: opacity 200ms ease, color 200ms ease;
  pointer-events: none;
}

/* hover badge — top-right, fades in */
.console .credit-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--bg);
  background: var(--amber);
  padding: 3px 6px 3px 7px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  text-transform: uppercase;
}
.console .credit-badge .b-arr { font-weight: 700; }

/* hover state */
.console .credit:hover,
.console .credit:focus-visible {
  border-color: var(--cyan);
  outline: none;
}
.console .credit:hover img,
.console .credit:focus-visible img {
  filter: contrast(1.08) saturate(1) brightness(1.02);
  transform: scale(1.035);
}
.console .credit:hover::after,
.console .credit:focus-visible::after {
  background: linear-gradient(rgba(10, 12, 16, 0), rgba(10, 12, 16, 0.18));
}
.console .credit:hover .credit-badge,
.console .credit:focus-visible .credit-badge {
  opacity: 1;
  transform: translateY(0);
}
.console .credit:hover .credit-idx,
.console .credit:focus-visible .credit-idx {
  opacity: 0.9;
  color: var(--cyan);
}


/* ── projects ──────────────────────────────────────────────────── */
.console .featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.console .featured .left {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.console .featured .eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.console .featured .eyebrow .sq { width: 8px; height: 8px; background: var(--amber); }
.console .featured h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 44px;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: var(--ink);
}
.console .featured h3 .dot { color: var(--amber); }
.console .featured .lede {
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 48ch;
}
.console .featured .body { font-size: 12px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 16px; max-width: 56ch; }
.console .featured .left .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  border-bottom: 1px dashed var(--amber);
  padding-bottom: 1px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.console .featured .right {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 11px;
  background: var(--panel-2);
}
.console .featured .right .row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--line);
}
.console .featured .right .k { color: var(--dim); text-transform: uppercase; letter-spacing: 0.14em; font-size: 10px; }
.console .featured .right .v { color: var(--ink); font-family: 'JetBrains Mono', monospace; }
.console .featured .right .v.am { color: var(--amber); }
.console .featured .right .v.cy { color: var(--cyan); }

.console .projects {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.console .proj {
  display: grid;
  grid-template-columns: 64px 1fr 130px 180px;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.console .proj .num {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--cyan);
  letter-spacing: 0;
}
.console .proj .name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.console .proj .status-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 3px 7px;
  justify-self: start;
  text-align: center;
  background: var(--panel);
}
.console .proj .status-pill.active { color: var(--green); border-color: color-mix(in oklab, var(--green) 40%, transparent); }
.console .proj .status-pill.warm { color: var(--amber); border-color: color-mix(in oklab, var(--amber) 40%, transparent); }
.console .proj .link {
  font-size: 11px;
  letter-spacing: 0.04em;
  justify-self: end;
  color: var(--cyan);
  border-bottom: 1px dashed var(--cyan-dim);
  padding-bottom: 1px;
  white-space: nowrap;
}
.console .proj .desc {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 60ch;
  grid-column: 2 / 3;
  grid-row: 2;
  margin-top: 6px;
}

/* ── creative coding single link ───────────────────────────────── */
.console .cc-link {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.console .cc-link-a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  color: var(--ink);
}
.console .cc-link-arrow {
  color: var(--amber);
  font-size: 18px;
}
.console .cc-link-url {
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: 1px dashed var(--cyan-dim);
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
.console .cc-link-a:hover .cc-link-url {
  color: var(--cyan);
}
.console .cc-link-meta {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── tools ─────────────────────────────────────────────────────── */
.console .tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.console .tool {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
  position: relative;
}
.console .tool .eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
.console .tool h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--ink);
}
.console .tool p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.console .tool .link { color: var(--amber); border-bottom: 1px dashed var(--amber); padding-bottom: 1px; font-size: 12px; }

/* ── footer ────────────────────────────────────────────────────── */
.console .foot {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 26px 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.console .foot .l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--dim); }
.console .foot .sig {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-transform: uppercase;
}
.console .foot .sig .am { color: var(--amber); }
.console .foot .r { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--dim); text-align: right; }
.console .foot .r a { color: var(--cyan); }

/* ── density variants ──────────────────────────────────────────── */
.console.density-tight .hero { padding: 36px 22px 28px; }
.console.density-tight .section { padding: 36px 22px 8px; }
.console.density-tight .sec-divider { margin-bottom: 24px; }
.console.density-tight .hero h1 { font-size: 76px; }
.console.density-tight .featured { margin-bottom: 24px; }
.console.density-tight .proj { padding: 14px 0; }

.console.density-airy .hero { padding: 80px 22px 60px; }
.console.density-airy .section { padding: 80px 22px 20px; }
.console.density-airy .sec-divider { margin-bottom: 48px; }
.console.density-airy .hero h1 { font-size: 108px; }

/* ── eof line ──────────────────────────────────────────────────── */
.console .eof {
  text-align: center;
  padding: 14px 0 24px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dim);
}
.console .eof .am { color: var(--amber); }

/* ── mobile ────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .console .now-panel { display: none; }
  .console .hero-grid { grid-template-columns: 1fr; }
  .console .credits-grid { grid-template-columns: repeat(2, 1fr); }
}
