:root {
  --navy: #17283a;
  --ink: #20252a;
  --cream: #f5f2ec;
  --warm: #e8e1d5;
  --gold: #b49a68;
  --white: #fff;
  --muted: #6e7377;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

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

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

.topbar {
  background: var(--navy);
  color: #fff;
  padding: 10px 5%;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: right;
}

.topbar a {
  color: #fff;
}

.topbar a:hover {
  color: var(--gold);
}

nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #eee;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 10px 0;
}

.logo img {
  height: 64px;
  width: auto;
  display: block;
}

.navlinks {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.navlinks a:hover {
  color: var(--gold);
}

.navlinks a[aria-current="page"] {
  color: var(--gold);
}

.cta {
  background: var(--navy);
  color: #fff !important;
  padding: 13px 19px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #ddd;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

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

.hero {
  min-height: 650px;
  background:
    linear-gradient(90deg, rgba(15, 27, 39, 0.82), rgba(15, 27, 39, 0.25)),
    url("../images/hero.jpg") center / cover;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 8% 8%;
}

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d9c79d;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 82px);
  margin-bottom: 25px;
}

.hero p {
  font-size: 20px;
  max-width: 650px;
  color: #f4f4f4;
  margin-bottom: 32px;
}

.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 14px 22px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.button.dark {
  background: var(--navy);
  color: #fff;
}

section {
  padding: 90px 7%;
}

.intro {
  text-align: center;
  max-width: 920px;
  margin: auto;
}

.intro h2,
.section-head h2 {
  font-size: 46px;
  color: var(--navy);
  margin-bottom: 22px;
}

.intro p {
  font-size: 18px;
  color: var(--muted);
}

.link {
  display: inline-block;
  margin-top: 24px;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 5px;
}

.cream {
  background: var(--cream);
}

.section-head {
  max-width: 800px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  padding: 28px 30px 30px;
}

.number {
  font: 14px Georgia, serif;
  color: var(--gold);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 27px;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 45px;
}

.stat {
  border-top: 1px solid #d2c7b4;
  padding-top: 20px;
}

.stat strong {
  display: block;
  font: 30px Georgia, serif;
  color: var(--navy);
  margin-bottom: 7px;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

.projects {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: 270px;
  gap: 16px;
}

.project {
  position: relative;
  overflow: hidden;
  background: #d9d4ca;
}

.project:first-child {
  grid-row: span 2;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.project:hover img {
  transform: scale(1.04);
}

.project .label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: #fff;
  text-shadow: 0 1px 10px #000;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projects--named {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 280px;
}

.projects--named .project:first-child {
  grid-row: auto;
}

.project-block {
  margin-bottom: 64px;
}

.project-block:last-child {
  margin-bottom: 0;
}

.project-block h2 {
  font-size: 34px;
  color: var(--navy);
  margin: 0 0 22px;
}

.project-block-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

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

.project-block-grid--wide img:first-child,
.project-block-grid--wide img.is-wide {
  grid-column: 1 / -1;
}

.project-block-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d9d4ca;
  display: block;
}

.project-block-grid--wide img:first-child,
.project-block-grid--wide img.is-wide {
  aspect-ratio: 21 / 10;
}

.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.approach-title {
  font-size: 50px;
  color: var(--navy);
  margin-bottom: 20px;
}

.approach-copy {
  color: var(--muted);
  font-size: 17px;
}

.steps {
  display: grid;
  gap: 0;
}

.step {
  padding: 23px 0;
  border-top: 1px solid #d7d7d7;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 15px;
}

.step:last-child {
  border-bottom: 1px solid #d7d7d7;
}

.step b {
  color: var(--gold);
  font: 18px Georgia, serif;
}

.step h3 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.family {
  background: var(--navy);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.family h2 {
  font-size: 50px;
  margin-bottom: 20px;
}

.family p {
  color: #dce2e6;
  font-size: 17px;
}

.quote {
  background: var(--cream);
  text-align: center;
}

.testimonials-title {
  font-size: clamp(32px, 4vw, 46px);
  color: var(--navy);
  margin: 0 auto 40px;
  max-width: 850px;
}

.testimonials-slider {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonials-frame {
  position: relative;
  padding: 0 48px;
}

.testimonials-viewport {
  position: relative;
  min-height: 240px;
}

.slider-arrow-prev,
.slider-arrow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.slider-arrow-prev {
  left: 0;
}

.slider-arrow-next {
  right: 0;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.testimonial {
  margin: 0;
  padding: 28px 30px;
  background: #fff;
  border-top: 3px solid var(--gold);
  text-align: left;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.testimonial.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  z-index: 1;
}

.testimonial.is-measuring {
  position: relative;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
}

.testimonial blockquote {
  max-width: none;
  margin: 0 0 18px;
  font: 20px/1.45 Georgia, "Times New Roman", serif;
  color: var(--navy);
}

.testimonial figcaption strong {
  display: block;
  font: 13px Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

.testimonial figcaption span {
  display: block;
  font: 12px Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.slider-arrow {
  border: 0;
  background: transparent;
  color: var(--navy);
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  pointer-events: auto;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.slider-arrow svg {
  width: 22px;
  height: 22px;
  display: block;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  background: transparent;
  border: 0;
  color: var(--gold);
  outline: none;
  opacity: 1;
}

.slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.slider-dot.is-active,
.slider-dot[aria-selected="true"] {
  background: var(--navy);
}

blockquote {
  max-width: 850px;
  margin: 0 auto;
  font: 29px Georgia, serif;
  color: var(--navy);
}

cite {
  display: block;
  margin-top: 22px;
  font: 12px Arial, sans-serif;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-style: normal;
  text-transform: uppercase;
}

@media (max-width: 850px) {
  .testimonials-frame {
    padding: 0 40px;
  }

  .testimonials-viewport {
    min-height: 0;
  }

  .testimonial {
    padding: 22px 20px;
  }

  .testimonial blockquote {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .slider-arrow-prev,
  .slider-arrow-next {
    top: 28px;
    transform: none;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }
}

.final {
  background: var(--warm);
  text-align: center;
}

.final h2 {
  font-size: 55px;
  color: var(--navy);
  margin-bottom: 18px;
}

.final p {
  max-width: 650px;
  margin: 0 auto 28px;
  color: #596066;
  font-size: 18px;
}

.page-hero {
  min-height: 380px;
  background:
    linear-gradient(90deg, rgba(15, 27, 39, 0.82), rgba(15, 27, 39, 0.35)),
    url("../images/hero.jpg") center / cover;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding: 6% 7% 5%;
}

.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 12px;
}

.page-hero p {
  max-width: 620px;
  color: #f4f4f4;
  font-size: 18px;
  margin: 0;
}

.prose {
  max-width: 760px;
}

.prose p {
  color: var(--muted);
  font-size: 17px;
}

footer {
  background: #111d28;
  color: #d8dde1;
  padding: 45px 7%;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 13px;
}

footer strong {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 20px;
}

footer a:hover {
  color: var(--gold);
}

@media (max-width: 850px) {
  .nav-toggle {
    display: inline-flex;
  }

  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 5% 18px;
    border-bottom: 1px solid #eee;
  }

  .navlinks.is-open {
    display: flex;
  }

  .navlinks a {
    padding: 12px 0;
    width: 100%;
  }

  .cta {
    display: inline-block;
    margin-top: 8px;
  }

  nav {
    position: sticky;
  }

  .cards,
  .stats,
  .approach,
  .family,
  .project-block-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px 22px;
  }

  .family {
    gap: 18px;
    align-items: start;
  }

  .family h2 {
    margin-bottom: 0;
    font-size: clamp(34px, 8vw, 44px);
  }

  .projects {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .projects--named {
    grid-template-columns: 1fr;
  }

  .project:first-child {
    grid-row: auto;
  }

  .project-block-grid,
  .project-block-grid--wide {
    grid-template-columns: 1fr;
  }

  .project-block-grid--wide img:first-child,
  .project-block-grid--wide img.is-wide {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  section {
    padding: 65px 6%;
  }

  .hero {
    min-height: 590px;
    padding: 12% 6%;
  }
}
