/* ============================================================
   DESIGN TOKENS
   All colour, type, and spacing variables live here.
   Change a value once — it propagates everywhere.
============================================================ */

:root {
  /* backgrounds */
  --bg:           #060A12;
  --bg-elev:      #0B1220;
  --nav-bg:       rgba(6, 10, 18, 0.92);
  --menu-bg:      rgba(6, 10, 18, 0.97);

  /* borders & surfaces */
  --line:         rgba(148, 163, 184, 0.14);
  --line-strong:  rgba(148, 163, 184, 0.28);
  --surface:      rgba(148, 163, 184, 0.045);
  --grid-line:    rgba(148, 163, 184, 0.05);

  /* text */
  --text:         #E8EDF7;
  --muted:        #8A94A8;

  /* brand accents */
  --accent:       #7C5CFF;   /* cyber purple */
  --accent-2:     #38E1FF;   /* electric cyan */
  --glow:         rgba(124, 92, 255, 0.35);

  /* misc */
  --radius:       18px;
  --nav-h:        72px;

  /* typefaces */
  --font-body:    "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  color-scheme: dark;
}

/* light theme — toggled by JS via [data-theme] on <html> */
:root[data-theme="light"] {
  --bg:           #F4F6FB;
  --bg-elev:      #FFFFFF;
  --nav-bg:       rgba(244, 246, 251, 0.94);
  --menu-bg:      rgba(255, 255, 255, 0.97);

  --line:         rgba(15, 23, 42, 0.10);
  --line-strong:  rgba(15, 23, 42, 0.18);
  --surface:      rgba(15, 23, 42, 0.035);
  --grid-line:    rgba(15, 23, 42, 0.05);

  --text:         #0F1522;
  --muted:        #5B6577;

  --accent:       #6A3FFF;
  --accent-2:     #0596A6;
  --glow:         rgba(106, 63, 255, 0.22);

  color-scheme: light;
}


/* ============================================================
   RESET & BASE
============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* smooth scrolling is handled by Lenis (see main script) — native
   scroll-behavior is intentionally left out to avoid fighting it */
html.lenis {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* faint grid texture that fades toward the bottom of the viewport */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}


/* ============================================================
   LAYOUT UTILITIES
============================================================ */

/* centred content column */
.wrap {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

section {
  padding: 110px 0;
}



/* ============================================================
   TYPOGRAPHY HELPERS
============================================================ */

/* small labelling text above section headings */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.eyebrow::after {
  content: "";
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* purple → cyan gradient applied to inline text */
.gradient-text {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ============================================================
   NAV
============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.logo-text span {
  color: var(--accent-2);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

/* monospaced section numbers inside nav links */
.nav-links a .idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-2);
  margin-right: 0.35rem;
}

/* bordered resume button in the nav */
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--glow);
}

/* light/dark theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent-2);
  box-shadow: 0 0 18px rgba(56, 225, 255, 0.18);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.theme-toggle .icon-moon { display: none; }

:root[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* hamburger — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

/* animate hamburger → ✕ when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }


/* ============================================================
   HERO
============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
}

.hero-inner {
  text-align: center;
}

/* availability pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  background: var(--surface);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero .role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  letter-spacing: -0.01em;
  margin-top: 0.9rem;
}

.hero .value-prop {
  color: var(--muted);
  max-width: 620px;
  margin: 1.6rem auto 2.6rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   BUTTONS
============================================================ */

.btn {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.btn:active {
  transform: translateY(1px);
}

/* filled purple gradient */
.btn-primary {
  background: linear-gradient(92deg, var(--accent), #5A8BFF);
  color: #fff;
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 0 26px rgba(124, 92, 255, 0.5);
  transform: translateY(-2px);
}

/* transparent with a border */
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent-2);
  box-shadow: 0 0 22px rgba(56, 225, 255, 0.22);
  transform: translateY(-2px);
}


/* ============================================================
   FEATURED PROJECT — Local Email Agent
============================================================ */

.project-feature--email {
  grid-template-columns: 1fr;
  margin-bottom: 1.25rem;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFB454;
  background: rgba(255, 180, 84, 0.1);
  border: 1px solid rgba(255, 180, 84, 0.3);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-badge--complete {
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
}


/* ============================================================
   FEATURED PROJECT — BLOX
============================================================ */

.project-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* switch to a two-column layout only once the demo card is actually loaded */
.project-feature:has(#blox-demo-card:not([hidden])) {
  grid-template-columns: 1fr 1fr;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* radial spotlight that follows the mouse inside each card */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 0%),
    rgba(124, 92, 255, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(124, 92, 255, 0.14);
}

.card:hover::before {
  opacity: 1;
}

.card-kind {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* tech stack pill list */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-2);
  background: rgba(56, 225, 255, 0.07);
  border: 1px solid rgba(56, 225, 255, 0.22);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* smaller buttons inside cards */
.card-actions .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.78rem;
}


/* ---- BLOX playable demo ---- */

.project-demo {
  align-items: center;
  justify-content: center;
}

.project-demo[hidden] {
  display: none;
}

.blox-hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.blox-hud {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #46afd8;
  border: 3px solid #fff;
  border-radius: 10px;
  padding: 0.6rem 1rem;
}

.blox-score-label,
.blox-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: #0B1220;
  letter-spacing: 0.05em;
}

.blox-stage {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1 / 2;
  border: 3px solid var(--text);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

#blox-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

.blox-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}

.blox-overlay[hidden] {
  display: none;
}

.blox-overlay-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.blox-overlay-score {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.8);
}

.blox-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.blox-touch-controls {
  display: grid;
  grid-template-columns: repeat(4, 48px);
  gap: 0.6rem;
}

.blox-quit-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.blox-quit-btn:hover,
.blox-quit-btn:focus-visible {
  border-color: #FF5C5C;
  color: #FF5C5C;
  background: rgba(255, 92, 92, 0.1);
}

.blox-touch-controls button {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.blox-touch-controls button:active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

@media (pointer: coarse) {
  .blox-touch-controls {
    display: none;
  }
}


/* ============================================================
   FEATURED PROJECT — AutoEntry100 (Smart Garage)
============================================================ */

.project-feature--garage {
  margin-top: 1.25rem;
}

/* always two columns once the demo is visible, same rule as BLOX */
.project-feature--garage:has(#garage-demo-card:not([hidden])) {
  grid-template-columns: 1fr 1fr;
}

.garage-logo {
  display: inline-flex;
  vertical-align: -6px;
  width: 1.3em;
  height: 1.3em;
  margin-right: 0.4rem;
  color: var(--accent-2);
}

.garage-logo svg {
  width: 100%;
  height: 100%;
}

.garage-flow-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-2);
  letter-spacing: 0.01em;
}

.garage-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.garage-demo {
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.garage-stage {
  width: 100%;
  max-width: 400px;
}

.garage-door {
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
  transform-origin: 286px 176px;
}

.garage-demo.is-open .garage-door {
  transform: translateY(-78px);
}

.garage-led {
  transition: fill 0.3s ease;
}

.garage-demo.is-granted .garage-led {
  fill: #35D07F;
  filter: drop-shadow(0 0 4px rgba(53, 208, 127, 0.8));
}

.garage-camera {
  transform-origin: 306px 87px;
}

.garage-demo.is-scanning .garage-camera {
  animation: garage-camera-pulse 0.5s ease-in-out infinite;
}

@keyframes garage-camera-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

.garage-scan-beam {
  transition: opacity 0.3s ease;
}

.garage-demo.is-scanning .garage-scan-beam {
  opacity: 0.14;
  animation: garage-beam-flicker 0.6s ease-in-out infinite;
}

@keyframes garage-beam-flicker {
  0%, 100% { opacity: 0.1; }
  50%      { opacity: 0.22; }
}

.garage-car {
  transition: transform 2.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.garage-demo.is-arriving .garage-car {
  transform: translate(210px, 0);
}

.garage-demo.is-entering .garage-car {
  transform: translate(300px, 0);
  transition: transform 1.4s ease-in;
}

.garage-lcd {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #0B1220;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-mono);
}

.garage-lcd-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.garage-lcd-text {
  font-size: 0.85rem;
  color: #6CF2A0;
  text-shadow: 0 0 6px rgba(108, 242, 160, 0.5);
}

.garage-plate-text {
  font-family: var(--font-mono);
  fill: var(--accent-2);
}

.garage-caption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  min-height: 1.2em;
}

/* stack info above the game on narrower screens */
@media (max-width: 900px) {
  .project-feature,
  .project-feature--garage,
  .project-feature--email,
  .project-feature:has(#blox-demo-card:not([hidden])),
  .project-feature--garage:has(#garage-demo-card:not([hidden])) {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   ABOUT
============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.about-copy strong {
  color: var(--text);
  font-weight: 600;
}

.profile-card {
  padding: 0;
  align-self: stretch;
}

.profile-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.principle {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  padding: 1.1rem 1.3rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.principle:hover {
  border-left-color: var(--accent-2);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.12);
}

.principle h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.principle p {
  color: var(--muted);
  font-size: 0.88rem;
}


/* ============================================================
   CONTACT
============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-side p {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 420px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(124, 92, 255, 0.16);
}

.contact-links svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--accent-2);
}

/* contact form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  min-height: 1.2em;
}


/* ============================================================
   FOOTER
============================================================ */

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}


/* ============================================================
   SCROLL-REVEAL ANIMATION
   Elements with .reveal fade up into view as they enter
   the viewport. JavaScript adds .visible via IntersectionObserver.
============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ============================================================
   ACCESSIBILITY
============================================================ */

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   RESPONSIVE
============================================================ */

/* collapse two-column layouts at tablet width */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* stack everything on mobile */
@media (max-width: 760px) {
  section {
    padding: 80px 0;
  }

  /* all bento cards go full width */
  .card-a,
  .card-b,
  .card-c {
    grid-column: span 12;
  }

  /* show hamburger, slide nav links in from the top */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--menu-bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: 0.75rem;
    display: inline-block;
  }
}
