/* ==========================================================================
   Theme: Cyberpunk Combined (Cyberpunk, with the Node Graph hero)
   The Cyberpunk page, palette and neon; the hero is a Blueprint graph in a
   HUD frame whose Kevin Neilson node draws the KN as neon tubes that light
   as each Design Pillar is wired in.
   A night city: blue-black glass, cyan neon and hot pink-red signage, HUD
   brackets. The pink leans red, not magenta, so nothing drifts to purple. Neon glow is kept
   to artwork and large headings; body text stays crisp.
   Contrast on --bg: text 16.4:1, cyan 11.9:1, pink 6.2:1, muted 8.6:1.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Oxanium:wght@500;600;700;800&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  color-scheme: dark;

  --void: #0b0f1a;
  --glass: #121829;
  --grid: #26304a;
  --muted: #9fb0c2;
  --text-hi: #e6f1f3;
  --cyan: #35e0f0;
  --pink: #ff4f7b;

  --bg: var(--void);
  --surface: var(--glass);
  --steel: var(--grid);
  --text: var(--text-hi);
  --text-muted: var(--muted);
  --border: var(--grid);
  --accent: var(--cyan);
  --on-accent: var(--void);
  --link: var(--cyan);
  --focus: var(--pink);

  --track-design: var(--cyan);
  --track-audio: var(--pink);
  --track-qa: var(--grid);

  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Oxanium", "IBM Plex Sans", sans-serif;
  --display-case: none;

  --glow-cyan: 0 0 6px rgba(53, 224, 240, 0.7), 0 0 18px rgba(53, 224, 240, 0.35);
  /* HUD corner brackets */
  --brackets:
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 18px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 2px 18px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 18px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 2px 18px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 100% / 18px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 100% / 2px 18px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 18px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 2px 18px no-repeat;
}

body { background: radial-gradient(ellipse 80% 50% at 70% -10%, rgba(53, 224, 240, 0.08), transparent 70%), var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.7; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; line-height: 1.02; }
::selection { background: var(--cyan); color: var(--void); }

.site-header { border-bottom: 1px solid var(--grid); background: rgba(11,15,26, 0.92); }
.brand, .site-nav a { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; }
.site-nav a:hover { color: var(--cyan); }
.site-nav a[aria-current="page"] { color: var(--cyan); text-decoration: none; text-shadow: var(--glow-cyan); }

.btn { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; border: 1px solid var(--cyan); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.btn--primary { background: var(--cyan); color: var(--void); }
.btn--primary:hover { background: var(--pink); border-color: var(--pink); }
.btn--ghost { background: rgba(53, 224, 240, 0.08); color: var(--cyan); }
.btn--ghost:hover { background: var(--cyan); color: var(--void); }

/* ---------- Hero ---------- */
.hero__grid { align-items: center; }
.hero__title { font-size: var(--step-5); text-shadow: 0 0 22px rgba(53, 224, 240, 0.25); }
.hero__title span { display: block; }
.hero__title span + span { color: var(--cyan); }
.hero__role { font-family: var(--font-display); font-weight: 500; color: var(--pink); line-height: 1.35; }
.hero__hud { width: 100%; max-width: 30rem; justify-self: center; }
.hero__hud svg { width: 100%; height: auto; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 6fr 5fr; }
  .hero__hud { justify-self: end; }
}
@media (prefers-reduced-motion: no-preference) {
  /* The tube stutters on like a real neon sign, then holds; a scan line sweeps slowly */
  .neon { animation: strike 2400ms steps(1) backwards; animation-delay: 300ms; }
  @keyframes strike { 0% { opacity: 0.1; } 10% { opacity: 0.8; } 14% { opacity: 0.2; } 30% { opacity: 1; } 34% { opacity: 0.4; } 40%, 100% { opacity: 1; } }
  .scan { animation: scan 7s linear infinite; }
  @keyframes scan { from { transform: translateY(0); } to { transform: translateY(400px); } }
}

/* ---------- Section titles inside HUD brackets ---------- */
.styled-title { display: inline-block; padding: 0.4rem 1rem; background: var(--brackets); }

.motif { display: inline-block; flex: none; width: 1.05em; height: 1.05em; }
.motif svg { width: 100%; height: 100%; }

/* ---------- Cards: glass panels with cut corners ---------- */
.work-card { background: var(--glass); border: 1px solid var(--grid); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.work-card:hover { border-color: var(--cyan); }
.work-card__thumb { background: var(--grid); }
.work-card__kind { color: var(--pink); font-family: var(--font-display); letter-spacing: 0.04em; }
.work-card__title { font-size: var(--step-3); }
.work-card__link:hover .work-card__title { color: var(--cyan); text-shadow: var(--glow-cyan); }
.group-title { font-size: var(--step-3); }

/* ---------- Timeline ---------- */
.timeline__track { background: var(--glass); height: 0.5rem; box-shadow: inset 0 0 0 1px var(--grid); }
.timeline__bar { background: var(--track-color); }
.timeline__bar[data-track="design"] { box-shadow: var(--glow-cyan); }
.timeline__bar[data-track="qa"], .swatch[data-track="qa"] { box-shadow: inset 0 0 0 1px var(--muted); }
.timeline__role { font-family: var(--font-body); font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
.timeline__when, .timeline__scale { font-family: var(--font-display); }

.skill-group { background: var(--brackets), var(--glass); padding: 1.75rem; }
.skill-group h3 { font-size: var(--step-2); }

.facts { border-block: 1px solid var(--grid); }
.facts dt { color: var(--pink); font-family: var(--font-display); letter-spacing: 0.04em; }
.media-slot { background: var(--brackets), repeating-linear-gradient(0deg, rgba(53, 224, 240, 0.05) 0 1px, transparent 1px 4px), var(--glass); }
.media-slot span { background: var(--void); font-family: var(--font-display); }
.tag-list li { border-color: var(--grid); }
.pager { border-top: 1px solid var(--grid); }
.pager a strong { font-family: var(--font-display); }
.contact-band { background: var(--brackets), var(--glass); border: 0; }
.site-footer { border-top: 1px solid var(--grid); }

/* ---------- Hero: the Node Graph wiring, in the HUD ---------- */
.hero__graph-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.hero__graph-bar button { flex: none; font: inherit; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; color: var(--cyan); background: var(--glass); border: 1px solid var(--cyan); padding: 0.3rem 0.8rem; cursor: pointer; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.hero__graph-bar button:hover { background: var(--cyan); color: var(--void); }

/* Pins pair by shape as well as colour (circle, diamond, square) */
.out-hit { cursor: grab; touch-action: none; }
.link, .drag-wire { opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.link.is-on, .drag-wire.is-on { opacity: 1; }
.in-pin.is-on[data-pin="systems"] { fill: #35e0f0; }
.in-pin.is-on[data-pin="prototypes"] { fill: #ff4f7b; }
.in-pin.is-on[data-pin="feel"] { fill: #e6f1f3; }

/* The KN is neon tube: dark until its pillar is wired in, then it strikes on */
.kn-part path, .kn-part circle { stroke: #26304a; transition: stroke 0.3s; }
.kn-part .kn-fill { stroke: none; fill: var(--c); opacity: 0; transition: opacity 0.5s; }
.kn-part.is-on path, .kn-part.is-on circle { stroke: var(--c); }
.kn-part.is-on { filter: url(#cc-glow); }
.kn-part.is-on .kn-fill { opacity: 0.14; }
.kn-dot { fill: #26304a; transition: fill 0.3s; }
.kn-part.is-on .kn-dot { fill: #ff4f7b; }
.kn-node__head { transition: filter 0.4s; }
svg.is-complete .kn-node__frame { stroke: var(--cyan); }
svg.is-complete .kn-node__head { filter: brightness(1.25); }
/* Each tube strikes on in its own way, like real neon */
@media (prefers-reduced-motion: no-preference) {
  /* Stems: a quick double stutter, then solid */
  .kn-part.is-on[data-pin="feel"] { animation: tube-stutter 1200ms steps(1); }
  @keyframes tube-stutter { 0% { opacity: 0.15; } 12% { opacity: 1; } 20% { opacity: 0.15; } 30% { opacity: 1; } 38% { opacity: 0.3; } 46%, 100% { opacity: 1; } }

  /* K arms: an uneven buzz with half-bright moments, like a tube warming up */
  .kn-part.is-on[data-pin="systems"] { animation: tube-buzz 2200ms steps(1); }
  @keyframes tube-buzz { 0% { opacity: 0.1; } 8% { opacity: 0.55; } 14% { opacity: 0.2; } 22% { opacity: 0.7; } 27% { opacity: 0.35; } 36% { opacity: 0.85; } 41% { opacity: 0.5; } 55% { opacity: 1; } 60% { opacity: 0.65; } 68%, 100% { opacity: 1; } }

  /* N diagonal: hesitates, sputters rapidly, dies for a beat, then catches */
  .kn-part.is-on[data-pin="prototypes"] { animation: tube-sputter 2000ms steps(1); }
  @keyframes tube-sputter { 0% { opacity: 0.08; } 22% { opacity: 1; } 25% { opacity: 0.1; } 28% { opacity: 1; } 31% { opacity: 0.1; } 34% { opacity: 1; } 37% { opacity: 0.1; } 58% { opacity: 0.1; } 62% { opacity: 1; } 66% { opacity: 0.4; } 72%, 100% { opacity: 1; } }
}

/* ---------- My Journey: the headshot fills the bracketed square ---------- */
.journey-photo { position: relative; align-self: start; width: 100%; max-width: 30rem; aspect-ratio: 1; padding: 12px; background: var(--brackets); }
.journey-photo img { display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 0 0 1px rgba(53, 224, 240, 0.25), 0 0 32px rgba(53, 224, 240, 0.12); }
