/* ============================================
   SQXIBZ — Personal Site
   style.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Bebas+Neue&family=Inter:wght@300;400;500&display=swap');

/* ── RESET & ROOT ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:        #080808;
  --bg2:       #0f0f0f;
  --bg3:       #181818;
  --red:       #e0000f;
  --red2:      #ff2233;
  --red-dim:   rgba(224, 0, 15, 0.10);
  --red-glow:  rgba(224, 0, 15, 0.30);
  --text:      #f0f0f0;
  --muted:     #606070;
  --border:    rgba(255,255,255,0.06);
  --border-red:rgba(224, 0, 15, 0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* SCANLINES */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ── LAYOUT ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* ── NAV ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--red);
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ── HERO ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  min-height: 520px;
}

.hero-left {
  flex: 1;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.hero-tag .line {
  width: 28px;
  height: 1px;
  background: var(--red);
  display: block;
}

/* GLITCH NAME */
.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(70px, 10vw, 110px);
  line-height: 0.9;
  letter-spacing: 6px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
}

.glitch {
  position: relative;
  display: inline-block;
  color: #fff;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.glitch::before {
  color: var(--red);
  animation: glitch1 4s infinite;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  opacity: 0;
}
.glitch::after {
  color: #0ff;
  animation: glitch2 4s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
  opacity: 0;
}

@keyframes glitch1 {
  0%, 90%, 100% { transform: none; opacity: 0; }
  92%            { transform: translate(-3px, 0); opacity: 0.7; }
  94%            { transform: translate(3px, 0); opacity: 0.5; }
  96%            { transform: translate(-1px, 0); opacity: 0.6; }
}
@keyframes glitch2 {
  0%, 92%, 100% { transform: none; opacity: 0; }
  93%           { transform: translate(3px, 0); opacity: 0.5; }
  95%           { transform: translate(-3px, 0); opacity: 0.4; }
  97%           { transform: none; opacity: 0; }
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 32px;
}
.status-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--red);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--red2);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--border-red);
  color: var(--red);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  background: var(--red-dim);
  color: var(--red2);
  transform: translateY(-2px);
}

/* CORNER DECORATION */
.corner {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
}
.corner-tl {
  top: 20px;
  left: 0;
  border-top: 1px solid var(--red);
  border-left: 1px solid var(--red);
  opacity: 0.5;
}
.corner-br {
  bottom: 20px;
  right: 0;
  border-bottom: 1px solid var(--red);
  border-right: 1px solid var(--red);
  opacity: 0.5;
}

/* ── PROFILE IMAGE ── */
.hero-right {
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.profile-frame {
  position: relative;
  width: 260px;
  height: 300px;
}

.profile-border {
  position: absolute;
  inset: -6px;
  border: 1px solid var(--border-red);
  z-index: 0;
  animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { border-color: var(--border-red); }
  50%       { border-color: rgba(224,0,15,0.6); }
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.3s;
}
.profile-img:hover {
  filter: grayscale(0%) contrast(1.1);
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg3);
  border: 1px dashed var(--border-red);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.profile-placeholder span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 4px;
  color: var(--red);
  opacity: 0.4;
}
.profile-placeholder small {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.profile-tag {
  position: absolute;
  bottom: -14px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  letter-spacing: 3px;
  padding: 5px 12px;
  z-index: 2;
}

/* ── SECTIONS ── */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-red);
  opacity: 0.6;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 32px;
}

/* ── ABOUT ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: start;
}

.about-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  color: #aaa;
}
.about-text p + p {
  margin-top: 14px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  min-width: 160px;
}

.stat {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-bottom: none; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 46px;
  color: var(--red);
  letter-spacing: 2px;
  display: block;
  line-height: 1;
}
.stat-plus {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--red);
  opacity: 0.6;
}

.stat-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

/* ── PROJECT CARDS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: default;
  transition: border-color 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card:nth-child(1) { transition-delay: 0.05s; }
.project-card:nth-child(2) { transition-delay: 0.12s; }
.project-card:nth-child(3) { transition-delay: 0.19s; }
.project-card:nth-child(4) { transition-delay: 0.26s; }

.project-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
}

/* Card image */
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg3);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s;
  filter: grayscale(30%) brightness(0.85);
}
.project-card:hover .card-img {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
}

.card-img-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-red);
  flex-direction: column;
  gap: 8px;
}
.card-img-placeholder span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
.card-img-placeholder::before {
  content: '[ IMG ]';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--red);
  opacity: 0.25;
}

/* Overlay on hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(224,0,15,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .card-overlay { opacity: 1; }

.card-link {
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.6);
  transition: background 0.2s;
}
.card-link:hover {
  background: rgba(255,255,255,0.15);
}

/* Card body */
.card-body {
  padding: 22px 24px 24px;
}

.card-num {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--red);
  opacity: 0.5;
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 10px;
}

.card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border-red);
  color: var(--red);
  background: var(--red-dim);
}

/* ── CONTACT ── */
.contact-intro {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.contact-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red-dim);
  opacity: 0;
  transition: opacity 0.25s;
}
.contact-btn:hover {
  border-color: var(--border-red);
  transform: translateY(-2px);
}
.contact-btn:hover::before { opacity: 1; }
.contact-btn:hover .btn-arrow {
  transform: translate(3px, -3px);
  color: var(--red);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-red);
  background: var(--red-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  position: relative;
  z-index: 1;
}

.btn-info {
  flex: 1;
  position: relative;
  z-index: 1;
}
.btn-name {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}
.btn-handle {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 3px;
}

.btn-arrow {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
  position: relative;
  z-index: 1;
}

/* ── FOOTER ── */
footer {
  padding: 44px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.red { color: var(--red); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .hero {
    flex-direction: column-reverse;
    padding: 48px 0 60px;
    min-height: unset;
    gap: 36px;
  }
  .hero-right { align-self: center; }
  .profile-frame { width: 200px; height: 230px; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .about-layout  { grid-template-columns: 1fr; }
  .about-stats   { flex-direction: row; }
}

/* ═══════════════════════════════════════════
   V2 UPGRADES — boot / cursor / canvas / toast
   ═══════════════════════════════════════════ */

/* PARTICLE CANVAS */
#netCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.container, #navbar { position: relative; z-index: 2; }

/* BOOT OVERLAY */
.boot-overlay {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s ease;
}
.boot-overlay.boot-done { opacity: 0; pointer-events: none; }
.boot-terminal {
  width: min(560px, 88vw);
  border: 1px solid var(--border-red);
  background: var(--bg2);
  padding: 28px 30px 22px;
  box-shadow: 0 0 60px rgba(224,0,15,0.12);
}
.boot-terminal pre {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.9;
  color: var(--red2);
  min-height: 250px;
  white-space: pre-wrap;
}
.boot-terminal pre::after {
  content: '▊';
  animation: blink 0.9s steps(1) infinite;
}
.boot-skip {
  margin-top: 14px;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  text-align: right;
}
@keyframes blink { 50% { opacity: 0; } }

/* CUSTOM CURSOR */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10001;
  border-radius: 50%;
}
.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--red);
}
.cursor-ring {
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid rgba(224,0,15,0.55);
  transition: width 0.2s, height 0.2s, margin 0.2s, border-color 0.2s, background 0.2s;
}
.cursor-ring.cursor-hover {
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-color: var(--red2);
  background: rgba(224,0,15,0.08);
}
body.has-cursor, body.has-cursor a, body.has-cursor button,
body.has-cursor select, body.has-cursor input, body.has-cursor textarea {
  cursor: none;
}

/* TYPING CARET */
.type-caret {
  color: var(--red);
  animation: blink 0.9s steps(1) infinite;
  font-weight: 700;
}

/* NAV APPLY LINK */
.nav-links a.nav-apply {
  color: var(--red);
  border: 1px solid var(--border-red);
  padding: 6px 12px;
  background: var(--red-dim);
}
.nav-links a.nav-apply:hover { color: #fff; background: var(--red); }
.nav-links a.nav-apply::after { display: none; }

/* CARD SHINE (3D tilt) */
.project-card {
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
  position: relative;
}
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
}
.project-card:hover::after { opacity: 1; }
.project-card:hover { box-shadow: 0 12px 40px rgba(224,0,15,0.10); }

/* MAGNETIC */
.magnetic { transition: transform 0.18s ease-out; will-change: transform; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--bg2);
  border: 1px solid var(--border-red);
  color: var(--red2);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 12px 22px;
  z-index: 10002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* OVERCLOCK MODE */
body.overclocked .scanlines {
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(224,0,15,0.06) 2px, rgba(224,0,15,0.06) 4px);
}
body.overclocked #navbar { animation: oc-shake 0.4s infinite; }
@keyframes oc-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}

/* ═══════════════════════════════════════════
   STAFF APPLICATION PAGE
   ═══════════════════════════════════════════ */
.apply-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 28px 100px;
  position: relative;
  z-index: 2;
}

.apply-head { margin-bottom: 36px; }
.apply-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 7vw, 64px);
  letter-spacing: 4px;
  color: #fff;
  line-height: 1;
  margin: 12px 0 14px;
}
.apply-intro {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
}

/* PROGRESS */
.apply-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 30px;
}
.progress-step {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  white-space: nowrap;
}
.progress-step.active { color: var(--red); }
.progress-bar {
  flex: 1;
  height: 2px;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}
.progress-fill {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0.33);
  transition: transform 0.4s cubic-bezier(.7,0,.3,1);
}

/* FORM */
.form-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 34px 32px;
  position: relative;
}
.form-panel::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 20px; height: 20px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.form-panel::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 20px; height: 20px;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
}

.form-step { display: none; animation: fadeUp 0.4s ease; }
.form-step.active { display: block; }

.q-block { margin-bottom: 26px; }
.q-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.q-num { color: var(--red); margin-right: 8px; }
.q-hint {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  margin: -4px 0 10px;
  letter-spacing: 0;
  text-transform: none;
}

.q-input, .q-select, .q-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.q-textarea { min-height: 110px; resize: vertical; line-height: 1.7; font-family: 'Inter', sans-serif; font-weight: 300; }
.q-input:focus, .q-select:focus, .q-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}
.q-input::placeholder, .q-textarea::placeholder { color: #3a3a45; }

.q-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23e0000f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
  cursor: pointer;
}
.q-select option { background: var(--bg2); }

.q-error {
  display: none;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--red2);
  margin-top: 7px;
}
.q-block.invalid .q-error { display: block; }
.q-block.invalid .q-input,
.q-block.invalid .q-select,
.q-block.invalid .q-textarea { border-color: var(--red); }

.char-count {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  margin-top: 5px;
  letter-spacing: 1px;
}

/* honeypot — invisible to humans */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* FORM NAV */
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
}
.form-btn {
  padding: 13px 30px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s;
}
.form-btn.next, .form-btn.submit {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}
.form-btn.next:hover, .form-btn.submit:hover {
  background: var(--red2);
  box-shadow: 0 0 24px var(--red-glow);
}
.form-btn.back {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.form-btn.back:hover { color: var(--text); border-color: var(--muted); }
.form-btn:disabled { opacity: 0.5; cursor: wait; }

/* REVIEW */
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-item {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 14px 16px;
}
.review-q {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.review-a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* SUCCESS */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form-success.show { display: block; animation: fadeUp 0.5s ease; }
.success-icon {
  font-size: 44px;
  color: var(--red);
  margin-bottom: 18px;
}
.success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 12px;
}
.success-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 26px;
}

.apply-back-link {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.apply-back-link:hover { color: var(--red); }

@media (max-width: 560px) {
  .form-panel { padding: 26px 20px; }
  .progress-step { display: none; }
  .progress-step.active { display: block; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════
   V3 MEGA BUFF — ticker / appeal strip / glow
   ═══════════════════════════════════════════ */

/* NAV — ban appeal link */
.nav-links a.nav-appeal {
  color: #fff;
  background: linear-gradient(120deg, var(--red), #7a0009, var(--red));
  background-size: 200% 100%;
  border-color: var(--red);
  animation: navPulse 6s linear infinite;
}
.nav-links a.nav-appeal:hover { background: var(--red2); }
@keyframes navPulse { to { background-position: -200% 0; } }

/* HERO — deeper glow */
.hero-name .glitch {
  text-shadow: 0 0 42px rgba(224, 0, 15, 0.35);
}

/* SECTION TITLES — underline sweep */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(.7,0,.3,1) 0.2s;
}
.section.visible .section-title::after { transform: scaleX(1); }

/* PRIMARY BUTTONS — shine sweep */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: btnShine 4.5s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 55%  { left: -80%; }
  75%, 100% { left: 130%; }
}

/* PROJECT CARDS — hot border + lift */
.project-card:hover {
  border-color: rgba(224,0,15,0.55);
  box-shadow: 0 18px 54px rgba(224,0,15,0.16), 0 0 0 1px rgba(224,0,15,0.25) inset;
}
.card-title { transition: text-shadow 0.3s; }
.project-card:hover .card-title { text-shadow: 0 0 22px rgba(224,0,15,0.5); }

/* TICKER STRIP */
.ticker-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}
.ticker-track span {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--muted);
}
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* APPEAL STRIP */
.appeal-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin: 44px 0 0;
  padding: 34px 34px;
  position: relative;
  background:
    linear-gradient(rgba(10,10,10,0.88), rgba(10,10,10,0.88)),
    radial-gradient(circle at 12% 0%, rgba(224,0,15,0.5), transparent 45%),
    radial-gradient(circle at 88% 100%, rgba(224,0,15,0.35), transparent 45%),
    var(--bg2);
  border: 1px solid var(--border-red);
  overflow: hidden;
}
.appeal-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 22px, rgba(224,0,15,0.045) 22px, rgba(224,0,15,0.045) 44px);
  pointer-events: none;
}
.as-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red2);
  border: 1px solid var(--border-red);
  background: var(--red-dim);
  padding: 6px 12px;
  margin-bottom: 14px;
  animation: borderPulse 3s ease-in-out infinite;
}
.as-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 4.6vw, 44px);
  letter-spacing: 3px;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 34px rgba(224,0,15,0.4);
}
.as-text {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.7;
}
.as-text b { color: var(--text); font-weight: 500; }
.as-left { position: relative; z-index: 1; }
.as-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .appeal-strip { padding: 26px 22px; }
  .as-actions { flex-direction: row; flex-wrap: wrap; }
}
