/*!
 * Nawaloka Construction website
 * Developed by Malinga Rajapaksha | RAJAPAKSHA IT Solutions & Engineering
 * https://rajapakshaitsolutions.com | info@rajapakshaitsolutions.com
 * Copyright (c) 2026 Nawaloka Construction Company (Pvt) Ltd. All rights reserved.
 */
/* =========================================================
   Nawaloka Construction — design system
   One family (Archivo), width axis carries hierarchy:
   expanded for display, normal for reading.
   ========================================================= */

:root {
  --ink: #1b1915;
  --ink-2: #27231c;
  --ink-3: #3b3428;
  --paper: #fffdf9;
  --concrete: #f7f1e5;
  --concrete-2: #ece3d1;
  --white: #ffffff;
  --gold: #e4a102;
  --gold-deep: #a87300;
  --gold-soft: #fcf2d8;
  --steel: #6c6458;
  --steel-2: #a0968a;
  --rule: #e8e0d1;
  --rule-dark: rgba(255, 255, 255, .14);
  --ok: #2f7d4f;
  --bronze: #8a5e00;
  --on-dark-1: #f1ebe1;
  --on-dark-2: #cbc1b2;
  --on-dark-3: #9f9586;
  --radius-card: 16px;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + .7vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 4.1rem);
  --step-5: clamp(2.8rem, 2rem + 4.2vw, 6rem);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius-s: 0px;
  --radius-m: 2px;
  --radius-l: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }

.display, h1, h2 { font-stretch: 125%; font-variation-settings: "wdth" 125; }
h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -.025em; line-height: .98; }
h2 { font-size: var(--step-4); font-weight: 780; letter-spacing: -.02em; }
h3 { font-size: var(--step-2); font-weight: 700; font-variation-settings: "wdth" 112; }
h4 { font-size: var(--step-1); font-weight: 680; font-variation-settings: "wdth" 105; line-height: 1.2; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--steel); max-width: 60ch; }
.small { font-size: var(--step--1); }
.muted { color: var(--steel); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .lede, .section--dark .muted { color: #cbc1b2; }
.section--concrete { background: var(--concrete); }

/* Section head: title left, supporting text right */
.head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.head .lede { margin: 0; }
.head__kicker { display: flex; align-items: center; gap: 10px; font-size: var(--step--1); font-weight: 600; color: var(--steel); margin-bottom: 18px; }
.head__kicker::before { content: ""; width: 22px; height: 3px; background: var(--gold); }
.section--dark .head__kicker { color: #cbc1b2; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 0; border: 0;
  background: var(--bg); color: var(--fg); font-weight: 650; font-size: .98rem;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --bg: #f2b21a; transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(228, 161, 2, .8); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ink { --bg: var(--ink); --fg: var(--white); }
.btn--ink:hover { --bg: var(--ink-3); box-shadow: 0 8px 22px -12px rgba(27, 25, 21, .8); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { --bg: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--light:hover { --bg: var(--concrete); box-shadow: none; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); color: var(--white); transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .35s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(18, 15, 10, .55), transparent); pointer-events: none; transition: opacity .3s; }
.site-header.is-solid { background: rgba(250, 250, 248, .94); color: var(--ink); box-shadow: 0 1px 0 var(--rule); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header--light { color: var(--ink); }
.site-header--light::before { display: none; }
.site-header .wrap { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 52px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.06rem; font-variation-settings: "wdth" 120; letter-spacing: -.01em; }
.brand__sub { font-size: .7rem; font-weight: 500; opacity: .75; margin-top: 4px; letter-spacing: .01em; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 10px 14px; font-weight: 560; font-size: .95rem; text-decoration: none; border-radius: 0; transition: background-color .2s; position: relative; }
.nav__link:hover { background: rgba(127, 127, 127, .14); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); }
.nav__item--group { position: relative; }
.nav__menu { position: absolute; top: calc(100% + 8px); left: -8px; width: 330px; background: var(--white); color: var(--ink); border-radius: var(--radius-m); box-shadow: 0 24px 60px -20px rgba(27, 25, 21, .45), 0 0 0 1px rgba(27, 25, 21, .06); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.nav__item--group:hover .nav__menu, .nav__item--group:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-m); text-decoration: none; }
.nav__menu a:hover { background: var(--concrete); }
.nav__menu img { width: 44px; height: 44px; object-fit: contain; border-radius: var(--radius-m); background: var(--ink); padding: 6px; }
.nav__menu strong { display: block; font-size: .95rem; }
.nav__menu span { display: block; font-size: .8rem; color: var(--steel); line-height: 1.35; }
.header-cta { flex: none; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 0; border: 0; background: rgba(127, 127, 127, .16); align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: .25s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.nav-open .menu-btn span { background: transparent; }
.nav-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1279px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .nav { position: fixed; inset: 0; top: 0; background: var(--ink); color: var(--white); padding: calc(var(--header-h) + 24px) var(--gutter) 40px; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; margin: 0; z-index: -1; }
  .nav-open .nav { transform: none; }
  .nav-open .site-header { color: var(--white); background: transparent; box-shadow: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { font-size: 1.6rem; font-weight: 700; font-variation-settings: "wdth" 120; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--rule-dark); }
  .nav__link:hover { background: none; color: var(--gold); }
  .nav__link[aria-current="page"] { color: var(--gold); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; width: auto; background: transparent; color: var(--white); box-shadow: none; padding: 6px 0 12px; }
  .nav__menu a:hover { background: rgba(255, 255, 255, .06); }
  .nav__menu span { color: #cbc1b2; }
  .nav__mobile-cta { display: flex !important; margin-top: 28px; }
}
.nav__mobile-cta { display: none !important; }
body.nav-open { overflow: hidden; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 100svh; min-height: 640px; height: 100svh; max-height: 1000px; color: var(--white); overflow: hidden; background: var(--ink); isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(21, 18, 13, .82) 0%, rgba(21, 18, 13, .5) 45%, rgba(21, 18, 13, .05) 75%),
  linear-gradient(0deg, rgba(21, 18, 13, .85) 0%, rgba(21, 18, 13, 0) 45%); }
.hero .wrap { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(28px, 5vh, 56px); padding-top: calc(var(--header-h) + 20px); }
.hero__since { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; margin-bottom: 26px; color: #f1ebe1; }
.hero__since svg { width: 34px; height: auto; color: var(--gold); }
.hero h1 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5.6rem); line-height: .96; max-width: 18ch; margin-bottom: 26px; }
.hero h1 .line { display: block; }
.hero h1 .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 560px) { .hero h1 { font-variation-settings: "wdth" 110; font-size: clamp(2.2rem, 1rem + 7vw, 3rem); } }
.hero__intro { max-width: 46ch; font-size: var(--step-1); color: #e6dfd2; line-height: 1.5; margin-bottom: 32px; animation: fadein 1s .4s both; }
.hero .btn-row { animation: fadein 1s .5s both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.hero__bottom { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero__caption { width: min(380px, 100%); background: rgba(21, 18, 13, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-m); padding: 18px 20px 16px; animation: fadein 1s .7s both; }
.hero__caption-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .78rem; color: #d8cfc1; margin-bottom: 8px; }
.hero__caption h2 { font-size: 1.12rem; font-variation-settings: "wdth" 110; letter-spacing: 0; line-height: 1.25; margin-bottom: 6px; }
.hero__caption p { font-size: .86rem; color: #d8cfc1; margin: 0; }
.hero__caption-value { color: var(--gold); font-weight: 700; }
.hero__ctrls { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.hero__ctrls button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; display: grid; place-items: center; transition: background-color .2s; }
.hero__ctrls button:hover { background: rgba(255, 255, 255, .14); }
.hero__ctrls svg { width: 15px; height: 15px; }
.hero__progress { flex: 1; display: flex; gap: 5px; }
.hero__progress i { flex: 1; height: 3px; background: rgba(255, 255, 255, .22); border-radius: 3px; overflow: hidden; position: relative; }
.hero__progress i.is-done::after, .hero__progress i.is-active::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; }
.hero__progress i.is-active::after { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero__progress i.is-done::after { transform: none; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero.is-paused .hero__progress i.is-active::after { animation-play-state: paused; }
@media (max-width: 860px) {
  .hero { height: auto; min-height: 100svh; max-height: none; }
  .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero::after { background: linear-gradient(0deg, rgba(21, 18, 13, .92) 0%, rgba(21, 18, 13, .55) 55%, rgba(21, 18, 13, .3) 100%); }
}

/* Credentials strip */
.creds { background: var(--ink); color: var(--white); border-top: 1px solid var(--rule-dark); }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.creds li { padding: 22px 20px; border-left: 1px solid var(--rule-dark); display: flex; flex-direction: column; gap: 2px; }
.creds li:first-child { border-left: 0; padding-left: 0; }
.creds strong { font-size: 1rem; font-variation-settings: "wdth" 115; }
.creds span { font-size: .8rem; color: #cbc1b2; line-height: 1.35; }
@media (max-width: 960px) { .creds ul { grid-template-columns: repeat(2, 1fr); } .creds li { border-left: 0; border-top: 1px solid var(--rule-dark); padding-left: 0; } .creds li:nth-child(-n+2) { border-top: 0; } .creds li:last-child { grid-column: 1 / -1; } }

/* ---------- Intro / numbers ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.intro__statement { font-size: var(--step-3); font-weight: 650; line-height: 1.15; letter-spacing: -.015em; font-variation-settings: "wdth" 112; text-wrap: pretty; }
.intro__statement em { font-style: normal; color: var(--steel); }
.intro__body .lede { margin-bottom: 28px; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 96px); border-top: 2px solid var(--ink); }
.figure { padding: 26px 24px 0 0; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--rule); }
.figure__n { font-size: var(--step-4); font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -.03em; line-height: 1; }
.figure__n sup { font-size: .45em; vertical-align: top; position: relative; top: .2em; color: var(--gold-deep); margin-left: 2px; }
.figure__l { margin-top: 10px; color: var(--steel); font-size: .95rem; max-width: 22ch; line-height: 1.4; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .figures { grid-template-columns: repeat(2, 1fr); } .figure:nth-child(3) { padding-left: 0; border-left: 0; } .figure:nth-child(n+3) { padding-top: 28px; } }

/* ---------- Services index (home) ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.svc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); counter-reset: svc; }
.svc__item a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule-dark); text-decoration: none; transition: padding .3s var(--ease), color .2s; }
.svc__item h3 { font-size: var(--step-2); font-variation-settings: "wdth" 118; }
.svc__item p { grid-column: 1; margin: 6px 0 0; color: #cbc1b2; font-size: .95rem; max-width: 52ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
.svc__item .arrow { grid-row: 1; grid-column: 2; width: 44px; height: 44px; border-radius: 0; border: 1px solid var(--rule-dark); display: grid; place-items: center; transition: .25s var(--ease); }
.svc__item .arrow svg { width: 18px; height: 18px; }
.svc__item.is-active a, .svc__item a:hover, .svc__item a:focus-visible { padding-left: 14px; }
.svc__item.is-active h3 { color: var(--gold); }
.svc__item.is-active p { max-height: 6em; opacity: 1; }
.svc__item.is-active .arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.svc__visual { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden; background: var(--ink-2); }
.svc__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform 1.2s var(--ease); }
.svc__visual img.is-active { opacity: 1; transform: none; }
.svc__visual figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; font-size: .82rem; color: #fff; background: rgba(21, 18, 13, .6); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: var(--radius-m); width: fit-content; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc__visual { display: none; } .svc__item p { max-height: none; opacity: 1; } }

/* ---------- Map ---------- */
.map-sec { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.map { position: relative; width: 100%; max-width: 470px; margin-inline: auto; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .dot { fill: #c3c6c1; }
.map .pin { cursor: pointer; }
.map .pin circle.core { fill: var(--ink); stroke: var(--paper); stroke-width: 2; transition: r .2s, fill .2s; }
.map .pin circle.halo { fill: var(--gold); opacity: .35; transform-origin: center; transform-box: fill-box; animation: halo 2.6s ease-out infinite; }
.map .pin:hover circle.core, .map .pin.is-active circle.core, .map .pin:focus-visible circle.core { fill: var(--gold); }
.map .pin:focus { outline: none; }
.map .pin text { font-size: 13px; font-weight: 700; fill: var(--ink); pointer-events: none; font-family: var(--font); }
.map .pin .count { fill: #fff; font-size: 10px; text-anchor: middle; dominant-baseline: central; }
@keyframes halo { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }
.map__inset { position: absolute; left: 0; bottom: 8%; font-size: .78rem; color: var(--steel); }
.map-card { background: var(--white); border-radius: var(--radius-l); box-shadow: 0 30px 60px -36px rgba(27, 25, 21, .5), 0 0 0 1px rgba(27, 25, 21, .06); overflow: hidden; }
.map-card__img { aspect-ratio: 16 / 9; background: var(--concrete); overflow: hidden; }
.map-card__img img { width: 100%; height: 100%; object-fit: cover; }
.map-card__body { padding: 22px 24px 24px; }
.map-card__loc { font-size: .85rem; color: var(--steel); margin-bottom: 4px; }
.map-card h3 { font-size: var(--step-1); line-height: 1.25; margin-bottom: 12px; }
.map-card__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.map-card__list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--concrete); font-size: .93rem; }
.map-card__list li:last-child { border-bottom: 0; }
.map-card__list button { all: unset; cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .2em; }
.map-card__list button:hover { text-decoration-color: var(--gold); }
.map-card__list button:focus-visible { outline: 3px solid var(--gold); }
.map-card__list span { color: var(--steel); white-space: nowrap; font-variant-numeric: tabular-nums; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 0; background: var(--white); border: 1px solid var(--rule); font-size: .88rem; font-weight: 560; }
@media (max-width: 960px) { .map-sec { grid-template-columns: 1fr; } }

/* ---------- Project tiles ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.tile { position: relative; display: block; border-radius: var(--radius-l); overflow: hidden; background: var(--ink-2); color: #fff; text-decoration: none; isolation: isolate; min-height: 340px; border: 0; padding: 0; text-align: left; width: 100%; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18, 15, 10, .9) 0%, rgba(18, 15, 10, .35) 45%, rgba(18, 15, 10, 0) 70%); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2vw, 28px); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tile__meta { font-size: .84rem; color: #d8cfc1; margin-bottom: 6px; }
.tile h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); line-height: 1.15; }
.tile__value { flex: none; font-weight: 700; color: var(--ink); background: var(--gold); padding: 6px 12px; border-radius: 0; font-size: .85rem; white-space: nowrap; }
.tile--a { grid-column: span 7; min-height: 520px; }
.tile--b { grid-column: span 5; min-height: 520px; }
.tile--c { grid-column: span 4; }
.proj-grid .tile--c:nth-last-child(-n+3) { min-height: 380px; }
@media (max-width: 960px) { .tile--a, .tile--b { grid-column: span 12; min-height: 420px; } .tile--c { grid-column: span 6; } }
@media (max-width: 640px) { .tile--c { grid-column: span 12; } .tile--a, .tile--b { min-height: 380px; } .tile__body { flex-direction: column; align-items: flex-start; } }

/* ---------- Group / subsidiaries ---------- */
.group { display: grid; gap: clamp(16px, 2vw, 24px); }
.sub { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border-radius: var(--radius-l); overflow: hidden; min-height: 520px; isolation: isolate; }
.sub__media { position: relative; overflow: hidden; }
.sub__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sub:hover .sub__media img { transform: scale(1.03); }
.sub__body { padding: clamp(28px, 4vw, 60px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.sub__logo { height: 54px; width: auto; align-self: flex-start; }
.sub__role { font-size: .9rem; font-weight: 600; margin: 18px 0 10px; }
.sub h3 { font-size: var(--step-3); font-variation-settings: "wdth" 122; letter-spacing: -.015em; margin-bottom: 16px; }
.sub__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid; padding-top: 18px; }
.sub__facts div + div { padding-left: 16px; border-left: 1px solid; }
.sub__facts strong { display: block; font-size: var(--step-2); font-variation-settings: "wdth" 120; font-weight: 800; line-height: 1.1; }
.sub__facts span { font-size: .82rem; line-height: 1.3; display: block; margin-top: 4px; }
.sub--piling { background: #1b1d1f; color: #fff; }
.sub--piling .sub__role { color: #f2b21a; }
.sub--piling p { color: #d8cfc1; }
.sub--piling .sub__facts, .sub--piling .sub__facts div { border-color: rgba(255, 255, 255, .16); }
.sub--piling .sub__facts span { color: #a39888; }
.sub--nova { background: #0f1112; color: #f3ead6; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.sub--nova .sub__media { order: 2; }
.sub--nova .sub__role { color: #d8b56a; }
.sub--nova p { color: #c9c0ad; }
.sub--nova .sub__facts, .sub--nova .sub__facts div { border-color: rgba(216, 181, 106, .3); }
.sub--nova .sub__facts span { color: #a99f8a; }
.sub--nova .btn { --bg: #d8b56a; --fg: #0f1112; }
.sub--nova .btn:hover { --bg: #e5c784; box-shadow: none; }
.sub--nova .btn--ghost { --bg: transparent; --fg: #f3ead6; }
@media (max-width: 960px) { .sub, .sub--nova { grid-template-columns: 1fr; } .sub__media { aspect-ratio: 16 / 10; } .sub--nova .sub__media { order: 0; } }
@media (max-width: 520px) { .sub__facts { grid-template-columns: 1fr; gap: 14px; } .sub__facts div + div { padding-left: 0; border-left: 0; } }

/* ---------- Strengths ---------- */
.strengths { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.strength { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--rule); }
.strength:not(:nth-child(4n+1)) { padding-left: 28px; border-left: 1px solid var(--rule); }
.strength__icon { width: 44px; height: 44px; border-radius: var(--radius-m); background: var(--ink); color: var(--gold); display: grid; place-items: center; margin-bottom: 22px; }
.strength__icon svg { width: 22px; height: 22px; }
.strength .strength__proof { color: var(--ink); font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 122; letter-spacing: -.02em; line-height: 1; margin-bottom: 10px; }
.strength h3 { font-size: 1.05rem; font-variation-settings: "wdth" 105; margin-bottom: 8px; }
.strength p { color: var(--steel); font-size: .94rem; line-height: 1.5; }
@media (max-width: 1060px) { .strengths { grid-template-columns: repeat(2, 1fr); } .strength:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; } .strength:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--rule); } }
@media (max-width: 560px) { .strengths { grid-template-columns: 1fr; } .strength:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---------- Clients marquee ---------- */
.clients { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients__track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.clients:hover .clients__track { animation-play-state: paused; }
.clients__track img { width: 180px; height: 90px; object-fit: contain; background: #fff; border-radius: var(--radius-m); border: 1px solid var(--rule); flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--gold); color: var(--ink); border-radius: var(--radius-l); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; isolation: isolate; }
.cta__mark { position: absolute; right: -60px; top: -40px; width: 420px; color: rgba(27, 25, 21, .07); z-index: -1; }
.cta h2 { font-size: var(--step-4); max-width: 16ch; }
.cta p { margin-top: 16px; font-size: var(--step-1); max-width: 46ch; color: #3b3220; }
.cta .btn:hover { box-shadow: none; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Contact block ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); }
.contact__list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.contact__list li:last-child { border-bottom: 1px solid var(--rule); }
.contact__list .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--concrete); display: grid; place-items: center; }
.section--dark .contact__list li { border-color: var(--rule-dark); }
.section--dark .contact__list .ic { background: var(--ink-2); color: var(--gold); }
.contact__list .ic svg { width: 19px; height: 19px; }
.contact__list small { display: block; color: var(--steel); font-size: .82rem; }
.section--dark .contact__list small { color: #cbc1b2; }
.contact__list a { font-weight: 650; text-decoration: none; }
.contact__list a:hover { color: var(--gold-deep); }
.section--dark .contact__list a:hover { color: var(--gold); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { background: var(--white); color: var(--ink); border-radius: var(--radius-l); padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 30px 70px -40px rgba(27, 25, 21, .45), 0 0 0 1px rgba(27, 25, 21, .06); }
.form h3 { margin-bottom: 6px; }
.form > p { color: var(--steel); margin-bottom: 26px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 620; }
.field label .opt { font-weight: 450; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--rule); border-radius: var(--radius-m); padding: 13px 14px; min-height: 50px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310222e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(228, 161, 2, .25); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field__err { font-size: .8rem; color: #b03a2e; display: none; }
.field.has-error .field__err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--steel); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; margin-top: 22px; }
.form__foot .small { color: var(--steel); max-width: 36ch; }
.form__ok { display: none; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--radius-m); background: #e8f3ec; color: #1f5135; margin-top: 18px; }
.form__ok svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form.is-sent .form__ok { display: flex; }
@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--ink); padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21, 18, 13, .9) 0%, rgba(21, 18, 13, .6) 55%, rgba(21, 18, 13, .25) 100%); }
.crumbs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; font-size: .86rem; color: #d8cfc1; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-hero h1 { font-size: var(--step-5); max-width: 15ch; margin-bottom: 22px; }
.page-hero .lede { color: #e6dfd2; }

/* ---------- Generic layout helpers ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.photo { border-radius: var(--radius-l); overflow: hidden; background: var(--concrete); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 64ch; }
.prose p { color: #4a4237; }
.section--dark .prose p { color: #d8cfc1; }
.stack > * + * { margin-top: 18px; }
.mt-l { margin-top: clamp(40px, 5vw, 72px); }

/* Fact list (key/value) */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.facts li { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--rule); }
.facts small { display: block; color: var(--steel); font-size: .82rem; margin-bottom: 4px; }
.facts strong { font-size: 1.1rem; font-variation-settings: "wdth" 110; }

/* Tick list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; line-height: 1.4; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310222e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 560px) { .ticks { grid-template-columns: 1fr; } }

/* ---------- Project explorer (projects page) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.filter { border: 1.5px solid var(--rule); background: var(--white); border-radius: 0; padding: 10px 18px; font-weight: 600; font-size: .92rem; transition: .2s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter .c { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.search { margin-left: auto; position: relative; }
.search input { font: inherit; border: 1.5px solid var(--rule); border-radius: 0; padding: 10px 16px 10px 40px; min-width: 260px; background: var(--white); }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(228, 161, 2, .25); }
.search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--steel); }
@media (max-width: 760px) { .search { margin-left: 0; width: 100%; } .search input { width: 100%; min-width: 0; } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 26px); }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--rule); text-align: left; padding: 0; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; width: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(27, 25, 21, .45); border-color: transparent; }
.card__img { position: relative; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ink-2); color: rgba(228, 161, 2, .35); }
.card__ph svg { width: 40%; }
.badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 0; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .78rem; font-weight: 650; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.badge--ongoing::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(228, 161, 2, .3); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font-size: .8rem; color: var(--steel); font-weight: 600; }
.card h3 { font-size: 1.15rem; font-variation-settings: "wdth" 108; line-height: 1.25; }
.card__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--concrete); font-size: .88rem; color: var(--steel); }
.card__foot strong { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; padding: 60px 20px; color: var(--steel); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__scrim { position: absolute; inset: 0; background: rgba(18, 15, 10, .72); backdrop-filter: blur(4px); }
.modal__panel { position: relative; width: min(1040px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; background: var(--paper); border-radius: var(--radius-l); transform: translateY(16px) scale(.98); transition: transform .35s var(--ease); }
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.modal__close svg { width: 20px; height: 20px; }
.modal__media { position: relative; aspect-ratio: 16 / 8; background: var(--ink); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumbs { display: flex; gap: 8px; padding: 12px clamp(20px, 3vw, 36px) 0; overflow-x: auto; }
.modal__thumbs button { flex: none; width: 92px; height: 62px; border-radius: var(--radius-m); overflow: hidden; border: 2px solid transparent; padding: 0; opacity: .7; }
.modal__thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.modal__body h2 { font-size: var(--step-3); margin: 6px 0 16px; }
.modal__body .facts { grid-template-columns: 1fr; }
.modal__body .facts li { padding: 12px 0; display: flex; justify-content: space-between; gap: 14px; }
.modal__body .facts small { margin: 0; }
.modal__body .facts strong { text-align: right; font-size: .98rem; }
@media (max-width: 760px) { .modal { padding: 0; align-items: end; } .modal__panel { max-height: 94svh; border-radius: var(--radius-l) var(--radius-l) 0 0; } .modal__body { grid-template-columns: 1fr; } .modal__media { aspect-ratio: 16 / 10; } }
body.modal-open { overflow: hidden; }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.person__img { aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden; background: var(--concrete); margin-bottom: 14px; }
.person__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.15); transition: filter .4s; }
.person:hover .person__img img { filter: none; }
.person h3 { font-size: 1.05rem; font-variation-settings: "wdth" 105; line-height: 1.25; }
.person p { font-size: .9rem; color: var(--steel); margin-top: 4px; }
.people--lead { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.people--lead .person p.bio { font-size: .9rem; margin-top: 10px; color: #4d463c; line-height: 1.5; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--gold); }
.timeline li { padding: 22px 22px 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--gold); }
.section--dark .timeline li::before { background: var(--ink); }
.timeline strong { display: block; font-size: var(--step-2); font-variation-settings: "wdth" 122; font-weight: 800; margin-bottom: 6px; }
.timeline p { font-size: .94rem; color: var(--steel); }
.section--dark .timeline p { color: #cbc1b2; }

/* ---------- Service detail rows ---------- */
.svc-tabs { position: sticky; top: var(--header-h); z-index: 20; background: rgba(250, 250, 248, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.svc-tabs ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.svc-tabs ul::-webkit-scrollbar { display: none; }
.svc-tabs a { display: block; white-space: nowrap; padding: 9px 16px; border-radius: 0; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--steel); }
.svc-tabs a:hover { color: var(--ink); background: var(--concrete); }
.svc-tabs a.is-active { background: var(--ink); color: #fff; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(56px, 7vw, 100px) 0; border-bottom: 1px solid var(--rule); }
.svc-row:nth-child(even) .svc-row__media { order: 2; }
.svc-row__media { aspect-ratio: 5 / 4; border-radius: var(--radius-l); overflow: hidden; position: relative; }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row__media figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(21, 18, 13, .65); color: #fff; backdrop-filter: blur(8px); font-size: .8rem; padding: 7px 12px; border-radius: var(--radius-m); }
.svc-row h2 { font-size: var(--step-3); margin-bottom: 16px; }
.svc-row .lede { margin-bottom: 26px; font-size: var(--step-0); }
.svc-row .ticks { margin-bottom: 30px; }
@media (max-width: 900px) { .svc-row { grid-template-columns: 1fr; } .svc-row:nth-child(even) .svc-row__media { order: 0; } }

/* ---------- Values / numbered principles (genuine sequence on About) ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1px solid var(--rule-dark); }
.value { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--rule-dark); }
.value h3 { font-size: 1.1rem; font-variation-settings: "wdth" 108; margin-bottom: 8px; color: #fff; }
.value p { color: #cbc1b2; font-size: .94rem; }

/* Awards / certifications */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.cert { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--rule); }
.cert__badge { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: .74rem; font-variation-settings: "wdth" 115; text-align: center; line-height: 1.05; }
.cert__badge svg { width: 26px; height: 26px; }
.cert strong { display: block; font-size: 1rem; }
.cert span { display: block; font-size: .86rem; color: var(--steel); line-height: 1.4; margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { --f-bg: #15120d; background: var(--f-bg); color: #d8cfc1; padding: 0 0 0; position: relative; overflow: hidden; border-top: 3px solid var(--gold); }
.site-footer a { text-decoration: none; }
/* CTA band */
.fcta { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; padding: clamp(56px, 7vw, 96px) 0 clamp(44px, 5vw, 64px); border-bottom: 1px solid var(--rule-dark); }
.fcta__kicker { grid-column: 1 / -1; font-size: var(--step--1); font-weight: 600; color: var(--gold); margin: 0; }
.fcta__title { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.4rem); line-height: .95; letter-spacing: -.035em; font-variation-settings: "wdth" 118; color: #fff; margin: 0; }
.fcta__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.btn--line { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn--line:hover { --bg: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px var(--gold); }
body:has(#enquire) .fcta, body:has(.contact-page) .fcta { display: none; }
/* Link grid */
.footer__grid { display: grid; grid-template-columns: 1.35fr .8fr 1fr 1.25fr; gap: clamp(28px, 4vw, 64px); padding: clamp(44px, 5vw, 72px) 0 clamp(36px, 4vw, 52px); }
.footer__brand .brand { color: #fff; }
.footer__brand p { margin: 18px 0 0; max-width: 34ch; font-size: .95rem; line-height: 1.55; }
.footer__certs { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.footer__certs li { font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: 6px 10px; border-radius: 0; background: rgba(228, 161, 2, .1); color: var(--gold); border: 1px solid rgba(228, 161, 2, .28); }
.footer__col h2 { font-size: .78rem; color: #a39888; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-variation-settings: "wdth" 100; margin-bottom: 18px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .97rem; }
.footer__col ul a { display: inline-flex; padding: 5px 0; color: #f1ebe1; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.footer__col ul a:hover, .footer__col ul a:focus-visible { color: #fff; background-size: 100% 1.5px; }
.footer__line { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; font-size: .95rem; line-height: 1.5; color: #f1ebe1; }
.footer__line svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
a.footer__line:hover span { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
/* Group companies */
.footer__group { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 12px 16px; padding: 22px 0; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.footer__group-label { margin: 0 12px 0 0; font-size: .78rem; color: #a39888; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gco { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--radius-m); background: rgba(255, 255, 255, .035); border: 1px solid var(--rule-dark); color: #fff; transition: background .25s, border-color .25s, transform .3s var(--ease); }
.gco:hover, .gco:focus-visible { background: rgba(255, 255, 255, .07); border-color: rgba(228, 161, 2, .55); transform: translateY(-2px); }
.gco__logo { flex: none; width: 46px; height: 46px; border-radius: var(--radius-m); background: #231f18; display: grid; place-items: center; }
.gco__logo img { width: 30px; height: auto; max-height: 30px; object-fit: contain; border-radius: 4px; }
.gco__text { display: grid; gap: 2px; min-width: 0; }
.gco__text strong { font-size: 1rem; font-variation-settings: "wdth" 110; }
.gco__text span { font-size: .85rem; color: #b3a898; }
.gco__arrow { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--gold); transition: transform .3s var(--ease); }
.gco:hover .gco__arrow { transform: translate(3px, -3px); }
/* Bottom bar */
.social { display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule-dark); display: grid; place-items: center; color: #f1ebe1; transition: .2s; }
.social a:hover, .social a:focus-visible { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.social svg { width: 17px; height: 17px; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; justify-content: space-between; padding: 24px 0; font-size: .85rem; color: #a39888; }
.totop { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #f1ebe1; padding: 10px 0; }
.totop svg { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .3s var(--ease); }
.totop:hover { color: var(--gold); }
.totop:hover svg { transform: rotate(-90deg) translateX(3px); }
/* Wordmark: SVG text fitted to width, never clipped */
.footer__word { display: block; width: 100%; height: auto; margin-top: clamp(8px, 2vw, 24px); user-select: none; }
.footer__word text { font-family: var(--font); font-weight: 900; font-variation-settings: "wdth" 125; font-size: 190px; fill: none; stroke: rgba(228, 161, 2, .22); stroke-width: 1.2; }
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .fcta { grid-template-columns: 1fr; }
  .fcta__actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .footer__group { grid-template-columns: 1fr; }
  .footer__group-label { margin: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .fcta__actions .btn { flex: 1 1 100%; justify-content: center; }
  .site-footer { padding-bottom: 8px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__brand, .footer__office { grid-column: 1 / -1; }
}

/* Floating WhatsApp */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .4); transition: transform .2s var(--ease); }
.wa { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, visibility .3s, transform .3s var(--ease); }
.wa.is-shown { opacity: 1; visibility: visible; transform: none; }
.wa.is-shown:hover { transform: scale(1.06); }
.wa svg { width: 28px; height: 28px; }

/* Scroll reveal — used once per section, never on every element */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .clients__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* =========================================================
   Shared fixes
   ========================================================= */
.cert .cert__badge { display: grid; color: var(--gold); margin: 0; font-size: .74rem; line-height: 1.05; }
.field label.check { font-weight: 450; }
@media (max-width: 700px) {
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--gold); margin-left: 7px; }
  .timeline li { padding: 0 0 26px 26px; }
  .timeline li::before { top: 4px; left: -9px; }
}
@media (max-width: 560px) {
  .people:not(.people--lead) { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .person h3 { font-size: .95rem; }
  .person p { font-size: .82rem; }
}

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* =========================================================
   Group dock: side announcement tabs
   ========================================================= */
.dock { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dock__tab { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 46px; padding: 12px 0 14px; border: 0; border-radius: 0; color: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); transition: width .25s var(--ease); position: relative; }
.dock__tab:hover, .dock__tab[aria-expanded="true"] { width: 54px; }
.dock__tab img { width: 26px; height: 26px; object-fit: contain; }
.dock__tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .78rem; font-weight: 700; font-variation-settings: "wdth" 110; letter-spacing: .02em; white-space: nowrap; }
.dock__tab--nova { background: #0f1112; color: #f3ead6; }
.dock__tab--nova img { border-radius: var(--radius-m); }
.dock__tab--ncc { background: #1b1d1f; }
.dock__tab--ncc img { width: 30px; height: 20px; }
.dock__dot { position: absolute; top: 7px; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: #d8b56a; box-shadow: 0 0 0 0 rgba(216, 181, 106, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(216, 181, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 181, 106, 0); } }
.dock__card { position: fixed; right: 66px; top: 50%; width: min(340px, calc(100vw - 90px)); transform: translate(16px, -50%); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s; border-radius: var(--radius-l); overflow: hidden; z-index: 96; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55); }
.dock__card.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.dock__card--nova { background: #0f1112; color: #f3ead6; }
.dock__card--ncc { background: #1b1d1f; color: #fff; }
.dock__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.dock__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s linear; }
.dock__card.is-open .dock__media img { transform: scale(1); }
.dock__flag { position: absolute; top: 12px; left: 12px; background: #d8b56a; color: #0f1112; font-size: .75rem; font-weight: 750; padding: 5px 10px; border-radius: 0; }
.dock__card--ncc .dock__flag { background: var(--gold); color: var(--ink); }
.dock__body { padding: 18px 20px 20px; }
.dock__logo { height: 30px; width: auto; margin-bottom: 12px; }
.dock__body h3 { font-size: 1.15rem; line-height: 1.2; font-variation-settings: "wdth" 115; margin-bottom: 8px; }
.dock__body p { font-size: .88rem; line-height: 1.45; opacity: .8; margin-bottom: 14px; }
.dock__stats { display: flex; gap: 16px; margin-bottom: 16px; font-size: .78rem; }
.dock__stats div { opacity: .85; }
.dock__stats strong { display: block; font-size: 1.05rem; font-variation-settings: "wdth" 118; }
.dock__body .btn-row { gap: 8px; }
.dock__card--nova .btn { --bg: #d8b56a; --fg: #0f1112; }
.dock__card--nova .btn--ghost, .dock__card--ncc .btn--ghost { --bg: transparent; --fg: currentColor; }
.dock__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.dock__close svg { width: 16px; height: 16px; }
.dock-fab { display: none; }
@media (max-width: 760px) {
  .dock { display: none; }
  .dock-fab { display: flex; position: fixed; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 95; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 0; border: 0; background: #0f1112; color: #f3ead6; font-size: .8rem; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .55); transition: opacity .3s, transform .3s var(--ease); }
  .dock-fab.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .dock-fab img { width: 30px; height: 30px; border-radius: 50%; background: #1b1d1f; object-fit: contain; padding: 4px; }
  .dock-fab img + img { margin-left: -14px; }
  .dock-fab .dock__dot { top: 4px; right: 4px; }
  .dock__card { left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; transform: translateY(20px); }
  .dock__card.is-open { transform: none; }
  .dock__card .dock__media { aspect-ratio: 16 / 8; }
}

/* =========================================================
   Mobile action bar
   ========================================================= */
.mbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .wa { display: none; }
  .mbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; background: rgba(27, 25, 21, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule-dark); }
  .mbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: #d8cfc1; text-decoration: none; font-size: .7rem; font-weight: 600; border-radius: var(--radius-m); min-height: 52px; justify-content: center; }
  .mbar a svg { width: 22px; height: 22px; }
  .mbar a:active { background: rgba(255, 255, 255, .08); }
  .mbar a.is-primary { background: var(--gold); color: var(--ink); }
}

/* =========================================================
   Home: estimator teaser
   ========================================================= */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: clamp(28px, 5vw, 64px); overflow: hidden; position: relative; }
.teaser h2 { font-size: var(--step-4); margin-bottom: 18px; }
.teaser .lede { color: #d8cfc1; margin-bottom: 26px; }
.teaser__steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.teaser__steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; color: #f1ebe1; }
.teaser__steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 0; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.teaser__stage { position: relative; aspect-ratio: 1 / .9; background: radial-gradient(closest-side, rgba(228, 161, 2, .14), transparent); }
.teaser__stage svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .teaser { grid-template-columns: 1fr; } .teaser__stage { order: -1; max-height: 340px; width: 100%; } }

/* Building animation (shared by teaser + estimator) */
.floor.is-new { animation: floorIn .55s var(--ease) both; }
@keyframes floorIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Estimator page
   ========================================================= */
.est { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.est-controls { display: grid; gap: 26px; min-width: 0; }
.est-group { border: 0; margin: 0; padding: 0 0 26px; border-bottom: 1px solid var(--rule); min-width: 0; }
.est-group:last-child { border-bottom: 0; }
.est-group legend, .est-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; font-weight: 700; font-size: 1.02rem; font-variation-settings: "wdth" 108; margin-bottom: 14px; padding: 0; }
.est-label output, .est-label .muted { font-weight: 600; font-size: .9rem; }
.est-label output { color: var(--ink); background: var(--gold-soft); padding: 3px 10px; border-radius: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.opts--3 { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; z-index: 1; }
.opt label { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1.5px solid var(--rule); border-radius: var(--radius-m); background: var(--white); cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; height: 100%; font-weight: 650; font-size: .93rem; line-height: 1.25; }
.opt label svg { width: 26px; height: 26px; color: var(--steel); transition: color .2s; }
.opt label small { font-weight: 450; color: var(--steel); font-size: .8rem; }
.opt input:hover + label { border-color: var(--steel-2); }
.opt input:checked + label { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink), 0 10px 24px -16px rgba(27, 25, 21, .5); }
.opt input:checked + label svg { color: var(--gold-deep); }
.opt input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt input:disabled { cursor: not-allowed; }
.opt input:disabled + label { opacity: .6; cursor: not-allowed; }
.opts--checks .opt label { flex-direction: row; align-items: center; gap: 10px; }
.opts--checks .opt label::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: var(--radius-m); border: 1.5px solid var(--steel-2); background: #fff center / 13px no-repeat; transition: .2s; }
.opts--checks .opt input:checked + label::before { background-color: var(--gold); border-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310222e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.range { width: 100%; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 0; background: linear-gradient(90deg, var(--gold) var(--p, 50%), var(--concrete-2) var(--p, 50%)); outline: none; margin: 14px 0 8px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(27, 25, 21, .35); cursor: grab; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(27, 25, 21, .35); cursor: grab; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(228, 161, 2, .5); }
.range-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--steel); }
.stepper-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--rule); border-radius: 0; background: #fff; }
.stepper button { width: 50px; height: 50px; border: 0; background: none; font-size: 1.4rem; font-weight: 600; border-radius: 0; }
.stepper button:hover:not(:disabled) { background: var(--concrete); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 56px; text-align: center; font-size: 1.3rem; font-weight: 800; font-variation-settings: "wdth" 120; font-variant-numeric: tabular-nums; }
.est-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; min-width: 0; }
.est-stage { position: relative; background: linear-gradient(180deg, #fbf5ea, #fffdf9); border-radius: var(--radius-l); border: 1px solid var(--rule); aspect-ratio: 1 / .78; overflow: hidden; transition: background .5s; }
.est-stage.is-night { background: linear-gradient(180deg, #16130e, #2b251c); border-color: #2b251c; }
.est-stage > svg { position: absolute; left: 4%; top: 12%; width: 92%; height: 84%; }
.est-stage__bar { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; z-index: 2; }
.est-stage__label { font-size: .8rem; font-weight: 650; background: rgba(255, 255, 255, .9); padding: 6px 12px; border-radius: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.est-stage.is-night .est-stage__label { background: rgba(255, 255, 255, .12); color: #fff; }
.toggle-night { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 0; padding: 7px 13px; font-size: .8rem; font-weight: 650; background: var(--ink); color: #fff; }
.toggle-night[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.est-result { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: clamp(20px, 2.5vw, 30px); }
.est-result__k { font-size: .85rem; color: #cbc1b2; margin-bottom: 6px; }
.est-result__total { font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.2rem); font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -.02em; line-height: 1.08; font-variant-numeric: tabular-nums; }
.est-result__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.est-result__row small { display: block; font-size: .76rem; color: #cbc1b2; }
.est-result__row strong { font-size: .98rem; font-variant-numeric: tabular-nums; }
.est-bar { display: flex; height: 10px; border-radius: 0; overflow: hidden; gap: 2px; margin-bottom: 14px; }
.est-bar span { transition: flex .5s var(--ease); }
.est-bar span:nth-child(1), .est-break li:nth-child(1) i { background: var(--gold); }
.est-bar span:nth-child(2), .est-break li:nth-child(2) i { background: #f2cd6b; }
.est-bar span:nth-child(3), .est-break li:nth-child(3) i { background: #9a6a00; }
.est-bar span:nth-child(4), .est-break li:nth-child(4) i { background: #d8cfc1; }
.est-break { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; font-size: .86rem; color: #f1ebe1; }
.est-break li { display: flex; align-items: center; gap: 10px; }
.est-break li span { margin-left: auto; font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; white-space: nowrap; }
.est-break i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.est-break li.x i { background: transparent !important; border: 1.5px solid var(--gold); }
.est-result .btn-row { gap: 10px; }
.est-note { font-size: .78rem; color: #a39888; margin-top: 14px; line-height: 1.45; }
.est-copy { background: none; border: 0; color: #d8cfc1; font-size: .85rem; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; padding: 10px 0 0; text-decoration: underline; text-underline-offset: .2em; }
.est-copy svg { width: 16px; height: 16px; }
@media (max-width: 980px) {
  .est { grid-template-columns: 1fr; }
  .est-side { display: contents; }
  .est-stage { order: -1; position: sticky; top: 8px; z-index: 5; aspect-ratio: auto; height: min(34vh, 300px); box-shadow: 0 16px 30px -24px rgba(27, 25, 21, .6); }
  .est-result { order: 2; }
}
@media (max-width: 560px) {
  .opts--3 .opt label { padding: 12px 8px; font-size: .84rem; text-align: center; align-items: center; }
  .opts--3 .opt label small { display: none; }
  .est-result__row { grid-template-columns: 1fr 1fr; }
  .est-result__row div:last-child { grid-column: 1 / -1; }
}

/* Mobile polish */
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  h2 { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.4rem); }
  .figure__n { font-size: 2.3rem; }
  .cta { padding: 28px 22px; }
  .modal__body h2 { font-size: 1.5rem; }
}
@media (max-width: 380px) {
  .brand__sub { display: none; }
  .brand__name { font-size: .95rem; }
}

@media (max-width: 1360px) and (min-width: 1280px) { .site-header .wrap { gap: 16px; } .nav__link { padding: 10px 9px; font-size: .9rem; } .brand__sub { display: none; } }

@media (max-width: 380px) {
  .brand { gap: 8px; min-width: 0; }
  .brand__mark { width: 40px; }
  .brand__name { font-size: .88rem; font-variation-settings: "wdth" 105; }
  .site-header .wrap { gap: 10px; }
  .menu-btn { width: 42px; height: 42px; flex: none; }
  .figure { padding-right: 12px; }
  .figure + .figure { padding-left: 12px; }
  .figure__n { font-size: 1.9rem; }
}

/* =========================================================
   Moving gallery: drifting vertical columns (desktop 5 → mobile 2)
   ========================================================= */
.mgal-sec { padding: clamp(64px, 8vw, 120px) 0 0; background: var(--paper); overflow: hidden; }
.mgal-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.mgal-head h2 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -.02em; font-variation-settings: "wdth" 112; }
.mgal { position: relative; display: grid; grid-template-columns: 1.2fr .9fr 1.2fr .9fr 1.1fr; gap: clamp(8px, 1vw, 16px); height: clamp(460px, 62vw, 760px); padding: 0 clamp(8px, 1vw, 16px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.mgal__col { min-width: 0; }
.mgal__track { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 16px); animation: mgal-up var(--dur, 60s) linear infinite; will-change: transform; }
.mgal__col:nth-child(even) .mgal__track { animation-direction: reverse; }
.mgal__col:hover .mgal__track, .mgal__col:focus-within .mgal__track, .mgal.is-off .mgal__track { animation-play-state: paused; }
@keyframes mgal-up { to { transform: translate3d(0, calc(-50% - clamp(4px, .5vw, 8px)), 0); } }
.mgal__i { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--concrete); border-radius: var(--radius-m); overflow: hidden; cursor: pointer; color: #fff; text-align: left; }
.mgal__i--a { margin: 0 6%; width: 88%; }
.mgal__i--b { margin: 0 0 0 10%; width: 90%; }
.mgal__i img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease), filter .5s; }
.mgal__i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(21, 18, 13, .85)); opacity: 0; transition: opacity .4s var(--ease); }
.mgal__cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-weight: 750; font-size: .95rem; line-height: 1.2; font-variation-settings: "wdth" 108; transform: translateY(10px); opacity: 0; transition: transform .45s var(--ease), opacity .35s; }
.mgal__cap small { display: block; font-size: .72rem; font-weight: 600; color: var(--gold); margin-bottom: 3px; letter-spacing: .02em; }
.mgal__i:hover img, .mgal__i:focus-visible img { transform: scale(1.06); }
.mgal__i:hover::after, .mgal__i:focus-visible::after { opacity: 1; }
.mgal__i:hover .mgal__cap, .mgal__i:focus-visible .mgal__cap { transform: none; opacity: 1; }
.mgal__i:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 1080px) { .mgal { grid-template-columns: 1.1fr .9fr 1.1fr; } .mgal__col:nth-child(n+4) { display: none; } }
@media (max-width: 760px) {
  .mgal-head { grid-template-columns: 1fr; }
  .mgal { grid-template-columns: 1fr 1fr; height: 520px; }
  .mgal__col:nth-child(n+3) { display: none; }
  .mgal__i--a, .mgal__i--b { margin: 0; width: 100%; }
  .mgal__i::after { opacity: 1; background: linear-gradient(180deg, transparent 60%, rgba(21, 18, 13, .75)); }
  .mgal__cap { opacity: 1; transform: none; font-size: .8rem; left: 10px; bottom: 9px; }
  .mgal__cap small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mgal__track { animation: none; } .mgal { height: auto; max-height: 900px; } }

/* =========================================================
   Scroll-velocity band
   ========================================================= */
.vband { background: var(--paper); padding: clamp(28px, 4vw, 56px) 0; overflow: hidden; border-bottom: 1px solid var(--rule); }
.vband__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.vband__track span { font-size: clamp(2.4rem, 1.4rem + 5vw, 6.5rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variation-settings: "wdth" 125; color: var(--ink); white-space: nowrap; padding: 0 .35em; }
.vband__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.vband__track i { flex: none; width: clamp(14px, 1.4vw, 22px); height: clamp(14px, 1.4vw, 22px); background: var(--gold); transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .vband__track { flex-wrap: wrap; width: auto; justify-content: center; } }

/* =========================================================
   Curtain reveal on feature imagery
   ========================================================= */
.wipe { clip-path: inset(18% 8% 18% 8% round var(--radius-l)); transition: clip-path 1.2s var(--ease); }
.wipe img { transform: scale(1.18); transition: transform 1.6s var(--ease); }
.wipe.is-in { clip-path: inset(0 0 0 0 round var(--radius-l)); }
.wipe.is-in img { transform: scale(1); }
.wipe.is-in.tile:hover img { transform: scale(1.05); }

/* =========================================================
   Cursor "View" label
   ========================================================= */
.vcursor { position: fixed; left: 0; top: 0; z-index: 400; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-weight: 800; font-size: .85rem; letter-spacing: .02em; pointer-events: none; opacity: 0; scale: .3; transition: opacity .25s, scale .35s var(--ease); }
.vcursor.is-on { opacity: 1; scale: 1; }

/* =========================================================
   Touch & legibility pass (WCAG 2.5.8 / Apple HIG 44px targets)
   ========================================================= */
.hero__ctrls button { width: 44px; height: 44px; }
.link-arrow { min-height: 44px; padding-bottom: 0; border-bottom: 0; background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 8px) / 100% 2px no-repeat; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.toggle-night { min-height: 44px; padding: 10px 16px; font-size: .85rem; }
.est-copy { min-height: 44px; padding-top: 4px; }
.est-note, .dock__flag, .footer__certs li { font-size: .8rem; }
.badge { font-size: .8rem; }
.cert__badge { font-size: .8rem; }
@media (max-width: 1279px) { .menu-btn { width: 46px; height: 46px; flex: none; } }
@media (pointer: coarse) {
  main a[href^="tel:"], main a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__col ul a { padding: 9px 0; }
}
@media (max-width: 760px) {
  .site-header .wrap { gap: 10px; }
  .site-header .brand { flex: 1 1 auto; min-width: 0; }
  .brand__text { min-width: 0; }
  .brand__name { font-size: clamp(.8rem, 3.6vw, .92rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-header .brand__mark { width: 38px; flex: none; }
}

/* =========================================================
   Inner pages: same cinematic language as the landing page
   ========================================================= */
.reveal { transition-delay: var(--d, 0ms); }
.page-hero { min-height: min(86svh, 860px); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 40px) 0 clamp(32px, 5vh, 56px); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; }
.page-hero .wrap > * { grid-column: 1; }
.page-hero__bg img { transform: scale(1.08); animation: kenburns 9s var(--ease) forwards; }
.page-hero::after { background: linear-gradient(180deg, rgba(21, 18, 13, .55) 0%, rgba(21, 18, 13, .1) 35%, rgba(21, 18, 13, .82) 100%), linear-gradient(90deg, rgba(21, 18, 13, .7) 0%, rgba(21, 18, 13, .1) 70%); }
.page-hero h1 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5.6rem); line-height: .96; max-width: 16ch; margin-bottom: 24px; }
.page-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.page-hero h1 .w > span { display: inline-block; animation: wrise 1s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 100ms); }
@keyframes wrise { from { transform: translateY(105%); } to { transform: none; } }
.page-hero .crumbs { animation: fadein .8s both; }
.page-hero .lede { max-width: 50ch; color: #e6dfd2; animation: fadein 1s .5s both; margin: 0; }
.page-hero .btn-row { animation: fadein 1s .6s both; margin-top: 28px; }
.page-hero__card { grid-column: 2 !important; grid-row: 1 / span 4; align-self: end; animation: fadein 1s .7s both; }
.page-hero__card .hero__caption-top { margin-bottom: 10px; }
.page-hero__card ul { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.page-hero__card li strong { display: block; font-size: 1.35rem; font-variation-settings: "wdth" 120; color: #fff; line-height: 1.05; }
.page-hero__card li span { font-size: .8rem; color: #d8cfc1; }
.page-hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(32px, 5vh, 56px); display: none; }
@media (max-width: 960px) {
  .page-hero { min-height: 0; padding-top: calc(var(--header-h) + 72px); }
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero__card { grid-column: 1 !important; grid-row: auto; margin-top: 12px; width: 100%; }
}
/* creds strip reused under inner heroes: numbers become the focus */
.creds--stats strong { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-bottom: 6px; }
.creds--stats strong sup { font-size: .5em; color: var(--gold); vertical-align: top; position: relative; top: .15em; margin-left: 2px; }
.creds--stats li { padding-top: 26px; padding-bottom: 26px; }

/* Timelines fill with gold as you scroll; milestones light up */
.timeline { border-top: 0; position: relative; padding-top: 2px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.timeline::before { background: var(--rule); }
.section--dark .timeline::before { background: var(--rule-dark); }
.timeline::after { background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }
.timeline li::before { background: var(--paper); border-color: var(--rule); transition: background .4s, border-color .4s, transform .4s var(--ease); z-index: 1; }
.section--dark .timeline li::before { background: var(--ink); border-color: var(--rule-dark); }
.section--concrete .timeline li::before { background: var(--concrete); }
.timeline li.is-lit::before { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
.timeline li strong { transition: color .4s; }
.timeline li:not(.is-lit) strong { color: var(--steel-2); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; padding: 0 0 0 26px; }
  .timeline::before, .timeline::after { top: 0; bottom: 0; right: auto; width: 2px; height: auto; left: 6px; }
  .timeline::after { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .timeline li { padding: 0 0 28px; }
  .timeline li::before { left: -26px; top: 4px; }
}

/* Services: big outlined index numbers on each discipline */
.svc-rows { counter-reset: svc; }
.svc-row { counter-increment: svc; }
.svc-row__body { position: relative; }
.svc-row__body::before { content: counter(svc, decimal-leading-zero); display: block; font-size: clamp(3.4rem, 2rem + 4vw, 6.5rem); font-weight: 900; line-height: .85; letter-spacing: -.04em; font-variation-settings: "wdth" 125; color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 18px; }

/* Contact: quick-action cards */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.qa-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 210px; padding: 26px 24px; border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), border-color .3s, color .3s; }
.qa-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease); }
.qa-card:hover, .qa-card:focus-visible { transform: translateY(-4px); color: #fff; border-color: var(--ink); }
.qa-card:hover::before, .qa-card:focus-visible::before { transform: none; }
.qa-card__ic { width: 52px; height: 52px; border-radius: var(--radius-m); background: var(--gold); color: var(--ink); display: grid; place-items: center; margin-bottom: auto; }
.qa-card__ic svg { width: 24px; height: 24px; }
.qa-card small { font-size: .82rem; color: var(--steel); margin-top: 22px; transition: color .3s; }
.qa-card:hover small, .qa-card:focus-visible small { color: #cbc1b2; }
.qa-card strong { font-size: 1.15rem; font-variation-settings: "wdth" 110; line-height: 1.25; overflow-wrap: anywhere; }
.qa-card__go { position: absolute; top: 24px; right: 22px; width: 20px; height: 20px; color: var(--gold); transition: transform .35s var(--ease); }
.qa-card:hover .qa-card__go { transform: translate(3px, -3px); }
.qa-card--wa .qa-card__ic { background: #25d366; color: #fff; }
@media (max-width: 1080px) { .qa-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .qa-grid { grid-template-columns: 1fr; } .qa-card { min-height: 0; } .qa-card small { margin-top: 14px; } }

/* moving gallery variants */
.mgal--short { height: clamp(420px, 48vw, 600px); }
.mgal--dark { background: transparent; }
.section--dark .mgal-head .lede, .mgal-sec--dark .lede { color: #cbc1b2; }
.mgal-sec--dark { background: var(--ink); color: #fff; }
.mgal-sec--dark .head__kicker { color: #cbc1b2; }
.mgal-sec--dark .mgal__i { background: var(--ink-2); }
.mgal-sec--dark + .vband, .vband--dark { background: var(--ink); border-color: var(--rule-dark); }
.vband--dark .vband__track span { color: #fff; }
.vband--dark .vband__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke-color: rgba(255, 255, 255, .7); }
.mgal-sec--dark + .vband .vband__track span { color: #fff; }
.mgal-sec--dark + .vband .vband__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke-color: rgba(255, 255, 255, .7); }
figure.mgal__i { margin: 0; cursor: default; }
@media (prefers-reduced-motion: reduce) { .page-hero__bg img { animation: none; transform: none; } }
.page-hero--compact { min-height: min(62svh, 620px); }

/* =========================================================
   Estimator v2: modes, rooms, small works, budget
   ========================================================= */
[hidden] { display: none !important; }
.opts--modes .opt label { min-height: 112px; justify-content: flex-start; font-weight: 750; font-size: 1rem; }
.opts--modes .opt label svg { width: 30px; height: 30px; }
.opts--modes .opt input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.opts--modes .opt input:checked + label small { color: var(--on-dark-2); }
.opts--modes .opt input:checked + label svg { color: var(--gold); }
.est-exact { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .9rem; color: var(--steel); flex-wrap: wrap; }
.est-exact__field { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.est-exact input { width: 120px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--rule); border-radius: var(--radius-m); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; background: #fff; color: var(--ink); }
.est-exact input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.est-rooms { padding: 18px; margin-bottom: 22px; background: var(--gold-soft); border-radius: var(--radius-card); }
.est-rooms .est-label { margin-bottom: 12px; }
.est-rooms__row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; font-weight: 600; }
.est-rooms__row span { margin-right: 10px; }
.est-rooms .stepper button { width: 44px; height: 44px; }
.est-rooms .stepper output { min-width: 40px; }
/* small-works job list */
.jobs { display: grid; gap: 8px; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: var(--radius-card); background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.job.is-on { border-color: var(--gold); box-shadow: 0 10px 26px -18px rgba(120, 80, 0, .5); background: #fffdf6; }
.job__pick { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; min-width: 0; }
.job__pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.job__box { flex: none; width: 22px; height: 22px; margin-top: 2px; border: 1.5px solid var(--steel-2); border-radius: 6px; background: #fff center / 14px no-repeat; transition: .2s; }
.job__pick input:checked + .job__box { background-color: var(--gold); border-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1915' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.job__pick input:focus-visible + .job__box { outline: 3px solid var(--gold); outline-offset: 2px; }
.job__txt strong { display: block; font-size: .98rem; font-variation-settings: "wdth" 106; }
.job__txt small { display: block; font-size: .8rem; color: var(--steel); line-height: 1.35; margin-top: 2px; }
.job__cost { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--bronze); white-space: nowrap; }
.job__qty { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; padding-left: 34px; }
.job__qty button { width: 40px; height: 40px; border: 1.5px solid var(--rule); background: #fff; border-radius: var(--radius-m); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.job__qty button:hover { border-color: var(--gold); }
.job__qty input { width: 86px; height: 40px; text-align: center; border: 1.5px solid var(--rule); border-radius: var(--radius-m); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; }
.job__qty span { font-size: .85rem; color: var(--steel); margin-left: 4px; }
/* results */
.est-result__hint { margin: 8px 0 0; color: var(--on-dark-2); font-size: .92rem; }
.est-result__row--2 { grid-template-columns: 1fr 1fr; }
.est-break li.f { color: var(--on-dark-3); }
.est-break li.f i { background: transparent !important; border: 1.5px dashed var(--on-dark-3); }
.est-plan { margin: 0 0 18px; border-top: 1px solid var(--rule-dark); padding-top: 12px; }
.est-plan summary { cursor: pointer; font-weight: 700; color: var(--gold); padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.est-plan ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: st; }
.est-plan li { counter-increment: st; display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule-dark); font-size: .88rem; }
.est-plan li span::before { content: counter(st) ". "; color: var(--gold); font-weight: 700; }
.est-plan li small { display: block; color: var(--on-dark-3); font-size: .78rem; margin-left: 1.2em; }
.est-plan li strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-flag { margin: 0 0 16px; padding: 12px 14px; background: rgba(228, 161, 2, .12); border-left: 3px solid var(--gold); border-radius: 0 var(--radius-m) var(--radius-m) 0; font-size: .86rem; color: var(--on-dark-1); }
.est-flag a { color: var(--gold); }
.bud-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.bud-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: var(--radius-card); border: 1.5px solid var(--rule-dark); background: rgba(255, 255, 255, .04); color: #fff; text-align: left; transition: border-color .2s, background .2s, transform .3s var(--ease); }
.bud-card:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.bud-card.is-on { border-color: var(--gold); background: rgba(228, 161, 2, .12); }
.bud-card small { font-size: .78rem; color: var(--on-dark-2); }
.bud-card strong { font-size: 1.35rem; font-variation-settings: "wdth" 118; font-variant-numeric: tabular-nums; }
.bud-card span { font-size: .78rem; color: var(--on-dark-2); }
.bud-card em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--gold); margin-top: 8px; }
.bud-card:disabled { opacity: .45; }
@media (max-width: 480px) { .bud-cards { grid-template-columns: 1fr; } .opts--modes { grid-template-columns: 1fr; } .opts--modes .opt label { min-height: 0; } }


/* =========================================================
   Warm theme & selective rounding (gold · white · warm charcoal)
   Square = actions (buttons, inputs, tabs). Round = people, photos, badges, cards.
   ========================================================= */
::selection { background: var(--gold); color: var(--ink); }
body { background: var(--paper); }
.section--dark { background: var(--ink); }
.section--concrete { background: var(--concrete); }
/* photos & cards */
.mgal__i, .map-card, .map-card__img, .hero__caption, .dock__card, .est-stage, .est-result, .qa-card, .gco, .teaser, .teaser__stage, .form, .modal__dialog, .sub, .svc-row__media, .photo, .person__img, .tile, .card, .vacancy-empty { border-radius: var(--radius-card); }
.mgal__i { border-radius: 14px; }
.person__img { border-radius: var(--radius-card); }
.gco__logo { border-radius: 12px; }
/* side badges: soft tabs that hug the screen edge */
.dock__tab { border-radius: 16px 0 0 16px; }
.dock-fab { border-radius: 999px; }
.dock-fab img { border-radius: 50%; }
/* status pills & small labels */
.badge, .footer__certs li, .dock__flag, .hero__since, .est-stage__label, .svc-row__media figcaption { border-radius: 999px; }
.badge { background: rgba(255, 253, 249, .92); }
/* carousel progress pills */
.hero__progress i { border-radius: 99px; }
/* gold accents on dark */
.section--dark .head__kicker, .mgal-sec--dark .head__kicker, .creds--stats strong sup { color: var(--gold); }
.creds { background: var(--ink); }
.head__kicker::before { background: var(--gold); }
.lede { color: var(--steel); }
.section--dark .lede { color: var(--on-dark-2); }
.btn--ghost:hover { --bg: rgba(228, 161, 2, .12); }
.est-bar span:nth-child(4), .est-break li:nth-child(4) i { background: #d9cdb6; }
.job__cost { grid-row: 1; grid-column: 2; align-self: start; padding-top: 2px; }
.est-sticky { display: none; }
@media (max-width: 960px) {
  .est-sticky { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 10px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 98; padding: 10px 16px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55); border: 1px solid rgba(228, 161, 2, .4); transition: opacity .3s, transform .3s var(--ease); }
  .est-sticky small { display: block; font-size: .72rem; color: var(--on-dark-2); }
  .est-sticky strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 112; }
  .est-sticky em { font-style: normal; font-weight: 700; font-size: .85rem; color: var(--ink); background: var(--gold); padding: 9px 14px; border-radius: 0; }
  .est-sticky.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
  body:has(.est-sticky) .dock-fab { display: none; }
}
@media (max-width: 960px) { .est-side { position: static; } }
/* Canva-designed banners already carry their own gradient and gold framing */
.page-hero--banner::after { background: linear-gradient(180deg, rgba(21, 18, 13, .35) 0%, rgba(21, 18, 13, 0) 30%, rgba(21, 18, 13, .55) 100%); }
.page-hero--banner .page-hero__bg img { object-position: 70% center; }
@media (max-width: 960px) { .page-hero--banner::after { background: linear-gradient(180deg, rgba(21, 18, 13, .5), rgba(21, 18, 13, .78)); } }
figure.mgal__i { cursor: default; } .mgal__i:hover img { transform: scale(1.04); }
/* Sticky service tabs follow the header: slide up with it when it hides on scroll */
.svc-tabs { transition: top .35s var(--ease); background: rgba(255, 253, 249, .96); }
body:has(.site-header.is-hidden) .svc-tabs { top: 0; }

/* =========================================================
   Floating header bar (inspired by surge.global)
   A white bar floating below the top edge, soft layered shadow,
   logo · quiet links · one solid square CTA.
   ========================================================= */
:root { --bar-top: 16px; --bar-h: 64px; --header-h: 96px; }
.site-header { inset: var(--bar-top) 0 auto 0; height: var(--bar-h); color: var(--ink); background: none !important; box-shadow: none !important; pointer-events: none; transition: transform .45s var(--ease); }
.site-header::before { display: none; }
.site-header .wrap {
  pointer-events: auto; width: min(1240px, calc(100% - 2 * var(--gutter))); max-width: none; margin: 0 auto; padding: 0 8px 0 18px; gap: 20px;
  background: rgba(255, 253, 249, .97); border: 1px solid rgba(27, 25, 21, .07); border-radius: 14px;
  box-shadow: 0 29px 64px rgba(40, 32, 18, .10), 0 116px 116px rgba(40, 32, 18, .07), 0 2px 6px rgba(40, 32, 18, .05);
  transition: box-shadow .4s var(--ease);
}
.site-header.is-solid .wrap { box-shadow: 0 18px 40px -12px rgba(40, 32, 18, .22), 0 2px 6px rgba(40, 32, 18, .06); }
.site-header.is-hidden { transform: translateY(calc(-100% - var(--bar-top) - 12px)); }
.site-header .brand { color: var(--ink); }
.site-header .brand__mark { width: 46px; }
.site-header .brand__name { font-size: 1rem; }
.site-header .nav { margin: 0 auto; }
.site-header .nav__link { color: var(--ink); font-weight: 500; font-size: .95rem; padding: 10px 13px; background: none !important; }
.site-header .nav__link::before { content: ""; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-header .nav__link:hover::before, .site-header .nav__link:focus-visible::before { transform: scaleX(1); }
.site-header .nav__link[aria-current="page"] { font-weight: 700; }
.site-header .nav__link[aria-current="page"]::after { left: 13px; right: 13px; bottom: 6px; }
.site-header .header-cta { min-height: 48px; padding: 0 22px; border-radius: 0; }
.site-header .nav__menu { top: calc(100% + 14px); border-radius: 14px; }
body.nav-open .site-header .wrap { box-shadow: none; }
@media (max-width: 1360px) and (min-width: 1280px) { .site-header .nav__link { padding: 10px 9px; font-size: .9rem; } .site-header .nav__link::before, .site-header .nav__link[aria-current="page"]::after { left: 9px; right: 9px; } }
@media (max-width: 1279px) {
  :root { --bar-top: 10px; --bar-h: 60px; --header-h: 80px; }
  .site-header .wrap { width: calc(100% - 20px); padding: 0 6px 0 14px; border-radius: 12px; }
  .site-header .nav { margin: 0; }
  .site-header .nav__link { color: #fff; font-weight: 700; padding: 14px 0; }
  .site-header .nav__link::before { display: none; }
  .nav-open .site-header { color: var(--ink); }
  .site-header .menu-btn { background: var(--concrete); border-radius: 10px; }
}

/* =========================================================
   Floating category tabs (inspired by primelands.lk)
   Icon-over-label tabs on a white floating bar that overlaps the hero edge.
   ========================================================= */
.hero .wrap { padding-bottom: calc(clamp(28px, 5vh, 56px) + 62px); }
.ftabs-sec { position: relative; z-index: 3; padding: 0 0 clamp(56px, 7vw, 100px); background: var(--paper); }
.ftabs { position: relative; margin-top: -62px; display: flex; gap: 8px; padding: 8px; background: #fff; border-radius: 16px; border: 1px solid rgba(27, 25, 21, .06); box-shadow: 0 30px 60px -24px rgba(40, 32, 18, .28), 0 4px 12px rgba(40, 32, 18, .06); overflow-x: auto; scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftab { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; min-width: 128px; padding: 14px 18px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease), transform .3s var(--ease); }
.ftab svg { width: 28px; height: 28px; color: var(--bronze); transition: color .4s, transform .4s var(--ease); }
.ftab:hover { background: var(--concrete); }
.ftab:hover svg { transform: translateY(-2px); }
.ftab[aria-selected="true"] { background: var(--gold); color: var(--ink); box-shadow: 0 12px 24px -12px rgba(160, 110, 0, .6); }
.ftab[aria-selected="true"] svg { color: var(--ink); }
.ftab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ftabs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); }
.ftabs-head h2 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -.02em; }
.ftabs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.ftile { min-height: 400px; text-align: left; cursor: pointer; }
.ftabs-grid.is-in .ftile { animation: ftile-in .7s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes ftile-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.ftile .tile__body { flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 1080px) { .ftabs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftile { min-height: 320px; } }
@media (max-width: 760px) {
  .hero .wrap { padding-bottom: calc(clamp(28px, 5vh, 56px) + 44px); }
  .ftabs { margin-top: -44px; border-radius: 14px; }
  .ftab { min-width: 108px; min-height: 80px; padding: 12px; font-size: .8rem; }
  .ftabs-grid { grid-template-columns: 1fr; }
  .ftile { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .ftabs-grid.is-in .ftile { animation: none; } }

/* Projects page filters: same icon-tab language */
.filters { padding: 8px; background: #fff; border-radius: 16px; border: 1px solid rgba(27, 25, 21, .06); box-shadow: 0 24px 50px -26px rgba(40, 32, 18, .25); }
.filter { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 104px; padding: 12px 14px; border-radius: 12px !important; border: 0 !important; background: transparent; font-weight: 650; transition: background .4s var(--ease), color .4s; }
.filter svg { width: 24px; height: 24px; color: var(--bronze); }
.filter:hover { background: var(--concrete); }
.filter[aria-pressed="true"] { background: var(--gold) !important; color: var(--ink) !important; }
.filter[aria-pressed="true"] svg { color: var(--ink); }
.filter .c { font-size: .75rem; opacity: .7; }
.filters .search { margin-left: auto; align-self: center; }
@media (max-width: 760px) {
  .ftabs { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent); scroll-snap-type: x proximity; }
  .ftab { scroll-snap-align: center; }
}
@media (max-width: 1279px) {
  .site-header .nav__link[aria-current="page"] { color: var(--gold); }
  .site-header .nav__mobile-cta { display: flex !important; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .site-header .nav__mobile-cta .btn--ghost { color: #fff; }
}

/* =========================================================
   Consistent corner scale (best practice: one radius system)
   10px controls · 14px bars · 16px cards · round badges & pills
   ========================================================= */
:root { --r-ctl: 10px; }
.btn, .site-header .header-cta, .est-exact input, .job__qty button, .job__qty input, .toggle-night, .stepper, .field input, .field select, .field textarea, .search, .search input, .tile__value, .est-sticky em { border-radius: var(--r-ctl) !important; }
.stepper { overflow: hidden; }
.opt label, .bud-card, .job, .filter, .ftab, .svc-tabs a { border-radius: 12px !important; }
.est-result, .est-stage, .form, .qa-card, .cta { border-radius: var(--radius-card) !important; }

/* =========================================================
   Services sub-menu: a floating bar that matches the header
   ========================================================= */
.svc-tabs { top: calc(var(--bar-top) + var(--bar-h) + 10px); z-index: 30; background: none !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 18px 0 0; pointer-events: none; transition: top .45s var(--ease); }
body:has(.site-header.is-hidden) .svc-tabs { top: var(--bar-top); }
.svc-tabs .wrap { pointer-events: auto; width: min(1240px, calc(100% - 2 * var(--gutter))); max-width: none; margin: 0 auto; padding: 6px; background: rgba(255, 253, 249, .97); border: 1px solid rgba(27, 25, 21, .07); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(40, 32, 18, .25), 0 2px 6px rgba(40, 32, 18, .05); }
.svc-tabs ul { padding: 0; gap: 4px; justify-content: space-between; }
.svc-tabs a { padding: 11px 16px; color: var(--steel); font-weight: 600; transition: background .35s var(--ease), color .25s; }
.svc-tabs a:hover { background: var(--concrete); color: var(--ink); }
.svc-tabs a.is-active { background: var(--gold); color: var(--ink); box-shadow: 0 8px 18px -10px rgba(160, 110, 0, .7); }
html:has(.svc-tabs) { scroll-padding-top: calc(var(--header-h) + 84px); }
@media (max-width: 1080px) {
  .svc-tabs { padding-top: 12px; }
  .svc-tabs .wrap { width: calc(100% - 20px); border-radius: 12px; }
  .svc-tabs ul { justify-content: flex-start; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .svc-tabs a { padding: 10px 14px; font-size: .86rem; }
}

/* =========================================================
   Phones: floating badge stack instead of the bottom bar
   ========================================================= */
.mbar { display: none !important; }
.fstack { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 0 !important; }
  .wa { display: grid !important; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .dock-fab { display: none !important; }
  .fstack { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; position: fixed; right: 19px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 90; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s, visibility .35s, transform .45s var(--ease); }
  .fstack.is-shown { opacity: 1; visibility: visible; transform: none; }
  .fbadge { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); border: 2px solid #fff; transition: transform .25s var(--ease); }
  .fbadge:active { transform: scale(.94); }
  .fbadge img { width: 26px; height: 26px; object-fit: contain; }
  .fbadge svg { width: 21px; height: 21px; }
  .fbadge--nova { background: #0f1112; }
  .fbadge--nova img { border-radius: 5px; }
  .fbadge--ncc { background: #1b1915; }
  .fbadge--ncc img { width: 30px; }
  .fbadge--call { background: var(--gold); color: var(--ink); }
  .fbadge__label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(8px, -50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
  .fstack.is-hinting .fbadge__label { opacity: 1; transform: translate(0, -50%); }
  .fstack.is-hinting .fbadge:nth-child(2) .fbadge__label { transition-delay: .12s; }
  .fstack.is-hinting .fbadge:nth-child(3) .fbadge__label { transition-delay: .24s; }
  .fbadge:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
  .fbadge:focus-visible .fbadge__label { opacity: 1; transform: translate(0, -50%); }
  /* estimator: the live price bar sits at the bottom, badges lift above it */
  .est-sticky { bottom: calc(10px + env(safe-area-inset-bottom)) !important; right: 82px !important; }
  body:has(.est-sticky) .fstack { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  /* badges tuck into the WhatsApp bubble while reading/scrolling, return when you stop */
  .fbadge { transition: transform .4s var(--ease), opacity .3s; }
  .fstack.is-scrolling:not(.is-hinting) .fbadge { opacity: 0; transform: translateY(calc((3 - var(--n)) * 56px + 40px)) scale(.4); pointer-events: none; }
  .fbadge:nth-child(1) { --n: 0; } .fbadge:nth-child(2) { --n: 1; } .fbadge:nth-child(3) { --n: 2; }
  .fbadge:nth-child(2) { transition-delay: .03s; } .fbadge:nth-child(1) { transition-delay: .06s; }
  /* brand fits the floating bar */
  .site-header .brand__mark { width: 36px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand__name { font-size: clamp(.76rem, 3.6vw, .9rem); font-variation-settings: "wdth" 108; }
}
@media (max-width: 760px) {
  /* Estimator is a focused tool: fewer floating extras, more room to work */
  body:has(.est-sticky) .fstack { display: none; }
  .est-sticky { left: 10px !important; right: 10px !important; padding: 10px 10px 10px 16px; }
  .est-sticky strong { font-size: 1rem; white-space: nowrap; }
  body:has(.est-sticky) .wa { bottom: calc(86px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  .est-stage { height: min(26vh, 220px) !important; }
}
/* Phones (final): three equal badges, always visible; no WhatsApp bubble */
@media (max-width: 760px) {
  .wa, body:has(.est-sticky) .wa { display: none !important; }
  .fstack, body:has(.est-sticky) .fstack { display: flex; bottom: calc(14px + env(safe-area-inset-bottom)); right: 14px; gap: 10px; opacity: 1; visibility: visible; transform: none; }
  .fbadge { width: 50px; height: 50px; }
  .fbadge img { width: 28px; height: 28px; }
  .fbadge--ncc img { width: 32px; }
  .fbadge svg { width: 22px; height: 22px; }
  /* estimator: badges sit above the live price bar */
  body:has(.est-sticky) .fstack { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* Developer credit (footer) — small, visible, dofollow link */
.credit-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; line-height: 1.4; color: #a39888; }
.credit-badge a { font-weight: 600; color: #f1ebe1; text-decoration: none; transition: color .2s; }
.credit-badge a:hover, .credit-badge a:focus-visible { color: #34d399; }


/* Services menu: numbered to match the 01–09 on each service; dropdown on smaller screens */
.svc-tabs__n { font-size: .72rem; font-weight: 700; color: var(--bronze); margin-right: 7px; font-variant-numeric: tabular-nums; opacity: .8; }
.svc-tabs a.is-active .svc-tabs__n { color: var(--ink); opacity: .7; }
.svc-tabs a { white-space: nowrap; }
.svc-jump { display: none; }
@media (max-width: 1240px) {
  .svc-tabs ul { display: none; }
  .svc-jump { display: flex; align-items: center; gap: 12px; padding: 4px 6px 4px 12px; }
  .svc-jump__k { flex: none; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
  .svc-jump select {
    flex: 1; min-width: 0; min-height: 46px; padding: 0 44px 0 14px; border: 1.5px solid var(--rule); border-radius: var(--r-ctl);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1915' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
    font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer;
  }
  .svc-jump select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
}
/* during a menu jump the header stays put, so landing is consistent */
body.is-jumping .site-header.is-hidden { transform: none; }
body.is-jumping .svc-tabs { top: calc(var(--bar-top) + var(--bar-h) + 10px) !important; transition: none; }
/* numbered bar fits 9 items on desktop */
@media (min-width: 1241px) {
  .svc-tabs ul { gap: 2px; }
  .svc-tabs a { padding: 10px 11px; font-size: .86rem; }
  .svc-tabs__n { margin-right: 5px; font-size: .68rem; }
}

/* =========================================================
   Responsive audit fixes (320px → 1920px)
   ========================================================= */
/* grid/flex children may never push their container wider than the screen */
.sub > *, .split > *, .svc-row > *, .contact > *, .est > *, .footer__grid > *, .fcta > *, .page-hero .wrap > *, .head > * { min-width: 0; }
.btn { max-width: 100%; }
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; padding-top: 12px; padding-bottom: 12px; }
  .sub__facts { gap: 0; }
  .sub__facts div + div { padding-left: 10px; }
  .sub__facts strong { font-size: 1.15rem; }
}
/* comfortable tap targets on phones & tablets (44px, WCAG 2.5.5 / Apple HIG) */
.site-header .brand, .footer__brand .brand { min-height: 44px; }
@media (max-width: 1024px), (pointer: coarse) {
  main a[href^="tel:"], main a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__line { min-height: 44px; align-items: center; margin-bottom: 4px; }
  .footer__col ul a { padding: 10px 0; }
  .credit-badge a { display: inline-flex; align-items: center; min-height: 44px; }
  .totop { min-height: 44px; }
}
/* About: certification badges readable */
.cert .cert__badge { width: 64px; height: 64px; font-size: .82rem; line-height: 1.1; text-align: center; }
/* Estimator: slider gets a full 44px touch area while the visible track stays 8px */
.range { height: 44px; margin: 4px 0 2px; background: linear-gradient(90deg, var(--gold) var(--p, 50%), var(--concrete-2) var(--p, 50%)) center / 100% 8px no-repeat; }
.range::-webkit-slider-thumb { width: 32px; height: 32px; }
.range::-moz-range-thumb { width: 26px; height: 26px; }
.range::-moz-range-track { background: transparent; }
/* Estimator: on narrow phones the night button becomes an icon so the label fits */
@media (max-width: 420px) {
  .toggle-night { width: 44px; padding: 0; justify-content: center; }
  .toggle-night .tn-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .est-stage__label { font-size: .76rem; }
}
/* Forms & lists: bigger targets */
.check input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
@media (max-width: 1024px), (pointer: coarse) { .contact__list a { display: inline-flex; align-items: center; min-height: 44px; } }
@media (max-width: 480px) {
  .sub__facts { grid-template-columns: 1fr; }
  .sub__facts div { display: flex; align-items: baseline; gap: 10px; padding: 10px 0 !important; border-left: 0 !important; }
  .sub__facts div + div { border-top: 1px solid; border-color: inherit; }
  .sub__facts strong { font-size: 1.2rem; min-width: 74px; }
  .sub__facts span { margin-top: 0; }
}
@media (max-width: 360px) {
  .fbadge { width: 44px !important; height: 44px !important; }
  .fbadge img { width: 24px !important; height: 24px !important; }
  .fstack { right: 10px !important; gap: 8px !important; }
}
/* hero content always sits at the bottom of the photo, whatever the device height */
.hero { display: flex; flex-direction: column; }
.hero .wrap { flex: 1 0 auto; height: auto; }
@media (max-width: 1080px) and (orientation: portrait) { .hero { min-height: min(100svh, 920px); } }

/* Header hide/show uses `top`, never `transform`: a transform on the header would make
   the fixed full-screen mobile menu position itself inside the header box (menu broke after scrolling). */
.site-header { transform: none !important; transition: top .45s var(--ease); }
.site-header.is-hidden { top: calc(-1 * (var(--bar-h) + 24px)); }
body.is-jumping .site-header.is-hidden, body.nav-open .site-header { top: var(--bar-top) !important; }
/* The floating bar paints its own background, so the old header blur is not needed — and a
   backdrop-filter on the header would confine the fixed mobile menu to the header box. */
.site-header, .site-header.is-solid { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; filter: none !important; }

/* =========================================================
   Mobile polish pass: footer, teaser, button rows
   ========================================================= */
/* footer toggle looks like a plain heading on desktop */
.footer__toggle { all: unset; display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: default; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.footer__toggle svg { display: none; }

/* Estimator teaser: its own breathing room after the dark Services section */
.section--teaser { padding-top: clamp(56px, 8vw, 110px); }

@media (max-width: 760px) {
  /* ---- Footer: compact, scannable, thumb-friendly ---- */
  .footer__grid { grid-template-columns: 1fr !important; gap: 0 !important; padding: 36px 0 8px; }
  .footer__brand { padding-bottom: 28px; }
  .footer__certs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer__certs li { text-align: center; }
  .footer__col:not(.footer__office) { border-top: 1px solid var(--rule-dark); }
  .footer__col:not(.footer__office) h2 { margin: 0; }
  .footer__toggle { cursor: pointer; min-height: 56px; font-size: .82rem; color: #f1ebe1; }
  .footer__toggle svg { display: block; width: 18px; height: 18px; color: var(--gold); transform: rotate(90deg); transition: transform .3s var(--ease); }
  .footer__col.is-open .footer__toggle svg { transform: rotate(-90deg); }
  .footer__col:not(.footer__office) ul { display: none; padding: 0 0 14px; }
  .footer__col.is-open ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .footer__office { border-top: 1px solid var(--rule-dark); padding-top: 22px; margin-top: 0; }
  .footer__office h2 { margin-bottom: 10px; }
  .footer__line { min-height: 48px; margin-bottom: 0; align-items: center; }
  .footer__group { padding: 20px 0; }
  .footer__group-label { text-align: left; }
  .gco { padding: 12px; }
  /* bottom bar: centred, ordered, never under the floating badges */
  .footer__bottom { flex-direction: column; align-items: center !important; text-align: center; gap: 14px; padding: 24px 0 28px; }
  .footer__bottom > span:first-child { order: 3; font-size: .8rem; max-width: 30ch; line-height: 1.5; }
  .footer__bottom .social { order: 1; justify-content: center; }
  .footer__bottom .totop { order: 2; width: 100%; justify-content: center; min-height: 48px; border: 1px solid var(--rule-dark); border-radius: var(--r-ctl); }
  .footer__bottom .credit-badge { order: 4; justify-content: center; flex-wrap: wrap; }
  /* the floating badges occupy ~190px at the bottom right: end the page with space for them */
  .site-footer .footer__word { margin-bottom: 24px; }

  /* ---- Primary actions: full width, easy to tap ---- */
  .teaser .btn-row, .cta .btn-row, .sub .btn-row, .page-hero .btn-row, .hero .btn-row, .fcta__actions, .est-result .btn-row, .vacancy-empty .btn-row { flex-direction: column; align-items: stretch; }
  .teaser .btn, .cta .btn, .sub .btn, .page-hero .btn-row .btn, .hero .btn-row .btn, .fcta__actions .btn, .est-result .btn-row .btn, .form button[type="submit"], .form .btn { width: 100%; justify-content: center; }
  .teaser { padding: 24px; }
  .teaser__stage { margin: 0 -8px; }
}


/* =========================================================
   Hero consistency: every inner hero fills one screen with the
   same anchored layout (crumbs, title, intro, buttons, card)
   ========================================================= */
.page-hero, .page-hero--compact {
  --hero-strip: 116px;                        /* stats strip that follows most heroes */
  min-height: clamp(560px, calc(100svh - var(--hero-strip)), 900px);
  height: auto; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 28px) 0 clamp(36px, 6vh, 64px);
}
.page-hero .wrap { width: 100%; align-items: end; }
.page-hero h1 { font-size: clamp(2.3rem, min(1.1rem + 4.2vw, 9.4vh), 5.4rem); max-width: 16ch; margin-bottom: clamp(14px, 2.4vh, 24px); }
.page-hero .crumbs { margin-bottom: clamp(14px, 3vh, 28px); }
.page-hero .lede { max-width: 52ch; }
.page-hero .btn-row { margin-top: clamp(18px, 3.4vh, 30px); }
.page-hero__card { width: min(380px, 100%); }
@media (max-width: 960px) {
  .page-hero, .page-hero--compact { min-height: clamp(520px, calc(100svh - var(--hero-strip)), 1000px); padding-top: calc(var(--header-h) + 24px); }
  .page-hero__card { width: min(460px, 100%); margin-top: 22px; }
}
/* Phones: the hero is exactly one screen; title, intro and both buttons always visible */
@media (max-width: 760px) {
  .page-hero, .page-hero--compact { min-height: 100svh; padding: calc(var(--header-h) + 16px) 0 28px; }
  .page-hero .crumbs { margin-bottom: 14px; font-size: .8rem; }
  .page-hero h1 { font-size: clamp(2rem, 9.6vw, 2.7rem); line-height: 1; margin-bottom: 14px; }
  .page-hero .lede { font-size: 1rem; line-height: 1.5; }
  .page-hero .btn-row { margin-top: 20px; gap: 10px; padding-right: 64px; }   /* clear of the round badges */
  .page-hero .btn-row .btn { min-height: 50px; }
  .page-hero__card { display: none; }          /* its facts repeat in the stats strip right below */
  .hero .btn-row { padding-right: 64px; gap: 10px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .page-hero h1 { font-size: clamp(1.8rem, 8.6vw, 2.3rem); }
  .page-hero .lede { font-size: .94rem; }
  .page-hero .btn-row { margin-top: 16px; }
  .page-hero .btn-row .btn { min-height: 46px; }
}

/* =========================================================
   Homepage category tabs: dark floating bar, photo badges,
   project counts and a gold highlight that glides between tabs
   ========================================================= */
.ftabs {
  --ft-pad: 8px;
  background: linear-gradient(180deg, #24211b, #1b1915); border: 1px solid rgba(228, 161, 2, .18);
  border-radius: 18px; padding: var(--ft-pad); gap: 4px; isolation: isolate;
  box-shadow: 0 34px 70px -28px rgba(20, 15, 5, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.ftabs__ind {
  position: absolute; z-index: -1; top: var(--ft-pad); bottom: var(--ft-pad); left: 0; width: 0;
  border-radius: 13px; background: linear-gradient(135deg, #f0b21a, var(--gold) 55%, #c98d00);
  box-shadow: 0 14px 28px -14px rgba(228, 161, 2, .8), 0 1px 0 rgba(255, 255, 255, .35) inset;
  transition: transform .55s var(--ease), width .55s var(--ease); pointer-events: none;
}
.ftab {
  position: relative; flex: 1 0 auto; flex-direction: row; justify-content: flex-start; gap: 14px;
  min-height: 84px; min-width: 200px; padding: 12px 18px 12px 12px; text-align: left;
  background: transparent !important; color: #f1ebe1; box-shadow: none !important;
}
.ftab:hover { background: rgba(255, 255, 255, .05) !important; }
.ftab__pic { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(228, 161, 2, .45); transition: box-shadow .45s var(--ease), transform .45s var(--ease); }
.ftab__pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .8s var(--ease); }
.ftab__pic svg { position: absolute; right: -2px; bottom: -2px; width: 22px !important; height: 22px !important; padding: 4px; border-radius: 50%; background: var(--gold); color: var(--ink) !important; box-shadow: 0 0 0 2px #1b1915; }
.ftab:hover .ftab__pic img { transform: scale(1.25); }
.ftab:hover .ftab__pic { transform: rotate(-4deg); }
.ftab__txt { display: grid; gap: 3px; line-height: 1.15; }
.ftab__txt b { font-size: .95rem; font-weight: 700; }
.ftab__txt small { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: #b9ae9c; transition: color .4s; }
.ftab__n { position: absolute; top: 9px; right: 12px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: rgba(241, 235, 225, .32); transition: color .4s; }
.ftab[aria-selected="true"] { color: var(--ink); }
.ftab[aria-selected="true"] .ftab__txt small, .ftab[aria-selected="true"] .ftab__n { color: rgba(27, 25, 21, .66); }
.ftab[aria-selected="true"] .ftab__pic { box-shadow: 0 0 0 2px #1b1915, 0 8px 18px -6px rgba(27, 25, 21, .6); }
.ftab[aria-selected="true"] .ftab__pic svg { background: var(--ink); color: var(--gold) !important; box-shadow: 0 0 0 2px var(--gold); }
.ftab:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
/* fallback before JS upgrades the tab, or with no JS */
.ftab:not(:has(.ftab__pic))[aria-selected="true"] { background: var(--gold) !important; }
@media (max-width: 1240px) { .ftab { min-width: 180px; gap: 12px; } .ftab__pic { width: 48px; height: 48px; } }
@media (max-width: 760px) {
  .ftabs { border-radius: 16px; --ft-pad: 6px; }
  .ftabs__ind { border-radius: 11px; }
  .ftab { min-width: 172px; min-height: 72px; padding: 10px 14px 10px 10px; gap: 10px; }
  .ftab__pic { width: 46px; height: 46px; }
  .ftab__txt b { font-size: .88rem; }
  .ftab__txt small { font-size: .68rem; }
  .ftab__n { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ftabs__ind, .ftab__pic, .ftab__pic img { transition: none; } }

/* Category tabs sit on their own below the hero (no overlap), with real breathing room */
.hero .wrap { padding-bottom: clamp(28px, 5vh, 56px) !important; }
.ftabs-sec { padding-top: clamp(28px, 4vw, 56px); }
.ftabs { margin-top: 0 !important; box-shadow: 0 24px 48px -30px rgba(20, 15, 5, .5); }
.ftabs-head { margin-top: clamp(36px, 4.5vw, 60px); }
@media (max-width: 760px) {
  .ftabs-sec { padding-top: 24px; }
  /* homepage hero = one phone screen: on short phones the slide card keeps only its controls */
  .hero { min-height: 0; height: 100svh; max-height: none; }
}
@media (max-width: 760px) and (max-height: 760px) {
  .hero .hero__caption [data-caption] { display: none !important; }
  .hero .hero__caption { padding: 10px 12px; }
  .hero .hero__ctrls { margin-top: 0; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .hero__intro { font-size: .95rem; }
}
/* Hero never taller than the screen: content scales with screen height */
.page-hero { max-height: 100svh; }
@media (max-width: 760px) {
  .hero .hero__caption { width: calc(100% - 62px); }   /* clear of the round badges */
  .hero .hero__since { margin-bottom: 10px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .hero h1, .page-hero h1 { font-size: clamp(2.2rem, 8.6vh, 4.4rem); }
  .page-hero .lede, .hero__intro { font-size: 1rem; }
}
/* tab photo: clip only the photo, so the icon badge sits fully visible on the ring */
.ftab__pic { overflow: visible; border-radius: 50%; }
.ftab__ph { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.ftab__pic svg { right: -6px; bottom: -6px; z-index: 1; }
@media (max-width: 760px) and (max-height: 600px) {
  .hero .hero__since { display: none; }
  .hero h1 { font-size: 1.8rem; margin-bottom: 12px; }
  .hero__intro { font-size: .9rem; line-height: 1.45; }
  .hero .btn-row { margin-top: 14px; }
  .hero .btn-row .btn { min-height: 44px; }
}

/* Homepage hero on phones: no caption card, just slim progress dots + project name */
.hero__dots { display: none; }
@media (max-width: 760px) {
  .hero .hero__caption { display: none !important; }
  .hero__bottom { grid-template-columns: 1fr; gap: 0; }
  .hero__dots { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-right: 64px; min-width: 0; }
  .hero__dots-row { display: flex; gap: 2px; flex: none; }
  .hero__dots button { width: 22px; height: 32px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; transition: width .5s var(--ease); }
  .hero__dots button i { position: relative; display: block; width: calc(100% - 6px); height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .35); overflow: hidden; }
  .hero__dots button.is-active { width: 48px; }
  .hero__dots button.is-active i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: progress var(--slide-ms, 7000ms) linear forwards; }
  .hero__dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
  .hero__dots-name { min-width: 0; font-size: .8rem; color: #e6dfd2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .hero__dots button.is-active i::after { animation: none; } }

/* phones: credit on two short centred lines so the round badges never cover it */
@media (max-width: 760px) { .footer__bottom .credit-badge { flex-direction: column; gap: 2px; max-width: calc(100% - 128px); margin-inline: auto; } }

/* =========================================================
   Group company cards (NCC Piling / NovaNest)
   ========================================================= */
/* the photo sits flush in the card: the card already rounds the outer corners,
   so the reveal must not round the inner ones */
.sub__media.wipe { clip-path: inset(18% 8% 18% 8% round var(--radius-l)); }   /* same reveal as every other photo */
.sub__media.wipe.is-in { clip-path: inset(0 0 0 0 round 0); }   /* ends flush with the card edges */
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .sub__media { aspect-ratio: 16 / 10; }
  .sub__body { padding: 26px 22px 24px; gap: 24px; }
  .sub__body h3 { font-size: clamp(1.6rem, 7.4vw, 2rem); line-height: 1.08; }
  .sub__role { line-height: 1.45; }
  /* facts: one aligned two-column list (value | label) */
  .sub__facts { grid-template-columns: 1fr !important; padding-top: 4px; }
  .sub__facts div { display: grid !important; grid-template-columns: 112px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 12px 0 !important; border-left: 0 !important; }
  .sub__facts div + div { border-top: 1px solid; border-color: inherit; }
  .sub__facts strong { font-size: 1.15rem; line-height: 1.15; min-width: 0; }
  .sub__facts span { margin-top: 0; font-size: .82rem; line-height: 1.35; }
  .sub .btn-row { margin-top: 22px !important; }
  .sub .btn { width: 100%; justify-content: center; text-align: center; }
}

/* Homepage slide card: one fixed size for every slide.
   All captions share one grid cell, so the card is always as tall as the
   longest caption; the inactive ones are invisible but still hold the space. */
.hero .hero__caption { display: grid; grid-template-columns: minmax(0, 1fr); width: 380px; max-width: 100%; }
.hero .hero__caption [data-caption] { grid-area: 1 / 1; transition: opacity .5s var(--ease); }
.hero .hero__caption [data-caption].is-off { visibility: hidden; opacity: 0; }
.hero .hero__caption .hero__ctrls { grid-area: 2 / 1; }

/* header labels never wrap */
.site-header .nav__link, .site-header .header-cta, .brand__name { white-space: nowrap; }

/* =========================================================
   FAQ (contact page) – accordion in the site's card language
   ========================================================= */
.faq__wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__wrap .head { display: block; position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
.faq__wrap .head .lede { margin-top: 18px; }
.faq__list { display: grid; gap: 10px; }
.faq__item { background: #fff; border: 1px solid rgba(27, 25, 21, .08); border-radius: 14px; transition: box-shadow .4s var(--ease), border-color .4s; }
.faq__item[open] { border-color: rgba(228, 161, 2, .45); box-shadow: 0 18px 40px -26px rgba(40, 32, 18, .35); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 1.02rem; line-height: 1.35; min-height: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; width: 18px; height: 18px; color: var(--bronze); transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq__item[open] summary svg { transform: rotate(-90deg); }
.faq__item summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 14px; }
.faq__item p { margin: 0; padding: 0 22px 22px; color: var(--muted, #5d564b); line-height: 1.65; max-width: 68ch; }
@media (max-width: 900px) { .faq__wrap { grid-template-columns: 1fr; } .faq__wrap .head { position: static; } }

/* =========================================================
   Narrow phones (≤380px): buttons stay on one line
   ========================================================= */
@media (max-width: 380px) {
  .btn { padding-left: 16px; padding-right: 16px; font-size: .92rem; gap: 8px; }
  .page-hero .btn-row, .hero .btn-row { padding-right: 56px; }
  .hide-xs { display: none; }
}

/* =========================================================
   Blog: cards, article layout, prose
   ========================================================= */
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--bronze); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(27, 25, 21, .07); border-radius: var(--radius-card); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(40, 32, 18, .4); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: .8rem; color: var(--steel); }
.post-card h3 { font-size: 1.22rem; line-height: 1.2; margin: 0; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--bronze); }
.post-card__body > p:not(.post-card__meta) { margin: 0; color: var(--steel); font-size: .95rem; line-height: 1.55; flex: 1; }
.post-card .link-arrow { align-self: flex-start; margin-top: 6px; }
.section--concrete .post-card { border-color: transparent; }
@media (max-width: 1080px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .post-grid { grid-template-columns: 1fr; } }

.article { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.article__toc { position: sticky; top: calc(var(--header-h) + 24px); }
.article__toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 2px solid var(--rule); }
.article__toc a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--steel); text-decoration: none; font-size: .92rem; line-height: 1.35; transition: color .3s, border-color .3s; }
.article__toc a:hover { color: var(--ink); border-left-color: var(--gold); }
.prose { max-width: 74ch; font-size: 1.06rem; line-height: 1.75; color: #2c2822; }
.prose__lead { font-size: 1.24rem; line-height: 1.6; color: var(--ink); margin: 0 0 8px; }
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.12; margin: 2.2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.18rem; line-height: 1.3; margin: 1.6em 0 .4em; }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold-deep); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose .callout { margin: 1.4em 0; padding: 18px 20px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 12px 12px 0; font-size: 1rem; }
.prose .table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--rule); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose thead th { background: var(--concrete); font-weight: 700; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .faq__list { margin-top: 10px; }
.prose__cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 2.6em; padding: clamp(22px, 3vw, 32px); background: var(--ink); color: #f1ebe1; border-radius: var(--radius-card); }
.prose__cta h3 { margin: 0 0 6px; color: #fff; }
.prose__cta p { margin: 0; color: #d8cfc1; font-size: .98rem; }
.prose__cta .btn-row { margin: 0; }
.prose__cta .btn--line { color: #fff; }
@media (max-width: 960px) {
  .article { grid-template-columns: 1fr; }
  .article__toc { position: static; background: var(--concrete); border-radius: 14px; padding: 18px 20px; }
}
@media (max-width: 760px) { .prose { font-size: 1rem; } .prose__lead { font-size: 1.1rem; } .prose__cta .btn-row { width: 100%; } }

/* every inner hero = exactly one screen minus the numbers strip (desktop) */
@media (min-width: 961px) {
  .page-hero { height: clamp(560px, calc(100svh - var(--hero-strip)), 900px); }
  .page-hero h1 { max-width: 18ch; }
  .page-hero--article h1 { font-size: clamp(2rem, min(1rem + 2.8vw, 6.4vh), 3.9rem); line-height: 1.02; max-width: 24ch; }
  .page-hero--article .lede { max-width: 60ch; }
}
@media (max-width: 960px) { .page-hero--article h1 { font-size: clamp(1.9rem, 1.3rem + 3vw, 2.8rem); line-height: 1.04; } }
.article > *, .prose { min-width: 0; }

/* short / small screens: hero text scales with screen height so it never slides under the header */
@media (min-width: 961px) and (max-height: 820px) {
  .page-hero h1 { font-size: clamp(2rem, 7.2vh, 4.2rem); }
  .page-hero--article h1 { font-size: clamp(1.8rem, 5.4vh, 3.1rem); }
  .page-hero .lede { font-size: 1rem; }
  .page-hero .crumbs { margin-bottom: 12px; }
}
@media (min-width: 961px) and (max-width: 1279px) { .page-hero h1 { font-size: clamp(2rem, min(4.6vw, 7.2vh), 4.2rem); } .page-hero--article h1 { font-size: clamp(1.8rem, min(3.4vw, 5.4vh), 3.1rem); } }
.page-hero--article .lede { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
@media (max-width: 760px) { .page-hero--article .lede { -webkit-line-clamp: 3; } }
@media (max-width: 760px) and (max-height: 700px) {
  .page-hero .crumbs { display: none; }
  .page-hero--article h1 { font-size: clamp(1.6rem, 7.6vw, 2.1rem); }
  .page-hero .lede { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Form spam trap (hidden from people) + CV upload */
.form .hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form input[type=file] { width: 100%; padding: 12px; border: 1.5px dashed var(--rule); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; }
.form input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--ink, #1b1915); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.form.is-sent .form__foot .btn { opacity: .6; pointer-events: none; }
