*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1A1F8F;
  --navy-dk: #0D1260;
  --navy-lt: #2D35B8;
  --gold:    #F5C842;
  --cream:   #FDF8EE;
  --white:   #FFFFFF;
  --ink:     #0B0E4D;
  --mist:    #E8EAF9;
  --coral:   #FF5C4D;
}

html { scroll-behavior: smooth; }
body { font-family: 'Space Grotesk', sans-serif; background: var(--cream); color: var(--ink); overflow-x: hidden; }

a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.9rem 3rem;
  background: var(--navy);
  border-bottom: 3px solid var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo svg { width: 32px; height: 32px; }

.nav-wordmark {
  font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.12em; color: var(--white);
  text-transform: uppercase;
}
.nav-wordmark span { color: var(--gold); }

nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav ul a { text-decoration: none; color: #aab; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: color .15s; }
nav ul a:hover, nav ul a:focus-visible { color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 3rem;
  padding: 8rem 4rem 5rem;
  position: relative; overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-text h1 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700; color: var(--white);
  line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-text h1 em { color: var(--gold); font-style: normal; }

.hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero-text p { color: #99a; font-size: 1rem; line-height: 1.75; max-width: 400px; margin-bottom: 2rem; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-block; padding: 0.8rem 1.8rem;
  font-family: 'Space Mono', monospace; font-weight: 700;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .12s, box-shadow .12s;
}
.btn-gold {
  background: var(--gold); color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn-gold:hover, .btn-gold:focus-visible { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.btn-gold:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent; color: var(--white);
  border: 3px solid rgba(255,255,255,0.3);
}
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--white); }

.btn-outline-dark {
  background: transparent; color: var(--ink);
  border: 3px solid var(--ink);
}
.btn-outline-dark:hover, .btn-outline-dark:focus-visible { background: var(--ink); color: var(--white); }

/* ── HERO ILLUSTRATION ── */
.hero-vis { display: flex; align-items: center; justify-content: center; position: relative; height: 440px; }
.float { position: absolute; animation: bob 4s ease-in-out infinite; }

@keyframes bob {
  0%,100% { transform: translateY(0) rotate(var(--r,0deg)); }
  50%      { transform: translateY(-10px) rotate(var(--r,0deg)); }
}

.shield-main { --r: 0deg; animation-duration: 5s; }

.pill-tm {
  top: 28px; right: 50px;
  background: var(--gold); border: 3px solid var(--ink);
  padding: 0.55rem 1.1rem;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1.5rem;
  box-shadow: 4px 4px 0 var(--ink);
  --r: -6deg; animation-delay: 0.3s; animation-duration: 3.8s;
}

.circle-r {
  bottom: 80px; right: 30px;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--coral); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1.6rem; color: white;
  box-shadow: 4px 4px 0 var(--ink);
  --r: 8deg; animation-delay: 0.7s; animation-duration: 4.2s;
}

.star { top: 60px; left: 30px; font-size: 2rem; color: var(--gold); --r: 12deg; animation-delay: 0.5s; animation-duration: 3.5s; }

.tag-ip {
  bottom: 100px; left: 20px;
  background: var(--mist); border: 3px solid var(--ink);
  padding: 0.4rem 0.9rem;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.12em; color: var(--navy);
  box-shadow: 3px 3px 0 var(--ink);
  --r: 4deg; animation-delay: 1s; animation-duration: 4.6s;
}

.dot-accent { width: 18px; height: 18px; border-radius: 50%; background: var(--navy-lt); border: 2px solid var(--ink); }
.dot-1 { top: 160px; left: 5px; animation-delay: 0.2s; }
.dot-2 { bottom: 60px; right: 110px; animation-delay: 1.2s; }

/* ── STRIPE ── */
.stripe {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--navy) 0, var(--navy) 25%,
    var(--gold) 25%, var(--gold) 50%,
    var(--navy-lt) 50%, var(--navy-lt) 75%,
    var(--ink) 75%, var(--ink) 100%
  );
}

/* ── ABOUT ── */
#about {
  background: var(--gold);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  padding: 6rem 4rem;
}

#about h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 1.25rem; color: var(--ink);
}

#about p { font-size: 0.97rem; line-height: 1.8; color: var(--ink); max-width: 420px; margin-bottom: 0.9rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.badge {
  padding: 0.35rem 0.9rem; border: 2px solid var(--ink);
  font-family: 'Space Mono', monospace; font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: white; box-shadow: 2px 2px 0 var(--ink);
  display: inline-block;
}

.about-vis { display: flex; align-items: center; justify-content: center; }

/* ── SERVICES ── */
#services { background: var(--cream); padding: 6rem 4rem; }

#services h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.section-sub {
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 3rem;
}

.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.25rem; }

.card {
  border: 3px solid var(--ink);
  padding: 1.75rem 1.4rem;
  background: white;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .14s, box-shadow .14s;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); }

.card:nth-child(1) { background: var(--navy); color: white; }
.card:nth-child(2) { background: var(--mist); }
.card:nth-child(3) { background: var(--gold); }
.card:nth-child(4) { background: var(--cream); }

.card-icon { margin-bottom: 1.1rem; }
.card h3 { font-family: 'Space Mono', monospace; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.65rem; line-height: 1.3; }
.card:nth-child(1) h3 { color: var(--gold); }
.card p { font-size: 0.87rem; line-height: 1.65; opacity: 0.85; margin-bottom: 0.9rem; }
.card-list { list-style: none; font-size: 0.78rem; line-height: 1.8; opacity: 0.8; }
.card-list li::before { content: '— '; }

/* ── FOUNDER ── */
#founder {
  background: var(--mist);
  padding: 6rem 4rem;
  display: grid; grid-template-columns: auto 1fr;
  gap: 3.5rem; align-items: center;
}
.founder-vis { display: flex; justify-content: center; }
.founder-text h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.founder-lede { font-family: 'Space Mono', monospace; font-size: 0.78rem; color: var(--navy); margin-bottom: 1.25rem; }
.founder-text p:not(.founder-lede):not(.section-sub) { font-size: 0.95rem; line-height: 1.8; max-width: 560px; margin-bottom: 1.25rem; }
.founder-badges { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* ── NEWS ── */
#news {
  background: var(--white);
  padding: 6rem 4rem;
  border-top: 3px solid var(--mist);
}

#news h2, #gallery h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.news-lede, .gallery-lede {
  color: #4b516f;
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 2rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.news-card {
  display: block;
  text-decoration: none;
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: 1.4rem;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}

.news-card:hover, .news-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.news-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.news-card h3 {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.news-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #47506b;
}

/* ── GALLERY ── */
#gallery {
  background: var(--mist);
  padding: 6rem 4rem;
}

.carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.carousel-viewport {
  position: relative;
  min-height: 360px;
  border: 3px solid var(--ink);
  overflow: hidden;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(11, 14, 77, 0.84);
  color: var(--white);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  backdrop-filter: blur(4px);
}

.carousel-caption strong {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
}

.carousel-caption span {
  font-size: 0.84rem;
  opacity: 0.95;
}

.carousel-btn {
  border: 3px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  width: 46px;
  height: 46px;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--navy);
}

/* ── ESTIMATOR ── */
#estimator { background: var(--navy-dk); padding: 6rem 4rem; }
#estimator .section-sub { color: var(--gold); }
#estimator h2 { font-family: 'Space Mono', monospace; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--white); letter-spacing: -0.02em; margin-bottom: 1rem; }
.estimator-lede { color: #99a; line-height: 1.75; max-width: 600px; margin-bottom: 2.5rem; }

.estimator-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--gold);
  padding: 2.5rem;
  max-width: 760px;
}

.est-steps { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.est-step {
  font-family: 'Space Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: #999; padding-bottom: 0.5rem; border-bottom: 3px solid transparent;
}
.est-step.active { color: var(--ink); border-bottom-color: var(--gold); }

.est-panel.hidden { display: none; }

.est-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; }
.est-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  background: white; border: 3px solid var(--ink); padding: 1.25rem;
  cursor: pointer; text-align: left; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
  font-family: inherit;
}
.est-option:hover, .est-option:focus-visible { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.est-option.selected { background: var(--gold); }
.est-icon { font-size: 1.6rem; }
.est-opt-title { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 0.9rem; }
.est-opt-sub { font-size: 0.78rem; opacity: 0.7; }

.est-checklist { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.est-check {
  display: flex; align-items: center; gap: 0.75rem;
  background: white; border: 2px solid var(--ink); padding: 0.9rem 1.1rem;
  cursor: pointer; font-size: 0.88rem;
}
.est-check input { width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.est-check .est-check-price { margin-left: auto; font-family: 'Space Mono', monospace; font-size: 0.78rem; color: var(--navy); }

.est-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

.est-result { display: flex; flex-direction: column; gap: 1.25rem; }
.est-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 0; border-bottom: 2px dashed #ccc;
  font-size: 0.92rem;
}
.est-result-row.total {
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1.1rem;
  border-bottom: none; padding-top: 1rem; color: var(--navy);
}
.est-timeline {
  background: var(--mist); border: 2px solid var(--ink); padding: 1rem 1.25rem;
  font-family: 'Space Mono', monospace; font-size: 0.82rem;
}
.est-note { font-size: 0.78rem; color: #777; line-height: 1.6; }

/* ── CONTACT ── */
#contact {
  background: var(--navy-dk);
  padding: 6rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}

#contact h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.1;
}
#contact h2 em { color: var(--gold); font-style: normal; }

.contact-lede { color: #99a; line-height: 1.75; margin-bottom: 2rem; font-size: 0.95rem; }

.contact-rows { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-row { display: flex; align-items: center; gap: 0.75rem; color: var(--white); font-size: 0.9rem; }
.cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: #778; }
.field input, .field textarea {
  background: rgba(255,255,255,0.06); border: 2px solid #334;
  padding: 0.7rem 1rem; color: white;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.92rem;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { height: 96px; resize: none; }

.form-status { font-family: 'Space Mono', monospace; font-size: 0.8rem; min-height: 1.2em; }
.form-status.success { color: var(--gold); }
.form-status.error { color: var(--coral); }

/* ── FOOTER ── */
footer {
  background: var(--ink); border-top: 3px solid #222;
  padding: 1.25rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Space Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.06em; color: #445;
  flex-wrap: wrap; gap: 0.5rem;
}
footer em { color: var(--gold); font-style: normal; }

/* ── RESPONSIVE ── */
@media (max-width: 880px) {
  nav { padding: 0.9rem 1.5rem; }
  nav ul {
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; gap: 0;
    border-bottom: 3px solid var(--ink);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  nav ul.open { max-height: 320px; }
  nav ul li { width: 100%; }
  nav ul a { display: block; padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: flex; }

  #hero, #about, #founder, #contact { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; }
  #services, #estimator, #news, #gallery { padding: 4rem 1.5rem; }
  .hero-vis { height: 320px; order: -1; }
  .carousel { grid-template-columns: 1fr; }
  .carousel-btn { display: none; }
  .carousel-viewport { min-height: 280px; }
  .founder-vis { order: -1; }
  .estimator-card { padding: 1.5rem; }
  footer { flex-direction: column; text-align: center; padding: 1.25rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  html { scroll-behavior: auto; }
}
