/* ===================================================
   NATIONAL TECH HUB — MAIN STYLESHEET
   Design: The Architectural Monolith
   =================================================== */

/* --- Custom Properties --- */
:root {
  --navy:        #000615;
  --navy-mid:    #0B1F3A;
  --navy-light:  #0e2748;
  --gold:        #caa747;
  --gold-dark:   #755b00;
  --gold-mid:    #b8963e;
  --white:       #ffffff;
  --surface:     #f8f9fa;
  --surface-alt: #f3f4f5;
  --surface-dim: #d9dadb;
  --text-body:   #374151;
  --text-muted:  #6b7280;
  --text-light:  rgba(255,255,255,0.7);
  --text-faint:  rgba(255,255,255,0.4);
  --border:      rgba(255,255,255,0.08);
  --border-gold: rgba(202,167,71,0.25);

  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:       72px;

  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
  --shadow-gold: 0 4px 24px rgba(202,167,71,0.2);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* --- Layout Containers --- */
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Typography Scale --- */
.label-gold {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.label-gold-dark {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  display: block;
}

.section-h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section-h2-light {
  color: var(--white);
}
.section-body {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
}
.section-body-light {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-mid);
  box-shadow: var(--shadow-gold);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-primary-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-primary-outline:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn-tertiary {
  background: transparent;
  color: var(--gold-dark);
  padding-left: 0;
  padding-right: 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
}
.btn-tertiary:hover {
  border-bottom-color: var(--gold-dark);
}
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
}
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: auto;
  background-color: #000615;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 32px;
  width: auto;
}
.nav-brand-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  margin: 0 auto;
}
.nav-links li a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  text-transform: uppercase;
}
.nav-links li a:hover { color: var(--gold); }
.nav-actions { flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   FLASH MESSAGES
   ============================================= */
.flash-container {
  position: fixed;
  top: calc(var(--nav-h) + 1rem);
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
}
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
}
.flash-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.flash-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.flash-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: inherit;
  opacity: 0.6;
  flex-shrink: 0;
}
.flash-close:hover { opacity: 1; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 70% 50%, #0B1F3A 0%, #000615 60%);
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-h1-gold { color: var(--gold); }
.hero-body {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-footnote {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
#nth-blob-canvas {
  background: transparent;
}

/* =============================================
   APPROACH SECTION
   ============================================= */
.approach-section {
  background: var(--surface);
  padding: 6rem 0;
}
.approach-statement {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--navy);
  max-width: 780px;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  font-style: normal;
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section {
  background: var(--surface-alt);
  padding: 6rem 0;
}
.services-section .section-h2 { margin-bottom: 3rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-icon {
  font-size: 2rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  display: block;
}
.service-card-underline {
  height: 2px;
  width: 2rem;
  background: var(--gold);
  margin-bottom: 1.25rem;
  transition: width 0.35s ease;
  border-radius: 1px;
}
.service-card:hover .service-card-underline {
  width: 100%;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   BENTO GRID SECTION
   ============================================= */
.bento-section {
  background: var(--surface);
  padding: 6rem 0;
}
.bento-section .section-h2 { margin-bottom: 2.5rem; }
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.bento-main {
  background: var(--navy-mid);
  border-radius: var(--r-md);
  padding: 3rem;
  color: var(--white);
}
.bento-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.bento-main h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.bento-main p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.bento-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bento-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 2rem;
  flex: 1;
  box-shadow: var(--shadow-sm);
}
.bento-card-border {
  border-left: 3px solid var(--gold);
}
.bento-card .material-symbols-outlined {
  color: var(--gold-dark);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.bento-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.bento-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   PRECISION SECTION
   ============================================= */
.precision-section {
  background: var(--navy);
  padding: 6rem 0;
}
.precision-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.precision-text .section-h2 { color: var(--white); }
.precision-text .btn { margin-top: 2rem; }

/* =============================================
   INDUSTRIES SECTION
   ============================================= */
.industries-section {
  background: var(--surface-dim);
  padding: 6rem 0;
}
.industries-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}
.industries-header .section-h2 { margin-bottom: 0; }
.industries-subtitle p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.industry-item {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid rgba(0,0,0,0.08);
  padding-left: 1.5rem;
}
.industry-item:first-child { padding-left: 0; }
.industry-item:last-child { border-right: none; }
.industry-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(11,31,58,0.12);
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.industry-item:hover .industry-num {
  color: var(--gold);
}
.industry-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.industry-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =============================================
   PROCESS SECTION
   ============================================= */
.process-section {
  background: var(--surface);
  padding: 6rem 0;
}
.process-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: center;
}
.process-visual {
  position: relative;
  width: 280px;
  height: 280px;
}
.process-navy-sq {
  position: absolute;
  top: 0; left: 0;
  width: 220px;
  height: 220px;
  background: var(--navy-mid);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  border-radius: var(--r-sm);
  z-index: 2;
}
.process-word {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}
.process-word-2 { opacity: 0.4; }
.process-word-3 { opacity: 0.15; }
.process-gold-sq {
  position: absolute;
  bottom: 0; right: 0;
  width: 100px;
  height: 100px;
  background: var(--gold);
  border-radius: var(--r-sm);
  z-index: 1;
}
.process-h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.process-step-icon {
  color: var(--gold);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   RESULTS SECTION
   ============================================= */
.results-section {
  background: var(--navy);
  padding: 6rem 0;
}
.results-section .section-h2 { margin-bottom: 4rem; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.result-item {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.result-num {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.result-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.result-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* =============================================
   TESSERACT SECTION
   ============================================= */
.tesseract-section {
  background: var(--surface-alt);
  padding: 6rem 0;
}
.tesseract-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.tesseract-text .btn { margin-top: 2rem; }

/* =============================================
   VISION SECTION
   ============================================= */
.vision-section {
  background: linear-gradient(to bottom, var(--surface-alt), var(--surface));
  padding: 6rem 0;
}
.vision-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.vision-blockquote {
  border-left: 3px solid var(--gold);
  padding: 2rem 2rem 2rem 2.5rem;
  background: var(--white);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--shadow-md);
}
.vision-blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.vision-blockquote footer {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

/* =============================================
   CUBE SECTION
   ============================================= */
.cube-section {
  background: var(--navy);
  padding: 5rem 0;
}
.cube-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cube-tagline {
  max-width: 520px;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 2rem;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--navy);
  padding: 5rem 0 8rem;
}
.cta-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-lg);
  padding: 5rem 4rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.cta-sub {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 5rem 0 0;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.footer-logo img {
  height: 28px;
  width: auto;
}
.footer-brand-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-faint);
  line-height: 1.6;
}
.footer-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-faint);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-address p {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.footer-remote {
  font-style: italic;
}
.footer-email {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 0.75rem;
  transition: color 0.2s;
}
.footer-email:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  color: var(--text-faint);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--white); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
}
.page-hero-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.page-hero-sub {
  font-size: 1rem;
  color: var(--text-light);
}
.contact-section {
  background: var(--surface);
  padding: 5rem 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-form-col h2,
.contact-info-col h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.required { color: var(--gold-dark); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(202,167,71,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.contact-info-item .material-symbols-outlined {
  color: var(--gold);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.contact-info-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.contact-info-item p,
.contact-info-item a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.contact-info-item a:hover { color: var(--gold); }
.contact-note {
  background: var(--surface-alt);
  border-radius: var(--r-sm);
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1rem;
}
.contact-note strong { color: var(--navy); }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-section {
  background: var(--surface);
  padding: 5rem 0;
}
.legal-inner { max-width: 760px; }
.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.legal-content ul li {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}
.legal-content a {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* =============================================
   ERROR PAGES
   ============================================= */
.error-section {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}
.error-inner {
  text-align: center;
}
.error-inner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 1rem 0;
}
.error-inner p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* =============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 2rem;
  }
  .hero-visual {
    width: 100%;
    height: 250px;
    margin: 0 auto;
    order: -1;
  }
  .hero-visual canvas {
    width: 100% !important;
    height: 250px !important;
  }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .precision-inner { grid-template-columns: 1fr; gap: 3rem; }
  .precision-inner #nth-waves-wrap { margin: 0 auto; }
  .industries-header { grid-template-columns: 1fr; gap: 1rem; }
  .process-inner { grid-template-columns: 1fr; gap: 3rem; }
  .process-visual { display: none; }
  .tesseract-inner { grid-template-columns: 1fr; gap: 3rem; }
  .tesseract-inner #nth-tesseract-wrap { margin: 0 auto; }
  .vision-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .results-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .result-item { text-align: left; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
  .result-num { min-width: 5rem; }
}

/* =============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.open li a {
    font-size: 1rem;
  }

  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .industry-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .industry-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-card { padding: 3rem 1.5rem; }
  .result-item { flex-direction: column; text-align: center; }
  .hero-inner { padding: 3rem 1.5rem; }
  #nth-tesseract-wrap { transform: scale(0.8); }
  #nth-cube-wrap .cube-scene { animation-duration: 14s; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
