/* ==========================================================================
   Keystone — classic corporate contractor template · archesign.studio
   1. Tokens  2. Base  3. Layout  4. Utility bar + header  5. Components
   6. Pages  7. Footer  8. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy: #13233f;
  --navy-deep: #0c182d;
  --navy-soft: #213a63;
  --gold: #b8964e;
  --gold-light: #e6d6ac;
  --gold-deep: #7d6230;   /* gold for small text on white (AA contrast) */
  --white: #ffffff;
  --mist: #f2f4f7;
  --ink: #172033;
  --muted: #5d6778;
  --rule: #dde2ea;
  --on-navy: #c9d3e2;

  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", "Segoe UI", Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --max: 1320px;
  --space: clamp(64px, 8.5vw, 120px);
  --ease: cubic-bezier(.25, .7, .25, 1);
  --shadow: 0 24px 60px rgba(12, 24, 45, .16);

  --keystone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M20 24 H180 L146 186 H54 Z' fill='none' stroke='%23b8964e' stroke-width='1.2'/%3E%3Cpath d='M62 64 H138 L124 150 H76 Z' fill='none' stroke='%23b8964e' stroke-width='1'/%3E%3C/svg%3E");
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-light); color: var(--navy-deep); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.h2 { font-family: var(--font-serif); font-size: clamp(30px, 3.5vw, 48px); line-height: 1.16; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 20px; }
.h3 { font-family: var(--font-serif); font-size: clamp(23px, 2.3vw, 31px); line-height: 1.25; color: var(--navy); margin: 0 0 16px; }
.h4 { font-family: var(--font-serif); font-size: 21px; line-height: 1.3; color: var(--navy); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 12px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: none; }
.eyebrow--light { color: var(--gold-light); }
.numeral { font-family: var(--font-serif); font-style: italic; color: var(--gold); line-height: 1; }
.text-link { display: inline-flex; gap: 8px; font-weight: 600; font-size: 15px; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color .2s; }
.text-link:hover { color: var(--gold-deep); }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section--tight { padding-top: clamp(40px, 5vw, 64px); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy .h2 { color: var(--white); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .h2 { margin: 0; }
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; max-width: none; }
.section-note { margin: 0; color: var(--muted); font-size: 14.5px; }

/* 4. Utility bar + header -------------------------------------------------- */
.utility { background: var(--navy-deep); color: var(--on-navy); font-size: 13px; }
.utility-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 38px; }
.utility-note { opacity: .85; }
.utility-links { display: flex; gap: 22px; }
.utility-links a { color: var(--gold-light); }
.utility-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); transition: box-shadow .3s; }
.scrolled .site-header { box-shadow: 0 8px 30px rgba(12, 24, 45, .08); }
.header-row { display: flex; align-items: center; gap: 36px; height: 88px; }
.logo { display: inline-flex; align-items: center; gap: 14px; margin-right: auto; position: relative; z-index: 60; color: var(--navy); }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-text b { display: block; font: 400 23px/1 var(--font-serif); letter-spacing: .16em; text-transform: uppercase; }
.logo-text small { display: block; margin-top: 6px; font: 600 10px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a { padding: 8px 0; font-weight: 500; font-size: 15.5px; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.site-nav > a:hover { color: var(--navy-soft); border-bottom-color: var(--rule); }
.site-nav > a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.nav-extra { display: none; }
.menu-btn { display: none; }

/* 5. Components ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px;
  font: 600 14.5px var(--font-sans); letter-spacing: .03em; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); }
.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }
.btn--block { width: 100%; }
.header-cta { padding: 13px 22px; }

.frame { margin: 0; padding: 12px; background: var(--white); border: 1px solid var(--rule); }
.frame img { width: 100%; aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; background: var(--mist); }
.frame figcaption { padding-top: 10px; font-size: 13.5px; color: var(--muted); }
.frame--offset { position: relative; isolation: isolate; }
.frame--offset::before { content: ""; position: absolute; z-index: -1; inset: 26px -26px -26px 26px; border: 1px solid var(--gold); }

.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 6. Pages ----------------------------------------------------------------- */
/* hero */
.hero { background: linear-gradient(112deg, var(--navy) 0 60%, var(--navy-deep) 60%); color: var(--on-navy); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 80px); align-items: center; padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(140px, 13vw, 190px); }
.hero-title { font-family: var(--font-serif); font-size: clamp(36px, 4.7vw, 66px); line-height: 1.12; letter-spacing: -0.015em; color: var(--white); max-width: 17ch; }
.hero .lede { max-width: 52ch; margin: 28px 0 36px; font-size: clamp(17px, 1.35vw, 19.5px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { position: relative; margin: 0 26px 26px 0; isolation: isolate; }
.hero-figure::before { content: ""; position: absolute; z-index: -1; inset: 26px -26px -26px 26px; border: 1px solid var(--gold); }
.hero-figure img { width: 100%; aspect-ratio: 14 / 11; object-fit: cover; border: 1px solid rgba(230, 214, 172, .35); }
.seal { position: absolute; left: -64px; bottom: -64px; width: 150px; height: 150px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }

/* trust panel */
.trust-wrap { position: relative; z-index: 2; margin-top: calc(clamp(90px, 9vw, 120px) * -1); }
.trust-panel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; background: var(--white); border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.trust-panel > div { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 32px) clamp(18px, 2vw, 28px); border-left: 1px solid var(--rule); }
.trust-panel > div:first-child { border-left: 0; }
.trust-panel dt { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trust-panel dd { margin: 10px 0 6px; font: 400 clamp(30px, 3vw, 44px)/1.05 var(--font-serif); color: var(--navy); }
.trust-panel .dd-small { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.35; }
.trust-panel span { font-size: 13.5px; color: var(--muted); }

/* intro */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.intro .h2 { margin: 0; }
.intro-text p { color: var(--muted); font-size: 18px; }
.intro-text .text-link { margin-top: 10px; }

/* sectors */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sector { display: flex; flex-direction: column; gap: 12px; padding: 32px 28px 28px; background: var(--white); border-top: 3px solid var(--navy); box-shadow: 0 1px 0 var(--rule); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.sector .numeral { font-size: 38px; }
.sector h3 { font: 400 24px/1.2 var(--font-serif); color: var(--navy); }
.sector p { margin: 0; color: var(--muted); font-size: 15.5px; }
.sector-stat { padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }
.sector-stat b { display: block; font: 400 22px/1.2 var(--font-serif); color: var(--navy); }
.sector .text-link { margin-top: auto; align-self: flex-start; }
.sector:hover { border-top-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }

/* feature */
.feature { background: var(--navy-deep); padding-bottom: var(--space); }
.feature-figure { margin: 0; }
.feature-figure img { width: 100%; aspect-ratio: 16 / 7; max-height: 720px; object-fit: cover; }
.feature-card { position: relative; max-width: 580px; margin-top: calc(clamp(120px, 14vw, 220px) * -1); padding: clamp(28px, 3.4vw, 44px); background: var(--white); border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.feature-card > p:not(.eyebrow) { color: var(--muted); }
.mini-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.mini-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mini-facts dd { margin: 4px 0 0; font: 400 17px/1.35 var(--font-serif); color: var(--navy); }

/* record ledger */
.record { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.record-copy p:not(.eyebrow) { color: var(--muted); }
.ledger-wrap { max-width: 100%; overflow-x: auto; border-top: 3px solid var(--gold); background: var(--white); box-shadow: 0 1px 0 var(--rule); }
.ledger { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: 15px 14px; text-align: right; border-bottom: 1px solid var(--rule); }
.ledger thead th { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--navy); }
.ledger th:first-child { text-align: left; }
.ledger tbody th { font-weight: 500; color: var(--ink); }
.ledger td { color: var(--muted); }
.ledger td.hi { background: #f7f1e2; color: var(--navy); font-weight: 700; }

/* testimonials */
.testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.testimonial { position: relative; margin: 0; padding: clamp(28px, 3.4vw, 44px); background: rgba(255, 255, 255, .04); border: 1px solid rgba(230, 214, 172, .22); }
.testimonial::before { content: "“"; display: block; height: 40px; font: 400 72px/1 var(--font-serif); color: var(--gold); }
.testimonial p { font: italic 400 clamp(17px, 1.5vw, 20px)/1.65 var(--font-serif); color: var(--white); }
.testimonial footer { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(230, 214, 172, .22); }
.testimonial footer b { color: var(--white); font-weight: 600; }
.testimonial footer span { color: var(--gold-light); font-size: 14px; }

/* awards */
.awards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.awards li { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; border-top: 1px solid var(--navy); }
.award-year { font: 400 30px/1 var(--font-serif); color: var(--gold-deep); }
.awards b { font: 400 19px/1.35 var(--font-serif); color: var(--navy); }
.awards li > span:last-child { color: var(--muted); font-size: 14.5px; }

/* news */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.news-item { display: flex; flex-direction: column; padding: 30px 28px; background: var(--white); border-bottom: 3px solid var(--gold); }
.news-item time { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.news-item h3 { margin: 12px 0 10px; font: 400 21px/1.35 var(--font-serif); color: var(--navy); }
.news-item p { color: var(--muted); font-size: 15.5px; }
.news-item .text-link { margin-top: auto; align-self: flex-start; }

/* page head */
.page-head { background: var(--mist) var(--keystone) no-repeat right max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) center / clamp(180px, 22vw, 300px); border-bottom: 1px solid var(--rule); }
.page-head .wrap { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(44px, 6vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: var(--gold); }
.page-title { font-family: var(--font-serif); font-size: clamp(34px, 4.8vw, 66px); line-height: 1.12; letter-spacing: -0.015em; color: var(--navy); max-width: 20ch; }
.page-head .lede { max-width: 62ch; margin: 24px 0 0; font-size: clamp(17px, 1.35vw, 19.5px); color: var(--muted); }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0 30px; margin-bottom: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--rule); }
.tabs button { margin-bottom: -1px; padding: 14px 0; background: none; border: 0; border-bottom: 2px solid transparent; font: 600 15px var(--font-sans); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.tabs button:hover { color: var(--navy); }
.tabs button[aria-pressed="true"] { color: var(--navy); border-bottom-color: var(--gold); }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 52px) clamp(20px, 2.4vw, 32px); }
.card { display: flex; flex-direction: column; }
.card-img { position: relative; margin: 0; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.03); }
.ribbon { position: absolute; top: 16px; left: 0; padding: 6px 12px; background: var(--gold); color: var(--navy-deep); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ribbon--live { background: var(--navy); color: var(--gold-light); }
.card-sector { margin: 18px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.card-title { font: 400 22px/1.3 var(--font-serif); color: var(--navy); transition: color .2s; }
.card:hover .card-title { color: var(--navy-soft); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.card-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.card-meta dt { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-meta dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }

.market-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; }
.market-stats > div { padding-top: 20px; border-top: 1px solid var(--gold); }
.market-stats dt { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.market-stats dd { margin: 10px 0 8px; font: 400 clamp(34px, 3.6vw, 48px)/1 var(--font-serif); color: var(--white); }
.market-stats span { font-size: 14.5px; }

/* case study */
.case-hero { margin: clamp(32px, 4vw, 56px) 0 0; }
.case-hero img { width: 100%; aspect-ratio: 1800 / 820; object-fit: cover; border: 1px solid var(--rule); }
.case-hero figcaption { padding-top: 12px; font-size: 13.5px; color: var(--muted); }
.case-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.case-body > p { max-width: 66ch; }
.case-body .h3:not(:first-child) { margin-top: 44px; }
.pull { margin: 40px 0; padding: 8px 0 8px clamp(20px, 3vw, 36px); border-left: 3px solid var(--gold); font: italic 400 clamp(20px, 2vw, 25px)/1.5 var(--font-serif); color: var(--navy); }
.pull cite { display: block; margin-top: 14px; font: normal 600 14px var(--font-sans); color: var(--muted); }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 28px; }
.results li { display: flex; flex-direction: column; padding: 20px 0; border-top: 1px solid var(--rule); }
.results b { font: 400 clamp(32px, 3.2vw, 42px)/1.1 var(--font-serif); color: var(--navy); }
.results span { color: var(--muted); font-size: 15px; }
.glance { position: sticky; top: 112px; padding: 32px; background: var(--navy); color: var(--white); border-top: 4px solid var(--gold); }
.glance-title { margin: 0 0 12px; font: 400 24px var(--font-serif); }
.glance dl { margin: 0 0 26px; }
.glance dl div { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.glance dt { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.glance dd { margin: 4px 0 0; font-size: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }

/* milestones / timeline */
.milestones, .timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.milestones::before, .timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--gold); }
.milestones li, .timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 38px; }
.milestones li::before, .timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--white); border: 2px solid var(--gold); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 10px var(--navy); }
.milestones time, .timeline time { font: 400 22px/1.2 var(--font-serif); color: var(--navy); }
.timeline time { font-size: 32px; color: var(--gold-deep); }
.milestones b, .timeline b { font-weight: 600; font-size: 16px; color: var(--ink); }
.milestones li > span, .timeline li > span { color: var(--muted); font-size: 14.5px; }
.section--mist .timeline li::before { background: var(--mist); box-shadow: inset 0 0 0 4px var(--mist), inset 0 0 0 10px var(--navy); }

.team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.team-list li { display: flex; flex-direction: column; padding: 18px 0; border-top: 1px solid var(--navy); }
.team-list b { font: 400 19px/1.3 var(--font-serif); color: var(--navy); }
.team-list span { color: var(--muted); font-size: 14.5px; }

.next a { display: flex; flex-direction: column; padding: clamp(44px, 6vw, 72px) 0 var(--space); }
.next-title { font: 400 clamp(25px, 3.2vw, 42px)/1.2 var(--font-serif); color: var(--navy); transition: color .2s; }
.next a:hover .next-title { color: var(--gold-deep); }

/* about */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.story .frame { margin-right: 26px; margin-bottom: 26px; }
.story-text p:not(.eyebrow) { color: var(--muted); }
.leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(20px, 2.4vw, 32px); }
.leader .frame { padding: 10px; }
.leader .frame img { --ratio: 5 / 6; }
.leader h3 { margin: 20px 0 4px; font: 400 22px var(--font-serif); color: var(--navy); }
.leader .role { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.leader p:last-child { color: var(--muted); font-size: 15px; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.value { padding: 8px clamp(18px, 2vw, 32px) 8px; border-left: 1px solid rgba(230, 214, 172, .25); }
.value:first-child { padding-left: 0; border-left: 0; }
.value .numeral { font-size: 34px; }
.value h3 { margin: 14px 0 10px; font: 400 23px var(--font-serif); color: var(--white); }
.value p { margin: 0; font-size: 15.5px; }
.creds { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.creds > div > p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }
.cred-list li { display: flex; align-items: center; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.cred-list li:first-child { border-top: 1px solid var(--rule); }
.cred-seal { display: grid; place-items: center; flex: none; width: 78px; height: 78px; border-radius: 50%; border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 3px; font: 400 15px var(--font-serif); color: var(--navy); background: var(--white); }
.cred-list b { display: block; font-weight: 600; color: var(--ink); }
.cred-list span { font-size: 14.5px; color: var(--muted); }
.community { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.community .h2 { margin: 0; }
.community-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.community-stats div { padding-top: 18px; border-top: 1px solid var(--gold); }
.community-stats b { display: block; font: 400 clamp(32px, 3.4vw, 46px)/1.1 var(--font-serif); color: var(--navy); }
.community-stats span { color: var(--muted); font-size: 15px; }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service { padding: 34px 30px; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); transition: border-top-color .25s, box-shadow .25s; }
.service:hover { border-top-color: var(--gold); box-shadow: var(--shadow); }
.service .numeral { font-size: 30px; color: var(--gold-deep); }
.service .h4 { margin: 16px 0 10px; }
.service p { margin: 0; color: var(--muted); font-size: 15.5px; }
.matrix-wrap { background: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 1px 0 var(--rule); }
.matrix { width: 100%; border-collapse: collapse; }
.matrix th, .matrix td { padding: 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.matrix thead th { border-top: 0; border-bottom: 2px solid var(--navy); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.matrix tbody th { min-width: 200px; }
.matrix tbody th b { display: block; font: 400 20px/1.3 var(--font-serif); color: var(--navy); }
.matrix tbody th span { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.matrix td { font-size: 15px; color: var(--ink); }
.rate { position: relative; display: inline-block; width: 86px; height: 12px; vertical-align: middle;
  background: radial-gradient(circle, transparent 0 3.4px, var(--gold) 3.8px 4.9px, transparent 5.3px) 0 50% / 17.2px 12px repeat-x; }
.rate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 17.2px);
  background: radial-gradient(circle, var(--gold) 0 4.9px, transparent 5.3px) 0 50% / 17.2px 12px repeat-x; }
.matrix tbody tr:hover { background: #fbf8f0; }
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.phases li { padding-top: 24px; border-top: 3px solid var(--navy); }
.phase-no { font: italic 400 38px/1 var(--font-serif); color: var(--gold); }
.phases h3 { margin: 14px 0 8px; font: 400 21px/1.3 var(--font-serif); color: var(--navy); }
.phases p { margin: 0; color: var(--muted); font-size: 15px; }
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq > div:first-child p:not(.eyebrow) { color: var(--muted); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list details:first-child { border-top: 1px solid var(--rule); }
.faq-list summary { display: block; position: relative; padding: 22px 48px 22px 0; cursor: pointer; list-style: none; font: 400 clamp(17px, 1.5vw, 20px)/1.4 var(--font-serif); color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 2px; top: 50%; margin-top: -17px; width: 34px; height: 34px; border: 1px solid var(--gold); border-radius: 50%; text-align: center; font: 300 22px/32px var(--font-sans); color: var(--gold-deep); }
.faq-list details[open] summary::after { content: "−"; background: var(--navy); border-color: var(--navy); color: var(--white); }
.faq-list details p { margin: 0; padding: 0 0 24px; color: var(--muted); max-width: 64ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.form-card { padding: clamp(24px, 3.4vw, 44px); background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); box-shadow: var(--shadow); }
.form-card fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.form-card legend { padding: 0; margin-bottom: 18px; font: 400 22px var(--font-serif); color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; font: 400 16px var(--font-sans); color: var(--ink); background: var(--white); border: 1px solid #c3cad5; border-radius: 2px; appearance: none; transition: border-color .2s, box-shadow .2s; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input[type="file"] { padding: 10px; font-size: 14px; background: var(--mist); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(184, 150, 78, .35); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding-top: 22px; border-top: 1px solid var(--rule); }
.fine { margin: 0; max-width: 46ch; font-size: 13.5px; color: var(--muted); }
.form-note { margin: 20px 0 0; padding: 14px 18px; background: #f7f1e2; border-left: 3px solid var(--gold); color: var(--navy); }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.side-card { padding: 28px; background: var(--white); border: 1px solid var(--rule); }
.side-card p:not(.eyebrow) { color: var(--muted); font-size: 15.5px; }
.side-card--navy { background: var(--navy); border: 0; border-top: 3px solid var(--gold); }
.side-card--navy p:not(.eyebrow) { color: var(--on-navy); }
.side-card--navy .side-name { margin: 0; font: 400 24px var(--font-serif); color: var(--white); }
.side-card--navy a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.office { padding: 32px; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); }
.office-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.office h3 { margin: 10px 0 14px; font: 400 28px var(--font-serif); color: var(--navy); }
.office p { color: var(--muted); font-size: 15.5px; }
.office a { color: var(--navy); font-weight: 600; }
.office .hours { margin: 0; font-size: 13.5px; }

/* 7. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 48px; padding: clamp(56px, 7vw, 88px) 0 clamp(44px, 5vw, 64px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-claim { margin: 0; max-width: 24ch; font: 400 clamp(26px, 3vw, 40px)/1.25 var(--font-serif); color: var(--white); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: clamp(40px, 5vw, 64px) 0; }
.logo--light { color: var(--white); margin-bottom: 18px; }
.logo--light .logo-text small { color: var(--gold-light); }
.footer-brand p { max-width: 34ch; font-size: 15px; }
.footer-grid .label { margin-bottom: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer-grid p:not(.label) { font-size: 15px; }
.footer-grid a { overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding: 22px 0 32px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--white); }

/* 8. Responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .trust-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-panel > div:nth-child(4) { border-left: 0; }
  .trust-panel > div:nth-child(n + 4) { border-top: 1px solid var(--rule); }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .utility-note { display: none; }
  .utility-row { justify-content: flex-end; }
  .header-cta { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 48px; height: 48px; position: relative; z-index: 60; cursor: pointer;
    background: var(--white); border: 1px solid var(--navy); color: var(--navy); border-radius: 2px;
  }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .3s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .menu-open .bars { background: transparent; }
  .menu-open .bars::before { top: 0; transform: rotate(45deg); }
  .menu-open .bars::after { top: 0; transform: rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: 110px var(--gutter) 40px; overflow-y: auto;
    background: var(--white) var(--keystone) no-repeat right -40px bottom -30px / 260px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .site-nav > a { padding: 16px 0; font: 400 clamp(28px, 7vw, 40px)/1.15 var(--font-serif); color: var(--navy); border-bottom: 1px solid var(--rule); }
  .site-nav > a:hover { border-bottom-color: var(--rule); color: var(--gold-deep); }
  .site-nav > a[aria-current="page"] { color: var(--gold-deep); border-bottom-color: var(--gold); }
  .nav-extra { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; font-size: 15px; color: var(--muted); }
  .nav-extra a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .hero { background: linear-gradient(160deg, var(--navy) 0 64%, var(--navy-deep) 64%); }
  .hero-grid, .intro, .record, .case-grid, .story, .creds, .community, .faq, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 620px; }
  .glance { position: static; }
  .cards, .leaders, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awards, .market-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .news, .testimonials { grid-template-columns: minmax(0, 1fr); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: 100%; }
  .matrix tr { padding: 22px 22px 18px; border-top: 1px solid var(--rule); }
  .matrix tbody tr:first-child { border-top: 0; }
  .matrix th, .matrix td { padding: 0; border: 0; }
  .matrix tbody th { min-width: 0; margin-bottom: 12px; }
  .matrix td { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px dashed var(--rule); }
  .matrix td::before { content: attr(data-label); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .utility { display: none; }
  .header-row { height: 72px; gap: 16px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-text b { font-size: 19px; letter-spacing: .12em; }
  .logo-text small { font-size: 9px; letter-spacing: .14em; }
  .hero-grid { padding-bottom: 120px; }
  .hero-figure { margin: 0 18px 18px 0; }
  .hero-figure::before { inset: 18px -18px -18px 18px; }
  .seal { left: auto; right: -6px; bottom: -36px; width: 112px; height: 112px; }
  .trust-wrap { margin-top: -72px; }
  .trust-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-panel > div { border-left: 0; border-top: 1px solid var(--rule); }
  .trust-panel > div:nth-child(even) { border-left: 1px solid var(--rule); }
  .trust-panel > div:nth-child(-n + 2) { border-top: 0; }
  .trust-panel > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .sectors, .cards, .leaders, .gallery, .awards, .market-stats, .service-grid, .phases, .team-list, .results, .community-stats, .offices, .contact-side, .values { grid-template-columns: minmax(0, 1fr); }
  .value { padding-left: 0; border-left: 0; }
  .feature-figure img { aspect-ratio: 4 / 3; }
  .feature-card { margin-top: -48px; }
  .mini-facts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .milestones, .timeline { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .milestones::before, .timeline::before { left: 9px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .milestones li, .timeline li { padding: 0 0 0 40px; }
  .timeline time { font-size: 26px; }
  .form-card fieldset { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
  .matrix td { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .matrix tr { padding: 20px 18px 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-actions .btn { flex: 1 1 auto; }
  .story .frame { margin-right: 18px; }
  .frame--offset::before { inset: 18px -18px -18px 18px; }
  .case-hero img { aspect-ratio: 4 / 3; }
  .page-head { background-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
