:root {
  --ink: #08090b;
  --panel: #101217;
  --panel-2: #171a21;
  --cream: #f2e9df;
  --muted: rgba(242, 233, 223, 0.66);
  --faint: rgba(242, 233, 223, 0.12);
  --line: rgba(242, 233, 223, 0.17);
  --green: #83f0b3;
  --blue: #9bc8ff;
  --rose: #ffc4c8;
  --gold: #d6b985;
  --cyan: #56f2ff;
  --violet: #c7a2ff;
  --orange: #ff9f6e;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: var(--ink);
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(131, 240, 179, 0.13), transparent 32rem),
    radial-gradient(circle at 85% 8%, rgba(155, 200, 255, 0.14), transparent 28rem),
    linear-gradient(180deg, #08090b 0%, #0d0f14 48%, #08090b 100%);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.74' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  /* Has to outrank every floating overlay (contact panel, voice widget, etc.)
     so the custom cursor always reads above the UI it's hovering. */
  z-index: 2147483647;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  transition: filter 180ms ease, opacity 220ms ease;
  opacity: 1;
}
.cursor.is-hover {
  filter: drop-shadow(0 0 8px var(--cyan));
}
.cursor.is-touch-hidden { opacity: 0; }
body.cursor-active,
body.cursor-active * { cursor: none !important; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.82), rgba(8, 9, 11, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand, .nav { display: flex; align-items: center; gap: 1rem; }
.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-logo {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(131, 240, 179, 0.28);
}
.nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav a:hover { color: var(--cream); }

.section {
  position: relative;
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1rem, 4vw, 3rem);
}
.hero {
  min-height: clamp(620px, 78dvh, 800px);
  display: grid;
  align-items: center;
  padding-top: 5.4rem;
  padding-bottom: clamp(1.4rem, 3vw, 2.6rem);
}
.hero-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 420px);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
  justify-items: center;
}
.hero-copy {
  width: min(760px, 100%);
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-copy .status,
.hero-actions {
  justify-content: center;
}

.status, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.status span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(131, 240, 179, 0.8);
}

h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(3.6rem, 8.7vw, 8rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
  font-weight: 800;
  text-wrap: balance;
}
.role {
  margin-bottom: 2rem;
  color: var(--rose);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-style: italic;
  line-height: 0.9;
}
blockquote {
  max-width: 58ch;
  margin: 0 auto 1.1rem;
  color: var(--cream);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.45;
}
.hero-lead, .section-lead {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.hero-lead, .section-lead { margin-left: auto; margin-right: auto; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.2rem;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  touch-action: manipulation;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 45%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 420ms ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 2.8rem rgba(242, 233, 223, 0.18);
}
.btn:hover::after { left: 120%; }
.btn.primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.system-card {
  width: min(470px, 100%);
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  box-shadow: none;
  transform: none;
}
.dashboard-visual {
  display: block;
  padding: 0;
}
.control-tags {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 1.8rem);
  margin: 0 0 1.1rem;
  padding: 0;
  justify-content: center;
  background: none;
  border: none;
}
.control-tags span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: none;
  background: none;
  clip-path: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-shadow: 0 0 18px currentColor;
}
.control-tags span::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
  animation: tag-pulse 2.2s ease-in-out infinite;
}
.control-tags span:first-child { color: var(--green); }
.control-tags span:nth-child(2) { color: var(--rose); }
.control-tags span:nth-child(2)::before { animation-delay: -0.7s; }
.control-tags span:nth-child(3) { color: var(--blue); }
.control-tags span:nth-child(3)::before { animation-delay: -1.4s; }
.brain-map {
  position: relative;
  min-height: 27rem;
  width: 100%;
  display: block;
  padding: 0;
  background: none;
  border: none;
  overflow: visible;
}
.brain-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 27rem;
  pointer-events: auto;
}
/* The 3D brain is rendered entirely in canvas — no SVG anatomy. */

.capabilities {
  width: 100%;
  margin: 0;
  padding-top: clamp(0.75rem, 2vw, 1.4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.capability-stage {
  display: flex;
  gap: 0.8rem;
  width: max-content;
  padding: 0.5rem 0;
  animation: capsule-scroll 36s linear infinite;
  will-change: transform;
}
.capabilities:hover .capability-stage {
  animation-play-state: paused;
}
.capability-card {
  --cap-color: var(--green);
  min-height: 3.65rem;
  min-width: clamp(10.5rem, 16vw, 14rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--cap-color) 22%, transparent), transparent 68%),
    rgba(255, 255, 255, 0.055);
  overflow: hidden;
  transform: translateZ(0);
  animation: capsule-breathe 4.8s ease-in-out infinite;
  border-radius: 999px;
  clip-path: polygon(0.9rem 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0.9rem 100%, 0 50%);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.capability-card:hover {
  transform: translate3d(0, -14px, 44px) scale(1.08) rotateX(7deg);
  border-color: color-mix(in srgb, var(--cap-color) 72%, transparent);
  background: color-mix(in srgb, var(--cap-color) 14%, rgba(255, 255, 255, 0.04));
  box-shadow:
    0 2.2rem 4.5rem rgba(0, 0, 0, 0.56),
    0 0 44px color-mix(in srgb, var(--cap-color) 24%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.capability-card:nth-child(2n) { animation-delay: -1.2s; }
.capability-card:nth-child(3n) { animation-delay: -2.4s; }
.capability-card:nth-child(4n) { animation-delay: -3.2s; }
.capability-card:nth-child(13n + 1) { --cap-color: var(--cyan); }
.capability-card:nth-child(13n + 2) { --cap-color: var(--rose); }
.capability-card:nth-child(13n + 3) { --cap-color: var(--green); }
.capability-card:nth-child(13n + 4) { --cap-color: var(--gold); }
.capability-card:nth-child(13n + 5) { --cap-color: var(--violet); }
.capability-card:nth-child(13n + 6) { --cap-color: var(--orange); }
.capability-card:nth-child(13n + 7) { --cap-color: var(--blue); }
.capability-card:nth-child(13n + 8) { --cap-color: #ff7fb4; }
.capability-card:nth-child(13n + 9) { --cap-color: #72ff9d; }
.capability-card:nth-child(13n + 10) { --cap-color: #ffd166; }
.capability-card:nth-child(13n + 11) { --cap-color: #a7f3ff; }
.capability-card:nth-child(13n + 12) { --cap-color: #d6a6ff; }
.capability-card:nth-child(13n + 13) { --cap-color: #f4f1bb; }
.capability-card svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: var(--cap-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--cap-color) 44%, transparent));
  animation: icon-breathe 2.6s ease-in-out infinite;
}
.capability-card span {
  color: var(--cream);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.9;
}

.about, .team, .services, .projects, .notes, .footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.about h2, .section-title, .footer h2 {
  font-size: clamp(2.4rem, 5.4vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-wrap: balance;
}
.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.proof-grid, .service-grid, .note-grid, .team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.proof-grid { grid-template-columns: repeat(5, 1fr); }
.proof-grid,
.service-grid,
.note-grid,
.team-grid,
.project {
  perspective: 1200px;
}
.proof, .service, .note, .team-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 1.35rem;
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.proof:hover,
.service:hover,
.note:hover,
.team-card:hover,
.proof.is-card-hover,
.service.is-card-hover,
.note.is-card-hover,
.team-card.is-card-hover,
.project:hover {
  transform: translate3d(0, -8px, 22px) scale(1.015) rotateX(2deg) rotateY(-1.5deg);
  border-color: rgba(131, 240, 179, 0.48);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1.2rem 3rem rgba(0, 0, 0, 0.44),
    0 0 26px rgba(131, 240, 179, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.proof b {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}
.proof span, .service p, .note p, .team-card p {
  color: var(--muted);
  line-height: 1.65;
}
.service-grid, .note-grid { grid-template-columns: repeat(2, 1fr); }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.team-grid { grid-template-columns: repeat(2, 1fr); }
.service > span:not(.service-cta), .note time, .team-card span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.service h3, .note h3, .team-card h3 {
  margin: 1.6rem 0 0.8rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
}
.team-card h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.service {
  display: block;
  min-height: 100%;
}
.service-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  margin-top: 0.8rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 196, 200, 0.28);
  color: var(--rose);
  font-weight: 800;
  clip-path: polygon(0 0, calc(100% - 0.48rem) 0, 100% 0.48rem, 100% 100%, 0.48rem 100%, 0 calc(100% - 0.48rem));
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.service:hover .service-cta,
.service.is-card-hover .service-cta {
  background: rgba(255, 196, 200, 0.12);
  border-color: rgba(255, 196, 200, 0.54);
}

.project {
  margin-top: 1rem;
  padding: clamp(1.3rem, 4vw, 2.3rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(131, 240, 179, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.035);
  clip-path: polygon(0 0, calc(100% - 1.4rem) 0, 100% 1.4rem, 100% 100%, 1.4rem 100%, 0 calc(100% - 1.4rem));
  transform-style: preserve-3d;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.project-quote {
  color: var(--rose);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-style: italic;
}
.project h3 {
  margin: 0.8rem 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: -0.06em;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.3rem;
}
.tags span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.38rem 0.62rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}
.project-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.project-body h4 {
  color: var(--green);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.project-body p {
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-inner {
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(155, 200, 255, 0.15), transparent 26rem),
    rgba(255, 255, 255, 0.035);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.footer-inner .section-kicker,
.footer-inner h2,
.footer-inner > p:not(.section-kicker) {
  grid-column: 1;
}

/* Small inline "Follow us on • LinkedIn / X / Facebook" row that sits
   above the contact form in the right-hand column. Bright cream icons
   (no dark pill background — that was washing them out on the lifted
   slate footer card), cyan on hover. Spans both columns on mobile via
   the existing footer-inner stack rule. */
.socials {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.4rem 0;
  align-self: start;
}
.socials__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.78;
  font-weight: 600;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--cream);
  transition: color 180ms ease, transform 180ms ease, filter 180ms ease;
}
.socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}
/* Bump up on touch / small viewports so they remain a comfortable
   tap-target — 16 px is fine to click with a mouse but tight for a
   finger. */
@media (max-width: 640px), (pointer: coarse) {
  .socials a { width: 26px; height: 26px; }
  .socials svg { width: 22px; height: 22px; }
}
.socials a:hover,
.socials a:focus-visible {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--cyan) 65%, transparent));
  transform: translateY(-1px);
  outline: none;
}
/* Push the form down a touch so it doesn't crowd the icons above. */
.socials + .contact-form {
  grid-row: 2 / span 5;
  margin-top: 0.25rem;
}
.footer-inner h2 {
  font-size: clamp(2.25rem, 4.5vw, 4.7rem);
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0;
  grid-column: 2;
  grid-row: 1 / span 5;
}
.contact-form label {
  display: grid;
  gap: 0.45rem;
}
.contact-form span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--cream);
  font: inherit;
  padding: 0.85rem 0.9rem;
  clip-path: polygon(0 0, calc(100% - 0.7rem) 0, 100% 0.7rem, 100% 100%, 0.7rem 100%, 0 calc(100% - 0.7rem));
}
.contact-form textarea {
  resize: vertical;
  min-height: 7rem;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.form-wide {
  grid-column: 1 / -1;
}
.form-status {
  margin: 0.4rem 0 0;
  min-height: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}
.form-status[data-state="sending"] { color: var(--cream); opacity: 0.78; }
.form-status[data-state="ok"]      { color: var(--green); }
.form-status[data-state="err"]     { color: var(--rose); }
.footer p:not(.section-kicker) {
  max-width: 65ch;
  color: var(--muted);
  line-height: 1.75;
}
.footer-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.proof.reveal.is-visible:hover,
.service.reveal.is-visible:hover,
.note.reveal.is-visible:hover,
.team-card.reveal.is-visible:hover,
.proof.reveal.is-visible.is-card-hover,
.service.reveal.is-visible.is-card-hover,
.note.reveal.is-visible.is-card-hover,
.team-card.reveal.is-visible.is-card-hover,
.project.reveal.is-visible.is-card-hover,
.proof.reveal.is-card-hover,
.service.reveal.is-card-hover,
.note.reveal.is-card-hover,
.team-card.reveal.is-card-hover,
.project.reveal.is-card-hover,
.project.reveal.is-visible:hover {
  transform: translate3d(0, -8px, 22px) scale(1.015) rotateX(2deg) rotateY(-1.5deg);
}

@keyframes capsule-scroll {
  to { transform: translateX(calc(-50% - 0.4rem)); }
}

@keyframes capsule-breathe {
  0%, 100% { opacity: 0.86; }
  50% { opacity: 1; }
}

@keyframes icon-breathe {
  0%, 100% { transform: scale(0.94) rotate(0deg); opacity: 0.78; }
  50% { transform: scale(1.08) rotate(2deg); opacity: 1; }
}

@keyframes tag-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

@media (max-width: 1120px) {
  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    background: rgba(8, 9, 11, 0.86);
  }
  .brand {
    justify-content: center;
  }
  .nav {
    display: flex !important;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.9rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    flex: 0 0 auto;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .hero-grid, .about-grid, .project-body { grid-template-columns: 1fr; }
  .proof-grid, .service-grid, .note-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-grid {
    justify-items: center;
    text-align: center;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner .section-kicker,
  .footer-inner h2,
  .footer-inner > p:not(.section-kicker),
  .footer-inner .socials,
  .contact-form,
  .socials + .contact-form {
    grid-column: 1;
    grid-row: auto;
  }
  .system-card { order: initial; }
  .hero {
    min-height: auto;
    padding-top: 2rem;
    text-align: center;
  }
  .hero-copy,
  .system-card {
    justify-self: center;
  }
  h1 { font-size: clamp(3.6rem, 17vw, 7rem); }
  .role { margin-bottom: 1.2rem; }
  .footer-line { flex-direction: column; }
}

@media (max-width: 640px) {
  .section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
  .brand {
    width: 100%;
    justify-content: center;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-lead,
  blockquote {
    font-size: 1rem;
    line-height: 1.62;
  }
  .hero-actions {
    width: 100%;
  }
  .btn {
    width: 100%;
    min-height: 3rem;
  }
  .brain-map {
    min-height: 22rem;
  }
  .brain-map svg { min-height: 16rem; }
  /* Match the canvas min-height to its container on mobile — without
     this override the canvas keeps the desktop 27rem floor, overflows
     the parent layout and gets clipped (or pushed off-screen on small
     viewports). */
  .brain-canvas { min-height: 22rem; }
  .window-bar {
    padding: 0.75rem;
  }
  .window-bar p {
    max-width: 48%;
  }
  .capability-card {
    min-width: 10rem;
    min-height: 3.4rem;
  }
  .proof,
  .service,
  .note,
  .project {
    padding: 1.05rem;
  }
  .project-quote {
    font-size: 1.35rem;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .capability-card,
  .capability-card svg {
    animation: none;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
}
