:root {
  --cyan: #76cfdc;
  --cyan-deep: #176779;
  --graphite: #122631;
  --ink: #253943;
  --muted: #52656c;
  --line: #d8dfda;
  --paper: #f6f5ef;
  --white: #ffffff;
  --steel: #9bb1bf;
  --amber: #b8e3df;
  --radius: 4px;
  --shadow: 0 24px 60px rgba(23, 33, 43, 0.14);
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px 40px;
  color: var(--white);
  background: rgba(23, 33, 43, 0.46);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.1);
}

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

.brand-mark {
  display: block;
  flex: none;
  width: 36px;
  aspect-ratio: 251 / 303;
  /* Frame the cube on the 1079 × 1539 original brochure. */
  background: url("assets/haz-brand.jpeg") 8.696% 24.191% / 429.88% auto no-repeat;
  clip-path: polygon(50.2% 0.3%, 99.6% 22.4%, 99.6% 77%, 50.2% 99.7%, 0.4% 77%, 0.4% 22.4%);
}

.hero-mark {
  width: clamp(48px, 5vw, 70px);
  margin-bottom: 20px;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.82;
  white-space: nowrap;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--graphite);
  background: var(--amber);
}

.header-cta {
  display: inline-flex;
  justify-content: center;
  min-width: 144px;
  padding: 12px 16px;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 650;
}

.site-header.is-scrolled .header-cta,
.site-header.is-open .header-cta {
  color: var(--white);
  background: var(--graphite);
  border-color: var(--graphite);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 11px;
  color: currentColor;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  padding: clamp(110px, 11vw, 158px) max(24px, 5vw) clamp(52px, 7vw, 98px);
  color: var(--white);
  background: var(--graphite);
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact-section .eyebrow,
.location-band .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 5.7vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.99;
  text-wrap: balance;
}

h2 {
  margin: 0;
  color: var(--graphite);
  font-size: clamp(2rem, 3.7vw, 3.5rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.08;
  text-wrap: balance;
}

h3 {
  margin: 0;
  color: var(--graphite);
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 33, 43, 0.16);
}

.button-primary {
  color: var(--graphite);
  background: var(--amber);
  border-color: var(--amber);
}

.button-secondary {
  color: var(--graphite);
  background: var(--white);
  border-color: var(--line);
}

.hero .button-secondary,
.location-band .button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.hero-proof div {
  min-width: 0;
}

.hero-proof dt {
  margin: 0 0 6px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-proof dd {
  margin: 0;
  color: var(--white);
  font-weight: 650;
}

.section,
.intro-section {
  padding: clamp(48px, 7vw, 108px) max(24px, 5vw);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-section {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
}

.intro-grid p:last-child,
.section-heading p,
.service-card p,
.process-list p,
.clients-grid p,
.contact-copy p,
.site-footer p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section-heading.compact {
  margin-bottom: 0;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card > img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.service-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.3vw, 30px);
}

.service-copy a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 10px;
  color: var(--cyan-deep);
  font-weight: 700;
}

.service-copy a:hover {
  text-decoration: underline;
}

.materials-section {
  background: var(--graphite);
}

.materials-section h2,
.materials-section .section-heading p {
  color: var(--white);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: start;
}

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

.spec-item {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.spec-item strong {
  color: var(--amber);
  font-size: 1.02rem;
}

.spec-item span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.process-section {
  background: var(--white);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-list li {
  min-height: 260px;
  padding: 26px;
  background: var(--paper);
}

.process-list span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--cyan-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.process-list strong {
  display: block;
  color: var(--graphite);
  font-size: 1.08rem;
  line-height: 1.3;
}

.project-section {
  background: linear-gradient(180deg, var(--paper) 0%, #edf5f8 100%);
}

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

.gallery-grid figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(23, 33, 43, 0.08);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 69 / 100;
  object-fit: contain;
  background: var(--paper);
}

.gallery-grid figcaption {
  padding: 14px 16px 16px;
  color: var(--graphite);
  font-size: 0.9rem;
  font-weight: 650;
}

.clients-section {
  background: var(--white);
}

.clients-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.client-list li {
  padding: 10px 12px;
  color: var(--graphite);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 650;
}

.team-panel {
  padding: 28px;
  background: var(--graphite);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team-panel h3 {
  color: var(--white);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.team-list span {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  line-height: 1.35;
}

.team-list strong {
  color: var(--white);
}

.faq-section {
  background: #eaf0ed;
}

.faq-list {
  border-top: 1px solid #becdc7;
}

.faq-list details {
  padding: 18px 0;
  border-bottom: 1px solid #becdc7;
}

.faq-list summary {
  color: var(--graphite);
  font-weight: 650;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-section {
  color: var(--white);
  background: var(--graphite);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  font-style: normal;
}

.contact-details span {
  color: rgba(255, 255, 255, 0.86);
}

.contact-details a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  color: var(--graphite);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-form h3 {
  color: var(--graphite);
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-size: 0.86rem;
  font-weight: 700;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--graphite);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 169, 216, 0.14);
}

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

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.location-band {
  padding: 44px max(24px, 5vw);
  color: var(--white);
  background: #21434d;
}

.location-band h2 {
  color: var(--white);
  font-size: 1.75rem;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.site-footer {
  padding: 54px 40px 26px;
  color: rgba(255, 255, 255, 0.78);
  background: #111820;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(160px, 0.4fr));
  gap: 40px;
}

.footer-brand {
  color: var(--white);
}

.site-footer h3 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: var(--amber);
}

.copyright {
  width: min(1180px, 100%);
  margin: 42px auto 0;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.52);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.hero-photo {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(184, 227, 223, 0.35);
}

.hero-photo img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-photo figcaption {
  padding: 10px 2px 2px;
  color: #c4d7da;
  font-size: 0.8rem;
}

.eyebrow,
.hero-proof dt {
  letter-spacing: 0.09em;
}

.section-heading .eyebrow,
.intro-grid > div .eyebrow,
.clients-grid .eyebrow,
.contact-copy .eyebrow {
  font-size: 0.76rem;
}

.section-heading .eyebrow,
.intro-grid > div .eyebrow,
.clients-grid > div:first-child .eyebrow {
  color: var(--cyan-deep);
}

.materials-section .section-heading .eyebrow,
.team-panel .eyebrow,
.contact-copy .eyebrow {
  color: var(--amber);
}

.site-header {
  padding-inline: max(24px, calc((100% - 1180px) / 2));
  background: #122631;
}

.site-header a:focus-visible,
main a:focus-visible,
footer a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

main section[id] {
  scroll-margin-top: 82px;
}

.intro-section {
  padding-block: clamp(44px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  align-items: center;
}

.intro-grid > p,
.service-card p,
.process-list p {
  margin: 0;
}

.process-list li {
  min-height: 0;
}

.process-list p {
  margin-top: 10px;
}

.project-section {
  background: #eaf0ed;
}

.gallery-grid figure {
  box-shadow: none;
}

.gallery-grid a {
  display: block;
}

.gallery-grid a:hover {
  box-shadow: inset 0 0 0 2px var(--cyan-deep);
  opacity: 0.86;
}

.site-footer .footer-brand {
  display: inline-flex;
  margin-top: 0;
}

.site-footer p {
  color: #b5c4c7;
}

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-width: 460px;
  }

  .hero-photo img {
    aspect-ratio: 4 / 3;
  }

  .hero-proof {
    gap: 10px;
    margin-top: 28px;
  }

  .hero-proof dd {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto 1fr;
    padding-inline: 22px;
  }

  .nav-toggle {
    position: absolute;
    top: 14px;
    right: 22px;
    justify-self: end;
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 22px;
    left: 22px;
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px;
    color: var(--graphite);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    border-radius: var(--radius);
  }

  .header-cta {
    display: none;
  }

  .intro-grid,
  .split-layout,
  .clients-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .section,
  .intro-section,
  .location-band,
  .site-footer {
    padding-inline: 18px;
  }

  .hero-lede {
    font-size: 1rem;
    max-width: 320px;
  }

  .service-grid,
  .spec-panel,
  .process-list,
  .gallery-grid,
  .team-list,
  .location-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof div,
  .process-list li {
    min-height: auto;
  }

  .service-card {
    min-height: auto;
  }

  .button,
  .contact-actions a,
  .hero-actions a {
    width: 100%;
  }

  .quote-form,
  .team-panel {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .brand-copy span {
    white-space: normal;
  }

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

  .site-nav {
    top: 68px;
  }
}
