/* ============================================================
   NEO-BRUTALIST DESIGN SYSTEM — JUSTIN CLYVE MORADA
   ============================================================ */

:root {
  --void: #090a0c;
  --void-2: #111317;
  --bone: #f4f2eb;
  --bone-dim: #9ea3ac;
  --chrome: #8a919c;
  --chrome-hi: #c5cad3;
  --chrome-dim: #2e323b;
  --raw-border: #3b404b;
  --phosphor: #00ff66;
  --phosphor-dim: #00b347;
  --acid: #e5ff00;
  --oxide: #ff3344;
  --hair: #20242c;
  --shadow-hard: 4px 4px 0px #000000;
  --shadow-accent: 4px 4px 0px var(--phosphor);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* Strict Neo-Brutalist Zero Border Radius */
}

html {
  background: var(--void);
  color: var(--bone);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--bone);
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--phosphor);
  color: var(--void);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* ---------- Typography ---------- */
@font-face {
  font-family: 'Basement Grotesque';
  src: local('Basement Grotesque'), local('BasementGrotesque-Black'), local('BasementGrotesque-Display');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

.display {
  font-family: 'Basement Grotesque', 'Oswald', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--bone);
}

.label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--chrome);
}

.label.phosphor, .phosphor {
  color: var(--phosphor);
}

.badge-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--void-2);
  border: 2px solid var(--phosphor);
  color: var(--phosphor);
  display: inline-block;
}

a {
  color: inherit;
}

/* ---------- Neo-Brutalist Section Divider ---------- */
.arch-top {
  border-top: 2px solid var(--chrome-dim);
  position: relative;
  padding-top: calc(120px + 24px);
}
.arch-top::before {
  content: '[ SECTION GRID // STRUCTURAL FRAME ]';
  position: absolute;
  top: -12px;
  right: 48px;
  background: var(--void);
  border: 1px solid var(--chrome-dim);
  padding: 2px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--chrome-dim);
  letter-spacing: 0.15em;
}
@media (max-width: 820px) {
  .arch-top {
    padding-top: calc(80px + 20px);
  }
  .arch-top::before {
    right: 22px;
  }
}

/* ---------- Spine / Scroll Tracker ---------- */
.spine-track {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: var(--chrome-dim);
  z-index: 100;
  pointer-events: none;
}
.spine-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: var(--phosphor);
  box-shadow: 0 0 10px var(--phosphor);
  transition: height 0.1s linear;
}
.vertebra {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--void);
  border: 2px solid var(--chrome);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.vertebra.active, .vertebra:hover {
  background: var(--phosphor);
  border-color: var(--phosphor);
  box-shadow: 0 0 10px var(--phosphor);
}
@media (max-width: 820px) {
  .spine-track {
    left: 14px;
  }
}

/* ---------- Fixed Nav Header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px 20px 68px;
  background: rgba(9, 10, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--chrome-dim);
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--bone);
}
.mark-tag {
  background: var(--phosphor);
  color: var(--void);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border: 1px solid var(--phosphor);
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
nav a .label {
  font-size: 0.72rem;
  font-weight: 700;
  transition: color 0.25s ease;
}
nav a:hover, nav a.active {
  border-color: var(--phosphor);
  background: rgba(0, 255, 102, 0.05);
}
nav a:hover .label, nav a.active .label {
  color: var(--phosphor);
}
@media (max-width: 820px) {
  header {
    padding: 16px 20px 16px 44px;
  }
  nav {
    gap: 12px;
  }
  nav a {
    padding: 4px 8px;
  }
  nav a .label {
    font-size: 0.62rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 48px 80px 68px;
  overflow: hidden;
  border-bottom: 2px solid var(--chrome-dim);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(46, 50, 59, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 50, 59, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Hero Layout Container */
.hero-main-layout {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

/* Brutalist Telemetry Panel */
.hero-telemetry-panel {
  position: relative;
  width: 300px;
  flex-shrink: 0;
  background: var(--void-2);
  border: 2px solid var(--chrome-dim);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
  margin-bottom: 8px;
}
.telemetry-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--phosphor);
  border-bottom: 1px solid var(--chrome-dim);
  padding-bottom: 8px;
  letter-spacing: 0.15em;
}
.telemetry-row {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
}
.t-key {
  color: var(--chrome);
}
.t-val {
  color: var(--bone);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .hero-main-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .hero-telemetry-panel {
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 120px 22px 60px 44px;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 920px;
}
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero h1 {
  font-size: clamp(3rem, 7.5vw, 6.2rem);
  line-height: 0.94;
  margin-bottom: 24px;
}
.hero h1 span.px {
  color: var(--phosphor);
}
.hero-sub {
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--bone-dim);
  margin-bottom: 36px;
  font-weight: 300;
  border-left: 2px solid var(--phosphor);
  padding-left: 20px;
}
.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  right: 48px;
  bottom: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll .stem {
  width: 2px;
  height: 48px;
  background: var(--phosphor);
  animation: pulse-line 2s infinite ease-in-out;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.3; height: 32px; }
  50% { opacity: 1; height: 56px; }
}

/* ---------- Section Shell ---------- */
section {
  position: relative;
  padding: 130px 48px 130px 68px;
}
@media (max-width: 820px) {
  section {
    padding: 90px 22px 90px 44px;
  }
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--chrome-dim);
  padding-bottom: 20px;
}
.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--phosphor);
}
.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
}

/* ---------- Manifesto / About ---------- */
.manifesto {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .manifesto {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.manifesto p {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--bone);
}
.manifesto p + p {
  margin-top: 24px;
  color: var(--bone-dim);
  font-size: 1.02rem;
}
.stat-cluster {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 2px solid var(--chrome-dim);
  background: var(--void-2);
  padding: 32px;
  box-shadow: var(--shadow-hard);
}
.stat .num {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--phosphor);
  line-height: 1;
}
.stat .cap {
  margin-top: 6px;
  color: var(--bone-dim);
}

/* ---------- Work Grid / List (Neo-Brutalist) ---------- */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.work-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 36px;
  background: var(--void-2);
  border: 2px solid var(--chrome-dim);
  box-shadow: var(--shadow-hard);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.work-item:hover, .work-item.is-expanded {
  border-color: var(--phosphor);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}
.work-header {
  display: grid;
  grid-template-columns: 70px 1.2fr 1fr auto;
  gap: 24px;
  align-items: center;
  width: 100%;
}
.work-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--phosphor);
}
.work-title {
  font-family: 'Basement Grotesque', 'Oswald', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.work-item:hover .work-title {
  color: var(--phosphor);
}
.work-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
}
.work-desc {
  font-size: 0.92rem;
  color: var(--bone-dim);
  line-height: 1.55;
  max-width: 360px;
}
.work-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid var(--chrome-dim);
  background: var(--void);
  padding: 4px 10px;
}
.work-item:hover .tag {
  border-color: var(--phosphor);
  color: var(--phosphor);
}
.work-toggle-indicator {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bone);
  border: 2px solid var(--chrome-dim);
  padding: 8px 14px;
  background: var(--void);
  transition: all 0.25s ease;
}
.work-item:hover .work-toggle-indicator,
.work-item.is-expanded .work-toggle-indicator {
  color: var(--void);
  background: var(--phosphor);
  border-color: var(--phosphor);
}

/* Expandable Drawer Panel */
.work-expand-panel {
  display: none;
  height: 0;
  opacity: 0;
  overflow: hidden;
  width: 100%;
  margin-top: 28px;
  border-top: 2px solid var(--chrome-dim);
  padding-top: 32px;
}
.work-expand-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: start;
  width: 100%;
}
.work-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #080a0d;
  border: 2px solid var(--chrome-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work-media-box .media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--void);
  background: var(--phosphor);
  padding: 4px 10px;
}
.work-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.work-long-desc {
  font-size: 0.95rem;
  color: var(--bone);
  line-height: 1.7;
}
.work-tech-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tech-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--chrome);
}
.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--phosphor);
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid var(--phosphor);
  padding: 5px 12px;
}
.work-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Brutalist Buttons */
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bone);
  color: var(--void);
  font-family: 'Basement Grotesque', 'Oswald', sans-serif;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid var(--bone);
  box-shadow: 3px 3px 0px var(--phosphor);
  transition: all 0.2s ease;
}
.btn-demo:hover {
  background: var(--phosphor);
  border-color: var(--phosphor);
  color: var(--void);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--phosphor);
}
.btn-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--void-2);
  color: var(--bone);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border: 2px solid var(--chrome-dim);
  box-shadow: var(--shadow-hard);
  transition: all 0.2s ease;
}
.btn-code:hover {
  color: var(--phosphor);
  border-color: var(--phosphor);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--phosphor);
}

@media (max-width: 820px) {
  .work-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .work-meta {
    align-items: flex-start;
    text-align: left;
  }
  .work-tags {
    justify-content: flex-start;
  }
  .work-expand-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--bone);
  border: 2px solid var(--chrome-dim);
  padding: 14px 28px;
  background: var(--void-2);
  box-shadow: var(--shadow-hard);
  transition: all 0.25s ease;
}
.view-all:hover {
  border-color: var(--phosphor);
  color: var(--phosphor);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--phosphor);
}

/* ---------- Services Grid ("What I Do") ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-cell {
  background: var(--void-2);
  border: 2px solid var(--chrome-dim);
  padding: 36px 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-hard);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.service-cell:hover {
  border-color: var(--phosphor);
  transform: translateY(-3px);
}
.service-cell .cap-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--phosphor);
}
.service-cell h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin-top: 20px;
}
.service-cell p {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--bone-dim);
  line-height: 1.6;
}
@media (max-width: 820px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Tech Stack ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}
.stack-cell {
  background: var(--void-2);
  border: 2px solid var(--chrome-dim);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: var(--shadow-hard);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.stack-cell:hover {
  border-color: var(--phosphor);
  transform: translateY(-3px);
}
.stack-cell img {
  width: 36px;
  height: 36px;
  filter: brightness(0) saturate(100%) invert(85%) sepia(4%) saturate(180%) hue-rotate(11deg) brightness(85%);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.stack-cell:hover img {
  filter: brightness(0) saturate(100%) invert(85%) sepia(20%) saturate(500%) hue-rotate(50deg) brightness(105%) drop-shadow(0 0 8px rgba(0,255,102,0.8));
  transform: scale(1.1);
}
@media (max-width: 820px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tech Ghost Watermark */
.tech-display-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tech-ghost {
  width: clamp(220px, 40vw, 420px);
  height: clamp(220px, 40vw, 420px);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tech-ghost.active {
  opacity: 0.05;
  transform: scale(1);
}
.tech-ghost-name {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0;
  margin-top: -20px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tech-ghost-name.active {
  opacity: 0.08;
}

/* ---------- Skills Cloud ---------- */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skills-cloud .tag {
  font-size: 0.72rem;
  padding: 8px 16px;
  border-width: 2px;
}

/* ---------- Contact Page ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 60px;
  margin-top: 40px;
  align-items: start;
}
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.contact-info-col .info-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}
.contact-info-col .welcoming-msg {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--bone-dim);
}
.contact-meta-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 3px solid var(--phosphor);
  padding-left: 28px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meta-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 2px solid var(--chrome-dim);
  padding-bottom: 4px;
  width: fit-content;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.meta-link:hover {
  color: var(--phosphor);
  border-color: var(--phosphor);
}
.meta-text {
  font-size: 1.05rem;
  color: var(--bone);
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.social-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--void-2);
  border: 2px solid var(--chrome-dim);
  box-shadow: var(--shadow-hard);
  text-decoration: none;
  transition: all 0.25s ease;
}
.social-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-icon {
  width: 16px;
  height: 16px;
  color: var(--bone-dim);
}
.social-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.social-link:hover {
  border-color: var(--phosphor);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--phosphor);
}
.social-link:hover .social-icon,
.social-link:hover .social-name,
.social-link:hover .social-arrow {
  color: var(--phosphor);
}

/* Contact Form Column */
.contact-form-col {
  position: relative;
  background: var(--void-2);
  border: 2px solid var(--chrome-dim);
  padding: 40px;
  box-shadow: var(--shadow-hard);
}
.form-header-deco {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--chrome-dim);
  padding-bottom: 16px;
  margin-bottom: 32px;
}
.form-status-light {
  width: 8px;
  height: 8px;
  background: var(--phosphor);
  box-shadow: 0 0 8px var(--phosphor);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
}
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full-width {
  grid-column: span 2;
}
@media (max-width: 768px) {
  .form-group.full-width {
    grid-column: span 1;
  }
}
.input-wrapper {
  position: relative;
  width: 100%;
}
.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  background: var(--void);
  border: 2px solid var(--chrome-dim);
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.25s ease;
}
.input-wrapper textarea {
  resize: vertical;
  min-height: 150px;
}
.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: var(--phosphor);
}
.error-msg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--oxide);
  margin-top: 4px;
  display: none;
}
.form-group.invalid .error-msg {
  display: block;
}
.form-group.invalid .input-wrapper input,
.form-group.invalid .input-wrapper textarea {
  border-color: var(--oxide);
}
.form-footer {
  margin-top: 36px;
  display: flex;
  justify-content: flex-end;
}
.submit-button {
  background: var(--bone);
  border: 2px solid var(--bone);
  padding: 14px 32px;
  cursor: pointer;
  box-shadow: 3px 3px 0px var(--phosphor);
  transition: all 0.2s ease;
}
.submit-button .button-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--void);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
}
.submit-button:hover {
  background: var(--phosphor);
  border-color: var(--phosphor);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--phosphor);
}

/* Success Panel */
.success-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  padding: 20px 0;
}
.success-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--chrome-dim);
  padding-bottom: 16px;
}
.reset-button {
  background: var(--void);
  border: 2px solid var(--chrome-dim);
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: all 0.2s ease;
}
.reset-button:hover {
  border-color: var(--phosphor);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--phosphor);
}
.reset-button .label {
  color: var(--bone);
}
.reset-button:hover .label {
  color: var(--phosphor);
}

/* ---------- Magnetic Class ---------- */
.magnetic {
  will-change: transform;
}

/* ---------- Footer ---------- */
footer {
  padding: 36px 48px 36px 68px;
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--chrome-dim);
  flex-wrap: wrap;
  gap: 16px;
  background: var(--void-2);
}
@media (max-width: 820px) {
  footer {
    padding: 28px 22px 28px 44px;
  }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 4px;
}

/* ============================================================
   PIXEL BOX CURSOR — NEO-BRUTALIST ARCHITECTURE
   ============================================================ */
@media (pointer: fine) {
  body, a, button, input, textarea, select, [role="button"], label, .work-item {
    cursor: none !important;
  }
}

.pixel-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: difference;
  will-change: transform;
}

.pixel-cursor .pixel-grid {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease-out;
}

.pixel-cursor .px-box {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--phosphor);
  box-shadow: 0 0 2px rgba(0, 255, 102, 0.6);
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease, background-color 0.2s ease;
}

.pixel-cursor .px-center {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
}

.pixel-cursor .px-top {
  transform: translate(0, -9px);
}
.pixel-cursor .px-bottom {
  transform: translate(0, 9px);
}
.pixel-cursor .px-left {
  transform: translate(-9px, 0);
}
.pixel-cursor .px-right {
  transform: translate(9px, 0);
}

.pixel-cursor .px-top-left {
  transform: translate(-6px, -6px) scale(0.7);
  opacity: 0.8;
}
.pixel-cursor .px-top-right {
  transform: translate(6px, -6px) scale(0.7);
  opacity: 0.8;
}
.pixel-cursor .px-bottom-left {
  transform: translate(-6px, 6px) scale(0.7);
  opacity: 0.8;
}
.pixel-cursor .px-bottom-right {
  transform: translate(6px, 6px) scale(0.7);
  opacity: 0.8;
}

/* Hover state: remains idle (no animation/spin/pulse), just clean bracket expansion */
.pixel-cursor.is-hovering .px-center {
  background-color: var(--phosphor);
  transform: scale(1.4);
}
.pixel-cursor.is-hovering .px-top {
  transform: translate(0, -13px);
}
.pixel-cursor.is-hovering .px-bottom {
  transform: translate(0, 13px);
}
.pixel-cursor.is-hovering .px-left {
  transform: translate(-13px, 0);
}
.pixel-cursor.is-hovering .px-right {
  transform: translate(13px, 0);
}

/* Click state: triggers dramatic pixel dispersion explosion ONLY on click */
.pixel-cursor.is-clicking .pixel-grid {
  animation: pxClickPulse 0.35s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.pixel-cursor.is-clicking .px-center {
  transform: scale(0.2);
  background-color: var(--acid);
}

.pixel-cursor.is-clicking .px-top {
  transform: translate(0, -22px) rotate(45deg) scale(1.5);
  background-color: var(--acid);
}
.pixel-cursor.is-clicking .px-bottom {
  transform: translate(0, 22px) rotate(45deg) scale(1.5);
  background-color: var(--acid);
}
.pixel-cursor.is-clicking .px-left {
  transform: translate(-22px, 0) rotate(45deg) scale(1.5);
  background-color: var(--acid);
}
.pixel-cursor.is-clicking .px-right {
  transform: translate(22px, 0) rotate(45deg) scale(1.5);
  background-color: var(--acid);
}
.pixel-cursor.is-clicking .px-top-left {
  transform: translate(-16px, -16px) scale(1.8);
  opacity: 1;
}
.pixel-cursor.is-clicking .px-top-right {
  transform: translate(16px, -16px) scale(1.8);
  opacity: 1;
}
.pixel-cursor.is-clicking .px-bottom-left {
  transform: translate(-16px, 16px) scale(1.8);
  opacity: 1;
}
.pixel-cursor.is-clicking .px-bottom-right {
  transform: translate(16px, 16px) scale(1.8);
  opacity: 1;
}

@keyframes pxClickPulse {
  0% {
    transform: scale(1) rotate(0deg);
  }
  35% {
    transform: scale(1.4) rotate(45deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* ============================================================
   TECHNO-BRUTALIST EXTENSIONS & UTILITIES
   ============================================================ */

/* CAD Bracket Corner Ticks */
.hud-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.hud-tick {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--phosphor);
  user-select: none;
}
.hud-tick.tl { top: 6px; left: 14px; }
.hud-tick.tr { top: 6px; right: 18px; }
.hud-tick.bl { bottom: 6px; left: 18px; }
.hud-tick.br { bottom: 6px; right: 14px; }

/* 45-Degree Chamfer Cuts */
.chamfer-box {
  clip-path: polygon(
    0 0, 
    calc(100% - 14px) 0, 
    100% 14px, 
    100% 100%, 
    14px 100%, 
    0 calc(100% - 14px)
  ) !important;
  filter: drop-shadow(4px 4px 0px #000000);
  box-shadow: none !important;
}
.chamfer-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 2px;
  background: var(--phosphor);
}

.chamfer-btn {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
  position: relative;
  transition: all 0.15s steps(2);
}
.chamfer-btn:hover {
  background: var(--phosphor) !important;
  color: var(--void) !important;
  filter: drop-shadow(-3px 3px 0px var(--acid)) !important;
}

/* Stepped Hard Glitch Keyframes */
.glitch-step {
  position: relative;
  display: inline-block;
}
.glitch-step:hover {
  animation: glitch-anim 0.2s steps(2, start) infinite;
}
@keyframes glitch-anim {
  0% {
    text-shadow: 2px 0 0 var(--phosphor), -2px 0 0 var(--oxide);
    transform: translate(-1px, 1px);
  }
  50% {
    text-shadow: -2px 0 0 var(--acid), 2px 0 0 var(--phosphor);
    transform: translate(1px, -1px);
  }
  100% {
    text-shadow: 2px 0 0 var(--oxide), -2px 0 0 var(--phosphor);
    transform: translate(0, 0);
  }
}

/* Segmented LED Indicator Bars */
.led-bar {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  vertical-align: middle;
}
.led-segment {
  width: 6px;
  height: 10px;
  background: var(--chrome-dim);
  border: 1px solid var(--hair);
}
.led-segment.on {
  background: var(--phosphor);
  box-shadow: 0 0 4px var(--phosphor);
}
.led-segment.acid {
  background: var(--acid);
  box-shadow: 0 0 4px var(--acid);
}
.led-segment.oxide {
  background: var(--oxide);
  box-shadow: 0 0 4px var(--oxide);
}

/* Technical Raster Scanlines Overlay */
.techno-scanlines {
  position: relative;
  overflow: hidden;
}
.techno-scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.25) 0px,
    rgba(0, 0, 0, 0.25) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  opacity: 0.6;
  z-index: 1;
}

.t-dot {
  width: 6px;
  height: 6px;
  background: var(--phosphor);
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  animation: step-blink 1s steps(2, start) infinite;
}


