/* ══════════════════════════════════════════
   RESET & CUSTOM PROPERTIES
══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:           #03050a;
  --surface:      #070b14;
  --surface-2:    #0c1220;
  --border:       rgba(0, 210, 255, 0.08);
  --border-hi:    rgba(0, 210, 255, 0.28);
  --text:         #a6c0d2;  /* ~11:1 on bg */
  --text-dim:     #7a9eb6;  /* ~7.5:1 on bg, comfortable AA+ on all surfaces */
  --text-ghost:   #344f62;  /* decorative-only, not used for content */
  --text-hi:      #ddeef8;
  --cyan:         #00d2ff;
  --cyan-glow:    rgba(0, 210, 255, 0.12);
  --purple:       #7c3aed;
  --purple-glow:  rgba(124, 58, 237, 0.15);
  --green:        #00ffaa;
  --red:          #ff2d55;
  --amber:        #f59e0b;
  --ff-display:   'Syne', sans-serif;
  --ff-mono:      'Share Tech Mono', monospace;
  --ff-vt:        'VT323', monospace;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-display);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Skip link ── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  background: var(--cyan);
  color: var(--bg);
  padding: 0.6rem 1.25rem;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Focus visible (keyboard only) ── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .glitch-name::before,
  .glitch-name::after { animation: none !important; }
}

/* Scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.025) 2px,
    rgba(0,0,0,0.025) 4px
  );
  pointer-events: none;
  z-index: 9990;
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,210,255,0.2); border-radius: 2px; }

/* ══════════════════════════════════════════
   CANVAS
══════════════════════════════════════════ */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
}

/* backdrop via ::before so nav itself doesn't become a containing block
   for position:fixed children (backdrop-filter on the element itself would
   trap .nav-links inside the nav bar height) */
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(3,5,10,0.9) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.nav-logo {
  font-family: var(--ff-mono);
  font-size: 0.9rem;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-bracket { color: var(--text-dim); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--cyan); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 102;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-inner {
  text-align: center;
  padding: 2rem;
  max-width: 940px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.3s;
}

.hero-eyebrow::before { content: '> '; color: var(--text-dim); }

/* ── Glitch Name ── */
.glitch-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.55s;
}

.glitch-name {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--text-hi);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  position: relative;
  user-select: none;
}

.glitch-name::before,
.glitch-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch-name::before {
  color: var(--cyan);
  animation: glitch-cyan 5s infinite linear;
}

.glitch-name::after {
  color: var(--red);
  animation: glitch-red 5s infinite linear 0.05s;
}

@keyframes glitch-cyan {
  0%, 90%, 100% { clip-path: inset(0 0 101% 0); transform: translate(0); }
  91%  { clip-path: inset(18% 0 68% 0); transform: translate(-4px, 0); }
  92%  { clip-path: inset(72% 0 12% 0); transform: translate(3px, 0); }
  93%  { clip-path: inset(42% 0 46% 0); transform: translate(-2px, 0); }
  94%  { clip-path: inset(58% 0 28% 0); transform: translate(4px, 0); }
  95%  { clip-path: inset(8%  0 84% 0); transform: translate(-1px, 0); }
  96%  { clip-path: inset(32% 0 55% 0); transform: translate(2px, 0); }
  97%  { clip-path: inset(0 0 101% 0); transform: translate(0); }
}

@keyframes glitch-red {
  0%, 90%, 100% { clip-path: inset(101% 0 0 0); transform: translate(0); }
  91%  { clip-path: inset(62% 0 22% 0); transform: translate(4px, 0); }
  92%  { clip-path: inset(14% 0 76% 0); transform: translate(-3px, 0); }
  93%  { clip-path: inset(48% 0 40% 0); transform: translate(2px, 0); }
  94%  { clip-path: inset(26% 0 62% 0); transform: translate(-4px, 0); }
  95%  { clip-path: inset(80% 0 8%  0); transform: translate(1px, 0); }
  96%  { clip-path: inset(36% 0 51% 0); transform: translate(-2px, 0); }
  97%  { clip-path: inset(101% 0 0 0); transform: translate(0); }
}

/* ── Tagline ── */
.hero-tagline {
  font-family: var(--ff-mono);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.85s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 2em;
}

#typewriter { color: var(--cyan); }

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: var(--cyan);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Hero Meta ── */
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.1s;
  flex-wrap: wrap;
}

.hero-badge {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  color: var(--green);
  border: 1px solid rgba(0,255,170,0.22);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity:1; box-shadow: 0 0 6px var(--green); }
  50%      { opacity:0.5; box-shadow: 0 0 2px var(--green); }
}

.hero-location {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.hero-location strong { color: var(--text); }

/* ── CTAs ── */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.3s;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--cyan-glow);
  color: var(--cyan);
  border: 1px solid var(--border-hi);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateX(-101%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  color: var(--bg);
  box-shadow: 0 0 24px rgba(0,210,255,0.25);
}

.btn-primary:hover::before { transform: translateX(0); }

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

.btn-ghost:hover {
  color: var(--text-hi);
  border-color: var(--border-hi);
}

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.8s;
}

.scroll-hint span {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--border-hi), transparent);
  animation: scroll-anim 1.8s ease-in-out infinite;
}

@keyframes scroll-anim {
  0%   { transform: scaleY(0); transform-origin: top; opacity:1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity:1; }
  50.1%{ transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity:0; }
}

@keyframes fadeUp {
  from { opacity:0; transform: translateY(22px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.section-label {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-hi);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 3.5rem;
}

.divider {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* ══════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════ */
#projects {
  background: linear-gradient(to bottom,
    transparent,
    rgba(7, 11, 20, 0.7) 30%,
    rgba(7, 11, 20, 0.7) 70%,
    transparent
  );
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.project-card {
  background: var(--surface);
  padding: 2rem;
  position: relative;
  transition: background 0.3s;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.project-card:not(.placeholder) { cursor: pointer; }

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan-glow);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:not(.placeholder):hover::before { opacity: 1; }
.project-card:not(.placeholder):hover::after  { transform: scaleX(1); }

.project-card:not(.placeholder):hover {
  box-shadow: 0 0 50px rgba(0,210,255,0.04);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.project-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
  flex-shrink: 0;
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-status {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  text-transform: uppercase;
}

.status-live   { color: var(--green);  border: 1px solid rgba(0,255,170,0.25); background: rgba(0,255,170,0.05); }
.status-wip    { color: var(--cyan);   border: 1px solid var(--border-hi);     background: var(--cyan-glow); }
.status-soon   { color: var(--text-dim); border: 1px solid rgba(46,74,94,0.35); background: transparent; }

.project-num {
  font-family: var(--ff-vt);
  font-size: 0.85rem;
  color: var(--text-dim);
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  letter-spacing: 0.05em;
}

.project-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 0.55rem;
  position: relative;
  z-index: 1;
}

.project-desc {
  font-size: 0.925rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.tag {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.18rem 0.48rem;
  border-radius: 2px;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}

.project-card:not(.placeholder):hover .tag {
  color: var(--text);
  border-color: rgba(0,210,255,0.15);
}

.project-cta {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  transition: gap 0.2s;
  position: relative;
  z-index: 1;
}

.project-card:hover .project-cta { gap: 0.7rem; }

.project-card.placeholder { opacity: 0.22; cursor: default; }
.project-card.placeholder::after,
.project-card.placeholder::before { display: none; }

/* ══════════════════════════════════════════
   EXPERTISE
══════════════════════════════════════════ */
#expertise {
  background: var(--surface);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.expertise-card {
  background: var(--surface);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.expertise-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.expertise-card:hover {
  background: var(--surface-2);
}

.expertise-card:hover::after { transform: scaleX(1); }

.expertise-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
}

.expertise-name {
  font-family: var(--ff-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 0.45rem;
}

.expertise-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text { font-size: 0.93rem; color: var(--text); line-height: 1.85; }
.about-text p + p { margin-top: 1rem; }
.about-text strong { color: var(--text-hi); }
.about-text a { color: var(--cyan); text-decoration: none; }
.about-text a:hover { text-decoration: underline; }

.stats-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.stat { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-val {
  font-family: var(--ff-vt);
  font-size: 2.4rem;
  color: var(--cyan);
  line-height: 1;
}

.stat-label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Terminal */
.about-terminal {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: sticky;
  top: 6rem;
}

.term-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.term-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.term-dot:nth-child(1) { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }

.term-title {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin: 0 auto;
  padding-right: 58px;
}

.term-body {
  padding: 1.5rem 1.5rem 1.75rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  line-height: 1.9;
}

.tc  { color: var(--cyan); }
.tw  { color: var(--text-hi); }
.td  { color: var(--text-dim); }
.tp  { color: var(--purple); }
.tg  { color: var(--green); }
.ta  { color: var(--amber); }

/* ══════════════════════════════════════════
   CONNECT
══════════════════════════════════════════ */
.connect-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.connect-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.connect-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.connect-card:hover {
  border-color: var(--border-hi);
  background: var(--surface-2);
  color: var(--text-hi);
}

.connect-card:hover::before { transform: scaleY(1); }

.connect-icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 6px;
  flex-shrink: 0;
}

.connect-icon svg { width: 17px; height: 17px; fill: var(--cyan); }

.connect-name {
  font-family: var(--ff-display);
  font-size: 0.88rem;
  font-weight: 600;
}

.connect-handle {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.75rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.footer-copy span { color: var(--cyan); }

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan); }

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }
.rd4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-terminal { position: static; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    z-index: 101;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 2rem;
    letter-spacing: 0.18em;
    color: var(--text-hi);
  }
  .nav-links a:hover,
  .nav-links a.active { color: var(--cyan); }
  .nav-links a::after { height: 2px; bottom: -6px; }
  .section-inner { padding: 4rem 1.5rem; }
  footer { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-ctas  { flex-direction: column; align-items: stretch; }
  .btn        { justify-content: center; }
  .stats-row  { gap: 1.75rem; }
  .glitch-name { font-size: clamp(1.5rem, 8vw, 3rem); }
  .hero-inner  { padding-left: 1rem; padding-right: 1rem; }
  .hero-eyebrow { font-size: 0.78rem; letter-spacing: 0.1em; }
}

/* ══════════════════════════════════════════
   VISUALLY HIDDEN (SEO + A11Y)
══════════════════════════════════════════ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════════ */
#faq { background: var(--surface); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.faq-item {
  background: var(--surface);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.4rem 1.75rem;
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-hi);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s, color 0.2s;
}

.faq-q:hover { background: var(--surface-2); color: var(--cyan); }
.faq-q[aria-expanded="true"] { color: var(--cyan); }

.faq-icon {
  font-family: var(--ff-mono);
  font-size: 1rem;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a-inner {
  padding: 0 1.75rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.faq-a-inner a { color: var(--cyan); text-decoration: none; }
.faq-a-inner a:hover { text-decoration: underline; }
