/**
 * styles.css
 * Combined delivery stylesheet for index.html.
 *
 * Sections:
 * 1. Core layout and reusable components.
 * 2. Mesh artwork, motion, and interaction enhancements.
 *
 * Keep mesh selectors even when an asset is temporarily absent; the artwork
 * loader and future page revisions rely on those stable class hooks.
 */

/* ==========================================================================
   1. Core layout and reusable components
   ========================================================================== */

:root {
  --ink: #0b0d11;
  --ink-2: #14171c;
  --ink-3: #1b1f26;
  --paper: #f3f4f1;
  --paper-dim: #c9ccc6;
  --muted: #868c97;
  --ai: #4fd8c6;
  --ai-dim: #2c4f4a;
  --stunt2: #f05a35;
  --stunt: #ff9d72;
  --stunt-dim: #5a2f22;
  --status: #e8b84b;
  --line: rgba(243, 244, 241, 0.10);
  --line-strong: rgba(243, 244, 241, 0.18);
  --dark: var(--ink);
  --max: 1180px;
  --radius: 14px;
  --shadow: none;
  --net-bg: #050706;
  --net-color-a: 79, 216, 198;
  --net-color-b: 255, 139, 97;
  --net-density: 9200;
  --net-max-nodes: 180;
  --net-link-distance: 145;
  --net-link-strength: 0.25;
  --net-node-speed: 0.62;
  --net-glow: 0.82;
  --net-hub-chance: 0.065;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--paper);
  background: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--ai); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ai);
  color: var(--ink);
}
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}
p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2 + 32px));
  min-height: 76px;
  color: var(--paper);
  background: rgba(11, 13, 17, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ai) 0%, var(--ai) 49%, var(--stunt) 51%, var(--stunt) 100%);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  border: 0;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.primary-nav a {
  color: var(--paper-dim);
  font-size: 14px;
  transition: color .15s;
}
.primary-nav a:hover { color: var(--paper); }
.nav-cta {
  color: var(--paper);
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.nav-cta:hover {
  border-color: var(--ai);
  background: rgba(79,216,198,0.08);
}
.menu-button {
  display: none;
  color: var(--paper);
  background: none;
  border: 0;
  padding: 8px;
}
.menu-button span:not(.sr-only) {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--paper);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 676px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(79,216,198,0.06) 0%, transparent 45%, transparent 55%, rgba(240,90,53,0.07) 100%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243,244,241,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,244,241,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: auto;
  overflow: hidden;
  pointer-events: none;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 42%;
  top: 5%;
  left: -6%;
  background: radial-gradient(ellipse, rgba(79, 216, 198, 0.12), transparent 70%);
  filter: blur(26px);
  z-index: 0;
}
.hero-art::after {
  content: "";
  position: absolute;
  width: 46%;
  height: 62%;
  top: 12%;
  right: -5%;
  background: radial-gradient(ellipse, rgba(240, 90, 53, 0.09), transparent 70%);
  filter: blur(28px);
  z-index: 0;
}
.hero-art img {
  position: absolute;
  max-width: none;
  user-select: none;
}
.hero-art-brain {
  top: -100px;
  left: 50%;
  width: clamp(320px, 30vw, 430px);
  height: auto;
  color: var(--ai);
  opacity: 0.76;
  filter: drop-shadow(0 0 12px rgba(79, 216, 198, 0.28));
  transform: translateX(-43%);
  z-index: 1;
}
.hero-art-man {
  top: 5px;
  right: -7vw;
  width: clamp(680px, 58vw, 880px);
  height: auto;
  opacity: 0.78;
  filter: drop-shadow(0 0 10px rgba(240, 90, 53, 0.16));
  z-index: 4;
}
.hero-intro {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 66px 0 15px;
}
.eyebrow, .card-label, .panel-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}
.section-ai .eyebrow,
.card-label { color: var(--ai); }
.section-heading-light .eyebrow,
.light-label { color: var(--stunt); }

h1 {
  max-width: 980px;
  margin-bottom: 32px;
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 700;
  line-height: 1.02;
}
h1 span { display: block; }
.hero-line-ai { color: var(--ai); }
.hero-line-stunts { color: var(--stunt); }
.hero-copy {
  max-width: 560px;
  color: var(--paper-dim);
  font-size: 19px;
  margin-bottom: 56px;
}
.hero-split {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto 86px;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--line-strong);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(4px);
}
.hero-panel {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: rgba(11, 13, 17, 0.93);
  transition: background .2s;
}
.hero-panel::before,
.hero-panel::after { content: none; }
.hero-panel:hover {
  background: rgba(20, 23, 28, 0.96);
  transform: none;
  filter: none;
}
.hero-panel-ai .panel-kicker,
.hero-panel-ai .panel-link { color: var(--ai); }
.hero-panel-stunts .panel-kicker,
.hero-panel-stunts .panel-link { color: var(--stunt); }
.panel-title {
  margin-top: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}
.panel-copy {
  max-width: 35ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}
.panel-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.section {
  padding: 120px 32px;
  border-bottom: 1px solid var(--line);
}
.section > * {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.section-heading h2,
.section-about h2,
.contact-section h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--paper);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}
.text-link {
  flex: 0 0 auto;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}
.text-link:hover { color: var(--ai); }
.text-link.light:hover { color: var(--stunt); }

.feature-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.card-label {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 10px;
  border: 1px solid var(--ai-dim);
  border-radius: 100px;
  background: rgba(79,216,198,0.10);
  font-size: 11px;
}
.light-label {
  border-color: var(--stunt-dim);
  background: rgba(240,90,53,0.10);
}
.feature-copy h3,
.showreel-copy h3,
.notable-work h3,
.faq h3,
.project-card h3 {
  margin-bottom: 16px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}
.feature-copy p:not(.card-label),
.showreel-copy p:not(.card-label),
.project-card p:not(.card-label),
.faq-list p {
  color: var(--paper-dim);
  font-size: 15.5px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13.5px;
  font-weight: 500;
  transition: opacity .15s, border-color .15s;
}
.button-primary {
  color: var(--ink);
  background: var(--ai);
}
.button-primary:hover { opacity: .85; }
.button-secondary {
  color: var(--paper);
  border: 1px solid var(--line-strong);
  background: transparent;
}
.button-secondary:hover { border-color: var(--paper-dim); }
.button-large {
  min-height: auto;
  padding: 0 0 6px;
  border-radius: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 28px);
}

.app-preview {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--ink-3);
}
.app-preview img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.wins-block { margin-top: 56px; }
.wins-heading { margin-bottom: 24px; }
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-grid span {
  padding: 9px 15px;
  border: 1px solid var(--ai-dim);
  border-radius: 100px;
  background: rgba(79,216,198,0.05);
  color: var(--ai);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.project-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.project-card > :not(.project-card-art) {
  position: relative;
  z-index: 1;
}
.project-card-art {
  position: absolute;
  z-index: 0;
  display: block;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.project-card-art--house {
  top: 0;
  right: 0;
  width: 60%;
  height: 78%;
  opacity: 0.30;
  object-position: top right;
  mix-blend-mode: screen;
}
.project-card-art--hermes {
  top: 2%;
  right: -16%;
  width: 108%;
  height: 96%;
  opacity: 0.26;
  object-position: center right;
}
.project-card-art--globe {
  right: -8%;
  bottom: -6%;
  width: 82%;
  height: auto;
  opacity: 0.30;
  mix-blend-mode: screen;
}
.project-card p:not(.card-label) { color: var(--muted); font-size: 14.5px; }
.project-card--property {
  border-color: rgba(79, 216, 198, 0.48);
}
.project-card--property h3 {
  max-width: none;
}
.project-property-copy {
  line-height: 1.7;
}
.project-highlight {
  display: block;
  margin-bottom: 22px;
  color: var(--ai);
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  line-height: 1.2;
}
.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 21px 0 0;
  border-top: 1px solid var(--line-strong);
}
.project-metrics div {
  min-width: 0;
}
.project-metrics dt {
  color: var(--ai);
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  line-height: 1;
}
.project-metrics dd {
  margin: 9px 0 0;
  color: var(--paper-dim);
  font-size: 11px;
  line-height: 1.4;
}
.project-actions {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.project-actions .button {
  min-width: 0;
  min-height: 50px;
  padding: 8px;
  font-size: 10.5px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.status {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 10px;
  border: 1px solid rgba(232,184,75,0.30);
  border-radius: 100px;
  background: rgba(232,184,75,0.08);
  color: var(--status);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.faq {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 60px;
  margin-top: 100px;
  scroll-margin-top: 96px;
}
.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 22px 0;
  list-style: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--ai);
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p {
  max-width: 70ch;
  padding: 0 30px 18px 0;
  color: var(--muted);
  font-size: 14.5px;
}
.faq-list p a.faq-login-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 4px;
  padding: 0 12px;
  border: 1px solid var(--ai-dim);
  border-radius: 8px;
  background: rgba(79,216,198,0.12);
  color: var(--ai) !important;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  box-shadow: inset 0 0 0 1px rgba(79,216,198,0.18);
}
.faq-list p a.faq-login-link:hover {
  border-color: var(--ai);
  background: var(--ai);
  color: var(--ink) !important;
}

.section-stunts {
  color: var(--paper);
  background: var(--ink);
}
.showreel-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}
.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.video-shell video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stunt-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 34px;
}
.stunt-stats div {
  display: block;
  padding: 0;
  border-top: 0;
}
.stunt-stats strong {
  display: block;
  color: var(--stunt);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.stunt-stats span {
  color: var(--paper-dim);
  font-size: 15.5px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  margin-top: 90px;
}
.gallery-card { margin: 0; }
.gallery-card-large { grid-row: 1 / span 2; }
.gallery-media {
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--ink-2);
}
.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card-large .gallery-media {
  height: 100%;
  min-height: 550px;
}
.gallery figcaption {
  padding: 12px 4px 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-style: italic;
}
.notable-work {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  margin-top: 100px;
}
.credit-list div {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.credit-list span {
  color: var(--stunt);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.credit-list strong {
  color: var(--paper-dim);
  font-weight: 400;
}

.section-about {
  background: var(--ink);
}
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(40px, 8vw, 120px);
}
.about-grid p {
  max-width: 680px;
  color: var(--paper-dim);
  font-size: 16px;
  margin-bottom: 18px;
}

.contact-section {
  padding: 130px 32px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}
.contact-section > * {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}
.contact-section .eyebrow { color: #6b7280; }
.contact-section h2 {
  color: var(--ink);
  margin-bottom: 36px;
}
.contact-section .button-primary:hover {
  color: var(--stunt);
  opacity: 1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px max(24px, calc((100vw - var(--max)) / 2 + 32px)) 56px;
  background: var(--paper);
  color: #6b7280;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}
.site-footer div {
  display: flex;
  gap: 24px;
}
.site-footer a { color: #333; }
.site-footer a:hover { color: var(--ai-dim); }

@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
  }
  .menu-button { display: block; }
  .primary-nav {
    position: fixed;
    inset: 86px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(11,13,17,.98);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 14px; }
  .hero-split,
  .feature-card,
  .showreel-grid,
  .faq,
  .notable-work,
  .about-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { align-items: stretch; }
  .app-preview { min-height: 360px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-card-large { grid-column: 1 / -1; grid-row: auto; }
  .gallery-card-large .gallery-media { min-height: 440px; }
  .hero-art-brain {
    top: -30px;
    left: 58%;
    width: clamp(320px, 50vw, 430px);
  }
  .hero-art-man {
    top: 110px;
    right: -25vw;
    width: clamp(610px, 86vw, 760px);
    opacity: 0.64;
  }
}

@media (max-width: 680px) {
  .brand-name { display: none; }
  .hero-intro,
  .hero-split {
    width: calc(100% - 40px);
  }
  .hero-intro {
    padding-top: 58px;
  }
  .hero {
    min-height: auto;
  }
  .hero-art-brain {
    top: -38px;
    left: 65%;
    width: 330px;
    opacity: 0.48;
  }
  .hero-art-man {
    top: 220px;
    right: -310px;
    width: 660px;
    opacity: 0.42;
  }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-split {
    grid-template-columns: 1fr;
    margin-bottom: 72px;
  }
  .hero-panel {
    min-height: 220px;
    padding: 28px 20px;
  }
  .section {
    padding: 80px 20px;
  }
  .section-heading {
    display: block;
  }
  .section-heading .text-link {
    display: inline-block;
    margin-top: 18px;
  }
  .feature-card {
    padding: 32px;
  }
  .app-preview,
  .app-preview img {
    min-height: 320px;
  }
  .project-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
  .project-metrics {
    gap: 12px;
  }
  .project-actions {
    grid-template-columns: 1fr 1fr;
  }
  .project-actions .button {
    padding-inline: 4px;
    font-size: 10px;
  }
  .project-card-art--house {
    top: 0;
    right: 0;
    width: 57%;
    height: 72%;
    opacity: 0.26;
  }
  .project-card-art--hermes {
    top: 4%;
    right: -10%;
    width: 84%;
    height: 92%;
    opacity: 0.22;
  }
  .project-card-art--globe {
    right: -6%;
    bottom: -12%;
    width: 72%;
    opacity: 0.26;
  }
  .gallery-card-large { grid-column: auto; }
  .gallery-media { min-height: 330px; }
  .credit-list div { grid-template-columns: 1fr; gap: 6px; }
  .contact-section { padding: 96px 20px; }
  .site-footer {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ==========================================================================
   2. Mesh artwork, motion, and interaction enhancements
   ========================================================================== */

/*
 * Motion and interaction layer for the five wireframe artworks on index-3.
 * Detailed line/node animations live inside each SVG so the large assets can
 * remain external, cached and lazily inserted.
 */

.index-3-page {
  --mesh-art-teal: #4fd8c6;
  --mesh-art-orange: #ff8b61;
  --mesh-art-glow: rgba(79, 216, 198, 0.32);
}

.index-3-page .hero::before {
  animation: mesh-grid-drift 20s linear infinite;
}

.index-3-page .hero-art > svg {
  position: absolute;
  max-width: none;
  user-select: none;
}

.index-3-page .hero-art-brain {
  animation: mesh-brain-float 7s ease-in-out 2.2s infinite alternate;
  will-change: transform;
}

.index-3-page .hero-art-man {
  animation:
    mesh-man-drop 1.7s cubic-bezier(0.16, 0.84, 0.24, 1) 0s 1 both,
    mesh-man-float 9s ease-in-out 1.7s infinite alternate;
  transform-origin: 68% 46%;
  will-change: transform;
}

@media (min-width: 901px) {
  .index-3-page .hero-art-man {
    right: max(-7vw, calc(50vw - 916.5px));
  }
}

.index-3-page .hero-line-ai {
  color: var(--ai);
  background-image: linear-gradient(
    105deg,
    var(--ai) 0%,
    var(--ai) 42%,
    #8fa3a3 47%,
    #f4fffd 50%,
    #a9c1be 53%,
    var(--ai) 58%,
    var(--ai) 100%
  );
  background-position: 120% 0;
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-metal-shimmer 9.5s cubic-bezier(0.25, 0.7, 0.25, 1) 0.25s infinite both;
  will-change: background-position;
}

.index-3-page .hero-line-stunts .hero-line-warm {
  display: inline;
  animation: hero-warm-recede 9.5s ease-out 1.75s infinite both;
  will-change: color, text-shadow;
}

.index-3-page .hero-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.index-3-page .hero-panel > * {
  position: relative;
  z-index: 1;
}

.index-3-page .hero-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.58;
  transition: opacity 0.35s ease, transform 0.7s ease;
}

.index-3-page .hero-panel-ai::before {
  top: -58%;
  right: -16%;
  background: radial-gradient(
    circle,
    rgba(79, 216, 198, 0.20) 0%,
    rgba(55, 157, 151, 0.09) 30%,
    rgba(40, 101, 104, 0.03) 54%,
    transparent 72%
  );
}

.index-3-page .hero-panel-stunts::before {
  right: -16%;
  bottom: -58%;
  background: radial-gradient(
    circle,
    rgba(255, 139, 97, 0.18) 0%,
    rgba(186, 91, 63, 0.08) 30%,
    rgba(108, 58, 45, 0.03) 54%,
    transparent 72%
  );
}

.index-3-page .hero-panel::after {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(79, 216, 198, 0.075) 49%,
    rgba(255, 157, 114, 0.07) 51%,
    transparent 58%
  );
  opacity: 0;
  transform: translateX(-55%);
}

.index-3-page .hero-panel:hover::before,
.index-3-page .hero-panel:focus-visible::before {
  opacity: 0.9;
  transform: scale(1.08);
}

.index-3-page .hero-panel:hover::after,
.index-3-page .hero-panel:focus-visible::after {
  opacity: 1;
  animation: mesh-card-scan 1.15s ease-out both;
}

.index-3-page .feature-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.index-3-page .feature-card > * {
  position: relative;
  z-index: 1;
}

.index-3-page .feature-card::before {
  content: "";
  position: absolute;
  top: -52%;
  left: -20%;
  z-index: 0;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(188, 22, 59, 0.21) 0%,
    rgba(143, 28, 52, 0.10) 30%,
    rgba(92, 31, 44, 0.035) 54%,
    transparent 73%
  );
  opacity: 0.62;
  transition: opacity 0.35s ease, transform 0.7s ease;
}

.index-3-page .feature-card::after {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(188, 22, 59, 0.10) 49%,
    rgba(255, 139, 97, 0.065) 51%,
    transparent 58%
  );
  opacity: 0;
  transform: translateX(-55%);
}

.index-3-page .feature-card:hover::before,
.index-3-page .feature-card:focus-within::before {
  opacity: 0.92;
  transform: scale(1.07);
}

.index-3-page .feature-card:hover::after,
.index-3-page .feature-card:focus-within::after {
  opacity: 1;
  animation: mesh-card-scan 1.15s ease-out both;
}

.index-3-page .panel-link {
  align-self: flex-start;
  align-items: center;
  margin-left: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease,
    transform 0.3s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.index-3-page .panel-link > span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.index-3-page .hero-panel-ai .panel-link {
  background: transparent;
}

.index-3-page .hero-panel-stunts .panel-link {
  background: transparent;
}

.index-3-page .hero-panel-ai:hover .panel-link,
.index-3-page .hero-panel-ai:focus-visible .panel-link {
  color: #a8fff4;
  text-shadow:
    0 0 8px rgba(79, 216, 198, 0.62),
    0 0 22px rgba(79, 216, 198, 0.34);
  transform: translateX(8px);
}

.index-3-page .hero-panel-stunts:hover .panel-link,
.index-3-page .hero-panel-stunts:focus-visible .panel-link {
  color: #ffc4aa;
  text-shadow:
    0 0 8px rgba(255, 157, 114, 0.62),
    0 0 22px rgba(240, 90, 53, 0.34);
  transform: translateX(8px);
}

.index-3-page .hero-panel:hover .panel-link > span,
.index-3-page .hero-panel:focus-visible .panel-link > span {
  transform: translateX(5px);
}

.index-3-page .button {
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transition:
    color 0.22s ease,
    opacity 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.25s ease,
    background-position 0.55s ease,
    transform 0.25s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.index-3-page .button-primary:not(.button-large) {
  background-color: var(--ai);
  background-image: linear-gradient(
    108deg,
    var(--ai) 0%,
    var(--ai) 39%,
    #c3fff8 49%,
    var(--ai) 59%,
    var(--ai) 100%
  );
  background-position: 100% 0;
  background-size: 240% 100%;
  box-shadow: 0 0 0 1px rgba(79, 216, 198, 0.18);
}

.index-3-page .button-primary:not(.button-large):hover,
.index-3-page .button-primary:not(.button-large):focus-visible {
  opacity: 1;
  background-position: 0 0;
  box-shadow:
    0 9px 24px rgba(79, 216, 198, 0.25),
    0 0 0 1px rgba(159, 255, 244, 0.42);
  transform: translateY(-3px);
}

.index-3-page .button-secondary {
  background-image: linear-gradient(
    108deg,
    transparent 0%,
    transparent 39%,
    rgba(79, 216, 198, 0.18) 50%,
    transparent 61%,
    transparent 100%
  );
  background-position: 100% 0;
  background-size: 240% 100%;
}

.index-3-page .button-secondary:hover,
.index-3-page .button-secondary:focus-visible {
  border-color: rgba(79, 216, 198, 0.72);
  background-position: 0 0;
  box-shadow:
    0 9px 24px rgba(0, 0, 0, 0.2),
    0 0 18px rgba(79, 216, 198, 0.13);
  transform: translateY(-3px);
}

.index-3-page .button:not(.button-large):active {
  transform: translateY(0) scale(0.98);
}

.index-3-page .button-large {
  overflow: visible;
  gap: 0.38em;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.3s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.index-3-page .button-large::after {
  content: "→";
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.index-3-page .contact-section .button-large:hover,
.index-3-page .contact-section .button-large:focus-visible {
  border-color: var(--stunt2);
  color: var(--stunt2);
  transform: translateX(8px);
}

.index-3-page .button-large:hover::after,
.index-3-page .button-large:focus-visible::after {
  transform: translateX(7px);
}

.index-3-page .text-link {
  display: inline-block;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    text-shadow 0.22s ease,
    transform 0.25s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.index-3-page .text-link:hover,
.index-3-page .text-link:focus-visible {
  border-color: var(--ai);
  color: var(--ai);
  text-shadow: 0 0 16px rgba(79, 216, 198, 0.38);
  transform: translateY(-2px);
}

.index-3-page .text-link.light:hover,
.index-3-page .text-link.light:focus-visible {
  border-color: var(--stunt);
  color: var(--stunt);
  text-shadow: 0 0 16px rgba(240, 90, 53, 0.38);
}

.index-3-page .faq-list p a.faq-login-link {
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.index-3-page .faq-list p a.faq-login-link:hover,
.index-3-page .faq-list p a.faq-login-link:focus-visible {
  box-shadow:
    0 7px 18px rgba(79, 216, 198, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.index-3-page .faq-list details {
  position: relative;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.index-3-page .faq-list details::before {
  content: none;
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--ai), rgba(79, 216, 198, 0.15));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.index-3-page .faq-list summary {
  transition:
    color 0.22s ease,
    text-shadow 0.22s ease,
    transform 0.25s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.index-3-page .faq-list summary::after {
  transition:
    color 0.22s ease,
    text-shadow 0.22s ease,
    transform 0.22s ease;
}

.index-3-page .faq-list details:hover,
.index-3-page .faq-list details:focus-within {
  border-color: var(--line);
  background: transparent;
}

.index-3-page .faq-list details:hover::before,
.index-3-page .faq-list details:focus-within::before {
  transform: scaleY(1);
}

.index-3-page .faq-list details:hover summary,
.index-3-page .faq-list details:focus-within summary {
  color: var(--paper);
  text-shadow: 0 0 14px rgba(79, 216, 198, 0.34);
  transform: translateX(5px);
}

.index-3-page .faq-list details:hover summary::after,
.index-3-page .faq-list details:focus-within summary::after {
  color: var(--ai);
  text-shadow: none;
  transform: none;
}

.index-3-page .faq-list details[open]:hover summary::after,
.index-3-page .faq-list details[open]:focus-within summary::after {
  transform: rotate(45deg);
}

.index-3-page .primary-nav a:not(.nav-cta) {
  position: relative;
  padding-block: 8px;
  transition: color 0.22s ease, text-shadow 0.22s ease;
}

.index-3-page .primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ai), var(--stunt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.index-3-page .primary-nav a:not(.nav-cta):hover,
.index-3-page .primary-nav a:not(.nav-cta):focus-visible {
  color: var(--paper);
  text-shadow: 0 0 14px rgba(79, 216, 198, 0.24);
}

.index-3-page .primary-nav a:not(.nav-cta):hover::after,
.index-3-page .primary-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

.index-3-page .nav-cta {
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.index-3-page .nav-cta:hover,
.index-3-page .nav-cta:focus-visible {
  border-color: var(--ai);
  background: rgba(79, 216, 198, 0.12);
  box-shadow: 0 0 20px rgba(79, 216, 198, 0.18);
  transform: translateY(-2px);
}

.index-3-page .brand-mark {
  transition: box-shadow 0.25s ease, transform 0.3s ease;
}

.index-3-page .brand:hover .brand-mark,
.index-3-page .brand:focus-visible .brand-mark {
  box-shadow:
    -5px -2px 18px rgba(79, 216, 198, 0.22),
    5px 2px 18px rgba(240, 90, 53, 0.2);
  transform: rotate(-4deg) scale(1.07);
}

.index-3-page .menu-button {
  border-radius: 8px;
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.index-3-page .menu-button:hover,
.index-3-page .menu-button:focus-visible {
  background: rgba(79, 216, 198, 0.1);
  box-shadow: 0 0 18px rgba(79, 216, 198, 0.16);
}

.index-3-page .site-footer a {
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition:
    color 0.22s ease,
    background-size 0.28s ease,
    transform 0.25s ease;
}

.index-3-page .site-footer a:hover,
.index-3-page .site-footer a:focus-visible {
  color: #267b71;
  background-size: 100% 1px;
  transform: translateY(-2px);
}

.index-3-page .project-card {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.index-3-page .project-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(79, 216, 198, 0.20) 0%,
    rgba(55, 157, 151, 0.10) 28%,
    rgba(40, 101, 104, 0.035) 52%,
    transparent 72%
  );
  opacity: 0.72;
  transition: opacity 0.35s ease, transform 0.7s ease;
}

.index-3-page .project-card:nth-child(1)::before {
  top: -30%;
  right: -19%;
}

.index-3-page .project-card:nth-child(2)::before {
  top: -6%;
  right: -26%;
  width: 106%;
}

.index-3-page .project-card:nth-child(3)::before {
  right: -24%;
  bottom: -36%;
  width: 105%;
}

.index-3-page .project-card::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(79, 216, 198, 0.08) 49%,
    rgba(255, 157, 114, 0.08) 51%,
    transparent 58%
  );
  opacity: 0;
  transform: translateX(-55%);
}

.index-3-page .project-card:hover {
  border-color: rgba(79, 216, 198, 0.32);
  background: #171b21;
}

.index-3-page .project-card:hover::before {
  opacity: 0.9;
  transform: scale(1.06);
}

.index-3-page .project-card:hover::after {
  opacity: 1;
  animation: mesh-card-scan 1.15s ease-out both;
}

.index-3-page .project-card-art {
  transition:
    opacity 0.35s ease,
    transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1),
    filter 0.35s ease;
  transform-origin: center;
}

.index-3-page .project-card-art--house,
.index-3-page .project-card-art--hermes,
.index-3-page .project-card-art--globe {
  filter: none;
}

.index-3-page .project-card-art--house {
  opacity: 0.64;
}

.index-3-page .project-card-art--hermes {
  opacity: 0.52;
}

.index-3-page .project-card-art--globe {
  opacity: 0.62;
}

.index-3-page .project-card:hover .project-card-art--house {
  opacity: 0.76;
  filter:
    drop-shadow(0 0 2px rgba(79, 216, 198, 0.6))
    drop-shadow(0 0 10px var(--mesh-art-glow));
  transform: translate(-3%, -1%) scale(1.05);
}

.index-3-page .project-card:hover .project-card-art--hermes {
  opacity: 0.64;
  filter:
    drop-shadow(0 0 2px rgba(79, 216, 198, 0.56))
    drop-shadow(0 0 10px rgba(79, 216, 198, 0.22));
  transform: translate(-2%, 0) scale(1.035);
}

.index-3-page .project-card:hover .project-card-art--globe {
  opacity: 0.74;
  filter:
    drop-shadow(0 0 2px rgba(79, 216, 198, 0.58))
    drop-shadow(0 0 11px rgba(79, 216, 198, 0.24));
  transform: translate(-2%, -1%) rotate(-1.5deg) scale(1.05);
}

.index-3-page .hero-art-brain #mesh-lines > .mesh-region {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: brain-region-draw 1.45s cubic-bezier(.2,.7,.2,1) forwards;
}

.index-3-page .hero-art-brain #region-crown-lines { animation-delay: .08s; }
.index-3-page .hero-art-brain #region-left-lines { animation-delay: .22s; }
.index-3-page .hero-art-brain #region-centre-lines { animation-delay: .36s; }
.index-3-page .hero-art-brain #region-right-lines { animation-delay: .50s; }
.index-3-page .hero-art-brain #region-lower-lines { animation-delay: .64s; }

.index-3-page .hero-art-brain #mesh-nodes > .mesh-region {
  opacity: 0;
  animation: brain-region-nodes .5s ease-out forwards;
}

.index-3-page .hero-art-brain #region-crown-nodes { animation-delay: .85s; }
.index-3-page .hero-art-brain #region-left-nodes { animation-delay: .98s; }
.index-3-page .hero-art-brain #region-centre-nodes { animation-delay: 1.11s; }
.index-3-page .hero-art-brain #region-right-nodes { animation-delay: 1.24s; }
.index-3-page .hero-art-brain #region-lower-nodes { animation-delay: 1.37s; }

.index-3-page .hero-art-brain .mesh-node:nth-child(5n) {
  transform-box: fill-box;
  transform-origin: center;
  animation: brain-node-pulse 4.8s ease-in-out 1.7s infinite alternate;
}

.index-3-page .hero-art-brain :is(
  #mesh-line-001,
  #mesh-line-046,
  #mesh-line-059,
  #mesh-line-094,
  #mesh-line-072
) {
  stroke: #c7fff7;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: .11 .89;
  animation: brain-neural-signal 2.8s linear 1.5s infinite;
}

.index-3-page .hero-art-brain #mesh-line-046 { animation-delay: 1.72s; }
.index-3-page .hero-art-brain #mesh-line-059 { animation-delay: 1.94s; }
.index-3-page .hero-art-brain #mesh-line-094 { animation-delay: 2.16s; }
.index-3-page .hero-art-brain #mesh-line-072 { animation-delay: 2.38s; }

.index-3-page .hero-art-brain :is(
  #mesh-node-001,
  #mesh-node-030,
  #mesh-node-039,
  #mesh-node-057,
  #mesh-node-045
) {
  fill: #d9fff9;
  transform-box: fill-box;
  transform-origin: center;
  animation: brain-neural-node 2.8s ease-in-out 1.5s infinite;
}

.index-3-page .hero-art-brain #mesh-node-030 { animation-delay: 1.72s; }
.index-3-page .hero-art-brain #mesh-node-039 { animation-delay: 1.94s; }
.index-3-page .hero-art-brain #mesh-node-057 { animation-delay: 2.16s; }
.index-3-page .hero-art-brain #mesh-node-045 { animation-delay: 2.38s; }

.index-3-page .project-card-art--house #house-lines > g {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: house-region-draw .9s cubic-bezier(.2,.7,.2,1) forwards;
}

.index-3-page .project-card-art--house #ground-rings { animation-delay: .05s; }
.index-3-page .project-card-art--house #walls { animation-delay: .22s; }
.index-3-page .project-card-art--house #roof { animation-delay: .45s; }
.index-3-page .project-card-art--house #gables { animation-delay: .62s; }
.index-3-page .project-card-art--house #openings { animation-delay: .82s; }

.index-3-page .project-card-art--house #house-faces > g {
  opacity: 0;
  animation: house-face-reveal .8s ease-out 1.05s forwards;
}

.index-3-page .project-card-art--house .house-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: house-ring-pulse 4.2s ease-in-out 1.7s infinite alternate;
}

.index-3-page .project-card-art--hermes #hermes-geometry > .body-part {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .12;
  animation: hermes-part-draw 1.25s cubic-bezier(.2,.7,.2,1) forwards;
}

.index-3-page .project-card-art--hermes #part-head { animation-delay: .08s; }
.index-3-page .project-card-art--hermes #part-torso { animation-delay: .36s; }
.index-3-page .project-card-art--hermes #part-left-arm { animation-delay: .64s; }
.index-3-page .project-card-art--hermes #part-right-arm { animation-delay: .82s; }
.index-3-page .project-card-art--hermes #part-lower-body { animation-delay: 1.05s; }

.index-3-page .project-card-art--globe #globe-lines {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: globe-line-reveal 2.3s cubic-bezier(.2,.7,.2,1) .12s forwards;
}

.index-3-page .project-card-art--globe #globe-junctions {
  opacity: 1;
}

.index-3-page .project-card-art--globe .globe-junction {
  opacity: 0;
}

.index-3-page .project-card-art--globe .globe-junction:nth-child(37n) {
  transform-box: fill-box;
  transform-origin: center;
  animation: globe-junction-pulse 4.6s ease-in-out 2s infinite alternate;
}

@keyframes mesh-grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 44px, 44px 0;
  }
}

@keyframes mesh-brain-float {
  from {
    transform: translateX(-43%) translateY(0) rotate(-0.35deg);
  }
  to {
    transform: translateX(-43%) translateY(-7px) rotate(0.35deg);
  }
}

@keyframes mesh-man-float {
  from {
    transform: translate3d(0, 0, 0) rotate(-0.35deg);
  }
  to {
    transform: translate3d(-5px, -8px, 0) rotate(0.45deg);
  }
}

@keyframes mesh-man-drop {
  from {
    transform: translate3d(18vw, -68vh, 0) rotate(90deg);
  }
  to {
    transform: translate3d(0, 0, 0) rotate(-0.35deg);
  }
}

@keyframes hero-metal-shimmer {
  0% { background-position: 120% 0; }
  68.421% { background-position: -20% 0; }
  100% { background-position: -20% 0; }
}

@keyframes hero-warm-recede {
  0% {
    color: var(--stunt);
    text-shadow:
      0 0 0 rgba(255, 139, 97, 0),
      0 0 0 rgba(240, 90, 53, 0);
  }
  6.6% {
    color: #ffc0a2;
    text-shadow:
      0 0 10px rgba(255, 139, 97, 0.72),
      0 0 28px rgba(240, 90, 53, 0.48);
  }
  17.368% {
    color: var(--stunt);
    text-shadow:
      0 0 0 rgba(255, 139, 97, 0),
      0 0 0 rgba(240, 90, 53, 0);
  }
  100% {
    color: var(--stunt);
    text-shadow:
      0 0 0 rgba(255, 139, 97, 0),
      0 0 0 rgba(240, 90, 53, 0);
  }
}

@keyframes mesh-card-scan {
  from {
    transform: translateX(-55%);
  }
  to {
    transform: translateX(55%);
  }
}

@keyframes brain-region-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes brain-region-nodes {
  to { opacity: 1; }
}

@keyframes brain-node-pulse {
  from { opacity: .6; transform: scale(.78); }
  to { opacity: 1; transform: scale(1.42); }
}

@keyframes brain-neural-signal {
  0% {
    opacity: .12;
    stroke-dashoffset: 1;
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: .72;
  }
  100% {
    opacity: .12;
    stroke-dashoffset: -1;
  }
}

@keyframes brain-neural-node {
  0%, 22%, 100% {
    opacity: .42;
    transform: scale(.8);
  }
  34%, 48% {
    opacity: 1;
    transform: scale(1.65);
  }
}

@keyframes house-region-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes house-face-reveal {
  to { opacity: 1; }
}

@keyframes house-ring-pulse {
  from { opacity: .05; transform: scale(.96); }
  to { opacity: .18; transform: scale(1.025); }
}

@keyframes hermes-part-draw {
  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes globe-line-reveal {
  to { stroke-dashoffset: 0; }
}

@keyframes globe-junction-pulse {
  from { opacity: .16; transform: scale(.7); }
  to { opacity: .72; transform: scale(1.55); }
}

@media (max-width: 680px) {
  .index-3-page .hero-art-brain {
    animation-duration: 10s;
  }

  .index-3-page .hero-art-man {
    animation-duration: 1.7s, 10s;
  }

  .index-3-page .project-card:hover .project-card-art {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-3-page .hero::before,
  .index-3-page .hero-art-brain,
  .index-3-page .hero-art-man,
  .index-3-page .hero-line-ai,
  .index-3-page .hero-line-stunts .hero-line-warm,
  .index-3-page .hero-panel:hover::after,
  .index-3-page .hero-panel:focus-visible::after,
  .index-3-page .feature-card:hover::after,
  .index-3-page .feature-card:focus-within::after,
  .index-3-page .project-card:hover::after {
    animation: none;
  }

  .index-3-page .hero-line-ai {
    background: none;
    color: var(--ai);
    -webkit-text-fill-color: currentColor;
  }

  .index-3-page .hero-art-brain :is(
    #mesh-line-001,
    #mesh-line-046,
    #mesh-line-059,
    #mesh-line-094,
    #mesh-line-072,
    #mesh-node-001,
    #mesh-node-030,
    #mesh-node-039,
    #mesh-node-057,
    #mesh-node-045
  ) {
    animation: none;
    opacity: 1;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transform: none;
  }

  .index-3-page .hero-art-brain #mesh-lines > .mesh-region,
  .index-3-page .hero-art-brain #mesh-nodes > .mesh-region,
  .index-3-page .hero-art-brain .mesh-node:nth-child(5n),
  .index-3-page .project-card-art--house #house-lines > g,
  .index-3-page .project-card-art--house #house-faces > g,
  .index-3-page .project-card-art--house .house-ring,
  .index-3-page .project-card-art--hermes #hermes-geometry > .body-part,
  .index-3-page .project-card-art--globe #globe-lines,
  .index-3-page .project-card-art--globe .globe-junction:nth-child(37n) {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
    transform: none;
  }

  .index-3-page .project-card-art--globe .globe-junction:nth-child(37n) {
    opacity: .28;
  }

  .index-3-page .project-card,
  .index-3-page .project-card::before,
  .index-3-page .project-card-art,
  .index-3-page .hero-panel,
  .index-3-page .hero-panel::before,
  .index-3-page .feature-card,
  .index-3-page .feature-card::before,
  .index-3-page .panel-link,
  .index-3-page .panel-link > span,
  .index-3-page .button,
  .index-3-page .button-large::after,
  .index-3-page .text-link,
  .index-3-page .faq-login-link,
  .index-3-page .faq-list details,
  .index-3-page .faq-list details::before,
  .index-3-page .faq-list summary,
  .index-3-page .faq-list summary::after,
  .index-3-page .primary-nav a,
  .index-3-page .primary-nav a::after,
  .index-3-page .nav-cta,
  .index-3-page .brand-mark,
  .index-3-page .menu-button,
  .index-3-page .site-footer a {
    transition: none;
  }

  .index-3-page .hero-panel:hover::before,
  .index-3-page .hero-panel:focus-visible::before,
  .index-3-page .feature-card:hover::before,
  .index-3-page .feature-card:focus-within::before,
  .index-3-page .project-card:hover::before {
    transform: none;
  }

  .index-3-page .hero-panel:hover .panel-link,
  .index-3-page .hero-panel:focus-visible .panel-link,
  .index-3-page .hero-panel:hover .panel-link > span,
  .index-3-page .hero-panel:focus-visible .panel-link > span,
  .index-3-page .button:hover,
  .index-3-page .button:focus-visible,
  .index-3-page .button-primary:not(.button-large):hover,
  .index-3-page .button-primary:not(.button-large):focus-visible,
  .index-3-page .button-secondary:hover,
  .index-3-page .button-secondary:focus-visible,
  .index-3-page .contact-section .button-large:hover,
  .index-3-page .contact-section .button-large:focus-visible,
  .index-3-page .text-link:hover,
  .index-3-page .text-link:focus-visible,
  .index-3-page .faq-login-link:hover,
  .index-3-page .faq-login-link:focus-visible,
  .index-3-page .faq-list p a.faq-login-link:hover,
  .index-3-page .faq-list p a.faq-login-link:focus-visible,
  .index-3-page .faq-list details:hover::before,
  .index-3-page .faq-list details:focus-within::before,
  .index-3-page .faq-list details:hover summary,
  .index-3-page .faq-list details:focus-within summary,
  .index-3-page .faq-list details:hover summary::after,
  .index-3-page .faq-list details:focus-within summary::after,
  .index-3-page .nav-cta:hover,
  .index-3-page .nav-cta:focus-visible,
  .index-3-page .brand:hover .brand-mark,
  .index-3-page .brand:focus-visible .brand-mark,
  .index-3-page .site-footer a:hover,
  .index-3-page .site-footer a:focus-visible {
    transform: none;
  }

  .index-3-page .faq-list details[open]:hover summary::after,
  .index-3-page .faq-list details[open]:focus-within summary::after {
    transform: rotate(45deg);
  }
}

/* ==========================================================================
   3. Full-page node network
   ========================================================================== */

html {
  background: var(--net-bg);
}

body.node-network-page {
  min-height: 100%;
  background: var(--net-bg);
}

.node-network-page canvas#net {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.node-network-page > main,
.node-network-page > .site-footer {
  z-index: 1;
}

.node-network-page > .site-header {
  z-index: 20;
}

.node-network-page > main,
.node-network-page > .site-footer {
  position: relative;
}

.node-network-page .site-header {
  background: rgba(5, 7, 6, 0.76);
  border-bottom-color: rgba(243, 244, 241, 0.09);
  backdrop-filter: blur(16px) saturate(120%);
}

.node-network-page .hero,
.node-network-page .section,
.node-network-page .section-stunts,
.node-network-page .section-about,
.node-network-page .contact-section,
.node-network-page .site-footer {
  background: transparent;
  border-color: transparent;
}

.node-network-page .hero::before,
.node-network-page .hero-art::before,
.node-network-page .hero-art::after {
  content: none;
}

.node-network-page .hero {
  overflow: hidden;
}

.node-network-page .hero-art-brain {
  opacity: 0.64;
}

.node-network-page .hero-art-man {
  opacity: 0.67;
}

.node-network-page .hero-intro h1 {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.78);
}

.node-network-page .hero-split {
  gap: 1px;
  background: rgba(243, 244, 241, 0.16);
  border-color: rgba(243, 244, 241, 0.18);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px) saturate(125%);
}

.node-network-page .hero-panel {
  background: rgba(7, 10, 10, 0.73);
}

.node-network-page .hero-panel:hover,
.node-network-page .hero-panel:focus-visible {
  background: rgba(13, 18, 19, 0.84);
}

.node-network-page .feature-card,
.node-network-page .project-card,
.node-network-page .video-shell,
.node-network-page .gallery-media {
  background: rgba(8, 12, 13, 0.72);
  border-color: rgba(243, 244, 241, 0.16);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(13px) saturate(120%);
}

.node-network-page .feature-card {
  background: rgba(8, 12, 13, 0.78);
}

.node-network-page .app-preview {
  background: rgba(6, 10, 11, 0.82);
  border-color: rgba(243, 244, 241, 0.18);
}

.node-network-page .pill-grid span,
.node-network-page .card-label,
.node-network-page .status,
.node-network-page .faq-login-link {
  backdrop-filter: blur(9px);
}

.node-network-page .project-card:hover {
  background: rgba(15, 23, 24, 0.86);
  border-color: rgba(79, 216, 198, 0.38);
}

.node-network-page .section-heading,
.node-network-page .showreel-copy,
.node-network-page .faq,
.node-network-page .wins-block,
.node-network-page .notable-work,
.node-network-page .about-grid,
.node-network-page .contact-section {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.72);
}

.node-network-page .contact-section {
  color: var(--paper);
}

.node-network-page .contact-section .eyebrow {
  color: var(--muted);
}

.node-network-page .contact-section .button-large {
  color: var(--paper);
}

.node-network-page .site-footer {
  color: var(--paper-dim);
}

.node-network-page .site-footer a {
  color: var(--paper-dim);
}

.node-network-page .site-footer a:hover,
.node-network-page .site-footer a:focus-visible {
  color: var(--ai);
}

@media (max-width: 900px) {
  .node-network-page .primary-nav {
    background: rgba(5, 7, 6, 0.94);
    backdrop-filter: blur(18px);
  }
}

@media (max-width: 680px) {
  :root {
    --net-density: 7600;
    --net-max-nodes: 110;
    --net-link-distance: 125;
    --net-link-strength: 0.22;
  }

  .node-network-page .hero-art-brain {
    opacity: 0.38;
  }

  .node-network-page .hero-art-man {
    opacity: 0.34;
  }

  .node-network-page .feature-card,
  .node-network-page .project-card {
    background: rgba(8, 12, 13, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --net-node-speed: 0;
  }
}

/* ==========================================================================
   4. Flow and alignment refinements
   ========================================================================== */

.node-network-page .hero {
  min-height: 0;
}

.node-network-page .hero-line-ai {
  color: var(--ai);
  background: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
  will-change: auto;
}

.node-network-page .section-heading {
  margin-bottom: 40px;
}

.node-network-page .faq {
  margin-top: 72px;
}

.node-network-page .wins-block {
  margin-top: 44px;
}

.node-network-page .project-grid {
  margin-top: 40px;
}

.node-network-page .gallery,
.node-network-page .notable-work {
  margin-top: 72px;
}

.node-network-page .contact-section {
  display: grid;
  grid-template-columns: minmax(0, var(--max));
  align-content: center;
  justify-content: center;
  gap: 28px;
  padding-block: 96px;
}

.node-network-page .contact-section > * {
  width: auto;
  margin-inline: 0;
}

.node-network-page .contact-section .eyebrow {
  margin-bottom: 0;
}

.node-network-page .contact-section .button-large {
  justify-self: start;
}

@media (min-width: 681px) {
  .node-network-page .hero-split {
    margin-bottom: 56px;
  }

  .node-network-page .section {
    padding-block: 96px;
  }
}

@media (max-width: 680px) {
  .node-network-page .hero-split {
    margin-bottom: 52px;
  }

  .node-network-page .section {
    padding-block: 64px;
  }

  .node-network-page .section-heading {
    margin-bottom: 36px;
  }

  .node-network-page .faq {
    margin-top: 64px;
  }

  .node-network-page .wins-block {
    margin-top: 40px;
  }

  .node-network-page .project-grid {
    margin-top: 36px;
  }

  .node-network-page .gallery,
  .node-network-page .notable-work {
    margin-top: 60px;
  }

  .node-network-page .contact-section {
    gap: 24px;
    padding-block: 64px;
  }

  .node-network-page .site-footer {
    padding-top: 24px;
    padding-bottom: 40px;
  }
}
