:root {
  --ink: #092f4b;
  --deep: #0f4d61;
  --teal: #3b9d97;
  --mint: #a7dfc1;
  --paper: #fbfbf7;
  --line: #dce7e2;
  --muted: #53676c;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(9, 47, 75, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(251, 251, 247, 0.92);
  border-bottom: 1px solid rgba(220, 231, 226, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  width: min(188px, 42vw);
}

.brand img {
  mix-blend-mode: multiply;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--deep);
}

nav a[aria-current="page"] {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  min-height: calc(100vh - 82px);
  padding: clamp(52px, 8vw, 108px) clamp(20px, 5vw, 72px) clamp(42px, 7vw, 82px);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: clamp(34px, 6vw, 80px);
  padding: clamp(58px, 9vw, 128px) clamp(20px, 5vw, 72px) clamp(50px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.services-hero {
  background:
    linear-gradient(135deg, rgba(251, 251, 247, 0.94), rgba(255, 255, 255, 0.86)),
    url("assets/nasco-logo.jpg") right clamp(20px, 5vw, 72px) center / min(44vw, 520px) auto no-repeat;
}

.page-hero h1 {
  max-width: 920px;
}

.hero-panel {
  padding: 26px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel span {
  display: block;
  margin-bottom: 16px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1;
  font-weight: 500;
}

.hero-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.hero-copy {
  max-width: 720px;
}

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

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.15rem);
  line-height: 1.02;
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.16rem;
}

.hero-lede,
.meaning p,
.contact p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--deep);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.business-card {
  width: min(100%, 620px);
  aspect-ratio: 1.72;
  perspective: 1400px;
  outline: none;
}

.business-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.25s cubic-bezier(0.2, 0.72, 0.16, 1);
}

.business-card:hover .business-card-inner,
.business-card:focus-visible .business-card-inner {
  transform: rotateY(180deg);
}

.business-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  backface-visibility: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.business-card-front {
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 44px);
}

.business-card-front img {
  width: 100%;
  mix-blend-mode: multiply;
}

.business-card-back {
  background: var(--white);
  transform: rotateY(180deg);
}

.business-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meaning,
.section,
.approach,
.contact,
.service-intro,
.workstreams,
.deliverables,
.timeline-section,
.service-notes {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.meaning {
  position: relative;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 72px);
  min-height: clamp(440px, 58vw, 660px);
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 47, 75, 0.86), rgba(9, 47, 75, 0.5) 48%, rgba(9, 47, 75, 0.18)),
    url("assets/bridge-loop.webp") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.meaning h2 {
  max-width: 980px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.meaning .section-kicker {
  color: var(--mint);
}

.meaning p {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.24);
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(30px, 5vw, 54px);
}

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

.service-card {
  min-height: 300px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-number {
  display: block;
  margin-bottom: 70px;
  color: var(--teal);
  font-weight: 900;
}

.service-card p,
.approach-list p,
.section-heading p,
.service-intro p,
.objective-list p,
.workstream-grid li,
.timeline p,
.service-notes p,
.service-notes li {
  color: var(--muted);
}

.service-intro {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.service-intro h2,
.service-intro p {
  max-width: 960px;
}

.objective-list {
  display: grid;
  gap: 1px;
  max-width: 1080px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.objective-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: var(--white);
}

.objective-list span,
.deliverable-grid span,
.timeline span {
  color: var(--teal);
  font-weight: 900;
}

.objective-list p {
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.workstreams {
  color: var(--white);
  background: var(--ink);
}

.workstreams .section-kicker,
.workstreams h2,
.workstreams h3 {
  color: var(--white);
}

.workstreams .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

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

.workstream-grid article {
  min-height: 520px;
  padding: clamp(24px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(167, 223, 193, 0.36);
  border-radius: 8px;
}

.workstream-grid .card-number {
  margin-bottom: 54px;
  color: var(--mint);
}

.workstream-grid ul,
.service-notes ul {
  margin: 20px 0 0;
  padding-left: 20px;
}

.workstream-grid li {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.deliverables {
  background: var(--white);
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.deliverable-grid div {
  min-height: 184px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.deliverable-grid div:nth-child(3n) {
  border-right: 0;
}

.deliverable-grid div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.deliverable-grid p {
  margin: 42px 0 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.timeline-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 1040px;
  border-top: 1px solid var(--line);
}

.timeline div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.timeline p {
  grid-column: 2;
  margin: -14px 0 0;
}

.service-notes {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  background: var(--white);
}

.exclusions {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.approach {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(9, 47, 75, 0.96), rgba(15, 77, 97, 0.94)),
    url("assets/nasco-logo.jpg") center / 760px auto no-repeat;
}

.approach .section-kicker,
.approach h2 {
  color: var(--white);
}

.approach-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.approach-list div {
  padding-top: 24px;
  border-top: 1px solid rgba(167, 223, 193, 0.5);
}

.approach-list p {
  color: rgba(255, 255, 255, 0.78);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  background: var(--white);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 20px;
  color: var(--white);
  background: var(--teal);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .meaning,
  .contact,
  .page-hero,
  .service-intro,
  .service-notes {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .business-card {
    max-width: 620px;
  }

  .service-grid,
  .approach-list,
  .workstream-grid,
  .deliverable-grid {
    grid-template-columns: 1fr;
  }

  .deliverable-grid div,
  .deliverable-grid div:nth-child(3n),
  .deliverable-grid div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .deliverable-grid div:last-child {
    border-bottom: 0;
  }

  .service-card {
    min-height: 240px;
  }

  .card-number {
    margin-bottom: 38px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .objective-list li,
  .timeline div {
    grid-template-columns: 1fr;
  }

  .timeline p {
    grid-column: auto;
    margin-top: -8px;
  }

  .workstream-grid article {
    min-height: auto;
  }

  .button,
  .contact-link {
    width: 100%;
  }
}
