:root {
  --blue: #2077a8;
  --blue-dark: #145982;
  --ink: #24272a;
  --muted: #6b7278;
  --line: #dfe5e9;
  --soft: #f4f7f9;
  --white: #fff;
  --shadow: 0 18px 48px rgba(23, 40, 56, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  color: #4f575d;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-nav a {
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

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

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #111;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 6000ms ease;
}

.hero-slider img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .70), rgba(0, 0, 0, .25) 52%, rgba(0, 0, 0, .08));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  color: var(--white);
}

.hero-copy p:first-child,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 700;
}

.page-hero h1,
.contact h1 {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p:last-of-type {
  max-width: 560px;
  margin: 22px 0 28px;
  font-size: 20px;
  color: rgba(255, 255, 255, .9);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  min-height: 520px;
  background: var(--soft);
}

.page-hero p:last-child,
.content-section p {
  max-width: 760px;
  color: var(--muted);
}

.page-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.content-section {
  max-width: 980px;
}

.intro,
.contact,
.feature-band {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.intro-copy p,
.feature-band p,
.project-list p,
.team span {
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin: 0 0 34px;
}

.services,
.team,
.logos {
  background: var(--soft);
}

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

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

.service-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.service-card div {
  padding: 22px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 30px;
}

.project-list {
  border-left: 4px solid var(--blue);
  padding-left: 24px;
}

.project-list ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.project-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: #4b555c;
}

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

.gallery-item {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.feature-band {
  color: var(--white);
  background: #1c252c;
}

.feature-band img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-band .section-kicker,
.hero-copy p:first-child {
  color: #83c8ef;
}

.feature-band p {
  color: rgba(255, 255, 255, .82);
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.logo-strip img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

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

.team-grid article {
  min-height: 190px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.team-grid p {
  margin: 0 0 16px;
  color: var(--blue);
  font-weight: 700;
}

.contact {
  background: url("images/sydneyMap.png") center bottom / cover no-repeat;
}

.contact dl {
  margin: 28px 0 0;
}

.contact dt {
  font-weight: 700;
  color: var(--blue-dark);
}

.contact dd {
  margin: 0 0 16px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd8df;
  font: inherit;
  background: var(--white);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer img {
  width: 170px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, .88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 86vh;
  width: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--white);
  background: rgba(0, 0, 0, .35);
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #83c8ef;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .service-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-layout,
  .page-hero,
  .intro,
  .contact,
  .feature-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 78px;
  }

  .brand img {
    width: 188px;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 12px 0;
  }

  .hero {
    min-height: 520px;
  }

  .hero-copy {
    margin: 0 auto;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-copy p:last-of-type {
    font-size: 18px;
  }

  .service-grid,
  .team-grid,
  .gallery,
  .logo-strip {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
