:root {
  --ink: #17212b;
  --muted: #5f6f7d;
  --line: #d8e1e8;
  --paper: #f6f8f9;
  --white: #ffffff;
  --blue: #1f5d7a;
  --blue-dark: #103244;
  --teal: #3d8d8a;
  --yellow: #f1b82d;
  --shadow: 0 20px 50px rgba(16, 50, 68, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 58px);
  background: rgba(246, 248, 249, 0.94);
  border-bottom: 1px solid rgba(216, 225, 232, 0.8);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(216, 225, 232, 0.95);
}

.brand-text {
  max-width: 230px;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 13px;
  color: #263746;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue);
}

.site-nav .nav-cta {
  margin-left: 6px;
  color: var(--white);
  background: var(--blue);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  color: var(--white);
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 24, 35, 0.84) 0%, rgba(9, 24, 35, 0.62) 42%, rgba(9, 24, 35, 0.2) 100%);
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 48px 0 72px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 590px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero-actions,
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 48px;
  justify-content: center;
  padding: 13px 19px;
  border: 2px solid transparent;
  font-weight: 800;
}

.button.primary {
  color: var(--blue-dark);
  background: var(--yellow);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
}

.intro-grid,
.split,
.capability-table,
.story-layout,
.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro-grid > p,
.split p,
.story-layout p,
.capability-table p,
.request-aside p {
  color: var(--muted);
  font-size: 1.04rem;
}

.service-band,
.values,
.project-grid,
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-band article,
.values article,
.project-card,
.process article,
.stats-panel,
.request-form,
.request-aside {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-band article,
.values article,
.process article {
  min-height: 230px;
  padding: 28px;
}

.service-band .icon,
.process span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
}

.service-band p,
.values p,
.project-card p,
.process p,
.table-like span {
  color: var(--muted);
}

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

.check-list p {
  margin: 0;
  padding: 20px 22px;
  background: var(--white);
  border-left: 5px solid var(--teal);
}

.page-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 84px clamp(18px, 7vw, 96px) 70px;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(16, 50, 68, 0.94), rgba(31, 93, 122, 0.74)),
    linear-gradient(135deg, var(--blue-dark), var(--teal));
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.2rem, 5.8vw, 4.6rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.about-hero {
  background:
    linear-gradient(100deg, rgba(16, 50, 68, 0.95), rgba(61, 141, 138, 0.72)),
    url("assets/ccs-hero.png") center/cover;
}

.contact-hero,
.projects-hero,
.request-hero {
  position: relative;
}

.contact-hero::after,
.projects-hero::after,
.request-hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 8vw, 112px);
  bottom: 56px;
  width: min(310px, 33vw);
  aspect-ratio: 1;
  border: 18px solid rgba(241, 184, 45, 0.7);
  transform: rotate(8deg);
}

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

.stats-panel {
  display: grid;
  gap: 1px;
  padding: 0;
  overflow: hidden;
}

.stats-panel div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  background: var(--white);
}

.stats-panel strong {
  color: var(--blue);
  font-size: 2rem;
}

.stats-panel span {
  color: var(--muted);
  font-weight: 700;
}

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

.values article {
  min-height: 185px;
  border-top: 5px solid var(--yellow);
}

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

.capability-table {
  align-items: center;
}

.contact-layout {
  align-items: stretch;
}

.contact-panel,
.contact-card-large {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-panel {
  padding: clamp(24px, 4vw, 38px);
}

.contact-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

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

.contact-row span {
  color: var(--muted);
}

.contact-card-large {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
}

.contact-card-large img {
  width: min(260px, 70%);
  margin-bottom: 8px;
}

.contact-card-large p {
  color: var(--muted);
}

.table-like {
  border: 1px solid var(--line);
  background: var(--white);
}

.table-like div {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.table-like div:last-child {
  border-bottom: 0;
}

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

.section-heading {
  max-width: 840px;
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.project-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-top: 6px solid var(--blue);
}

.project-card span {
  width: max-content;
  margin-bottom: 28px;
  padding: 6px 10px;
  color: var(--blue-dark);
  background: rgba(241, 184, 45, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.completed-projects {
  padding-top: 0;
}

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

.photo-project {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: var(--blue-dark);
  box-shadow: var(--shadow);
}

.photo-project.wide {
  grid-column: span 2;
}

.photo-project img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.photo-project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 32, 44, 0.02) 30%, rgba(12, 32, 44, 0.88) 100%);
}

.photo-project:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.photo-project figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 24px;
  color: var(--white);
}

.photo-project figcaption span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  color: var(--blue-dark);
  background: var(--yellow);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.photo-project figcaption strong {
  display: block;
  max-width: 520px;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  line-height: 1.08;
}

.results-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  background: var(--blue-dark);
}

.results-strip div {
  padding: 28px;
  color: var(--white);
  background: var(--blue-dark);
}

.results-strip strong,
.results-strip span {
  display: block;
}

.results-strip strong {
  font-size: 1.3rem;
}

.results-strip span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.request-form,
.request-aside {
  padding: clamp(22px, 4vw, 34px);
}

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

label,
fieldset {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--blue-dark);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #b9c6cf;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
}

textarea {
  resize: vertical;
}

fieldset {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  padding: 14px;
}

legend {
  padding: 0 8px;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
}

fieldset input {
  width: auto;
}

.form-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.request-aside {
  position: sticky;
  top: 104px;
}

.contact-card {
  margin-top: 28px;
  padding: 20px;
  color: var(--white);
  background: var(--blue-dark);
}

.contact-card strong,
.contact-card span {
  display: block;
}

.contact-card span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 58px);
  color: var(--white);
  background: #0c202c;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 18px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(9, 24, 35, 0.88), rgba(9, 24, 35, 0.48));
  }

  .intro-grid,
  .split,
  .capability-table,
  .story-layout,
  .request-layout,
  .service-band,
  .values,
  .project-grid,
  .process,
  .results-strip {
    grid-template-columns: 1fr;
  }

  .photo-project-grid {
    grid-template-columns: 1fr;
  }

  .photo-project.wide {
    grid-column: auto;
  }

  .request-aside {
    position: static;
  }

  .contact-hero::after,
  .projects-hero::after,
  .request-hero::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .brand-text {
    display: none;
  }

  .site-header {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
  }

  .hero-actions {
    display: grid;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .page-hero {
    min-height: 390px;
    padding-top: 64px;
  }

  .form-grid,
  .table-like div,
  .contact-row,
  fieldset {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}
