/* =========================================================================
   Homepage theme (v2)
   Inter Black display type. Sections are Ghost White or Deep Space, with
   Scarlet kept for actions, champagne only
   as thin accents, 1px ruled text columns, and scroll-driven
   sliders. Everything is scoped to body.theme-v2, so pages that don't carry
   that class are unaffected. Behaviour lives in js/home.js.
   ========================================================================= */

.theme-v2 {
  /* Extra shades of the 188 palette */
  --c-deep-space-700: #143C50;   /* Deep Space + 8% Ghost White */
  --c-scarlet-hover: #CD0422;    /* Scarlet x 0.90 */

  /* Roles */
  --surface-dark: var(--deep-space);
  --surface-light: var(--ghost-white);
  --text-on-dark: var(--ghost-white);
  --text-on-dark-soft: var(--ghost-white); /* body text on dark is white */
  --text-on-light: var(--deep-space);
  --action: var(--scarlet);
  --action-hover: var(--c-scarlet-hover);
  --radius: 5px;
  --rule-indent: 22px;
  --content-max: 1320px; /* 60px gutter at 1440, so content lines up with the header logo */
  /* side padding that keeps content inside the column on wide screens */
  --pad-x: max(var(--gutter), (100% - var(--content-max)) / 2);

  /* Type: one step below 1280px, one above (stepped, not fluid).
     Headings are Inter Black, the site's display face, which is much wider
     than a condensed face, so the steps are smaller than the reference scale. */
  --fs-h1: 44px;
  --fs-h2: 40px;
  --fs-h3: 34px;
  --fs-h4: 28px;
  --fs-h6: 24px;
  --fs-statement: 32px;

  background: var(--ghost-white);
  color: var(--text-on-light);
  font-size: 16px;
  line-height: 1.5;
}

@media (min-width: 1280px) {
  .theme-v2 {
    --fs-h1: 88px;
    --fs-h2: 64px;
    --fs-h3: 52px;
    --fs-h4: 40px;
    --fs-h6: 32px;
    --fs-statement: 48px;
  }
}

/* sections.css isn't loaded on this page, so restate its mobile gutter */
@media (max-width: 768px) {
  :root { --gutter: 20px; }
}

/* Display headings */
.h-hero__title,
.h-slide__title,
.h-services__title,
.h-sectors__title,
.h-about__title,
.h-cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  text-wrap: balance;
  margin: 0;
}

/* 1px vertical rule with a fixed indent beside a text column */
.h-rule {
  border-left: 1px solid var(--deep-space);
  padding-left: var(--rule-indent);
}

.h-rule--dark {
  border-left-color: color-mix(in srgb, var(--champagne) 60%, transparent);
}

/* ---------- Buttons: the label slides left as an arrow fades in ---------- */
.theme-v2 .btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  background: var(--action);
  border: 1px solid var(--action);
  border-radius: var(--radius);
  color: #FFFFFF; /* 4.83:1 on Scarlet */
  font: 700 14px/1.2 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s linear, border-color 0.2s linear;
}

.btn__label {
  transform: translateX(12px);
  transition: transform 0.2s linear;
}

.btn__icon {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.2s linear;
}

.theme-v2 .btn:hover,
.theme-v2 .btn:focus-visible {
  background: var(--action-hover);
  border-color: var(--action-hover);
}

.btn:hover .btn__label,
.btn:focus-visible .btn__label { transform: translateX(0); }

.btn:hover .btn__icon,
.btn:focus-visible .btn__icon { opacity: 1; }

.theme-v2 :focus-visible {
  outline: 2px solid var(--focus, var(--deep-space));
  outline-offset: 3px;
}

.h-hero, .h-statement, .h-slides, .h-sectors, .h-cta { --focus: var(--ghost-white); }

/* ---------- Header: hides on scroll down, returns as a solid bar ---------- */
.theme-v2 .site-header {
  transition: transform 0.5s ease, background-color 0.5s ease, padding 0.3s ease;
}

.theme-v2 .site-header.is-hidden { transform: translateY(-100%); }

/* Always Deep Space once scrolled, so the white logo and icon never invert */
.theme-v2 .site-header.scrolled,
.theme-v2 .site-header.scrolled.dark-mode { background: var(--deep-space); }
.theme-v2 .site-header.dark-mode .logo img { filter: none; }
.theme-v2 .site-header.dark-mode .hamburger span { background-color: #FFFFFF; }

/* ---------- 1. Hero ---------- */
.h-hero {
  position: relative;
  height: 160svh; /* the inset frame holds for the extra 60svh */
  background: var(--ghost-white); /* light frame round the inset film: the hero sits under the header, so never dark */
}

.h-hero__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.h-hero__media {
  position: absolute;
  inset: 0;
  clip-path: inset(0px 0px 0px 0px round 0px);
  transition: clip-path 0.7s linear;
}

/* Background loop (black bars already cropped out of the file) */
.h-hero__clip {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* 75% Onyx at the top and bottom, clear through the middle */
.h-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0) 50%, rgba(10, 10, 10, 0.75));
}

.h-hero.is-inset .h-hero__media {
  clip-path: inset(7% max(var(--gutter), (100% - var(--content-max)) / 2) 7% round var(--radius));
}

.h-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* same inset as the header, so the text lines up with the logo at every width */
  padding: 0 var(--gutter) 64px;
  color: var(--text-on-dark);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.h-hero.is-inset .h-hero__content {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.h-hero__title {
  /* 9.4vw keeps "CONSTRUCTIONS." inside the column on small phones */
  font-size: min(var(--fs-h1), 9.4vw);
  color: var(--ghost-white);
  max-width: 11em;
  margin-bottom: 24px;
}

.h-hero__sub {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  max-width: 34em;
  margin: 0 0 32px;
  text-wrap: pretty;
}

/* Square play button, centred in the inset frame */
.h-hero__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--ghost-white);
  font: 700 14px/1.2 var(--font-body);
  text-shadow: 0 1px 8px rgba(10, 10, 10, 0.8); /* readable over bright parts of the film */
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
  pointer-events: none;
}

.h-hero__play svg {
  box-sizing: content-box;
  width: 28px;
  height: 28px;
  padding: 18px;
  background: var(--action);
  border-radius: var(--radius);
  fill: #FFFFFF;
  transition: background-color 0.2s linear;
}

.h-hero__play:hover svg { background: var(--action-hover); }

.h-hero.is-inset .h-hero__play {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .h-hero { height: 140svh; }
  .h-hero__content { padding-bottom: 48px; }
  .h-hero__sub { font-size: 18px; }
}

/* ---------- 2. Statement ---------- */
.h-statement {
  background: var(--surface-dark);
  padding: 160px var(--pad-x);
}

.h-statement__text {
  /* 26em wide, and the size eases down between 1280 and 1380 so the column is
     always exactly 26em: the words wrap identically on every desktop width */
  max-width: 26em;
  margin: 0;
  font: 400 var(--fs-statement)/1.2 var(--font-body);
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  text-wrap: pretty;
}

@media (min-width: 1280px) {
  .h-statement__text { font-size: min(var(--fs-statement), 3.48vw); }
}

.h-statement__text p {
  margin: 0;
  text-wrap: pretty;
}

/* about one blank line between paragraphs */
.h-statement__text p + p { margin-top: 1.2em; }
.h-statement__text .w {
  color: color-mix(in srgb, var(--ghost-white) 14%, var(--deep-space)); /* unlit: decorative until it lights up */
  transition: color 0.4s ease;
}

.h-statement__text .w.is-lit { color: var(--text-on-dark); }

/* "we can build it." lights up Scarlet (3:1 on Deep Space: passes AA for large text, and this is 32px or more).
   Without the word reveal (reduced motion) it's simply Scarlet. */
.h-statement__text .h-hl,
.h-statement__text .h-hl .w.is-lit { color: var(--scarlet); }

@media (max-width: 768px) {
  .h-statement { padding: 96px var(--gutter); }
}

/* ---------- Progress dashes (shared by both sticky sliders) ---------- */
.h-dashes {
  position: absolute;
  top: 50%;
  right: 32px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
  color: var(--ghost-white);
}

.h-dash {
  position: relative;
  width: 24px;
  height: 20px;
  padding: 0;
  color: inherit;
}

.h-dash::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  opacity: 0.55;
  transform: translateY(-50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.h-dash[aria-current="true"]::before {
  width: 24px;
  height: 3px;
  opacity: 1;
}

@media (max-width: 768px) {
  .h-dashes { right: 8px; }
}

/* ---------- 3. Sticky full-bleed slider ---------- */
.h-slides {
  position: relative;
  height: calc(var(--n) * 100svh);
  background: var(--surface-dark);
}

.h-slides__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.h-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.h-slide.is-active { opacity: 1; }

.h-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* flat 20% darkening, plus a fade at the bottom so the text reads */
.h-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0) 55%),
    rgba(0, 0, 0, 0.2);
}

.h-slide__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: end;
  gap: 48px;
  padding: 0 max(var(--pad-x), 96px) 80px var(--pad-x);
  color: var(--text-on-dark);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.h-slide.is-active .h-slide__body {
  opacity: 1;
  transform: none;
}

.h-slide__title {
  font-size: var(--fs-h2);
  color: var(--ghost-white);
}

.h-slide__copy {
  margin: 0;
  padding-left: var(--rule-indent);
  border-left: 1px solid color-mix(in srgb, var(--champagne) 60%, transparent);
  text-wrap: pretty;
}

/* Skip button: bottom right, jumps past the slider */
.h-skip {
  position: absolute;
  right: 32px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid color-mix(in srgb, var(--ghost-white) 35%, transparent);
  border-radius: var(--radius);
  color: var(--ghost-white);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.h-skip:hover {
  background: var(--action);
  border-color: var(--action);
}

.h-skip svg,
.h-arrow svg,
.h-modal__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 768px) {
  .h-slide__body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 56px 88px var(--gutter);
  }

  .h-skip { right: var(--gutter); }
}

/* ---------- 4. What we build ---------- */
.h-services {
  position: relative;
  background: var(--ghost-white);
  color: var(--text-on-light);
  padding: 96px var(--pad-x);
}

.h-services__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26em);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: 56px;
}

.h-services__title {
  font-size: var(--fs-h2);
  color: var(--deep-space);
}

.h-services__intro {
  margin: 0;
  font-size: 18px;
  text-wrap: balance;
}

.h-service {
  display: grid;
  gap: 24px;
}

.h-service + .h-service { margin-top: 64px; }

.h-service__img {
  order: -1;
  width: 100%;
  height: auto; /* overrides the height attribute so the 16:9 ratio applies */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.h-service__text {
  border-left: 1px solid var(--deep-space);
  padding-left: var(--rule-indent);
}

.h-service h3 {
  margin: 0 0 12px;
  font: 700 var(--fs-h6)/1.2 var(--font-body);
  color: var(--deep-space);
}

.h-service p {
  margin: 0 0 28px;
  max-width: 26em;
  text-wrap: pretty;
}

.h-services .h-dashes { display: none; color: var(--deep-space); }

/* Desktop: the section pins and the four services crossfade as you scroll */
@media (min-width: 1024px) {
  .h-services {
    height: calc(var(--n) * 75svh + 25svh);
    padding: 0;
  }

  .h-services__stage {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 640px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 72px var(--pad-x) 64px;
  }

  .h-services__slides { position: relative; }

  .h-service {
    position: absolute;
    inset: 0;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 64px;
    opacity: 0;
    transition: opacity 0.8s ease;
  }

  .h-service + .h-service { margin-top: 0; }
  .h-service.is-active { opacity: 1; }

  .h-service__img {
    order: 0;
    height: 100%;
    max-height: 100%;
    aspect-ratio: auto;
  }

  .h-services .h-dashes { display: flex; }
}

@media (max-width: 768px) {
  .h-services { padding: 72px var(--gutter); }
  .h-services__head { grid-template-columns: 1fr; margin-bottom: 40px; }
}

/* ---------- 5. Structures we build (card slider) ---------- */
.h-sectors {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: 96px 0 80px;
}

.h-sectors__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 0 var(--pad-x);
  margin-bottom: 40px;
}

.h-sectors__title {
  font-size: var(--fs-h4);
  color: var(--ghost-white);
}

.h-sectors__track {
  --per-view: 1.25;
  --gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad-x);
  scrollbar-width: none;
}

.h-sectors__track::-webkit-scrollbar { display: none; }
.h-sectors__track > li { scroll-snap-align: start; }

@media (min-width: 768px)  { .h-sectors__track { --per-view: 2; --gap: 24px; } }
@media (min-width: 1024px) { .h-sectors__track { --per-view: 3; --gap: 32px; } }
@media (min-width: 1280px) { .h-sectors__track { --per-view: 4; } }

.h-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.h-card__media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.h-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-in-out;
}

.h-card__title {
  display: block;
  margin-top: 16px;
  font: 700 20px/30px var(--font-body);
  color: var(--ghost-white);
}

/* Scarlet panel with a short description, over the photo on hover */
.h-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  padding: 48px 24px 40px;
  background: color-mix(in srgb, var(--action) 92%, transparent);
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty; /* no single word on the last line */
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.h-card:hover .h-card__media img,
.h-card:focus-visible .h-card__media img { transform: scale(1.2); }

.h-card:hover .h-card__overlay,
.h-card:focus-visible .h-card__overlay { opacity: 1; }

/* Touch screens: no hover, so the description sits under the title */
@media (hover: none) {
  .h-card__overlay {
    position: static;
    aspect-ratio: auto;
    padding: 6px 0 0;
    background: none;
    color: var(--text-on-dark-soft);
    font-size: 15px;
    opacity: 1;
  }
}

.h-sectors__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 var(--pad-x);
  margin-top: 32px;
}

.h-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--ghost-white) 35%, transparent);
  border-radius: var(--radius);
  color: var(--ghost-white);
  transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.h-arrow:hover:not(:disabled) {
  background: var(--action);
  border-color: var(--action);
}

.h-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- 6. Excellence + spec list ---------- */
.h-about {
  background: var(--ghost-white);
  padding: 120px var(--pad-x);
}

.h-about__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 96px;
  align-items: start;
}

.h-about__title {
  font-size: var(--fs-h3);
  color: var(--deep-space);
  max-width: 12em;
  margin-bottom: 28px;
}

.h-about__lead {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
}

.h-about__intro p {
  max-width: 38em;
  margin: 0 0 16px;
  text-wrap: pretty;
}

.h-about__intro p:last-child { margin-bottom: 0; }

.h-specs {
  margin: 0;
  border-top: 1px solid var(--deep-space);
}

.h-specs > div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 44, 65, 0.15);
}

.h-specs dt { font-size: 14px; font-weight: 700; padding-top: 2px; }
.h-specs dd { margin: 0; }

@media (max-width: 1023px) {
  .h-about__inner { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 768px) {
  .h-about { padding: 80px var(--gutter); }
}

/* ---------- 7. CTA band ---------- */
.h-cta {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: 134px var(--pad-x) 116px;
}

.h-cta__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 0 64px;
}

/* subgrid: headings, copy and buttons line up across the two columns */
.h-cta__col {
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  align-items: start;
  justify-items: start;
}

.h-cta h2 {
  font-size: var(--fs-h3);
  color: var(--ghost-white);
  margin-bottom: 24px;
}

/* Both headings two lines from 1024px up: "Design your structure / in our 3D tool."
   and "Got a project / in mind?". The size scales with the viewport so the
   designer heading's first line fits its column; the 8.5em cap makes the
   shorter heading break too. */
@media (min-width: 1024px) {
  .h-cta h2 { font-size: min(45px, 2.9vw); }
  .h-cta__col:first-child h2 { max-width: 8.5em; }
}

/* the quote paragraph is held narrower and balanced, so both columns run to three lines on desktop */
.h-cta__col:first-child p { max-width: 22em; text-wrap: balance; }

.h-cta p {
  max-width: 30em;
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--text-on-dark-soft);
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .h-cta { padding: 80px var(--gutter); }
  .h-cta__inner { grid-template-columns: 1fr; gap: 56px; }
  .h-cta__col { grid-row: auto; display: block; }
}

/* ---------- Film modal ---------- */
.h-modal {
  width: min(1100px, 92vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.h-modal::backdrop {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
}

.h-modal[open] { animation: h-modal-in 0.3s ease-out; }

@keyframes h-modal-in {
  from { opacity: 0; transform: translateY(30px) scale(0.8); }
}

.h-modal__frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.h-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.h-modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ghost-white);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .theme-v2 *,
  .theme-v2 *::before,
  .theme-v2 *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .h-card:hover .h-card__media img,
  .h-card:focus-visible .h-card__media img { transform: none; }
}

/* =========================================================================
   Service pages (theme v2)
   Hero with a dark panel, ruled intro columns, icon features, tabbed image
   block, spec list, ruled step/feature columns, FAQ and a final CTA band.
   ========================================================================= */

.c-section {
  padding: 120px var(--pad-x);
}

.c-light { background: var(--ghost-white); color: var(--deep-space); }
.c-dark  { background: var(--deep-space); color: var(--ghost-white); --focus: var(--ghost-white); }

@media (max-width: 768px) {
  .c-section { padding: 80px var(--gutter); }
}

/* Small label above a heading: a short Scarlet dash, then the text */
.c-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.c-eyebrow::before {
  content: '';
  width: 24px;
  height: 3px;
  background: var(--scarlet);
  flex: none;
}

.c-title,
.c-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  text-wrap: balance;
  margin: 0;
}

.c-title { font-size: var(--fs-h2); }
.c-title--sm { font-size: var(--fs-h4); }

.c-lead {
  margin: 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  text-wrap: pretty;
}

.c-dark .c-lead { color: var(--text-on-dark-soft); }

/* Heading row: eyebrow + title on the left, lead on the right */
.c-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26em);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: 64px;
}

@media (max-width: 900px) {
  .c-head { grid-template-columns: 1fr; margin-bottom: 48px; }
}

/* Two-column layout: ruled intro (sticky on desktop) and content */
.c-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}

.c-split__intro .c-title { margin-bottom: 24px; }

@media (min-width: 1024px) {
  .c-split__intro--sticky { position: sticky; top: 140px; }
}

@media (max-width: 1023px) {
  .c-split { grid-template-columns: 1fr; gap: 48px; }
}

.c-dark .h-rule { border-left-color: color-mix(in srgb, var(--champagne) 60%, transparent); }

/* ---------- Hero: full-bleed photo, dark panel bottom-left ---------- */
.c-hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  max-height: 1000px;
  overflow: hidden;
  background: var(--deep-space);
}

.c-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* keeps the white logo and menu icon readable over the photo */
.c-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 30%;
  z-index: 1;
  background: linear-gradient(rgba(10, 10, 10, 0.55), transparent);
  pointer-events: none;
}

.c-hero__panel {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: min(760px, 100%);
  padding: 72px 56px 64px var(--gutter);
  background: var(--deep-space);
  color: var(--ghost-white);
}

.c-hero__title {
  font-size: var(--fs-h1);
  color: var(--ghost-white);
  margin-bottom: 24px;
}

.c-hero__intro {
  margin: 0;
  max-width: 38.5em;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-on-dark-soft);
  text-wrap: pretty;
}

.c-hero__actions { margin-top: 32px; }

/* from 1280px the panel is wide enough for a two-line subtitle */
@media (min-width: 1280px) {
  .c-hero__panel { width: 940px; }
}

@media (max-width: 768px) {
  .c-hero { min-height: 600px; }
  .c-hero__panel { padding: 40px var(--gutter) 48px; }
  .c-hero__intro { font-size: 18px; }
}

/* ---------- Icon features (2 x 2) ---------- */
.c-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 56px;
}

.c-features li {
  border-top: 1px solid var(--deep-space);
  padding-top: 24px;
}

.c-features svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--scarlet);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  margin-bottom: 20px;
}

.c-features h3 {
  margin: 0;
  font: 700 22px/1.3 var(--font-body);
  text-wrap: balance;
  min-height: 2lh; /* the four headings line up at two lines */
}

.c-features__label {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .c-features { grid-template-columns: 1fr; gap: 32px; }
  .c-features h3 { min-height: 0; }
}

/* ---------- Tabbed image block ---------- */
.c-tabs__panels { position: relative; }

.c-tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 48px;
  align-items: stretch; /* the large photo runs the full height of the side column */
}

.c-tab-panel[hidden] { display: none; }

.c-tab-panel.is-entering { animation: c-fade 0.6s ease; }

@keyframes c-fade { from { opacity: 0; } }

.c-tab-panel__main {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .c-tab-panel__main { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
}

.c-tab-panel__side {
  display: grid;
  gap: 32px;
}

.c-tab-panel__side img {
  width: 100%;
  height: auto; /* overrides the height attribute so the ratio below applies */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.c-tab-panel h3 {
  margin: 0 0 12px;
  font: 700 var(--fs-h6)/1.2 var(--font-body);
}

.c-tab-panel p {
  margin: 0 0 20px;
  text-wrap: pretty;
}

.c-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.c-ticks li {
  position: relative;
  padding-left: 22px;
  font-weight: 600;
  text-wrap: balance;
}

.c-ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--scarlet);
}

/* Tab buttons: a progress bar along the top fills while a tab is shown */
.c-tabs__list {
  display: grid;
  grid-template-columns: repeat(var(--tabs, 2), minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.c-tab {
  position: relative;
  padding: 24px 0 0;
  text-align: left;
  font: 700 18px/1.3 var(--font-body);
  color: color-mix(in srgb, var(--deep-space) 55%, var(--ghost-white));
  transition: color 0.3s ease;
}

.c-tab::before,
.c-tab::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
}

.c-tab::before { right: 0; background: color-mix(in srgb, var(--deep-space) 15%, transparent); }
.c-tab::after { width: 0; background: var(--scarlet); }

.c-tab[aria-selected="true"] { color: var(--deep-space); }
.c-tab[aria-selected="true"]::after { width: 100%; }

/* while auto-advancing, the bar fills over the tab's time on screen */
.c-tabs.is-auto .c-tab[aria-selected="true"]::after {
  width: 0;
  animation: c-tab-fill var(--tab-time, 8s) linear forwards;
}

.c-tabs.is-paused .c-tab[aria-selected="true"]::after { animation-play-state: paused; }

@keyframes c-tab-fill { to { width: 100%; } }

.c-tab:hover { color: var(--deep-space); }

@media (max-width: 900px) {
  .c-tab-panel { grid-template-columns: 1fr; }
  .c-tab-panel__side img { display: none; } /* one photo per tab is enough when stacked */
  .c-tabs { display: flex; flex-direction: column; }
  .c-tabs__list { order: -1; margin: 0 0 32px; gap: 16px; }
}

/* ---------- Spec list (long) ---------- */
.c-spec {
  margin: 0;
  border-top: 1px solid var(--deep-space);
}

.c-spec > div {
  display: grid;
  grid-template-columns: 12em minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--deep-space) 20%, transparent);
}

.c-spec dt { font-size: 14px; font-weight: 700; padding-top: 2px; }
.c-spec dd { margin: 0; }
.c-spec .is-no dd { color: var(--scarlet); font-weight: 600; }

@media (max-width: 600px) {
  .c-spec > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Ruled columns (steps, industries) ---------- */
.c-cols {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 56px 40px;
}

.c-cols > li {
  border-left: 1px solid var(--deep-space);
  padding-left: var(--rule-indent);
}

.c-dark .c-cols > li { border-left-color: color-mix(in srgb, var(--champagne) 60%, transparent); }

.c-cols__num {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.c-light .c-cols__num { color: var(--scarlet); }
.c-dark .c-cols__num { color: var(--champagne); }

.c-cols h3 {
  margin: 0 0 10px;
  font: 700 20px/1.3 var(--font-body);
  text-wrap: balance;
}

.c-cols p { margin: 0; text-wrap: pretty; }
.c-dark .c-cols p { color: color-mix(in srgb, var(--ghost-white) 80%, transparent); }

@media (max-width: 1100px) {
  .c-cols { grid-template-columns: repeat(min(var(--cols, 4), 2), minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .c-cols { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Gallery (masonry, keeps every photo at its own ratio) ---------- */
.c-gallery {
  columns: 3;
  column-gap: 16px;
}

.c-gallery > img,
.c-gallery > .c-video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  border-radius: 12px;
  break-inside: avoid;
}

@media (max-width: 680px) {
  .c-gallery { columns: 2; column-gap: 12px; }
  .c-gallery > img, .c-gallery > .c-video { margin-bottom: 12px; }
}

/* Lazy YouTube tile: thumbnail and play button, the iframe loads on click */
.c-video {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.c-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.3s ease; }
.c-video:hover img { opacity: 0.95; }
.c-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.c-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--scarlet);
  transition: background-color 0.2s linear;
}

.c-video:hover .c-video__play { background: var(--action-hover); }
.c-video__play svg { width: 28px; height: 28px; fill: #FFFFFF; }

/* ---------- Stat row ---------- */
.c-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 64px;
}

.c-stats > div {
  border-left: 1px solid color-mix(in srgb, var(--champagne) 60%, transparent);
  padding-left: var(--rule-indent);
}

.c-stats b {
  display: block;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.c-stats b small { font-size: 0.5em; font-weight: 700; margin-left: 2px; }
.c-stats span { display: block; margin-top: 10px; font-size: 15px; color: var(--text-on-dark-soft); }

@media (max-width: 900px) {
  .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.c-actions { margin-top: 56px; }

/* ---------- FAQ: red question bars, the answer slides open below ---------- */
.c-faq { display: grid; gap: 10px; }

.c-faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 64px 20px 24px;
  border-radius: var(--radius);
  background: var(--scarlet);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 17px;
  transition: background-color 0.2s linear;
}

.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary:hover { background: var(--action-hover); }

.c-faq summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
}

.c-faq details[open] summary { border-radius: var(--radius) var(--radius) 0 0; }
.c-faq details[open] summary::after { content: '\2013'; }

.c-faq__ans {
  overflow: hidden;
  padding: 24px 24px 28px;
  border: 1px solid color-mix(in srgb, var(--champagne) 30%, transparent);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  color: color-mix(in srgb, var(--ghost-white) 82%, transparent);
}

.c-light .c-faq__ans {
  border-color: color-mix(in srgb, var(--deep-space) 15%, transparent);
  color: var(--deep-space);
}

/* ---------- Final CTA: Scarlet band, white button ---------- */
.c-final {
  background: var(--scarlet);
  color: #FFFFFF;
  padding: 104px var(--pad-x);
  --focus: #FFFFFF;
}

.c-final__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 96px;
  align-items: end;
}

.c-final .c-title { font-size: var(--fs-h3); color: #FFFFFF; }

.c-final p {
  margin: 0 0 32px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  text-wrap: pretty;
}

.c-final .btn { background: #FFFFFF; border-color: #FFFFFF; color: var(--deep-space); }
.c-final .btn:hover,
.c-final .btn:focus-visible { background: var(--deep-space); border-color: var(--deep-space); color: #FFFFFF; }

@media (max-width: 900px) {
  .c-final { padding: 72px var(--gutter); }
  .c-final__inner { grid-template-columns: 1fr; }
}

/* Unconfirmed facts, highlighted until the client confirms them */
.tbc { background: #fff2a8; color: #5a4a00; outline: 1px dashed #c9a800; padding: 0 3px; }

/* Side note under a block, with the thin rule */
.c-note {
  margin: 56px 0 0;
  max-width: 44em;
  padding-left: var(--rule-indent);
  border-left: 1px solid var(--deep-space);
  font-size: 18px;
  font-weight: 300;
  text-wrap: pretty;
}

/* industry descriptions: capped so all six wrap to two even lines */
.c-cols--ind p { max-width: 17em; text-wrap: balance; }

/* ---------- Additions for Steel Structures and Contact ---------- */

/* Outline button: white outline on dark or Scarlet sections, Deep Space on light ones */
.theme-v2 .btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--ghost-white);
}

.c-light .btn--ghost { color: var(--deep-space); }

.theme-v2 .btn--ghost:hover,
.theme-v2 .btn--ghost:focus-visible {
  background: var(--ghost-white);
  border-color: var(--ghost-white);
  color: var(--deep-space);
}

.c-light .btn--ghost:hover,
.c-light .btn--ghost:focus-visible {
  background: var(--deep-space);
  border-color: var(--deep-space);
  color: var(--ghost-white);
}

/* rows of buttons */
.c-actions,
.c-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* the white button on the Scarlet band keeps its own colours; the ghost one is a white outline */
.c-final .btn--ghost { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
.c-final .btn--ghost:hover,
.c-final .btn--ghost:focus-visible { background: #FFFFFF; border-color: #FFFFFF; color: var(--deep-space); }

/* Two ruled cards (heading, text, tick list); subgrid keeps the parts level across the pair */
.c-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 0 56px;
}

.c-cards > article {
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  align-content: start;
  border-left: 1px solid var(--deep-space);
  padding-left: var(--rule-indent);
}

.c-cards h3 { margin: 0 0 12px; font: 700 var(--fs-h6)/1.2 var(--font-body); }
.c-cards p { margin: 0 0 20px; max-width: 30em; text-wrap: pretty; }

@media (max-width: 768px) {
  .c-cards { grid-template-columns: 1fr; gap: 48px; }
  .c-cards > article { grid-row: auto; display: block; }
}

/* Spec list on a dark section */
.c-dark .c-spec { border-top-color: color-mix(in srgb, var(--champagne) 60%, transparent); }
.c-dark .c-spec > div { border-bottom-color: color-mix(in srgb, var(--ghost-white) 18%, transparent); }
.c-dark .c-spec a { color: inherit; text-underline-offset: 3px; }
/* Scarlet small text fails contrast on Deep Space, so "Not supplied" is bold white there */
.c-dark .c-spec .is-no dd { color: var(--ghost-white); font-weight: 700; }

.c-light .c-faq__ans a,
.c-dark .c-faq__ans a { color: inherit; text-underline-offset: 3px; }

/* ---------- Contact page ---------- */

/* Compact page heading: dark band with the title, no photo; clears the 120px header */
.c-pagehead {
  background: var(--deep-space);
  color: var(--ghost-white);
  padding: 200px var(--gutter) 88px;
}

.c-pagehead .c-hero__title { margin-bottom: 20px; }

@media (max-width: 768px) {
  .c-pagehead { padding: 150px var(--gutter) 56px; }
}

.c-body { margin: 20px 0 0; max-width: 34em; text-wrap: pretty; }

.c-form__title {
  margin: 0 0 32px;
  font: 700 var(--fs-h6)/1.2 var(--font-body);
}

.c-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.c-field { display: flex; flex-direction: column; gap: 8px; }
.c-field--full { grid-column: 1 / -1; }

.c-field label { font-size: 14px; font-weight: 700; }

.c-field input,
.c-field select,
.c-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--deep-space) 30%, transparent);
  border-radius: var(--radius);
  background: #FFFFFF;
  font: 400 16px/1.4 var(--font-body);
  color: var(--deep-space);
}

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

.c-field input:focus-visible,
.c-field select:focus-visible,
.c-field textarea:focus-visible {
  outline: 2px solid var(--deep-space);
  outline-offset: 1px;
  border-color: var(--deep-space);
}

.c-field .btn { align-self: flex-start; cursor: pointer; }

.c-form__note { margin: 12px 0 0; font-size: 14px; }

@media (max-width: 600px) {
  .c-form { grid-template-columns: 1fr; }
}

/* Direct contact columns */
.c-contact h3 { margin-bottom: 16px; }
.c-contact p { margin: 0 0 6px; }
.c-contact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.c-contact a:hover { color: var(--ghost-white); text-decoration-color: var(--scarlet); }
.c-contact__hours { margin-top: 14px !important; font-size: 14px; }

/* Map */
.c-map { background: var(--ghost-white); }
.c-map iframe { display: block; width: 100%; height: 520px; border: 0; }
.c-map__note { margin: 0; padding: 20px var(--gutter); text-align: center; font-size: 14px; color: var(--deep-space); }

/* hero button rows keep the hero's tighter spacing */
.c-hero__actions.c-actions { margin-top: 32px; }

/* ---------- Contact form states ---------- */

/* Honeypot: moved off-screen (not display:none) so bots fill it and people never see it */
.c-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.c-form { position: relative; }

.c-field__error {
  margin: 0;
  min-height: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--scarlet); /* 4.54:1 on Ghost White */
}

.c-field__error:empty { display: none; }

.c-field [aria-invalid="true"] { border-color: var(--scarlet); }

.c-form__status {
  padding: 16px 20px;
  border-left: 3px solid var(--deep-space);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #FFFFFF;
  font-size: 16px;
  line-height: 1.5;
}

.c-form__status:focus { outline: none; }
.c-form__status.is-success { border-left-color: #1E7B45; }
.c-form__status.is-error { border-left-color: var(--scarlet); }
.c-form__status a { color: inherit; text-underline-offset: 3px; }

.theme-v2 .btn:disabled { opacity: 0.6; cursor: wait; }
