/* ==========================================================================
   WI Constructions and Engineering — main stylesheet
   Pure CSS, no build step. Edit tokens in :root to restyle the whole site.
   ========================================================================== */

:root {
  --navy: #0B1628;
  --dark: #07101D;
  --white: #FFFFFF;
  --off-white: #F6F7F9;
  --light-gray: #E7EAF0;
  --text: #172033;
  --muted: #667085;
  --gold: #D89A2B;
  --gold-light: #F0B84A;
  --line: #D5DAE3;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --header-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .3s var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.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;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { max-width: 68ch; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); line-height: 1.6; }
strong { font-weight: 700; color: var(--navy); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tint { background: var(--off-white); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: var(--white); }
.section--dark .lead { color: rgba(255,255,255,.72); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid; gap: clamp(40px, 6vw, 88px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

/* Section heading block with a dimension-line marker (drafting motif) */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }
.section-head h2 + p { margin-top: 18px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--gold); margin-bottom: 16px;
}
.kicker::before {
  content: ""; width: 34px; height: 9px; flex: none;
  border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.section--dark .kicker, .hero .kicker, .page-hero .kicker { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { background: var(--gold); color: var(--dark); }
.btn--gold:hover { background: var(--gold-light); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #16264A; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--wa { background: #1FA855; color: var(--white); }
.btn--wa:hover { background: #178C46; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  border-bottom: 1.5px solid var(--gold); padding-bottom: 3px;
  transition: gap var(--t), color var(--t);
}
.text-link svg { width: 18px; height: 18px; }
.text-link:hover { gap: 12px; }
.section--dark .text-link { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t), border-color var(--t), height var(--t);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(10px); }
}
.site-header.is-scrolled { border-color: var(--light-gray); box-shadow: 0 8px 30px rgba(11,22,40,.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 64px; width: auto; transition: height var(--t); }
.site-header.is-scrolled .brand img { height: 56px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-list { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.nav-list a {
  position: relative; font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: var(--text); padding: 8px 0; transition: color var(--t);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gold); transition: right var(--t);
}
.nav-list a:hover { color: var(--navy); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.nav-list a[aria-current="page"] { color: var(--navy); }
.nav .btn { min-height: 46px; padding: 0 20px; font-size: .95rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  border: 1px solid var(--light-gray); border-radius: var(--radius);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--navy);
  transition: transform var(--t), background var(--t); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: var(--white); background: var(--dark);
  min-height: min(calc(100vh - var(--header-h)), 860px);
  display: flex; flex-direction: column; overflow: hidden;
}
.hero-media, .page-hero-media { position: absolute; inset: 0; }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after, .page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,16,29,.94) 0%, rgba(7,16,29,.82) 42%, rgba(7,16,29,.35) 100%),
    linear-gradient(0deg, rgba(7,16,29,.75) 0%, rgba(7,16,29,0) 45%);
}
/* Blueprint grid overlay: the signature drafting motif */
.blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(240,184,74,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,184,74,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.55) 55%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.55) 55%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding: clamp(64px, 9vw, 120px) 0 56px; }
.hero h1 { color: var(--white); max-width: 24ch; font-size: clamp(2.3rem, 4.8vw, 3.75rem); }
.hero h1 .line { display: block; }
.hero .lead { color: rgba(255,255,255,.8); max-width: 60ch; margin-top: 26px; }

/* Title block (like an engineering drawing sheet) holding trust indicators */
.title-block {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-dark);
  background: rgba(7,16,29,.72);
}
@supports (backdrop-filter: blur(6px)) { .title-block { background: rgba(7,16,29,.55); backdrop-filter: blur(6px); } }
.title-block ul { display: grid; grid-template-columns: repeat(3, 1fr) auto; }
.title-block li {
  padding: 22px 28px 22px 0; display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--line-dark); padding-left: 28px;
}
.title-block li:first-child { padding-left: 0; }
.title-block li:last-child { border-right: 0; padding-right: 0; justify-content: center; }
.title-block small { font-size: .78rem; color: rgba(255,255,255,.55); letter-spacing: .02em; }
.title-block b { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--white); }
.title-block .tb-ref { font-family: var(--font-head); font-size: .8rem; color: var(--gold-light); text-align: right; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; color: var(--white); background: var(--dark); overflow: hidden;
  padding: clamp(88px, 11vw, 150px) 0 clamp(64px, 7vw, 96px);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.page-hero .lead { color: rgba(255,255,255,.8); margin-top: 22px; max-width: 62ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 26px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.35); }

/* ==========================================================================
   CARD SYSTEM + HOVER EFFECTS (shared by every card on every page)
   Add class "card" to any card. Image cards also use ".card-media".
   ========================================================================== */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--light-gray); border-radius: var(--radius);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease); z-index: 2;
}
.card-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--light-gray); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; flex: none;
  color: var(--navy); background: var(--off-white); border: 1px solid var(--light-gray);
  transition: color var(--t), background var(--t), border-color var(--t);
}
.card-icon svg { width: 24px; height: 24px; }
.card-arrow { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--navy); }
.card-arrow svg { width: 18px; height: 18px; transition: transform var(--t); }
.section--dark .card { background: rgba(255,255,255,.035); border-color: var(--line-dark); }
.section--dark .card-body p, .section--dark .card p { color: rgba(255,255,255,.7); }
.section--dark .card-icon { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: var(--gold-light); }
a.card { color: inherit; }

@media (hover: hover) {
  a.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -20px rgba(11,22,40,.30);
    border-color: var(--line);
  }
  a.card:hover::before { transform: scaleX(1); }
  a.card:hover .card-media img { transform: scale(1.04); }
  a.card:hover .card-icon { color: var(--dark); background: var(--gold); border-color: var(--gold); }
  a.card:hover .card-arrow svg { transform: translateX(4px); }
  .section--dark a.card:hover { background: rgba(255,255,255,.07); border-color: rgba(240,184,74,.45); box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
}
/* Same feedback for keyboard users on linked cards */
a.card:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 40px -18px rgba(11,22,40,.28); }
a.card:focus-visible::before { transform: scaleX(1); }
a.card:focus-visible .card-media img { transform: scale(1.05); }
a.card:focus-visible .card-icon { color: var(--dark); background: var(--gold); border-color: var(--gold); }
a.card:focus-visible .card-arrow svg { transform: translateX(4px); }

/* ---------- Service cards (home) ---------- */
.service-card .card-body { gap: 10px; }
.service-card .card-icon { margin-top: -50px; position: relative; z-index: 3; background: var(--white); }
.service-card h3 { font-size: 1.14rem; }

/* ---------- Who we are ---------- */
.figure-stack { position: relative; }
.figure-stack .main { overflow: hidden; }
.figure-stack .main img { width: 100%; height: 100%; object-fit: cover; }
.figure-note {
  display: flex; align-items: center; gap: 18px; background: var(--navy); color: var(--white);
  padding: 20px 24px; border-top: 3px solid var(--gold);
}
.figure-note b { display: block; flex: none; font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--white); letter-spacing: -0.03em; }
.figure-note span { font-size: .92rem; color: rgba(255,255,255,.75); }
.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
.section--dark .check-list li { color: rgba(255,255,255,.82); }
.discipline-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.discipline-tags li { font-size: .88rem; font-weight: 600; font-family: var(--font-head); color: var(--navy); border: 1px solid var(--line); padding: 7px 14px; background: var(--white); }

/* ---------- Technical expertise: drawing sheet layout ---------- */
.spec-sheet {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto;
  gap: 0; border: 1px solid var(--line-dark);
}
.spec-sheet .card { border: 0; border-radius: 0; background: transparent; padding: 34px 30px; gap: 14px; }
.spec-sheet .card + .card { border-left: 1px solid var(--line-dark); }
.spec-sheet .card:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
.spec-sheet .card:nth-child(4) { border-left: 0; }
.spec-sheet .spec-lead { grid-row: span 2; border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; justify-content: space-between; }
.spec-sheet .spec-lead + .card { border-left: 0; }
.spec-sheet .card:nth-child(4) { border-left: 0; }
.spec-code { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--gold-light); }
.spec-sheet h3 { font-size: 1.2rem; }
.spec-sheet p { font-size: .96rem; }
.spec-diagram { margin-top: 28px; color: rgba(240,184,74,.75); }
.spec-diagram svg { width: 100%; height: auto; }

/* ---------- Why cards ---------- */
.why-card { padding: 28px; gap: 14px; }
.why-card p { color: var(--muted); font-size: .96rem; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process--5 { grid-template-columns: repeat(5, 1fr); }
.process .card { padding: 32px 28px 34px; border-radius: 0; gap: 12px; }
.process .card + .card { border-left: 0; }
.step-no { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: #BAC2D0; letter-spacing: -0.04em; transition: color var(--t); }
@media (hover: hover) { .process .card:hover .step-no { color: var(--gold); } }
.process .card p { color: var(--muted); font-size: .96rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--line); }
.section--dark .timeline::before { background: var(--line-dark); }
.timeline .card { padding: 28px 26px 30px; gap: 10px; }
.timeline .card::after {
  content: ""; position: absolute; top: -36px; left: 26px; width: 15px; height: 15px;
  border: 2px solid var(--gold); background: var(--white); border-radius: 50%; transition: background var(--t);
}
.section--dark .timeline .card::after { background: var(--navy); }
@media (hover: hover) { .timeline .card:hover::after { background: var(--gold); } }
.timeline .year { font-family: var(--font-head); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; color: var(--navy); line-height: 1; }
.section--dark .timeline .year { color: var(--white); }
.timeline .phase { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: .95rem; }
.timeline p { font-size: .96rem; color: var(--muted); }

/* ---------- Leadership ---------- */
.leader-card .card-media { aspect-ratio: 4 / 5; background: #EEF0F4; }
.leader-card .card-media img { object-position: center top; }
.leader-card .role { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: .95rem; }
.leader-card .card-body { gap: 8px; }
.leader-card .card-body p { margin-top: 6px; }

/* Team page profiles */
.profile {
  display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start;
}
.profile + .profile { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--light-gray); }
.profile--flip { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); }
.profile--flip .profile-photo { order: 2; }
.profile-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.profile-photo .card-media { aspect-ratio: 4 / 5; }
.profile-photo .card-body { padding: 20px 22px; }
.profile h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.profile .role { font-family: var(--font-head); font-weight: 700; color: var(--gold); margin-top: 8px; display: block; }
.profile-text { display: grid; gap: 18px; margin-top: 26px; }
.profile-text p { color: #3A4458; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.fact-grid .card { padding: 20px 22px; gap: 6px; }
.fact-grid small { color: var(--muted); font-size: .85rem; }
.fact-grid b { font-family: var(--font-head); color: var(--navy); font-size: 1rem; }

/* ---------- Capabilities / local ---------- */
.cap-card { padding: 30px 28px; gap: 12px; }
.cap-card p { color: var(--muted); font-size: .96rem; }
.region-strip { max-width: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--light-gray); color: var(--muted); font-size: .95rem; }
.region-strip b { color: var(--navy); font-family: var(--font-head); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band .container > div:first-child { max-width: 760px; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.75); margin-top: 16px; }


/* ---------- About: pillars, standards ---------- */
.pillar { padding: 34px 30px; gap: 14px; }
.pillar p { color: var(--muted); }
.promise-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.promise-values .card { padding: 20px 22px; gap: 8px; }
.promise-values .card h3 { font-size: 1.02rem; }
.promise-values .card p { font-size: .9rem; color: var(--muted); }

.approach-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.approach-list .card { flex-direction: row; gap: 22px; align-items: flex-start; padding: 26px 22px; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; background: transparent; }
.approach-list h3 { font-size: 1.12rem; }
.approach-list p { margin-top: 6px; font-size: .96rem; }

.standards { border: 1px solid var(--light-gray); background: var(--white); }
.standards-row { display: grid; grid-template-columns: 1fr 1.6fr 1.4fr; }
.standards-row > * { padding: 20px 24px; border-bottom: 1px solid var(--light-gray); }
.standards-row > * + * { border-left: 1px solid var(--light-gray); }
.standards-head > * { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: .95rem; border-color: var(--line-dark); }
.standards-row.card { flex-direction: row; display: grid; border: 0; border-radius: 0; }
.standards-row.card::before { height: 100%; width: 3px; right: auto; top: 0; left: 0; transform: scaleY(0); transform-origin: top; }
@media (hover: hover) {
  .standards-row.card:hover { transform: none; box-shadow: none; background: var(--off-white); }
  .standards-row.card:hover::before { transform: scaleY(1); }
}
.standards-row .bench { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.standards-row .ours { color: var(--text); }
.standards-row .trad { color: var(--muted); }
.standards-row:last-child > * { border-bottom: 0; }
.fine-print { font-size: .88rem; color: var(--muted); margin-top: 16px; }

/* ---------- Services page ---------- */
.service-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.service-detail + .service-detail { margin-top: clamp(64px, 8vw, 110px); }
.service-detail--flip .service-media { order: 2; }
.service-media.card { overflow: hidden; }
.service-media .card-media { aspect-ratio: 4 / 3; }
.service-no { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: .95rem; margin-bottom: 12px; display: block; }
.service-detail h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.service-detail > div > p { margin-top: 16px; color: #3A4458; }
.cap-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 24px 0 28px; }
.cap-list .card { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; font-size: .94rem; font-weight: 500; }
.cap-list svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.service-index { display: flex; flex-wrap: wrap; gap: 10px; }
.service-index a.card { flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy); }
.service-index svg { width: 18px; height: 18px; color: var(--gold); }

.solution-card { padding: 28px; gap: 12px; }
.solution-card ul { display: grid; gap: 8px; margin-top: 4px; }
.solution-card li { display: flex; gap: 10px; font-size: .95rem; color: var(--muted); }
.solution-card li::before { content: ""; width: 10px; height: 1.5px; background: var(--gold); margin-top: 12px; flex: none; }
.section--dark .solution-card li { color: rgba(255,255,255,.72); }

/* ---------- Contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { padding: 28px 26px; gap: 12px; }
.contact-card small { color: var(--muted); font-size: .88rem; }
.contact-card b { font-family: var(--font-head); color: var(--navy); font-size: 1.08rem; word-break: break-word; }
.inquiry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.inquiry-steps { display: grid; gap: 14px; counter-reset: iq; }
.inquiry-steps .card { flex-direction: row; gap: 18px; padding: 20px 22px; align-items: flex-start; }
.inquiry-steps .card::after { counter-increment: iq; content: counter(iq, decimal-leading-zero); order: -1; font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: 1.1rem; min-width: 28px; }
.inquiry-steps h3 { font-size: 1.02rem; }
.inquiry-steps p { font-size: .94rem; color: var(--muted); margin-top: 4px; }
.sample-msg { background: var(--navy); color: rgba(255,255,255,.85); padding: 30px; border-left: 3px solid var(--gold); }
.sample-msg p { font-size: .98rem; margin-top: 12px; }
.sample-msg h3 { color: var(--white); }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip a.card { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--navy); }
.strip .card-icon { width: 40px; height: 40px; }
.strip .card-icon svg { width: 20px; height: 20px; }

.map-wrap { position: relative; border: 1px solid var(--light-gray); overflow: hidden; aspect-ratio: 16 / 7; background: var(--light-gray); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.wa-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: clamp(32px, 5vw, 80px); align-items: center; }
.qr-card { padding: 22px; background: var(--white); width: min(320px, 100%); }
.qr-card img { width: 100%; }
.qr-card p { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 12px; }

.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.social-card { padding: 26px 22px; gap: 12px; align-items: flex-start; }
.social-card b { font-family: var(--font-head); color: var(--navy); }
.social-card small { color: var(--muted); font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--off-white); border-top: 1px solid var(--light-gray); color: var(--text); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand img { height: 78px; width: auto; }
.footer-brand p { margin-top: 18px; color: var(--muted); font-size: .96rem; max-width: 34ch; }
.footer-brand .tagline { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-top: 14px; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--muted); font-size: .96rem; transition: color var(--t); }
.footer-links a:hover { color: var(--navy); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact a, .footer-contact span { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: .96rem; }
.footer-contact a:hover { color: var(--navy); }
.footer-contact svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 3px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--navy); background: var(--white);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.social a svg { width: 20px; height: 20px; }
.social a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }
.footer-bottom { background: var(--navy); color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer-bottom a { color: rgba(255,255,255,.85); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: 0 10px 28px -6px rgba(7,16,29,.45);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float .wa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
  background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  padding: 8px 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t);
}
@media (hover: hover) {
  .wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px -8px rgba(7,16,29,.5); background: #1FBE5B; }
  .wa-float:hover .wa-tip { opacity: 1; transform: translate(0, -50%); }
}
.wa-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.wa-float:focus-visible .wa-tip { opacity: 1; transform: translate(0, -50%); }
body.nav-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Reveal (single, subtle) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero-content .reveal { transition-duration: .9s; }
.hero-content .reveal:nth-child(2) { transition-delay: .08s; }
.hero-content .reveal:nth-child(3) { transition-delay: .16s; }
.hero-content .reveal:nth-child(4) { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .spec-sheet { grid-template-columns: 1fr 1fr; }
  .spec-sheet .spec-lead { grid-column: 1 / -1; grid-row: auto; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .spec-sheet .card { border-left: 0 !important; border-top: 0 !important; }
  .spec-sheet .card:not(.spec-lead) { border-bottom: 1px solid var(--line-dark); }
  .spec-sheet .card:not(.spec-lead):nth-child(even) { border-right: 1px solid var(--line-dark); }
  .process--5 { grid-template-columns: repeat(3, 1fr); }
  .process--5 .card:nth-child(n+4) { border-top: 0; }
  .process--5 .card:nth-child(4) { border-left: 1px solid var(--light-gray); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .promise-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }
  .site-header.is-scrolled .brand img { height: 44px; }
  .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 12px var(--gutter) 32px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 18px 0; font-size: 1.25rem; border-bottom: 1px solid var(--light-gray); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--gold); }
  .nav .btn { margin-top: 26px; min-height: 54px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }

  .split, .split--wide-left, .inquiry, .wa-panel { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .title-block ul { grid-template-columns: repeat(3, 1fr); }
  .title-block li:last-child { display: none; }
  .title-block li:nth-child(3) { border-right: 0; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process .card:nth-child(n+3) { border-top: 0; }
  .process .card:nth-child(3) { border-left: 1px solid var(--light-gray); }
  .process--5 .card:nth-child(4) { border-left: 0; }
  .process--5 .card:nth-child(odd) { border-left: 1px solid var(--light-gray); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .timeline::before { display: none; }
  .timeline .card::after { top: -8px; }
  .service-detail, .service-detail--flip { grid-template-columns: 1fr; }
  .service-detail--flip .service-media { order: 0; }
  .profile, .profile--flip { grid-template-columns: 1fr; }
  .profile--flip .profile-photo { order: 0; }
  .profile-photo { position: static; max-width: 380px; }
  .figure-stack { max-width: 520px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .map-wrap { aspect-ratio: 4 / 3; }
  .standards-row { grid-template-columns: 1fr 1.4fr 1.2fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-content { padding: 56px 0 40px; }
  .title-block ul { grid-template-columns: 1fr; }
  .title-block li { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .title-block li:nth-child(3) { border-bottom: 0; }
  .btn-row .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; min-height: 52px; height: auto; padding-top: 12px; padding-bottom: 12px; }
  html, body { overflow-x: clip; }
  .spec-sheet { grid-template-columns: 1fr; }
  .spec-sheet .card:not(.spec-lead):nth-child(even) { border-right: 0; }
  .process, .process--5 { grid-template-columns: 1fr; }
  .process .card { border-left: 1px solid var(--light-gray) !important; border-top: 0; }
  .process .card:first-child { border-top: 1px solid var(--light-gray); }
  .timeline { grid-template-columns: 1fr; gap: 40px; }
  .cap-list { grid-template-columns: 1fr; }
  .contact-cards, .strip { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-values { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
  .standards-head { display: none; }
  .standards-row, .standards-row.card { grid-template-columns: 1fr; }
  .standards-row > * + * { border-left: 0; }
  .standards-row > * { border-bottom: 0; padding: 6px 20px; }
  .standards-row { padding: 14px 0; border-bottom: 1px solid var(--light-gray); }
  .standards-row .ours::before { content: "Our standard: "; font-weight: 700; color: var(--navy); }
  .standards-row .trad::before { content: "Typical practice: "; font-weight: 600; }
  .wa-float { width: 56px; height: 56px; }
  .map-wrap { aspect-ratio: 1 / 1; }
}

@media (max-width: 380px) {
  .social-grid { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, a.card:focus-visible, .wa-float:hover, .social a:hover { transform: none !important; }
  .card:hover .card-media img, a.card:focus-visible .card-media img { transform: none !important; }
}
.section--dark .qr-card { background: var(--white); border-color: var(--white); }
.section--dark .qr-card p { color: var(--muted); }

/* ==========================================================================
   Projects (home feature, projects page, drawings gallery, lightbox)
   ========================================================================== */
.project-location { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--muted); font-weight: 500; max-width: 60ch; }
.project-location svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }
.project-location--hero { color: rgba(255,255,255,.85); margin-top: 18px; }
.project-location--hero svg { color: var(--gold-light); }
.project-feature-media { overflow: hidden; }
.project-feature-media .card-media, .project-feature .card-media { aspect-ratio: 1685 / 934; }

.onsite { align-items: center; }
.onsite-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; max-width: 580px; justify-self: end; width: 100%; }
.onsite-photos figure { margin: 0; overflow: hidden; }
.onsite-photos .card-media { aspect-ratio: 3 / 4; }
.onsite-photos .card-media img { object-position: center top; }
.onsite-photos figure:nth-child(2) { margin-top: 40px; }

.project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.project-facts dt { color: var(--muted); font-size: .85rem; }
.project-facts dd { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.project-facts .card { padding: 20px 22px; gap: 6px; }
.project-facts-wide { grid-column: 1 / -1; }

.viz { margin: 0; }
.viz-frame { display: block; overflow: hidden; background: var(--white); }
.viz-frame img { width: 100%; height: auto; transition: transform .6s var(--ease); }
@media (hover: hover) { .viz-frame:hover img { transform: scale(1.015); } }
.viz figcaption { margin-top: 14px; font-size: .92rem; color: var(--muted); }

.drawing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.drawing-grid > li { display: flex; }
.drawing-card { width: 100%; }
.drawing-media { aspect-ratio: 3309 / 2339; background: var(--white); border-bottom: 1px solid var(--light-gray); overflow: hidden; }
.drawing-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
@media (hover: hover) { .drawing-card:hover .drawing-media img { transform: scale(1.03); } }
a.drawing-card:focus-visible .drawing-media img { transform: scale(1.03); }
.drawing-card .card-body { gap: 6px; padding: 20px 22px 22px; }
.drawing-card h3 { font-size: 1.05rem; }
.drawing-no { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--gold); }

.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: var(--dark); color: var(--white); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(7,16,29,.92); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px 12px 22px; padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line-dark); }
.lightbox-caption { font-family: var(--font-head); font-weight: 700; margin: 0; }
.lightbox-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lightbox-open { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--gold-light); border-bottom: 1px solid currentColor; margin-right: 8px; }
.lightbox-btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); border: 1px solid var(--line-dark); transition: background var(--t), border-color var(--t); }
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-btn[data-lb="prev"] svg { transform: rotate(180deg); }
.lightbox-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.lightbox-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.lightbox-img { max-width: 100%; max-height: 100%; width: auto; height: auto; background: var(--white); object-fit: contain; }
body.lightbox-open-body { overflow: hidden; }

@media (max-width: 1100px) { .drawing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .onsite-photos { justify-self: start; } }
@media (max-width: 640px) {
  .drawing-grid { grid-template-columns: 1fr; }
  .project-facts { grid-template-columns: 1fr; }
  .onsite-photos { gap: 12px; }
  .onsite-photos figure:nth-child(2) { margin-top: 24px; }
  .lightbox-open { display: none; }
  .lightbox-bar { padding-left: 16px; }
  .lightbox-stage { padding: 8px; }
}
.lightbox-btn[hidden] { display: none; }

/* Six-item navigation: keep labels on one line on laptop/tablet widths */
.nav-list a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  .nav { gap: 16px; }
  .nav-list { gap: 16px; }
  .nav-list a { font-size: .92rem; }
  .nav .btn { padding: 0 16px; font-size: .9rem; }
  .brand img { height: 56px; }
}

/* ==========================================================================
   v4 EDITORIAL DESIGN LAYER
   Numbered lists, timelines, pillars, metadata rows, photo compositions,
   refined hero/CTA, stagger + line-draw animations.
   ========================================================================== */
:root { --gold-line: linear-gradient(var(--gold), var(--gold)); --shadow-soft: 0 1px 2px rgba(11,22,40,.04), 0 8px 24px -16px rgba(11,22,40,.18); }

/* Eyebrows: small uppercase gold labels with the drafting tick */
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.accent { color: var(--gold); }
.section--dark .accent, .hero .accent, .page-hero .accent, .cta-band .accent { color: var(--gold-light); }
.section-head h2 { max-width: 20ch; }
.section-head--wide h2 { max-width: none; }
.lead { color: #505B6E; }
.section--dark .lead { color: rgba(255,255,255,.74); }

/* Cards: calmer default with a soft shadow */
.card { box-shadow: var(--shadow-soft); }
.section--dark .card { box-shadow: none; }

/* Hero refinements */
.hero-media::after, .page-hero-media::after {
  background:
    linear-gradient(90deg, rgba(7,16,29,.95) 0%, rgba(7,16,29,.86) 38%, rgba(7,16,29,.45) 100%),
    linear-gradient(0deg, rgba(7,16,29,.8) 0%, rgba(7,16,29,0) 50%);
}
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.04; max-width: 14ch; }
.hero h1 .line { display: block; }
.hero .lead { max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.hero-rule, .page-hero .kicker::after { content: ""; }
.hero-media img, .page-hero-media img { animation: heroSettle 1.8s var(--ease) both; transform-origin: center; }
@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }
.page-hero h1 { line-height: 1.06; }
.page-hero h1 .line { display: block; }
.page-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; color: rgba(255,255,255,.78); font-size: .95rem; }
.meta-item { display: inline-flex; align-items: center; gap: 8px; }
.meta-item svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.page-hero .meta-item svg { color: var(--gold-light); }

/* Numbered row list (replaces icon-card grids) */
.num-list { border-top: 1px solid var(--line); counter-reset: none; }
.section--dark .num-list { border-color: var(--line-dark); }
.num-row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px; gap: 20px; align-items: start;
  padding: 26px 4px 26px 0; border-bottom: 1px solid var(--line); color: inherit;
  transition: padding var(--t), background var(--t);
}
.section--dark .num-row { border-color: var(--line-dark); }
.num-row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.num-row .num { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #9AA3B2; letter-spacing: .02em; padding-top: 3px; transition: color var(--t); }
.num-row h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.num-row p { color: var(--muted); font-size: .98rem; margin-top: 6px; }
.section--dark .num-row p { color: rgba(255,255,255,.66); }
.num-row .num-arrow { color: var(--gold); opacity: 0; transform: translateX(-8px); transition: opacity var(--t), transform var(--t); padding-top: 4px; }
.num-row .num-arrow svg { width: 22px; height: 22px; }
@media (hover: hover) {
  .num-row:hover::after { transform: scaleX(1); }
  .num-row:hover .num { color: var(--gold); }
  .num-row:hover .num-arrow { opacity: 1; transform: none; }
  a.num-row:hover { padding-left: 8px; }
}
a.num-row:focus-visible::after { transform: scaleX(1); }
a.num-row:focus-visible .num { color: var(--gold); }
a.num-row:focus-visible .num-arrow { opacity: 1; transform: none; }
.num-list--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 0; }
.num-list--2 > li:nth-child(-n+2) .num-row { border-top: 1px solid var(--line); }
.num-list--compact .num-row { padding: 18px 4px 18px 0; grid-template-columns: 48px minmax(0,1fr) 24px; }
.num-list--compact h3 { font-size: 1.05rem; }

/* Editorial split with sticky intro */
.editorial { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.editorial-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.editorial-intro .lead { margin-top: 18px; }
.editorial-figure { margin-top: 32px; overflow: hidden; box-shadow: var(--shadow-soft); }
.editorial-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .editorial-figure:hover img { transform: scale(1.03); } }

/* Horizontal timeline (process + years); vertical on mobile */
.tl { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 32px; padding-top: 44px; }
.tl::before, .tl::after { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); }
.tl::after { background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .15s; }
.tl.is-visible::after { transform: scaleX(1); }
.section--dark .tl::before { background: var(--line-dark); }
.tl-step { position: relative; }
.tl-dot { position: absolute; top: -38px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--gold); transition: background var(--t), transform var(--t); }
.section--tint .tl-dot { background: var(--off-white); }
.section--dark .tl-dot { background: var(--navy); }
.tl-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--gold); letter-spacing: .06em; }
.tl-step h3 { margin-top: 10px; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.tl-step p { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.tl--years .tl-num { font-size: clamp(2.6rem, 4.6vw, 3.8rem); letter-spacing: -.04em; color: var(--navy); line-height: 1; transition: color var(--t); }
.tl--years .tl-phase { display: block; margin-top: 12px; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.tl--years .tl-step p { margin-top: 10px; }
@media (hover: hover) {
  .tl-step:hover .tl-dot { background: var(--gold); transform: scale(1.15); }
  .tl--years .tl-step:hover .tl-num { color: var(--gold); }
}

/* Three pillars (Quality / Safety / Excellence, Vision / Mission / Values) */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.pillar-x { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.pillar-x::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 2px; background: var(--gold); transition: width .5s var(--ease); }
.pillar-x .p-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em; color: var(--light-gray); transition: color var(--t); }
.pillar-x h3 { margin-top: 18px; font-size: clamp(1.3rem, 2vw, 1.6rem); text-transform: uppercase; letter-spacing: .04em; }
.pillar-x p { margin-top: 12px; color: #4A5568; }
@media (hover: hover) { .pillar-x:hover::before { width: 100%; } .pillar-x:hover .p-num { color: var(--gold); } }
.inline-values { display: flex; flex-wrap: wrap; gap: 12px 0; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.inline-values li { font-family: var(--font-head); font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; }
.inline-values li + li::before { content: ""; width: 6px; height: 6px; background: var(--gold); margin: 0 18px; transform: rotate(45deg); }

/* Metadata rows (project facts, offices) */
.meta-list { border-top: 1px solid var(--line); margin: 0; }
.meta-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.meta-row dt { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.meta-row dd { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--navy); }

/* Featured project: large image with overlapping info panel */
.feature { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; }
.feature-media { position: relative; overflow: hidden; box-shadow: var(--shadow-soft); grid-column: 1 / 2; grid-row: 1; }
.feature-media img { width: 100%; aspect-ratio: 1685 / 934; object-fit: cover; transition: transform .9s var(--ease); }
@media (hover: hover) { .feature:hover .feature-media img { transform: scale(1.035); } }
.feature-panel { grid-column: 1 / 3; grid-row: 1; justify-self: end; width: min(460px, 44%); background: var(--navy); color: rgba(255,255,255,.8); padding: clamp(28px, 3.4vw, 44px); border-top: 3px solid var(--gold); position: relative; z-index: 2; box-shadow: 0 30px 60px -30px rgba(7,16,29,.55); }
.feature-panel h2 { color: var(--white); }
.feature-panel .meta-item { margin-top: 14px; color: rgba(255,255,255,.75); font-size: .92rem; align-items: flex-start; }
.feature-panel .meta-item svg { color: var(--gold-light); margin-top: 3px; }
.feature-panel p.f-desc { margin-top: 16px; font-size: .98rem; }
.feature-panel .kicker { color: var(--gold-light); }

/* On-site photo duo: primary + offset secondary, natural proportions */
.photo-duo { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 20px; align-items: start; }
.photo-duo figure { margin: 0; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(7,16,29,.45); background: var(--light-gray); }
.photo-duo img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.photo-duo figure:nth-child(2) { margin-top: 30%; }
.photo-duo::before { content: ""; position: absolute; right: -14px; top: -14px; width: 38%; height: 38%; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); pointer-events: none; }
@media (hover: hover) { .photo-duo figure:hover img { transform: scale(1.02); } }

/* Info bar (contact channels, social) */
.info-bar { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-item { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 30px; color: inherit; transition: background var(--t); }
.info-item + .info-item { border-left: 1px solid var(--line); }
.info-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.info-item small { font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 8px; align-items: center; }
.info-item small svg { width: 16px; height: 16px; }
.info-item b { font-family: var(--font-head); color: var(--navy); font-size: 1.08rem; word-break: break-word; }
.info-item span { color: var(--muted); font-size: .92rem; }
@media (hover: hover) { a.info-item:hover { background: var(--off-white); } a.info-item:hover::after { transform: scaleX(1); } }
a.info-item:focus-visible::after { transform: scaleX(1); }

/* Big statement CTA block */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.statement h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.statement-media { overflow: hidden; box-shadow: var(--shadow-soft); }
.statement-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .9s var(--ease); }
@media (hover: hover) { .statement-media:hover img { transform: scale(1.03); } }
.dot-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.dot-list li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.dot-list li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-bottom: 32px; }
.office { padding: 28px 28px 30px 0; }
.office + .office { padding-left: 28px; border-left: 1px solid var(--line); }
.office small { font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.office h3 { margin-top: 8px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.office p { color: var(--muted); margin-top: 6px; }
.office .text-link { margin-top: 16px; }

/* CTA band as visual conclusion */
.cta-band { border-top: 3px solid var(--gold); }
.cta-band h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.06; max-width: 16ch; }
.cta-band .btn-row { margin-top: 36px; }

/* Services page refinements */
.service-no { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.service-no small { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-left: 10px; vertical-align: middle; }
.cap-list { gap: 0 28px; border-top: 1px solid var(--line); }
.cap-list .card { box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; background: transparent; }
.cap-list .card::before { display: none; }
@media (hover: hover) { .cap-list .card:hover { transform: none; box-shadow: none; } }
.service-index a.card { box-shadow: none; }
.sol-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.sol-col { position: relative; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.sol-col::before { content: ""; position: absolute; left: 0; top: -1px; width: 40px; height: 2px; background: var(--gold-light); transition: width .5s var(--ease); }
@media (hover: hover) { .sol-col:hover::before { width: 100%; } }
.sol-col h3 { font-size: 1.15rem; }
.sol-col ul { display: grid; gap: 8px; margin-top: 14px; }
.sol-col li { display: flex; gap: 10px; font-size: .95rem; color: rgba(255,255,255,.72); }
.sol-col li::before { content: ""; width: 10px; height: 1.5px; background: var(--gold-light); margin-top: 12px; flex: none; }

/* Projects gallery refinements */
.drawing-card { box-shadow: none; }
.drawing-card .card-body { flex-direction: row; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.drawing-card .card-arrow { margin-left: auto; margin-top: 0; padding-top: 0; font-size: .85rem; color: var(--gold); }

/* Footer accent */
.site-footer { border-top: 3px solid var(--gold); }
.site-footer h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* Stagger reveal + image reveal */
.reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-img img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease), transform .8s var(--ease); }
.reveal-img.is-visible img { clip-path: inset(0 0 0 0); }
.no-js .reveal-img img { clip-path: none; }

@media (max-width: 1100px) {
  .num-list--2 { column-gap: 32px; }
  .sol-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-panel { width: min(420px, 50%); }
}
@media (max-width: 960px) {
  .editorial, .statement { grid-template-columns: 1fr; }
  .editorial-intro { position: static; }
  .tl { grid-template-columns: 1fr; gap: 28px; padding-top: 0; padding-left: 40px; }
  .tl::before, .tl::after { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tl::after { transform: scaleY(0); transform-origin: top; }
  .tl.is-visible::after { transform: scaleY(1); }
  .tl-dot { top: 4px; left: -40px; }
  .tl--years .tl-num { font-size: 2.6rem; }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .feature { grid-template-columns: 1fr; }
  .feature-panel { grid-column: 1; grid-row: 2; width: calc(100% - 32px); justify-self: center; margin-top: -48px; }
  .info-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-item:nth-child(3) { border-left: 0; }
  .info-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .photo-duo { max-width: 560px; }
}
@media (max-width: 640px) {
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero-content { align-items: center; padding: clamp(40px, 7svh, 64px) 0; }
  .hero h1 { font-size: clamp(2.05rem, 9.4vw, 2.6rem); max-width: 12ch; }
  .hero .lead { font-size: 1.02rem; margin-top: 18px; }
  .hero .btn-row .btn--ghost { display: none; }
  .title-block { display: none; }
  .hero-media img { object-position: 62% center; }
  .num-list--2 { grid-template-columns: 1fr; }
  .num-list--2 > li:nth-child(2) .num-row { border-top: 0; }
  .num-row { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; padding: 20px 0; }
  .meta-row { grid-template-columns: 1fr; gap: 4px; }
  .photo-duo { gap: 12px; }
  .photo-duo::before { right: -8px; top: -8px; }
  .info-bar { grid-template-columns: 1fr; }
  .info-item + .info-item { border-left: 0; border-top: 1px solid var(--line); }
  .info-item { padding: 20px 4px; }
  .offices { grid-template-columns: 1fr; }
  .office + .office { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sol-cols { grid-template-columns: 1fr; }
  .inline-values li + li::before { margin: 0 12px; }
  .cta-band h2 { font-size: clamp(1.9rem, 8.6vw, 2.4rem); }
  .page-hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img, .page-hero-media img { animation: none; }
  .reveal-img img { clip-path: none; }
  .tl::after { transform: none !important; }
}
.section--dark .num-list--2 > li:nth-child(-n+2) .num-row { border-top-color: var(--line-dark); }
.section--dark .num-row h3 { color: var(--white); }
@media (max-width: 960px) { .info-item:nth-child(odd) { border-left: 0; } .info-item:nth-child(even) { border-left: 1px solid var(--line); } }
@media (max-width: 640px) { .info-item:nth-child(even) { border-left: 0; } .section--dark .num-list--2 > li:nth-child(2) .num-row { border-top: 0; } }

/* Our Team: professional-team group heading */
.team-group-head { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--light-gray); }
.team-group-title { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 22ch; }
.team-group-head + .profile { margin-top: clamp(40px, 5vw, 64px); }
.meta-list--text dd { font-family: var(--font-body); font-weight: 400; color: #3A4458; font-size: .97rem; line-height: 1.6; }

/* Home: six-member team, grouped (Leadership / Professional team) */
.home-team-group + .home-team-group { margin-top: clamp(40px, 5vw, 64px); }
.home-team-label { margin-bottom: 20px; }
.home-team-grid .card-body { gap: 6px; padding: 22px 24px 24px; }
.home-team-grid--pro { max-width: 860px; }
.home-team-grid--pro .card-body { padding: 18px 20px 20px; }
.home-team-grid--pro h3 { font-size: 1.08rem; }
@media (max-width: 960px) {
  .home-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .home-team-grid--pro { max-width: none; }
  .home-team-grid .card-body { padding: 16px 16px 18px; }
  .home-team-grid h3 { font-size: 1.02rem; }
}
@media (max-width: 640px) {
  .home-team-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-team-grid .leader-card { flex-direction: row; align-items: center; }
  .home-team-grid .card-media { width: 76px; flex: none; aspect-ratio: 4 / 5; }
  .home-team-grid .card-body { padding: 12px 16px; gap: 2px; }
  .home-team-grid .role { font-size: .8rem; }
  .home-team-grid .card-arrow { display: none; }
}

/* ==========================================================================
   Project carousel (Home hero + Home projects section), portfolio, galleries
   ========================================================================== */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-showcase { min-width: 0; width: 100%; max-width: 560px; justify-self: end; }

.pcar { position: relative; --pcar-w: 100%; --pcar-gap: 20px; }
.pcar-viewport { overflow: hidden; touch-action: pan-y; }
.no-js .pcar-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.pcar-track { display: flex; gap: var(--pcar-gap); margin: 0; padding: 0; list-style: none; will-change: transform; }
.pcar-slide { flex: 0 0 var(--pcar-w); min-width: 0; scroll-snap-align: start; }
.pcar-card { height: 100%; display: flex; flex-direction: column; }
.pcar-media { display: block; overflow: hidden; aspect-ratio: 1685 / 980; background: var(--dark); }
.pcar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcar-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no no" "title btn" "loc btn"; column-gap: 20px; row-gap: 4px; align-items: center; padding: 18px 22px 20px; }
.pcar-no { grid-area: no; font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .14em; color: var(--gold); }
.pcar-title { grid-area: title; margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; line-height: 1.2; letter-spacing: -.01em; }
.pcar-loc { grid-area: loc; margin: 0; display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.pcar-loc svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.pcar-btn { grid-area: btn; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; white-space: nowrap; padding: 11px 16px; border: 1.5px solid var(--gold); color: var(--gold); transition: background var(--t), color var(--t); }
.pcar-btn svg { width: 18px; height: 18px; transition: transform var(--t); }
.pcar-btn:hover, .pcar-btn:focus-visible { background: var(--gold); color: var(--dark); }
.pcar-btn:hover svg, .pcar-btn:focus-visible svg { transform: translateX(3px); }
@media (hover: hover) { .pcar-card:hover .pcar-media img { transform: scale(1.03); } }
.pcar-controls { display: flex; gap: 8px; margin-top: 16px; }
.pcar-ctrl { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--navy); background: var(--white); transition: background var(--t), color var(--t), border-color var(--t); }
.pcar-ctrl:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pcar-toggle .ico-play { display: none; }
.pcar-toggle[aria-pressed="true"] .ico-play { display: block; }
.pcar-toggle[aria-pressed="true"] .ico-pause { display: none; }
.no-js .pcar-controls { display: none; }

/* Hero variant: dark caption, compact */
.pcar--hero .pcar-card { background: rgba(7,16,29,.86); border: 1px solid var(--line-dark); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
@supports (backdrop-filter: blur(6px)) { .pcar--hero .pcar-card { background: rgba(7,16,29,.72); backdrop-filter: blur(6px); } }
.pcar--hero .pcar-cap { color: rgba(255,255,255,.75); }
.pcar--hero .pcar-title { color: var(--white); }
.pcar--hero .pcar-no, .pcar--hero .pcar-loc svg { color: var(--gold-light); }
.pcar--hero .pcar-btn { color: var(--gold-light); border-color: var(--gold-light); }
.pcar--hero .pcar-btn:hover, .pcar--hero .pcar-btn:focus-visible { background: var(--gold-light); color: var(--dark); }
.pcar--hero .pcar-controls { justify-content: flex-end; }
.pcar--hero .pcar-ctrl { background: transparent; color: var(--white); border-color: var(--line-dark); }
.pcar--hero .pcar-ctrl:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }

/* Section variant: larger light cards */
.home-projects { overflow: hidden; }
.projects-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.projects-head .section-head { margin-bottom: 0; }
.pcar--section { --pcar-w: min(640px, 60%); --pcar-gap: 28px; }
.pcar--section .pcar-viewport { overflow: visible; clip-path: inset(-40px -100vw -40px -100vw); }
.pcar--section .pcar-card { background: var(--white); border: 1px solid var(--light-gray); box-shadow: var(--shadow-soft); transition: box-shadow var(--t), transform var(--t); }
.pcar--section .pcar-cap { padding: 22px 26px 24px; }
.pcar--section .pcar-title { font-size: clamp(1.2rem, 1.8vw, 1.45rem); color: var(--navy); }
.pcar--section .pcar-loc { color: var(--muted); }
@media (hover: hover) { .pcar--section .pcar-card:hover { box-shadow: 0 22px 44px -22px rgba(11,22,40,.32); } }

/* Projects index + related projects */
.portfolio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.portfolio--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
.portfolio > li { display: flex; }
.portfolio-item { width: 100%; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--light-gray); box-shadow: var(--shadow-soft); color: inherit; transition: transform var(--t), box-shadow var(--t); position: relative; }
.portfolio-item::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); z-index: 2; }
.portfolio-media { overflow: hidden; aspect-ratio: 1685 / 980; background: var(--dark); }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.portfolio-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.portfolio-no { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; color: var(--gold); }
.portfolio-body h3 { font-size: 1.2rem; }
.portfolio-loc { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; margin: 0; }
.portfolio-loc svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.portfolio-body .card-arrow { margin-top: auto; padding-top: 10px; }
@media (hover: hover) {
  .portfolio-item:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -18px rgba(11,22,40,.28); }
  .portfolio-item:hover::before { transform: scaleX(1); }
  .portfolio-item:hover .portfolio-media img { transform: scale(1.05); }
  .portfolio-item:hover .card-arrow svg { transform: translateX(4px); }
}
.portfolio-item:focus-visible::before { transform: scaleX(1); }

/* Galleries on new project pages */
.viz-set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.viz-set .viz figcaption { margin-top: 10px; }
.drawing-group + .drawing-group { margin-top: clamp(40px, 5vw, 64px); }
.drawing-group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.drawing-group-title span { font-family: var(--font-body); font-weight: 500; font-size: .88rem; color: var(--muted); }
.drawing-grid--portrait { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.drawing-grid--portrait .drawing-media { aspect-ratio: 2068 / 2924; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-showcase { justify-self: start; max-width: 620px; }
  .pcar--hero .pcar-controls { justify-content: flex-start; }
}
@media (max-width: 1100px) {
  .pcar--section { --pcar-w: 62%; }
  .portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawing-grid--portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .viz-set { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-showcase { max-width: none; }
  .pcar { --pcar-gap: 14px; }
  .pcar--section { --pcar-w: 86%; }
  .pcar-cap { grid-template-columns: 1fr; grid-template-areas: "no" "title" "loc" "btn"; padding: 16px 18px 18px; }
  .pcar-btn { justify-self: start; margin-top: 10px; }
  .pcar--section .pcar-cap { padding: 18px 18px 20px; }
  .portfolio, .portfolio--2 { grid-template-columns: 1fr; }
  .drawing-grid--portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .drawing-grid--portrait .card-body { padding: 14px 14px 16px; }
  .drawing-grid--portrait .card-body h3 { font-size: .95rem; }
  .drawing-grid--portrait .card-arrow { display: none; }
  .projects-head .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pcar-media img, .portfolio-media img { transition: none; }
}
/* Carousel captions stack when the card itself is narrow */
.pcar-card { container-type: inline-size; }
@container (max-width: 470px) {
  .pcar-cap { grid-template-columns: 1fr; grid-template-areas: "no" "title" "loc" "btn"; }
  .pcar-btn { justify-self: start; margin-top: 10px; }
}

/* ==========================================================================
   v9 LIGHT REFINEMENT LAYER
   Bright heroes, header that blends into the hero, button + card system,
   Home services carousel. Overrides earlier rules on purpose.
   ========================================================================== */
:root {
  --r-btn: 10px;
  --r-card: 10px;
  --gold-ink: #9C6B14;      /* gold for small text on light backgrounds (AA) */
  --gold-display: #B9811F;  /* gold for large headings on light backgrounds */
  --warm: #FAF8F4;          /* warm off-white */
  --hero-wash: 250, 251, 252;
}

/* Gold text that stays readable on white */
.kicker { color: var(--gold-ink); }
.accent { color: var(--gold-display); }
.section--dark .kicker, .feature-panel .kicker { color: var(--gold-light); }
.section--dark .accent, .cta-band .accent, .feature-panel .accent { color: var(--gold-light); }

/* ---------- Header: transparent over the hero, solid once scrolled ---------- */
.site-header,
.site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header { background: rgba(255,255,255,0); border-bottom: 1px solid transparent; transition: background var(--t), box-shadow var(--t), border-color var(--t); }
.site-header.is-scrolled { background: rgba(255,255,255,.97); border-color: var(--light-gray); box-shadow: 0 6px 24px -14px rgba(11,22,40,.22); }
.nav-list a { color: var(--navy); }
.nav-list a:hover { color: var(--gold-ink); }
.nav-list a[aria-current="page"] { color: var(--navy); }
body.nav-open .site-header { background: var(--white); border-color: var(--light-gray); }
/* The first hero slides up underneath the header so they read as one surface */
main > .hero:first-child,
main > .page-hero:first-child { margin-top: calc(-1 * var(--header-h)); }

/* ---------- Shared light hero surface ---------- */
.hero, .page-hero { background: var(--warm); color: var(--text); }
.blueprint::before {
  background-image:
    linear-gradient(rgba(11,22,40,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,22,40,.045) 1px, transparent 1px);
}
.hero .kicker, .page-hero .kicker { color: var(--gold-ink); }
.hero .accent, .page-hero .accent { color: var(--gold-display); }
.hero h1, .page-hero h1 { color: var(--navy); }
.hero .lead, .page-hero .lead { color: #46516A; }
.hero-media img, .page-hero-media img { animation-duration: 1.4s; }
@keyframes heroSettle { from { transform: scale(1.03); } to { transform: scale(1); } }

/* ---------- Home hero ---------- */
.hero-media::after {
  background:
    linear-gradient(180deg, rgba(var(--hero-wash), .8) 0, rgba(var(--hero-wash), 0) 170px),
    linear-gradient(90deg, rgba(var(--hero-wash), .9) 0%, rgba(var(--hero-wash), .72) 34%, rgba(var(--hero-wash), .12) 66%, rgba(var(--hero-wash), 0) 100%),
    linear-gradient(0deg, rgba(var(--hero-wash), .7) 0%, rgba(var(--hero-wash), 0) 32%);
}
.hero-media img { object-position: 70% center; }
.hero-content { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); }
.hero .btn--ghost { color: var(--navy); border-color: rgba(11,22,40,.28); background: rgba(255,255,255,.55); }
.title-block { background: rgba(255,255,255,.86); border-top: 1px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
@supports (backdrop-filter: blur(6px)) { .title-block { background: rgba(255,255,255,.86); backdrop-filter: none; } }
.title-block li { border-right-color: var(--line); }
.title-block small { color: var(--muted); }
.title-block b { color: var(--navy); }
.title-block .tb-ref { color: var(--gold-ink); }

/* Home hero project carousel: light caption cards */
.pcar--hero .pcar-card { background: var(--white); border: 1px solid var(--light-gray); box-shadow: 0 26px 50px -30px rgba(11,22,40,.38); }
@supports (backdrop-filter: blur(6px)) { .pcar--hero .pcar-card { background: var(--white); backdrop-filter: none; } }
.pcar--hero .pcar-cap { color: var(--muted); }
.pcar--hero .pcar-title { color: var(--navy); }
.pcar--hero .pcar-no { color: var(--gold-ink); }
.pcar--hero .pcar-loc svg { color: var(--gold); }
.pcar--hero .pcar-btn { color: var(--navy); border-color: var(--gold); }
.pcar--hero .pcar-btn:hover, .pcar--hero .pcar-btn:focus-visible { background: var(--gold); color: var(--dark); }
.pcar--hero .pcar-ctrl { background: rgba(255,255,255,.8); color: var(--navy); border-color: var(--line); }
.pcar--hero .pcar-ctrl:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Inner page heroes ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 6.5vw, 96px)) 0 clamp(56px, 6.5vw, 96px); }
.page-hero h1 { font-size: clamp(2rem, 3.9vw, 3.3rem); }
.breadcrumb { color: var(--muted); }
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--gold-ink); }
.breadcrumb li + li::before { color: #A9B1BF; }
.page-hero .hero-meta { color: #46516A; }
.page-hero .meta-item svg { color: var(--gold); }
.page-hero .btn--ghost { color: var(--navy); border-color: rgba(11,22,40,.28); }

/* Variant A: full-width photo with a soft light wash on the text side */
.page-hero--wash { min-height: clamp(540px, 46vw, 700px); display: flex; align-items: center; }
.page-hero--wash .container { width: 100%; }
.page-hero--wash .container > * { max-width: 560px; }
.page-hero--wash h1 { max-width: 15ch; }
.page-hero--wash .page-hero-media img { object-position: right center; }
.page-hero--wash .page-hero-media::after {
  background:
    linear-gradient(180deg, rgba(var(--hero-wash), .78) 0, rgba(var(--hero-wash), 0) 170px),
    linear-gradient(90deg, rgba(var(--hero-wash), .94) 0%, rgba(var(--hero-wash), .84) 30%, rgba(var(--hero-wash), .35) 50%, rgba(var(--hero-wash), 0) 64%);
}
.page-hero--about .page-hero-media img { object-position: 85% 40%; }
.page-hero--team .page-hero-media img { object-position: 100% 30%; }
.page-hero--contact .page-hero-media img { object-position: 100% center; }
.page-hero--services .page-hero-media img { object-position: 80% center; }

/* Variant B: editorial split, text left, framed visualization right (no overlay) */
.page-hero--split { background: var(--warm); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-copy { min-width: 0; }
.page-hero--split h1 { max-width: 16ch; }
.page-hero--split .lead { max-width: 48ch; }
.page-hero-figure { position: relative; margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--white); border: 1px solid var(--light-gray); box-shadow: 0 30px 60px -36px rgba(11,22,40,.4); }
.page-hero-figure img { width: 100%; height: auto; }
.page-hero-figure figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.page-hero--split .page-hero-figure::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 3px; background: var(--gold); z-index: 1; }
.page-hero-figure img { animation: heroSettle 1.4s var(--ease) both; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--r-btn); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(4px); }
.btn:active { transform: translateY(0); box-shadow: none; transition-duration: .08s; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.section--dark .btn:focus-visible, .cta-band .btn:focus-visible, .feature-panel .btn:focus-visible { outline-color: var(--gold-light); }
.btn--gold { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn--gold:hover { background: #E2A63B; border-color: #E2A63B; box-shadow: 0 12px 24px -12px rgba(216,154,43,.7); }
.btn--gold:active { background: #C98D22; }
.btn--navy { background: var(--navy); border-color: var(--navy); }
.btn--navy:hover { background: #14284A; border-color: #14284A; box-shadow: 0 12px 24px -14px rgba(11,22,40,.6); }
.btn--outline:hover { box-shadow: 0 12px 24px -16px rgba(11,22,40,.5); }
.hero .btn--ghost:hover, .page-hero .btn--ghost:hover { background: var(--white); border-color: var(--navy); color: var(--navy); box-shadow: 0 12px 24px -16px rgba(11,22,40,.35); }
.btn--wa:hover { box-shadow: 0 12px 24px -14px rgba(31,168,85,.7); }
.nav .btn { border-radius: var(--r-btn); }
.text-link svg { transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Cards and framed media: one radius everywhere ---------- */
a.card, .profile-photo .card, .service-media, .qr-card, article.card, .leader-card,
.pcar-card, .portfolio-item, .drawing-card, .viz-frame,
.editorial-figure, .statement-media, .feature-media, .photo-duo figure, .feature-panel { border-radius: var(--r-card); overflow: hidden; }
.figure-stack .main { border-radius: var(--r-card) var(--r-card) 0 0; }
.pcar-btn { border-radius: 8px; }
.pcar-ctrl, .lightbox-btn, .nav-toggle { border-radius: var(--r-btn); }
.pcar-ctrl:focus-visible, .lightbox-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
a.card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.portfolio-item:hover { border-color: var(--line); }
@media (hover: hover) {
  .portfolio-item:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(11,22,40,.3); }
  .portfolio-item:hover .portfolio-media img { transform: scale(1.04); }
}
/* Non-link cards stay still: no lift, no gold sweep */
.card:not(a)::before { display: none; }

/* ---------- Home services carousel (manual, no autoplay) ---------- */
.home-services .projects-head { margin-bottom: clamp(24px, 3vw, 36px); }
.scar { position: relative; }
.scar-viewport {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: -20px -12px; padding: 20px 12px; scroll-padding: 0 12px; border-radius: var(--r-card);
}
.scar-viewport::-webkit-scrollbar { display: none; }
.scar-viewport:focus-visible { outline: 3px solid var(--gold); outline-offset: -4px; }
.scar-track { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.scar-slide { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; display: flex; scroll-snap-align: start; }
.scar-slide > .card { width: 100%; }
.scar-slide .card-media { aspect-ratio: 16 / 10; }
.scar-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.scar-arrows { display: flex; gap: 8px; flex: none; }
.scar-btn[disabled] { opacity: .38; cursor: default; pointer-events: none; }
.scar-dots { display: flex; flex-wrap: wrap; gap: 2px; }
.scar-dot { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.scar-dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #C3CAD6; transition: width .3s var(--ease), background .3s var(--ease); }
.scar-dot:hover::before { background: var(--navy); }
.scar-dot[aria-current="true"]::before { width: 22px; background: var(--gold); }
.scar-dot:focus-visible { outline: 3px solid var(--gold); outline-offset: 0; }
.no-js .scar-nav { display: none; }
@media (prefers-reduced-motion: reduce) { .scar-viewport { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .scar-slide { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 960px) {
  .site-header { background: rgba(255,255,255,.0); }
  .site-header.is-scrolled { background: var(--white); }
  .nav-list a[aria-current="page"] { color: var(--gold-ink); }
}
@media (max-width: 1100px) {
  /* Wash heroes stack: copy on the light surface, photo as a full-width band below */
  .page-hero--wash { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  .page-hero--wash .container { order: 1; }
  .page-hero--wash .container > * { max-width: 640px; }
  .page-hero--wash .page-hero-media { position: relative; inset: auto; order: 2; aspect-ratio: 21 / 9; margin-top: clamp(32px, 6vw, 48px); }
  .page-hero--wash .page-hero-media::after { background: linear-gradient(180deg, var(--warm) 0%, rgba(250,248,244,0) 22%); }
  .page-hero--about .page-hero-media img { object-position: 72% 45%; }
  .page-hero--team .page-hero-media img { object-position: 78% 40%; }
  .page-hero--contact .page-hero-media img { object-position: 62% center; }
  .page-hero--services .page-hero-media img { object-position: 62% center; }
  .page-hero--wash h1 { max-width: 20ch; }
}
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-hero--split h1 { max-width: 20ch; }
}
@media (max-width: 640px) {
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(var(--hero-wash), .9) 0%, rgba(var(--hero-wash), .8) 55%, rgba(var(--hero-wash), .55) 100%);
  }
  .hero-media img { object-position: 62% center; }
  .page-hero { padding-top: calc(var(--header-h) + 36px); }
  .page-hero--wash .page-hero-media { aspect-ratio: 4 / 3; }
  .scar-track { gap: 14px; }
  .scar-slide { flex-basis: 84%; }
  .scar-viewport { margin: -16px -8px; padding: 16px 8px; scroll-padding: 0 8px; }
  .scar-nav { margin-top: 20px; }
  .home-services .projects-head .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .portfolio-item:hover { transform: none !important; }
  .page-hero-figure img { animation: none; }
}

/* Wash heroes on desktop: compact copy column so faces and subjects stay clear */
@media (min-width: 1101px) {
  .page-hero--wash { min-height: clamp(520px, 40vw, 660px); padding-top: calc(var(--header-h) + 44px); padding-bottom: 56px; }
  .page-hero--wash .container > * { max-width: 500px; }
  .page-hero--wash h1 { font-size: clamp(2.2rem, 3.3vw, 3rem); max-width: 14ch; }
  .page-hero--wash .lead { font-size: 1.06rem; max-width: 42ch; }
  .page-hero--about .page-hero-media::after,
  .page-hero--team .page-hero-media::after {
    background:
      linear-gradient(180deg, rgba(var(--hero-wash), .78) 0, rgba(var(--hero-wash), 0) 170px),
      linear-gradient(90deg, rgba(var(--hero-wash), .96) 0%, rgba(var(--hero-wash), .9) 32%, rgba(var(--hero-wash), .55) 44%, rgba(var(--hero-wash), 0) 58%);
  }
}
@media (max-width: 640px) {
  .scar-dots { gap: 0; }
  .scar-dot { width: 24px; height: 24px; }
}

/* Small gold labels on light backgrounds use the deeper gold for legibility */
.pcar-no, .portfolio-no, .drawing-no, .tl-num, .tl--years .tl-phase, .meta-row dt,
.info-item small, .office small, .role, .drawing-card .card-arrow { color: var(--gold-ink); }
.section--dark .tl-num, .section--dark .tl--years .tl-phase, .section--dark .meta-row dt,
.section--dark .info-item small, .section--dark .role, .section--dark .drawing-no { color: var(--gold-light); }
.tl--years .tl-num { color: var(--navy); }
.pcar--section .pcar-btn { color: var(--navy); border-color: var(--gold); }
.pcar--section .pcar-btn:hover, .pcar--section .pcar-btn:focus-visible { background: var(--gold); color: var(--dark); }
.fact-grid .card, .project-facts .card, .contact-cards .card, .social-grid .card, .promise-values .card, .strip .card { border-radius: var(--r-card); }

/* ==========================================================================
   v10 PROJECTS PORTFOLIO: Projects hero, portfolio carousel, project sections
   ========================================================================== */
/* Projects hero: general construction background, text on the light left side */
.page-hero--projects .page-hero-media img { object-position: 100% center; }
@media (min-width: 1101px) {
  .page-hero--projects h1 { max-width: 15ch; }
  .page-hero--projects .page-hero-media::after {
    background:
      linear-gradient(180deg, rgba(var(--hero-wash), .7) 0, rgba(var(--hero-wash), 0) 160px),
      linear-gradient(90deg, rgba(var(--hero-wash), .92) 0%, rgba(var(--hero-wash), .78) 30%, rgba(var(--hero-wash), .2) 52%, rgba(var(--hero-wash), 0) 64%);
  }
}
@media (max-width: 1100px) { .page-hero--projects .page-hero-media img { object-position: 78% center; } }
#explore-projects, #all-projects, .proj-feature, #drawings, #overview { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Compact button size for cards */
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .92rem; gap: 8px; }
.btn--sm svg { width: 18px; height: 18px; }

/* Portfolio carousel (Projects page): larger cards with description and two actions */
.pcar--portfolio { --pcar-w: min(560px, 48%); --pcar-gap: 28px; }
.pcar--portfolio .pcar-viewport { overflow: visible; clip-path: inset(-40px -100vw -40px -100vw); }
.pcar--portfolio .pcar-card { background: var(--white); border: 1px solid var(--light-gray); box-shadow: var(--shadow-soft); transition: box-shadow var(--t), border-color var(--t); }
.pcar--portfolio .pcar-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 24px 24px; flex: 1; }
.pcar--portfolio .pcar-title { font-size: clamp(1.2rem, 1.8vw, 1.4rem); color: var(--navy); margin-top: 2px; }
.pcar--portfolio .pcar-loc { color: var(--muted); }
.pcar-desc { margin: 6px 0 0; color: #4A5568; font-size: .95rem; line-height: 1.6; }
.pcar-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
@media (hover: hover) { .pcar--portfolio .pcar-card:hover { box-shadow: 0 22px 44px -24px rgba(11,22,40,.32); border-color: var(--line); } }


/* One editorial section per project, alternating sides */
.proj-features { display: grid; gap: clamp(56px, 7vw, 96px); }
.proj-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.proj-feature--flip .proj-feature-media { order: 2; }
.proj-feature-media { position: relative; display: block; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--light-gray); box-shadow: var(--shadow-soft); aspect-ratio: 16 / 10; background: var(--light-gray); }
.proj-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }

@media (hover: hover) { .proj-feature-media:hover img { transform: scale(1.03); } }
.proj-tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.proj-no { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.proj-feature-body h3 { margin-top: 10px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.02em; }
.proj-loc { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; color: var(--muted); font-size: .95rem; }
.proj-loc svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 3px; }
.proj-desc { margin-top: 14px; color: #3A4458; }
.meta-list--compact { margin-top: 22px; }
.meta-list--compact .meta-row { grid-template-columns: 110px minmax(0, 1fr); padding: 12px 0; }
.meta-list--compact dd { font-size: .95rem; font-weight: 600; }
.proj-feature-body .btn-row { margin-top: 26px; }

/* Sarsala page: near-square render framed at a steady crop; 3-sheet drawing grid */
.page-hero-figure--crop img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 35%; }
.viz--contained { max-width: 820px; margin: 0 auto; }
.drawing-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .pcar--portfolio { --pcar-w: 62%; }
}
@media (max-width: 900px) {
  .proj-feature { grid-template-columns: 1fr; gap: 24px; }
  .proj-feature--flip .proj-feature-media { order: 0; }
}
@media (max-width: 640px) {
  .pcar--portfolio { --pcar-w: 86%; }
  .pcar--portfolio .pcar-cap { padding: 18px 18px 20px; }
  .pcar-actions .btn { flex: 1 1 auto; }
  .proj-feature-body .btn-row .btn { flex: 1 1 100%; }
  .meta-list--compact .meta-row { grid-template-columns: 1fr; gap: 2px; }
  .drawing-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 380px) { .drawing-grid--3 { grid-template-columns: 1fr; } }

/* Sarsala Residential Building: near-square render shown whole (no cropping) inside the wide card frames.
   The side space is filled with a soft, blurred copy of the same image. */
.media-fit { position: relative; isolation: isolate; background: #1B2438; }
.media-fit::before {
  content: ""; position: absolute; inset: -30px; z-index: -1;
  background: url("../images/projects/sarsala/sarsala-residential-front-480.webp") center / cover no-repeat;
  filter: blur(24px) saturate(1.05) brightness(.82);
}
.media-fit img { object-fit: contain; object-position: center; }

/* Home: Professional team row holds four members (4 across on desktop, 2 x 2 on tablets, list on phones) */
.home-team-grid--pro.grid-4 { max-width: none; }
@media (max-width: 1100px) { .home-team-grid--pro.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) { .home-team-grid--pro.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; } }
@media (max-width: 640px) { .home-team-grid--pro.grid-4 { grid-template-columns: 1fr; max-width: none; } }
