:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5f6f85;
  --navy: #13213d;
  --gold: #f2a900;
  --blue: #2d6cdf;
  --green: #2a9d8f;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --line: #d9e2ee;
  --shadow: 0 24px 70px rgba(19, 33, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(45, 108, 223, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 108, 223, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-frame {
  min-height: 100vh;
}

.side-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 276px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 28px 22px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 40px rgba(19, 33, 61, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--gold);
  border: 3px solid var(--gold);
  border-radius: 12px 4px 12px 4px;
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 19px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.site-nav {
  display: grid;
  gap: 8px;
}

.site-nav a {
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #334155;
  font-weight: 850;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--navy);
  background: #f3f7ff;
  border-color: #c9d9f5;
}

.nav-toggle {
  display: none;
}

.nav-note {
  margin-top: auto;
  padding: 16px;
  background: var(--navy);
  color: #ffffff;
  border-radius: 6px;
}

.nav-note strong,
.nav-note span,
.nav-note a {
  display: block;
}

.nav-note span {
  margin: 9px 0 14px;
  color: #cbd8ed;
  line-height: 1.5;
  font-size: 14px;
}

.nav-note a {
  color: var(--gold);
  font-weight: 900;
  font-size: 14px;
}

main,
.site-footer {
  margin-left: 276px;
}

main {
  padding: 34px clamp(18px, 4vw, 64px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: stretch;
  gap: 26px;
  min-height: 610px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 7vw, 86px);
  background: var(--navy);
  color: #ffffff;
  border-radius: 0 38px 0 38px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.cta-panel .eyebrow,
.nav-note .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy p,
.cta-panel p {
  color: #d8e3f7;
}

.lead {
  font-size: 19px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  font-weight: 950;
  cursor: pointer;
}

.button.primary {
  background: var(--gold);
  color: #1d2638;
  border-color: var(--gold);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 38px 0 38px 0;
  box-shadow: var(--shadow);
}

.hero-visual img,
.tall-panel img,
.story-layout img,
.split-proof img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.score-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(260px, calc(100% - 36px));
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.score-card span,
.score-card small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.score-card strong {
  display: block;
  margin: 6px 0;
  color: var(--green);
  font-size: 44px;
  line-height: 1;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics-strip div {
  padding: 24px;
  background: #ffffff;
}

.metrics-strip strong {
  display: block;
  color: var(--navy);
  font-size: 40px;
}

.metrics-strip span {
  color: var(--muted);
  font-weight: 750;
}

.roadmap,
.program-snapshot,
.feature-board,
.comparison,
.faq-section,
.story-layout,
.values-lab,
.team-board,
.split-proof,
.case-ledger,
.image-mosaic,
.report-card,
.contact-hero,
.contact-grid,
.filter-panel {
  margin: clamp(48px, 8vw, 92px) 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-intro.compact {
  max-width: 940px;
}

.roadmap-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--navy);
}

.roadmap-line article {
  position: relative;
  padding: 30px 24px 0 0;
}

.roadmap-line article::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 4px solid var(--navy);
  border-radius: 50%;
}

.roadmap-line span,
.service-card span,
.case-ledger span,
.report-columns span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.program-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 22px;
}

.tall-panel {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tall-panel div {
  padding: clamp(24px, 4vw, 42px);
}

.program-list {
  display: grid;
  gap: 14px;
}

.program-link {
  display: grid;
  gap: 9px;
  min-height: 128px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 8px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(19, 33, 61, 0.08);
}

.program-link span {
  color: var(--blue);
  font-weight: 950;
}

.program-link strong {
  font-size: 20px;
  line-height: 1.35;
}

.feature-grid,
.team-grid,
.value-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-grid article,
.value-columns article,
.team-grid article,
.contact-card,
.estimate-tool,
.inquiry-form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(19, 33, 61, 0.07);
}

.feature-grid article,
.value-columns article {
  padding: 24px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 72px 0 30px;
  padding: clamp(28px, 5vw, 48px);
  background: var(--navy);
  color: #ffffff;
  border-radius: 8px;
}

.cta-panel div {
  max-width: 720px;
}

.page-hero {
  padding: clamp(42px, 8vw, 86px) 0 24px;
  border-bottom: 4px solid var(--navy);
}

.page-hero p {
  max-width: 780px;
  font-size: 18px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.filter-button.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.service-grid {
  display: grid;
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card[hidden] {
  display: none;
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.service-card div {
  padding: 28px;
}

.service-card li,
.check-list li {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.compare-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.compare-table div {
  display: grid;
  grid-template-columns: 0.75fr 0.75fr 1.2fr;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.compare-table div:first-child {
  border-top: 0;
}

.compare-table span {
  color: var(--muted);
  line-height: 1.5;
}

.compare-table .table-head {
  background: var(--navy);
}

.compare-table .table-head span {
  color: #ffffff;
  font-weight: 950;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-question {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 20px 12px;
}

.faq-question.open + .faq-answer {
  display: block;
}

.story-layout,
.split-proof,
.contact-hero,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 26px;
  align-items: center;
}

.story-layout img,
.split-proof img {
  min-height: 430px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.value-columns {
  grid-template-columns: repeat(3, 1fr);
}

.team-grid {
  grid-template-columns: repeat(3, 1fr);
}

.team-grid article {
  overflow: hidden;
}

.team-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.team-grid h3,
.team-grid p,
.team-grid span {
  margin-left: 18px;
  margin-right: 18px;
}

.team-grid h3 {
  margin-top: 18px;
}

.team-grid span {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.case-ledger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.case-ledger article,
.report-card {
  padding: clamp(24px, 5vw, 44px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-ledger strong {
  display: block;
  color: var(--navy);
  line-height: 1.6;
}

.image-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 250px;
  gap: 14px;
}

.mosaic-item {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
}

.mosaic-item.large {
  grid-row: span 2;
}

.mosaic-item.wide {
  grid-column: span 2;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.mosaic-item:hover img {
  transform: scale(1.04);
}

.report-card {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 22px;
}

.report-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.report-columns div {
  padding: 18px;
  background: #f3f7ff;
  border: 1px solid #c9d9f5;
  border-radius: 6px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 13, 24, 0.86);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(980px, 94vw);
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox p {
  max-width: min(780px, 94vw);
  color: #ffffff;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 950;
  cursor: pointer;
}

.contact-card,
.estimate-tool,
.inquiry-form {
  padding: 24px;
}

.contact-card strong {
  color: var(--blue);
}

.inquiry-form,
.estimate-tool {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.estimate-output {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--navy);
  color: #ffffff;
  border-radius: 6px;
}

.estimate-output span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .side-header {
    position: sticky;
    inset: 0 0 auto 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 14px 18px;
  }

  .nav-toggle {
    display: grid;
    gap: 4px;
    width: 44px;
    height: 42px;
    margin-left: auto;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--navy);
  }

  .site-nav {
    position: absolute;
    top: 75px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .side-header.menu-open .site-nav {
    display: grid;
  }

  .nav-note {
    display: none;
  }

  main,
  .site-footer {
    margin-left: 0;
  }

  .hero-grid,
  .program-snapshot,
  .story-layout,
  .split-proof,
  .contact-hero,
  .contact-grid,
  .report-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  main {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

  .metrics-strip,
  .roadmap-line,
  .feature-grid,
  .team-grid,
  .value-columns,
  .case-ledger,
  .tall-panel,
  .service-card,
  .compare-table div,
  .report-columns {
    grid-template-columns: 1fr;
  }

  .roadmap-line {
    gap: 16px;
    border-top: 0;
  }

  .roadmap-line article {
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 6px solid var(--gold);
    border-radius: 6px;
  }

  .roadmap-line article::before {
    display: none;
  }

  .image-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .mosaic-item.large,
  .mosaic-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .cta-panel,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.gallery-return {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 3px solid var(--gold);
  border-radius: 12px 4px 12px 4px;
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(19, 33, 61, 0.24);
  font-size: 14px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.gallery-return:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(19, 33, 61, 0.3);
}

@media (max-width: 520px) {
  .gallery-return {
    right: 12px;
    bottom: 12px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }
}
