:root {
  --ink: #0a0a0c;
  --surface: #121216;
  --surface-2: #1a1a20;
  --surface-3: #22222a;
  --red: #c8202a;
  --red-dark: #9e1620;
  --red-bright: #e02531;
  --silver: #c9ccd2;
  --silver-dim: #8b8f97;
  --gray-on-dark: #98a0aa;
  --white: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-on-dark);
  background: var(--ink);
  line-height: 1.5;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  margin: 0 0 16px;
  line-height: 1.15;
  color: var(--silver);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  position: relative;
  padding-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 72px;
  height: 5px;
  background: var(--red);
  transform: translateX(-50%) skewX(-18deg);
}

p {
  margin: 0 0 16px;
  color: var(--gray-on-dark);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(200, 32, 42, 0.45);
}

.btn-primary:hover {
  background: var(--red-bright);
}

.btn-secondary {
  background: transparent;
  color: var(--silver);
  border: 2px solid var(--silver-dim);
}

.btn-secondary:hover {
  background: var(--silver);
  color: var(--ink);
}

.btn-call {
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn-call:hover {
  background: var(--red-bright);
}

/* Header */
.site-header {
  background: var(--ink);
  border-top: 5px solid var(--red);
  border-bottom: 1px solid var(--surface-3);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-link {
  display: block;
  line-height: 0;
  flex: 0 0 auto;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.logo-link:hover {
  opacity: 0.85;
}

.logo {
  height: 54px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}

.site-nav a {
  color: var(--gray-on-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  padding: 80px 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/images/hero-bucket-truck.jpg");
  background-size: cover;
  background-position: 25% center;
  opacity: 0.8;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.97) 0%, rgba(10, 10, 12, 0.92) 38%, rgba(10, 10, 12, 0.5) 65%, rgba(10, 10, 12, 0.75) 100%);
}

/* Nested arrowhead chevrons, mirroring the uniform artwork */
.hero-chevrons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  height: 340px;
  display: flex;
  pointer-events: none;
}

.hero-chevrons span {
  display: block;
  width: 150px;
  height: 100%;
}

.hero-chevrons span + span {
  margin-left: -112px;
}

.hero-chevrons-left {
  left: -40px;
}

.hero-chevrons-right {
  right: -40px;
  flex-direction: row-reverse;
}

.hero-chevrons-right span + span {
  margin-left: 0;
  margin-right: -112px;
}

.hero-chevrons-left span {
  clip-path: polygon(0% 0%, 20% 0%, 100% 50%, 20% 100%, 0% 100%, 80% 50%);
}

.hero-chevrons-right span {
  clip-path: polygon(100% 0%, 80% 0%, 0% 50%, 80% 100%, 100% 100%, 20% 50%);
}

.hero-chevrons span:nth-child(1),
.hero-chevrons span:nth-child(3) {
  background: linear-gradient(160deg, var(--red-bright) 0%, var(--red-dark) 100%);
}

.hero-chevrons span:nth-child(2) {
  background: linear-gradient(160deg, var(--silver) 0%, var(--silver-dim) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  color: var(--silver);
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-transform: uppercase;
}

.accent {
  color: var(--red-bright);
}

.hero-sub {
  color: var(--gray-on-dark);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0;
  margin: 0;
  color: var(--silver);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-badges li::before {
  content: "\2713";
  color: var(--red-bright);
  margin-right: 6px;
}

.hero-image img {
  max-width: 320px;
  margin: 0 auto;
}

/* Services */
.services {
  padding: 80px 0;
  background: var(--surface);
}

.section-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--silver-dim);
  margin: -4px 0 28px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-top: 4px solid var(--red);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.service-card:hover {
  background: var(--surface-3);
}

.service-card[open] {
  border-color: var(--red);
  border-top-color: var(--red);
}

.service-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 56px;
  height: 56px;
  background: var(--red);
  opacity: 0.14;
  transform: skewX(-18deg);
  pointer-events: none;
}

/* Summary is the clickable card face */
.service-card summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  cursor: pointer;
  list-style: none;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-card summary:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: -4px;
}

.service-heading {
  display: block;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.service-teaser {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-on-dark);
}

/* Red chevron toggle, rotates when open */
.service-toggle {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-right: 3px solid var(--red-bright);
  border-bottom: 3px solid var(--red-bright);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.service-card[open] .service-toggle {
  transform: rotate(-135deg);
}

.service-body {
  margin: 0 24px;
  padding: 4px 0 24px;
  border-top: 1px solid var(--surface-3);
}

.service-body p {
  margin: 16px 0 0;
  font-size: 0.92rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.service-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--gray-on-dark);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: skewX(-18deg);
}

.service-note {
  color: var(--silver-dim) !important;
  font-style: italic;
  font-size: 0.87rem !important;
}

.service-media img {
  border-radius: 4px;
  border: 1px solid var(--surface-3);
  margin-top: 16px;
}

/* Gallery / Our Work page */
.page-header {
  padding: 64px 0 40px;
  background: var(--ink);
  border-top: 1px solid var(--surface-3);
  text-align: center;
}

.page-header h1 {
  text-align: center;
  color: var(--silver);
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-header-sub {
  color: var(--gray-on-dark);
  max-width: 640px;
  margin: 0 auto;
}

.gallery-highlight {
  padding: 60px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--surface-3);
}

.highlight-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 32px auto 0;
}

.highlight-pair figure {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--surface-3);
}

.highlight-pair img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.highlight-pair figcaption {
  padding: 12px 16px;
  background: var(--surface-2);
  color: var(--silver);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.highlight-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.highlight-tag-before {
  background: var(--red);
  color: var(--white);
}

.highlight-tag-after {
  background: var(--silver);
  color: var(--ink);
}

.gallery-section {
  padding: 72px 0;
  background: var(--ink);
}

.gallery-section-after {
  background: var(--surface);
}

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

.gallery-item {
  padding: 0;
  border: 1px solid var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--red);
  transform: translateY(-2px);
  outline: none;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--surface-3);
}

#lightbox-caption {
  color: var(--silver);
  margin-top: 14px;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--silver-dim);
  background: var(--surface-2);
  color: var(--silver);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--red);
  color: var(--red-bright);
}

/* Smooth open/close where supported; snaps open elsewhere */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .service-card::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
  }

  .service-card[open]::details-content {
    block-size: auto;
  }
}

/* ATLAS method */
.atlas-method {
  padding: 80px 0;
  background: var(--ink);
  background-image: repeating-linear-gradient(45deg, rgba(200, 32, 42, 0.09) 0, rgba(200, 32, 42, 0.09) 2px, transparent 2px, transparent 22px);
  border-top: 1px solid var(--surface-3);
  border-bottom: 1px solid var(--surface-3);
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}

.atlas-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--silver);
}

.atlas-letter {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--red-bright);
  line-height: 1;
}

.atlas-word {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Reach */
.reach {
  padding: 80px 0;
  background: var(--surface);
}

.reach-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.reach-image {
  position: relative;
}

.reach-image::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 110px;
  height: 110px;
  background: var(--red);
  transform: skewX(-18deg);
  z-index: 0;
}

.reach-image img {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  border: 3px solid var(--surface-3);
}

.reach-text h2 {
  text-align: left;
  padding-bottom: 18px;
}

.reach-text h2::after {
  left: 0;
  transform: skewX(-18deg);
}

.reach-tagline {
  color: var(--red-bright);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Sectors */
.sectors {
  padding: 80px 0;
  text-align: center;
  background: var(--ink);
}

.sector-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.sector-pills li {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-left: 3px solid var(--red);
  color: var(--silver);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 10px 22px;
}

/* Contact */
.contact {
  background: var(--red);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
  background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.07) 0, rgba(0, 0, 0, 0.07) 2px, transparent 2px, transparent 22px);
}

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

.contact h2::after {
  background: var(--white);
}

.contact p {
  color: rgba(255, 255, 255, 0.92);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.contact-link {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: underline;
}

.contact .btn-primary {
  background: var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.contact .btn-primary:hover {
  background: var(--surface-2);
}

/* Footer */
.site-footer {
  background: var(--ink);
  border-top: 4px solid var(--red);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  height: 44px;
  width: auto;
  opacity: 0.9;
}

.footer-inner p {
  color: var(--silver-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 1180px) {
  .hero-chevrons {
    height: 240px;
  }

  .hero-chevrons span {
    width: 108px;
  }

  .hero-chevrons span + span {
    margin-left: -80px;
  }

  .hero-chevrons-right span + span {
    margin-left: 0;
    margin-right: -80px;
  }
}

@media (max-width: 900px) {
  .hero-chevrons {
    display: none;
  }
}

@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions,
  .trust-badges {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 220px;
  }

  .highlight-pair {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  /* Two content-sized columns (letters, words) centered as one
     compact unit, rather than a fixed-width box that merely sits
     centered while its left-aligned text reads off-center. */
  .atlas-grid {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: 16px;
    row-gap: 18px;
  }

  .atlas-item {
    display: contents;
  }

  .atlas-letter {
    grid-column: 1;
    text-align: right;
  }

  .atlas-word {
    grid-column: 2;
    text-align: left;
    align-self: center;
  }

  .reach-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .reach-text {
    text-align: center;
  }

  .reach-text h2 {
    text-align: center;
  }

  .reach-text h2::after {
    left: 50%;
    transform: translateX(-50%) skewX(-18deg);
  }
}

@media (max-width: 760px) {
  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    margin: 4px 0 0;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    justify-content: center;
    text-align: center;
    gap: 12px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 0.85rem;
  }
}
