:root {
  --graphite: #17191c;
  --steel: #3d434b;
  --steel-light: #737b85;
  --yellow: #f5c400;
  --white: #ffffff;
  --fog: #eef0f2;
  --ink: #15171a;
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "Work Sans", Arial, sans-serif;
  --shell: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --space: clamp(4rem, 8vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden;
  overflow-x: clip; /* avoid body becoming a scroll container (Safari scroll clamp) */ background: var(--fog); color: var(--ink); font-family: var(--body); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--graphite); }
.shell { width: min(100%, var(--shell)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-160%); padding: .65rem 1rem; background: var(--yellow); color: var(--graphite); font-weight: 700; }
.skip-link:focus { transform: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: .95; letter-spacing: .015em; text-transform: uppercase; }
h1 { max-width: 690px; margin-bottom: 1.5rem; font-size: clamp(3.8rem, 9vw, 8rem); }
h2 { margin-bottom: 0; font-size: clamp(3.1rem, 6vw, 5.75rem); }
h3 { line-height: 1.2; }
.site-header { position: relative; z-index: 10; background: var(--graphite); color: var(--white); border-bottom: 1px solid #4d535b; }
.topbar { display: grid; gap: 1rem; align-items: center; padding-block: .85rem; text-align: center; }
.brand { display: inline-flex; justify-self: center; align-items: center; gap: .65rem; font-size: .95rem; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.brand strong { color: var(--yellow); }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid var(--yellow); color: var(--yellow); font-family: var(--display); font-size: 1.5rem; }
nav { display: flex; justify-content: center; gap: .85rem 1.25rem; flex-wrap: wrap; }
nav a { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.phone-button { display: inline-flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; gap: .55rem; padding: .65rem 1rem; background: var(--yellow); color: var(--graphite); line-height: 1.1; text-decoration: none; }
.phone-button span { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.phone-button strong { white-space: nowrap; }
.hero { display: grid; min-height: min(800px, calc(100svh - 90px)); background: var(--graphite); color: var(--white); }
.hero-copy { display: grid; align-content: center; padding: clamp(3.5rem, 8vw, 7.5rem) var(--gutter); text-align: center; }
.eyebrow { margin-bottom: 1rem; color: var(--yellow); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-dark { color: var(--steel); }
.hero-intro { max-width: 650px; margin: 0 auto 2rem; color: #d6d9dd; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; border: 0; padding: .85rem 1.25rem; font-weight: 700; letter-spacing: .06em; text-align: center; text-decoration: none; text-transform: uppercase; }
.button-primary { background: var(--yellow); color: var(--graphite); }
.text-link { font-weight: 700; text-underline-offset: .3em; }
.hero-photo { position: relative; min-height: 340px; overflow: hidden; background: var(--steel); clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); }
.hero-photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: 58% 50%; filter: saturate(.76) contrast(1.08); }
.hero-photo p { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; margin: 0; padding: .75rem 1rem; background: rgb(23 25 28 / 90%); font-weight: 600; text-align: center; }
.hero-photo p span { display: block; color: var(--yellow); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.section { width: min(100%, var(--shell)); margin-inline: auto; padding: var(--space) var(--gutter); }
.section-heading { display: grid; gap: 1rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-heading > p { max-width: 520px; margin: 0 auto; color: #525861; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #b8bdc3; border: 1px solid #b8bdc3; }
.service-card { min-width: 0; padding: 1.25rem 1rem; background: var(--white); text-align: center; }
.service-card > span { display: grid; width: 44px; height: 44px; margin: 0 auto 1rem; place-items: center; border: 2px solid var(--steel); color: var(--steel); font-size: 1.35rem; }
.service-card h3 { margin-bottom: .55rem; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; letter-spacing: .025em; text-transform: uppercase; }
.service-card p { margin: 0; color: #59606a; font-size: .9rem; }
.stats-band { padding-block: 2.5rem; background: var(--yellow); color: var(--graphite); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; text-align: center; }
.stat-number { display: block; font-family: var(--display); font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1; letter-spacing: .02em; }
.stat p { margin: .4rem 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.osha-badge { display: grid; grid-column: 1 / -1; max-width: 280px; margin-inline: auto; padding: .85rem 1.2rem; border: 3px solid var(--graphite); place-items: center; }
.osha-badge strong { font-family: var(--display); font-size: 2.5rem; line-height: 1; }
.osha-badge span { font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.project-grid { display: grid; gap: 1rem; }
.project-card { display: flex; min-width: 0; flex-direction: column; margin: 0; background: var(--graphite); color: var(--white); }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-card:nth-child(1) img { object-position: 54% 44%; }
.project-card:nth-child(2) img { object-position: 48% 55%; }
.project-card:nth-child(3) img { object-position: 62% 50%; }
.project-card div { flex: 1; padding: 1.15rem; border-top: 5px solid var(--yellow); }
.project-card p { margin-bottom: .25rem; color: var(--yellow); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { margin: 0; font-family: var(--display); font-size: 1.8rem; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.cert-strip { background: var(--steel); color: var(--white); }
.cert-strip .shell { display: flex; justify-content: center; gap: .75rem 1.75rem; flex-wrap: wrap; padding-block: 1.25rem; }
.cert-strip span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.accordion { max-width: 920px; margin-inline: auto; border-top: 1px solid #aab0b7; }
.accordion article { border-bottom: 1px solid #aab0b7; }
.accordion h3 { margin: 0; }
.accordion button { display: grid; width: 100%; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; border: 0; padding: 1.15rem .25rem; background: transparent; color: var(--graphite); font-weight: 700; text-align: left; }
.accordion button span { display: grid; width: 32px; height: 32px; place-items: center; background: var(--graphite); color: var(--yellow); font-size: 1.4rem; transition: transform .2s ease; }
.accordion button[aria-expanded="true"] span { transform: rotate(45deg); }
.accordion article > div p { margin: 0; padding: 0 3.25rem 1.25rem .25rem; color: #4d535b; }
.quote-section { padding-block: var(--space); background: var(--graphite); color: var(--white); }
.quote-wrap { display: grid; gap: 2.5rem; align-items: center; }
.quote-wrap h2 { margin-bottom: 1rem; }
.quote-wrap > div > p:not(.eyebrow) { max-width: 440px; color: #c9cdd1; }
.quote-phone { display: inline-block; color: var(--yellow); font-family: var(--display); font-size: clamp(2.2rem, 7vw, 4.2rem); line-height: 1; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.form-grid { display: grid; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; margin-bottom: .35rem; color: #dfe2e5; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
input, textarea { width: 100%; border: 1px solid #737b85; border-radius: 0; padding: .8rem; background: #26292e; color: var(--white); }
textarea { resize: vertical; }
form .button { width: 100%; margin-top: 1rem; }
.form-status { margin: 1rem 0 0; padding: .8rem; border-left: 4px solid var(--yellow); background: #25282c; }
footer { padding-block: 1.25rem; background: #0e0f11; color: #c9cdd1; }
footer .shell { display: flex; justify-content: center; gap: .75rem 2rem; flex-wrap: wrap; text-align: center; }
footer p { margin: 0; }

@media (min-width: 720px) {
  .topbar { grid-template-columns: auto 1fr auto; text-align: left; }
  .brand { justify-self: start; }
  nav { justify-self: center; }
  .phone-button { width: auto; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card { padding: 2rem 1.5rem; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; }
  .osha-badge { grid-column: auto; }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 52%) minmax(0, 48%); }
  .hero-copy { position: relative; z-index: 2; padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter))); text-align: left; }
  .hero-intro { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-photo { min-height: 660px; margin-left: -8vw; padding-left: 8vw; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-photo img { min-height: 660px; }
  .hero-photo p { left: 24%; text-align: left; }
  .section-heading { grid-template-columns: 1fr minmax(260px, 420px); text-align: left; }
  .section-heading > p { margin-right: 0; text-align: right; }
  .quote-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

@media (max-width: 420px) {
  .service-grid { grid-template-columns: 1fr; }
  .topbar { gap: .75rem; }
  nav { gap: .45rem .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Standard: back-to-top button with scroll-progress ring */
.btt-button {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(17, 17, 17, 0.85); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btt-button.btt-visible { opacity: 1; visibility: visible; transform: none; }
.btt-button:focus-visible { outline: 3px solid #f5c400; outline-offset: 3px; }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.btt-ring circle { fill: none; stroke-width: 3; }
.btt-ring-track { stroke: rgba(255, 255, 255, 0.22); }
.btt-ring-fill { stroke: #f5c400; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; stroke-linecap: round; }
.btt-arrow { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .btt-button { transition: none; } }
