/* ── Self-hosted fonts ── */

/* Exo 2 — latin (variable weight via single file) */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/exo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/exo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/exo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/exo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Orbitron — latin */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/orbitron-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/orbitron-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../assets/fonts/orbitron-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Share Tech Mono — latin */
@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/share-tech-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── src/styles/variables.css ── */

:root {
  /* ── Color System  ── */
  --color-bg: #080c14;
  --color-bg-elevated: #0f1520;
  --color-bg-surface: #151d2b;

  --color-text: #c5d1dc;
  --color-text-muted: #7a8a99;
  --color-text-subtle: #7fa8c9;

  --color-accent: #00e5ff;
  --color-accent-mid: #4dd9e8;
  --color-accent-low: #0d7377;
  --color-accent-hover: #33ecff;

  --color-accent-glow-strong: rgba(0, 229, 255, 0.4);
  --color-accent-glow: rgba(0, 229, 255, 0.2);
  --color-accent-glow-subtle: rgba(0, 229, 255, 0.08);

  --color-border: rgba(0, 229, 255, 0.12);
  --color-border-strong: rgba(0, 229, 255, 0.3);

  --color-hud-panel-bg: rgba(8, 12, 20, 0.85);

  /* ── Spacing ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ── Typography ── */
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-sans:
    'Exo 2', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Share Tech Mono', 'JetBrains Mono', ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --leading-tight: 1.3;
  --leading-normal: 1.7;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --letter-wide: 0.12em;
  --letter-ultra: 0.2em;

  /* ── Layout ── */
  --container-max: 64rem;
  --container-pad: var(--space-6);

  /* ── Radius (angular HUD aesthetic — intentionally uniform) ── */
  --radius: 2px;

  /* ── Transitions ── */
  --transition-fast: 150ms ease-out;
  --transition-normal: 250ms ease-out;
  --transition-slow: 400ms ease-out;

  /* ── Effects ── */
  --glow-text-shadow: 0 0 8px var(--color-accent-glow-strong);
}

/* ── src/styles/reset.css ── */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

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

body {
  min-height: 100svh;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Focus states handled in global.css for HUD theme */

/* ── src/styles/typography.css ── */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  color: var(--color-text);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--letter-wide);
}

h1 {
  font-size: var(--text-4xl);
}
h2 {
  font-size: var(--text-3xl);
}
h3 {
  font-size: var(--text-2xl);
}
h4 {
  font-size: var(--text-xl);
}

@media (min-width: 48rem) {
  h1 {
    font-size: var(--text-5xl);
  }
  h2 {
    font-size: var(--text-4xl);
  }
  h3 {
    font-size: var(--text-3xl);
  }
}

small {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

a {
  color: var(--color-accent-mid);
  text-decoration: none;
  text-underline-offset: 4px;
  transition:
    color var(--transition-fast),
    text-shadow var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
  text-shadow: var(--glow-text-shadow);
}

/* ── src/styles/global.css ── */

body {
  background-color: var(--color-bg);
}

/* ── Scanline overlay (full-page CRT texture) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 229, 255, 0.015) 2px,
    rgba(0, 229, 255, 0.015) 4px
  );
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-8);
}

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

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--letter-wide);
  transform: translateY(-100%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--color-bg);
}

/* ── Focus States (HUD selection ring) ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--color-accent-glow);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── CRT Scanline Overlay (reusable via ::after) ── */
.crt-scanline {
  position: relative;
}

.crt-scanline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.3) 2px,
    rgba(0, 0, 0, 0.3) 4px
  );
  pointer-events: none;
}

/* ── CRT Filter (holographic image treatment) ── */
.crt-filter {
  filter: blur(0.3px) contrast(1.1) saturate(1.3);
}

/* ── Shared Keyframes ── */
@keyframes flicker {
  0%,
  100% {
    opacity: 0.97;
  }
  50% {
    opacity: 1;
  }
}

/* ── Progressive Enhancement: Scroll Reveal ── */
.js-ready .section {
  opacity: 0;
  transform: translateY(1.5rem);
  filter: blur(2px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    filter 0.6s ease-out;
}

.js-ready .section.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }

  .js-ready .section {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

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

.cursor-spotlight {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx) var(--my),
    rgba(29, 78, 116, 0.15),
    transparent 80%
  );
}

/* ── src/components/atoms/section-title/section-title.css ── */

/* --- Section Title (shared) --- */

.section__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: var(--letter-ultra);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  position: relative;
  padding-bottom: var(--space-3);
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .section__title {
    font-size: var(--text-3xl);
  }
}

/* ── src/components/atoms/hud-list-item/hud-list-item.css ── */

/* --- HUD List Item --- */

hud-list-item {
  padding-left: var(--space-6);
  position: relative;
  list-style: none;
}

.hud-list-item__marker {
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: var(--text-sm);
}

/* ── src/components/atoms/circuit-line-divider/circuit-line-divider.css ── */

/* --- Circuit Line Divider --- */

circuit-line-divider {
  display: block;
  width: 100%;
  height: auto; /* allow ::before to occupy layout space */
}

circuit-line-divider::before {
  content: '';
  display: block; /* participate in normal flow */
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent-low) 20%,
    var(--color-accent) 50%,
    var(--color-accent-low) 80%,
    transparent
  );
  opacity: 0.4;
}

/* ── src/components/atoms/tech-tag/tech-tag.css ── */

/* --- Tech Tag --- */

tech-tag {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-accent);
  background-color: var(--color-accent-glow-subtle);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tech-tag:hover {
  border-color: var(--color-accent-low);
  background-color: var(--color-accent-glow);
}

/* ── src/components/atoms/btn/btn.css ── */

/* --- Button --- */

.btn {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--letter-wide);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  width: 100%;
}

@media (min-width: 48rem) {
  .btn {
    width: auto;
  }
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
}

/* Filled — strong call-to-action */

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid var(--color-accent);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--color-accent);
  box-shadow:
    0 0 12px var(--color-accent-glow),
    inset 0 0 12px var(--color-accent-glow-subtle);
  text-shadow: var(--glow-text-shadow);
}

/* Outlined — secondary action */

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-border-strong);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent-glow-subtle);
  color: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent-glow-subtle);
  text-shadow: var(--glow-text-shadow);
}

/* Muted outlined — low-emphasis links (e.g. social links) */

.btn--link {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn--link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: var(--color-accent-glow-subtle);
  box-shadow: 0 0 8px var(--color-accent-glow-subtle);
  text-shadow: var(--glow-text-shadow);
}

/* ── src/components/molecules/hud-panel/hud-panel.css ── */

/* --- HUD Panel --- */

hud-panel {
  display: block;
  position: relative;
}

/* ── Shared ── */

.hud-panel__header {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--hud-panel-color, var(--color-accent));
  text-transform: uppercase;
  letter-spacing: var(--letter-wide);
  z-index: 2;
  border-bottom: 1px solid;
}

.hud-panel__header-title {
  padding: 0;
}

.hud-panel__header-decorator {
  display: inline-block;
  width: 10px;
  height: 30px;
  background-color: currentColor;
  transform: skewX(-44deg);
  flex-shrink: 0;
}

.hud-panel__tag {
  padding: var(--space-1) var(--space-3);
  margin-left: auto;
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--hud-panel-color, var(--color-accent));
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.hud-panel__body {
  position: relative;
  overflow: visible;
}

/* ── SVG polygon frame (all variants) ── */

.hud-panel__wrap {
  position: relative;
  padding: var(--space-6);
}

.hud-panel__wrap > .hud-panel__header {
  position: absolute;
  top: 4%;
  left: 6%;
  right: 38%;
}

.hud-panel__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* ── Polygon variant overrides ── */

hud-panel[variant='polygon'] > .hud-panel__wrap {
  padding: var(--space-16) var(--space-8) var(--space-10) 6%;
}

/* ── src/components/molecules/hover-preview/hover-preview.css ── */

/* --- Hover Preview Tooltip --- */

.hover-preview {
  position: relative;
  display: inline;
}

.hover-preview__tooltip {
  position: absolute;
  bottom: calc(100% + var(--space-3));
  left: 0;
  translate: 0 8px;
  width: clamp(260px, 40vw, 400px);

  visibility: hidden;
  opacity: 0;
  scale: 0.96;
  transition:
    opacity var(--transition-normal),
    translate var(--transition-normal),
    scale var(--transition-normal),
    visibility 0s var(--transition-normal);

  pointer-events: none;
  z-index: 10;
}

.hover-preview__tooltip .hud-panel__wrap {
  padding: var(--space-2);
}

.hover-preview:hover .hover-preview__tooltip,
.hover-preview:focus-within .hover-preview__tooltip {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
  scale: 1;
  transition:
    opacity var(--transition-normal),
    translate var(--transition-normal),
    scale var(--transition-normal),
    visibility 0s;
}

/* Frame provided by <hud-panel> (SVG polygon) */

/* CRT screen -- scanlines + vignette container */
.hover-preview__screen {
  position: relative;
  display: block;
  overflow: hidden;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.4),
    inset 0 0 10px rgba(0, 255, 0, 0.05);
}

/* Scanline overlay: provided by .crt-scanline in global.css */
/* CRT filter: provided by .crt-filter in global.css */

.hover-preview__tooltip img {
  display: block;
  width: 100%;
  height: auto;
  animation: flicker 0.1s infinite paused;
}

/* Play flicker only when tooltip is visible */
.hover-preview:hover .hover-preview__tooltip img,
.hover-preview:focus-within .hover-preview__tooltip img {
  animation-play-state: running;
}

/* Hide on touch devices -- hover is required for this interaction */
@media (hover: none) {
  .hover-preview__tooltip {
    display: none;
  }
}

/* Reduced motion: no flicker, instant show */
@media (prefers-reduced-motion: reduce) {
  .hover-preview__tooltip {
    transition: none;
  }

  .hover-preview__tooltip img {
    animation: none;
  }
}

/* ── src/components/molecules/experience-item/experience-item.css ── */

/* --- Experience Item --- */

experience-item {
  display: block;
  position: relative;
}

.exp {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Diamond marker with glow */
.exp__timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-8));
  top: var(--space-2);
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border: none;
  transform: rotate(45deg);
  z-index: 1;
  box-shadow: 0 0 8px var(--color-accent-glow-strong);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 6px var(--color-accent-glow);
  }
  50% {
    box-shadow: 0 0 14px var(--color-accent-glow-strong);
  }
}

.exp__role {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.exp__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.exp__company {
  font-family: var(--font-mono);
  font-weight: var(--weight-normal);
  color: var(--color-accent-mid);
  text-decoration: none;
  text-underline-offset: 4px;
}

.exp__company:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-shadow: var(--glow-text-shadow);
}

.exp__external-icon {
  font-size: var(--text-xs);
  color: var(--color-accent-low);
}

.exp__separator {
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
}

.exp__period {
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--letter-wide);
}

.exp__description {
  max-width: 40rem;
  line-height: var(--leading-normal);
}

.exp__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Bullet pattern: provided by hud-list-item */
.exp__highlight {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.exp__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
  .exp__timeline-marker {
    animation: none;
  }
}

.exp__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ── src/components/organisms/header/header.css ── */

/* --- Header & Navigation --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  background-color: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 12px var(--color-accent-glow-subtle);
  /* Reserve header height before JS renders <app-header> to prevent CLS */
  min-height: 3.75rem;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.header__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
}

.header__logo:hover {
  color: var(--color-text);
  text-shadow: none;
}

.header__logo-dot {
  color: var(--color-accent);
  text-shadow: var(--glow-text-shadow);
}

.header__nav-list {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.header__nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--letter-ultra);
  padding-block: var(--space-1);
  transition:
    color var(--transition-fast),
    text-shadow var(--transition-fast);
}

.header__nav-link::before {
  content: '>';
  margin-right: var(--space-1);
  color: var(--color-accent-low);
  transition: color var(--transition-fast);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  box-shadow: 0 0 4px var(--color-accent-glow);
  transition: width var(--transition-normal);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-accent);
  text-shadow: var(--glow-text-shadow);
}

.header__nav-link:hover::before,
.header__nav-link--active::before {
  color: var(--color-accent);
}

.header__nav-link--active::after {
  width: 100%;
}

.header__menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  cursor: pointer;
  width: 2.75rem;
  height: 2.75rem;
  position: relative;
}

.header__menu-icon,
.header__menu-icon::before,
.header__menu-icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background-color: var(--color-accent);
  transition:
    transform var(--transition-normal),
    opacity var(--transition-normal);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header__menu-icon {
  top: 50%;
  transform: translate(-50%, -50%);
}

.header__menu-icon::before {
  content: '';
  top: -6px;
}

.header__menu-icon::after {
  content: '';
  top: 6px;
}

[aria-expanded='true'] .header__menu-icon {
  background-color: transparent;
}

[aria-expanded='true'] .header__menu-icon::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

[aria-expanded='true'] .header__menu-icon::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 47.999rem) {
  .header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border-strong);
    border-top: 1px solid var(--color-border);
    padding: var(--space-6) var(--container-pad);
    transform: translateY(-0.5rem);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(12px);
    transition:
      transform var(--transition-normal),
      opacity var(--transition-normal),
      visibility var(--transition-normal);
  }

  .header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__nav-list {
    flex-direction: column;
    gap: var(--space-4);
  }

  .header__nav-link {
    font-size: var(--text-base);
    display: block;
    padding-block: var(--space-2);
  }

  .header__nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: var(--space-2);
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
  .header__menu-icon,
  .header__menu-icon::before,
  .header__menu-icon::after {
    transition: none;
  }

  .header__nav {
    transition: none;
  }
}

/* ── src/components/organisms/hero/hero.css ── */

/* --- Hero --- */

.hero {
  padding-block: var(--space-10) var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  flex-direction: column-reverse;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-10);
    padding-block: var(--space-16) var(--space-8);
  }
}

@media (min-width: 64rem) {
  .hero {
    padding-block: var(--space-24) var(--space-12);
  }
}

.hero__greeting {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  color: var(--color-accent);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--color-accent);
  width: fit-content;
  max-width: 0;
  animation:
    typing 1.5s steps(var(--typing-steps, 25), end) forwards,
    blink-caret 0.8s step-end infinite;
}

@keyframes typing {
  from {
    max-width: 0;
  }
  to {
    max-width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: var(--color-accent);
  }
  50% {
    border-color: transparent;
  }
}

.hero__name {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  line-height: var(--leading-tight);
}

@media (min-width: 48rem) {
  .hero__name {
    font-size: var(--text-5xl);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-wide);
}

@media (min-width: 48rem) {
  .hero__title {
    font-size: var(--text-2xl);
  }
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  max-width: 36rem;
  letter-spacing: var(--letter-wide);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* buttons: provided by .btn atom */

/* frame: provided by <hud-panel> (SVG polygon) */
/* scanlines: provided by .crt-scanline in global.css */
/* CRT filter: provided by .crt-filter in global.css */

.hero__image {
  width: min(100%, 320px);
  align-self: center;
  display: block;
  aspect-ratio: 800 / 1067;
  animation: flicker 0.1s infinite;
}

@media (min-width: 48rem) {
  .hero__image {
    width: 400px;
    flex-shrink: 0;
    align-self: auto;
    aspect-ratio: 800 / 1067;
  }
}

.hero__image .hud-panel__wrap {
  padding: var(--space-2);
}

.hero__screen {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 800 / 1067;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
  text-shadow:
    1px 0 rgba(255, 0, 0, 0.6),
    -1px 0 rgba(0, 255, 255, 0.6);
}

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
  /* Reduce motion: explicitly disable animations for both greeting and image */
  .hero__greeting,
  .hero__image {
    animation: none;
  }

  .hero__greeting {
    max-width: 100%;
    border-right: none;
  }
}

/* ── src/components/organisms/about/about.css ── */

/* --- About --- */

.about {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about__description {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
}

.about__subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: var(--letter-wide);
}

.about__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Bullet pattern: provided by .hud-list-item in global.css */
.about__item {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.about__item a {
  color: var(--color-accent-mid);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-accent-low);
  font-weight: var(--weight-medium);
}

.about__item a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
  text-shadow: var(--glow-text-shadow);
}

/* ── src/components/organisms/contact/contact.css ── */

/* --- Contact --- */

.contact {
  max-width: 36rem;
  margin-inline: auto;
}

/* Frame provided by <hud-panel> (SVG polygon) */

.contact .hud-panel__wrap {
  padding: var(--space-8);
}

.contact .hud-panel__body {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}

.contact .section__title::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact__text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.contact__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

/* social links: provided by .btn.btn--link.btn--sm atom */

/* ── src/components/organisms/footer/footer.css ── */

/* --- Footer --- */

/* Circuit-line divider: provided by .circuit-line in global.css */

site-footer {
  padding-block: var(--space-8);
  text-align: center;
  position: relative;
  background-image: linear-gradient(
    90deg,
    transparent,
    var(--color-accent-low) 20%,
    var(--color-accent) 50%,
    var(--color-accent-low) 80%,
    transparent
  );
  background-repeat: no-repeat;
  background-position: top left;
  background-size: 100% 1px;
}

site-footer p {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--letter-wide);
}

/* ── src/components/organisms/experience/experience.css ── */

/* --- Experience Timeline --- */

experience-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.experience__timeline {
  position: relative;
  padding-left: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.experience__timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: var(--space-2);
  bottom: var(--space-2);
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--color-accent),
    var(--color-accent-low),
    transparent
  );
}
