:root {
  --navy: #1a2332;
  --navy-deep: #10161f;
  --navy-mid: #243044;
  --red: #da0000;
  --red-hover: #b80000;
  --steel: #2e6b8a;
  --steel-soft: #3d7fa0;
  --ink: #1a1d21;
  --muted: #5c6570;
  --line: #d7dde3;
  --paper: #f4f5f7;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(16, 22, 31, 0.12);
  --radius: 10px;
  --header-h: 84px;
  --max: 1120px;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--red);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.site-logo-text {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 42rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  height: 60px;
  width: auto;
}

.brand-name {
  display: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-name span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.62);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-hover);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.header-cta {
  margin-left: 0.5rem;
  padding: 0.7rem 1rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(16, 22, 31, 0.92) 18%, rgba(26, 35, 50, 0.78) 58%, rgba(218, 0, 0, 0.28) 100%),
    radial-gradient(circle at 80% 20%, rgba(218, 0, 0, 0.35), transparent 38%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 5.5rem 0 4.75rem;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -22%;
  width: 48%;
  height: 120%;
  background: linear-gradient(180deg, transparent 0%, rgba(218, 0, 0, 0.16) 40%, transparent 72%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.trust-bar {
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.6rem 0;
}

.trust-item {
  padding: 0.35rem 0.75rem;
  border-left: 3px solid var(--red);
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Page sections */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.4rem 0 2.8rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  top: -20%;
  width: 180px;
  height: 180px;
  background: var(--red);
  opacity: 0.18;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.8);
}

.section {
  padding: 4.25rem 0;
}

.section-muted {
  background: var(--paper);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.grid-2,
.grid-3,
.grid-5 {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.btn-light {
  background: var(--white);
  color: var(--red);
}

.btn-light:hover {
  background: #fff4f4;
  color: var(--red-hover);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.25rem;
  box-shadow: 0 1px 0 rgba(16, 22, 31, 0.03);
  height: 100%;
}

.card:hover {
  border-color: #c5ced6;
  box-shadow: var(--shadow);
}

.icon-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(218, 0, 0, 0.08);
  color: var(--red);
  border-radius: 8px;
}

.icon-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card {
  background: var(--navy);
  color: var(--white);
  border: 0;
}

.value-card .eyebrow {
  color: #ff8d8d;
}

.value-card p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.project-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.project-media {
  min-height: 150px;
  background:
    linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #6a1010 100%);
  color: var(--white);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.project-media::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 0.4rem;
  width: 54px;
  height: 72px;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}

.project-media .tag {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.project-body {
  padding: 1.2rem 1.25rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body p {
  color: var(--muted);
  flex: 1;
}

.meta {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 3.2rem 0;
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band p {
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.stat {
  border-top: 3px solid var(--red);
  padding-top: 0.75rem;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin: 0 0 1.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-list a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--red);
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1rem;
}

.form label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 35, 50, 0.12);
}

.form .error {
  display: none;
  margin: 0.35rem 0 0;
  color: var(--red);
  font-size: 0.9rem;
}

.form .is-invalid + .error,
.form .is-invalid ~ .error {
  display: block;
}

.form-status {
  display: none;
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  background: #e8f3ea;
  color: #215c2e;
  font-weight: 600;
}

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

.form-status.is-error {
  background: #fde8e8;
  color: #8a1212;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.map-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.45rem;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  font-size: 0.9rem;
}

.list-plain {
  margin: 0;
  padding-left: 1.1rem;
}

.list-plain li {
  margin-bottom: 0.45rem;
}

.prose {
  max-width: 44rem;
}

@media (max-width: 980px) {
  .grid-5,
  .grid-3,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a,
  .header-cta {
    margin: 0.2rem 0;
  }

  .header-cta {
    width: 100%;
  }

  .brand-name {
    display: block;
  }

  .brand img {
    height: 50px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .grid-2,
  .grid-3,
  .grid-5,
  .trust-grid,
  .stat-row,
  .pair {
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    padding: 3.2rem 0;
  }

  .header-inner {
    min-height: 72px;
  }
}
