/* ============================================================================
   NomNom · Portfolio · SIMPLE MODE
   PlayStation 2 BIOS Browser aesthetic — static, lightweight, performant.

   Visual DNA:
     - Deep vertical sky gradient (navy → slate blue → near-black), no cyan
     - Animated "activity ribbons" (vertical columns of light) drifting slowly
     - Chunky rectangular tiles with sharp corners (memory-card icon vibe)
     - Cool white typography with wide tracking on headings
     - Bright cool-blue selection glow on focus/hover (BIOS-correct, sparing)
     - Warm amber only for warnings/highlights (PS2 "please do not turn off")
   ============================================================================ */

/* ─── Root tokens ─────────────────────────────────────────────────────────── */

#pf-simple-root {
  /* Sky */
  --ps2-sky-1:        #0a0f1e;   /* deep navy top */
  --ps2-sky-2:        #182849;   /* slate-blue mid */
  --ps2-sky-3:        #0a0f22;   /* dark bottom */
  --ps2-sky-4:        #04060d;   /* footer */

  /* Surfaces */
  --ps2-tile:         rgba(10, 20, 44, 0.72);
  --ps2-tile-2:       rgba(16, 30, 62, 0.85);
  --ps2-tile-hover:   rgba(30, 52, 96, 0.90);
  --ps2-border:       rgba(160, 190, 240, 0.22);
  --ps2-border-hi:    rgba(200, 220, 255, 0.60);

  /* Ink */
  --ps2-ink:          #e9edf5;   /* primary text */
  --ps2-ink-dim:      #a8b3c9;   /* body text */
  --ps2-ink-mute:     #6f7a92;   /* labels, secondary */
  --ps2-ink-faint:    #445064;

  /* Accents (BIOS-accurate blue, no teal/cyan) */
  --ps2-blue:         #7fa7ff;   /* select-glow blue */
  --ps2-blue-glow:    rgba(120, 165, 255, 0.55);
  --ps2-blue-soft:    rgba(120, 165, 255, 0.15);

  /* Warm accents (used sparingly — PS2 BIOS uses warm amber for warnings) */
  --ps2-amber:        #e8c574;
  --ps2-amber-strong: #f5d98c;

  /* Type */
  --ps2-font-display: 'Rubik', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --ps2-font-body:    'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --ps2-font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --ps2-pad-x:        clamp(20px, 4vw, 72px);
  --ps2-gap:          clamp(16px, 2vw, 28px);
  --ps2-radius:       2px;         /* PS2 UI = extremely sharp corners */
  --ps2-radius-tile:  4px;

  color: var(--ps2-ink);
  font-family: var(--ps2-font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* ─── The PS2 sky background ─────────────────────────────────────────────── */

#pf-simple-root::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(90, 130, 220, 0.18) 0%, transparent 60%),
    linear-gradient(
      180deg,
      #050813 0%,
      #0a1226 12%,
      #17274f 45%,
      #0d1633 78%,
      #030612 100%
    );
}

/* Activity-column ribbons — mimics the PS2's iconic drifting light columns
   behind the browser. Rendered with a tiled linear-gradient + slow animation. */
#pf-simple-root::after {
  content: "";
  position: fixed;
  inset: -10% -5%;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(90deg,
      transparent 0%,
      rgba(140, 180, 255, 0.03) 45%,
      rgba(200, 220, 255, 0.09) 50%,
      rgba(140, 180, 255, 0.03) 55%,
      transparent 100%
    );
  background-size: 220px 100%;
  background-repeat: repeat-x;
  mix-blend-mode: screen;
  opacity: 0.65;
  animation: ps2-ribbons 42s linear infinite;
}

@keyframes ps2-ribbons {
  from { background-position:    0 0; }
  to   { background-position: 2200px 0; }
}

/* Faint horizontal scanline overlay for CRT feel — very subtle */
#pf-simple-root {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.012) 2px,
      rgba(255, 255, 255, 0.012) 3px
    );
}

@media (prefers-reduced-motion: reduce) {
  #pf-simple-root::after { animation: none; }
}

/* ─── BIOS chrome bar (top) ───────────────────────────────────────────────── */

.ps2-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px var(--ps2-pad-x);
  background: linear-gradient(180deg,
    rgba(6, 10, 24, 0.94) 0%,
    rgba(6, 10, 24, 0.78) 90%,
    transparent 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(120, 165, 255, 0.12);
}

.ps2-chrome__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ps2-ink);
  font-family: var(--ps2-font-display);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.ps2-chrome__mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ps2-border-hi);
  border-radius: var(--ps2-radius);
  background:
    linear-gradient(180deg, rgba(140, 180, 255, 0.25), rgba(60, 100, 180, 0.05));
  box-shadow:
    inset 0 0 8px rgba(160, 195, 255, 0.28),
    0 0 10px rgba(120, 165, 255, 0.35);
}

.ps2-chrome__mark::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ps2-blue);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--ps2-blue-glow);
}

.ps2-chrome__nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  flex-wrap: wrap;
}

.ps2-chrome__nav a {
  color: var(--ps2-ink-dim);
  text-decoration: none;
  font-family: var(--ps2-font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--ps2-radius);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ps2-chrome__nav a:hover,
.ps2-chrome__nav a:focus-visible {
  color: #fff;
  border-color: var(--ps2-border);
  background: var(--ps2-blue-soft);
  outline: none;
}

.ps2-chrome__clock {
  font-family: var(--ps2-font-display);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ps2-ink-dim);
  font-size: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--ps2-border);
  text-align: right;
  line-height: 1.2;
  white-space: nowrap;
}

.ps2-chrome__clock strong {
  display: block;
  color: var(--ps2-ink);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
}

@media (max-width: 720px) {
  .ps2-chrome { flex-wrap: wrap; }
  .ps2-chrome__clock { display: none; }
  .ps2-chrome__nav a { padding: 6px 8px; font-size: 10px; letter-spacing: 0.14em; }
}

/* ─── Layout container ────────────────────────────────────────────────────── */

.ps2-wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--ps2-pad-x);
}

/* ─── Hero — the "Browser" title plate ────────────────────────────────────── */

.ps2-hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
}

.ps2-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ps2-font-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ps2-ink-mute);
  margin-bottom: 22px;
}

.ps2-hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ps2-blue);
  box-shadow: 0 0 6px var(--ps2-blue-glow);
}

.ps2-hero__title {
  font-family: var(--ps2-font-display);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: #fff;
  text-shadow:
    0 0 24px rgba(140, 180, 255, 0.18),
    0 2px 0 rgba(0, 0, 0, 0.4);
}

.ps2-hero__title span {
  color: var(--ps2-blue);
  font-style: normal;
  text-shadow: 0 0 30px var(--ps2-blue-glow);
}

.ps2-hero__lead {
  max-width: 640px;
  color: var(--ps2-ink-dim);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  margin: 0 0 12px;
}

.ps2-hero__meta {
  color: var(--ps2-ink-mute);
  font-size: 13px;
  max-width: 640px;
}

/* Iconic PS2 warning tape (subtle nod, only shown once) */
.ps2-hero__tape {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 6px 12px;
  font-family: var(--ps2-font-display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ps2-amber-strong);
  background: rgba(232, 197, 116, 0.06);
  border: 1px solid rgba(232, 197, 116, 0.28);
  border-radius: var(--ps2-radius);
}

.ps2-hero__tape::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ps2-amber);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(232, 197, 116, 0.7);
}

/* ─── Section shell (BIOS panel) ──────────────────────────────────────────── */

.ps2-section {
  padding: clamp(40px, 5vw, 72px) 0;
  scroll-margin-top: 80px;
}

.ps2-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ps2-border);
  position: relative;
}

.ps2-section__head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--ps2-blue);
  box-shadow: 0 0 8px var(--ps2-blue-glow);
}

.ps2-section__label {
  font-family: var(--ps2-font-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ps2-ink-mute);
}

.ps2-section__title {
  font-family: var(--ps2-font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  color: #fff;
  margin: 4px 0 0;
  letter-spacing: 0.02em;
}

.ps2-section__count {
  font-family: var(--ps2-font-mono);
  font-size: 11px;
  color: var(--ps2-ink-mute);
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ─── About Me (BIOS-panel style) ─────────────────────────────────────────── */

.ps2-about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}

.ps2-about__profile {
  padding: 24px;
  background: var(--ps2-tile);
  border: 1px solid var(--ps2-border);
  border-radius: var(--ps2-radius-tile);
  position: relative;
}

.ps2-about__profile::before {
  content: "MEMORY CARD (8MB)";
  position: absolute;
  top: -9px;
  left: 16px;
  padding: 2px 8px;
  background: var(--ps2-sky-3);
  font-family: var(--ps2-font-display);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--ps2-ink-mute);
}

.ps2-about__name {
  font-family: var(--ps2-font-display);
  font-size: 20px;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.ps2-about__role {
  color: var(--ps2-blue);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
}

.ps2-about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps2-about__stats li {
  padding: 10px 12px;
  border: 1px solid var(--ps2-border);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--ps2-radius);
}

.ps2-about__stats dt {
  font-family: var(--ps2-font-display);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ps2-ink-mute);
  margin-bottom: 4px;
}

.ps2-about__stats dd {
  font-family: var(--ps2-font-mono);
  font-size: 12px;
  color: var(--ps2-ink);
  margin: 0;
}

.ps2-about__body p {
  color: var(--ps2-ink-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.ps2-about__body p:first-child {
  color: var(--ps2-ink);
  font-size: 17px;
}

.ps2-about__body strong {
  color: #fff;
  font-weight: 500;
}

.ps2-about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.ps2-about__tags li {
  padding: 4px 10px;
  border: 1px solid var(--ps2-border);
  border-radius: var(--ps2-radius);
  font-family: var(--ps2-font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ps2-ink-dim);
  background: rgba(120, 165, 255, 0.05);
}

@media (max-width: 780px) {
  .ps2-about { grid-template-columns: 1fr; }
}

/* ─── Project grid (memory-card tiles with carousel) ──────────────────────── */

.ps2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--ps2-gap);
}

.ps2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ps2-tile);
  border: 1px solid var(--ps2-border);
  border-radius: var(--ps2-radius-tile);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
  transform-origin: center;
  will-change: transform;
}

.ps2-card::before {
  /* BIOS-style corner brackets — 4 small L-corners */
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: var(--ps2-radius);
  transition: border-color 260ms ease;
  z-index: 3;
}

.ps2-card:hover,
.ps2-card:focus-visible {
  transform: scale(1.035);
  border-color: var(--ps2-border-hi);
  background: var(--ps2-tile-hover);
  box-shadow:
    0 0 0 1px var(--ps2-blue-glow),
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(120, 165, 255, 0.2);
  outline: none;
  z-index: 2;
}

.ps2-card:hover::before,
.ps2-card:focus-visible::before {
  border-color: rgba(200, 220, 255, 0.35);
}

/* Media carousel (4 slides cross-fading over 20s) */
.ps2-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0a1226 0%, #182849 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--ps2-border);
}

.ps2-card__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: ps2-slide 20s linear infinite;
}

.ps2-card__slide:nth-child(1) { animation-delay:   0s; }
.ps2-card__slide:nth-child(2) { animation-delay:  -5s; }
.ps2-card__slide:nth-child(3) { animation-delay: -10s; }
.ps2-card__slide:nth-child(4) { animation-delay: -15s; }

@keyframes ps2-slide {
  0%,  1% { opacity: 0; }
  3%, 22% { opacity: 1; }
  24%, 100% { opacity: 0; }
}

.ps2-card__media--empty {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(120, 165, 255, 0.05) 0,
      rgba(120, 165, 255, 0.05) 8px,
      rgba(120, 165, 255, 0.10) 8px,
      rgba(120, 165, 255, 0.10) 16px
    ),
    linear-gradient(180deg, #0d1836 0%, #06091a 100%);
  display: grid;
  place-items: center;
}

.ps2-card__media--empty::after {
  content: "◆ NO PREVIEW";
  font-family: var(--ps2-font-display);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ps2-ink-mute);
}

/* Overlay HUD on media: tiny brand + progress ticks */
.ps2-card__hud {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ps2-font-display);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.ps2-card__hud-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ps2-card__hud-mark::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ps2-blue);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--ps2-blue-glow);
}

/* Card body */
.ps2-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ps2-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ps2-font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ps2-ink-mute);
}

.ps2-card__grade {
  padding: 2px 8px;
  border: 1px solid rgba(232, 197, 116, 0.4);
  color: var(--ps2-amber-strong);
  border-radius: var(--ps2-radius);
  font-family: var(--ps2-font-mono);
  letter-spacing: 0.08em;
}

.ps2-card__title {
  font-family: var(--ps2-font-display);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.ps2-card__desc {
  color: var(--ps2-ink-dim);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.ps2-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(160, 190, 240, 0.14);
}

.ps2-card__stack {
  font-family: var(--ps2-font-mono);
  font-size: 11px;
  color: var(--ps2-ink-mute);
  letter-spacing: 0.06em;
}

.ps2-card__arrow {
  font-family: var(--ps2-font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ps2-blue);
  text-transform: uppercase;
  transition: transform 260ms ease;
}

.ps2-card:hover .ps2-card__arrow,
.ps2-card:focus-visible .ps2-card__arrow {
  transform: translateX(4px);
  color: var(--ps2-blue-strong, #a9c1e0);
}

/* ─── See-all button ──────────────────────────────────────────────────────── */

.ps2-seeall {
  margin-top: 28px;
  text-align: center;
}

.ps2-seeall a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background:
    linear-gradient(180deg, rgba(120, 165, 255, 0.10), rgba(120, 165, 255, 0.02));
  border: 1px solid var(--ps2-border);
  border-radius: var(--ps2-radius);
  color: #fff;
  text-decoration: none;
  font-family: var(--ps2-font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: all 220ms ease;
}

.ps2-seeall a::after {
  content: "▶";
  font-size: 9px;
  color: var(--ps2-blue);
}

.ps2-seeall a:hover,
.ps2-seeall a:focus-visible {
  border-color: var(--ps2-border-hi);
  background:
    linear-gradient(180deg, rgba(120, 165, 255, 0.22), rgba(120, 165, 255, 0.06));
  box-shadow: 0 0 24px var(--ps2-blue-soft);
  outline: none;
}

/* ─── Timeline (Experience / Education) ───────────────────────────────────── */

.ps2-timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.ps2-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 18px 20px;
  background: var(--ps2-tile);
  border: 1px solid var(--ps2-border);
  border-radius: var(--ps2-radius-tile);
  transition: border-color 200ms ease, background 200ms ease;
}

.ps2-tl-item:hover {
  border-color: var(--ps2-border-hi);
  background: var(--ps2-tile-2);
}

.ps2-tl-item__when {
  font-family: var(--ps2-font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ps2-amber-strong);
  padding-top: 2px;
}

.ps2-tl-item__title {
  font-family: var(--ps2-font-display);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 4px;
}

.ps2-tl-item__where {
  color: var(--ps2-blue);
  font-size: 12.5px;
  margin: 0 0 8px;
}

.ps2-tl-item__desc {
  color: var(--ps2-ink-dim);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 720px) {
  .ps2-tl-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Timeline sub-line (used for education degrees) */
.ps2-tl-item__sub {
  font-family: var(--ps2-font-display);
  color: var(--ps2-amber-strong);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 6px 0 8px;
}

/* Timeline tag chips */
.ps2-tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.ps2-tl-tags li,
.ps2-tl-tags .ps2-tag {
  padding: 3px 8px;
  border: 1px solid var(--ps2-border);
  border-radius: var(--ps2-radius);
  font-family: var(--ps2-font-display);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ps2-ink-dim);
  background: rgba(120, 165, 255, 0.04);
  line-height: 1.4;
}

/* Standalone page (all-projects, all-side-projects) — page-level chrome */
.ps2-page-hero {
  padding: clamp(60px, 8vw, 100px) 0 clamp(28px, 3vw, 48px);
}

.ps2-page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 20px;
  border: 1px solid var(--ps2-border);
  border-radius: var(--ps2-radius);
  font-family: var(--ps2-font-display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ps2-ink-dim);
  text-decoration: none;
  background: rgba(120, 165, 255, 0.04);
  transition: all 180ms ease;
}

.ps2-page-hero__back:hover,
.ps2-page-hero__back:focus-visible {
  color: #fff;
  border-color: var(--ps2-border-hi);
  background: rgba(120, 165, 255, 0.14);
  outline: none;
}

.ps2-page-hero__eyebrow {
  font-family: var(--ps2-font-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ps2-ink-mute);
  margin-bottom: 10px;
}

.ps2-page-hero__title {
  font-family: var(--ps2-font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.005em;
  text-shadow: 0 0 24px rgba(140, 180, 255, 0.14);
}

.ps2-page-hero__lead {
  max-width: 720px;
  color: var(--ps2-ink-dim);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* Filter tab row for see-all pages */
.ps2-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 32px;
  padding: 6px;
  border: 1px solid var(--ps2-border);
  border-radius: var(--ps2-radius);
  background: var(--ps2-tile);
  width: fit-content;
  max-width: 100%;
}

.ps2-tabs button {
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--ps2-radius);
  background: transparent;
  font-family: var(--ps2-font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ps2-ink-mute);
  cursor: pointer;
  transition: all 160ms ease;
}

.ps2-tabs button:hover {
  color: var(--ps2-ink);
  background: rgba(120, 165, 255, 0.06);
}

.ps2-tabs button[aria-selected="true"] {
  color: #fff;
  border-color: var(--ps2-border-hi);
  background: linear-gradient(180deg, rgba(120, 165, 255, 0.22), rgba(120, 165, 255, 0.06));
  box-shadow: 0 0 12px var(--ps2-blue-soft);
}

/* Compact list card for see-all pages (no media, dense) */
.ps2-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.ps2-list-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--ps2-tile);
  border: 1px solid var(--ps2-border);
  border-radius: var(--ps2-radius-tile);
  color: inherit;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  transition: all 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ps2-list-card:hover,
.ps2-list-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ps2-border-hi);
  background: var(--ps2-tile-hover);
  box-shadow: 0 0 0 1px var(--ps2-blue-glow), 0 8px 28px rgba(0, 0, 0, 0.45);
  outline: none;
}

.ps2-list-card[data-hidden="true"] { display: none; }

.ps2-list-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--ps2-font-display);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ps2-ink-mute);
  margin-bottom: 10px;
}

.ps2-list-card__grade {
  padding: 2px 8px;
  border: 1px solid rgba(232, 197, 116, 0.4);
  color: var(--ps2-amber-strong);
  border-radius: var(--ps2-radius);
  font-family: var(--ps2-font-mono);
  letter-spacing: 0.08em;
}

.ps2-list-card__title {
  font-family: var(--ps2-font-display);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}

.ps2-list-card__desc {
  color: var(--ps2-ink-dim);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.ps2-list-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.ps2-list-card__tags li {
  padding: 2px 8px;
  border: 1px solid var(--ps2-border);
  border-radius: var(--ps2-radius);
  font-family: var(--ps2-font-display);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ps2-ink-dim);
  background: rgba(120, 165, 255, 0.04);
}

.ps2-list-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed rgba(160, 190, 240, 0.14);
  font-family: var(--ps2-font-display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.ps2-list-card__slot {
  color: var(--ps2-ink-mute);
  font-family: var(--ps2-font-mono);
  letter-spacing: 0.08em;
}

.ps2-list-card__arrow {
  color: var(--ps2-blue);
  transition: transform 240ms ease;
}

.ps2-list-card:hover .ps2-list-card__arrow,
.ps2-list-card:focus-visible .ps2-list-card__arrow {
  transform: translateX(4px);
}

.ps2-list-card__ext-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.ps2-list-card__ext {
  padding: 3px 9px;
  border: 1px solid rgba(120, 165, 255, 0.4);
  border-radius: var(--ps2-radius);
  font-family: var(--ps2-font-display);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ps2-blue);
  background: rgba(120, 165, 255, 0.06);
  text-decoration: none;
  transition: all 160ms ease;
}

.ps2-list-card__ext:hover {
  background: rgba(120, 165, 255, 0.16);
  color: #fff;
  border-color: var(--ps2-border-hi);
}

/* ─── Contact / Footer ────────────────────────────────────────────────────── */

.ps2-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.ps2-contact a {
  display: block;
  padding: 20px;
  border: 1px solid var(--ps2-border);
  border-radius: var(--ps2-radius-tile);
  background: var(--ps2-tile);
  text-decoration: none;
  transition: all 220ms ease;
}

.ps2-contact a:hover,
.ps2-contact a:focus-visible {
  border-color: var(--ps2-border-hi);
  background: var(--ps2-tile-hover);
  box-shadow: 0 0 20px var(--ps2-blue-soft);
  outline: none;
  transform: translateY(-2px);
}

.ps2-contact__label {
  font-family: var(--ps2-font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ps2-ink-mute);
  margin-bottom: 6px;
}

.ps2-contact__val {
  font-family: var(--ps2-font-mono);
  font-size: 14px;
  color: #fff;
}

.ps2-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 36px var(--ps2-pad-x);
  border-top: 1px solid var(--ps2-border);
  background: linear-gradient(180deg, transparent, rgba(4, 6, 13, 0.7));
  text-align: center;
}

.ps2-footer__line {
  font-family: var(--ps2-font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ps2-ink-mute);
}

.ps2-footer__line + .ps2-footer__line {
  margin-top: 6px;
  color: var(--ps2-ink-faint);
}

.ps2-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--ps2-font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ps2-ink-mute);
}

/* ─── Focus visibility ────────────────────────────────────────────────────── */

#pf-simple-root :focus-visible {
  outline: 2px solid var(--ps2-blue);
  outline-offset: 3px;
}

/* Ensure the PS2 font stack is shared across Simple Mode */
.ps2-chrome,
.ps2-hero__title,
.ps2-section__title,
.ps2-card__title,
.ps2-about__name,
.ps2-tl-item__title,
.pf-mode-toggle {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Secondary technical labels match the monospace BIOS prompts */
.ps2-section__label,
.ps2-card__meta,
.ps2-card__hud,
.ps2-tl-item__when,
.ps2-tl-tags,
.ps2-about__stats dt {
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   PS2 BIOS AUTHENTIC TYPOGRAPHY & COLOR SYSTEM
   ============================================================ */

/* ── 1. Titles & Brand (PS2 Gold/Yellow) ─────────────────── */
.ps2-hero__title,
.ps2-section__title,
.ps2-panel__title,
.ps2-about__name,
.pb-info__title {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  color: #e8c84a !important;
  letter-spacing: 0.06em !important;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0 0 12px rgba(232, 200, 74, 0.40) !important;
}

/* ── 2. Selectable / Interactive Headings & Links (Default: Dark Grey) ── */
.ps2-chrome__nav a,
.ps2-chrome__brand,
.ps2-card__title,
.ps2-tl-item__title,
.ps2-menu__item-label,
.ps2-contact a {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  color: #3a3f47 !important;
  letter-spacing: 0.06em !important;
  text-decoration: none !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000 !important;
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease !important;
}

/* ── 3. Selectable Headings (Hovered & Focused: Electric Cyan) ── */
.ps2-chrome__nav a:hover,
.ps2-chrome__nav a:focus-visible,
.ps2-chrome__brand:hover,
.ps2-card:hover .ps2-card__title,
.ps2-card:focus-visible .ps2-card__title,
.ps2-tl-item:hover .ps2-tl-item__title,
.ps2-contact a:hover,
.ps2-menu__item:hover .ps2-menu__item-label,
.ps2-menu__item--active .ps2-menu__item-label {
  color: #7ae2ff !important;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0 0 14px rgba(94, 207, 238, 0.55),
     0 0 28px rgba(30, 160, 210, 0.25) !important;
}

/* ── 4. Technical Monospace Accents & Labels ─────────────── */
.ps2-section__label,
.ps2-card__meta,
.ps2-card__hud,
.ps2-tl-item__when,
.ps2-chrome__clock,
.ps2-about__stats dt {
  font-family: 'JetBrains Mono', monospace !important;
  color: rgba(114, 225, 255, 0.75) !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000 !important;
}

/* ── 5. Back Buttons & Actions ───────────────────────────── */
.ps2-panel__back,
.ps2-card__arrow,
.ps2-seeall a {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #5ecfee !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 0 8px rgba(94, 207, 238, 0.40) !important;
}

.ps2-panel__back:hover,
.ps2-seeall a:hover {
  color: rgba(220, 245, 255, 1) !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 0 16px rgba(94, 207, 238, 0.85) !important;
}