/* ==========================================================================
   EMA Structures — Design System (v2: premium visual upgrade)
   Premium London structural engineering consultancy.
   Pure CSS, no build step. British English throughout.
   Class names unchanged from v1 — this upgrade is styling only.
   ========================================================================== */

/* ---------- Premium type (Sora headings + Inter body), system fallback ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --deep: #11161C;
  --charcoal: #1E2329;
  --soft-charcoal: #2A3038;
  --near-black: #11161C;
  --gold: #FFD21F;
  --gold-soft: #FFE072;
  --gold-deep: #A57C00;        /* accessible gold for text on light */
  --offwhite: #F7F5EF;
  --offwhite-2: #F2EFE6;
  --white: #FFFFFF;
  --grey: #5E6673;
  --grey-dark: #3A4049;
  --border: #E5E2D8;
  --border-2: #EDEAE0;
  --border-dark: #2A323C;
  --line-dark: #323B45;

  --maxw: 1220px;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(17,22,28,.05);
  --shadow-sm: 0 2px 4px rgba(17,22,28,.05), 0 6px 16px rgba(17,22,28,.05);
  --shadow-md: 0 8px 24px rgba(17,22,28,.09), 0 2px 6px rgba(17,22,28,.05);
  --shadow-lg: 0 30px 70px rgba(17,22,28,.20), 0 8px 24px rgba(17,22,28,.10);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Sora", "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--offwhite);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -.022em; color: var(--charcoal); }
h1 { font-size: clamp(2.1rem, 1.35rem + 3vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.35rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.32rem); font-weight: 600; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
strong { font-weight: 600; }
::selection { background: var(--gold); color: var(--near-black); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--charcoal); color: #C5CCD4; }
.section--dark h2, .section--dark h3 { color: var(--white); }
/* Cards keep their white background inside dark sections, so their headings must stay dark */
.section--dark .card h3 { color: var(--charcoal); }
.section--near-black { background: var(--near-black); color: #C5CCD4; }
.section--near-black h2, .section--near-black h3 { color: var(--white); }
.section--cream { background: var(--white); }
/* hairline separators between stacked light sections */
.section--cream + .section, .section + .section--cream { border-top: 1px solid var(--border-2); }
.skip-link { position:absolute; left:-9999px; top:0; background:var(--charcoal); color:#fff; padding:12px 18px; z-index:2000; }
.skip-link:focus { left:12px; top:12px; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; border-radius: 2px; }
.section--dark .eyebrow, .section--near-black .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lede { font-size: 1.14rem; line-height: 1.6; color: var(--grey); }
.section--dark .lede, .section--near-black .lede { color: #A6AEB8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .96rem; letter-spacing: -.01em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold); color: var(--near-black); box-shadow: 0 4px 14px rgba(255,210,31,.30); }
.btn-primary:hover { background: var(--gold-soft); box-shadow: 0 10px 26px rgba(255,210,31,.42); }
.btn-dark { background: var(--charcoal); color: var(--white); box-shadow: 0 4px 14px rgba(17,22,28,.18); }
.btn-dark:hover { background: var(--deep); box-shadow: 0 10px 26px rgba(17,22,28,.26); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--border); }
.btn-outline:hover { border-color: var(--charcoal); background: #fff; }
.btn-light { background: var(--white); color: var(--charcoal); }
.btn-on-dark { background: rgba(255,255,255,.04); color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-on-dark:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); }
.btn-text { color: var(--charcoal); font-weight: 600; padding: 13px 4px; }
.btn-text::after { content: "→"; margin-left: .4em; transition: transform .2s var(--ease); display: inline-block; }
.btn-text:hover { color: var(--gold-deep); }
.btn-text:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(42,46,52,.96), rgba(36,40,46,.96));
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 8px 28px rgba(0,0,0,.18);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header .container { transition: max-width .35s var(--ease), background .35s var(--ease), border-radius .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease); border: 1px solid transparent; }
/* Scroll-reactive state (mobile/base): header solidifies once scrolled */
.site-header.scrolled {
  background: linear-gradient(180deg, rgba(26,29,34,.99), rgba(19,22,26,.99));
  border-bottom-color: rgba(255,255,255,.10);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 10px 34px rgba(0,0,0,.34);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; transition: height .35s var(--ease); }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-img { height: 42px; width: 42px; display: block; flex-shrink: 0; transform-origin: left center; transition: transform .3s var(--ease); }
.logo-mark { font-family: var(--font-head); font-weight: 800; font-size: 1.48rem; letter-spacing: -.02em; color: #fff; line-height: 1; white-space: nowrap; transform-origin: left center; transition: opacity .2s, transform .3s var(--ease); }
.logo-accent { color: var(--gold); }
.logo:hover .logo-mark { opacity: .9; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 9px; white-space: nowrap;
  color: #CDD3DA; font-weight: 500; font-size: .95rem; letter-spacing: -.005em; transition: color .18s, background .18s;
}
.nav-links > li > a:hover, .nav-links > li:hover > a { color: #fff; background: rgba(255,255,255,.07); }
.nav-links > li.current > a { color: #fff; }
.nav-links > li.current > a { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 9px 9px 0 0; }
.nav-links .caret { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .7; transition: transform .2s; }
.has-dropdown:hover .caret { transform: rotate(180deg); }
/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 310px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s var(--ease);
}
.dropdown::before { content:""; position:absolute; top:-10px; left:0; right:0; height:10px; } /* hover bridge */
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 11px 14px; border-radius: 9px; color: var(--charcoal); font-weight: 600; font-size: .92rem; transition: background .15s, color .15s; }
.dropdown a:hover { background: var(--offwhite); color: var(--gold-deep); }
.dropdown a span { display: block; font-weight: 400; font-size: .8rem; color: var(--grey); margin-top: 2px; }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-right .btn { padding: 10px 18px; font-size: .86rem; }
.menu-toggle { display: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 9px; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; stroke: #fff; display: block; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 84px 0 0 0; background: var(--deep); z-index: 999;
  transform: translateX(100%); transition: transform .3s var(--ease);
  overflow-y: auto; padding: 22px 28px 70px; display: block;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a { display: block; color: #E4E8ED; font-weight: 600; font-size: 1.06rem; padding: 15px 0; border-bottom: 1px solid var(--border-dark); }
.mobile-drawer .group-label { color: var(--gold); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin: 24px 0 4px; font-weight: 700; }
.mobile-drawer .sub a { font-size: .98rem; padding: 12px 0 12px 16px; color: #AEB6C0; font-weight: 500; }
.mobile-drawer .btn { display: flex; justify-content: center; margin-top: 26px; width: 100%; }

/* ---------- Hero ---------- */
/* Clean premium hero — charcoal gradient + soft spotlight, no grid, no linework */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 95% at 80% 12%, #2D323B 0%, #1C2127 42%, #0F1317 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 55% at 76% 26%, rgba(255,210,31,.11), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; padding: 96px 0 104px; }
.hero-eyebrow { color: var(--gold); }
.hero h1 { color: #fff; max-width: 16ch; font-size: clamp(1.95rem, 1.15rem + 2.5vw, 3.1rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: .35em; }
.hero h1 .accent { color: var(--gold); }
.hero-sub { font-size: 1.12rem; line-height: 1.62; color: #AEB6C0; max-width: 54ch; margin: 20px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 34px; }
.hero-ctas .btn-on-dark { color: #fff; }
.hero-link { color: var(--gold); font-weight: 600; font-size: .96rem; }
.hero-link::after { content: "→"; margin-left: .4em; display: inline-block; transition: transform .2s var(--ease); }
.hero-link:hover::after { transform: translateX(4px); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: .82rem; font-weight: 500; color: #C5CCD4; border: 1px solid var(--border-dark); border-radius: 999px; padding: 8px 16px; line-height: 1.2; background: rgba(255,255,255,.025); transition: border-color .15s, color .15s, background .15s; }
.chip:hover { background: rgba(255,210,31,.06); }
.chip:hover { border-color: rgba(255,210,31,.5); color: #fff; }

/* Hero visual (landing photo) */
.hero-visual { position: relative; }
.hero-photo { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
@media (min-width: 1025px) {
  /* two-column hero: copy on the left (lead above body), photo full-bleed on the right */
  .hero-grid { grid-template-areas: "lead ." "body ."; column-gap: 60px; row-gap: 0; align-items: start; }
  .hero-lead { grid-area: lead; position: relative; z-index: 2; }
  .hero-body { grid-area: body; position: relative; z-index: 2; }
  /* the visual becomes a full-height box bleeding to the right edge of the screen */
  .hero-visual {
    position: absolute; top: 0; bottom: 0; margin: 0; z-index: 1;
    right: calc((100% - 100vw) / 2);
    width: 56vw;
  }
  /* the photo fills that box; left edge fades into the dark hero background */
  .hero-photo {
    width: 100%; height: 100%; border-radius: 0;
    object-fit: cover; object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 22%, #000 52%);
            mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 22%, #000 52%);
  }
}
/* Hero spec card (retained for reuse; not currently used on the homepage) */
.hero-card {
  position: relative; z-index: 2;
  background: linear-gradient(168deg, rgba(58,65,75,.55), rgba(28,33,40,.62));
  border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius-lg);
  padding: 34px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.07);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card .card-label { font-family: var(--font); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero-card h2 { font-size: 1.3rem; color: #fff; margin: 14px 0 22px; letter-spacing: -.02em; line-height: 1.28; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); color: #C5CCD4; font-size: .94rem; line-height: 1.45; align-items: flex-start; }
.hero-card li:first-child { border-top: 0; }
.hero-card li .tick { color: var(--gold); flex-shrink: 0; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,210,31,.14); font-size: .72rem; font-weight: 800; margin-top: 1px; }
.hero-card-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.pill { font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--near-black); background: var(--gold); border-radius: 999px; padding: 6px 13px; }
.pill.ghost { background: transparent; color: #C5CCD4; border: 1px solid var(--border-dark); }
/* floating mini cards */
.float-card {
  position: absolute; z-index: 3; background: rgba(255,255,255,.97); color: var(--charcoal);
  border: 1px solid rgba(255,255,255,.6); border-radius: 14px; padding: 13px 16px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 11px; max-width: 230px;
}
.float-card .fc-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--offwhite); border: 1px solid var(--border); display: grid; place-items: center; flex-shrink: 0; color: var(--charcoal); }
.float-card .fc-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.float-card .fc-k { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.float-card .fc-v { font-size: .86rem; font-weight: 600; line-height: 1.2; }
.float-1 { top: -26px; right: -22px; }
.float-2 { bottom: -26px; left: -28px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px 28px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; overflow: hidden;
}
.card::after { content:""; position:absolute; left:0; top:0; height:3px; width:0; background: var(--gold); transition: width .3s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.card:hover::after { width: 100%; }
.card .card-num { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--gold-deep); letter-spacing: .14em; }
.card h3 { margin-top: 10px; letter-spacing: -.02em; overflow-wrap: break-word; }
.card p { color: var(--grey); font-size: .95rem; line-height: 1.6; flex-grow: 1; }
.card .card-link { color: var(--charcoal); font-weight: 600; font-size: .9rem; margin-top: 10px; display: inline-flex; align-items: center; gap: .4em; }
.card .card-link::after { content: "→"; color: var(--gold-deep); transition: transform .2s var(--ease); }
.card:hover .card-link { color: var(--gold-deep); }
.card:hover .card-link::after { transform: translateX(4px); }
.card-icon { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(160deg, var(--offwhite), #fff); border: 1px solid var(--border);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--charcoal); transition: background .25s, color .25s, transform .25s; }
.card-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.card:hover .card-icon { background: var(--charcoal); color: var(--gold); transform: translateY(-2px); }

/* Tiles (How we help) */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px; font-weight: 600; font-size: .96rem; color: var(--charcoal); line-height: 1.4;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tile:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tile .arrow { color: var(--gold-deep); flex-shrink: 0; font-weight: 800; transition: transform .2s var(--ease); }
.tile:hover .arrow { transform: translateX(4px); }

/* ---------- Steps -> connected timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.steps::before { content:""; position:absolute; top:24px; left:5%; right:5%; height:2px;
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 14px); opacity:.22; }
.section--dark .steps::before { color: var(--gold); opacity:.4; }
.step { position: relative; }
.step .step-num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--gold); color: var(--near-black); font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 18px;
  box-shadow: 0 0 0 6px rgba(255,210,31,.12);
}
.section--dark .step .step-num { box-shadow: 0 0 0 7px rgba(255,210,31,.1), 0 0 0 1px rgba(255,210,31,.4); }
.step h3 { font-size: 1.08rem; margin-bottom: 7px; letter-spacing: -.02em; }
.step p { font-size: .9rem; color: var(--grey); line-height: 1.55; }
.section--dark .step p { color: #A6AEB8; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--charcoal); min-height: 340px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
/* engineering-linework placeholder (when an inner gradient div is used) */
.split-media > div { position: relative; }
.split-media > div::before {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,210,31,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,210,31,.07) 1px, transparent 1px);
  background-size: 38px 38px; opacity:.7;
}
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; color: var(--grey-dark); }
.checklist li::before { content: "✓"; color: var(--gold-deep); font-weight: 800; flex-shrink: 0; }
.section--dark .checklist li { color: #C5CCD4; }
.section--dark .checklist li::before { color: var(--gold); }
/* repair/service tag pills (optional inline use) */
.tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 28px; padding: 0; list-style: none; }
.tags li { font-size: .84rem; font-weight: 600; color: var(--grey-dark); background: var(--offwhite); border: 1px solid var(--border); border-radius: 999px; padding: 8px 15px; }
.section--dark .tags li { color: #C5CCD4; background: rgba(255,255,255,.04); border-color: var(--border-dark); }

/* ---------- Why choose (trust) ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust { border-top: 3px solid var(--gold); padding-top: 22px; }
.trust h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.trust p { color: var(--grey); font-size: .95rem; line-height: 1.6; }
.section--dark .trust p { color: #A6AEB8; }

/* ---------- Feature row ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px; list-style: none; padding: 0; margin: 0; }
.feature-row li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.feature-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255,210,31,.16); }

/* ---------- Areas strip ---------- */
.areas-strip { background: var(--charcoal); color: #fff; position: relative; overflow: hidden; }
.areas-strip::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 90% 50%, rgba(255,210,31,.08), transparent 55%); }
.areas-strip .container { padding-top: 64px; padding-bottom: 64px; position: relative; }
.areas-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.areas-list span { font-size: .85rem; color: #C5CCD4; border: 1px solid var(--border-dark); padding: 7px 14px; border-radius: 999px; transition: border-color .15s, color .15s; }
.areas-list span:hover { border-color: rgba(255,210,31,.5); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--gold), #ffce0a); color: var(--near-black); position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(17,22,28,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(17,22,28,.05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 60% 80% at 80% 50%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 80% 50%, #000, transparent 70%); }
.cta-band .container { padding: 76px 28px; text-align: center; position: relative; }
.cta-band h2 { color: var(--near-black); max-width: 22ch; margin: 0 auto .5rem; }
.cta-band p { max-width: 56ch; margin: 0 auto 28px; color: #2a2410; font-size: 1.1rem; }
.cta-band .btn-dark { background: var(--near-black); }
.cta-band .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .84rem; color: #9aa3ad; padding: 22px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: rgba(255,255,255,.25); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: #9aa3ad; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs li[aria-current] { color: #fff; font-weight: 600; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--charcoal); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: radial-gradient(ellipse 65% 85% at 88% 15%, #000, transparent 72%); -webkit-mask-image: radial-gradient(ellipse 65% 85% at 88% 15%, #000, transparent 72%);
}
.page-hero::after { content:""; position:absolute; top:-30%; right:-5%; width:50%; height:150%; background: radial-gradient(circle, rgba(255,210,31,.1), transparent 60%); pointer-events:none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .inner { padding: 36px 0 76px; max-width: 840px; }
.page-hero h1 { color: #fff; margin-top: 14px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero p { color: #AEB6C0; font-size: 1.16rem; line-height: 1.6; max-width: 60ch; }
.page-hero .hero-ctas { margin-top: 30px; }

/* ---------- Answer blocks / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose ul li { margin-bottom: 7px; }
.prose p { line-height: 1.7; }
.answer { background: linear-gradient(180deg, #fff, var(--offwhite)); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 24px 28px; margin: 0 0 24px; box-shadow: var(--shadow-xs); }
.answer p:last-child { margin-bottom: 0; }
.two-col-text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }

/* "Who this is for" */
.audience { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; padding: 0; list-style: none; }
.audience li { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 9px 17px; font-size: .9rem; font-weight: 600; transition: border-color .15s, transform .15s; }
.audience li:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 12px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 15px; font-size: 1.6rem; color: var(--gold-deep); font-weight: 300; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--grey); padding: 0 30px 18px 0; margin: 0; line-height: 1.65; }

/* ---------- Service index list ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }

/* ---------- Projects ---------- */
.project-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); color: #fff; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; border: 1px solid var(--border-dark); transition: transform .25s var(--ease), box-shadow .25s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card .cat { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.project-card h3 { color: #fff; font-size: 1.22rem; margin: 9px 0 7px; letter-spacing: -.02em; }
.project-card p { color: #AEB6C0; font-size: .92rem; margin: 0; line-height: 1.55; }
.project-card::before { content:""; position:absolute; inset:0; background:
  linear-gradient(180deg, rgba(17,22,28,.15), rgba(17,22,28,.9)),
  repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 24px),
  radial-gradient(circle at 75% 18%, rgba(255,210,31,.14), transparent 50%); transition: transform .6s var(--ease); }
.project-card:hover::before { transform: scale(1.06); }
.project-card > * { position: relative; z-index: 1; }
.project-card .cs-tag { position: absolute; top: 22px; right: 22px; z-index: 2; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #C5CCD4; border: 1px solid var(--border-dark); border-radius: 999px; padding: 5px 11px; background: rgba(17,22,28,.4); }
/* project card with a real photo background (set --photo inline); dark gradient keeps text readable */
.project-card--photo { background-image: var(--photo); background-size: cover; background-position: center; min-height: 340px; }
.project-card--photo::before { background:
  linear-gradient(180deg, rgba(17,22,28,.20) 0%, rgba(17,22,28,.55) 50%, rgba(17,22,28,.92) 100%); }

/* ---------- Blog ---------- */
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.post-card .cat { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.post-card h3 { margin: 10px 0; font-size: 1.18rem; letter-spacing: -.02em; }
.post-card p { color: var(--grey); font-size: .93rem; line-height: 1.6; flex-grow: 1; }
.post-card .card-link { color: var(--charcoal); font-weight: 600; font-size: .9rem; margin-top: 8px; }
.post-card .card-link::after { content:"→"; color: var(--gold-deep); margin-left: .4em; }

/* ---------- Forms ---------- */
.form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--offwhite); color: var(--charcoal); transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(255,210,31,.16); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* Honeypot anti-spam field — hidden from users and assistive tech, still in the DOM for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--grey); }
.consent input { width: auto; margin-top: 4px; }

/* ---------- Contact info cards ---------- */
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 18px; transition: box-shadow .2s; }
.info-card:hover { box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 1.06rem; letter-spacing: -.02em; }
.info-card a { color: var(--gold-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #98A0AA; padding: 54px 0 24px; font-size: .9rem; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1.15fr 1fr 1.15fr; gap: 24px 36px; padding-bottom: 30px; border-bottom: 1px solid var(--border-dark); }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: #7E8791; max-width: 40ch; line-height: 1.5; margin: 0; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 13px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; line-height: 1.35; }
.site-footer a { transition: color .15s; }
.site-footer a:hover { color: var(--gold); }
.footer-top .btn { margin-top: 12px; padding: 9px 18px; font-size: .85rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-top: 18px; color: #626B76; font-size: .8rem; }
.footer-bottom a:hover { color: var(--gold); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a { color: #8A929C; }
.footer-legal a:hover { color: var(--gold); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center-btn { display: flex; justify-content: center; margin-top: 48px; }
.muted { color: var(--grey); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* Image placeholder (until real images are added — see assets/IMAGES-TO-ADD.md) */
.img-ph { position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 4/3; width: 100%; padding: 20px; overflow: hidden;
  background: linear-gradient(150deg, #20262d, #11161c); color: #8A929C;
  border: 1px dashed var(--line-dark); border-radius: var(--radius);
  font-size: .82rem; font-weight: 600; letter-spacing: .01em; line-height: 1.5; }
.img-ph::before { content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,210,31,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,210,31,.06) 1px, transparent 1px);
  background-size: 30px 30px; }
.img-ph > span { position: relative; z-index: 1; max-width: 90%; }
.img-ph small { display: inline-block; margin-top: 6px; font-weight: 500; font-size: .72rem; color: #6B7480; }
.img-ph-logo { aspect-ratio: auto; height: 92px; width: auto; min-width: 280px; max-width: 340px; margin-bottom: 26px;
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.22); color: #C5CCD4; }

/* ---- Lightbox (click a gallery image to view full size) ---- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 5vh 4vw; background: rgba(10,13,16,.93); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.lightbox-cap { margin: 0; color: #C5CCD4; font-size: .9rem; line-height: 1.5; text-align: center; max-width: 70ch; }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.45); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .15s; }
.lightbox-close:hover { background: rgba(0,0,0,.75); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox:not([hidden]) { animation: lbIn .2s ease; }
  .lightbox:not([hidden]) img { animation: lbImgIn .26s var(--ease); }
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbImgIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* Project case-study layout */
.proj-figure .img-ph { aspect-ratio: 16/9; }
.proj-feature .split-media { min-height: 0; }
.proj-feature .img-ph { aspect-ratio: 3/2; }

/* Accreditations / "Trusted By" logo strip */
.trust-strip { padding-top: 28px; padding-bottom: 56px; }
/* When the strip follows another same-background section, tighten the seam so the two read as one block. */
.section:has(+ .trust-strip) { padding-bottom: 28px; }
.trust-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.trust-logos .logo-ph { aspect-ratio: auto; width: 200px; height: 92px; background: #fff; border: 1px solid var(--border); color: #6B7480; }
.trust-logos .logo-ph::before { display: none; }
.trust-logos img { max-width: 180px; max-height: 72px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .25s, opacity .25s; }
.trust-logos img:hover { filter: grayscale(0); opacity: 1; }
.proj-figure img, .proj-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
/* Portrait project photos (e.g. tall mezzanine / staircase shots) */
.proj-figure--portrait { display: flex; justify-content: center; }
.proj-figure--portrait img { width: auto; max-width: 100%; height: auto; max-height: 660px; object-fit: contain; }
.proj-gallery--portrait img { aspect-ratio: 3/4; height: auto; }
/* captioned gallery shot (e.g. before / after) */
.proj-shot { margin: 0; }
.proj-shot figcaption { margin-top: 11px; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); text-align: center; }

/* Two-column case-study lead: portrait image + project overview */
.proj-lead { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.proj-lead-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--charcoal); }
.proj-lead-figure img { width: 100%; height: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.proj-lead-meta h2 { margin: 10px 0 22px; }
.proj-lead-meta .proj-meta { grid-template-columns: 1fr 1fr; margin: 0 0 28px; gap: 22px 28px; }
.proj-lead-meta .btn { margin-top: 4px; }
/* landscape lead photo (e.g. a finished installation shot) */
.proj-lead--landscape .proj-lead-figure img { aspect-ratio: 4/3; }
@media (max-width: 860px) {
  .proj-lead { grid-template-columns: 1fr; gap: 30px; }
  .proj-lead-figure { max-width: 520px; margin: 0 auto; }
}

/* Featured project card with a portrait hero photo */
.proj-feature { align-items: start; }
.proj-feature .split-media { aspect-ratio: 4/5; min-height: 0; }
@media (max-width: 980px) { .proj-feature .split-media { aspect-ratio: 4/3; max-height: 460px; } }
.proj-meta { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 28px; }
.proj-meta .k { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 5px; }
.proj-meta .v { color: var(--charcoal); font-weight: 600; line-height: 1.4; }
@media (max-width: 760px) { .proj-meta { grid-template-columns: 1fr 1fr; } }
.lazy-fade { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.lazy-fade.in { opacity: 1; transform: none; }
/* subtle stagger when in a grid */
.grid .lazy-fade:nth-child(2) { transition-delay: .07s; }
.grid .lazy-fade:nth-child(3) { transition-delay: .14s; }
.grid .lazy-fade:nth-child(4) { transition-delay: .21s; }
.grid .lazy-fade:nth-child(5) { transition-delay: .28s; }
.grid .lazy-fade:nth-child(6) { transition-delay: .35s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  /* stacked order: headline, photo band, then body text + CTAs */
  .hero-grid { grid-template-columns: 1fr; gap: 18px; padding: 64px 0 76px; }
  .hero-visual { max-width: none; margin: 0; }
  .hero-body .hero-sub { margin-top: 0; }
  /* fade all four edges so the photo blends into the dark background */
  .hero-photo {
    border-radius: 0;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
    mask-composite: intersect;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 981px) {
  /* Desktop only: header detaches into a floating, rounded "pill" on scroll
     (mobile keeps the full-width 84px bar so the drawer stays aligned). */
  .site-header.scrolled {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 14px 20px 0;
  }
  .site-header.scrolled .container {
    max-width: calc(var(--maxw) - 80px);
    background: linear-gradient(180deg, rgba(28,31,36,.97), rgba(20,23,27,.97));
    backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-color: rgba(255,255,255,.12);
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.05);
    padding: 0 26px;
  }
  .site-header.scrolled .nav { height: 62px; }
  .site-header.scrolled .logo-mark { transform: scale(.94); }
  .site-header.scrolled .logo-img { transform: scale(.9); }
}
@media (max-width: 980px) {
  .nav-links, .nav-right .btn { display: none; }
  .menu-toggle { display: block; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-media { order: -1; min-height: 300px; }
  .two-col-text { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .svc-list { grid-template-columns: 1fr; }
  .float-card { display: none; }   /* keep hero clean on tablet/mobile */
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 38px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 8px; }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 0 18px; align-items: start; }
  .step .step-num { margin-bottom: 0; }
  .step h3, .step p { grid-column: 2; }
  .step h3 { margin-top: 4px; }
  .trust-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-card { padding: 26px; }
  .cta-band .container { padding: 56px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .lazy-fade { opacity: 1; transform: none; }
}
