:root {
  --night: #061314;
  --night-soft: #0b2021;
  --ink: #f4fffc;
  --text: #d9e9e6;
  --muted: #9fb7b5;
  --line: rgba(126, 213, 204, 0.24);
  --paper: #061314;
  --soft: rgba(95, 189, 181, 0.16);
  --surface: rgba(8, 24, 25, 0.84);
  --surface-strong: rgba(10, 31, 32, 0.92);
  --white: #ffffff;
  --teal: #087a73;
  --teal-dark: #53d0c6;
  --copper: #c56f56;
  --amber: #d3a24c;
  --aqua: #5fbdb5;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max: 1160px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 18% 6%, rgba(197, 111, 86, 0.22), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(95, 189, 181, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(95, 189, 181, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(95, 189, 181, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #061314 0%, #082022 48%, #061314 100%),
    var(--paper);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 76px 0 0;
  z-index: 0;
  pointer-events: none;
  background: url("../images/cap-logo.webp") center 72px / min(1120px, 118vw) auto no-repeat;
  filter: saturate(1.18) contrast(1.08) brightness(0.86);
  mix-blend-mode: screen;
  opacity: 0.19;
}

body > :not(script) {
  position: relative;
  z-index: 1;
}

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

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

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--night);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(95, 189, 181, 0.22);
  background: rgba(5, 17, 18, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  filter: saturate(1.08) contrast(1.06);
  box-shadow: 0 10px 28px rgba(95, 189, 181, 0.28), 0 0 0 1px rgba(197, 111, 86, 0.3);
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.brand-meta {
  color: #abc3c0;
  font-size: 0.78rem;
  line-height: 1.2;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: var(--radius);
  color: #c1d5d2;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 10px 12px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 213, 204, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: linear-gradient(135deg, #0a8179, #05645f);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(83, 208, 198, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, #0b9087, #08716b);
}

.button-secondary {
  border-color: rgba(126, 213, 204, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--white);
  color: var(--night);
}

.button-dark {
  background: var(--night);
  color: var(--white);
}

.icon-arrow {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(6, 19, 20, 0.76), rgba(8, 40, 41, 0.46) 52%, rgba(10, 54, 53, 0.3)),
    linear-gradient(90deg, rgba(95, 189, 181, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(95, 189, 181, 0.055) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.hero-home {
  min-height: calc(92vh - 76px);
  display: flex;
  align-items: center;
}

.hero-page {
  padding: 92px 0 76px;
}

.hero-logo-bg {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 82px 0;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--copper);
}

.hero h1,
.page-title {
  margin-top: 18px;
  color: var(--ink);
  font-size: 3.75rem;
  line-height: 1.02;
  font-weight: 850;
}

.hero-lede {
  max-width: 660px;
  margin-top: 24px;
  color: #bed1cf;
  font-size: 1.2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(100% - 40px, var(--max));
  margin: -28px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(126, 213, 204, 0.2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.proof-item {
  min-height: 118px;
  background: rgba(6, 22, 23, 0.82);
  backdrop-filter: blur(10px);
  padding: 22px;
}

.proof-label {
  color: #92aaa7;
  font-size: 0.85rem;
  font-weight: 750;
}

.proof-value {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 68px 0;
}

.section-soft {
  background: rgba(7, 28, 29, 0.72);
  backdrop-filter: blur(2px);
}

.section-ink {
  background: linear-gradient(135deg, rgba(3, 19, 20, 0.96), rgba(8, 43, 43, 0.94));
  color: var(--white);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.5fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}

.section-kicker {
  color: var(--teal-dark);
  font-weight: 850;
}

.section-ink .section-kicker {
  color: #8fe4da;
}

.section-title {
  margin-top: 12px;
  color: var(--ink);
  font-size: 2.45rem;
  line-height: 1.13;
  font-weight: 850;
}

.section-ink .section-title {
  color: var(--white);
}

.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-ink .section-copy {
  color: #c4cece;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.value-card,
.contact-panel,
.form-panel,
.market-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}

.service-card {
  min-height: 296px;
  padding: 26px;
}

.service-card:hover {
  border-color: rgba(8, 122, 115, 0.5);
  box-shadow: 0 18px 44px rgba(8, 122, 115, 0.14);
}

.service-number,
.step-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--soft);
  color: #8fe4da;
  font-weight: 850;
}

.service-card h3,
.value-card h3,
.market-card h3 {
  margin-top: 22px;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.25;
}

.service-card p,
.value-card p,
.market-card p {
  margin-top: 12px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--teal-dark);
  font-weight: 850;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--copper);
  outline: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.55fr);
  gap: 46px;
  align-items: start;
}

.split-reverse {
  grid-template-columns: minmax(300px, 0.55fr) minmax(0, 0.85fr);
}

.lead {
  color: #bed1cf;
  font-size: 1.18rem;
  line-height: 1.75;
}

.body-copy {
  color: var(--muted);
  font-size: 1.03rem;
}

.body-copy + .body-copy {
  margin-top: 18px;
}

.highlight-panel {
  border-left: 4px solid var(--copper);
  background: var(--surface-strong);
  backdrop-filter: blur(10px);
  padding: 30px;
  box-shadow: var(--shadow);
}

.highlight-panel h3 {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.24;
}

.highlight-panel p {
  margin-top: 12px;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.section-ink .check-list li {
  color: #e6eeee;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  padding: 24px;
}

.process-step h3 {
  margin-top: 24px;
  color: var(--white);
  font-size: 1.08rem;
}

.process-step p {
  margin-top: 10px;
  color: #c4cece;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(4, 86, 83, 0.96), rgba(92, 48, 39, 0.88));
  color: var(--white);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: auto -10% -130px auto;
  width: 520px;
  height: 260px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 22px);
  transform: rotate(-7deg);
}

.cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) auto;
  gap: 28px;
  align-items: center;
}

.cta-content h2 {
  font-size: 2.1rem;
  line-height: 1.15;
}

.cta-content p {
  margin-top: 12px;
  color: #dce9e7;
}

.detail-list {
  display: grid;
  gap: 22px;
}

.service-detail {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  border-top: 1px solid var(--line);
  padding: 38px 0;
}

.service-detail:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-tag {
  display: inline-flex;
  width: max-content;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 850;
  padding: 8px 12px;
}

.service-detail h2 {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.16;
}

.service-detail p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.04rem;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.deliverables li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 12px 14px;
  color: var(--text);
  font-weight: 650;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.market-card {
  padding: 26px;
}

.about-logo {
  width: min(330px, 70%);
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--white);
  filter: saturate(1.08) contrast(1.06);
  box-shadow: 0 24px 70px rgba(95, 189, 181, 0.22), 0 0 0 1px rgba(197, 111, 86, 0.28);
}

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

.value-card {
  padding: 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.46fr) minmax(0, 0.74fr);
  gap: 22px;
  align-items: start;
}

.contact-panel,
.form-panel {
  padding: 28px;
}

.contact-panel {
  display: grid;
  gap: 22px;
}

.contact-method {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.contact-method:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.contact-method span {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 750;
}

.contact-method a,
.contact-method p {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(126, 213, 204, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  padding: 13px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(22, 107, 100, 0.12);
  outline: none;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  display: none;
  margin-bottom: 18px;
  border-radius: var(--radius);
  padding: 13px 14px;
  font-weight: 750;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  border: 1px solid rgba(22, 107, 100, 0.26);
  background: rgba(22, 107, 100, 0.09);
  color: var(--teal-dark);
}

.form-status.error {
  border: 1px solid rgba(184, 107, 85, 0.28);
  background: rgba(184, 107, 85, 0.1);
  color: #7b3929;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 13, 14, 0.98);
  color: #dce4e2;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
}

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

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  filter: saturate(1.08) contrast(1.06);
}

.footer-brand strong {
  display: block;
  color: var(--white);
}

.footer-brand span,
.footer-meta {
  color: #aebaba;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
  outline: none;
}

@media (max-width: 980px) {
  .hero h1,
  .page-title {
    font-size: 3rem;
  }

  .section-header,
  .split,
  .split-reverse,
  .cta-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .market-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .container,
  .hero-content,
  .hero-proof {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 86px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-wrap {
    width: 100%;
  }

  .nav-links {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: var(--shadow);
    padding: 4px;
    width: 100%;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 9px 6px;
    text-align: center;
    font-size: 0.84rem;
  }

  .hero-home {
    min-height: auto;
  }

  .hero-page {
    padding: 70px 0 58px;
  }

  .hero-content {
    padding: 64px 0 78px;
  }

  .hero-logo-bg {
    display: none;
  }

  .hero h1,
  .page-title {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-proof,
  .card-grid,
  .market-grid,
  .process-grid,
  .value-grid,
  .deliverables,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .section-tight {
    padding: 52px 0;
  }

  .section-title,
  .service-detail h2,
  .cta-content h2 {
    font-size: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
