/* ============================================================
   AirSeal Insulation Systems – Main Stylesheet
   ============================================================ */

:root {
  --navy:        #153872;
  --navy-dark:   #0f1d38;
  --navy-light:  #253660;
  --blue:        #2AA9E0;
  --green:       #22a845;
  --green-dark:  #198735;
  --orange:      #e8562a;
  --yellow:      #f5c00a;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --text:        #2c3e50;
  --text-muted:  #6c757d;
  --border:      #dee2e6;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow:      0 6px 28px rgba(0,0,0,.13);
  --radius:      14px;
  --radius-sm:   8px;
  --max-w:       1180px;
  --t:           .25s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 18px; color: var(--text); line-height: 1.7; background: var(--white); }
img   { max-width: 100%; display: block; }
a     { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utilities ─────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.text-center { text-align: center; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 1.9rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t);
  border: none;
  line-height: 1.3;
  text-align: center;
}
.btn-primary  { background: var(--blue); color: var(--white); }
.btn-primary:hover  { background: #1a8ab5; text-decoration: none; }
.btn-green    { background: var(--blue); color: var(--white); }
.btn-green:hover    { background: #1a8ab5; text-decoration: none; }
.btn-navy     { background: var(--navy);   color: var(--white); }
.btn-navy:hover     { background: var(--navy-dark); text-decoration: none; }
.btn-outline  { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover  { background: var(--white); color: var(--navy); text-decoration: none; }
.btn-full     { width: 100%; display: block; }

/* ── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: .8rem; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .3rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-row   { display: flex; gap: .75rem; }
.form-row .form-group { flex: 1; margin-bottom: 0; }

/* ── ======================================================
   HEADER / NAV
   ====================================================== */
header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.12);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.6rem 1.25rem 0.6rem 0.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1rem;
}
.logo { grid-column: 1; justify-self: start; width: max-content; }
.logo img { height: 74px; max-width: none; mix-blend-mode: multiply; filter: brightness(1.15) contrast(1.05); }
.header-badge { grid-column: 3; justify-self: end; }
.header-badge img { height: 95px; flex-shrink: 0; filter: brightness(1.15); }
.site-nav { grid-column: 2; display: flex; justify-content: center; }
.hamburger { grid-column: 1; justify-self: end; display: none; }
.site-nav ul  { list-style: none; display: flex; gap: 2rem; }
.site-nav a   { color: var(--navy); font-size: 1.15rem; font-weight: 600; transition: color var(--t); }
.site-nav a:hover,
.site-nav a.active { color: var(--blue); text-decoration: none; }
.hamburger  {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--navy); display: block; transition: var(--t); }

@media (max-width: 860px) {
  .header-inner  { grid-template-columns: auto auto; padding: 1rem 1.25rem; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    grid-column: unset;
    background: #ffffff; padding: 1.25rem 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.open    { display: block; }
  .site-nav ul      { flex-direction: column; gap: 1rem; }
  .hamburger        { display: flex; grid-column: 2; justify-self: end; }
  .header-badge     { display: none; }
}

/* ── Nav dropdown ─────────────────────────────────────────── */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.55;
  vertical-align: middle;
}
.nav-dropdown {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0;
  padding-top: 0.75rem;
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: var(--shadow);
  z-index: 200;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-has-dropdown > a {
  padding-bottom: 1rem;
}
.nav-dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--t), background var(--t);
}
.nav-dropdown li a:hover {
  color: var(--blue);
  background: var(--off-white);
  text-decoration: none;
}


/* Mobile dropdown */
@media (max-width: 860px) {
  .nav-dropdown,
  .nav-has-dropdown ul,
  .nav-has-dropdown:hover .nav-dropdown,
  .nav-has-dropdown:focus-within .nav-dropdown {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none !important;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, visibility .3s, padding .3s;
    background: transparent;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    padding: 0;
    padding-left: 2rem;
    margin-left: 0;
    min-width: 0;
    z-index: auto;
  }
  .nav-has-dropdown.open .nav-dropdown {
    visibility: visible;
    max-height: 500px;
    padding: 0.25rem 0 0.25rem 2rem;
  }
  .nav-dropdown li a {
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
    color: var(--text-muted);
    white-space: normal;
  }
}

/* ── ======================================================
   HERO – video background
   ====================================================== */
#hero {
  position: relative;
  overflow: visible;
  min-height: 700px;
  display: flex;
  align-items: center;
  background-color: #153872;
}

/* Looping background video — clip-path keeps it inside the hero bounds */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  clip-path: inset(0);
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13, 30, 58, 0.93) 0%,
    rgba(13, 30, 58, 0.80) 45%,
    rgba(13, 30, 58, 0.30) 75%,
    rgba(13, 30, 58, 0.10) 100%
  );
  z-index: 1;
  clip-path: inset(0);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hero-cta-row {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  padding-top: .5rem;
}

/* LEFT: text */
.banner-heading {
  flex: 1;
  min-width: 0;
}

/* RIGHT: orbital */
.hero-orbital {
  flex: 0 0 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  overflow: visible;
}

.banner-heading h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: -.5px;
}

/* Pink highlight on the <span> inside h1 */
.banner-heading h1 span {
  position: relative;
  display: inline;
}

/* Word rotator */
.word-rotator {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}
.word-slot {
  display: inline-block;
}
.word-slot.word-out {
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  animation: heroWordOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.word-slot.word-in {
  animation: heroWordIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroWordOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-120%); }
}
@keyframes heroWordIn {
  from { opacity: 0; transform: translateY(60%); }
  to   { opacity: 1; transform: translateY(0); }
}
.banner-heading h1 span::before {
  content: '';
  background: #cc3366;
  height: 0.2em;
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  z-index: -1;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-bullets li {
  color: rgba(255,255,255,.92);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .85rem;
}
.hero-check {
  color: #2AA9E0;
  font-size: 1.3rem;
  font-weight: 900;
  flex-shrink: 0;
  display: inline-block;
}

.hero-cta-btn {
  display: inline-block;
  margin: 0;
  padding: 1.2rem 3.25rem;
  background: #2AA9E0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  border: 2.5px solid rgba(255,255,255,.5);
  box-shadow: 0 0 30px rgba(26,115,232,.6), 0 4px 20px rgba(0,0,0,.3);
}
.hero-cta-btn:hover {
  background: #cc3366;
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(204,51,102,.6), 0 4px 24px rgba(0,0,0,.3);
}

@media (max-width: 960px) {
  .hero-inner {
    flex-direction: column;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .hero-orbital {
    flex: unset;
    width: 100%;
  }
  .banner-heading h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-cta-btn {
    width: 100%;
    text-align: center;
    padding: 1.1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  #hero { min-height: auto; }
  .banner-heading h1 { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .hero-bullets li { font-size: 1rem; }
  .hero-cta-btn { font-size: 1.1rem; letter-spacing: .08em; }
}

/* ── ======================================================
   IMAGE GALLERY (removed from index but kept for other pages)
   ====================================================== */
#gallery { padding: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gallery-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-light);
}

.gallery-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-slot:hover img { transform: scale(1.04); }

/* Placeholder shown when no image is loaded */
.gallery-slot img[src=""],
.gallery-slot img:not([src]) {
  display: none;
}
.gallery-slot:has(img[src=""]) {
  background: var(--navy-light);
}
.gallery-slot:has(img[src=""])::after,
.gallery-slot:has(img:not([src]))::after {
  content: '📷  Add photo here';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .05em;
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── ======================================================
   ELIGIBILITY SECTION (legacy — keep styles for quiz card)
   ====================================================== */

/* Quiz card */
.quiz-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.quiz-step           { display: none; }
.quiz-step.active    { display: block; animation: fadeUp .3s ease; }

.quiz-step h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: .35rem; font-weight: 700; }
.quiz-step .step-sub { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.2rem; }

.step-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); margin-bottom: .6rem; }

/* Radio options */
.radio-group  { display: flex; flex-direction: column; gap: .65rem; margin: 1rem 0; }
.radio-option {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; transition: var(--t);
}
.radio-option:hover { border-color: var(--blue); background: #f0f7ff; }
.radio-option input[type="radio"] { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.radio-text .radio-title { font-weight: 600; font-size: .93rem; }
.radio-text .radio-desc  { font-size: .82rem; color: var(--text-muted); }

/* Note box */
.note-box {
  background: #eef4ff; border-left: 3px solid var(--blue);
  padding: .75rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .86rem; color: var(--navy); margin-bottom: 1.1rem;
}

/* Building detected callout */
.building-callout {
  background: #eef4ff; border: 1.5px solid #b3ccff;
  border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 1.25rem;
}
.building-callout strong { color: var(--navy); }
.building-callout p { font-size: .88rem; color: var(--text-muted); margin-top: .3rem; }

/* ─ Result cards ─ */
.result-card h3   { font-size: 1.3rem; color: var(--navy); margin-bottom: .4rem; font-weight: 700; }
.result-card > p  { color: var(--text-muted); font-size: .91rem; margin-bottom: 1.25rem; }

.program-cards    { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1.5rem; }
@media (max-width: 480px) { .program-cards { grid-template-columns: 1fr; } }

.prog-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.1rem;
}
.prog-card.highlight { border-color: var(--blue); background: #eef4ff; }
.prog-card.blue-hl   { border-color: var(--navy);  background: #f0f7ff; }
.prog-card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: .2rem .65rem; border-radius: 50px; margin-bottom: .5rem;
}
.tag-green { background: var(--blue);  color: var(--white); }
.tag-blue  { background: var(--navy);  color: var(--white); }
.tag-amber { background: var(--navy);  color: var(--white); }
.prog-card h4 { font-size: .93rem; color: var(--navy); margin-bottom: .3rem; }
.prog-card p  { font-size: .84rem; color: var(--text-muted); }

/* Mini form inside results */
.mini-form         { border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 1.25rem; }
.mini-form h4      { font-size: .98rem; color: var(--navy); margin-bottom: 1rem; font-weight: 700; }
.mini-form .privacy { font-size: .76rem; color: var(--text-muted); margin-top: .5rem; }

/* Done / submitted */
.done-card { text-align: center; padding: 2.5rem 1rem; }
.done-card .done-icon { font-size: 3rem; margin-bottom: .75rem; }
.done-card h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: .4rem; }
.done-card p  { color: var(--text-muted); }
.done-card .phone { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-top: .75rem; display: block; }

/* (hero styles moved above) */

/* ── ======================================================
   OUR PROCESS
   ====================================================== */
#process { padding: 5rem 0; background: var(--white); }
#process .section-head { text-align: center; margin-bottom: 3rem; }
#process .section-head h2 { font-size: 2.8rem; color: var(--navy); font-weight: 800; }

@keyframes proc-word-appear {
  0%   { opacity: 0; transform: translateY(30px) scale(0.8); filter: blur(10px); }
  50%  { opacity: 0.8; transform: translateY(10px) scale(0.95); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.proc-word { display: inline-block; opacity: 0; }

.process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.proc-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .75rem;
  flex-shrink: 0;
  opacity: 0;
  color: var(--blue);
  font-size: 2.5rem;
  font-weight: 700;
}

/* ── Flip card wrapper (perspective only — no filter/opacity here) ── */
.proc-card {
  perspective: 1200px;
  cursor: pointer;
  transition: transform .28s ease;
}

.proc-card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.proc-card.flipped .proc-card-inner {
  transform: rotateY(180deg);
}

/* ── Front face — in normal flow so it defines card height ── */
.proc-card-front {
  opacity: 0; /* revealed by scroll animation */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .28s ease;
}

.proc-card-front::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(26, 115, 232, 0.13),
    transparent 55%
  );
  z-index: 0;
}
.proc-card-front > * { position: relative; z-index: 1; }
.proc-card:not(.flipped):hover .proc-card-front::before { opacity: 1; }

/* ── Back face ── */
.proc-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.proc-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flip-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 1.2rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  opacity: .7;
  letter-spacing: .04em;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  transition: opacity .2s ease;
}
.flip-hint .flip-icon {
  display: inline-block;
  font-size: 1rem;
  animation: flip-hint-spin 2.5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes flip-hint-spin {
  0%, 70%  { transform: rotate(0deg); }
  85%      { transform: rotate(360deg); }
  100%     { transform: rotate(360deg); }
}
.proc-card:hover .flip-hint { opacity: 1; }

.proc-card .phase {
  display: inline-block;
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--blue); color: var(--white);
  padding: .3rem 1rem; border-radius: 50px; margin-bottom: 1rem;
}
.proc-card h3 { font-size: 1.35rem; color: var(--navy); font-weight: 800; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .02em; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
.proc-list { list-style: none; padding: 0; margin: 0; }
.proc-list li { font-size: 1rem; color: var(--text-muted); line-height: 1.6; padding: .4rem 0 .4rem 1.4rem; position: relative; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
.proc-list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

@media (max-width: 800px) {
  .process-grid { grid-template-columns: 1fr; }
  .proc-connector { font-size: 1.5rem; padding: .25rem 0; transform: rotate(90deg); }
  #process .section-head h2 { font-size: 2.2rem; }
}

/* ── ======================================================
   SEAL ORBITAL – rotating S E A L
   ====================================================== */
#seal-orbit {
  position: relative;
  overflow: visible;
  min-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.so-bg {
  position: absolute; inset: 0;
  background: url('../images/j46d99li.png') center/cover no-repeat;
  background-color: #0a1020;
  z-index: 0;
}

.so-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,40,90,.62) 0%, rgba(8,15,40,.55) 100%);
  z-index: 1;
}

.so-wrapper {
  position: relative; z-index: 2;
  width: 100%; max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 2rem;
}

.so-header {
  text-align: center;
  overflow: visible;
  perspective: 900px;
}

.so-eyebrow {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em;
  color: rgba(255,255,255,.85); margin-bottom: .6rem;
  display: block;
  transform-style: preserve-3d;
}

.so-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 900; color: var(--white);
  text-transform: uppercase; line-height: 1.05;
  letter-spacing: -.02em;
  display: block;
  transform-style: preserve-3d;
}

/* Individual character flip */
.so-flip-char {
  display: inline-block;
  opacity: 0;
  transform: rotateX(-90deg) translateY(40px);
  transform-origin: bottom center;
}

.so-header.so-animate .so-flip-char {
  animation: so-flip-up 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: calc(0.055s * var(--char-i));
}

@keyframes so-flip-up {
  0%   { opacity: 0; transform: rotateX(-90deg) translateY(40px); }
  100% { opacity: 1; transform: rotateX(0deg)   translateY(0);    }
}

@media (prefers-reduced-motion: reduce) {
  .so-flip-char { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* Stage: all nodes are positioned absolutely from its center */
.so-stage {
  position: relative;
  width: 480px; height: 480px;
  flex-shrink: 0;
}

/* ── Center nucleus ── */
.so-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 120px; height: 120px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}

.so-center-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  animation: so-ping 2.2s ease-out infinite;
}
.so-ring1 { inset: -18px; }
.so-ring2 { inset: -36px; animation-delay: 1.1s; }

@keyframes so-ping {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.so-center-dot {
  position: relative;
  z-index: 2;
  perspective: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.so-logo-spin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.so-logo-spin img {
  height: 160px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(180,210,255,.5)) brightness(1.15);
}

@keyframes so-logo-rotate {
  0%   { transform: rotateY(0deg); }
  25%  { transform: rotateY(90deg); }
  50%  { transform: rotateY(180deg); }
  75%  { transform: rotateY(270deg); }
  100% { transform: rotateY(360deg); }
}

/* ── Orbit track ring ── */
.so-track {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 370px; height: 370px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  pointer-events: none;
}

/* ── Letter nodes ── */
.so-node {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  cursor: pointer;
  transition: opacity .15s;
  outline: none;
}
.so-node:focus, .so-node:focus-visible { outline: none; }

.so-node-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(100,180,255,.35) 0%, transparent 70%);
  pointer-events: none;
}

.so-node-circle {
  width: 82px; height: 82px; border-radius: 50%;
  background: rgba(26,107,232,.75);
  border: 2.5px solid rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 900; color: #fff;
  transition: all .3s;
  position: relative; z-index: 2;
  font-family: 'Segoe UI', system-ui, sans-serif;
  text-shadow: 0 0 14px rgba(255,255,255,.9);
  box-shadow: 0 0 28px rgba(26,107,232,.8), 0 0 8px rgba(255,255,255,.3), inset 0 0 20px rgba(80,160,255,.3);
}

.so-node:hover .so-node-circle {
  background: rgba(26,107,232,.95);
  box-shadow: 0 0 18px rgba(255,255,255,.55), 0 0 40px rgba(100,180,255,.6), 0 0 8px rgba(255,255,255,.4), inset 0 0 20px rgba(80,160,255,.4);
  border-color: rgba(255,255,255,1);
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(255,255,255,1);
}

.so-node.active .so-node-circle {
  background: var(--white); color: #0f1d38;
  border-color: var(--white);
  box-shadow: 0 0 32px rgba(255,255,255,.6), 0 0 60px rgba(255,255,255,.2);
  transform: scale(1.25);
  text-shadow: none;
}

.so-node-label {
  position: absolute; top: 90px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .7rem; font-weight: 700;
  color: rgba(255,255,255,.88);
  text-transform: uppercase; letter-spacing: .08em;
  transition: all .3s;
}
.so-node.active .so-node-label {
  color: var(--white); transform: translateX(-50%) scale(1.1);
}

/* ── Popup card ── */
.so-card {
  display: none;
  position: absolute; top: 108px; left: 50%;
  transform: translateX(-50%);
  width: 210px;
  background: rgba(5, 10, 25, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  z-index: 400;
}
.so-node.active .so-card {
  display: block;
  animation: so-fadein .25s ease;
}
@keyframes so-fadein {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.so-card-line {
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 10px;
  background: rgba(255,255,255,.35);
}

.so-card h4 {
  font-size: .82rem; font-weight: 900;
  color: var(--white); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: .55rem;
}

.so-card p {
  font-size: .78rem; color: rgba(255,255,255,.72);
  line-height: 1.65; margin-bottom: .9rem;
}

.so-bar {
  height: 3px; background: rgba(255,255,255,.12);
  border-radius: 2px; overflow: hidden;
}
.so-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

.so-hint {
  font-size: .78rem; color: rgba(255,255,255,.3);
  letter-spacing: .04em; text-align: center;
}

/* ── Mobile: scale orbital to fit phone screens ── */
@media (max-width: 560px) {
  .hero-orbital {
    display: flex;
    justify-content: center;
    overflow: visible;
  }
  .so-stage {
    width: 320px; height: 320px;
    transform: scale(0.72);
    transform-origin: top center;
  }
  .so-track { width: 300px; height: 300px; }
  /* Popup cards: keep them on screen */
  .so-node.active .so-card {
    width: 180px;
    font-size: .74rem;
  }
}

@media (max-width: 400px) {
  .so-stage {
    transform: scale(0.62);
  }
}

/* ── ======================================================
   CTA SECTION
   ====================================================== */
#cta-section { padding: 5rem 0; background: var(--off-white); }

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; } }

.cta-text > p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 420px;
}
.cta-team-label {
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: .02em;
  border-bottom: 3px solid var(--blue);
  display: inline-block;
  padding-bottom: 2px;
}

.cta-form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 2.25rem;
}
.cta-form-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* (capabilities are now the SEAL orbital section) */

/* ── ======================================================
   FOOTER
   ====================================================== */
footer {
  background: var(--navy-dark);
  color: #9db3d4;
  padding: 3.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; } }

.footer-left { display: flex; flex-direction: column; gap: 1.25rem; }

.footer-logos-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo-img { height: 72px; width: auto; }

.footer-25yr { height: 72px; width: auto; }

.footer-values-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.footer-values-list li {
  font-size: .7rem;
  font-weight: 800;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .13em;
}
.footer-values-list li:not(:last-child)::after {
  content: '·';
  margin: 0 .5rem;
  color: var(--blue);
  font-weight: 400;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}
@media (max-width: 700px) { .footer-right { align-items: flex-start; } }

.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.5rem; }
@media (max-width: 700px) { .footer-nav ul { justify-content: flex-start; } }
.footer-nav a {
  color: #8fadd6;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color var(--t);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--white); }

.footer-phone {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.02em;
  transition: color var(--t);
  line-height: 1;
}
.footer-phone:hover { color: var(--blue); text-decoration: none; }

.footer-tagline-h2 {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  text-align: right;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .08em;
  max-width: 280px;
}
@media (max-width: 700px) { .footer-tagline-h2 { text-align: left; } }

.footer-bottom {
  padding: 1.1rem 0;
  text-align: center;
  font-size: .78rem;
  color: #3d5a7a;
  background: rgba(0,0,0,.2);
}

/* ── Footer v2 (4-column) ─────────────────────────── */
.footer-v2 {
  background: var(--navy-dark);
  color: #9db3d4;
  padding: 4rem 0 0;
}
.footer-v2-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: start;
}
@media (max-width: 900px) { .footer-v2-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 520px)  { .footer-v2-grid { grid-template-columns: 1fr; } }

.fv2-col { display: flex; flex-direction: column; gap: 1rem; }

/* Brand col */
.fv2-logos { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .25rem; }
.fv2-logo  { height: 56px; width: auto; }
.fv2-badge { height: 80px; width: auto; mix-blend-mode: screen; }
.fv2-tagline { font-size: .88rem; color: #ffffff; line-height: 1.7; max-width: 280px; margin: 0; }

/* Newsletter form */
.fv2-form {
  display: flex; align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  overflow: hidden;
  padding: .25rem .25rem .25rem .9rem;
  max-width: 300px;
}
.fv2-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: .88rem; padding: .35rem 0;
  min-width: 0;
}
.fv2-input::placeholder { color: rgba(255,255,255,.35); }
.fv2-submit {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s;
}
.fv2-submit:hover { transform: scale(1.08); background: #1a5fd4; }
.fv2-submit svg { width: 15px; height: 15px; color: #fff; stroke: #fff; }

/* Headings */
.fv2-heading {
  font-size: .75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--white); margin-bottom: .25rem;
}

/* Links */
.fv2-links { display: flex; flex-direction: column; gap: .55rem; }
.fv2-links a {
  font-size: .92rem; color: #8fadd6; text-decoration: none;
  transition: color .2s; font-weight: 500;
}
.fv2-links a:hover { color: var(--white); }

/* Address */
.fv2-address { font-style: normal; display: flex; flex-direction: column; gap: .5rem; }
.fv2-address p { font-size: .92rem; color: #8fadd6; margin: 0; line-height: 1.5; }
.fv2-address a { color: #8fadd6; text-decoration: none; transition: color .2s; }
.fv2-address a:hover { color: var(--white); }

/* Social */
.fv2-socials { display: flex; gap: .75rem; flex-wrap: wrap; }
.fv2-social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  color: #8fadd6; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.fv2-social-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.fv2-social-btn svg { width: 17px; height: 17px; }

/* Bottom bar */
.fv2-bottom-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.fv2-bottom-nav { display: flex; gap: 1.5rem; }
.fv2-bottom-nav a { color: #3d5a7a; font-size: .78rem; text-decoration: none; transition: color .2s; }
.fv2-bottom-nav a:hover { color: #8fadd6; }

/* ── ======================================================
   COMING SOON PAGE
   ====================================================== */
.coming-soon {
  min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.25rem;
  background: var(--off-white);
}
.coming-soon .cs-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.coming-soon h1 { font-size: 2rem; color: var(--navy); font-weight: 800; margin-bottom: .6rem; }
.coming-soon p  { color: var(--text-muted); max-width: 420px; margin: 0 auto 1.75rem; }

/* ── ======================================================
   ANIMATIONS
   ====================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── ======================================================
   RESPONSIVE TWEAKS
   ====================================================== */
@media (max-width: 480px) {
  #hero h1     { font-size: 1.8rem; }
  .quiz-card   { padding: 1.4rem; }
  .form-row    { flex-direction: column; }
}

/* ── ======================================================
   LIGHTBOX
   ====================================================== */
.lb-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88);
  align-items: center; justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn .18s ease;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 8px 60px rgba(0,0,0,.6);
  object-fit: contain;
  cursor: default;
  animation: lbZoomIn .2s ease;
}
.lb-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  font-size: 2rem; line-height: 1; color: #fff;
  background: none; border: none; cursor: pointer;
  opacity: .75; transition: opacity .15s;
}
.lb-close:hover { opacity: 1; }
.sol-hero-img img, .about-hero-jobphoto img, .team-photo img { cursor: zoom-in; }
@keyframes lbFadeIn  { from { opacity: 0; } to { opacity: 1; } }

/* ────────────────────────────────────────────
   Scroll Reveal
   ──────────────────────────────────────────── */
.sr {
  opacity: 0;
  transition: opacity .75s cubic-bezier(.16,1,.3,1),
              transform .75s cubic-bezier(.16,1,.3,1);
}
.sr.sr-up    { transform: translateY(44px); }
.sr.sr-left  { transform: translateX(-52px); }
.sr.sr-right { transform: translateX(52px); }
.sr.sr-scale { transform: scale(0.88) translateY(30px); }
.sr.sr-domino {
  transform: translateY(60px) rotate(-3deg);
  transform-origin: bottom center;
  transition: opacity .6s cubic-bezier(.34,1.4,.64,1),
              transform .6s cubic-bezier(.34,1.4,.64,1);
}
.sr.sr-domino.sr-in { opacity: 1 !important; transform: none !important; }
.sr.sr-in    { opacity: 1 !important; transform: none !important; }

.sr-delay-1 { transition-delay: .09s; }
.sr-delay-2 { transition-delay: .18s; }
.sr-delay-3 { transition-delay: .27s; }
.sr-delay-4 { transition-delay: .36s; }
.sr-delay-5 { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  .sr { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Our Story element animations ───────────────────────── */
.sa-eyebrow { transition: opacity .5s ease, transform .5s ease; }
.sa-eyebrow.sa-hide { opacity: 0; transform: translateY(14px); }

.sa-title { transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
.sa-title.sa-hide { opacity: 0; transform: translateY(30px) scale(0.97); }

.sa-para { transition: opacity .5s ease, transform .5s ease; }
.sa-para.sa-hide { opacity: 0; transform: translateX(-28px); }

.sa-img { transition: opacity .75s ease, transform .75s ease; }
.sa-img.sa-hide { opacity: 0; transform: scale(0.94) translateY(18px); }

.sa-photo { transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.sa-photo.sa-hide { opacity: 0; transform: scale(0.88); }

.sa-quote { transition: opacity .7s ease, transform .7s ease; }
.sa-quote.sa-hide { opacity: 0; transform: translateY(22px); }

@media (prefers-reduced-motion: reduce) {
  .sa-eyebrow, .sa-title, .sa-para, .sa-img, .sa-photo, .sa-quote {
    transition: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ── Product page scroll animations ─────────────────────── */
.sol-block {
  transition: opacity .8s cubic-bezier(.16,1,.3,1),
              transform .8s cubic-bezier(.16,1,.3,1);
}
.sol-block.sol-hidden-left  { opacity: 0; transform: translateX(-64px); }
.sol-block.sol-hidden-right { opacity: 0; transform: translateX(64px); }

.sol-list.sol-list-hidden li {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .4s ease, transform .4s ease;
}
@keyframes lbZoomIn  { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
