/* ==========================================================
   Trio Construction Group Ltd — brand system
   Charcoal / orange / amber, taken from the company logo
   and printed flyer artwork.
   ========================================================== */

:root {
  --ink: #16181a;
  --ink-2: #1f2225;
  --slate: #3a3d42;
  --slate-2: #52565c;
  --orange: #e8781e;
  --orange-dk: #c9600d;
  --amber: #f9a31b;
  --amber-lt: #ffb733;
  --paper: #ffffff;
  --mist: #f4f5f6;
  --mist-2: #e7e9eb;
  --line: rgba(255, 255, 255, .12);
  --line-dk: rgba(22, 24, 26, .1);

  --wrap: 1200px;
  --gutter: 24px;
  --r: 4px;
  --r-lg: 10px;
  --r-xl: 14px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(22,24,26,.05);
  --shadow: 0 1px 2px rgba(22,24,26,.05), 0 6px 18px rgba(22,24,26,.07);
  --shadow-lg: 0 2px 4px rgba(22,24,26,.05), 0 18px 40px rgba(22,24,26,.12);

  --h-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --b-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* ---- Type scale (fluid, ~1.22 ratio) ----
     Page-level display sizes are deliberately far apart from in-article
     headings — the two were previously the same size, which flattened
     the whole hierarchy. */
  --t-xs:    0.78rem;                          /* eyebrows, tags, meta   */
  --t-sm:    0.875rem;                         /* captions, small print  */
  --t-base:  1rem;                             /* body                   */
  --t-md:    1.0625rem;                        /* lead-in body           */
  --t-lg:    clamp(1.08rem, 0.4vw + 1rem, 1.2rem);    /* section intros  */
  --t-h4:    clamp(1.0625rem, 0.3vw + 1rem, 1.15rem); /* card titles     */
  --t-h3:    clamp(1.2rem, 0.6vw + 1.05rem, 1.4rem);  /* sub-headings    */
  --t-h2:    clamp(1.45rem, 1.1vw + 1.2rem, 1.9rem);  /* in-article h2   */
  --t-sec:   clamp(1.85rem, 2.2vw + 1.2rem, 2.6rem);  /* section heads   */
  --t-h1:    clamp(2.1rem, 3.2vw + 1.3rem, 3.4rem);   /* page titles     */
  --t-hero:  clamp(2.3rem, 4vw + 1.3rem, 3.9rem);     /* home hero       */

  /* ---- Spacing scale ---- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 44px;  --sp-8: 64px;
  --sp-9: 88px;
  --sec-y: clamp(52px, 6vw, 88px);   /* vertical section rhythm */
  --measure: 68ch;                    /* comfortable reading width */
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--b-font);
  font-size: var(--t-md);
  line-height: 1.65;
  color: #4a4f55;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--h-font);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.021em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
/* Only the biggest sizes get the tight display tracking */
h1 { font-size: var(--t-h1); line-height: 1.06; letter-spacing: -.03em; }
h2 { font-size: var(--t-sec); line-height: 1.1; letter-spacing: -.026em; }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -.014em; }
h4 { font-size: var(--t-h4); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; color: #33383d; }

::selection { background: var(--orange); color: #fff; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------------- Eyebrow / section heads ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--h-font); font-weight: 800; font-size: var(--t-xs);
  letter-spacing: .15em; text-transform: uppercase; color: var(--orange);
  margin: 0 0 var(--sp-3);
}
.eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--orange); display: block; flex: none;
}
.eyebrow.light { color: var(--amber); }
.eyebrow.light::before { background: var(--amber); }

.sec-head { max-width: 46rem; margin-bottom: var(--sp-7); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { margin-bottom: .38em; }
.sec-head p { color: #6b7178; font-size: var(--t-lg); line-height: 1.6; max-width: 60ch; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

section { padding: var(--sec-y) 0; }
.sec-mist { background: var(--mist); }
.sec-ink { background: var(--ink); color: #c9ced3; }
.sec-ink h2, .sec-ink h3 { color: #fff; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--h-font); font-weight: 800; font-size: var(--t-sm);
  letter-spacing: .005em;
  padding: 14px 24px; border: 2px solid transparent; border-radius: var(--r);
  cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(232,120,30,.28); }
.btn-orange:hover { background: var(--orange-dk); box-shadow: 0 14px 30px rgba(232,120,30,.34); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--slate); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: var(--t-sm); }

/* ---------------- Header ---------------- */
.topbar {
  background: var(--ink); color: #b9bec3; font-size: var(--t-xs);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: var(--amber); }
.topbar svg { width: 14px; height: 14px; color: var(--orange); }
.topbar-l { display: flex; gap: 22px; }
.topbar-r { display: flex; gap: 16px; align-items: center; }
@media (max-width: 860px) { .topbar { display: none; } }

.hdr {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--mist-2);
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.hdr.scrolled { box-shadow: 0 6px 24px rgba(22,24,26,.09); }
.hdr .wrap { display: flex; align-items: center; gap: 20px; height: 84px; transition: height .3s var(--ease); }
.hdr.scrolled .wrap { height: 70px; }

.brand { display: flex; align-items: center; flex: none; }
.brand img, .brand svg { height: 46px; width: auto; transition: height .3s var(--ease); }
.hdr.scrolled .brand img, .hdr.scrolled .brand svg { height: 38px; }
@media (max-width: 420px) { .brand img, .brand svg { height: 36px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
@media (max-width: 1040px) { .nav { display: none; } }
.nav > * { position: relative; }
.nav a.nav-link {
  display: block; padding: 10px 14px; font-family: var(--h-font);
  font-weight: 700; font-size: var(--t-sm); color: var(--ink);
  border-radius: var(--r); transition: color .2s var(--ease);
}
.nav a.nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a.nav-link:hover::after, .nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-link[aria-current="page"] { color: var(--orange); }

.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 500px;
  background: #fff; border: 1px solid var(--mist-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.drop.right { left: auto; right: 0; }
.drop a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  font-size: var(--t-sm); font-weight: 600; border-radius: var(--r);
  transition: background-color .18s, color .18s;
}
.drop a:hover { background: var(--mist); color: var(--orange); }
.drop a svg { width: 16px; height: 16px; color: var(--orange); flex: none; }
.drop-all { grid-column: 1 / -1; margin-top: 6px; border-top: 1px solid var(--mist-2); padding-top: 10px; }
.drop-all a { justify-content: center; color: var(--orange); font-family: var(--h-font); font-weight: 800; font-size: var(--t-sm); letter-spacing: .06em; text-transform: uppercase; }

.hdr-cta { display: flex; align-items: center; gap: 12px; flex: none; }
@media (max-width: 1040px) { .hdr-cta .btn { display: none; } }
.hdr-phone {
  display: flex; align-items: center; gap: 10px; font-family: var(--h-font);
  font-weight: 800; font-size: 1.05rem; color: var(--ink); white-space: nowrap;
}
.hdr-phone svg { width: 34px; height: 34px; padding: 8px; background: var(--amber); color: var(--ink); border-radius: 50%; }
@media (max-width: 640px) { .hdr-phone span { display: none; } }

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--mist-2);
  background: #fff; border-radius: var(--r); cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
@media (max-width: 1040px) { .burger { display: flex; } }

/* Mobile drawer */
.mm-back {
  position: fixed; inset: 0; background: rgba(22,24,26,.55); z-index: 98;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.mm-back.open { opacity: 1; visibility: visible; }
.mm {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 88vw); z-index: 99;
  background: var(--ink); color: #fff; padding: 24px; overflow-y: auto;
  transform: translateX(102%); transition: transform .38s var(--ease);
  will-change: transform;
}
.mm.open { transform: translateX(0); }
.mm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.mm-close { background: none; border: 0; color: #fff; font-size: var(--t-h2); line-height: 1; cursor: pointer; padding: 6px 10px; }
.mm nav a {
  display: block; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--h-font); font-weight: 700; font-size: var(--t-base);
}
.mm nav a:hover { color: var(--amber); }
.mm details summary {
  list-style: none; cursor: pointer; padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--h-font); font-weight: 700; font-size: var(--t-base);
  display: flex; align-items: center; justify-content: space-between;
}
.mm details summary::-webkit-details-marker { display: none; }
.mm details summary::after { content: '+'; color: var(--amber); font-size: var(--t-h3); }
.mm details[open] summary::after { content: '−'; }
.mm details .sub a { padding: 10px 0 10px 16px; font-size: var(--t-sm); font-weight: 600; color: #b9bec3; border-bottom: 0; }
.mm .mm-foot { margin-top: 28px; display: grid; gap: 12px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; transform: scale(1.06); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(22,24,26,.94) 0%, rgba(22,24,26,.82) 42%, rgba(22,24,26,.42) 100%);
}
.hero-inner { position: relative; padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 6vw, 88px); }
.hero h1 { color: #fff; max-width: 15ch; font-size: var(--t-hero); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lead { color: #ccd2d8; font-size: var(--t-lg); line-height: 1.6; max-width: 54ch; margin-bottom: var(--sp-7); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero-badges li {
  display: flex; align-items: center; gap: 9px; color: #dfe3e7;
  font-size: var(--t-sm); font-weight: 600; list-style: none;
}
.hero-badges svg { width: 20px; height: 20px; color: var(--amber); flex: none; }
.hero-badges ul, .hero-badges { padding: 0; margin: 0; }

/* Hero entrance runs on CSS alone so the headline is never JS-gated */
@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: heroIn .75s var(--ease) both; }
.hero-inner > :nth-child(1) { animation-delay: .05s; }
.hero-inner > :nth-child(2) { animation-delay: .14s; }
.hero-inner > :nth-child(3) { animation-delay: .24s; }
.hero-inner > :nth-child(4) { animation-delay: .34s; }
.hero-inner > :nth-child(5) { animation-delay: .44s; }
@media (prefers-reduced-motion: reduce) { .hero-inner > * { animation: none; } }

.hero-strip { position: relative; background: var(--amber); }
.hero-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.hero-strip div { padding: var(--sp-5) var(--sp-4); text-align: center; }
.hero-strip strong { display: block; font-family: var(--h-font); font-weight: 800; font-size: clamp(1.45rem, 1.8vw + 1rem, 2rem); color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.hero-strip span { font-size: var(--t-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(22,24,26,.72); }
@media (max-width: 720px) { .hero-strip .wrap { grid-template-columns: 1fr 1fr; } }

/* Page banner (inner pages) */
.banner { position: relative; background: var(--ink); overflow: hidden; }
.banner-bg { position: absolute; inset: 0; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.banner-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22,24,26,.94), rgba(22,24,26,.6)); }
.banner-inner { position: relative; padding: clamp(56px, 7vw, 96px) 0; }
.banner h1 { color: #fff; max-width: 17ch; margin-bottom: .35em; }
.banner p { color: #ccd2d8; max-width: 58ch; font-size: var(--t-lg); line-height: 1.6; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-sm); color: #8f959b; margin-bottom: 18px; padding: 0; list-style: none; }
.crumbs li::after { content: '/'; margin-left: 8px; color: #5b6065; }
.crumbs li:last-child::after { display: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs [aria-current] { color: var(--amber); }

/* ---------------- Cards / grids ---------------- */
.grid { display: grid; gap: var(--sp-5); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.svc-card {
  position: relative; display: block; background: #fff; border: 1px solid var(--mist-2);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
  will-change: transform;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist-2); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.07); }
.svc-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,24,26,.7), rgba(22,24,26,0) 55%);
}
.svc-icon {
  position: absolute; left: 18px; bottom: -22px; z-index: 2;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--orange); color: #fff; border-radius: var(--r);
  box-shadow: 0 8px 20px rgba(232,120,30,.35);
  transition: transform .38s var(--ease), background-color .3s;
}
.svc-card:hover .svc-icon { transform: translateY(-4px) rotate(-4deg); }
.svc-icon svg { width: 26px; height: 26px; }
.svc-body { padding: 40px 24px 26px; }
.svc-body h3 { font-size: var(--t-h4); margin-bottom: .4em; transition: color .25s; }
.svc-card:hover .svc-body h3 { color: var(--orange); }
.svc-body p { font-size: var(--t-sm); color: #6b7178; margin-bottom: var(--sp-4); line-height: 1.6; }
.svc-more {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--h-font);
  font-weight: 800; font-size: var(--t-xs); letter-spacing: .09em; text-transform: uppercase; color: var(--orange);
}
.svc-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.svc-card:hover .svc-more svg { transform: translateX(4px); }

/* Trade cards — services grouped by trade on the home page */
.trades { gap: 20px; }
@media (max-width: 1080px) { .trades { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trades { grid-template-columns: 1fr; } }

.trade-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--mist-2); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
  will-change: transform;
}
.trade-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.trade-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist-2); }
.trade-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.trade-card:hover .trade-media img { transform: scale(1.07); }
.trade-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,24,26,.66), rgba(22,24,26,0) 58%);
}
.trade-body { padding: 38px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.trade-body h3 { font-size: var(--t-h4); margin-bottom: .35em; transition: color .25s; }
.trade-card:hover .trade-body h3 { color: var(--orange); }
.trade-blurb { font-size: var(--t-sm); color: #6b7178; line-height: 1.55; margin: 0 0 var(--sp-4); }
/* Align the sub-service lists across a row regardless of how the heading wraps */
@media (min-width: 561px) {
  .trade-body h3 { min-height: 2.2em; }
  .trade-blurb { min-height: 3.9em; }
}
.trade-subs { margin-top: auto; }

.trade-subs { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; border-top: 1px solid var(--mist-2); }
.trade-subs li { border-bottom: 1px solid var(--mist-2); }
.trade-subs a, .trade-subs span {
  display: flex; align-items: center; gap: 9px; padding: 10px 2px;
  font-size: .89rem; font-weight: 600; line-height: 1.35;
}
.trade-subs svg { width: 14px; height: 14px; flex: none; transition: transform .25s var(--ease); }
.trade-subs a { color: var(--ink); }
.trade-subs a svg { color: var(--orange); }
.trade-subs a:hover { color: var(--orange); }
.trade-subs a:hover svg { transform: translateX(3px); }
.trade-subs span { color: #6d7379; font-weight: 500; }
.trade-subs span svg { color: #b6bbc0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- Interactive trade explorer ---------------- */
.explorer { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; }
@media (max-width: 980px) { .explorer { grid-template-columns: 1fr; } }

.explorer-rail { display: grid; gap: 6px; }
@media (max-width: 980px) {
  .explorer-rail { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}
.explorer-tab {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 14px 16px; background: #fff; border: 1px solid var(--mist-2);
  border-radius: var(--r-lg); cursor: pointer; font-family: var(--b-font);
  transition: background-color .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
  position: relative; overflow: hidden;
}
.explorer-tab::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange); transform: scaleY(0); transform-origin: center;
  transition: transform .3s var(--ease);
}
.explorer-tab:hover { border-color: #cfd3d7; transform: translateX(3px); }
.explorer-tab.active { background: var(--ink); border-color: var(--ink); }
.explorer-tab.active::before { transform: scaleY(1); }
.explorer-tab-icon {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: var(--mist); color: var(--orange); border-radius: var(--r);
  transition: background-color .28s, color .28s;
}
.explorer-tab.active .explorer-tab-icon { background: rgba(255,255,255,.1); color: var(--amber); }
.explorer-tab-icon svg { width: 20px; height: 20px; }
.explorer-tab-text { display: flex; flex-direction: column; min-width: 0; }
.explorer-tab-text strong {
  font-family: var(--h-font); font-weight: 800; font-size: var(--t-sm); color: var(--ink);
  transition: color .28s; line-height: 1.25;
}
.explorer-tab-text small { font-size: var(--t-xs); color: #8f959b; }
.explorer-tab.active .explorer-tab-text strong { color: #fff; }
.explorer-tab.active .explorer-tab-text small { color: var(--amber); }
.explorer-tab-arw { width: 16px; height: 16px; margin-left: auto; flex: none; color: #c3c7cb; transition: transform .28s var(--ease), color .28s; }
.explorer-tab.active .explorer-tab-arw { color: var(--amber); transform: translateX(3px); }

.explorer-stage { position: relative; }
.explorer-panel {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--mist-2); border-radius: var(--r-lg); overflow: hidden;
}
@media (max-width: 720px) { .explorer-panel { grid-template-columns: 1fr; } }
.explorer-panel[hidden] { display: none; }
.explorer-panel.active { animation: panelIn .45s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translate3d(10px, 0, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .explorer-panel.active { animation: none; } }

.explorer-media { position: relative; min-height: 340px; }
.explorer-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .explorer-media { min-height: 0; aspect-ratio: 16 / 10; } .explorer-media img { position: static; } }
.explorer-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 9px 14px; border-radius: var(--r);
  font-family: var(--h-font); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
.explorer-badge svg { width: 16px; height: 16px; color: var(--amber); }
.explorer-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; }
.explorer-body h3 { font-size: var(--t-h3); margin-bottom: .3em; }
.explorer-blurb { color: #6b7178; font-size: var(--t-sm); line-height: 1.6; margin-bottom: var(--sp-5); }
.explorer-subs { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 1px; border-top: 1px solid var(--mist-2); }
.explorer-subs li { border-bottom: 1px solid var(--mist-2); }
.explorer-subs a, .explorer-subs span {
  display: flex; align-items: center; gap: 10px; padding: 11px 2px; font-size: .94rem; font-weight: 600;
}
.explorer-subs svg { width: 15px; height: 15px; flex: none; transition: transform .25s var(--ease); }
.explorer-subs a { color: var(--ink); }
.explorer-subs a svg { color: var(--orange); }
.explorer-subs a:hover { color: var(--orange); }
.explorer-subs a:hover svg { transform: translateX(3px); }
.explorer-subs span { color: #6d7379; font-weight: 500; }
.explorer-subs span svg { color: #b6bbc0; }
.explorer-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------------- Before / after comparison ---------------- */
.ba { margin: 0; }
.ba-stage {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--r-lg); background: var(--ink); touch-action: pan-y;
  cursor: ew-resize; user-select: none;
}
.ba-lg .ba-stage { aspect-ratio: 3 / 2; }
.ba-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; -webkit-user-drag: none;
}
.ba-before-wrap {
  position: absolute; inset: 0 auto 0 0; overflow: hidden; will-change: width;
}
.ba-before-wrap img { width: auto; min-width: 100%; }
.ba-before-wrap::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--amber);
}
.ba-tag {
  position: absolute; top: 14px; z-index: 3;
  font-family: var(--h-font); font-weight: 800; font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 11px; border-radius: 3px; pointer-events: none;
}
.ba-tag-before { left: 14px; background: rgba(22,24,26,.82); color: #fff; }
.ba-tag-after { right: 14px; background: var(--amber); color: var(--ink); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px;
  background: var(--amber); z-index: 4; pointer-events: none; will-change: left;
}
.ba-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 4px 16px rgba(22,24,26,.4);
}
.ba-grip svg { width: 22px; height: 22px; }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; z-index: 5; -webkit-appearance: none; appearance: none; background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100%; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 46px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.ba-range:focus-visible { opacity: 1; outline: 3px solid var(--amber); outline-offset: 3px; }
.ba figcaption { color: #a2a8ae; font-size: var(--t-sm); margin-top: 12px; }
.sec-ink .ba figcaption { color: #a2a8ae; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-title {
  font-family: var(--h-font); font-weight: 800; font-size: var(--t-xs); letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber); margin: 0 0 12px;
}

/* ---------------- Case study cards ---------------- */
.case-list { display: grid; gap: var(--sp-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .case-list { grid-template-columns: 1fr; } }
.case-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--mist-2); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.case-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist-2); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.case-card:hover .case-media img { transform: scale(1.06); }
.case-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.case-meta {
  display: flex; align-items: center; gap: 7px; font-family: var(--h-font); font-weight: 800;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 0 0 10px;
}
.case-meta svg { width: 14px; height: 14px; }
.case-body h3 { font-size: var(--t-h3); margin-bottom: .4em; transition: color .25s; }
.case-card:hover .case-body h3 { color: var(--orange); }
.case-body > p { font-size: var(--t-sm); color: #6b7178; line-height: 1.6; margin-bottom: var(--sp-4); }
.case-tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.case-tags li {
  font-size: .78rem; font-weight: 600; color: #5b6065;
  background: var(--mist); border: 1px solid var(--mist-2); border-radius: 100px; padding: 5px 11px;
}
.case-card .svc-more { margin-top: auto; }

.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.6em 0; }
@media (max-width: 620px) { .case-gallery { grid-template-columns: 1fr 1fr; } }
.case-shot { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--mist-2); }
.case-shot img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0 !important; transition: transform .5s var(--ease); }
.case-shot:hover img { transform: scale(1.07); }

.case-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.case-facts li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--mist-2); padding-bottom: 10px; }
.case-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.case-facts span { font-size: var(--t-xs); color: #6d7379; }
.case-facts strong { font-family: var(--h-font); font-weight: 800; font-size: var(--t-sm); color: var(--ink); text-align: right; }

/* Archive filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--h-font); font-weight: 800; font-size: var(--t-sm);
  padding: 11px 18px; border-radius: 100px; background: #fff;
  border: 1px solid var(--mist-2); color: var(--ink);
  transition: background-color .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
}
.filter-btn span {
  font-size: .74rem; background: var(--mist); color: #6d7379;
  border-radius: 100px; padding: 2px 8px; transition: background-color .25s, color .25s;
}
.filter-btn:hover { border-color: var(--orange); transform: translateY(-2px); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-btn.active span { background: var(--orange); color: #fff; }
.filter-empty { text-align: center; color: #6d7379; margin-top: 28px; }
.filter-empty a { color: var(--orange); font-weight: 700; }
[data-filter-list] [data-trade][hidden] { display: none; }

.case-flag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(22,24,26,.84); color: #fff; padding: 6px 11px; border-radius: 3px;
  font-family: var(--h-font); font-weight: 800; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
}
.case-flag svg { width: 13px; height: 13px; color: var(--amber); }
.case-media { position: relative; }
.ba-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .ba-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .ba-grid-3 { grid-template-columns: 1fr; } }

/* Area / archive hero — shorter than the home hero */
.area-hero .hero-inner { padding: clamp(46px, 6vw, 84px) 0 clamp(46px, 5vw, 72px); }
.area-hero h1 { font-size: var(--t-h1); max-width: 17ch; }
.area-hero .crumbs { margin-bottom: 14px; }
.area-hero .hero-lead { margin-bottom: 30px; }

/* Steps on a light background */
.steps-light .step::before { -webkit-text-stroke: 2px rgba(22,24,26,.14); }
.steps-light .step p { color: #5b6065; }

/* Trade blocks on the services index */
.trade-block { margin-bottom: var(--sp-8); }
.trade-block:last-child { margin-bottom: 0; }
.trade-block-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  padding-bottom: 18px; border-bottom: 2px solid var(--mist-2); position: relative;
}
.trade-block-head::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 72px; height: 2px; background: var(--orange);
}
.trade-block-icon {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  background: var(--ink); color: var(--amber); border-radius: var(--r);
}
.trade-block-icon svg { width: 27px; height: 27px; }
.trade-block-head h3 { font-size: var(--t-h3); margin: 0 0 3px; }
.trade-block-head p { font-size: var(--t-sm); color: #6b7178; margin: 0; }

.trade-also {
  background: var(--mist); border: 1px dashed var(--mist-2); border-radius: var(--r-lg);
  padding: 24px 22px; display: flex; flex-direction: column;
}
.sec-mist .trade-also { background: #fff; }
.trade-also-label {
  font-family: var(--h-font); font-weight: 800; font-size: var(--t-xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 14px;
}
.trade-also ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.trade-also li { display: flex; align-items: flex-start; gap: 9px; font-size: var(--t-sm); color: #4a4e53; font-weight: 500; }
.trade-also li svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--orange); }
.trade-also .btn { align-self: flex-start; }

/* "Part of our … work" block inside a service page */
.trade-context {
  background: var(--mist); border-left: 3px solid var(--orange); border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 24px 26px; margin: 2em 0;
}
.trade-context-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--h-font); font-weight: 800; font-size: var(--t-xs); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); margin: 0 0 16px;
}
.trade-context-label svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.trade-context-list { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .trade-context-list { grid-template-columns: 1fr; } }
.trade-context-list li { display: block !important; }
.trade-context-list li::before { display: none !important; }
.trade-context-list a, .trade-context-list span {
  display: flex; align-items: center; gap: 9px; font-size: var(--t-sm); font-weight: 600;
}
.trade-context-list svg { width: 15px; height: 15px; flex: none; transition: transform .25s var(--ease); }
.trade-context-list a { color: var(--ink); }
.trade-context-list a svg { color: var(--orange); }
.trade-context-list a:hover { color: var(--orange); }
.trade-context-list a:hover svg { transform: translateX(3px); }
.trade-context-list span { color: #6d7379; font-weight: 500; }
.trade-context-list span svg { color: #b6bbc0; }
.trade-context-list [aria-current] span { color: var(--orange); font-weight: 700; }
.trade-context-list [aria-current] svg { color: var(--orange); }

/* Sidebar: other services grouped by trade */
.side-trade + .side-trade { margin-top: 18px; }
.side-trade-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--h-font); font-weight: 800; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: #6d7379; margin: 0 0 8px;
}
.side-trade-label svg { width: 15px; height: 15px; color: var(--orange); flex: none; }

/* Feature (why us) */
.feat {
  background: #fff; border: 1px solid var(--mist-2); border-radius: var(--r-lg);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feat::before {
  content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: var(--orange); transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feat:hover::before { transform: scaleY(1); }
.feat-icon { width: 50px; height: 50px; display: grid; place-items: center; background: var(--mist); color: var(--orange); border-radius: var(--r); margin-bottom: 18px; transition: background-color .3s, color .3s; }
.feat:hover .feat-icon { background: var(--orange); color: #fff; }
.feat-icon svg { width: 26px; height: 26px; }
.feat h3 { font-size: var(--t-h4); }
.feat p { font-size: var(--t-sm); color: #6b7178; line-height: 1.6; }

/* Process steps */
.steps { counter-reset: s; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: s; content: '0' counter(s);
  font-family: var(--h-font); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.22);
  position: absolute; top: -14px; left: 0;
}
.step h3 { font-size: var(--t-h4); margin-bottom: .45em; position: relative; }
.step p { font-size: var(--t-sm); color: #a2a8ae; line-height: 1.6; }
.step .step-rule { width: 34px; height: 3px; background: var(--orange); margin-bottom: 16px; }

/* Split content */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--r-lg); width: 100%; }
.split-media::after {
  content: ''; position: absolute; right: -14px; bottom: -14px; width: 55%; height: 55%;
  border: 3px solid var(--amber); border-radius: var(--r-lg); z-index: -1;
}
.badge-float {
  position: absolute; left: -18px; bottom: 26px; background: var(--orange); color: #fff;
  padding: 20px 24px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); max-width: 220px;
}
.badge-float strong { display: block; font-family: var(--h-font); font-weight: 800; font-size: var(--t-sec); line-height: 1; }
.badge-float span { font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
@media (max-width: 600px) { .badge-float { left: 10px; } }

.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ticks.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .ticks.two { grid-template-columns: 1fr; } }
.ticks li { display: flex; align-items: flex-start; gap: 11px; font-weight: 600; font-size: var(--t-base); }
.ticks svg { width: 21px; height: 21px; color: var(--orange); flex: none; margin-top: 2px; }
.sec-ink .ticks li { color: #dfe3e7; }
.sec-ink .ticks svg { color: var(--amber); }

/* Marquee */
.marquee { background: var(--ink); border-top: 4px solid var(--orange); border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; padding: 0; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translate3d(-50%, 0, 0); } }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 20px; padding: 18px 26px;
  font-family: var(--h-font); font-weight: 800; font-size: .96rem;
  letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap;
}
.marquee-track span::after { content: ''; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gal {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 3 / 4; background: var(--mist-2);
}
.gal.wide { grid-column: span 2; aspect-ratio: 3 / 2; }
@media (max-width: 620px) { .gal.wide { grid-column: span 2; } .gallery { grid-template-columns: 1fr 1fr; } }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal:hover img { transform: scale(1.08); }
.gal-cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 18px; color: #fff;
  background: linear-gradient(to top, rgba(22,24,26,.9), transparent);
  transform: translateY(6px); opacity: .96; transition: transform .4s var(--ease);
}
.gal:hover .gal-cap { transform: translateY(0); }
.gal-cap strong { display: block; font-family: var(--h-font); font-weight: 800; font-size: var(--t-base); }
.gal-cap span { font-size: var(--t-xs); color: var(--amber); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Areas */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .area-grid { grid-template-columns: 1fr; } }
.area-card {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  background: #fff; border: 1px solid var(--mist-2); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s var(--ease);
}
.area-card:hover { transform: translateX(5px); border-color: var(--orange); box-shadow: var(--shadow); }
.area-card svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.area-card strong { font-family: var(--h-font); font-weight: 800; font-size: var(--t-base); color: var(--ink); display: block; }
.area-card span { font-size: var(--t-sm); color: #6d7379; }
.area-card .arw { margin-left: auto; width: 17px; height: 17px; color: #b6bbc0; transition: transform .3s var(--ease), color .3s; }
.area-card:hover .arw { transform: translateX(4px); color: var(--orange); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.chips a {
  display: block; padding: 8px 15px; background: #fff; border: 1px solid var(--mist-2);
  border-radius: 100px; font-size: .87rem; font-weight: 600;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chips a:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.sec-ink .chips a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #dfe3e7; }
.sec-ink .chips a:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* Testimonials */
.quote {
  background: #fff; border: 1px solid var(--mist-2); border-radius: var(--r-lg);
  padding: 32px 28px; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quote .stars { display: flex; gap: 3px; margin-bottom: 16px; }
.quote .stars svg { width: 18px; height: 18px; color: var(--amber); }
.quote blockquote { margin: 0 0 20px; font-size: var(--t-base); color: #3f4348; }
.quote cite { font-style: normal; font-family: var(--h-font); font-weight: 800; font-size: var(--t-sm); color: var(--ink); display: block; }
.quote cite span { display: block; font-family: var(--b-font); font-weight: 500; font-size: var(--t-sm); color: #6d7379; }

/* FAQ */
.faq { border-top: 1px solid var(--mist-2); }
.faq details { border-bottom: 1px solid var(--mist-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--h-font); font-weight: 700; font-size: var(--t-h4); color: var(--ink); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 13px; height: 13px;
  border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-body { padding: 0 44px 22px 0; color: #6b7178; font-size: var(--t-base); line-height: 1.65; max-width: 62ch; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--ink); }
.cta-band .cta-bg { position: absolute; inset: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cta-band .cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22,24,26,.92), rgba(22,24,26,.68)); }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.3fr auto; gap: 34px; align-items: center; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; font-size: var(--t-sec); margin-bottom: .3em; }
.cta-band p { color: #ccd2d8; max-width: 54ch; font-size: var(--t-base); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Quote form */
.quote-band { background: var(--amber); position: relative; overflow: hidden; }
.quote-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(22,24,26,.045) 0 2px, transparent 2px 14px);
}
.quote-band .wrap { position: relative; }
.quote-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } }
.quote-band .eyebrow { color: var(--ink); }
.quote-band .eyebrow::before { background: var(--ink); }
.quote-band h2 { color: var(--ink); }
.quote-band .lead { color: rgba(22,24,26,.78); font-size: var(--t-lg); line-height: 1.6; max-width: 46ch; }
.quote-side { display: grid; gap: 14px; margin-top: 28px; }
.quote-side a {
  display: flex; align-items: center; gap: 13px; background: rgba(22,24,26,.06);
  border: 1px solid rgba(22,24,26,.12); border-radius: var(--r-lg); padding: 16px 18px;
  transition: background-color .25s, transform .25s var(--ease);
}
.quote-side a:hover { background: var(--ink); color: #fff; transform: translateX(4px); }
.quote-side svg { width: 22px; height: 22px; flex: none; }
.quote-side strong { display: block; font-family: var(--h-font); font-weight: 800; font-size: var(--t-md); }
.quote-side span { font-size: var(--t-xs); opacity: .78; }

.form-card { background: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-lg); }
.form-card h3 { color: #fff; font-size: var(--t-h3); margin-bottom: .3em; }
.form-card .form-sub { color: #a2a8ae; font-size: var(--t-sm); margin-bottom: var(--sp-5); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--t-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #a2a8ae; }
.field input, .field select, .field textarea {
  font-family: var(--b-font); font-size: .97rem; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r); padding: 13px 15px; width: 100%;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7b8188; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); background: rgba(255,255,255,.1);
}
.field select option { background: var(--ink); }
.form-note { font-size: var(--t-xs); color: #8f959b; margin: 14px 0 0; text-align: center; }
.form-success {
  display: none; background: rgba(232,120,30,.14); border: 1px solid var(--orange);
  color: #ffd9b8; border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; font-size: var(--t-sm);
}

/* Sidebar (service / area pages) */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 980px) { .page-layout { grid-template-columns: 1fr; } }
/* In-article headings sit well below the section-head scale so the page
   still reads top-down: page title > section head > article heading. */
.prose { max-width: var(--measure); }
.prose > p, .prose > ul, .prose > .faq { max-width: var(--measure); }
.prose h2 {
  font-size: var(--t-h2); line-height: 1.2; letter-spacing: -.018em;
  margin: 2em 0 .55em; padding-top: .9em; border-top: 1px solid var(--mist-2);
  position: relative;
}
.prose h2::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 42px; height: 2px; background: var(--orange);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2:first-child::before { display: none; }
.prose h3 { margin: 1.7em 0 .5em; font-size: var(--t-h3); }
.prose p, .prose li { color: #4a4f55; }
.prose > p:first-of-type { font-size: var(--t-lg); line-height: 1.6; color: #3b4046; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 1.5em; }
.prose ul li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--t-base); }
.prose ul li::before {
  content: ''; width: 7px; height: 7px; background: var(--orange); border-radius: 2px;
  flex: none; margin-top: 9px;
}
.prose img { border-radius: var(--r-lg); margin: 1.6em 0; width: 100%; height: clamp(240px, 34vw, 420px); object-fit: cover; }
.prose .ba, .prose .trade-context, .prose .case-gallery { max-width: none; }

.side { position: sticky; top: 96px; display: grid; gap: var(--sp-4); }
@media (max-width: 980px) { .side { position: static; } }
.side-card { background: var(--mist); border: 1px solid var(--mist-2); border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-5); }
.side-card.ink { background: var(--ink); border-color: var(--ink); }
.side-card.ink h3 { color: #fff; }
.side-card.ink p { color: #a2a8ae; font-size: var(--t-sm); line-height: 1.6; }
.side-card h3 { font-size: var(--t-h4); margin-bottom: .55em; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.side-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: var(--r); font-size: var(--t-sm); font-weight: 600;
  background: #fff; border: 1px solid var(--mist-2);
  transition: background-color .22s, color .22s, border-color .22s, transform .22s var(--ease);
}
.side-list a:hover, .side-list a[aria-current="page"] { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateX(3px); }
.side-list svg { width: 15px; height: 15px; flex: none; }
.side-list.left a { justify-content: flex-start; }
.side-card p svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--orange); display: inline-block; }
.side-phone {
  display: flex; align-items: center; gap: 11px; font-family: var(--h-font);
  font-weight: 800; font-size: 1.32rem; color: var(--amber); margin: 14px 0 18px;
}
.side-phone svg { width: 22px; height: 22px; }

/* Footer */
.foot { background: var(--ink); color: #9aa0a6; padding: clamp(56px, 6vw, 84px) 0 0; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr; } }
.foot h4 {
  font-family: var(--h-font); font-weight: 800; font-size: var(--t-xs); letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin: 0 0 18px;
}
.foot-brand img, .foot-brand svg { height: 52px; width: auto; margin-bottom: 22px; }
.foot p { font-size: var(--t-sm); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot ul a { font-size: var(--t-sm); transition: color .2s, transform .2s var(--ease); display: inline-block; }
.foot ul a:hover { color: var(--amber); transform: translateX(3px); }
.foot-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--t-sm); }
.foot-contact svg { width: 17px; height: 17px; color: var(--orange); flex: none; margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r);
  background: rgba(255,255,255,.07); transition: background-color .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--orange); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; color: #fff; }
.foot-bot {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: var(--t-sm);
}
.foot-bot ul { display: flex; gap: 20px; }
.foot-legal { font-size: var(--t-xs); color: #6d7379; padding-bottom: 30px; }

/* Sticky mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none;
  grid-template-columns: 1fr 1fr; background: var(--ink);
  border-top: 3px solid var(--orange);
}
@media (max-width: 720px) { .callbar { display: grid; } body { padding-bottom: 60px; } }
.callbar a {
  padding: 15px 10px; text-align: center; color: #fff; font-family: var(--h-font);
  font-weight: 800; font-size: var(--t-sm); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.callbar a + a { background: var(--orange); }
.callbar svg { width: 17px; height: 17px; }

/* Reveal animation */
[data-rv] {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-rv].in { opacity: 1; transform: none; }
[data-rv-d="1"] { transition-delay: .09s; }
[data-rv-d="2"] { transition-delay: .18s; }
[data-rv-d="3"] { transition-delay: .27s; }
[data-rv-d="4"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  [data-rv] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* Legal pages */
.legal h2 { font-size: var(--t-h2); margin-top: 1.9em; }
.legal p, .legal li { color: #4a4f55; font-size: var(--t-base); }

/* Captioned in-article figure */
.prose-fig { margin: 1.6em 0; }
.prose-fig img { margin: 0 0 10px; }
.prose-fig figcaption { font-size: var(--t-sm); color: #7c8288; line-height: 1.5; }
