/* ============================================================
   DAYAVANTI ASSOCIATES — design system
   Quiet, precise, architectural. One family (Archivo) in two
   widths: expanded light for display, normal for reading.
   ============================================================ */

/* Domaine Display (Klim, licensed) kept available via ?font=domaine */
@font-face {
  font-family: 'Domaine Display Regular';
  src: local('Domaine Display Regular'), url('../fonts/DomaineDisplay-Regular.woff2') format('woff2');
  font-display: swap;
}

:root {
  --graphite: #15171a;
  --graphite-2: #1d2024;
  --limestone: #eae7e1;
  --paper: #f6f5f2;
  --bronze: #a88a5c;
  --concrete: #7e7c77;
  --white: #ffffff;
  --line-dark: rgba(255,255,255,.14);
  --line-light: rgba(21,23,26,.14);

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --wide: 125%;

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --section: clamp(5rem, 10vw, 9.5rem);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; font-variant-numeric: lining-nums; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text); font-weight: 400; font-size: 1rem; line-height: 1.6;
  background: var(--paper); color: var(--graphite); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; width: 100%; object-fit: cover; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* retired chrome from the previous design */
.cursor-dot, .cursor-ring, .nav-sep, .marquee, .scroll-indicator, .hero-locations { display: none !important; }

/* ============ TYPE SCALE ============ */
.display, .hero-title, .page-hero h1, .statement blockquote, .feature-body .display, .footer-top h2 {
  font-family: var(--display); font-stretch: var(--wide); font-weight: 300;
  letter-spacing: -.02em; line-height: 1.02; text-transform: none;
}
.display { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.display em { font-style: normal; color: inherit; }
.lead { font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.7; color: var(--concrete); max-width: 34em; }
.bg-dark2 .lead, .page-hero .lead, .banner .lead, #hero .lead { color: rgba(255,255,255,.72); }
.eyebrow { display: block; font-size: .9rem; font-weight: 500; color: var(--bronze); letter-spacing: 0; text-transform: none; }
.eyebrow::before, .eyebrow::after { display: none !important; }

/* heading font options (?font=...) swap the display face only */
html[data-font="domaine"] { --display: 'Domaine Display Regular', Georgia, serif; --wide: 100%; }
html[data-font="caslon"]  { --display: 'Libre Caslon Display', Georgia, serif; --wide: 100%; }
html[data-font="hanken"]  { --display: 'Hanken Grotesk', Arial, sans-serif; --wide: 100%; }
html[data-font="archivo"] { --display: 'Archivo', Arial, sans-serif; --wide: 125%; }

/* ============ MOTION: one orchestrated hero moment only ============ */
.reveal { opacity: 1; transform: none; }
.hero-title span { display: block; overflow: hidden; }
.hero-title span i { display: block; font-style: normal; transform: translateY(102%); transition: transform 1.4s var(--ease); }
.hero-title span:nth-child(2) i { transition-delay: .12s; }
body.loaded .hero-title span i { transform: none; }
.hero-bg { animation: heroSettle 2.4s var(--ease) both; }
@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ============ HEADER ============ */
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--bronze); z-index: 9999; }
#header {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: 84px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; color: var(--white);
  transition: background .4s, height .4s, color .4s, border-color .4s; border-bottom: 1px solid transparent;
}
#header.scrolled { background: rgba(21,23,26,.94); backdrop-filter: blur(14px); height: 68px; border-color: var(--line-dark); }
.nav-logo { display: flex; align-items: center; gap: .85rem; order: 0; }
.nav-logo img { width: 34px; }
.nav-logo-text { font-family: var(--display); font-stretch: var(--wide); font-weight: 400; font-size: .95rem; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 2.2rem; font-size: .92rem; margin-left: auto; margin-right: 2.4rem; }
.nav-links a { position: relative; padding: .3rem 0; opacity: .82; transition: opacity .3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.menu-btn { display: flex; align-items: center; gap: .7rem; font-size: .92rem; }
.menu-bars { display: flex; flex-direction: column; gap: 6px; }
.menu-bars span { display: block; width: 22px; height: 1px; background: currentColor; }
.btn-touch, .nav-right { display: none; }
@media (max-width: 960px) { .nav-links { display: none; } }

/* ============ MENU OVERLAY ============ */
#menu-overlay { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
#menu-overlay.open { pointer-events: all; }
.menu-panel {
  position: absolute; inset: 0 0 0 auto; width: min(560px, 100%); background: var(--graphite); color: var(--white);
  display: flex; flex-direction: column; padding: 0 var(--gutter);
  transform: translateX(100%); transition: transform .7s var(--ease); overflow-y: auto;
}
#menu-overlay.open .menu-panel { transform: none; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(10,11,12,.45); opacity: 0; transition: opacity .5s; }
#menu-overlay.open .menu-backdrop { opacity: 1; }
body.menu-open #header { opacity: 0; pointer-events: none; }
.menu-vert-text { display: none; }
.menu-topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-dark); }
.menu-topbar img { width: 30px; order: -1; }
.close-btn { display: flex; align-items: center; gap: .7rem; font-size: .92rem; }
.close-icon { width: 18px; height: 18px; position: relative; }
.close-icon::before, .close-icon::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: currentColor; }
.close-icon::before { transform: rotate(45deg); } .close-icon::after { transform: rotate(-45deg); }
.menu-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; }
.menu-nav a {
  font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  letter-spacing: -.01em; padding: .55rem 0; display: flex; justify-content: space-between; align-items: baseline;
  color: rgba(255,255,255,.7); transition: color .3s, padding-left .4s var(--ease);
}
.menu-nav a small { font-family: var(--text); font-stretch: 100%; font-size: .8rem; color: var(--concrete); }
.menu-nav a:hover, .menu-nav a.active { color: var(--white); padding-left: .5rem; }
.menu-footer { padding: 1.6rem 0 2rem; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: rgba(255,255,255,.6); }
.menu-footer a:hover { color: var(--white); }

/* ============ BUTTONS / LINKS ============ */
.btn-gold, .btn-line {
  display: inline-flex; align-items: center; height: 54px; padding: 0 1.8rem; font-size: .95rem; font-weight: 500;
  border: 1px solid currentColor; transition: background .35s, color .35s, border-color .35s;
}
.btn-gold { background: var(--white); color: var(--graphite); border-color: var(--white); }
.btn-gold:hover { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.btn-line { color: inherit; border-color: rgba(127,127,127,.45); }
.btn-line:hover { border-color: var(--bronze); color: var(--bronze); }
.bg-paper .btn-gold, .bg-sand .btn-gold, .bg-stone .btn-gold, .light .btn-gold, .contact-grid .btn-gold, .feature-body .btn-gold { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.4rem; }

/* ============ HOME HERO ============ */
#hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; color: var(--white); background: var(--graphite); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; filter: saturate(.9) brightness(.82); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,23,26,.6) 0%, rgba(21,23,26,0) 26%, rgba(21,23,26,.25) 48%, rgba(21,23,26,.92) 100%); }
.hero-content {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(2.5rem, 7vh, 5rem); z-index: 2;
  display: grid; grid-template-columns: minmax(0, 8.5fr) minmax(0, 3.5fr); gap: 3rem; align-items: end;
}
.hero-content .eyebrow { display: none; }
.hero-title { font-size: clamp(2.3rem, 7.8vw, 9rem); line-height: .98; letter-spacing: -.03em; font-weight: 250; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 300; margin-top: 1.4rem; color: rgba(255,255,255,.86); }
.hero-side { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; }
.hero-side p { font-size: .98rem; line-height: 1.7; color: rgba(255,255,255,.75); max-width: 30em; }
.hero-side p + p { margin-top: .6rem; }
.hero-side .btn-row { margin-top: 1.6rem !important; }
.hero-facts { position: absolute; top: 120px; right: var(--gutter); z-index: 2; text-align: right; font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.8; }
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-facts { display: none; }
}

/* ============ PAGE HERO (inner) ============ */
.page-hero { position: relative; min-height: 74vh; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: var(--graphite); padding: 150px var(--gutter) clamp(3rem, 8vh, 5rem); }
.page-hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(.75) brightness(.6); }
.page-hero-inner { position: relative; z-index: 2; max-width: 1080px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5.6rem); margin: 1rem 0 1.4rem; }
.crumbs { font-size: .88rem; color: rgba(255,255,255,.55); margin-top: 2.2rem; }
.crumbs a:hover { color: var(--white); }

/* ============ SECTIONS ============ */
.section { padding: var(--section) var(--gutter); position: relative; }
.section.tight { padding-top: clamp(3.5rem, 6vw, 5.5rem); padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.bg-dark2 { background: var(--graphite); color: var(--white); }
.bg-paper { background: var(--paper); }
.bg-sand, .bg-stone { background: var(--limestone); }
section:not([class*="bg-"]):not(#hero):not(.page-hero):not(.banner):not(.feature) { background: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head .display { margin-top: .9rem; }
.section-head.center { grid-template-columns: 1fr; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 1.4rem; } }

/* statement */
.statement { max-width: 1180px; }
.statement blockquote { font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.15; margin: 1rem 0 1.6rem; }
.statement blockquote em { font-style: normal; }
.statement p { font-size: 1rem; color: var(--concrete); }
.bg-dark2 .statement p { color: rgba(255,255,255,.6); }

/* split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center; }
.split > * { min-width: 0; }
.split.rev > :first-child { order: 2; }
.split .display { margin: .9rem 0 1.4rem; }
.split-media { position: relative; overflow: hidden; background: var(--limestone); }
.split-media img { height: clamp(340px, 44vw, 640px); }
.split-media.contain img { object-fit: contain; height: auto; max-height: 640px; background: #fff; }
.split-media figcaption { margin-top: .9rem; font-size: .88rem; color: var(--concrete); position: static; background: none; padding: 0; }
.points { list-style: none; margin-top: 2rem; border-top: 1px solid var(--line-light); }
.points li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-light); font-size: .98rem; line-height: 1.65; }
.points li b { font-weight: 500; color: var(--graphite); }
.bg-dark2 .points, .bg-dark2 .points li { border-color: var(--line-dark); }
.bg-dark2 .points li b { color: var(--white); }
.bg-dark2 .points li { color: rgba(255,255,255,.72); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } .points li { grid-template-columns: 1fr; gap: .2rem; } }

/* outcomes (stats as plain rows) */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 2rem 1.6rem 0 0; }
.stat small { display: block; font-size: .9rem; color: var(--concrete); }
.stat strong { display: block; font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: clamp(2.2rem, 3.6vw, 3.2rem); letter-spacing: -.03em; line-height: 1; margin: .9rem 0 .8rem; }
.stat p { font-size: .92rem; line-height: 1.55; color: var(--concrete); max-width: 18em; }
.bg-dark2 .stats { border-color: var(--line-dark); }
.bg-dark2 .stat p, .bg-dark2 .stat small { color: rgba(255,255,255,.6); }
.footnote { font-size: .82rem; color: var(--concrete); margin-top: 2.2rem; max-width: 60em; line-height: 1.6; }
.bg-dark2 .footnote { color: rgba(255,255,255,.45); }
@media (max-width: 1000px) { .stats, .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 520px) { .stats, .stats.four { grid-template-columns: 1fr; } }

/* cards → quiet two-column text grid, no boxes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--line-light); }
.card { padding: 1.8rem 0 2rem; border-bottom: 1px solid var(--line-light); background: none; }
.card .n { display: none; }
.card h3 { font-family: var(--text); font-weight: 500; font-size: 1.08rem; line-height: 1.35; margin-bottom: .55rem; letter-spacing: 0; text-transform: none; }
.card p { font-size: .95rem; line-height: 1.65; color: var(--concrete); }
.bg-dark2 .cards, .bg-dark2 .card { border-color: var(--line-dark); }
.bg-dark2 .card p { color: rgba(255,255,255,.62); }

/* steps — a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); column-gap: 2rem; }
.step { padding: 1.4rem 0 1rem; border-top: 1px solid var(--graphite); }
.step .n { font-size: .9rem; color: var(--bronze); font-weight: 500; }
.step h4 { font-weight: 500; font-size: 1.05rem; line-height: 1.35; margin: .7rem 0 .5rem; text-transform: none; letter-spacing: 0; font-family: var(--text); }
.step h4:empty, .step p:empty { display: none; }
.step p { font-size: .92rem; line-height: 1.6; color: var(--concrete); }
.bg-dark2 .step { border-color: rgba(255,255,255,.5); }
.bg-dark2 .step p { color: rgba(255,255,255,.62); }
.step::before { display: none; }

/* banner */
.banner { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; padding: var(--section) var(--gutter) clamp(3rem, 8vh, 5.5rem); color: var(--white); background: var(--graphite); }
.banner .bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(.7) brightness(.55); }
.banner::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(21,23,26,0) 30%, rgba(21,23,26,.85)); }
.banner .inner { position: relative; z-index: 2; max-width: 820px; }
.banner .display { margin: .9rem 0 1.3rem; }

/* tables */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--graphite); }
table.dt { width: 100%; border-collapse: collapse; min-width: 720px; }
.dt th, .dt td { text-align: left; padding: 1.1rem 1.4rem 1.1rem 0; border-bottom: 1px solid var(--line-light); vertical-align: top; font-size: .95rem; line-height: 1.6; }
.dt th { font-size: .85rem; font-weight: 500; color: var(--concrete); }
.dt td { color: var(--concrete); }
.dt td:first-child { color: var(--graphite); font-weight: 500; }
.bg-dark2 .table-wrap { border-color: rgba(255,255,255,.5); }
.bg-dark2 .dt th, .bg-dark2 .dt td { border-color: var(--line-dark); color: rgba(255,255,255,.62); }
.bg-dark2 .dt td:first-child { color: var(--white); }

/* chips → plain inline list */
.chips { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; }
.chips span { font-size: .98rem; color: inherit; padding: .35rem 0; border-bottom: 1px solid var(--line-light); }
.bg-dark2 .chips span { border-color: var(--line-dark); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.gallery figure { position: relative; overflow: hidden; background: #fff; }
.gallery img { height: 100%; min-height: 260px; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: static; padding: .8rem 0 0; background: var(--paper); font-size: .88rem; color: var(--concrete); }
.bg-dark2 .gallery figcaption, .bg-dark2 .gallery figure { background: var(--graphite); color: rgba(255,255,255,.6); }
.gallery.contain img { object-fit: contain; background: #fff; }
.g-12 { grid-column: span 12; } .g-8 { grid-column: span 8; } .g-6 { grid-column: span 6; } .g-4 { grid-column: span 4; } .g-3 { grid-column: span 3; }
@media (max-width: 800px) { .g-8, .g-6, .g-4, .g-3 { grid-column: span 12; } }

/* featured project */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 720px; background: var(--limestone); }
.feature-media { position: relative; overflow: hidden; }
.feature-media img { position: absolute; inset: 0; height: 100%; }
.feature-body { padding: clamp(3rem, 6vw, 6rem) var(--gutter) clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: flex-end; }
.feature-body .display { font-size: clamp(2rem, 3.4vw, 3rem); margin: .9rem 0 1.4rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin-top: 2.2rem; border-top: 1px solid var(--line-light); }
.facts div { padding: 1.1rem 0; border-bottom: 1px solid var(--line-light); }
.facts b { display: block; font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: 1.5rem; letter-spacing: -.02em; }
.facts span { font-size: .88rem; color: var(--concrete); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature-media { min-height: 420px; } }

/* locations */
.locations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--graphite); }
.location { padding: 2rem 2rem 0 0; }
.location h3 { font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: -.02em; }
.location p { display: none; }
@media (max-width: 700px) { .locations { grid-template-columns: 1fr; } }

/* intro facts row (home) */
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--graphite); }
.facts-row div { padding-top: 1.3rem; }
.facts-row b { display: block; font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.03em; line-height: 1.05; }
.facts-row span { display: block; margin-top: .5rem; font-size: .95rem; color: var(--concrete); }
@media (max-width: 700px) { .facts-row { grid-template-columns: 1fr; gap: 0; } .facts-row div { padding: 1.2rem 0; border-bottom: 1px solid var(--line-light); } }

/* ============ EXPERTISE: hover preview list ============ */
.xgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
.xpreview { position: sticky; top: 110px; }
.xframe { position: relative; aspect-ratio: 4 / 5; max-height: 74vh; overflow: hidden; background: var(--graphite-2); }
.xprev { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.xprev.is-active { opacity: 1; }
.xprev img { height: 100%; }
.xprev::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,23,26,0) 55%, rgba(21,23,26,.9)); }
.xprev figcaption { position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.5rem; z-index: 1; font-size: 1rem; line-height: 1.55; color: rgba(255,255,255,.88); }
.xprev figcaption span { display: block; font-size: .85rem; font-weight: 500; color: var(--bronze); margin-bottom: .4rem; }
.xcount { display: none; }
.xlist2 { list-style: none; border-top: 1px solid var(--line-dark); }
.xrow { border-bottom: 1px solid var(--line-dark); }
.xrow a { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: 1.4rem; padding: 1.25rem 0; }
.xn, .xtag { display: none; }
.xthumb { display: none; }
.xt { font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: clamp(1.05rem, 1.55vw, 1.4rem); letter-spacing: -.01em; color: rgba(255,255,255,.55); transition: color .3s, transform .5s var(--ease); }
.xarrow { width: 24px; height: 1px; background: var(--bronze); font-size: 0; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.xrow.is-active .xt { color: var(--white); transform: translateX(.4rem); }
.xrow.is-active .xarrow { transform: scaleX(1); }
@media (max-width: 900px) {
  .xgrid { grid-template-columns: 1fr; }
  .xpreview { display: none; }
  .xrow a { grid-template-columns: 72px minmax(0, 1fr); }
  .xthumb { display: block; width: 72px; height: 54px; }
  .xarrow { display: none; }
  .xt { color: rgba(255,255,255,.85); }
}

/* plain list (bim page) */
.xlist { list-style: none; border-top: 1px solid var(--line-light); counter-reset: x; }
.xlist li { border-bottom: 1px solid var(--line-light); }
.xlist .row, .xlist a { display: grid; grid-template-columns: 4rem minmax(0, 1fr); padding: 1.1rem 0; font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: clamp(1.05rem, 1.8vw, 1.5rem); letter-spacing: -.01em; }
.xlist .row::before, .xlist a::before { counter-increment: x; content: counter(x, decimal-leading-zero); font-family: var(--text); font-stretch: 100%; font-size: .9rem; color: var(--bronze); padding-top: .35rem; }
.xlist span { display: none; }

/* ============ STAGE SLIDER (Splide): one large stage at a time ============ */
.stage-sec { overflow-x: clip; }
.stage-slider .splide__slide { height: auto; }
.stage { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: end; height: 100%; }
.stage-text { padding-bottom: .4rem; }
.stage-n { display: block; font-size: .9rem; font-weight: 500; color: var(--bronze); }
.stage-title { font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: clamp(1.7rem, 2.9vw, 2.7rem); line-height: 1.08; letter-spacing: -.02em; margin: .9rem 0 1.1rem; }
.stage-img { height: clamp(320px, 64vh, 680px); overflow: hidden; background: var(--limestone); }
.stage-img img { height: 100%; transform: scale(1.05); transition: transform 7s linear; }
.splide__slide.is-active .stage-img img { transform: scale(1); }
.stage-controls { display: flex; align-items: flex-start; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.2rem; }
.stage-rail { flex: 1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .7rem; }
.stage-tick { text-align: left; color: var(--concrete); padding: 0 0 .3rem; transition: color .3s; }
.stage-tick:hover, .stage-tick.is-active { color: var(--graphite); }
.stage-bar { display: block; height: 2px; background: var(--line-light); overflow: hidden; margin-bottom: .75rem; }
.stage-bar i { display: block; height: 100%; width: 0; background: var(--bronze); }
.stage-tick.is-done .stage-bar i { width: 100%; }
.stage-tick-n { display: block; font-size: .8rem; }
.stage-tick-t { display: block; font-size: .86rem; font-weight: 500; line-height: 1.3; margin-top: .15rem; }
.stage-slider .splide__arrows { display: flex; gap: .6rem; flex: none; }
.stage-slider .splide__arrow { position: static; transform: none; width: 52px; height: 52px; border: 1px solid var(--line-light); border-radius: 50%; color: var(--graphite); font-size: 1rem; display: flex; align-items: center; justify-content: center; background: none; opacity: 1; transition: .3s; }
.stage-slider .splide__arrow:hover { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: start; }
  .stage-img { order: -1; height: clamp(240px, 62vw, 420px); }
  .stage-rail { gap: .35rem; }
  .stage-tick-n, .stage-tick-t { display: none; }
  .stage-bar { margin-bottom: 0; }
  .stage-tick { padding: .9rem 0; }
  .stage-controls { align-items: center; }
}

/* services sticky cards (kept for compatibility) */
.services-sticky-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
.sticky-left { position: sticky; top: 110px; align-self: start; }
.left-top-image { display: none; }
.scroll-right { display: grid; gap: 4rem; }
.service-card .image-box { overflow: hidden; }
.service-card .image-box img { height: 440px; transition: transform 1.2s var(--ease); }
.service-card:hover .image-box img { transform: scale(1.03); }
.service-card .num, .service-card .arrow { display: none; }
.service-card .body { padding-top: 1.2rem; }
.service-card h3 { font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: 1.6rem; letter-spacing: -.02em; }
.service-card p { color: var(--concrete); margin-top: .5rem; }
@media (max-width: 900px) { .services-sticky-section { grid-template-columns: 1fr; } .sticky-left { position: static; } .service-card .image-box img { height: 300px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 7vw, 7rem); }
.contact-grid > * { min-width: 0; }
.contact-info .row { border-top: 1px solid var(--line-light); padding: 1.3rem 0; }
.contact-info small { font-size: .88rem; color: var(--concrete); }
.contact-info p, .contact-info a { display: block; font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: 1.4rem; margin-top: .3rem; letter-spacing: -.01em; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.8rem 2rem; }
.form > * { min-width: 0; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; color: var(--concrete); }
.form label.full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(21,23,26,.35); background: transparent; padding: .7rem 0; font: 400 1.05rem var(--text); color: var(--graphite); outline: none; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--bronze); }
.form textarea { min-height: 130px; resize: vertical; }
@media (max-width: 800px) { .contact-grid, .form { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.lux-footer { background: var(--graphite); color: var(--white); padding: var(--section) var(--gutter) 2.2rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: end; padding-bottom: 4rem; border-bottom: 1px solid var(--line-dark); }
.footer-top h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.02; }
.footer-top h2 em, .footer-top h2 br { font-style: normal; }
.footer-cta p { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,.65); margin-bottom: 1.6rem; }
.footer-cta .btn-line { border-color: rgba(255,255,255,.4); color: var(--white); }
.footer-middle { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; flex-wrap: wrap; padding: 3.4rem 0; border-bottom: 1px solid var(--line-dark); }
.footer-logos { display: flex; align-items: center; gap: 2rem 3rem; flex-wrap: wrap; }
.footer-logos img { height: 48px; width: auto; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .7; transition: opacity .3s; }
.footer-logos img:hover { opacity: 1; }
.badge { display: flex; align-items: center; gap: .8rem; }
.badge b { font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: 1.3rem; letter-spacing: -.01em; padding-right: .8rem; border-right: 1px solid var(--line-dark); line-height: 1; }
.badge span { font-size: .78rem; line-height: 1.4; color: rgba(255,255,255,.55); }
.footer-social span { display: block; font-size: .9rem; margin-bottom: .9rem; color: rgba(255,255,255,.6); }
.social-icons { display: flex; gap: .6rem; }
.social-icons a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; transition: .3s; }
.social-icons a:hover { background: var(--white); color: var(--graphite); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 3.4rem 0; }
.footer-cols h5 { font-size: .9rem; font-weight: 500; color: var(--white); margin-bottom: 1rem; text-transform: none; letter-spacing: 0; }
.footer-cols a, .footer-cols p { display: block; font-size: .92rem; line-height: 2; color: rgba(255,255,255,.6); }
.footer-cols a:hover { color: var(--white); }
.footer-brand img { width: 40px; margin-bottom: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; border-top: 1px solid var(--line-dark); font-size: .85rem; color: rgba(255,255,255,.45); }
.footer-bottom .tag { font-style: normal; font-family: var(--text); font-size: .85rem; color: rgba(255,255,255,.45); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }

/* small screens */
@media (max-width: 520px) {
  .display { font-size: clamp(1.8rem, 8.4vw, 2.3rem); }
  .page-hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .hero-title { font-size: clamp(2.1rem, 12.2vw, 3.2rem); }
}

/* ============ STICKY SIDEBAR + SCROLLING CONTENT (services) ============ */
.side-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(3rem, 6vw, 6.5rem); align-items: start; }
.side-nav { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
.side-title { font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 1.2rem; }
.side-nav nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.side-nav nav a { position: relative; padding: .58rem 0 .58rem 0; font-size: .92rem; line-height: 1.35; color: var(--concrete); border-bottom: 1px solid var(--line-light); transition: color .3s, padding-left .4s var(--ease); }
.side-nav nav a:hover { color: var(--graphite); }
.side-nav nav a.is-active { color: var(--graphite); font-weight: 500; padding-left: 1rem; }
.side-nav nav a::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 1px; background: var(--bronze); opacity: 0; transition: opacity .3s; }
.side-nav nav a.is-active::before { opacity: 1; }
.side-content { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.side-item { scroll-margin-top: 100px; }
.side-item figure { overflow: hidden; background: var(--limestone); }
.side-item img { height: clamp(280px, 34vw, 520px); }
.side-item .display { font-size: clamp(1.6rem, 2.8vw, 2.5rem); margin: 1.6rem 0 .9rem; }
.side-item .lead { margin-bottom: 1.6rem; }
@media (max-width: 900px) {
  .side-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .side-nav { top: 68px; z-index: 10; max-height: none; overflow: visible; background: var(--paper); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); border-bottom: 1px solid var(--line-light); }
  .side-title { display: none; }
  .side-nav nav { flex-direction: row; gap: 1.4rem; overflow-x: auto; border-top: 0; scrollbar-width: none; }
  .side-nav nav::-webkit-scrollbar { display: none; }
  .side-nav nav a { flex: 0 0 auto; white-space: nowrap; padding: .9rem 0; border-bottom: 2px solid transparent; }
  .side-nav nav a.is-active { padding-left: 0; border-bottom-color: var(--bronze); }
  .side-nav nav a::before { display: none; }
  .side-item { scroll-margin-top: 130px; }
}

/* ============ SIDEBAR ON DETAIL PAGES: sections fit the narrower column ============ */
.side-back { display: inline-block; margin-top: 1.2rem; font-size: .92rem; font-weight: 500; border-bottom: 1px solid var(--bronze); padding-bottom: .15rem; }
.side-back:hover { color: var(--bronze); }
.side-sec .display { font-size: clamp(1.7rem, 3vw, 2.6rem); margin: .6rem 0 1rem; }
.side-sec .lead { margin-bottom: 0; }
.side-sec .section-head { grid-template-columns: minmax(0, 1fr); gap: .4rem; margin-bottom: 2rem; }
.side-sec .section-head .display { margin-top: .6rem; margin-bottom: .6rem; }
.side-sec .split { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
.side-sec .split.rev > :first-child { order: 0; }
.side-sec .split > figure, .side-sec .split.rev > figure { order: -1; }
.side-sec .split-media img { height: clamp(280px, 34vw, 500px); }
.side-sec .split-media.contain img { height: auto; max-height: 520px; }
.side-sec .statement blockquote { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-top: .6rem; }
.side-sec .gallery { margin-top: 2rem; }
.side-sec .cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.side-sec .steps { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.side-sec table.dt { min-width: 620px; }
@media (max-width: 900px) { .side-back { display: none; } }
.side-content { grid-template-columns: minmax(0, 1fr); }
.side-item { min-width: 0; }
.side-sec .steps { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); column-gap: 1.2rem; }
.side-sec .dt td:first-child { min-width: 5.5rem; }
#level-of-development .dt td:first-child { white-space: nowrap; }

/* ============ BIM HIGHLIGHT (home) ============ */
.bim-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.bim-top .display { margin: .9rem 0 1.3rem; }
.bim-list { list-style: none; margin-top: 1.8rem; border-top: 1px solid var(--line-light); }
.bim-list li { border-bottom: 1px solid var(--line-light); }
.bim-list a { display: block; padding: .8rem 0; font-size: 1rem; font-weight: 500; transition: color .3s, padding-left .4s var(--ease); }
.bim-list a:hover { color: var(--bronze); padding-left: .4rem; }
.bim-img { margin-right: calc(var(--gutter) * -1); overflow: hidden; }
.bim-img img { height: clamp(340px, 46vw, 680px); }
.bim-feature { overflow-x: clip; }
a.card { display: block; color: inherit; transition: background .3s; }
a.card:hover h3 { color: var(--bronze); }
@media (max-width: 900px) {
  .bim-top { grid-template-columns: minmax(0, 1fr); }
  .bim-img { order: -1; margin-left: calc(var(--gutter) * -1); }
  .bim-img img { height: clamp(240px, 62vw, 420px); }
}
.page-hero .eyebrow { color: #e0cba4; }

/* hero: the two supporting lines from the company profile cover */
.hero-kicker { font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 500; color: #e0cba4; margin-bottom: 1rem; }
.hero-lines { margin-top: 1.5rem; font-size: clamp(.74rem, 1.05vw, .95rem); font-weight: 500; letter-spacing: .06em; line-height: 1.9; color: rgba(255,255,255,.88); }
@media (max-width: 520px) { .hero-lines { letter-spacing: .02em; } }
@media (max-width: 900px) { #hero .hero-overlay { background: linear-gradient(180deg, rgba(21,23,26,.6) 0%, rgba(21,23,26,.1) 22%, rgba(21,23,26,.72) 42%, rgba(21,23,26,.94) 100%); } }

/* never hide the stages if the slider script fails to start: show them as a list */
.stage-slider { visibility: visible; }
.stage-slider:not(.is-initialized) .splide__list { display: block; }
.stage-slider:not(.is-initialized) .splide__slide { margin-bottom: 3rem; }
.stage-slider:not(.is-initialized) .stage-controls { display: none; }

/* ============ INNER SERVICE PAGES: sticky intro + image cards ============ */
.page-hero:has(+ .svc-layout) { min-height: 62vh; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; padding: clamp(3rem, 5vw, 5rem) var(--gutter) var(--section); background: var(--paper); }
.svc-left { position: sticky; top: 100px; }
.svc-left .display { margin: .9rem 0 1.3rem; font-size: clamp(1.9rem, 3.3vw, 3rem); }
.svc-stats { margin: 2rem 0 2.2rem; border-top: 1px solid var(--line-light); }
.svc-stat { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: .95rem 0; border-bottom: 1px solid var(--line-light); }
.svc-stat b { font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: 2.1rem; line-height: 1; letter-spacing: -.03em; color: var(--bronze); }
.svc-stat span { font-size: .9rem; line-height: 1.45; color: var(--concrete); }
.svc-left .btn-gold { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.svc-left .btn-gold:hover { background: var(--bronze); border-color: var(--bronze); }
.svc-right { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.6rem, 2.6vw, 2.4rem); min-width: 0; }

/* cards */
.svc-card { scroll-margin-top: 100px; min-width: 0; }
.svc-card .image-box { overflow: hidden; background: var(--limestone); }
.svc-card .image-box img { height: clamp(260px, 30vw, 430px); }
.svc-card .image-box.contain { background: #fff; }
.svc-card .image-box.contain img { object-fit: contain; }
.svc-body { background: var(--limestone); padding: clamp(1.6rem, 3vw, 2.8rem); }
.svc-cta { margin-top: 2rem; }
.svc-cta .btn-gold { background: var(--graphite); color: var(--white); border-color: var(--graphite); height: 48px; font-size: .9rem; }
.svc-cta .btn-gold:hover { background: var(--bronze); border-color: var(--bronze); }
.svc-body .display { font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
.svc-body .lead { color: #5f5d58; }
.svc-body .card p, .svc-body .step p, .svc-body .dt td, .svc-body .stat p, .svc-body .stat small, .svc-body .footnote { color: #5f5d58; }
.svc-body .dt td:first-child { color: var(--graphite); }
.svc-body .gallery figcaption, .svc-body .gallery figure { background: var(--limestone); }
.svc-body .stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.svc-body .stat { padding-right: .8rem; }
.svc-body .stat strong { font-size: clamp(1.8rem, 2.4vw, 2.3rem); }
.svc-body table.dt { min-width: 540px; }
.svc-body .split-media { display: none; }

/* why, vision, faq */
.why-block, .faq-block { padding: clamp(1.6rem, 3vw, 2.4rem) 0 0; }
.why-block .display, .faq-block .display, .vision-block .display { font-size: clamp(1.6rem, 2.5vw, 2.3rem); margin: .7rem 0 1.6rem; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.why-item { background: var(--graphite); color: var(--white); padding: 1.7rem 1.5rem; }
.why-item h3 { font-size: 1.02rem; font-weight: 500; line-height: 1.35; margin-bottom: .55rem; }
.why-item p { font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,.65); }
.vision-block { background: var(--graphite); color: var(--white); padding: clamp(2rem, 3.6vw, 3.2rem); }
.vision-block p { font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,.72); }
.vision-block p + p { margin-top: 1rem; }
.faq-list { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.15rem 0; font-size: 1.02rem; font-weight: 500; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; width: 32px; height: 32px; border: 1px solid rgba(168,138,92,.55); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--bronze); font-weight: 300; font-size: 1.15rem; transition: background .3s, color .3s; }
.faq-item[open] summary::after { content: '\2212'; background: var(--bronze); color: var(--white); }
.faq-item summary:hover { color: var(--bronze); }
.faq-item p { padding: 0 3rem 1.3rem 0; font-size: .96rem; line-height: 1.7; color: var(--concrete); }
.faq-item p a { color: var(--graphite); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 960px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr); }
  .svc-left { position: static; }
}
@media (max-width: 520px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-item p { padding-right: 0; }
}

/* inner service pages: refinements */
.svc-card .image-box.contain img { height: auto; max-height: 440px; }
.svc-cta { margin-top: 1.8rem; }
.svc-link { display: inline-block; font-size: .95rem; font-weight: 500; padding-bottom: .2rem; border-bottom: 1px solid var(--bronze); transition: color .3s; }
.svc-link:hover { color: var(--bronze); }
.svc-card .image-box img { transition: transform 1.2s var(--ease); }
.svc-card:hover .image-box img { transform: scale(1.03); }
.svc-body .steps { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); column-gap: 1rem; }
.svc-body .step h4 { font-size: .98rem; }
.svc-body .step p { font-size: .86rem; }
.svc-body .xlist .row { font-size: clamp(1rem, 1.5vw, 1.2rem); grid-template-columns: 3rem minmax(0, 1fr); padding: .8rem 0; }
.svc-body .points li { grid-template-columns: 7rem minmax(0, 1fr); }
@media (max-width: 900px) { .svc-body .points li { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .svc-body .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .svc-body .table-wrap { overflow: visible; }
  .svc-body table.dt { min-width: 0; }
  .svc-body .dt thead { display: none; }
  .svc-body .dt, .svc-body .dt tbody, .svc-body .dt tr, .svc-body .dt td { display: block; width: 100%; }
  .svc-body .dt tr { padding: .9rem 0; border-bottom: 1px solid var(--line-light); }
  .svc-body .dt td { padding: .1rem 0; border: 0; white-space: normal !important; }
  .svc-body .dt td:first-child { margin-bottom: .2rem; }
}

/* home hero: keep Big Ben in frame at every width */
#hero .hero-bg { background-position: 78% center; }
/* the hero image has extra sky on the left and top: only sky is ever trimmed */
#hero .hero-bg { background-position: right bottom; }
@media (max-width: 900px) { #hero .hero-bg { background-position: 88% bottom; } }
/* hero: bright photo, shade only where text sits */
@media (min-width: 901px) {
  #hero .hero-bg { filter: saturate(1.02) brightness(.96); }
  #hero .hero-overlay { background:
    linear-gradient(180deg, rgba(21,23,26,.42) 0%, rgba(21,23,26,0) 16%),
    linear-gradient(90deg, rgba(14,26,44,.62) 0%, rgba(14,26,44,.38) 38%, rgba(14,26,44,0) 62%),
    linear-gradient(180deg, rgba(21,23,26,0) 62%, rgba(21,23,26,.82) 100%); }
  #hero .hero-side { border-top: 0; padding-top: 0; }
}
#hero .hero-side { justify-self: end; max-width: none; }
#hero .hero-side .btn-row { margin-top: 0 !important; }
#hero .hero-side .btn-line { background: rgba(21,23,26,.6); border-color: rgba(255,255,255,.55); color: var(--white); }
#hero .hero-side .btn-line:hover { background: var(--white); color: var(--graphite); border-color: var(--white); }
#hero .hero-lines { margin-top: 1rem; }
@media (max-width: 900px) { #hero .hero-side { justify-self: start; border-top: 0; padding-top: 0; } }

/* hero: Westminster landscape. Headline in the sky, small lines over the water */
#hero .hero-bg { background-position: center 42%; }
@media (min-width: 901px) {
  #hero .hero-bg { filter: none; }
  #hero .hero-overlay { background:
    linear-gradient(180deg, rgba(16,22,34,.62) 0%, rgba(16,22,34,.34) 34%, rgba(16,22,34,0) 52%),
    linear-gradient(180deg, rgba(16,18,22,0) 66%, rgba(16,18,22,.72) 100%); }
  #hero .hero-content { top: 108px; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
  #hero .hero-content > div:first-child { display: flex; flex-direction: column; justify-content: space-between; }
  #hero .hero-side { align-self: end; }
  #hero .hero-title { font-size: clamp(2.3rem, 6.1vw, 7.4rem); }
  #hero .hero-kicker { margin-bottom: .7rem; }
  #hero .hero-sub { margin-top: 0; }
}
@media (max-width: 900px) {
  #hero .hero-bg { background-position: 96% center; filter: saturate(1) brightness(.92); }
  #hero .hero-overlay { background: linear-gradient(180deg, rgba(16,22,34,.55) 0%, rgba(16,22,34,.05) 20%, rgba(16,18,22,.25) 42%, rgba(16,18,22,.9) 72%, rgba(16,18,22,.95) 100%); }
}


/* two phone numbers in the slide-in menu */
.menu-phones { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }


/* hero heading: Bodoni MT Bold where installed, Bodoni Moda Bold everywhere else */
#hero .hero-title { font-family: 'Bodoni MT', 'Bodoni Moda', 'Didot', Georgia, serif; font-weight: 700; font-stretch: 100%; letter-spacing: -.005em; line-height: 1; }
#hero .hero-title span { padding-bottom: .16em; margin-bottom: -.16em; }

/* ============ PHONE AND TABLET POLISH ============ */
@media (max-width: 900px) {
  .hover-only { display: none; }

  /* expertise list: calm rows on touch screens */
  .xrow.is-active .xt { transform: none; color: rgba(255,255,255,.85); }
  .xrow a { padding: .85rem 0; }
  .xthumb { object-fit: cover; }

  /* one contact link per page on phones, not one per card */
  .svc-cta { display: none; }
}
@media (max-width: 600px) {
  :root { --section: 3.75rem; --gutter: 1.25rem; }
  .lead { font-size: .98rem; line-height: 1.65; }
  .display { line-height: 1.08; }

  /* page headers */
  .page-hero { min-height: 62svh; padding-top: 110px; padding-bottom: 2.4rem; }
  .page-hero .lead { font-size: .95rem; }
  .crumbs { margin-top: 1.4rem; }

  /* equal, full-width buttons */
  .btn-row { gap: .6rem; }
  .btn-row > a { flex: 1 1 0; justify-content: center; padding: 0 .8rem; white-space: nowrap; height: 52px; }
  .banner .btn-row > a { font-size: .92rem; }
  .banner { min-height: 72svh; }

  /* figures in two tidy columns */
  .stats, .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; column-gap: 1.2rem; }
  .stat { padding: 1.3rem 0 1.2rem; border-bottom: 1px solid var(--line-light); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat strong { font-size: 2rem; margin: .5rem 0 .4rem; }
  .stat p { font-size: .86rem; }
  .facts-row { margin-top: 2.4rem; }

  /* BIM highlight: image runs edge to edge from the section top */
  .bim-feature { padding-top: 0; }
  .bim-top { gap: 1.8rem; margin-bottom: 2.2rem; }
  .bim-img img { height: 62vw; }

  /* slider */
  .stage-title { font-size: 1.55rem; margin: .5rem 0 .7rem; }
  .stage-controls { margin-top: 1.4rem; }
  .stage-slider .splide__arrow { width: 46px; height: 46px; }

  /* service blocks */
  .section.tight { padding-top: 2.6rem; padding-bottom: 2.6rem; }
  .split { gap: 1.4rem; }
  .split .display { margin: .5rem 0 .8rem; }
  .section.tight .display { font-size: 1.6rem !important; }
  .section.tight .split-media img { height: 58vw !important; }
  .section.tight .btn-row { margin-top: 1.4rem; }
  .section.tight .btn-row > a { flex: 0 0 auto; padding: 0 1.5rem; height: 46px; }

  /* inner service pages */
  .svc-layout { gap: 2.2rem; padding-top: 2.4rem; }
  .svc-left .display { font-size: 1.7rem; }
  .svc-left .btn-gold { display: flex; justify-content: center; }
  .svc-card .image-box img { height: 56vw; }
  .svc-card .image-box.contain img { height: auto; max-height: 60vw; }
  .svc-body { padding: 1.4rem 1.25rem 1.6rem; }
  .svc-body .display { font-size: 1.4rem; }
  .svc-body .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .svc-body .card { padding: 1rem 0 1.1rem; }
  .svc-body .card h3 { font-size: .98rem; }
  .svc-body .card p { font-size: .86rem; line-height: 1.5; }
  .svc-body .points li { padding: .85rem 0; font-size: .92rem; }
  .svc-body .xlist .row { font-size: 1rem; padding: .65rem 0; }
  .svc-body .chips { gap: .3rem 1.2rem; }
  .svc-body .chips span { font-size: .88rem; }
  .why-grid { gap: .5rem; }
  .why-item { padding: 1.2rem 1.2rem 1.3rem; }
  .vision-block { padding: 1.7rem 1.4rem; }
  .faq-item summary { font-size: .98rem; padding: 1rem 0; }

  /* contact */
  .contact-info .row { padding: .95rem 0; }
  .contact-info p, .contact-info a { font-size: 1.2rem; }
  .contact-info .row:last-child { display: none; }
  .contact-grid { gap: 2.4rem; }

  /* footer: short and ordered */
  .lux-footer { padding-top: 3.2rem; }
  .footer-top { gap: 1.4rem; padding-bottom: 2.4rem; }
  .footer-top h2 { font-size: 1.9rem; }
  .footer-cta .btn-line { display: flex; justify-content: center; }
  .footer-middle { padding: 2.2rem 0; gap: 2rem; }
  .footer-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1rem; width: 100%; }
  .badge { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .badge b { border-right: 0; padding-right: 0; font-size: 1.1rem; }
  .footer-social { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .footer-social span { margin-bottom: 0; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.2rem; padding: 2.2rem 0; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { width: 34px; margin-bottom: .7rem; }
  .footer-cols > div:last-child { display: none; }
  .footer-bottom { flex-direction: column; gap: .3rem; padding-top: 1.3rem; }
}
@media (max-width: 900px) { #hero .hero-side { justify-self: stretch; width: 100%; } }

/* hero: City of London skyline. Playfair Display Bold heading; all text sits low over the dark city */
#hero .hero-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-stretch: 100%; letter-spacing: 0; line-height: 1.08; font-variant-numeric: lining-nums; }
#hero .hero-bg { background-position: center 30%; filter: none; }
#hero .hero-overlay { background:
  linear-gradient(180deg, rgba(14,14,16,.5) 0%, rgba(14,14,16,0) 18%),
  linear-gradient(180deg, rgba(14,14,16,0) 40%, rgba(14,14,16,.55) 66%, rgba(14,14,16,.9) 100%),
  linear-gradient(90deg, rgba(14,14,16,.35) 0%, rgba(14,14,16,0) 55%); }
#hero .hero-kicker { color: #e6cfa3; }
@media (min-width: 901px) {
  #hero .hero-content { top: auto; }
  #hero .hero-content > div:first-child { display: block; }
  #hero .hero-top { position: static; margin-bottom: 1.4rem; }
  #hero .hero-title { font-size: clamp(2.4rem, 5.2vw, 6.4rem); }
}

/* ============ SITE MOTION (only active once da.js adds .anim-on) ============ */
.anim-on .anim-text { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s ease, transform 1.1s var(--ease); }
.anim-on .anim-text.in { opacity: 1; transform: none; }
.anim-on .anim-img img { clip-path: inset(0 0 100% 0); transform: scale(1.14); transition: clip-path 1.3s cubic-bezier(.76,0,.24,1), transform 1.7s var(--ease); }
.anim-on .anim-img.in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.anim-on .anim-img.in:hover img, .anim-on .svc-card:hover .anim-img.in img { transform: scale(1.04); }
.stat strong, .svc-stat b, .facts-row b, .facts b { font-variant-numeric: lining-nums tabular-nums; }

/* hero sequence after the loader */
.anim-on #hero .hero-kicker, .anim-on #hero .hero-sub, .anim-on #hero .hero-lines, .anim-on #hero .hero-side {
  opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity 1s ease, transform 1.1s var(--ease);
}
.anim-on #hero .hero-sub { transition-delay: .5s; }
.anim-on #hero .hero-lines { transition-delay: .65s; }
.anim-on #hero .hero-side { transition-delay: .85s; }
.anim-on body.loaded #hero .hero-kicker, .anim-on body.loaded #hero .hero-sub, .anim-on body.loaded #hero .hero-lines, .anim-on body.loaded #hero .hero-side { opacity: 1; transform: none; }
/* slow drift on the hero photo */
#hero .hero-bg { transform-origin: 50% 40%; animation: heroDrift 16s cubic-bezier(.2,.5,.3,1) both; }
@keyframes heroDrift { from { transform: scale(1.07); } to { transform: scale(1); } }
@media (max-width: 900px) { #hero .hero-bg { transform-origin: 80% 45%; } }

/* page headers settle in the same way */
.page-hero .hero-bg { animation: heroDrift 14s cubic-bezier(.2,.5,.3,1) both; }

/* banner image has room to move */
.anim-on .banner .bg { inset: -9% 0; will-change: transform; }

/* buttons: a colour sweep rather than an instant change */
.btn-gold, .btn-line { background-image: linear-gradient(var(--bronze), var(--bronze)); background-repeat: no-repeat; background-size: 0% 100%; background-position: left center; transition: background-size .5s var(--ease), color .35s, border-color .35s, transform .2s; }
.btn-gold:hover, .btn-line:hover { background-size: 100% 100%; color: var(--white); border-color: var(--bronze); }
.btn-gold:active, .btn-line:active { transform: scale(.98); }

/* links and rows */
.svc-link, .side-back { background-image: linear-gradient(var(--bronze), var(--bronze)); background-repeat: no-repeat; background-size: 0 1px; background-position: left bottom; transition: background-size .45s var(--ease), color .3s; }
.bim-list a, .faq-item summary { transition: color .3s, padding-left .4s var(--ease); }
.faq-item summary:hover { padding-left: .35rem; }
.faq-item summary::after { transition: background .3s, color .3s, transform .45s var(--ease); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] p { animation: faqOpen .5s var(--ease) both; }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* cards lift a little on devices with a mouse */
@media (hover: hover) {
  .why-item { transition: background .35s, transform .45s var(--ease), opacity .9s ease; }
  .why-item.in:hover, .why-item:hover { transform: translateY(-5px); background: #23262b; }
  .xrow.is-active .xarrow { transition: transform .45s var(--ease); }
  .xprev img { transition: transform 5s ease-out; transform: scale(1.06); }
  .xprev.is-active img { transform: scale(1); }
}

/* slide-in menu links arrive one after another */
.menu-nav a { opacity: 0; transform: translate3d(24px, 0, 0); transition: opacity .5s ease, transform .6s var(--ease), color .3s, padding-left .4s var(--ease); }
#menu-overlay.open .menu-nav a { opacity: 1; transform: none; }
#menu-overlay.open .menu-nav a:nth-child(1) { transition-delay: 0.165s, 0.165s, 0s, 0s; }
#menu-overlay.open .menu-nav a:nth-child(2) { transition-delay: 0.210s, 0.210s, 0s, 0s; }
#menu-overlay.open .menu-nav a:nth-child(3) { transition-delay: 0.255s, 0.255s, 0s, 0s; }
#menu-overlay.open .menu-nav a:nth-child(4) { transition-delay: 0.300s, 0.300s, 0s, 0s; }
#menu-overlay.open .menu-nav a:nth-child(5) { transition-delay: 0.345s, 0.345s, 0s, 0s; }
#menu-overlay.open .menu-nav a:nth-child(6) { transition-delay: 0.390s, 0.390s, 0s, 0s; }
#menu-overlay.open .menu-nav a:nth-child(7) { transition-delay: 0.435s, 0.435s, 0s, 0s; }
#menu-overlay.open .menu-nav a:nth-child(8) { transition-delay: 0.480s, 0.480s, 0s, 0s; }
#menu-overlay.open .menu-nav a:nth-child(9) { transition-delay: 0.525s, 0.525s, 0s, 0s; }
#menu-overlay.open .menu-nav a:nth-child(10) { transition-delay: 0.570s, 0.570s, 0s, 0s; }

@media (prefers-reduced-motion: reduce) { .menu-nav a { opacity: 1; transform: none; } }
@media print { .anim-text, .anim-img { opacity: 1 !important; transform: none !important; clip-path: none !important; } .anim-img img { transform: none !important; } }

/* ============ MOBILE SLIDERS: swipe, next card peeking, centred controls ============ */
.x-slider { display: none; }
.slide-nav { display: flex; align-items: center; justify-content: center; gap: 1.4rem; }
.slide-nav .splide__arrows { display: contents; }
.slide-nav .splide__arrow { position: static; transform: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: var(--white); font-size: 1.05rem; display: flex; align-items: center; justify-content: center; opacity: 1; transition: background .3s, color .3s, border-color .3s, opacity .3s, transform .15s; }
.slide-nav .splide__arrow:active { transform: scale(.93); }
.slide-nav .splide__arrow:disabled { opacity: .3; }
.slide-nav .splide__arrow--prev { order: 0; }
.slide-count { order: 1; min-width: 4.6rem; text-align: center; font-size: .9rem; color: rgba(255,255,255,.55); }
.slide-count b { font-weight: 500; color: var(--white); }
.slide-nav .splide__arrow--next { order: 2; }
.slide-bar { height: 2px; background: var(--line-dark); margin-bottom: 1.5rem; overflow: hidden; }
.slide-bar i { display: block; height: 100%; width: 7%; background: var(--bronze); transition: width .5s var(--ease); }

@media (max-width: 900px) {
  /* services section: centred heading, slider instead of the list */
  .xsec, .stage-sec { overflow-x: clip; }
  .xsec .section-head, .stage-sec .section-head { justify-items: center; text-align: center; gap: .9rem; margin-bottom: 2.2rem; }
  .xsec .section-head .display, .stage-sec .section-head .display { margin-top: 0; }
  .xsec .xgrid { display: none; }
  .x-slider { display: block; visibility: visible; margin-right: calc(var(--gutter) * -1); }
  .x-slider:not(.is-initialized) .splide__track { overflow-x: auto; }
  .x-slider:not(.is-initialized) .splide__slide { flex: 0 0 80%; margin-right: 12px; }
  .x-slider .splide__slide { height: auto; }
  .x-foot { padding-right: var(--gutter); margin-top: 1.8rem; }
  .x-card { display: flex; flex-direction: column; height: 100%; background: var(--graphite-2); color: var(--white); }
  .x-card-img { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: #24272c; }
  .x-card-img img { height: 100%; }
  .x-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.2rem 1.3rem; }
  .x-card-tag { font-size: .84rem; font-weight: 500; color: var(--bronze); }
  .x-card h3 { font-family: var(--display); font-stretch: var(--wide); font-weight: 300; font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; margin: .45rem 0 .6rem; }
  .x-card p { font-size: .9rem; line-height: 1.55; color: rgba(255,255,255,.66); margin-bottom: 1.1rem; }
  .x-card-more { margin-top: auto; align-self: flex-start; font-size: .9rem; font-weight: 500; padding-bottom: .15rem; border-bottom: 1px solid var(--bronze); }

  /* stage slider: same swipe card, controls centred */
  .stage-slider { margin-right: calc(var(--gutter) * -1); }
  .stage-slider .stage { background: var(--limestone); gap: 0; height: 100%; align-items: stretch; grid-template-rows: auto 1fr; }
  .stage-slider .stage-img { order: -1; height: auto; aspect-ratio: 4 / 3.2; margin: 0; }
  .stage-slider .stage-text { padding: 1.2rem 1.2rem 1.4rem; }
  .stage-slider .stage-title { font-size: 1.25rem; line-height: 1.2; margin: .45rem 0 .6rem; }
  .stage-slider .stage-text .lead { font-size: .9rem; line-height: 1.55; color: #5f5d58; }
  .stage-slider .stage-img img { transform: none; transition: none; }
  .stage-controls { flex-direction: column; align-items: stretch; gap: 1.4rem; margin-top: 1.8rem; padding-right: var(--gutter); }
  .stage-rail { gap: .3rem; }
  .stage-tick { padding: .4rem 0; }
  .stage-tick.is-active .stage-bar i { width: 100%; }
  .stage-slider .splide__arrows { justify-content: center; gap: .9rem; }
  .stage-slider .splide__arrow { width: 50px; height: 50px; }
  .stage-slider .splide__arrow:active { transform: scale(.93); }
}
@media (min-width: 600px) and (max-width: 900px) {
  .x-card-img, .stage-slider .stage-img { aspect-ratio: 4 / 3; }
}
