/* ═══════════════════════════════
   TOKENS
   ═══════════════════════════════ */
:root {
  --void:        #0a0806;
  --panel-black: #0f0c08;
  --panel-dark:  #1a1610;
  --panel-mid:   #2a2418;
  --panel-light: #3a3028;
  --wood:        #5a3e28;
  --gold:        #d4a820;
  --gold-burn:   #c07010;
  --gold-dark:   #7a5e10;
  --stripe-red:  #8a1a08;
  --led-green:   #50e030;
  --led-red:     #cc2010;
  --parchment:   #f0ebe0;
  --warm-gray:   #a09080;
  --dim-brown:   #8a7a68;
  --ghost:       #706050;

  --container:   1400px;

  --f-display: 'Oxanium', sans-serif;
  --f-body:    'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-mono:    'Share Tech Mono', monospace;
}

/* ═══════════════════════════════
   RESET
   ═══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

body {
  background: var(--panel-black);
  color: var(--warm-gray);
  font-family: var(--f-body);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(var(--panel-black), var(--panel-black));
}

/* ═══════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%; left: 1rem;
  background: var(--gold); color: var(--void);
  font-family: var(--f-mono); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.5rem 1rem; text-decoration: none;
  z-index: 9999; transition: top 0.1s;
}
.skip-link:focus { top: 0.5rem; }

/* ═══════════════════════════════
   SPEED STRIPE — 3 weights
   ═══════════════════════════════ */
.stripe {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.stripe::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(
    to right,
    var(--stripe-red)  0%,
    var(--stripe-red)  calc(33% - 6px),
    var(--gold)        calc(33% - 6px), var(--gold) 33%,
    var(--gold-burn)   33%,
    var(--gold-burn)   calc(66% - 6px),
    var(--gold)        calc(66% - 6px), var(--gold) 66%,
    var(--stripe-red)  66%, var(--stripe-red) 100%
  );
  transform: skewX(-20deg) scaleX(1.3);
}
.stripe-full   { height: 10px; }
.stripe-medium { height: 6px; }
.stripe-accent { height: 4px; }

/* ═══════════════════════════════
   HAZARD STRIPE
   ═══════════════════════════════ */
.hazard {
  position: relative;
  overflow: hidden;
}
.hazard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold)       0px,   var(--gold)       7px,
    var(--panel-dark) 7px,   var(--panel-dark)  14px
  );
}

/* ═══════════════════════════════
   TAPE LABEL
   ═══════════════════════════════ */
.tape {
  background: var(--gold);
  color: var(--void);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  display: inline-block;
  line-height: 1;
}
.tape-r1 { transform: rotate(-1.5deg); }
.tape-r2 { transform: rotate(1deg); }
.tape-r3 { transform: rotate(-0.8deg); }

/* ═══════════════════════════════
   LED DOTS
   ═══════════════════════════════ */
.led-row { display: flex; align-items: center; gap: 5px; }
.led { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.led-g   { background: var(--led-green); box-shadow: 0 0 5px var(--led-green), 0 0 10px rgba(80,224,48,0.3); }
.led-y   { background: var(--gold);      box-shadow: 0 0 5px var(--gold), 0 0 10px rgba(212,168,32,0.3); }
.led-r   { background: var(--led-red);   box-shadow: 0 0 5px var(--led-red), 0 0 10px rgba(204,32,16,0.3); }
.led-off { background: var(--panel-mid); border: 1px solid var(--ghost); }
.led-text {
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.12em; color: var(--ghost);
  margin-left: 0.5rem;
}

/* ═══════════════════════════════
   SKILL GRID
   ═══════════════════════════════ */
.skill-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.skill-group {}
.skill-group-label {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--ghost);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}
.skill-cells {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.skill-cell {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 1px;
  border: 1px solid;
  line-height: 1.5;
}
.skill-cell-g { color: var(--led-green); border-color: #38b020; }
.skill-cell-y { color: var(--gold);      border-color: var(--gold-burn); }
.skill-cell-r { color: var(--led-red);   border-color: #aa1808; }
.skill-legend {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
  color: var(--ghost);
  align-items: center;
}
.skill-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.skill-dot-g { background: var(--led-green); }
.skill-dot-y { background: var(--gold); }
.skill-dot-r { background: var(--led-red); }

/* ═══════════════════════════════
   LCD READOUT
   ═══════════════════════════════ */
.lcd {
  background: #101e12;
  border: 1px solid #0a160c;
  border-radius: 1px;
  padding: 0.65rem 0.85rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  line-height: 2;
  color: #58c880;
  letter-spacing: 0.07em;
}
.lcd-dim    { color: #244a28; }
.lcd-bright { color: #88ffb0; }

/* ═══════════════════════════════
   PROJECT TAG CHIPS
   ═══════════════════════════════ */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid;
  border-radius: 1px;
  white-space: nowrap;
}
.tag-software    { color: #5898c8; border-color: #182840; }
.tag-music       { color: var(--gold); border-color: #4a3808; }
.tag-hardware    { color: #68a848; border-color: #204018; }
.tag-vr          { color: #9868c8; border-color: #381858; }
.tag-open-source { color: var(--gold-burn); border-color: #4a2808; }
.tag-home-lab    { color: #48a8a8; border-color: #083838; }
.tag-web         { color: #c87858; border-color: #401808; }
a.tag { text-decoration: none; transition: opacity 0.15s; position: relative; z-index: 1; }
a.tag:hover { opacity: 0.75; }

/* ═══════════════════════════════
   NAV
   ═══════════════════════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,8,6,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-mid);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 2rem; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center;
  gap: 0.75rem; text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark { width: 36px; height: 20px; }
.nav-logo-name {
  font-family: var(--f-body); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--parchment);
}
.nav-links { display: flex; align-items: center; height: 52px; gap: 0; list-style: none; }
.nav-links a {
  font-family: var(--f-mono); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ghost); text-decoration: none;
  padding: 0 1.25rem; height: 52px;
  display: flex; align-items: center;
  border-left: 1px solid var(--panel-mid);
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--parchment); background: rgba(212,168,32,0.05); outline: none; }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* ═══════════════════════════════
   HERO — HUD composition
   ═══════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,168,32,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,32,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-wash {
  position: absolute; top: 0; right: -10%; width: 60%; height: 100%;
  background: radial-gradient(ellipse at 75% 25%, rgba(90,62,40,0.1) 0%, transparent 65%);
  pointer-events: none;
}

/* Ghost background name */
.hero-ghost {
  position: absolute; bottom: -0.08em; left: -0.02em;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(10rem, 24vw, 24rem);
  line-height: 1; letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212,168,32,0.05);
  pointer-events: none; user-select: none; white-space: nowrap;
}

/* ── HUD CANVAS ── */
.hud {
  position: relative; z-index: 1;
  max-width: var(--container); width: 100%;
  margin: 0 auto; padding: 0 2rem;
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto;
  grid-template-areas: "name panel" "bio  panel";
  align-content: center;
  column-gap: 3rem;
  row-gap: 0;
}

/* ── TOP-LEFT CATALOG REF ── */
.hud-catalog {
  position: absolute; top: 2rem; left: 2rem;
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.2em; color: var(--ghost);
  line-height: 2;
  animation: fade-in 1s ease both 0.8s;
}
.hud-catalog strong { color: var(--panel-light); }

/* ── TOP-RIGHT STATUS ── */
.hud-status {
  position: absolute; top: 2rem; right: 2rem;
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; text-align: right;
  line-height: 2;
  animation: fade-in 1s ease both 0.8s;
}
.hud-status .online { color: var(--led-green); }
.hud-status .dim    { color: var(--ghost); }

/* ── NAME ── */
.hud-name-block {
  grid-area: name;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 5rem 0 2rem;
  animation: fade-up 0.7s ease both 0.15s;
}

.hud-eyebrow {
  font-family: var(--f-mono); font-size: 0.70rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); opacity: 0.65;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hud-eyebrow::before {
  content: '▶'; font-size: 0.4rem;
  color: var(--gold-burn);
}

h1.hud-name {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(4.8rem, 9.5vw, 10rem);
  line-height: 0.88; letter-spacing: -0.025em;
  text-transform: uppercase; color: var(--parchment);
}
h1.hud-name .gold { color: var(--gold); }

.hud-name-stripe {
  height: 8px; position: relative; overflow: hidden;
  margin-top: 1.5rem;
  width: clamp(180px, 48%, 520px);
  animation: expand-w 0.8s ease both 0.5s;
}
.hud-name-stripe::after {
  content: ''; position: absolute; inset: -3px;
  background: linear-gradient(
    to right,
    var(--stripe-red)  0%,
    var(--stripe-red)  calc(33% - 5px),
    var(--gold)        calc(33% - 5px), var(--gold) 33%,
    var(--gold-burn)   33%,
    var(--gold-burn)   calc(66% - 5px),
    var(--gold)        calc(66% - 5px), var(--gold) 66%,
    var(--stripe-red)  66%, var(--stripe-red) 100%
  );
  transform: skewX(-20deg) scaleX(1.3);
}

/* ── BIO + PANEL: promote children into .hud grid ── */
.hud-bottom {
  display: contents;
}

/* ── BIO with ghost drop cap ── */
.hud-bio {
  grid-area: bio;
  padding-bottom: 3.5rem;
  animation: fade-up 0.7s ease both 0.35s;
}
.hud-bio p {
  font-size: 1rem; font-weight: 300;
  line-height: 1.85; color: var(--warm-gray);
  max-width: 660px;
}
.hud-bio p::first-letter {
  font-family: var(--f-display); font-weight: 800;
  font-size: 6.5em; line-height: 0.68;
  float: left; margin-right: 0.04em; margin-top: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.hud-bio p strong { color: var(--parchment); font-weight: 600; }

/* Panel placed in right column spanning both rows */
.hud .hud-panel {
  grid-area: panel;
  align-self: center;
  animation: fade-up 0.7s ease both 0.35s;
}

/* ── STATUS PANEL ── */
.hud-panel {
  background: var(--void);
  border: 1px solid var(--panel-mid);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

/* Panel header bar */
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--panel-dark);
  border-bottom: 1px solid var(--panel-mid);
}
.panel-header-label {
  font-family: var(--f-mono); font-size: 0.62rem;
  letter-spacing: 0.25em; color: var(--ghost);
  text-transform: uppercase;
}

.panel-body { padding: 1rem; }

/* Hazard stripe inside panel — hardware reference */
.panel-hazard-strip {
  height: 6px;
  position: relative; overflow: hidden;
  margin-bottom: 0.85rem; border-radius: 1px;
}
.panel-hazard-strip::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(212,168,32,0.5)  0px,  rgba(212,168,32,0.5)  5px,
    var(--panel-dark)     5px,  var(--panel-dark)     10px
  );
}

/* ── PANEL INNER CONTENT ── */
.panel-section { margin-bottom: 0.85rem; }
.panel-section:last-child { margin-bottom: 0; }

.panel-label {
  font-family: var(--f-mono); font-size: 0.62rem;
  letter-spacing: 0.22em; color: var(--ghost);
  text-transform: uppercase; margin-bottom: 0.45rem;
}

.panel-rule { height: 1px; background: var(--panel-mid); margin: 0.85rem 0; }

.panel-footer-stripe {
  height: 4px; position: relative; overflow: hidden;
}
.panel-footer-stripe::after {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(
    to right,
    var(--stripe-red)  0%,
    var(--stripe-red)  calc(33% - 4px),
    var(--gold)        calc(33% - 4px), var(--gold) 33%,
    var(--gold-burn)   33%,
    var(--gold-burn)   calc(66% - 4px),
    var(--gold)        calc(66% - 4px), var(--gold) 66%,
    var(--stripe-red)  66%, var(--stripe-red) 100%
  );
  transform: skewX(-20deg) scaleX(1.3);
}

/* ── TAPE LABEL cluster near bio ── */
.bio-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-top: 1.25rem;
}

/* ── MINI FEATURED CARD STRIP ── */
.hero-cards-strip {
  position: relative; z-index: 1;
  background: var(--void);
  border-top: 1px solid var(--panel-mid);
  padding: 0;
}

.hero-cards-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.mini-card {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--panel-mid);
  position: relative; overflow: hidden;
  transition: background 0.15s;
}
.mini-card:last-child { border-right: none; }
.mini-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--panel-mid);
  transition: background 0.2s;
}
.mini-card::after {
  content: ''; position: absolute;
  top: 0; right: 0;
  border-style: solid; border-width: 0 18px 18px 0;
  border-color: transparent var(--gold) transparent transparent;
  opacity: 0; transition: opacity 0.2s;
}
.mini-card:has(.mini-card-link:hover) { background: var(--panel-dark); }
.mini-card:has(.mini-card-link:hover)::before { background: var(--gold); }
.mini-card:has(.mini-card-link:hover)::after  { opacity: 1; }
.mini-card:has(.mini-card-link:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.mini-card-link {
  font-family: var(--f-body); font-weight: 700;
  font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--parchment);
  margin-bottom: 0.3rem; text-decoration: none; display: block;
}
.mini-card-link::after { content: ''; position: absolute; inset: 0; z-index: 0; }

.mini-card-num {
  font-family: var(--f-mono); font-size: 0.62rem;
  letter-spacing: 0.18em; color: var(--gold);
  opacity: 0.5; margin-bottom: 0.4rem;
}
.mini-card-desc {
  font-size: 0.75rem; font-weight: 300;
  color: var(--dim-brown); line-height: 1.5;
  margin-bottom: 0.75rem;
}
.mini-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* View all link */
.mini-card-view-all {
  display: flex; align-items: center;
  justify-content: center; gap: 0.75rem;
  padding: 1.25rem;
  font-family: var(--f-mono); font-size: 0.70rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ghost); text-decoration: none;
  border-top: 1px solid var(--panel-mid);
  transition: color 0.15s, background 0.15s;
}
.mini-card-view-all::after {
  content: '→'; color: var(--gold-burn);
  transition: transform 0.2s, color 0.15s;
}
.mini-card-view-all:hover {
  color: var(--gold); background: rgba(212,168,32,0.04);
}
.mini-card-view-all:hover::after {
  color: var(--gold); transform: translateX(4px);
}
.mini-card-view-all:focus-visible {
  outline: 2px solid var(--gold); outline-offset: -2px;
}

/* ── SCROLL INDICATOR ── */
.hud-scroll {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-family: var(--f-mono); font-size: 0.62rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ghost); text-decoration: none;
  animation: fade-in 1.2s ease both 1s;
  transition: color 0.15s;
}
.hud-scroll:hover { color: var(--gold); }
.scroll-line {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.25; transform: scaleY(1); }
  50%       { opacity: 0.9;  transform: scaleY(0.65); }
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.site-footer { background: var(--void); border-top: 1px solid var(--panel-mid); }
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy {
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; color: var(--ghost);
}
.footer-links { display: flex; gap: 1.75rem; list-style: none; }
.footer-links a {
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ghost); text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--gold); }
.footer-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ═══════════════════════════════
   ANIMATIONS
   ═══════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes expand-w {
  from { width: 0; opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 700px) {
  .hud {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "name" "bio";
    align-content: start;
  }
  .hud .hud-panel { display: none; }
  .hud-catalog, .hud-status { display: none; }
  .hero-ghost { display: none; }
  h1.hud-name { font-size: clamp(3.5rem, 14vw, 6rem); }
  .hero-cards-inner { grid-template-columns: 1fr; }
  .mini-card { border-right: none; border-bottom: 1px solid var(--panel-mid); }
  .mini-card:last-child { border-bottom: none; }
}
@media (max-width: 560px) {
  .nav-logo-name { display: none; }
  .nav-links a { padding: 0 0.85rem; font-size: 0.56rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ═══════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════
   HIGH CONTRAST
   ═══════════════════════════════ */
@media (forced-colors: active) {
  .hud-bio p::first-letter { -webkit-text-stroke: 0; color: Highlight; }
  .skill-cell-g, .skill-cell-y, .skill-cell-r { color: Highlight; border-color: Highlight; }
  .stripe::after, .hazard::after, .panel-footer-stripe::after { display: none; }
}

/* ═══════════════════════════════
   INNER PAGE HEADER
   ═══════════════════════════════ */
.page-hero {
  background: var(--void);
  border-bottom: 1px solid var(--panel-mid);
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
}
.page-eyebrow {
  font-family: var(--f-mono); font-size: 0.68rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); opacity: 0.65;
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.page-eyebrow::before { content: '▶'; font-size: 0.4rem; color: var(--gold-burn); }
.page-heading {
  font-family: var(--f-body); font-weight: 700;
  font-size: 1.6rem; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--parchment);
  line-height: 1.1; margin-bottom: 1rem;
}
.page-stripe {
  height: 4px; position: relative; overflow: hidden;
  width: clamp(100px, 25%, 240px);
}
.page-stripe::after {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(
    to right,
    var(--stripe-red)  0%,
    var(--stripe-red)  calc(33% - 4px),
    var(--gold)        calc(33% - 4px), var(--gold) 33%,
    var(--gold-burn)   33%,
    var(--gold-burn)   calc(66% - 4px),
    var(--gold)        calc(66% - 4px), var(--gold) 66%,
    var(--stripe-red)  66%, var(--stripe-red) 100%
  );
  transform: skewX(-20deg) scaleX(1.3);
}
.page-desc {
  font-size: 1rem; font-weight: 300;
  color: var(--warm-gray); line-height: 1.85;
  max-width: 560px; margin-top: 1rem;
}
.page-body {
  max-width: var(--container); margin: 0 auto;
  padding: 3rem 2rem;
}

/* ═══════════════════════════════
   PROJECT GRID — listing page
   ═══════════════════════════════ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}
.project-card {
  background: var(--panel-dark);
  border: 1px solid var(--panel-mid);
  border-left: 3px solid var(--panel-mid);
  border-radius: 2px;
  padding: 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: background 0.15s, border-left-color 0.2s;
}
.project-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  border-style: solid; border-width: 0 20px 20px 0;
  border-color: transparent var(--gold) transparent transparent;
  opacity: 0; transition: opacity 0.2s;
}
.project-card:has(.project-card-link:hover) { background: var(--panel-mid); border-left-color: var(--gold); }
.project-card:has(.project-card-link:hover)::after { opacity: 1; }
.project-card:has(.project-card-link:focus-visible) { outline: 2px solid var(--gold); outline-offset: -2px; }
.project-card-num {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 0.62rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
}
.project-card-num-index { color: var(--gold); opacity: 0.5; }
.project-card-link {
  font-family: var(--f-body); font-weight: 700;
  font-size: 1rem; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--parchment);
  margin-bottom: 0.5rem; line-height: 1.1;
  text-decoration: none; display: block;
}
.project-card-link::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
}
.project-card-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; margin-bottom: 0.85rem;
}
.project-card-body {
  font-size: 0.85rem; font-weight: 300;
  color: var(--warm-gray); line-height: 1.7;
  margin-bottom: 1rem;
}
.project-card-footer {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.project-status {
  font-family: var(--f-mono); font-size: 0.62rem;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.project-status-complete { color: var(--led-green); }
.project-status-ongoing  { color: var(--gold); }
.project-status-paused   { color: var(--ghost); }

/* ═══════════════════════════════
   SORT TOOLBAR
   ═══════════════════════════════ */
.sort-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.sort-toolbar-label {
  font-family: var(--f-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; color: var(--ghost);
  text-transform: uppercase; margin-right: 0.25rem;
}
.sort-btn {
  font-family: var(--f-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; color: var(--ghost);
  background: transparent; border: 1px solid var(--panel-mid);
  border-radius: 1px; padding: 0.25rem 0.65rem;
  cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.sort-btn-active,
.sort-btn:hover { color: var(--gold); border-color: var(--gold-burn); }
a.skill-cell { text-decoration: none; }
a.skill-cell:hover { opacity: 0.75; }

/* ═══════════════════════════════
   PROJECT DETAIL — single page
   ═══════════════════════════════ */
.project-detail-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem; align-items: start;
  max-width: 1020px;
  margin: 0 auto;
}
.project-content { max-width: 100%; }
.project-content p {
  font-size: 1rem; font-weight: 300;
  line-height: 1.85; color: var(--warm-gray);
  margin-bottom: 1.25rem;
}
.project-content p:last-child { margin-bottom: 0; }
.project-content strong { color: var(--parchment); font-weight: 600; }
.project-content ul,
.project-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--warm-gray);
}
.project-content li {
  font-size: 1rem; font-weight: 300;
  line-height: 1.85; margin-bottom: 0.25rem;
}
.project-content a {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(212,168,32,0.3);
  transition: border-color 0.15s, color 0.15s;
}
.project-content a:hover { color: var(--parchment); border-bottom-color: var(--gold); }
.project-content a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.project-figure {
  margin: 2rem 0;
  border: 1px solid var(--panel-mid);
  border-radius: 2px;
  overflow: hidden;
  background: var(--void);
}
.project-figure img {
  display: block; width: 100%; height: auto;
  max-height: 480px; object-fit: cover;
  object-position: center top;
  cursor: zoom-in;
}
.project-figure figcaption {
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.12em; color: var(--ghost);
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--panel-mid);
  background: var(--panel-dark);
  font-style: normal;
}
.project-content h2 {
  font-family: var(--f-body); font-weight: 700;
  font-size: 1.1rem; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--parchment);
  margin: 2rem 0 0.75rem;
}
.project-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ghost); text-decoration: none;
  margin-bottom: 2rem; transition: color 0.15s;
}
.project-back::before { content: '←'; color: var(--gold-burn); transition: transform 0.2s; }
.project-back:hover { color: var(--gold); }
.project-back:hover::before { transform: translateX(-3px); }
.project-back:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.page-back-row { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06); }
.project-detail-sidebar {
  position: sticky; top: 70px;
  display: flex; flex-direction: column; gap: 2px;
}

/* ═══════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════ */
.about-hero-inner { max-width: calc(1020px + 4rem); }
.constrained-inner { max-width: calc(1020px + 4rem); }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem; align-items: start;
  max-width: 1020px;
  margin: 0 auto;
}
.about-body { max-width: 600px; }
.about-body p {
  font-size: 1rem; font-weight: 300;
  line-height: 1.85; color: var(--warm-gray);
  margin-bottom: 1.5rem;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body p strong { color: var(--parchment); font-weight: 600; }
.about-body p.dropcap::first-letter {
  font-family: var(--f-display); font-weight: 800;
  font-size: 6.5em; line-height: 0.68;
  float: left; margin-right: 0.04em; margin-top: 0;
  color: transparent; -webkit-text-stroke: 1px var(--gold);
}
.about-divider {
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ghost); margin: 2rem 0 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.about-divider::after {
  content: ''; width: 180px; height: 1px;
  background: var(--panel-mid);
}
.about-sidebar {
  position: sticky; top: 70px;
  display: flex; flex-direction: column; gap: 2px;
}

/* ═══════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════ */
.contact-layout { max-width: 1020px; margin: 0 auto; }
.contact-intro {
  font-size: 1rem; font-weight: 300;
  color: var(--warm-gray); line-height: 1.85;
  max-width: 520px; margin-bottom: 2.5rem;
}
.contact-intro strong { color: var(--parchment); font-weight: 600; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px; margin-bottom: 2px;
}
.contact-card {
  background: var(--panel-dark);
  border: 1px solid var(--panel-mid);
  border-top: 3px solid var(--panel-mid);
  border-radius: 2px;
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  transition: background 0.15s, border-top-color 0.2s;
}
.contact-card:hover { background: var(--panel-mid); border-top-color: var(--gold); }
.contact-card:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.contact-card-label {
  font-family: var(--f-mono); font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); opacity: 0.6; margin-bottom: 0.35rem;
}
.contact-card-name {
  font-family: var(--f-body); font-weight: 700;
  font-size: 0.95rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--parchment);
  margin-bottom: 0.25rem;
}
.contact-card-handle {
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.06em; color: var(--dim-brown);
  word-break: break-all;
}
.contact-note {
  background: var(--void);
  border: 1px solid var(--panel-mid);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin-top: 2px;
}
.contact-note-label {
  font-family: var(--f-mono); font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ghost); margin-bottom: 0.4rem;
}
.contact-note-text {
  font-size: 0.85rem; font-weight: 300;
  color: var(--dim-brown); line-height: 1.7;
}

/* ═══════════════════════════════
   RESPONSIVE — INNER PAGES
   ═══════════════════════════════ */
@media (max-width: 880px) {
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-sidebar { position: static; }
  .about-body { max-width: 100%; }
  .project-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .project-detail-sidebar { position: static; }
  .project-content { max-width: 100%; }
}
@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-body { padding: 2rem 1.25rem; }
  .page-hero-inner { padding: 2rem 1.25rem 2rem; }
}

/* ═══════════════════════════════
   LARGE SCREEN
   ═══════════════════════════════ */
@media (min-width: 1440px) {
  :root { --container: 1600px; }
  .hud { grid-template-columns: 1fr 380px; }
  .project-detail-layout { grid-template-columns: 1fr 300px; }
}
@media (min-width: 1800px) {
  :root { --container: 1760px; }
  .hud { grid-template-columns: 1fr 420px; }
}

/* ═══════════════════════════════
   LIGHTBOX
   ═══════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border: 1px solid var(--panel-mid);
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none;
  color: var(--parchment); font-size: 2rem; line-height: 1;
  cursor: pointer; padding: 0.25rem 0.5rem;
  font-family: var(--f-mono);
  opacity: 0.7; transition: opacity 0.15s;
}
.lightbox-close:hover,
.lightbox-close:focus-visible { opacity: 1; outline: 2px solid var(--gold); outline-offset: 2px; }
