/* ============================================================================
   APEX PIPELINE SOLUTIONS — Stylesheet
   Bold industrial design system. Sharp corners, electric-blue accents,
   metallic greys, generous whitespace.
============================================================================ */

/* ---- 1. Tokens -------------------------------------------------------- */
:root {
  /* Colour */
  --ink:      #0E1217;
  --ink-2:    #1C232D;
  --blue:     #0E76E8;
  --blue-dk:  #0B5BB5;
  --blue-br:  #2A8BF5;
  --steel:    #8B95A1;
  --silver:   #C7CED6;
  --body:     #333B45;
  --mist:     #EEF1F4;
  --line:     #DCE1E7;
  --white:    #FFFFFF;

  /* Type */
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-pad-y: clamp(64px, 9vw, 120px);
  --header-h: 76px;

  /* Effects */
  --shadow-card: 0 1px 0 rgba(14, 18, 23, 0.04);
  --shadow-elev: 0 18px 40px -16px rgba(14, 18, 23, 0.25);

  /* Fluid type scale */
  --fs-display: clamp(2.6rem, 6.4vw, 5rem);
  --fs-h1: clamp(2.4rem, 5.4vw, 4rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-body-lg: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-eyebrow: .78rem;
}

/* ---- 2. Reset & base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-dk); }
button { font: inherit; cursor: pointer; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 .6em;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 800; letter-spacing: .02em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
p { margin: 0 0 1em; }

/* Focus */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue-br); outline-offset: 3px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 12px 16px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--white); }

/* Selection */
::selection { background: var(--blue); color: var(--white); }

/* ---- 3. Layout primitives -------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad-y) 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--silver); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--silver); }

/* Section heading with blue rule */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--blue-br); }
.section-title {
  position: relative;
  padding-bottom: 22px;
  margin-bottom: 32px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 4px;
  background: var(--blue);
}
.section-title.is-centered { text-align: center; }
.section-title.is-centered::after { left: 50%; transform: translateX(-50%); }
.section-lead {
  max-width: 64ch;
  font-size: 1.05rem;
  color: var(--body);
  margin-bottom: 0;
}
.section--dark .section-lead { color: var(--silver); }

/* ---- 4. Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn .btn-arrow { display: inline-block; transition: transform .15s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); color: var(--white); }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }

.btn--sm { padding: 12px 18px; font-size: .72rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---- 5. Header / Navigation ------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
}
.brand img { height: 52px; width: auto; }

.primary-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.primary-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver);
  position: relative;
}
.primary-nav a:hover { color: var(--white); }
.primary-nav a.is-active { color: var(--white); }
.primary-nav a.is-active::after {
  content: ""; position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--blue);
}
.header-cta { display: none; margin-left: 16px; }

/* Hamburger */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  margin-left: auto;
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle .bar::before,
.nav-toggle .bar::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .2s ease, top .2s ease; }
.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after  { top:  7px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px var(--gutter) 32px;
  transform: translateY(-12px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  overflow-y: auto;
  z-index: 49;
}
.mobile-nav[aria-hidden="false"] {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a.is-active { color: var(--blue-br); }
.mobile-nav .btn { margin-top: 24px; }

@media (min-width: 960px) {
  .primary-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---- 6. Hero & banners ----------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
  background: var(--ink) center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,18,23,.55) 0%, rgba(14,18,23,.85) 100%),
    linear-gradient(90deg, rgba(14,18,23,.7) 0%, rgba(14,18,23,.25) 65%);
}
.hero__inner {
  padding: clamp(100px, 14vw, 180px) 0 clamp(100px, 14vw, 180px);
  max-width: 880px;
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--silver);
  max-width: 60ch;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  padding: 8px 14px;
  font-family: var(--font-head); font-weight: 700;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-br);
  border-left: 3px solid var(--blue);
  background: rgba(14, 118, 232, 0.08);
}

/* Page banner (smaller hero for inner pages) */
.page-banner {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.page-banner__media {
  position: absolute; inset: 0;
  z-index: -2;
  background: var(--ink) center/cover no-repeat;
}
.page-banner__overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,18,23,.6) 0%, rgba(14,18,23,.85) 100%);
}
.page-banner__inner {
  padding: clamp(80px, 11vw, 140px) 0 clamp(70px, 9vw, 120px);
  max-width: 820px;
}
.page-banner h1 { color: var(--white); margin-bottom: 16px; }
.page-banner p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--silver);
  max-width: 60ch;
  margin-bottom: 0;
}

/* Breadcrumb-style label */
.page-banner__crumb {
  font-family: var(--font-head); font-weight: 700;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-br);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
.page-banner__crumb::before {
  content: ""; width: 28px; height: 3px; background: var(--blue);
}

/* ---- 7. Stat band ----------------------------------------------------- */
.stat-band {
  background: var(--ink-2);
  color: var(--white);
  border-top: 4px solid var(--blue);
  padding: clamp(48px, 7vw, 88px) 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
.stat { text-align: left; }
.stat__value {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--white);
  display: block;
  margin-bottom: 10px;
}
.stat__value .suffix { color: var(--blue-br); }
.stat__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver);
}
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- 8. Cards / grids ------------------------------------------------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .grid--2.is-wide { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
  height: 100%;
}
.card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elev); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-top: 16px; margin-bottom: 10px; }
.card p { color: var(--body); margin-bottom: 16px; }

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: rgba(14, 118, 232, 0.08);
  color: var(--blue);
  border: 1px solid rgba(14, 118, 232, 0.18);
}
.card__icon svg { width: 28px; height: 28px; }

.card__link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__link:hover { color: var(--blue-dk); }
.card__link::after { content: "→"; transition: transform .15s ease; }
.card__link:hover::after { transform: translateX(3px); }

/* Card on dark sections */
.section--dark .card {
  background: var(--ink-2);
  border-color: rgba(255, 255, 255, 0.08);
}
.section--dark .card:hover { border-color: transparent; }
.section--dark .card h3 { color: var(--white); }
.section--dark .card p { color: var(--silver); }
.section--dark .card__icon {
  background: rgba(14, 118, 232, 0.15);
  border-color: rgba(42, 139, 245, 0.35);
  color: var(--blue-br);
}

/* Value card (compact, no link) */
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 24px;
  display: flex; gap: 18px; align-items: flex-start;
  height: 100%;
  transition: border-color .2s ease, transform .2s ease;
  position: relative;
}
.value-card::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blue);
}
.value-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.value-card h3 {
  font-size: 1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 6px;
}
.value-card p { margin: 0; color: var(--body); }
.value-card__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.value-card__icon svg { width: 32px; height: 32px; }

/* Sector tile (projects page) */
.sector-tile {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 24px;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  position: relative;
  height: 100%;
}
.sector-tile::after {
  content: ""; position: absolute;
  top: 0; left: 0; width: 40px; height: 3px; background: var(--blue);
}
.sector-tile:hover { transform: translateY(-3px); border-color: var(--blue); }
.sector-tile h3 {
  margin: 0;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sector-tile p { margin: 0; color: var(--body); font-size: .95rem; }
.sector-tile__icon { color: var(--blue); width: 36px; height: 36px; }
.sector-tile__icon svg { width: 100%; height: 100%; }

/* ---- 9. Services (detail) -------------------------------------------- */
.service-block { padding: var(--section-pad-y) 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block--alt { background: var(--mist); }

.service-layout {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) { .service-layout { grid-template-columns: 1fr 1fr; } }
.service-layout.is-reverse .service-layout__media { order: -1; }
@media (min-width: 960px) {
  .service-layout.is-reverse .service-layout__media { order: 2; }
}

.service-layout__media {
  position: relative;
  background: var(--ink-2);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-layout__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.service-layout__media::after {
  content: ""; position: absolute;
  inset: auto 0 0 0; height: 4px; background: var(--blue);
}

.service-number {
  font-family: var(--font-head); font-weight: 900;
  font-size: .85rem; letter-spacing: .22em;
  color: var(--blue); text-transform: uppercase;
  margin-bottom: 14px; display: inline-block;
}

.capability-list {
  list-style: none;
  padding: 0; margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
}
@media (min-width: 560px) { .capability-list { grid-template-columns: 1fr 1fr; } }
.capability-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  font-size: .98rem;
  color: var(--body);
  border-bottom: 1px dashed var(--line);
}
.capability-list li::before {
  content: ""; flex-shrink: 0;
  width: 12px; height: 12px; margin-top: 7px;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ---- 10. Director cards (about) -------------------------------------- */
.director-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 28px;
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
}
.director-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 4px; background: var(--blue);
}
.director-card__avatar {
  width: 96px; height: 96px;
  background: var(--ink);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 900;
  font-size: 2.1rem; letter-spacing: .04em;
  margin-bottom: 22px;
  position: relative;
}
.director-card__avatar::after {
  content: ""; position: absolute;
  right: -8px; bottom: -8px;
  width: 32px; height: 32px;
  background: var(--blue);
}
.director-card h3 {
  font-size: 1.5rem; margin: 0 0 4px;
}
.director-card .role {
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--blue); margin-bottom: 20px;
}
.director-card p { color: var(--body); }

/* ---- 11. CTA band ---------------------------------------------------- */
.cta-band {
  background: var(--blue);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%);
  z-index: 0;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band__inner {
  padding: clamp(56px, 8vw, 96px) 0;
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-start;
}
@media (min-width: 880px) {
  .cta-band__inner {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 40px;
  }
}
.cta-band h2 {
  color: var(--white); margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 22ch;
}
.cta-band p { margin: 0; color: rgba(255,255,255,0.85); }

/* ---- 12. Contact page ------------------------------------------------ */
.contact-layout {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .contact-layout { grid-template-columns: 5fr 7fr; } }

.contact-details {
  background: var(--ink);
  color: var(--silver);
  padding: 40px 32px;
  position: relative;
}
.contact-details::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--blue);
}
.contact-details h2 { color: var(--white); }
.contact-details h2.section-title { color: var(--white); }
.contact-details h2.section-title::after { background: var(--blue-br); }
.measure-narrow { max-width: 60ch; }
.contact-details dl { margin: 0; }
.contact-details dt {
  font-family: var(--font-head);
  font-weight: 700; font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-br);
  margin-top: 24px; margin-bottom: 6px;
}
.contact-details dt:first-of-type { margin-top: 8px; }
.contact-details dd {
  margin: 0; color: var(--white);
  font-weight: 500; font-size: 1rem;
}
.contact-details dd a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.2); }
.contact-details dd a:hover { color: var(--blue-br); border-color: var(--blue-br); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px 32px;
  position: relative;
}
.contact-form::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--blue);
}
.form-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .form-row--full { grid-column: 1 / -1; }
}
.form-row { display: flex; flex-direction: column; }
.form-row label {
  font-family: var(--font-head);
  font-weight: 700; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-row label .req { color: var(--blue); margin-left: 4px; }
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 118, 232, 0.15);
}
.form-row .field-error {
  display: none;
  margin-top: 6px;
  font-size: .82rem; color: #C0392B; font-weight: 500;
}
.form-row.is-invalid input,
.form-row.is-invalid select,
.form-row.is-invalid textarea { border-color: #C0392B; }
.form-row.is-invalid .field-error { display: block; }
.honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; visibility: hidden; }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  background: var(--mist);
  color: var(--ink);
  font-weight: 500;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-left-color: #C0392B; background: #FBEEEC; color: #76241A; }
.form-status.is-success { border-left-color: #1E8E3E; background: #E8F5EC; color: #1E5C2A; }

/* ---- 13. Footer ------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: var(--silver);
  padding: 72px 0 28px;
  border-top: 4px solid var(--blue);
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; gap: 48px; }
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--silver); max-width: 38ch; margin: 0; font-size: .95rem; }
.footer-col h4 {
  color: var(--white);
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
  color: var(--silver);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: var(--white); }
.footer-contact { font-style: normal; font-size: .95rem; line-height: 1.7; }
.footer-contact a { color: var(--silver); }
.footer-contact a:hover { color: var(--white); }
.footer-contact .label {
  display: block;
  font-family: var(--font-head); font-weight: 700;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-br);
  margin-top: 8px; margin-bottom: 2px;
}
.footer-contact .label:first-child { margin-top: 0; }
.footer-region {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: .85rem; color: var(--steel);
}
.footer-bottom {
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .82rem; color: var(--steel);
}

/* ---- 14. Intro split (used on home) ---------------------------------- */
.intro-split {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) { .intro-split { grid-template-columns: 5fr 7fr; } }
.intro-split p { font-size: 1.05rem; }
.intro-split .lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

/* ---- 15. Animation utilities ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- 16. Credential strip (hero meta-row) ---------------------------- */
.cred-strip {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 16px 22px;
  margin-bottom: 22px;
  padding: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--silver);
}
.cred-strip__item { display: inline-flex; align-items: center; gap: 10px; }
.cred-strip__item::before {
  content: ""; width: 8px; height: 8px;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.cred-strip__item:first-child::before { display: none; }
.cred-strip__item:first-child {
  padding-left: 14px;
  border-left: 3px solid var(--blue);
  color: var(--blue-br);
}

/* ---- 17. Numbered service overview cards (home) ---------------------- */
.svc-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 28px 28px;
  display: flex; flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--blue);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .25s ease;
}
.svc-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-elev); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .24em;
  color: var(--blue);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
.svc-card__num::before {
  content: ""; width: 24px; height: 2px; background: var(--blue);
}
.svc-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  color: var(--blue);
  margin-bottom: 16px;
}
.svc-card__icon svg { width: 100%; height: 100%; }
.svc-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.svc-card p { color: var(--body); flex-grow: 1; margin-bottom: 18px; }
.svc-card__link {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.svc-card__link::after { content: "→"; transition: transform .15s ease; color: var(--blue); }
.svc-card__link:hover { color: var(--blue); }
.svc-card__link:hover::after { transform: translateX(4px); }

/* ---- 18. Process strip ("how we work") ------------------------------- */
.process {
  position: relative;
}
.process-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 720px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  position: relative;
  padding: 36px 28px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background .2s ease;
}
.process-step:hover { background: rgba(14, 118, 232, 0.05); }
@media (min-width: 720px) { .process-step:nth-child(2n) { border-right: 0; } }
@media (min-width: 1080px) {
  .process-step { border-bottom: 0; }
  .process-step:nth-child(2n) { border-right: 1px solid rgba(255, 255, 255, 0.08); }
  .process-step:nth-child(4n) { border-right: 0; }
}
.process-step__num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--blue);
  letter-spacing: .02em;
  display: block;
  margin-bottom: 18px;
}
.process-step h3 {
  color: var(--white);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  margin: 0 0 10px;
}
.process-step p { color: var(--silver); margin: 0; font-size: .95rem; }

/* ---- 19. Pre-footer band --------------------------------------------- */
.pre-footer {
  background: var(--ink-2);
  border-top: 4px solid var(--blue);
  color: var(--white);
  padding: 56px 0;
}
.pre-footer__inner {
  display: flex; flex-direction: column; gap: 22px;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .pre-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}
.pre-footer h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}
.pre-footer p { margin: 6px 0 0; color: var(--silver); font-size: .95rem; }
.pre-footer__credentials {
  display: flex; flex-wrap: wrap; gap: 10px 12px;
  margin-top: 14px;
}
.pre-footer__credentials span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- 20. Director portrait card (refined) ---------------------------- */
.director-card__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.director-card__portrait img,
.director-card__portrait svg {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.director-card__portrait::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px; background: var(--blue);
}
/* Placeholder used until real portraits supplied */
.director-card__portrait--placeholder {
  background:
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  position: relative;
}
.director-card__portrait--placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(14, 118, 232, 0.06) 0 24px, transparent 24px 48px);
}
.director-card__initials {
  position: relative;
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(4rem, 8vw, 6rem);
  color: var(--white);
  letter-spacing: .04em;
  line-height: 1;
  align-self: center;
  margin: 0 auto;
  padding-bottom: 12px;
}
.director-card__initials::after {
  content: ""; display: block;
  width: 56px; height: 3px;
  background: var(--blue);
  margin: 18px auto 0;
}
.director-card__caption {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--font-head); font-weight: 700;
  font-size: .62rem; letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(14, 18, 23, 0.6);
  padding: 6px 10px;
}
.director-card__quote {
  margin-top: 16px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-style: italic;
  color: var(--body);
  font-size: .95rem;
}

/* ---- 21. Capability stat callouts (services page) -------------------- */
.cap-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}
@media (min-width: 560px) { .cap-stats { grid-template-columns: repeat(3, 1fr); } }
.cap-stats__cell {
  padding: 18px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cap-stats__cell:nth-child(2n) { border-right: 0; }
@media (min-width: 560px) {
  .cap-stats__cell:nth-child(2n) { border-right: 1px solid var(--line); }
  .cap-stats__cell:nth-child(3n) { border-right: 0; }
}
.cap-stats__cell:last-child { border-bottom: 0; }
.cap-stats__value {
  display: block;
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.65rem; line-height: 1; color: var(--ink);
  margin-bottom: 6px;
}
.cap-stats__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}
.service-block--alt .cap-stats { background: var(--mist); }

/* ---- 22. Editorial stat band refinement ------------------------------ */
.stat-band {
  background: var(--ink-2);
  background-image:
    linear-gradient(180deg, rgba(14, 118, 232, 0.04) 0%, transparent 100%);
}
.stat-grid .stat {
  position: relative;
  padding-left: 0;
}
@media (min-width: 720px) {
  .stat-grid .stat + .stat {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}
.stat__value {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
}

/* ---- 23. Header refinement (sticky scrolled) ------------------------- */
.site-header { transition: min-height .2s ease, box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { background: rgba(14, 18, 23, 0.95); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.site-header.is-scrolled .header-inner { min-height: 64px; }
.site-header.is-scrolled .brand img { height: 44px; }

/* ---- 24. Utilities --------------------------------------------------- */
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.mt-md { margin-top: 24px; }
.stack-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--steel); font-size: .85rem; }

/* ---- 17. Print --------------------------------------------------------*/
@media print {
  .site-header, .site-footer, .cta-band, .hero__overlay { display: none; }
  body { color: #000; background: #fff; }
}

/* ---- 25. Service image stack (two project photos) --------------------- */
.service-layout__stack { display: grid; gap: 16px; }
.service-layout.is-reverse .service-layout__stack { order: -1; }
@media (min-width: 960px) { .service-layout.is-reverse .service-layout__stack { order: 2; } }
@media (max-width: 480px) { .brand img { height: 44px; } }
