:root {
  --ink: #17191d;
  --muted: #636a72;
  --paper: #ffffff;
  --soft: #f5f7f8;
  --line: #dde3e8;
  --brand: #1f5f96;
  --brand-dark: #123a5e;
  --accent: #a7772f;
  --shadow: 0 18px 45px rgba(20, 28, 34, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.skip-link {
  background: var(--brand-dark);
  color: var(--paper);
  left: 16px;
  padding: 10px 14px;
  position: absolute;
  top: -48px;
  z-index: 20;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

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

.brand {
  align-items: center;
  display: inline-flex;
  min-width: 180px;
  text-decoration: none;
}

.brand img {
  height: 58px;
  object-fit: contain;
  width: auto;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  justify-content: flex-end;
}

.nav a {
  color: #2a3036;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 8px 0;
  text-decoration: none;
  text-transform: uppercase;
}

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

.hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(7, 13, 18, 0.7), rgba(7, 13, 18, 0.2)),
    url("images/rose-bay-house-i.jpg") center / cover;
  color: var(--paper);
  display: flex;
  min-height: min(620px, calc(100vh - 150px));
}

.hero-content {
  max-width: 700px;
  padding: 78px 0 88px;
}

.eyebrow {
  color: var(--accent);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.98;
  margin: 0;
  max-width: 820px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 22px 0 0;
  max-width: 620px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 12px 20px;
  text-decoration: none;
}

.button.primary {
  background: var(--paper);
  color: var(--brand-dark);
}

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

.section {
  padding: 76px 0;
}

.section.soft {
  background: var(--soft);
}

.section-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-head h2,
.copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.08;
  margin: 0;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 520px;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

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

.project-card {
  aspect-ratio: 1.18;
  background: #d7dde2;
  color: var(--paper);
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.project-card img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 250ms ease, filter 250ms ease;
  width: 100%;
}

.project-card::after {
  background: linear-gradient(180deg, rgba(10, 16, 20, 0.05), rgba(10, 16, 20, 0.72));
  content: "";
  inset: 0;
  position: absolute;
}

.project-card span {
  bottom: 18px;
  font-size: 1.16rem;
  font-weight: 800;
  left: 18px;
  line-height: 1.2;
  position: absolute;
  right: 18px;
  z-index: 1;
}

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

.page-hero {
  background:
    linear-gradient(90deg, rgba(18, 28, 36, 0.74), rgba(18, 28, 36, 0.18)),
    var(--page-image, url("images/rose-bay-house-ii.jpg")) center / cover;
  color: var(--paper);
  min-height: 340px;
  padding: 86px 0;
}

.page-hero p {
  font-size: 1.08rem;
  margin: 20px 0 0;
  max-width: 650px;
}

.two-col {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.feature-image {
  aspect-ratio: 4 / 3;
  background: var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.copy p {
  color: #3a4148;
  margin: 0 0 18px;
}

.stat-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  padding-top: 28px;
}

.stat strong {
  color: var(--brand-dark);
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 6px;
}

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

.portfolio-list {
  display: grid;
  gap: 34px;
}

.project-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 0.92fr 1.08fr;
  padding-top: 34px;
}

.project-row img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  width: 100%;
}

.project-row h2 {
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 12px;
}

.project-row p {
  color: var(--muted);
  margin: 0;
}

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

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

.panel h2,
.panel h3 {
  font-size: 1.35rem;
  line-height: 1.16;
  margin-top: 0;
}

.panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.panel img {
  aspect-ratio: 4 / 3;
  margin: -28px -28px 22px;
  max-width: calc(100% + 56px);
  object-fit: cover;
  width: calc(100% + 56px);
}

.award-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.contact-grid {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.contact-item strong {
  display: block;
}

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

.form {
  display: grid;
  gap: 16px;
}

.form label {
  color: #2b3138;
  display: grid;
  font-weight: 800;
  gap: 7px;
}

.form input,
.form textarea {
  border: 1px solid #cfd7de;
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

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

.form button {
  background: var(--brand-dark);
  border: 0;
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 48px;
  padding: 12px 18px;
  width: fit-content;
}

.map-link {
  align-items: end;
  background:
    linear-gradient(180deg, rgba(18, 58, 94, 0.06), rgba(18, 58, 94, 0.18)),
    url("images/dover-heights.jpg") center / cover;
  color: var(--paper);
  display: flex;
  min-height: 260px;
  padding: 22px;
  text-decoration: none;
}

.map-link span {
  background: rgba(18, 58, 94, 0.88);
  font-weight: 800;
  padding: 12px 15px;
}

.site-footer {
  background: #111820;
  color: #d8e0e7;
  padding: 42px 0;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

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

  .nav {
    justify-content: flex-start;
  }

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

  .two-col,
  .project-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    gap: 14px;
    padding: 16px 0;
  }

  .brand img {
    height: 50px;
  }

  .nav {
    gap: 4px 14px;
  }

  .nav a {
    font-size: 0.76rem;
  }

  .hero {
    min-height: min(590px, calc(100vh - 190px));
  }

  .hero-content {
    padding: 58px 0 66px;
  }

  .section {
    padding: 56px 0;
  }

  .project-grid,
  .panel-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .project-card {
    aspect-ratio: 1.35;
  }
}
