:root {
  --ink: #111417;
  --steel: #2f3437;
  --panel: #f7f6f3;
  --paper: #ffffff;
  --muted: rgba(21, 23, 25, 0.66);
  --line: rgba(21, 23, 25, 0.16);
  --yellow: #df4b05;
  --blue: #577b8d;
  --rust: #9b5f35;
  --radius: 6px;
  --font-display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: Aptos, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 30;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.top-bar {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: #0d0f10;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px clamp(18px, 4vw, 52px);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-bar a {
  color: #ffffff;
}

.top-bar .main-site-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  padding: 0 12px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.top-bar .main-site-button:hover,
.top-bar .main-site-button:focus-visible {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  min-height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 20, 23, 0.92);
  color: #ffffff;
  padding: 14px clamp(18px, 4vw, 52px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--yellow);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand span:last-child {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a,
.header-cta,
.text-link {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--yellow);
}

.header-cta,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: 0 18px;
}

.header-cta,
.button-primary {
  background: var(--yellow);
  color: #ffffff;
  border-color: var(--yellow);
}

.header-cta {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #ffffff;
}

.button-dark {
  background: transparent;
  color: #ffffff;
}

.button {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 0.78fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  min-height: calc(100svh - 120px);
  padding: clamp(58px, 8vw, 104px) 0;
}

.hero-construction {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 120px);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(84px, 12vw, 152px) clamp(24px, 15vw, 280px) 180px;
}

.hero-construction::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 20, 23, 0.86), rgba(17, 20, 23, 0.58) 42%, rgba(17, 20, 23, 0.3)),
    linear-gradient(0deg, rgba(17, 20, 23, 0.88), rgba(17, 20, 23, 0.04) 56%);
}

.hero-construction::after {
  content: "";
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: -1px;
  z-index: -1;
  height: 132px;
  background:
    linear-gradient(174deg, transparent 0 38%, #ffffff 39% 100%),
    linear-gradient(186deg, transparent 0 45%, var(--yellow) 46% 82%, #ffffff 83% 100%);
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 7.2rem);
  line-height: 0.9;
}

.hero-construction h1 {
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(3rem, 6.3vw, 6.2rem);
  font-weight: 300;
  line-height: 1.04;
}

h2 {
  max-width: 760px;
  font-size: clamp(2.3rem, 4.8vw, 4.8rem);
  line-height: 0.94;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.22;
}

.hero-copy > p:not(.eyebrow),
.section-copy,
.service-card p,
.project-card p,
.trust-card p,
.faq-list p,
.contact-copy p {
  color: var(--muted);
}

.hero-construction .hero-copy {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-construction .hero-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
}

.hero-construction .hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(21, 23, 25, 0.2);
}

.hero-construction .hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}

.hero-stat {
  position: absolute;
  left: -26px;
  bottom: 26px;
  width: min(310px, 78%);
  display: grid;
  gap: 8px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  padding: 20px;
  box-shadow: 0 18px 46px rgba(21, 23, 25, 0.22);
}

.hero-construction .hero-stat {
  display: none;
}

.hero-stat span,
.metric-strip span,
.service-card span,
.project-card span,
.trust-card span {
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.metric-strip article {
  min-height: 130px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 3vw, 32px);
}

.metric-strip strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 0.9;
}

.section {
  padding: clamp(78px, 10vw, 118px) 0;
  background: #ffffff;
}

.container.section {
  padding-left: clamp(22px, 4vw, 64px);
  padding-right: clamp(22px, 4vw, 64px);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.54fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: end;
  margin-bottom: 34px;
}

.support-section {
  padding-top: clamp(64px, 8vw, 92px);
  padding-bottom: clamp(84px, 10vw, 126px);
}

.support-section .section-header {
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.48fr);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
  margin-bottom: clamp(34px, 5vw, 54px);
}

.support-section h2 {
  max-width: 680px;
  font-size: clamp(2.4rem, 4.2vw, 4.25rem);
  line-height: 1;
}

.support-section .section-copy {
  max-width: 520px;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

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

.service-card,
.project-card,
.trust-card,
.contact-form,
.faq-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-card,
.trust-card {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 34px);
}

.service-card {
  background: #fbfaf7;
  box-shadow: 0 14px 36px rgba(21, 23, 25, 0.06);
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.08);
}

.project-card div {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3vw, 34px);
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.62fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-panel {
  display: grid;
  gap: 18px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 8px 12px;
  color: rgba(21, 23, 25, 0.72);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-panel {
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  padding: clamp(24px, 4vw, 42px);
}

.quote-panel p {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 0.96;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.72fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: rgba(21, 23, 25, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  padding: 13px 14px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .button {
  width: 100%;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list article {
  padding: clamp(22px, 3vw, 34px);
}

.faq-list h3 {
  margin-bottom: 10px;
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
}

.faq-list p {
  max-width: 980px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 30px clamp(18px, 4vw, 52px);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

body:not(:has(.hero-construction)) .site-header {
  position: sticky;
}

body:not(:has(.hero-construction)) .section:first-of-type {
  background:
    linear-gradient(rgba(17, 20, 23, 0.86), rgba(17, 20, 23, 0.7)),
    url("/assets/work/northline-contractors/hero-v2.png") center / cover;
  color: #ffffff;
}

body:not(:has(.hero-construction)) .section:first-of-type .section-copy {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 20, 23, 0.94), rgba(17, 20, 23, 0.76) 48%, rgba(17, 20, 23, 0.36)),
    url("/assets/work/northline-contractors/hero-v2.png") center / cover;
  color: #ffffff;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: -1px;
  z-index: 0;
  height: 74px;
  background:
    linear-gradient(176deg, transparent 0 42%, #ffffff 43% 100%),
    linear-gradient(184deg, transparent 0 52%, var(--yellow) 53% 78%, #ffffff 79% 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  min-height: clamp(390px, 56svh, 620px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.46fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
  padding: clamp(76px, 10vw, 128px) 0 clamp(86px, 10vw, 132px);
}

.page-hero h1 {
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(2.6rem, 5.2vw, 5.1rem);
  line-height: 0.98;
}

.page-hero p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
}

.page-hero-services {
  background-position: center 42%;
}

.page-hero-projects {
  background:
    linear-gradient(90deg, rgba(17, 20, 23, 0.92), rgba(17, 20, 23, 0.74) 46%, rgba(223, 75, 5, 0.18)),
    url("/assets/work/northline-contractors/hero-v2.png") center 58% / cover;
}

.page-hero-contact {
  background:
    radial-gradient(circle at 78% 24%, rgba(223, 75, 5, 0.36), transparent 32%),
    linear-gradient(90deg, rgba(17, 20, 23, 0.96), rgba(17, 20, 23, 0.84) 52%, rgba(17, 20, 23, 0.48)),
    url("/assets/work/northline-contractors/hero-v2.png") center / cover;
}

.section-raised {
  position: relative;
  z-index: 3;
  margin-top: -46px;
  padding-top: 0;
  background: transparent;
}

.section-raised .service-grid,
.section-raised .project-grid {
  align-items: stretch;
}

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

.process-section {
  margin-bottom: clamp(28px, 5vw, 64px);
}

.process-section .trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.project-card {
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 20, 23, 0.08);
}

.triptych-grid .project-card {
  border-radius: 0;
}

.project-image-slice {
  min-height: clamp(300px, 44vw, 620px);
  border-bottom: 1px solid var(--line);
  background-image: url("/assets/work/northline-contractors/hero-v2.png");
  background-repeat: no-repeat;
  background-size: 300% auto;
}

.slice-left {
  background-position: left center;
}

.slice-center {
  background-position: center center;
}

.slice-right {
  background-position: right center;
}

.contact-hero-layout {
  min-height: clamp(560px, 72svh, 740px);
  align-items: center;
  padding: clamp(64px, 9vw, 108px) 0;
}

.contact-hero-layout .contact-copy h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.contact-hero-layout .contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.contact-hero-layout .badge-list span {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
}

.contact-hero-layout .contact-form {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .section-header,
  .page-hero-inner,
  .split-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .service-grid,
  .project-grid,
  .trust-grid,
  .section-raised .service-grid,
  .process-section .trust-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: -18px;
  }

  .page-hero-inner {
    min-height: auto;
    align-items: start;
  }

  .section-raised {
    margin-top: -30px;
  }
}

@media (max-width: 560px) {
  .top-bar,
  .hero-actions {
    display: grid;
  }

  .container {
    width: min(1180px, calc(100% - 28px));
  }

  .header-cta,
  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 4.8rem);
  }

  .site-header {
    gap: 14px;
  }

  .page-hero h1,
  .contact-hero-layout .contact-copy h1 {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
    line-height: 1;
  }

  .page-hero-inner,
  .contact-hero-layout {
    padding-top: 54px;
    padding-bottom: 86px;
  }
}
