:root {
  --ff-base: "Satoshi", system-ui, -apple-system, sans-serif;
  --ff-mono: "Cascadia Code", "Fira Code", ui-monospace, monospace;
  --brand-blue: hsl(200, 100%, 50%);
  --brand-red: hsl(0, 100%, 60%);
  --brand-amber: hsl(42, 100%, 60%);
  --gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  --bg: #0a0a0a;
  --bg-surface: #111;
  --bg-surface-2: #1a1a1a;
  --text: #d0d0d0;
  --text-bright: #f0f0f0;
  --text-muted: #707070;
  --text-dim: #404040;
  --accent: var(--brand-blue);
  --accent2: var(--brand-amber);
  --border: #282828;
  --border-bright: #3a3a3a;
  --frame: #444;
  --fs--1: clamp(.8rem, .75rem + .2vw, .9rem);
  --fs-0: clamp(.95rem, .85rem + .4vw, 1.05rem);
  --fs-1: clamp(1.15rem, 1rem + .7vw, 1.4rem);
  --fs-2: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  --fs-3: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  --space-s: clamp(.6rem, .5rem + .5vw, .85rem);
  --space-m: clamp(1rem, .8rem + .8vw, 1.5rem);
  --space-l: clamp(1.8rem, 1.3rem + 1.5vw, 2.5rem);
  --space-xl: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: var(--fs-0);
  overflow-x: hidden;
}

#ascii-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s;
}
a:hover { color: var(--accent2); }

/* nav */
.nav {
  position: relative;
  z-index: 10;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}
.nav a {
  font-family: var(--ff-mono);
  font-size: var(--fs--1);
  color: var(--text-muted);
  letter-spacing: .05em;
}
.nav a:hover { color: var(--text-bright); }

/* pdf download btn */
.pdf-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  font-family: var(--ff-mono);
  font-size: var(--fs--1);
  padding: .5rem 1rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}
.pdf-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
}

/* resume */
.resume {
  position: relative;
  z-index: 5;
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-l) var(--space-m);
}

/* hero */
.hero { margin-bottom: var(--space-xl); }
.hero-kicker {
  font-family: var(--ff-mono);
  font-size: var(--fs--1);
  color: var(--text-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: var(--space-s);
}
.hero-title {
  font-family: var(--ff-mono);
  font-size: var(--fs-3);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--text-bright);
}
.hero-lead {
  margin-top: var(--space-m);
  font-size: var(--fs-0);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 34rem;
}
.hero-lead strong { color: var(--text-bright); }
.hero-contacts {
  margin-top: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .8rem;
  font-family: var(--ff-mono);
  font-size: var(--fs--1);
  color: var(--text-dim);
}
.hero-contacts a { color: var(--text-dim); }
.hero-contacts a:hover { color: var(--accent); }

/* sections — FAR/MC frames */
.section {
  margin-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--ff-mono);
  font-size: var(--fs-2);
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: .03em;
  margin-bottom: var(--space-m);
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
}

.frame {
  position: relative;
  background: var(--bg-surface);
  padding: var(--space-m) var(--space-m) var(--space-m) calc(var(--space-m) + 1.5rem);
  margin-bottom: var(--space-m);
  border-left: 3px solid var(--border);
  transition: border-color .15s;
}
.frame::before {
  content: '╔══════════════════════════════════════════════════════════╗\A║';
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--text-dim);
  white-space: pre;
  line-height: 1;
  position: absolute;
  top: .6rem;
  left: calc(var(--space-m) + 1rem);
  pointer-events: none;
  opacity: .5;
}
.frame:hover { border-left-color: var(--accent); }

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .2rem;
}
.job-role {
  font-family: var(--ff-mono);
  font-size: var(--fs-1);
  font-weight: 700;
  color: var(--text-bright);
}
.job-period {
  font-family: var(--ff-mono);
  font-size: var(--fs--1);
  color: var(--text-dim);
  white-space: nowrap;
}
.job-company {
  font-size: var(--fs-0);
  color: var(--text-muted);
  margin-bottom: var(--space-s);
}
.job-detail {
  font-size: var(--fs-0);
  color: var(--text-muted);
}

/* lists — wider dash offset */
.job-points {
  list-style: none;
}
.job-points li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .5rem;
  color: var(--text-muted);
}
.job-points li::before {
  content: '—';
  position: absolute;
  left: .5rem;
  color: var(--text-dim);
}

/* skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
}
.skills li {
  font-family: var(--ff-mono);
  font-size: var(--fs--1);
  padding: .3rem .65rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all .15s;
}
.skills li:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.skills-note {
  margin-top: var(--space-s);
  font-size: var(--fs--1);
  color: var(--text-dim);
  font-family: var(--ff-mono);
}

/* footer */
.footer {
  position: relative;
  z-index: 5;
  padding: 1.2rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: var(--fs--1);
  font-family: var(--ff-mono);
}

/* responsive */
@media (max-width: 640px) {
  .resume { padding: var(--space-m) .8rem; }
  .frame { padding-left: var(--space-m); }
  .frame::before { display: none; }
  .job-head { flex-direction: column; gap: 0; }
}

/* print / PDF */
@media print {
  body { background: var(--bg); color: var(--text); }
  #ascii-bg { display: none; }
  .pdf-btn { display: none; }
  .nav { display: none; }
  .resume { max-width: 100%; padding: 1cm; }
  .frame {
    background: var(--bg-surface);
    border-left-color: var(--border-bright);
    break-inside: avoid;
  }
  .frame::before { display: none; }
  a { color: var(--text-bright); }
}

@media (prefers-reduced-motion: reduce) {
  .frame { transition: none; }
  .skills li { transition: none; }
}
