:root {
  --bg: #030303;
  --surface: #0a0a08;
  --surface-raised: #0f0f0d;
  --border: #1e1e1e;
  --border-subtle: #151515;
  --text: #c8c2b6;
  --muted: #6b6560;
  --muted-2: #3a3632;
  --accent: #c9975a;
  --accent-rgb: 201, 151, 90;
  --accent-dim: #7a5a34;
  --accent-glow: rgba(var(--accent-rgb), 0.12);
  --mono-green: #4d7c5a;
  --white: #f0ece4;
  --white-rgb: 240, 236, 228;
  --danger: #8a3a3a;

  --font-serif: 'IBM Plex Mono', 'Courier New', monospace;
  --font-display: 'Lora', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-width: 1080px;
  --section-pad: clamp(96px, 14vw, 160px);
  --gutter: clamp(24px, 5vw, 64px);

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── THEMES ──────────────────────────────────────────── */

/* Phosphor Green — P31 */
[data-theme="green"] {
  --accent: #289664;
  --accent-rgb: 40, 150, 100;
  --accent-dim: #175c3c;
  --mono-green: #289664;
  --text: #cce0d6;
  --muted: #4e6b5c;
  --muted-2: #263530;
  --white: #ddeee6;
  --white-rgb: 188, 220, 204;
  --surface: #090f0c;
  --surface-raised: #0e1812;
  --border: #162019;
  --border-subtle: #111814;
}

/* ─── THEME: PHOSPHOR BLUE ── removed ─────────────────── */

/* ─── THEME: MONOCHROME ───── removed ─────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-shadow: none;
  cursor: default;
}

body.crt-active {
  overflow: hidden;
}

#bg-topo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

img, video {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: var(--font-mono);
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}


#page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 500;
  transition: width 0.08s linear;
  pointer-events: none;
}


/* ─── CURSOR ─────────────────────────────────────────── */

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform;
  transition: width 0.4s var(--ease-expo), height 0.4s var(--ease-expo), border-color 0.3s ease, opacity 0.3s ease;
}

body.cursor-hover #cursor-ring {
  width: 50px;
  height: 50px;
  border-color: var(--accent);
}


/* ─── CRT OVERLAY ─────────────────────────────────────── */

#crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#crt-overlay.hidden {
  display: none;
}

.crt-screen {
  position: relative;
  width: min(640px, 94vw);
  aspect-ratio: 4/3;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  transform-origin: center center;
  box-shadow:
    0 0 0 3px #1a1a1a,
    0 0 0 12px #111,
    0 0 60px rgba(0, 0, 0, 0.9),
    inset 0 0 80px rgba(0, 0, 0, 0.6);
}

.crt-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 60%,
    rgba(0, 0, 0, 0.55) 100%
  );
  border-radius: inherit;
  z-index: 10;
  pointer-events: none;
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 4px
  );
  z-index: 9;
  pointer-events: none;
}

.crt-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(201, 151, 90, 0.03) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 8;
  pointer-events: none;
}

.crt-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.crt-terminal {
  width: 88%;
  max-height: 80%;
  overflow: hidden;
  filter: saturate(0.1) brightness(0.45);
  transition: filter 1.1s ease;
}

.crt-terminal.warmed {
  filter: none;
}

.crt-output {
  font-family: var(--font-mono);
  font-size: clamp(12px, 2.2vw, 15px);
  color: var(--accent);
  line-height: 1.8;
  white-space: pre;
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
  margin-bottom: 2px;
  opacity: 0;
}

.crt-input-line {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: clamp(12px, 2.2vw, 15px);
  color: var(--accent);
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
  min-height: 1.8em;
}

.crt-prompt {
  opacity: 0;
}

.crt-typed {
  white-space: pre;
}

.crt-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.crt-pw-dot {
  letter-spacing: 0.15em;
}

.crt-flash-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  background: #fff;
  height: 100%;
  z-index: 20;
  transform-origin: center;
  filter: blur(1px);
}


/* ─── NAV ─────────────────────────────────────────────── */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  opacity: 0;
  transition: opacity var(--transition-slow), background var(--transition-base);
}

#site-header.visible {
  opacity: 1;
}

#site-header.scrolled {
  background: rgba(3, 3, 3, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 1px 24px rgba(var(--accent-rgb), 0.04);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  transition: opacity var(--transition-fast);
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.7), 0 0 40px rgba(var(--accent-rgb), 0.3);
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.55);
}

.nav-hamburger {
  display: none;
}


/* ─── SHARED SECTION LAYOUT ───────────────────────────── */

main {
  position: relative;
  z-index: 1;
}

section {
  padding: var(--section-pad) var(--gutter);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label-wrap {
  margin-bottom: 20px;
}

.section-label {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: clamp(40px, 6vw, 72px);
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45), 0 0 32px rgba(var(--accent-rgb), 0.15);
}

.section-heading.heading-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.95s var(--ease-expo), transform 0.95s var(--ease-expo);
}

.section-heading.heading-revealed {
  opacity: 1;
  transform: translateY(0);
}


.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.link-underline:hover::after {
  width: 100%;
}

.link-underline:hover {
  color: var(--accent);
}


/* ─── HERO ────────────────────────────────────────────── */

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 10vw, 120px);
}

#hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(18px);
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 11vw, 9.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  overflow: visible;
  opacity: 0;
  transform: translateY(22px);
  text-shadow: 0 0 40px rgba(var(--white-rgb), 0.22), 0 0 100px rgba(var(--accent-rgb), 0.08);
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--accent);
  font-style: italic;
  margin-bottom: 36px;
  max-width: 420px;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(14px);
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.4);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  opacity: 0;
  transform: translateY(12px);
}

.hero-links a {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.hero-sep {
  color: var(--muted-2);
  font-size: 0.8rem;
}
.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  opacity: 0;
}

.hero-scroll__line {
  width: 1px;
  height: 60px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero-scroll__line::after {
  content: '';
  position: absolute;
  top: -60%;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scroll-drop 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scroll-drop {
  0%   { top: -60%; }
  100% { top: 160%; }
}

/* ─── ABOUT ───────────────────────────────────────────── */

#about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-text p {
  font-size: clamp(0.97rem, 1.6vw, 1.08rem);
  color: var(--text);
  margin-bottom: 20px;
  max-width: 560px;
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.06);
}

.about-meta {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  padding: 28px;
  align-self: start;
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.04), inset 0 0 20px rgba(var(--accent-rgb), 0.02);
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.meta-block:first-child {
  padding-top: 0;
}

.meta-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-label {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta-val {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.meta-val.accent {
  color: var(--accent);
}


/* ─── SKILLS ──────────────────────────────────────────── */

#skills {
  border-top: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
}

.skill-module {
  padding: 32px 28px;
  border: 0;
  background: var(--surface);
  transition: background var(--transition-base);
}

.skill-module:hover {
  background: var(--surface-raised);
  box-shadow: inset 0 0 20px rgba(var(--accent-rgb), 0.04);
}

.skill-module-name {
  display: block;
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-list li {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.4;
  padding-left: 12px;
  position: relative;
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.06);
}

.skill-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted-2);
  font-size: 0.7rem;
}


/* ─── EXPERIENCE ──────────────────────────────────────── */

#experience {
  border-top: 1px solid var(--border);
}

.exp-card {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), padding-left 0.35s var(--ease-expo);
}

.exp-card:last-child {
  border-bottom: 1px solid var(--border);
}

.exp-card:hover {
  border-top-color: var(--accent-dim);
  box-shadow: inset 2px 0 0 var(--accent), inset 0 0 40px rgba(var(--accent-rgb), 0.03);
  padding-left: 20px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.exp-role {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(var(--accent-rgb), 0.55), 0 0 40px rgba(var(--accent-rgb), 0.2);
}

.exp-company {
  font-size: 0.9rem;
  color: var(--accent);
  font-style: italic;
}

.exp-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.exp-date {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-left: 12px;
  padding-right: 12px;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 740px;
}

.exp-list li {
  font-size: clamp(0.9rem, 1.5vw, 0.97rem);
  color: var(--text);
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.06);
}

.bullets-pending .exp-list li {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.55s ease, transform 0.6s var(--ease-expo);
}

.exp-list li.bullet-visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.exp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--accent-dim);
}


/* ─── PROJECT ─────────────────────────────────────────── */

#project {
  border-top: 1px solid var(--border);
}

.project-card {
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  padding: clamp(32px, 5vw, 56px);
  background: var(--surface);
  max-width: 820px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.05);
}

.project-header {
  margin-bottom: 20px;
}

.project-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(var(--accent-rgb), 0.55), 0 0 40px rgba(var(--accent-rgb), 0.2);
}

.project-client {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

.project-date {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.project-desc {
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  color: var(--text);
  margin: 24px 0 32px;
  max-width: 600px;
  line-height: 1.7;
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.06);
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.project-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(var(--accent-rgb), 0.55), 0 0 40px rgba(var(--accent-rgb), 0.2);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  letter-spacing: 0.1em;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}


/* ─── CONTACT ─────────────────────────────────────────── */

#contact {
  border-top: 1px solid var(--border);
}

.contact-note {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-email {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  line-height: 1;
  width: fit-content;
  transition: color var(--transition-base), text-shadow var(--transition-base);
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.35), 0 0 70px rgba(var(--accent-rgb), 0.12);
}

.contact-email:hover {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.6), 0 0 60px rgba(var(--accent-rgb), 0.25);
}

.contact-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-pill {
  font-size: 0.76rem;
  color: var(--muted);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  padding: 7px 16px;
  letter-spacing: 0.08em;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  display: inline-block;
}

.contact-pill:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}


/* ─── FOOTER ──────────────────────────────────────────── */

footer {
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
  padding: 32px var(--gutter);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-inner span {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.footer-sep {
  color: var(--muted-2);
}

.footer-right {
  margin-left: auto;
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.theme-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  user-select: none;
}

.theme-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.theme-btn[data-theme=""]    { background: #c9975a; }
.theme-btn[data-theme="green"] { background: #289664; }

.theme-btn:hover {
  transform: scale(1.35);
}

.theme-btn.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--bg), 0 0 6px rgba(var(--accent-rgb), 0.5);
  transform: scale(1.25);
}


/* ─── BINARY SEPARATORS ──────────────────────────────── */

.binary-sep {
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

.bsep__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 7px 24px;
  background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.bsep__row {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  line-height: 1.65;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}

.bsep__char {
  display: inline;
  transition: color 0.12s ease;
}

.bsep__char--0 {
  color: var(--muted-2);
}

.bsep__char--1 {
  color: var(--muted);
}

.bsep__char--flash {
  color: var(--accent) !important;
}

.bsep__stripe {
  display: block;
  height: 1px;
  margin: 2px 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 15%,
    var(--border) 85%,
    transparent
  );
}


/* ─── SCROLL REVEAL ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.85s var(--ease-expo);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* ─── GRAIN OVERLAY ───────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 997;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 3px,
      rgba(0, 0, 0, 0.12) 3px,
      rgba(0, 0, 0, 0.12) 4px
    ),
    radial-gradient(
      ellipse 90% 110% at 50% 50%,
      rgba(var(--accent-rgb), 0.05) 0%,
      transparent 52%,
      rgba(0, 0, 0, 0.75) 100%
    );
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.048;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}


/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .exp-header {
    flex-direction: column;
    gap: 16px;
  }

  .exp-meta {
    text-align: left;
  }

  .nav-links {
    display: none;
  }

  .hero-sep {
    display: none;
  }

  .hero-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-scroll {
    display: none;
  }

  .contact-email {
    font-size: clamp(1.2rem, 7vw, 2rem);
  }
}
