:root {
  --octave-navy-950: #030818;
  --octave-navy-900: #06112b;
  --octave-cyan: #3de7ff;
  --octave-blue: #65a8ff;
  --octave-violet: #7d5cff;
  --octave-magenta: #ff4ed8;
  --text-primary: rgba(244, 249, 255, 0.96);
  --text-secondary: rgba(214, 228, 248, 0.76);
  --text-muted: rgba(214, 228, 248, 0.56);
  --border-soft: rgba(255,255,255,0.12);
  --panel: rgba(4, 13, 33, 0.52);
  --header-height: 76px;
  --max-width: 1200px;
  --radius-xl: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--octave-navy-950); }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text-primary);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 50% 20%, rgba(20, 64, 130, 0.28), transparent 42%), var(--octave-navy-950);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
#webgl {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  background: #030818;
}
#webgl-status {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 999;
  max-width: min(420px, calc(100vw - 28px));
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(4, 8, 24, 0.86);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  line-height: 1.45;
  display: none;
  backdrop-filter: blur(16px);
}
#webgl-status.is-visible { display: block; }
.page-noise,
.page-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.page-noise {
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.page-vignette {
  background: radial-gradient(circle at 50% 35%, transparent 0, transparent 34%, rgba(0,0,0,.42) 100%), linear-gradient(90deg, rgba(3,8,24,.55), transparent 28%, transparent 72%, rgba(3,8,24,.55));
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(3,8,24,.78), rgba(3,8,24,.32) 72%, transparent);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(116px, 10vw, 152px);
  height: 42px;
  min-width: 116px;
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}
.site-nav { display: flex; gap: clamp(14px, 2vw, 28px); align-items: center; color: rgba(232,242,255,.72); font-size: 0.86rem; }
.site-nav a { transition: color .25s ease, border-color .25s ease, background .25s ease; }
.site-nav a:hover { color: #fff; }
.nav-cta { border: 1px solid rgba(255,255,255,.18); padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.05); }
main { position: relative; z-index: 2; }
.story-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 54px) clamp(20px, 5vw, 72px) 74px;
  position: relative;
}
.section-inner { width: min(100%, var(--max-width)); margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 390px); gap: clamp(32px, 6vw, 72px); align-items: end; }
.hero-copy { max-width: 880px; }
.eyebrow { margin: 0 0 18px; color: var(--octave-cyan); letter-spacing: .13em; text-transform: uppercase; font-size: .78rem; font-weight: 700; }
.hero-title, .section-title, .cta-title { font-family: Manrope, Inter, sans-serif; margin: 0; letter-spacing: -.065em; line-height: .94; }
.hero-title { font-size: clamp(3.05rem, 5.8vw, 6rem); max-width: 980px; }
.hero-lede { max-width: 740px; color: var(--text-secondary); font-size: clamp(1.03rem, 1.25vw, 1.27rem); line-height: 1.72; margin: 26px 0 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: .92rem; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, var(--octave-cyan), var(--octave-blue) 48%, var(--octave-violet)); color: #031024; box-shadow: 0 18px 54px rgba(61,231,255,.24); }
.button.secondary { border: 1px solid rgba(255,255,255,.18); color: rgba(245,249,255,.88); background: rgba(255,255,255,.055); }
.button.large { min-height: 56px; padding-inline: 26px; }
.hero-panel, .metric-card, .trust-panel, .service-card, .contact-card {
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(20px);
}
.hero-panel { border-radius: var(--radius-xl); padding: 24px; }
.panel-label { margin: 0 0 18px; color: var(--text-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.signal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.signal-list li { display: flex; gap: 12px; color: rgba(240,247,255,.82); }
.signal-list span { color: var(--octave-cyan); font-weight: 800; }
.two-column { display: grid; grid-template-columns: .45fr 1fr; gap: clamp(30px, 6vw, 86px); align-items: center; }
.two-column.flipped { grid-template-columns: 1fr .55fr; }
.section-number { font-size: clamp(7rem, 15vw, 15rem); font-family: Manrope, Inter, sans-serif; font-weight: 800; letter-spacing: -.08em; color: rgba(255,255,255,.08); line-height: .8; }
.section-copy { max-width: 760px; }
.section-title { font-size: clamp(2.8rem, 6.1vw, 6.7rem); }
.section-text, .cta-text { color: var(--text-secondary); font-size: clamp(1rem, 1.2vw, 1.2rem); line-height: 1.78; margin: 24px 0 0; }
.feature-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-grid li, .flow-stack span { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); border-radius: 16px; padding: 14px 16px; color: rgba(240,247,255,.84); }
.metric-card { border-radius: var(--radius-xl); padding: 28px; }
.metric { display: block; font-family: Manrope, Inter, sans-serif; font-size: clamp(2rem, 4vw, 3.8rem); line-height: .96; letter-spacing: -.05em; color: #fff; }
.metric-card p { color: var(--text-secondary); line-height: 1.7; }
.flow-stack { display: grid; gap: 10px; margin-top: 32px; max-width: 560px; }
.center-copy { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { border-radius: 24px; padding: 24px; min-height: 280px; }
.card-index { color: var(--octave-cyan); font-weight: 800; }
.service-card h3 { font-family: Manrope, Inter, sans-serif; font-size: 1.55rem; letter-spacing: -.04em; line-height: 1.05; margin: 36px 0 16px; }
.service-card p, .trust-panel li { color: var(--text-secondary); line-height: 1.68; }
.trust-panel { border-radius: var(--radius-xl); padding: 28px; }
.trust-panel h3 { margin: 0 0 18px; font-family: Manrope, Inter, sans-serif; font-size: 1.55rem; }
.trust-panel ul { margin: 0; padding-left: 18px; }
.cta-inner { max-width: 940px; text-align: center; }
.cta-title { font-size: clamp(3rem, 7vw, 7.8rem); }
.cta-text { max-width: 730px; margin-inline: auto; }
.cta-inner .button { margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr minmax(280px, 430px); gap: 36px; align-items: end; }
.contact-card { border-radius: var(--radius-xl); padding: 24px; display: grid; gap: 14px; font-style: normal; }
.contact-card a { color: rgba(235,246,255,.9); word-break: break-word; }
.site-footer { width: min(100%, var(--max-width)); margin: 48px auto 0; color: var(--text-muted); font-size: .85rem; }
.reveal { opacity: 1; transform: none; }
@media (max-width: 920px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-grid, .two-column, .two-column.flipped, .footer-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
  .section-number { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-height: 66px; }
  .site-header { padding-inline: 16px; }
  .brand { width: 116px; height: 34px; min-width: 108px; }
  .brand-logo { max-height: 34px; }
  .nav-cta { padding: 9px 11px; font-size: .78rem; }
  .story-section { min-height: auto; padding: calc(var(--header-height) + 58px) 18px 84px; }
  .hero-title { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .section-title, .cta-title { font-size: clamp(2.3rem, 12vw, 4rem); }
  .feature-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
}

/* === V8 requested refinements === */
.site-nav {
  position: relative;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(3, 8, 24, .34);
  box-shadow: 0 18px 52px rgba(0,0,0,.18);
}
.site-nav a {
  position: relative;
  isolation: isolate;
  padding: 10px 12px;
  border-radius: 999px;
  overflow: hidden;
}
.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 100%, rgba(61,231,255,.24), transparent 58%), linear-gradient(135deg, rgba(101,168,255,.16), rgba(255,78,216,.10));
  opacity: 0;
  transform: scale(.86);
  transition: opacity .28s ease, transform .28s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--octave-cyan), var(--octave-magenta), transparent);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .28s ease, transform .28s ease;
}
.site-nav a:hover::before,
.site-nav a:focus-visible::before { opacity: 1; transform: scale(1); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after { opacity: .9; transform: scaleX(1); }
.nav-cta {
  background: linear-gradient(135deg, rgba(61,231,255,.15), rgba(125,92,255,.12));
  border-color: rgba(61,231,255,.28);
}

.hero-panel,
.metric-card,
.trust-panel,
.service-card,
.contact-card,
.blueprint-form {
  background: linear-gradient(180deg, rgba(4,13,33,.80), rgba(6,17,43,.80));
  border-color: rgba(255,255,255,.14);
}
.feature-grid li,
.flow-stack span {
  background: rgba(4,13,33,.80);
  border-color: rgba(255,255,255,.14);
}

.footer-brand { display: inline-flex; align-items: center; width: clamp(132px, 12vw, 172px); height: 46px; margin-bottom: 26px; }
.footer-logo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.footer-section { padding-bottom: 36px; }
.footer-grid { align-items: center; }
.blueprint-form {
  border: 1px solid rgba(61,231,255,.18);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 28px 90px rgba(0,0,0,.34), 0 0 60px rgba(61,231,255,.06) inset;
  backdrop-filter: blur(22px);
}
.blueprint-form h3 {
  margin: 0 0 10px;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  letter-spacing: -.045em;
  line-height: 1.02;
}
.blueprint-form p { margin: 0 0 22px; color: var(--text-secondary); line-height: 1.65; }
.blueprint-form label { display: block; margin: 14px 0 7px; color: rgba(232,242,255,.78); font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.blueprint-form input {
  width: 100%;
  min-height: 48px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(1, 7, 21, .56);
  color: #fff;
  padding: 0 14px;
  outline: none;
  font: inherit;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.blueprint-form input:focus {
  border-color: rgba(61,231,255,.58);
  box-shadow: 0 0 0 4px rgba(61,231,255,.10);
  background: rgba(1, 9, 28, .72);
}
.form-submit { width: 100%; margin-top: 22px; border: 0; cursor: pointer; }
.form-note { margin-top: 14px !important; color: rgba(214,228,248,.50) !important; font-size: .78rem; }
.site-footer {
  display: block;
  width: min(100%, var(--max-width));
  margin: 42px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: left;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.6;
}
.site-footer a { color: rgba(232,242,255,.82); text-decoration: underline; text-decoration-color: rgba(61,231,255,.45); text-underline-offset: 3px; }
.email-obfuscated { cursor: pointer; }

@media (max-width: 920px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
    flex-wrap: wrap;
    align-content: center;
    gap: 8px 14px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .site-nav a:not(.nav-cta) { display: inline-flex; }
  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a {
    flex: 0 0 auto;
    padding: 9px 10px;
    font-size: .78rem;
    white-space: nowrap;
  }
  .story-section { padding-top: calc(var(--header-height) + 92px); }
}

@media (max-width: 640px) {
  .site-header { padding-inline: 14px; }
  .brand { width: 118px; height: 32px; min-width: 112px; }
  .brand-logo { max-height: 32px; }
  .site-nav { font-size: .76rem; }
  .nav-cta { padding: 9px 11px; }
  .footer-brand { width: 136px; height: 38px; }
  .site-footer { font-size: .8rem; }
}

/* === V9 corrections: footer grid, hamburger mobile nav, and true 80% card backgrounds === */
:root { --octave-card-bg-80: rgba(4, 13, 33, 0.80); }

/* Keep the footer contact area as two columns on desktop, with the copyright outside it. */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start !important;
}
.site-footer {
  display: block;
  width: min(100%, var(--max-width));
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(180, 230, 255, 0.18);
  text-align: left;
  color: rgba(235, 249, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.6;
}
.site-footer a {
  color: rgba(120, 235, 255, 0.88);
  text-decoration: none;
}
.site-footer a:hover {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(80, 220, 255, 0.45);
}

/* Actual 80% opaque glass-box backgrounds. Text remains 100% opaque for readability. */
.hero-panel,
.metric-card,
.trust-panel,
.service-card,
.contact-card,
.blueprint-form,
.feature-grid li,
.flow-stack span {
  background-color: var(--octave-card-bg-80) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* Desktop menu hover refinement retained, plus hamburger button base state. */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(3, 8, 24, .56);
  box-shadow: 0 14px 44px rgba(0,0,0,.22);
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  width: 17px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(235, 249, 255, .9);
  transition: transform .24s ease, opacity .24s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* V9 mobile: replace expanded nav rail with a proper hamburger dropdown. */
@media (max-width: 920px) {
  .site-header {
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    flex-wrap: nowrap !important;
    align-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 14px !important;
  }

  .nav-toggle { display: inline-flex; margin-left: auto; z-index: 42; }

  .site-nav {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 14px !important;
    left: 14px !important;
    order: initial !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 10px !important;
    border-radius: 24px !important;
    background: rgba(3, 8, 24, .92) !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    box-shadow: 0 26px 90px rgba(0,0,0,.42), 0 0 70px rgba(61,231,255,.08) inset !important;
    backdrop-filter: blur(22px) !important;
    overflow: visible !important;
    transform: translateY(-8px) scale(.98) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .24s ease, transform .24s ease, visibility .24s ease !important;
  }

  .site-header.nav-open .site-nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  .site-nav a,
  .site-nav a:not(.nav-cta) {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 13px 14px !important;
    font-size: .9rem !important;
    white-space: normal !important;
  }

  .site-nav a::after {
    left: 14px;
    right: 14px;
    bottom: 7px;
  }

  .story-section { padding-top: calc(var(--header-height) + 58px) !important; }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .site-nav {
    right: 12px !important;
    left: 12px !important;
  }

  .site-footer {
    margin-top: 2.25rem;
    font-size: .8rem;
  }
}


/* === V10 corrections: proper footer sections, two-column contact layout, and card opacity consistency === */

/* Contact CTA: form in the left column, footer copy in the right column. */
.footer-intro-grid,
.contact-details-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: clamp(2rem, 5vw, 5rem) !important;
  align-items: center !important;
}

.footer-intro-grid .blueprint-form {
  grid-column: 1 !important;
}

.footer-intro-grid .footer-copy {
  grid-column: 2 !important;
  min-width: 0;
}

.contact-details-grid .section-text {
  grid-column: 1 !important;
  max-width: 640px;
  margin-top: 0;
}

.contact-details-grid .contact-card {
  grid-column: 2 !important;
  align-self: center;
}

/* The copyright footer is now its own bottom section, separate from the contact grids. */
.final-footer-section {
  min-height: auto !important;
  padding: 0 clamp(20px, 5vw, 72px) 34px !important;
  align-items: flex-end !important;
}

.final-footer-section .site-footer {
  width: min(100%, var(--max-width)) !important;
  margin: 0 auto !important;
  padding-top: 1.15rem !important;
  border-top: 1px solid rgba(180, 230, 255, 0.18) !important;
}

/* Match all glass cards to the visible 80% opacity style used by the flow stack. */
.hero-panel,
.metric-card,
.trust-panel,
.service-card,
.contact-card,
.blueprint-form,
.feature-grid li,
.flow-stack,
.flow-stack span {
  background-color: rgba(4, 13, 33, 0.80) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* Make the flow stack itself a proper glass surface so its opacity reference is consistent. */
.flow-stack {
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--radius-xl) !important;
  padding: 14px !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(20px);
}

.flow-stack span {
  background-color: rgba(255,255,255,0.045) !important;
  border-color: rgba(255,255,255,0.12) !important;
}

/* Mobile stack: show the footer copy first, then the form, then contact details. */
@media (max-width: 920px) {
  .footer-intro-grid,
  .contact-details-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-intro-grid .footer-copy,
  .footer-intro-grid .blueprint-form,
  .contact-details-grid .section-text,
  .contact-details-grid .contact-card {
    grid-column: 1 !important;
  }

  .footer-intro-grid .footer-copy {
    order: 1;
  }

  .footer-intro-grid .blueprint-form {
    order: 2;
  }

  .contact-details-section {
    min-height: auto !important;
    padding-top: 32px !important;
  }

  .final-footer-section {
    padding-bottom: 28px !important;
  }
}

@media (max-width: 640px) {
  .final-footer-section .site-footer {
    font-size: .78rem !important;
    line-height: 1.65 !important;
  }
}

/* === V11 footer density, three-column layout, and production form polish === */
.footer-section {
  padding-bottom: clamp(52px, 8vw, 92px) !important;
}

.footer-three-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr) minmax(280px, 0.9fr) !important;
  gap: clamp(1.4rem, 3vw, 3.4rem) !important;
  align-items: start !important;
}

.footer-col { min-width: 0; }
.footer-col-copy, .footer-col-form, .footer-col-contact { align-self: start; }
.footer-col-contact { display: grid; gap: 1.35rem; }

.footer-contact-stack .section-text {
  margin-top: 0 !important;
  font-size: clamp(.96rem, 1vw, 1.08rem);
  line-height: 1.72;
}

.footer-contact-stack .contact-card { width: 100%; }

.footer-brand {
  width: clamp(136px, 12vw, 176px) !important;
  height: 46px !important;
  margin-bottom: clamp(1.2rem, 2vw, 1.7rem) !important;
}

.footer-copy .section-title {
  font-size: clamp(2.05rem, 3.4vw, 4.2rem) !important;
  line-height: .98 !important;
}

.form-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* One visual language for every glass/card box, matching the visible flow-stack surface. */
.hero-panel,
.metric-card,
.trust-panel,
.service-card,
.contact-card,
.blueprint-form,
.feature-grid li,
.flow-stack,
.flow-stack span {
  background-color: rgba(4, 13, 33, 0.80) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28), 0 0 52px rgba(61, 231, 255, 0.045) inset !important;
}

.flow-stack span { box-shadow: none !important; }

.final-footer-section {
  min-height: auto !important;
  padding: 0 clamp(20px, 5vw, 72px) 34px !important;
  align-items: flex-end !important;
}

.final-footer-section .site-footer {
  width: min(100%, var(--max-width)) !important;
  margin: 0 auto !important;
  padding-top: 1.15rem !important;
  border-top: 1px solid rgba(180, 230, 255, 0.18) !important;
  color: rgba(235, 249, 255, 0.62) !important;
}

.final-footer-section .site-footer a {
  color: rgba(120, 235, 255, 0.88) !important;
  text-decoration: none !important;
}

.final-footer-section .site-footer a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 18px rgba(80, 220, 255, 0.45) !important;
}

@media (max-width: 1100px) {
  .footer-three-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr) !important; }
  .footer-col-copy { grid-column: 1; }
  .footer-col-form { grid-column: 2; grid-row: span 2; }
  .footer-col-contact { grid-column: 1; }
}

@media (max-width: 920px) {
  .footer-three-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .footer-col-copy, .footer-col-form, .footer-col-contact { grid-column: 1 !important; grid-row: auto !important; }
  .footer-col-copy { order: 1; }
  .footer-col-form { order: 2; }
  .footer-col-contact { order: 3; }
  .footer-copy .section-title { font-size: clamp(2.2rem, 10vw, 3.8rem) !important; }
  .final-footer-section { padding-bottom: 28px !important; }
}

@media (max-width: 640px) {
  .footer-brand { width: 136px !important; height: 38px !important; }
  .final-footer-section .site-footer { font-size: .78rem !important; line-height: 1.65 !important; }
}

/* === V13 team page, modal acknowledgement, and alignment refinements === */
.hero-panel.reveal,
.hero-panel {
  align-self: center !important;
}

body.modal-open {
  overflow: hidden;
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

.form-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.form-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 18, .72);
  backdrop-filter: blur(18px);
}

.form-modal-panel {
  position: relative;
  width: min(100%, 540px);
  border-radius: 30px;
  border: 1px solid rgba(61, 231, 255, .20);
  background:
    radial-gradient(circle at 18% 0%, rgba(61, 231, 255, .16), transparent 34%),
    radial-gradient(circle at 92% 92%, rgba(255, 78, 216, .12), transparent 34%),
    rgba(4, 13, 33, .94);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .52), 0 0 70px rgba(61, 231, 255, .08) inset;
  padding: clamp(28px, 5vw, 46px);
  transform: translateY(12px) scale(.98);
  transition: transform .24s ease;
}

.form-modal.is-open .form-modal-panel {
  transform: translateY(0) scale(1);
}

.form-modal-panel h2 {
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.06em;
}

.form-modal-panel p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.form-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(244,249,255,.94);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.form-modal-close:hover {
  transform: rotate(90deg);
  background: rgba(61,231,255,.12);
  border-color: rgba(61,231,255,.34);
}

.blueprint-form button[disabled] {
  cursor: wait;
  opacity: .72;
}

body[data-page="team"] .team-core-section {
  align-items: flex-start;
  padding-top: calc(var(--header-height) + 72px);
}

body[data-page="team"] .team-core-section .section-title {
  font-size: clamp(2.65rem, 5.7vw, 6.2rem);
}

body[data-page="team"] .team-hero-section .section-title {
  max-width: 980px;
  font-size: clamp(2.75rem, 5.4vw, 5.8rem);
}

body[data-page="team"] .team-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
}

.team-section .section-inner {
  width: min(100%, 1260px);
}

.team-intro {
  max-width: 980px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.team-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 22px;
  background-color: rgba(4, 13, 33, 0.80);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28), 0 0 52px rgba(61, 231, 255, 0.045) inset;
  backdrop-filter: blur(20px);
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 4.25;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 30% 25%, rgba(61, 231, 255, .24), transparent 32%),
    radial-gradient(circle at 72% 72%, rgba(125, 92, 255, .20), transparent 34%),
    linear-gradient(160deg, rgba(7, 20, 48, .96), rgba(5, 13, 31, .92));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.team-photo span {
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.06em;
  color: rgba(244, 249, 255, 0.92);
  text-shadow: 0 0 26px rgba(61, 231, 255, 0.18);
}

.team-name {
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(1.28rem, 1.5vw, 1.56rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.team-role {
  margin: 10px 0 0;
  color: var(--octave-cyan);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.team-bio {
  margin: 14px 0 0;
  color: var(--text-secondary);
  line-height: 1.74;
  font-size: .98rem;
}

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  body[data-page="team"] .team-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    padding: 18px;
  }

  .team-photo {
    aspect-ratio: 4 / 3.7;
  }
}

/* === V14 team refinements and contact-card button polish === */
@media (min-width: 1180px) {
  body[data-page="team"] .team-section .section-inner {
    width: min(75vw, 1120px) !important;
  }
}

.team-hobbies {
  margin: 14px 0 0;
  color: rgba(214, 228, 248, 0.66);
  line-height: 1.62;
  font-size: .9rem;
}

.team-hobbies strong {
  color: rgba(244, 249, 255, 0.9);
  font-weight: 800;
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.team-button,
.contact-meeting-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(61, 231, 255, 0.24);
  background: linear-gradient(135deg, rgba(61, 231, 255, 0.14), rgba(125, 92, 255, 0.10));
  color: rgba(244, 249, 255, 0.94) !important;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.team-button:hover,
.contact-meeting-button:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 231, 255, 0.48);
  background: linear-gradient(135deg, rgba(61, 231, 255, 0.22), rgba(255, 78, 216, 0.12));
  box-shadow: 0 14px 40px rgba(61, 231, 255, 0.11);
}

.contact-org {
  color: rgba(244, 249, 255, 0.94);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.contact-card .contact-meeting-button {
  width: fit-content;
  margin-top: 4px;
}

@media (max-width: 680px) {
  .team-actions {
    gap: 8px;
  }

  .team-button,
  .contact-meeting-button {
    min-height: 42px;
    padding-inline: 15px;
  }
}
