/* =========================================================
   CEI Electrical & Mechanical / Global Stylesheet
   Editorial / engineering-led direction (Phoenix ME inspired)
   ========================================================= */


/* ---------- Tokens ---------- */
:root {
  /* Brand colours */
  --black:          #0a0a0a;
  --ink:            #141414;
  --charcoal:       #2a2a2a;
  --red:            #C8102E;
  --red-dark:       #A00D24;
  --red-light:      #E63946;

  /* Neutrals */
  --white:          #ffffff;
  --paper:          #f5f4f0;     /* warm off-white for editorial sections */
  --stone:          #e8e6df;     /* slightly deeper warm grey */
  --line:           #d8d6cf;
  --line-dark:      #1f1f1f;
  --muted:          #6b6b6b;
  --body:           #1a1a1a;

  /* Type */
  --sans:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display:        'Newsreader', Georgia, 'Times New Roman', serif;

  /* Layout */
  --container:      1320px;
  --container-wide: 1500px;
  --container-narrow: 880px;
  --radius:         2px;
  --radius-md:      4px;

  /* Effects */
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 12px 32px rgba(0,0,0,0.08);
  --shadow-lg:      0 24px 64px rgba(0,0,0,0.18);
  --t:              all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast:         all 0.22s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--t-fast);
}

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--red); color: var(--white); }

/* ---------- Type system ---------- */
.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h1, .h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.5vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h2, .h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
}

h3, .h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink);
}

h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
}

h5, h6 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--red);
}

.eyebrow.light { color: var(--white); }
.eyebrow.light::before { background: var(--red); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--charcoal);
  font-weight: 400;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.wrap-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 2rem; }
.wrap-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 2rem; }

@media (max-width: 640px) {
  .wrap, .wrap-wide, .wrap-narrow { padding: 0 1.25rem; }
}

section { padding: clamp(5rem, 9vw, 8.5rem) 0; }
section.compact { padding: clamp(3rem, 5vw, 5rem) 0; }

.bg-paper { background: var(--paper); }
.bg-stone { background: var(--stone); }
.bg-white { background: var(--white); }
.bg-ink   { background: var(--ink); color: var(--white); }
.bg-black { background: var(--black); color: var(--white); }

.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4,
.bg-black h1, .bg-black h2, .bg-black h3, .bg-black h4 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.85rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: var(--t);
  cursor: pointer;
  white-space: nowrap;
}

.btn .arrow {
  display: inline-flex;
  width: 18px;
  height: 12px;
  position: relative;
  transition: var(--t);
}
.btn .arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}
.btn .arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }

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

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

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

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--ink);
  transition: var(--t);
}
.btn-text:hover { color: var(--red); border-color: var(--red); gap: 1.2rem; }

.btn-text.light { color: var(--white); border-color: var(--white); }
.btn-text.light:hover { color: var(--red-light); border-color: var(--red-light); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: var(--t);
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* Text colour for nav items on scrolled/solid header */
.site-header.scrolled .nav-logo,
.site-header.solid .nav-logo,
.site-header.scrolled .nav-menu > li > a,
.site-header.solid .nav-menu > li > a,
.site-header.scrolled .nav-phone,
.site-header.solid .nav-phone { color: var(--ink); background: transparent; }

/* Hamburger lines on scrolled/solid header (these need ink as background-color, not text) */
.site-header.scrolled .nav-toggle span,
.site-header.solid .nav-toggle span,
.site-header.scrolled .nav-toggle span::before,
.site-header.solid .nav-toggle span::before,
.site-header.scrolled .nav-toggle span::after,
.site-header.solid .nav-toggle span::after { background-color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 2rem;
  color: var(--white);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: currentColor;
  text-transform: uppercase;
}

.nav-logo .logo-img {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-logo .wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo .wordmark .name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.nav-logo .wordmark small {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 2px;
}

/* Footer brand logo (larger) */
.footer-brand .nav-logo .logo-img { height: 52px; }
.footer-brand .nav-logo .wordmark small { opacity: 0.55; }

@media (max-width: 540px) {
  .nav-logo .logo-img { height: 36px; }
  .nav-logo .wordmark { display: none; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  padding: 0.65rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: currentColor;
  border-radius: var(--radius);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--red); }

.nav-menu .has-dropdown > a::after {
  content: '+';
  display: inline-block;
  margin-left: 0.5rem;
  opacity: 0.5;
  font-weight: 400;
}

.nav-menu .dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: -8px;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--t-fast);
}

.nav-menu .has-dropdown:hover .dropdown,
.nav-menu .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.nav-menu .dropdown a {
  display: block;
  padding: 0.7rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-menu .dropdown li:last-child a { border-bottom: none; }
.nav-menu .dropdown a:hover { color: var(--red); padding-left: 1.2rem; }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: currentColor;
}
.nav-phone svg { color: var(--red); }

.nav-cta .btn {
  padding: 0.85rem 1.4rem;
  font-size: 0.75rem;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  color: inherit;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: var(--t-fast);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active span::after  { transform: rotate(-45deg); top: 0; }

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav-phone { display: none; }
  .nav-cta .btn { display: none; }
  .nav-menu {
    position: fixed;
    inset: 84px 0 auto 0;
    background: var(--ink);
    color: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    transform: translateY(calc(-100% - 140px));
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s 0.4s;
    gap: 0;
  }
  .nav-menu.active { transform: translateY(0); visibility: visible; transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .site-header.scrolled .nav-menu,
  .site-header.solid .nav-menu { background: var(--ink); }
  .site-header.scrolled .nav-menu > li > a,
  .site-header.solid .nav-menu > li > a { color: var(--white); }
  .nav-menu > li > a {
    padding: 1rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu .dropdown {
    position: static;
    background: transparent;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0.5rem 1rem;
  }
  .nav-menu .dropdown a {
    color: rgba(255,255,255,0.7);
    border-bottom: none;
    padding: 0.5rem 0;
  }
  .nav-menu .has-dropdown > a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.25) 35%, rgba(10,10,10,0.85) 100%);
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 10rem 0 6rem;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: end;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero h1 .accent { color: var(--red-light); font-style: italic; font-weight: 500; }

.hero .lead {
  color: rgba(255,255,255,0.85);
  max-width: 38ch;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}

.hero-meta-item {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 1rem;
}
.hero-meta-item .label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.4rem;
}
.hero-meta-item .value {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Hero scroll cue */
.scroll-cue {
  position: absolute;
  left: 2rem;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.5);
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

/* Inner hero (smaller, for sub-pages) */
.hero.compact { min-height: 64vh; align-items: flex-start; }
.hero.compact .hero-inner { padding: max(9rem, calc(64vh - 24.5rem)) 0 4.5rem; }
@media (max-width: 700px) { .hero.compact .hero-inner { padding-top: max(8rem, calc(64vh - 19.25rem)); } }
.hero.compact h1 { font-size: clamp(2.25rem, 5vw, 4rem); max-width: 22ch; min-height: 2.04em; }
.hero.compact .breadcrumb {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}
.hero.compact .breadcrumb a:hover { color: var(--red-light); }
.hero.compact .breadcrumb .sep { margin: 0 0.6rem; opacity: 0.5; }

/* ---------- Intro / editorial blocks ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 2rem; } }

.intro-grid h2 { max-width: 14ch; }
.intro-grid .body p {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

/* Editorial split (image left, content right or vice versa) */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
@media (max-width: 900px) { .editorial { grid-template-columns: 1fr; } }

.editorial-image {
  background-size: cover;
  background-position: center;
  min-height: 520px;
  position: relative;
}

.editorial-content {
  padding: clamp(3rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editorial-content h2 { margin-bottom: 1.25rem; max-width: 16ch; }
.editorial-content .lead { margin-bottom: 1.5rem; }
.editorial-content p { color: var(--charcoal); margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.65; }

.editorial.reverse .editorial-image { order: 2; }
@media (max-width: 900px) { .editorial.reverse .editorial-image { order: 0; } }

/* ---------- Capability matrix ---------- */
.capability {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .capability { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .capability { grid-template-columns: 1fr; } }

.capability-cell {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: var(--t);
  position: relative;
}
.capability-cell:hover { background: var(--paper); }

.capability-cell .num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.capability-cell .icon {
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.capability-cell .icon svg { width: 48px; height: 48px; }

.capability-cell .cred-logo {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin-bottom: 1.6rem;
  filter: grayscale(1);
  opacity: 0.72;
  transition: var(--t);
}
.capability-cell:hover .cred-logo { filter: grayscale(0); opacity: 1; }
@media (max-width: 600px) { .capability-cell .cred-logo { height: 40px; } }

.capability-cell h3 {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.capability-cell p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.capability-cell .more {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.25rem;
  transition: var(--t);
}
.capability-cell:hover .more { color: var(--red); border-color: var(--red); }

/* ---------- Project showcase ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.project {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: var(--t);
}

.project.feature { grid-column: span 7; aspect-ratio: 16 / 11; }
.project.span-5  { grid-column: span 5; }
.project.span-4  { grid-column: span 4; }
.project.span-6  { grid-column: span 6; }
.project.span-12 { grid-column: span 12; aspect-ratio: 21 / 9; }

@media (max-width: 900px) {
  .project.feature,
  .project.span-5,
  .project.span-4,
  .project.span-6,
  .project.span-12 { grid-column: span 12; aspect-ratio: 4 / 3; }
}

.project::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.0) 35%, rgba(10,10,10,0.92) 100%);
  z-index: 1;
  transition: var(--t);
}
.project:hover::before { background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.95) 100%); }
.project:hover { transform: translateY(-4px); }

.project-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.25rem;
  z-index: 2;
}
.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 0.85rem;
}
.project h3 {
  color: var(--white);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 28ch;
}
.project .read {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: var(--t);
}
.project:hover .read { opacity: 1; transform: translateY(0); }

/* Section header (left-aligned, with right link) */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.section-head .left { max-width: 40rem; }
.section-head h2 { margin-bottom: 0; }

/* ---------- Sector tiles (Phoenix-style full-image cards) ---------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .sectors { grid-template-columns: 1fr; } }

.sector {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.25rem;
  transition: var(--t);
}
.sector::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.92) 100%);
  z-index: 1;
  transition: var(--t);
}
.sector:hover::before { background: linear-gradient(180deg, rgba(200,16,46,0.2) 0%, rgba(10,10,10,0.95) 100%); }
.sector > * { position: relative; z-index: 2; }

.sector .num {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 0.75rem;
}
.sector h3 {
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.sector p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.55; }

/* ---------- Process / numbered editorial list ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }

.process-step {
  background: var(--white);
  padding: 2.5rem 2rem;
}
.process-step .num {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--red);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}
.process-step h4 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.process-step p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* ---------- Stats strip (editorial, inline) ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 768px) { .stats-strip { gap: 2.5rem; } }

.stat .value {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.stat .value .sub { font-size: 0.45em; color: var(--red-light); margin-left: 0.15em; vertical-align: top; }
.stat .label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ---------- Editorial feature blocks (Innovation / ESG / People / Careers style) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1100px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .features { grid-template-columns: 1fr; } }

.feature {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background-color: var(--ink);
  transition: var(--t);
}
.feature::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.9) 100%);
  z-index: 1;
}
.feature > * { position: relative; z-index: 2; }
.feature:hover { transform: translateY(-4px); }

.feature h3 {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.feature p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.feature .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}
.feature:hover .arrow-link { color: var(--red-light); }

/* ---------- Accreditations & clients ---------- */
.accred-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.accred-strip .row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) { .accred-strip .row { grid-template-columns: 1fr; gap: 1.5rem; } }
.accred-strip .label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.accred-strip .items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}
.accred-strip .item {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.accred-strip .items img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: var(--t);
}
.accred-strip .items img:hover { filter: grayscale(0); opacity: 1; }
.accred-strip .items .accred-text {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
  opacity: 0.8;
  transition: var(--t);
}
.accred-strip .items .accred-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}
.accred-strip .items .accred-text:hover { color: var(--body); opacity: 1; }
@media (max-width: 600px) { .accred-strip .items img { height: 40px; max-width: 120px; } }

.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 1.5rem 0;
}
.clients-row .name {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: var(--charcoal);
  opacity: 0.65;
  transition: var(--t);
}
.clients-row .name:hover { opacity: 1; color: var(--ink); }

/* Client & framework logo strip */
.logo-strip-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.logo-strip .logo-tile {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  min-height: 120px;
  flex: 1 0 calc(20% - 0.8px);
  max-width: 100%;
}
.logo-strip .logo-tile img {
  max-height: 56px;
  width: auto;
  max-width: 100%;
  filter: grayscale(1);
  opacity: 0.6;
  transition: var(--t);
}
.logo-strip .logo-tile:hover img {
  filter: grayscale(0);
  opacity: 1;
}
@media (max-width: 1024px) { .logo-strip .logo-tile { flex-basis: calc(33.333% - 0.67px); } }
@media (max-width: 600px) {
  .logo-strip .logo-tile { flex-basis: calc(50% - 0.5px); min-height: 96px; padding: 1.5rem 1rem; }
  .logo-strip .logo-tile img { max-height: 44px; }
}

/* ---------- Testimonial (editorial pull-quote) ---------- */
.pullquote {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.pullquote .quote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}
.pullquote .quote::before {
  content: '"';
  display: block;
  font-size: 4rem;
  color: var(--red);
  line-height: 0.5;
  margin-bottom: 1rem;
}
.pullquote .attribution {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.pullquote .attribution strong {
  color: var(--ink);
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

/* ---------- CTA block ---------- */
.cta-block {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(200,16,46,0.3), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(200,16,46,0.1), transparent 50%);
  pointer-events: none;
}
.cta-block .wrap { position: relative; z-index: 2; }
.cta-block .inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: end;
}
@media (max-width: 900px) { .cta-block .inner { grid-template-columns: 1fr; gap: 2rem; } }
.cta-block h2 { color: var(--white); max-width: 18ch; }
.cta-block .actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Service detail blocks (for services / about etc.) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: none; }
@media (max-width: 768px) { .service-detail { grid-template-columns: 1fr; gap: 1rem; } }

.service-detail .heading {
  position: sticky;
  top: 120px;
  align-self: start;
}
.service-detail .heading .num {
  font-family: var(--display);
  font-size: 3rem;
  color: var(--red);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.service-detail .heading h2 { margin-bottom: 0.75rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.service-detail .body p { color: var(--charcoal); font-size: 1.05rem; line-height: 1.7; }
.service-detail .body h4 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.service-detail .body ul {
  list-style: none;
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}
@media (max-width: 600px) { .service-detail .body ul { grid-template-columns: 1fr; } }
.service-detail .body ul li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--charcoal);
  font-size: 0.97rem;
}
.service-detail .body ul li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1.5px;
  background: var(--red);
  margin-top: 0.65em;
  flex-shrink: 0;
}

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }

.person {
  text-align: left;
}
.person-photo {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--stone);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.person-photo .initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 5rem;
  color: var(--red);
  background: var(--ink);
}

/* Monogram variant: compact initials badge used in place of a headshot */
.person-photo.mono {
  aspect-ratio: auto;
  width: 84px;
  height: 84px;
  margin-bottom: 1.1rem;
  background-color: var(--ink);
}
.person-photo.mono .initials {
  font-size: 2rem;
  letter-spacing: 0.03em;
}
.person h3 {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.person .role {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.person p { color: var(--muted); font-size: 0.97rem; line-height: 1.55; }

/* ---------- Blog cards ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.post { display: block; }
.post-image {
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.25rem;
  background-color: var(--stone);
  overflow: hidden;
  position: relative;
}
.post-image::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(200,16,46,0);
  transition: var(--t);
}
.post:hover .post-image::after { background: rgba(10,10,10,0.18); }

.post-meta {
  display: flex; gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.post-meta .tag { color: var(--red); }
.post h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--ink);
  transition: var(--t);
}
.post:hover h3 { color: var(--red); }
.post p { color: var(--muted); font-size: 0.97rem; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { background: var(--white); }
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 540px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form .field { margin-bottom: 1.25rem; }
.contact-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: none;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: var(--t-fast);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--red);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-info { padding: 0; }
.office {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
}
.office:last-child { border-bottom: 1px solid var(--line); }
.office .office-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.office h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.office ul li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.35rem 0;
  font-size: 0.96rem;
  color: var(--charcoal);
}
.office ul li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--red); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  padding: 6rem 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; gap: 2.5rem; } }

.footer-brand h3 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--white);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.footer-brand h3 .accent { color: var(--red); font-style: italic; }
h1 .accent, h2 .accent { color: var(--red); font-style: italic; }
.hero h1 .accent { color: var(--red-light); }
.footer-brand p { color: rgba(255,255,255,0.8); max-width: 32rem; font-size: 0.95rem; }

.footer-col h5 {
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.footer-col ul li { padding: 0.4rem 0; }
.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  transition: var(--t-fast);
}
.footer-col a:hover { color: var(--red-light); }

.footer-meta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) { .footer-meta { grid-template-columns: 1fr; gap: 2rem; } }

.footer-office h6 {
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 540px) { .footer-offices { grid-template-columns: 1fr; } }
.footer-office address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.85rem;
}
.footer-office a { color: var(--red-light); font-size: 0.95rem; display: block; padding: 0.2rem 0; }
.footer-office a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 2rem 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}
.footer-bottom .links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom .links a { color: rgba(255,255,255,0.8); }
.footer-bottom .links a:hover { color: var(--red-light); }

.socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.socials a {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  transition: var(--t);
}
.socials a:hover { background: var(--red); border-color: var(--red); }

/* ---------- Fade-in animation ---------- */
.fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.fade.in { opacity: 1; transform: translateY(0); }
.fade.d1 { transition-delay: 0.1s; }
.fade.d2 { transition-delay: 0.2s; }
.fade.d3 { transition-delay: 0.3s; }
.fade.d4 { transition-delay: 0.4s; }
.fade.d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-cue::after { animation: none; }
}

/* ---------- SVG technical illustration ---------- */
.tech-illustration {
  width: 100%;
  height: auto;
  color: var(--red);
}
.tech-illustration .grid-bg { stroke: var(--line); stroke-width: 0.4; }
.tech-illustration .stroke  { stroke: var(--ink); stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tech-illustration .accent  { stroke: var(--red); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.tech-illustration .fill    { fill: var(--red); }
.tech-illustration .fill-dark { fill: var(--ink); }
.tech-illustration .label-text {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--muted);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-red    { color: var(--red); }
.text-white  { color: var(--white); }
.italic      { font-style: italic; }
.mb-0  { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: 1rem !important; }
.mb-md { margin-bottom: 2rem !important; }
.mb-lg { margin-bottom: 4rem !important; }
.mt-md { margin-top: 2rem !important; }
.mt-lg { margin-top: 4rem !important; }

/* ---------- Careers vacancies ---------- */
.vacancy-list { display: grid; gap: 1.25rem; }
.vacancy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: 2rem 2.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  transition: var(--t);
}
.vacancy:hover { border-color: var(--ink); }
.vacancy .v-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}
.vacancy .v-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 1rem;
}
.vacancy .v-meta .tag { color: var(--red); }
.vacancy p { color: var(--charcoal); font-size: 0.98rem; line-height: 1.6; margin: 0; max-width: 62ch; }
.vacancy .v-cta { white-space: nowrap; align-self: center; }
.vacancy .v-cta-group { display: flex; flex-direction: column; gap: 0.75rem; align-self: start; }
.vacancy .v-cta-group .btn { justify-content: center; }
.vacancy .v-details { margin-top: 1.25rem; }
.vacancy .v-details summary {
  cursor: pointer; list-style: none; display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--red); border-bottom: 1px solid currentColor;
  padding-bottom: 2px; transition: var(--t);
}
.vacancy .v-details summary::-webkit-details-marker { display: none; }
.vacancy .v-details summary::after { content: " +"; }
.vacancy .v-details[open] summary::after { content: " \2013"; }
.vacancy .v-details summary:hover { color: var(--ink); }
.vacancy .v-body { padding-top: 1.5rem; }
.vacancy .v-body p { margin-bottom: 1.25rem; }
.vacancy .v-body h4 {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); font-weight: 700; margin: 1.5rem 0 0.75rem;
}
.vacancy .v-body ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.vacancy .v-body li {
  position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem;
  color: var(--charcoal); font-size: 0.95rem; line-height: 1.55; max-width: 62ch;
}
.vacancy .v-body li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.65rem; height: 1px; background: var(--red); }
@media (max-width: 700px) {
  .vacancy { grid-template-columns: 1fr; padding: 1.75rem; }
  .vacancy .v-cta { justify-self: start; }
  .vacancy .v-cta-group { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Featured case (homepage + projects) ---------- */
.featured-case {
  position: relative;
  min-height: 720px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.featured-case::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.1) 100%);
}
.featured-case .wrap-wide { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 6rem; }
.featured-case .featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: end;
}
@media (max-width: 900px) { .featured-case .featured-grid { grid-template-columns: 1fr; } }
.featured-case h2 { color: var(--white); max-width: 22ch; margin-bottom: 1.25rem; }
.featured-case .featured-meta { display: flex; flex-direction: column; gap: 1.5rem; }
.featured-case .featured-meta .row { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 1rem; }
.featured-case .featured-meta .label {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); margin-bottom: 0.4rem;
}
.featured-case .featured-meta .value {
  font-family: var(--display); font-size: 1.5rem; font-weight: 500;
  color: var(--white); letter-spacing: -0.01em;
}

/* ---------- Mobile menu open: solid dark header (no hero photo bleeding through the top) ---------- */
@media (max-width: 1100px) {
  .site-header:has(.nav-menu.active) {
    background: var(--ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: rgba(255,255,255,0.08);
  }
  .site-header:has(.nav-menu.active) .nav-logo { color: var(--white); }
  .site-header:has(.nav-menu.active) .nav-toggle span::before,
  .site-header:has(.nav-menu.active) .nav-toggle span::after { background-color: var(--white); }
}

/* ---------- Mobile density polish (tighter spacing + tidier team on phones) ---------- */
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  section.compact { padding: 2.75rem 0; }
  .section-head { margin-bottom: 2rem; }
  .intro-grid { gap: 1.5rem; }
  .capability-cell { padding: 2.1rem 1.5rem; }
  .service-block .content { padding: 2.5rem 1.4rem; }
  .service-block .image { min-height: 280px; }
  .editorial-content { padding: 2.75rem 1.4rem; }
  .process-step { padding: 2rem 1.5rem; }
  /* wider team two-up so it isn't one long column of squares */
  .team-grid.two-col { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .team-grid.two-col .person h3 { font-size: 1.05rem; }
  .team-grid.two-col .person .role { font-size: 0.65rem; }
  .team-grid.two-col .person p { font-size: 0.85rem; line-height: 1.5; }
  .team-grid.two-col .person-photo .initials { font-size: 2.6rem; }
}

/* ---------- Services page: hide the cramped sticky sub-nav on phones (just scroll the numbered blocks) ---------- */
@media (max-width: 768px) {
  .service-nav { display: none; }
  .service-anchor { display: block; padding-top: 100px; margin-top: -100px; } /* sub-nav gone, only clear the header */
}


/* East Sussex office reveal */
.office-more { margin-top: 1.25rem; }
.office-more summary {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.78); cursor: pointer; font-weight: 600; list-style: none;
}
.office-more summary::-webkit-details-marker { display: none; }
.office-more summary::after { content: " +"; color: var(--red-light); }
.office-more[open] summary::after { content: " \2013"; }
.office-more address { margin-top: 0.5rem; }

/* Mobile accreditation strip: tidy centred grid */
@media (max-width: 600px) {
  .accred-strip .items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    justify-items: center;
    align-items: center;
  }
  .accred-strip .items img { height: 36px; max-width: 130px; }
  .accred-strip .items .accred-text { font-size: 1.15rem; }
}

/* Contact page office dropdown (light background) */
.contact-info .office-more { margin: 0; }
.contact-info .office-more summary { color: var(--muted); }
.contact-info .office-more summary:hover { color: var(--body); }
.contact-info .office-more address { font-style: normal; color: var(--body); margin-top: 0.5rem; }
