/* ─── Swell & Stack v2 — dark, glass, one system ─── */
:root {
  /* light / daylight theme: --black = page bg, --white = foreground ink */
  --black: #f2f8fa;
  --ink: #eaf3f6;
  --white: #0a2430;
  --dim: #52707c;
  --accent: #0093c4;
  --accent-deep: #00b4d8;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-line: rgba(10, 36, 48, 0.10);
  --glass-glow: rgba(0, 147, 196, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--black); }

/* ─── grain + vignette atmosphere ─── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(242, 248, 250, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-line);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: 0.28em; font-size: 13px;
  color: var(--white); text-decoration: none;
}
.nav-links { display: flex; gap: clamp(16px, 2.5vw, 34px); align-items: center; }
.nav-links a {
  color: var(--dim); text-decoration: none; font-size: 14px;
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.22);
  padding: 10px 22px; border-radius: 100px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease) !important;
}
.nav-cta:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--glass-glow);
  transform: translateY(-1px);
}
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ─── hero: fixed full-bleed ocean; the page sheet scrolls in over it ─── */
.hero {
  position: fixed;
  inset: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  z-index: 0;
}
.hero-spacer { height: 100svh; position: relative; }
#wave {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-inner, .scroll-cue { z-index: 3; }
.no-webgl #wave { display: none; }
.no-webgl .hero {
  background: linear-gradient(to bottom, #6db5e8 0%, #bfe2ef 55%, #7ecfdd 100%);
}

/* content scrolls inside a masked layer: it dissolves out right at the
   height where the hero title sits — never rides up under the nav */
html, body { height: 100%; overflow: hidden; }
.scroller {
  position: fixed; inset: 0;
  overflow-y: auto;
  z-index: 5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 12%, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 12%, #000 30%);
}
.sheet {
  position: relative;
}

/* solid content panels — max 60% of the screen, ocean owns the rest */
.sheet section .wrap {
  max-width: min(60vw, 920px);
  margin: 0 auto;
  background: #f3f9fb;
  border: 1px solid rgba(10, 36, 48, 0.06);
  border-radius: 30px;
  padding: clamp(36px, 4.5vw, 64px);
  box-shadow: 0 30px 90px rgba(4, 34, 47, 0.28);
}
@media (max-width: 900px) {
  .sheet section .wrap { max-width: 100%; }
}
.hero-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(20px, 4vw, 56px) clamp(56px, 10vh, 120px);
  max-width: 1600px; margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase;
  color: #005f79;
  margin-bottom: 26px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 8.6vw, 148px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 12ch;
  text-wrap: balance;
  color: #04222f;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.hero-headline .accent {
  background: linear-gradient(92deg, #8ef0ff 0%, #22d3ee 40%, #00b4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 14px rgba(2, 62, 82, 0.35));
}
.hero-sub {
  margin-top: 30px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 14px rgba(3, 30, 41, 0.45);
  font-size: clamp(16px, 1.35vw, 19px);
}
.hero-sub strong { color: #aef3ff; font-weight: 700; }
.hero-actions { margin-top: 40px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none;
  padding: 16px 34px; border-radius: 100px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.btn-primary {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(3, 30, 41, 0.4);
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 8px 28px rgba(3, 30, 41, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.34);
  border-color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 14px 44px rgba(3, 30, 41, 0.25);
}
.btn-ghost {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(3, 30, 41, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 8px 28px rgba(10, 36, 48, 0.08);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 14px 44px rgba(10, 36, 48, 0.12);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute; z-index: 2;
  bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  overflow: hidden;
}
.scroll-cue::after {
  content: '';
  position: absolute; inset: 0;
  background: #f2f8fa;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); } 60%, 100% { transform: translateY(110%); } }

/* hero load choreography */
.hero-eyebrow, .hero-headline, .hero-sub, .hero-actions {
  opacity: 0; transform: translateY(28px);
  animation: rise 1.1s var(--ease) forwards;
}
.hero-headline { animation-delay: 0.15s; }
.hero-sub      { animation-delay: 0.3s; }
.hero-actions  { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ─── sections ─── */
section { position: relative; padding: clamp(90px, 14vh, 170px) clamp(20px, 4vw, 56px); }
.wrap { max-width: 1240px; margin: 0 auto; }

.label {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 30px;
}
.label::before { content: ''; width: 34px; height: 1px; background: var(--accent); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
  color: var(--white);
}

/* the math — asymmetric split */
.math-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  margin-top: 64px;
  align-items: stretch;
}
@media (max-width: 860px) { .math-grid { grid-template-columns: 1fr; } }
.card {
  border: 0;
  border-top: 2px solid rgba(10, 36, 48, 0.16);
  background: none;
  border-radius: 0;
  padding: 28px 0 0;
}
.card.accent-card {
  border-top-color: var(--accent);
}
.card h3 {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 500;
  color: var(--dim);
  margin-bottom: 20px;
}
.card.accent-card h3 { color: var(--accent); }
.big-figure {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 26px;
  color: var(--white);
}
.strike { color: #93a5ad; text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(244,63,94,0.6); }
.big-figure .accent { color: var(--accent); }
.big-figure small { font-size: 0.32em; font-weight: 400; color: var(--dim); letter-spacing: 0; }
.card ul { list-style: none; display: grid; gap: 14px; max-width: 40ch; }
.card li { color: #3a5560; padding-left: 26px; position: relative; }
.card li::before {
  content: '—'; position: absolute; left: 0; color: #9fb0b8;
}
.card.accent-card li { color: #16404f; }
.card.accent-card li::before { content: '—'; color: var(--accent); }

/* proof strip */
.proof-strip {
  margin-top: 70px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
@media (max-width: 860px) { .proof-strip { grid-template-columns: 1fr; } }
.proof {
  border-top: 1px solid var(--glass-line);
  padding-top: 26px;
}
.proof b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 54px); font-weight: 700; letter-spacing: -0.02em;
  color: var(--white);
}
.proof span { color: var(--dim); font-size: 15px; display: block; max-width: 30ch; }
.proof { border-top-color: rgba(10, 36, 48, 0.16); }

/* contact */
.contact-inner { text-align: left; }
/* buttons inside solid panels: solid ink, not glass */
.sheet .btn-primary {
  color: #f2f8fa;
  text-shadow: none;
  background: var(--white);
  border: 1px solid var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 10px 30px rgba(4, 34, 47, 0.22);
}
.sheet .btn-primary:hover {
  background: #0d3446;
  border-color: #0d3446;
  box-shadow: 0 16px 44px rgba(4, 34, 47, 0.3);
}
.contact-inner h2 { max-width: 16ch; }
.contact-inner p { color: #3a5560; margin-top: 22px; max-width: 44ch; }

/* footer */
footer {
  padding: 30px clamp(20px, 4vw, 56px);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255,255,255,0.85); font-size: 13px;
  text-shadow: 0 1px 8px rgba(3, 30, 41, 0.55);
}
footer a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: #7deeff; }

/* ─── one reveal grammar for everything below the hero ─── */
[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ─── custom cursor (fine pointers only) ─── */
@media (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 200;
    pointer-events: none; border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor-dot { width: 6px; height: 6px; background: var(--accent); }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(0, 180, 216, 0.5);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease);
  }
  .cursor-ring.hot { width: 56px; height: 56px; border-color: var(--accent); }
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-headline, .hero-sub, .hero-actions { animation: none; opacity: 1; transform: none; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .scroll-cue::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ─── FULL FRONT-PAGE SECTIONS (ported 2026-07-04) ─── */
.section-sub { color: #3a5560; max-width: 58ch; margin-top: 18px; }
.text-link {
  display: inline-block; margin-top: 34px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(0,147,196,0.35);
  padding-bottom: 3px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.text-link:hover { color: #016d92; border-color: #016d92; }
.hidden { display: none !important; }

/* pain */
.pain-problem {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 38px); font-weight: 600; line-height: 1.25;
  letter-spacing: -0.02em; color: var(--white); max-width: 24ch;
}
.pain-accent { color: var(--accent); }
.pain-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 46px 0; }
@media (max-width: 860px) { .pain-callouts { grid-template-columns: 1fr; } }
.pain-callout { border-top: 2px solid rgba(10,36,48,0.16); padding-top: 20px; }
.pain-callout strong { font-family: var(--font-display); font-size: 18px; color: var(--white); display: block; margin-bottom: 8px; }
.pain-callout p { color: #3a5560; font-size: 15px; }
.pain-pivot { font-size: clamp(17px, 1.4vw, 20px); color: #16404f; max-width: 52ch; font-weight: 500; }

/* process */
.process-steps { display: grid; gap: 40px; margin-top: 26px; }
.process-step { display: grid; grid-template-columns: 90px 1fr; gap: 26px; align-items: start; }
@media (max-width: 640px) { .process-step { grid-template-columns: 1fr; gap: 8px; } }
.step-num {
  font-family: var(--font-display); font-size: clamp(40px, 4vw, 60px); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent); line-height: 1;
}
.step-body h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.step-body p { color: #3a5560; max-width: 58ch; }

/* departments */
.depts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 960px) { .depts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .depts-grid { grid-template-columns: 1fr; } }
.dept-card {
  border: 1px solid rgba(10,36,48,0.1);
  border-radius: 18px;
  padding: 26px;
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.dept-card:hover { transform: translateY(-4px); border-color: rgba(0,147,196,0.45); box-shadow: 0 14px 40px rgba(4,34,47,0.12); }
.dept-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.2em; }
.dept-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--white); margin: 10px 0 8px; }
.dept-card p { color: #3a5560; font-size: 14.5px; line-height: 1.55; }
.depts-foot { margin-top: 34px; color: #3a5560; font-size: 15px; }

/* marketing */
.marketing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 960px) { .marketing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .marketing-grid { grid-template-columns: 1fr; } }
.mkt-item { border-top: 2px solid rgba(10,36,48,0.14); padding-top: 18px; }
.mkt-item strong { font-family: var(--font-display); font-size: 17px; color: var(--white); display: block; margin-bottom: 6px; }
.mkt-item p { color: #3a5560; font-size: 14.5px; line-height: 1.55; }

/* industry stats */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 960px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  display: block; text-decoration: none;
  border: 1px solid rgba(10,36,48,0.1); border-radius: 18px; padding: 24px;
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(0,147,196,0.45); box-shadow: 0 14px 40px rgba(4,34,47,0.12); }
.stat-card .stat-num { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--accent); display: block; }
.stat-industry { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); display: block; margin: 6px 0 10px; }
.stat-card p { color: #3a5560; font-size: 14px; line-height: 1.55; }

/* work section: text in a standard panel, the orbit floats free over the ocean */
.proof-strip-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
@media (max-width: 860px) { .proof-strip-2 { grid-template-columns: 1fr; } }
.orbit-stage {
  max-width: min(92vw, 1400px);
  margin: clamp(30px, 5vh, 60px) auto 0;
}
.neural-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.nn-label {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(3, 30, 41, 0.8), 0 2px 10px rgba(3, 30, 41, 0.6) !important;
  opacity: 1 !important;
}
.neural-hint {
  color: rgba(255,255,255,0.85) !important;
  text-shadow: 0 1px 3px rgba(3, 30, 41, 0.7) !important;
}
.wrap-dark .label { color: #7deeff; }
.wrap-dark .label::before { background: #7deeff; }
.wrap-dark h2, .wrap-dark .work-heading { color: #f4f7f8; }
.wrap-dark .proof { border-top-color: rgba(255,255,255,0.18); }
.wrap-dark .proof b { color: #f4f7f8; }
.wrap-dark .proof span { color: #9aa7ad; }
.wrap-wide { max-width: min(80vw, 1240px) !important; }
@media (max-width: 900px) { .wrap-wide { max-width: 100% !important; } }
.work-heading { font-size: clamp(26px, 2.8vw, 40px); max-width: 30ch; }

/* about */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 56px; }
@media (max-width: 860px) { .about-stats { grid-template-columns: 1fr; } }
.about-stat { border-top: 2px solid rgba(10,36,48,0.16); padding-top: 18px; }
.about-stat .stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 6px; }
.about-stat span:last-child { color: #3a5560; font-size: 14.5px; line-height: 1.5; }
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo img { width: 100%; height: auto; border-radius: 20px; display: block; }
.photo-note { font-family: var(--font-mono); font-size: 12px; color: var(--dim); margin-top: 12px; letter-spacing: 0.04em; }
.about-text > p:not(.label) { color: #3a5560; margin-top: 16px; max-width: 58ch; }

/* faq */
.faq-list { display: grid; gap: 34px; margin-top: 44px; }
.faq-item { display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start; border-top: 1px solid rgba(10,36,48,0.12); padding-top: 26px; }
@media (max-width: 640px) { .faq-item { grid-template-columns: 1fr; gap: 8px; } }
.faq-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.15em; padding-top: 4px; }
.faq-item h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.faq-item p { color: #3a5560; max-width: 68ch; }

/* contact form */
#contact-form { margin-top: 40px; max-width: 620px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px;
  font-family: var(--font-body); font-size: 15px; color: var(--white);
  background: #fff;
  border: 1px solid rgba(10,36,48,0.16); border-radius: 12px;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,147,196,0.15);
}
.submit-btn { cursor: pointer; font-size: 15px; }
.form-note { margin-top: 26px; font-size: 16px; color: #0c7a48; font-weight: 500; }
.form-note-err { color: #b4232f; }
.form-note a { color: var(--accent); }

/* footer links */
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; }
/* ─── NEURAL NETWORK WORK SECTION ────────────────────────────────────────── */

.neural-wrap {
  position: relative;
  width: 100%;
  height: clamp(520px, 74vh, 840px);
  margin-top: 44px;
  background: radial-gradient(ellipse 70% 55% at 48% 50%, rgba(60,120,220,0.04) 0%, transparent 70%);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.04);
}

.neural-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(160, 175, 210, 0.30);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

#nn-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#nn-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Node ── */
.nn-node {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

@keyframes nn-idle-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.35; }
  50%       { transform: scale(1.6); opacity: 0;    }
}

.nn-ring {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(120, 170, 255, 0.22);
  animation: nn-idle-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.nn-node--hover .nn-ring {
  animation: none;
  transform: scale(2.2);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s;
}

.nn-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0,0,0,0.2);
  background: rgba(18, 22, 38, 0.65);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s;
}

.nn-node--hover .nn-icon-wrap {
  transform: scale(1.15);
  box-shadow: 0 6px 24px rgba(99, 179, 237, 0.35), 0 2px 8px rgba(0,0,0,0.5);
  border-color: rgba(147, 197, 253, 0.30);
}

.nn-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 7px;
}

.nn-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(180, 195, 230, 0.42);
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.2s;
}

.nn-node--hover .nn-label {
  color: rgba(200, 215, 250, 0.88);
}

/* ── Overlay ── */
.nn-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 18, 0.75);
  backdrop-filter: blur(6px);
  clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.nn-ov--hidden {
  clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)) !important;
  pointer-events: none;
  transition: none !important;
}

.nn-ov--open {
  clip-path: circle(160% at var(--ox, 50%) var(--oy, 50%));
  pointer-events: auto;
}

.nn-ov--closing {
  clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)) !important;
  transition: clip-path 0.36s cubic-bezier(0.55, 0, 1, 0.45) !important;
}

.nn-card {
  position: relative;
  background: rgba(14, 18, 32, 0.94);
  border: 1px solid rgba(110, 160, 255, 0.18);
  border-radius: 22px;
  padding: 32px 28px 28px;
  max-width: 420px;
  width: calc(100% - 48px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  animation: nn-card-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.12s;
}

@keyframes nn-card-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.nn-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  color: rgba(180, 190, 220, 0.6);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

.nn-close:hover { background: rgba(255,255,255,0.14); color: white; }

.nn-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.nn-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.nn-card-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 7px;
}

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

.nn-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(var(--nc-r, 99), var(--nc-g, 130), var(--nc-b, 237), 0.12);
  color: rgba(147, 197, 253, 0.80);
  border: 1px solid rgba(99, 150, 237, 0.18);
}

.nn-card-desc {
  font-size: 14px;
  line-height: 1.68;
  color: rgba(190, 205, 235, 0.72);
  margin: 0 0 20px;
}

.nn-card-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--nc, #60A5FA);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(99, 160, 237, 0.09);
  border: 1px solid rgba(99, 160, 237, 0.18);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.nn-card-link:hover {
  background: rgba(99, 160, 237, 0.18);
  border-color: rgba(99, 160, 237, 0.35);
  transform: translateY(-1px);
}

.nn-card-link--soon {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

/* ── Mobile fallback ── */
@media (max-width: 640px) {
  .neural-wrap {
    height: auto;
    overflow: visible;
    background: none;
    border: none;
  }
  #nn-canvas { display: none; }
  .nn-overlay { display: none; }
  #nn-nodes {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 12px;
    padding: 24px 0;
  }
  .nn-node {
    position: static;
    transform: none;
  }
  .nn-ring { display: none; }
  .nn-label { font-size: 8px; }
}

