/* ==========================================================================
   CUTECH — CAPABILITY PLATE
   Design system. Navy owns regions, paper carries reading, orange is structural.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — from the logo mark */
  --navy:        #12304a;
  --navy-deep:   #0c2236;
  --navy-lift:   #1b4266;
  --orange:      #f47c20;
  --orange-deep: #d9660f;
  --paper:       #f7f6f3;
  --paper-2:     #efede8;
  --white:       #ffffff;

  /* Ink on paper — all verified >= 4.5:1 against --paper */
  --ink:         #12304a;  /* 12.4:1 */
  --ink-2:       #4a5a68;  /*  6.6:1 */
  --ink-3:       #5f6c79;  /*  5.0:1 */

  /* Ink on navy — all verified >= 4.5:1 against --navy */
  --on-navy:     #f7f6f3;  /* 12.4:1 */
  --on-navy-2:   #a9bcce;  /*  7.0:1 */
  --on-navy-3:   #96acc0;  /*  5.8:1 */

  /* Orange carries text only where it can. The brand orange clears 4.5:1 on
     navy (5.0) but only reaches 2.5 on paper, so paper-borne index marks use
     the burnt variant (4.8). Bars and rules are non-text and stay brand orange. */
  --index-on-paper: #a94f0a;  /* 5.1:1 on paper, 4.7:1 on paper-2 */

  /* Structure */
  --rule:        #d9d5cd;
  --rule-navy:   rgba(247, 246, 243, 0.16);
  --rule-heavy:  #b9b3a8;

  /* Type */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body:    "Archivo", system-ui, -apple-system, sans-serif;
  --spec:    "Roboto Mono", ui-monospace, "Courier New", monospace;

  /* Measure & rhythm */
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --maxw:    1440px;
  --maxw-text: 68ch;

  /* Motion */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:  160ms;
  --t-base:  320ms;
  --t-slow:  620ms;

  /* Elevation is drawn, never blurred — this world has no soft shadows */
  --plate-line: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--orange);
  color: var(--navy-deep);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--text { max-width: calc(var(--maxw-text) + var(--gutter) * 2); }

.band { padding-block: clamp(4rem, 9vw, 8rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.band--navy {
  background: var(--navy);
  color: var(--on-navy);
}
.band--navy-deep {
  background: var(--navy-deep);
  color: var(--on-navy);
}
.band--paper-2 { background: var(--paper-2); }

/* --------------------------------------------------------------------------
   Type scale — condensed uppercase display, workhorse body, mono for spec
   -------------------------------------------------------------------------- */
.display-xl,
.display-l,
.display-m,
.display-s {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.display-xl { font-size: clamp(3rem, 8.5vw, 7.5rem); }
.display-l  { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
.display-m  { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.display-s  { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1; }

/* Spec label — the data-plate voice */
.spec {
  font-family: var(--spec);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* .hero and .page-head are dark grounds but are NOT .band--navy, so .spec was
   resolving to the paper ink and rendering ~2.7:1 on navy. Named explicitly. */
.band--navy .spec,
.band--navy-deep .spec,
.hero .spec,
.page-head .spec,
.panel .spec { color: var(--on-navy-3); }
.spec--orange { color: var(--orange); }

/* An index number, stencilled. Burnt on paper, brand orange on navy. */
.index {
  font-family: var(--spec);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--index-on-paper);
}
.band--navy .index,
.band--navy-deep .index,
.panel .index,
.hero .index,
.page-head .index { color: var(--orange); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
}
.band--navy .lede,
.band--navy-deep .lede { color: var(--on-navy-2); }

.prose p { max-width: var(--maxw-text); margin-bottom: 1.15em; }
.prose p:last-child { margin-bottom: 0; }

/* Section head — spec label, rule, then display heading */
.head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.head__rule {
  height: 3px;
  width: 56px;
  background: var(--orange);
  margin: 0.9rem 0 1.4rem;
}
.head__title { margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Buttons — stamped, square, no radius anywhere in this world
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  font-family: var(--spec);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.btn__arrow { transition: transform var(--t-base) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* Navy ink both states: white on --orange-deep measures only 3.58:1, navy 4.51:1 */
.btn--primary { background: var(--orange); color: var(--navy-deep); }
.btn--primary:hover { background: var(--orange-deep); color: var(--navy-deep); }

.btn--outline { border-color: var(--rule-heavy); color: var(--ink); }
.btn--outline:hover { border-color: var(--navy); background: var(--navy); color: var(--on-navy); }

.btn--on-navy { border-color: var(--rule-navy); color: var(--on-navy); }
.btn--on-navy:hover { background: var(--on-navy); color: var(--navy-deep); border-color: var(--on-navy); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: var(--plate-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand__mark { width: 38px; height: 38px; display: block; flex-shrink: 0; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav__link {
  position: relative;
  padding: 0.6rem 0.85rem;
  font-family: var(--spec);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--navy); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--rule-heavy);
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--navy);
  transition: background var(--t-fast) var(--ease);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--navy);
  transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Breakpoint sits above the point where nav + CTA stop fitting */
@media (max-width: 1100px) {
  .nav {
    position: fixed;
    inset: 76px 0 0 0;
    height: calc(100dvh - 76px);
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.5rem var(--gutter) 3rem;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t-base) var(--ease),
                opacity var(--t-fast) var(--ease),
                visibility 0s linear var(--t-base);
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .nav__link {
    padding: 1.15rem 0;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--on-navy);
    border-bottom: 1px solid var(--rule-navy);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--orange); }
  .nav__cta-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav__cta-mobile { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
  .nav__cta-mobile .btn { justify-content: center; }
}
@media (min-width: 1101px) {
  .nav__cta-mobile { display: none; }
}
@media (min-width: 1101px) and (max-width: 1260px) {
  .nav__link { padding-inline: 0.55rem; font-size: 0.68rem; }
  .site-header__inner { gap: 1rem; }
}

body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero — full-viewport slogan slideshow, wbho.co.za grammar
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Same measured ramp as before: heavy low and heavy left, where the slogan
     and lede sit. Verified at 5.08:1 worst against the brightest sky region. */
  background:
    linear-gradient(180deg, rgba(12,34,54,0.62) 0%, rgba(12,34,54,0.58) 42%, rgba(12,34,54,0.95) 100%),
    linear-gradient(90deg, rgba(12,34,54,0.88) 0%, rgba(12,34,54,0.55) 45%, rgba(12,34,54,0.22) 75%);
}
.hero__slide-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-bottom: 8rem;
}
.hero__slogan {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.5vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  color: var(--on-navy);
}
/* Brighter than the standard on-navy lede: this one sits over photography. */
.hero__lede {
  max-width: 52ch;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.93);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3.5rem;
  background: rgba(12, 34, 54, 0.45);
  border: 1px solid var(--rule-navy);
  color: var(--white);
  cursor: pointer;
  transition: background var(--t-base) var(--ease);
}
.hero__arrow:hover { background: rgba(12, 34, 54, 0.75); }
.hero__arrow .arrow { width: 1.1rem; height: 1.1rem; }
.hero__arrow--prev { left: 0; }
.hero__arrow--next { right: 0; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--rule-navy);
  border-radius: 50%;
  color: var(--white);
}
.hero__scroll .arrow { transition: transform var(--t-base) var(--ease); }
.hero__scroll:hover .arrow { transform: translateY(4px); }

@media (max-width: 700px) {
  .hero__slide-inner { padding-bottom: 14rem; }
  .hero__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
  .hero__scroll .arrow,
  .hero__scroll:hover .arrow { transition: none; transform: none; }
}

/* Data plate riding the hero's lower edge */
.plate {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-navy);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.plate__cell {
  padding: 1.4rem 1.25rem 0;
  border-right: 1px solid var(--rule-navy);
}
.plate__cell:last-child { border-right: 0; }
.plate__value {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.4rem;
}
@media (max-width: 800px) {
  .plate { grid-template-columns: repeat(2, 1fr); }
  .plate__cell:nth-child(2) { border-right: 0; }
  .plate__cell:nth-child(-n+2) { padding-bottom: 1.4rem; border-bottom: 1px solid var(--rule-navy); }
}

/* --------------------------------------------------------------------------
   Page header — for inner pages
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  background: var(--navy-deep);
  color: var(--on-navy);
  overflow: hidden;
}
.page-head__media { position: absolute; inset: 0; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,34,54,0.82) 0%, rgba(12,34,54,0.95) 100%);
}
.page-head__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.page-head__title { color: var(--white); margin-bottom: 1.25rem; }

/* Breadcrumb, stencilled */
.crumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--spec);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-3);
  margin-bottom: 1.5rem;
}
.crumb a:hover { color: var(--orange); }
.crumb span[aria-hidden] { color: var(--orange); }

/* --------------------------------------------------------------------------
   Project / capability panels — the reference site's spine
   -------------------------------------------------------------------------- */
.panels { display: grid; }

.panel {
  position: relative;
  min-height: clamp(420px, 56vw, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.panel__media { position: absolute; inset: 0; }
.panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--t-slow) var(--ease);
}
.panel:hover .panel__media img { transform: scale(1.06); }
.panel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Heavy behind the text band, light at the top so the photograph still
     reads. Ramp measured by compositing it over the actual panel JPEGs. */
  background: linear-gradient(180deg,
    rgba(12,34,54,0.22) 0%,
    rgba(12,34,54,0.42) 32%,
    rgba(12,34,54,0.88) 62%,
    rgba(12,34,54,0.97) 100%);
  transition: opacity var(--t-base) var(--ease);
}
.panel:hover .panel__media::after { opacity: 0.88; }

.panel__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  /* padding-block only — the shorthand would clobber .wrap's gutter and run
     the text flush against the viewport edge. */
  padding-block: clamp(2rem, 4vw, 3.25rem);
  color: var(--on-navy);
}
.panel__index { display: block; margin-bottom: 0.9rem; }
.panel__title { color: var(--white); margin-bottom: 0.85rem; }
.panel__desc { max-width: 46ch; color: var(--on-navy-2); margin-bottom: 1.5rem; }
.panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--spec);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color var(--t-fast) var(--ease);
}
.panel:hover .panel__cta { border-color: var(--orange); }

/* Two-up variant for denser sections */
@media (min-width: 900px) {
  .panels--two { grid-template-columns: 1fr 1fr; }
  .panels--two .panel { min-height: clamp(380px, 34vw, 480px); }
}

/* --------------------------------------------------------------------------
   Spec list — services and capabilities as ruled key/value rows
   -------------------------------------------------------------------------- */
.spec-list { border-top: 1px solid var(--rule); }

.spec-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--t-base) var(--ease);
}
.spec-row:hover { background: var(--paper-2); }
.spec-row__index { padding-top: 0.35rem; }
.spec-row__title { align-self: start; }
.spec-row__desc { color: var(--ink-2); }
.spec-row__action { align-self: center; }

@media (max-width: 900px) {
  .spec-row {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 0.5rem 1rem;
  }
  .spec-row__desc { grid-column: 2; }
  .spec-row__action { grid-column: 2; margin-top: 0.5rem; }
}

/* --------------------------------------------------------------------------
   Plate cards — bordered, square, no shadow
   -------------------------------------------------------------------------- */
.plate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
}
.plate-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.plate-card__index { display: block; margin-bottom: 1.1rem; }
.plate-card__title { margin-bottom: 0.75rem; }
.plate-card__body { color: var(--ink-2); font-size: 0.96rem; }

.band--navy .plate-grid,
.band--navy-deep .plate-grid { border-color: var(--rule-navy); }
.band--navy .plate-card,
.band--navy-deep .plate-card { border-color: var(--rule-navy); }
.band--navy .plate-card__body,
.band--navy-deep .plate-card__body { color: var(--on-navy-2); }

/* --------------------------------------------------------------------------
   Credential table — stamped, not styled
   -------------------------------------------------------------------------- */
.cred-table { border-top: 2px solid var(--navy); }
.cred-table th,
.cred-table td {
  text-align: left;
  padding: 1.15rem 1rem 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.cred-table th {
  font-family: var(--spec);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  width: 34%;
}
.cred-table td { font-weight: 500; }

/* --------------------------------------------------------------------------
   Split — image beside prose
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--wide-text { grid-template-columns: 1.15fr 1fr; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--wide img { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .split__media img { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   Detail list — a ruled two-up list of plain items (service inclusions,
   feature/application sublists). Same idiom as spec-list but without the
   index/description columns those rows require.
   -------------------------------------------------------------------------- */
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.detail-list__item {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.9rem 1rem 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.detail-list__item::before {
  content: "\2014";
  color: var(--orange);
  font-family: var(--spec);
  flex-shrink: 0;
}
.band--navy .detail-list,
.band--navy-deep .detail-list { border-color: var(--rule-navy); }
.band--navy .detail-list__item,
.band--navy-deep .detail-list__item { border-color: var(--rule-navy); }
@media (max-width: 700px) {
  .detail-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Marquee rule — a stencilled divider carrying the slogan
   -------------------------------------------------------------------------- */
.stencil-rule {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stencil-rule__text {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.stencil-rule__bar { flex: 1; height: 3px; background: var(--orange); }

/* --------------------------------------------------------------------------
   Call to action band
   -------------------------------------------------------------------------- */
.cta-band {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.5rem; }
.field__label {
  font-family: var(--spec);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-heavy);
  padding: 0.9rem 1rem;
  width: 100%;
  transition: border-color var(--t-fast) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-2);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
@media (max-width: 1000px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .site-footer__top { grid-template-columns: 1fr; gap: 2.5rem; } }

.footer__brand .brand__name { color: var(--white); }
.footer__heading {
  font-family: var(--spec);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-3);
  margin-bottom: 1.25rem;
}
.footer__list li { margin-bottom: 0.7rem; }
.footer__list a { transition: color var(--t-fast) var(--ease); }
.footer__list a:hover { color: var(--orange); }

.site-footer__bottom {
  border-top: 1px solid var(--rule-navy);
  padding-block: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-family: var(--spec);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-navy-3);
}

/* --------------------------------------------------------------------------
   Scroll reveal — orchestrated once, not scattered
   -------------------------------------------------------------------------- */
/* Progressive enhancement: content is visible by default and only starts hidden
   once JS has confirmed it can reveal it again. Without this, a failed script or
   an observer that never fires leaves whole sections permanently invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .panel__media img,
  .panel:hover .panel__media img { transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Navy-context corrections
   .spec-list and .cred-table were authored for paper. When they are placed
   inside a navy band their ink has to invert, or the text sits at ~1.9:1.
   -------------------------------------------------------------------------- */
.band--navy .spec-list,
.band--navy-deep .spec-list { border-top-color: var(--rule-navy); }

.band--navy .spec-row,
.band--navy-deep .spec-row { border-bottom-color: var(--rule-navy); }

.band--navy .spec-row:hover,
.band--navy-deep .spec-row:hover { background: rgba(247, 246, 243, 0.04); }

.band--navy .spec-row__title,
.band--navy-deep .spec-row__title { color: var(--white); }

.band--navy .spec-row__desc,
.band--navy-deep .spec-row__desc { color: var(--on-navy-2); }

.band--navy .cred-table,
.band--navy-deep .cred-table { border-top-color: var(--on-navy); }

.band--navy .cred-table th,
.band--navy-deep .cred-table th { color: var(--on-navy-3); }

.band--navy .cred-table td,
.band--navy-deep .cred-table td { color: var(--on-navy); }

.band--navy .cred-table th,
.band--navy .cred-table td,
.band--navy-deep .cred-table th,
.band--navy-deep .cred-table td { border-bottom-color: var(--rule-navy); }

.band--navy .detail-list__item,
.band--navy-deep .detail-list__item { color: var(--on-navy-2); border-bottom-color: var(--rule-navy); }

/* --------------------------------------------------------------------------
   On-dark modifiers
   These exist because the build was otherwise carrying 31 inline
   color:var(--white) declarations and 8 inline text-transform:uppercase —
   both of which are a missing modifier wearing an inline style.
   -------------------------------------------------------------------------- */
.display-xl--on-dark,
.display-l--on-dark,
.display-m--on-dark,
.display-s--on-dark { color: var(--white); }

.plate__value--caps { text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Drawn arrow — replaces the Unicode &rarr; glyph, which rendered in whatever
   face the button inherited and carried no consistent stroke.
   -------------------------------------------------------------------------- */
.arrow {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  fill: none;
  transition: transform var(--t-base) var(--ease);
}
.btn:hover .arrow,
.panel:hover .arrow,
.link-arrow:hover .arrow { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) {
  .arrow, .btn:hover .arrow, .panel:hover .arrow { transition: none; transform: none; }
}

/* --------------------------------------------------------------------------
   The Cutech Way — wbho.co.za grammar: image, quote, values list
   -------------------------------------------------------------------------- */
.way__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.3fr 0.75fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.way__media { align-self: stretch; }
.way__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.way__intro .head__rule { margin-bottom: 1.25rem; }
.way__intro h2 { margin-bottom: 1.25rem; }
.way__intro .lede { margin-bottom: 2rem; }
.way__values { list-style: none; }
.way__values li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule-navy);
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
}
.way__values li::before {
  content: "";
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--orange);
}
@media (max-width: 1000px) {
  .way__grid { grid-template-columns: 1fr; }
  .way__media img { min-height: 0; aspect-ratio: 16 / 9; }
}

.panel__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.panel__link { text-decoration: none; }
.panel:hover .panel__title { color: var(--orange); }

/* --------------------------------------------------------------------------
   Panel ink over photography
   Orange cannot carry small text over a bright photo: at 0.33 luminance it
   needs a ~97% scrim to clear 4.5:1, which would erase the picture. On panels
   the index mark and CTA therefore run white, and orange stays where it is
   legitimately structural — the rule that appears under the CTA on hover.
   -------------------------------------------------------------------------- */
.panel .index { color: var(--white); }
.panel__cta { color: var(--white); }
.panel:hover .panel__cta { border-color: var(--orange); }

/* --------------------------------------------------------------------------
   Ink over photography — the complete set
   .hero, .page-head and .panel are dark grounds but are NOT .band--navy, so
   every token that defaults to paper ink has to be named for them explicitly.
   Missing .lede here is what put the inner-page intro paragraphs at 1.2:1.
   All values below verified by compositing the scrim over the real JPEGs.
   -------------------------------------------------------------------------- */
.hero .lede,
.page-head .lede { color: rgba(255, 255, 255, 0.93); }

.page-head .crumb { color: var(--on-navy-2); }
.page-head .crumb a:hover { color: var(--orange); }

.hero .prose,
.page-head .prose { color: rgba(255, 255, 255, 0.9); }
