/* ==========================================================
   GEOCON (M) SDN BHD — site stylesheet (v2, industrial)
   One file for all pages.
   Colours: edit the two token blocks below (dark = default via data-theme on <html>, light = when switched).
   ========================================================== */

/* Self-hosted fonts (SIL Open Font Licence, see /assets/fonts/OFL-LICENSE.txt) */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* ---- LIGHT theme (default): brand navy + bright teal from the logo ---- */
  --bg:        #F6F9FB;   /* crisp near-white page background */
  --surface:   #FFFFFF;   /* cards, form fields */
  --grey:      #DDF4EF;   /* soft teal panels */
  --ink:       #121A44;   /* headings, strong text (logo navy, deep) */
  --text:      #26304F;   /* body text */
  --muted:     #55607E;   /* secondary text */
  --line:      #D3DCE6;   /* grid lines & hairlines */
  --panel:     #1A2463;   /* dark panels: logo navy */
  --panel-2:   #222E72;
  --panel-text:#DCE3F7;
  --panel-mute:#9DA9D6;
  --panel-line:#34418A;
  --signal:    #12BC9C;   /* bright Geocon teal — the accent */
  --signal-hi: #2DD4B4;
  --on-signal: #03231E;   /* text on teal */
  --signal-text:#067D69;  /* teal used as text on light backgrounds */
  --brand-grad: linear-gradient(115deg, #121A44 0%, #1A2463 45%, #16507E 80%, #0E6E73 100%);  /* logo navy→teal, kept dark for white text */
  --wa:        #1F9E55;   /* WhatsApp green */
  --flag-bg:   #FFF1C2;  --flag-text: #5E4700;
  --shadow:    rgba(18,26,68,.18);
  --tint:      #12BC9C;
  --tint-amt:  0;        /* photo colour wash: 0 = natural colour photos */
  color-scheme: light;

  /* ---- Type ---- */
  --f-display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-body:   1rem;
  --fs-small:  .875rem;
  --fs-label:  .75rem;
  --fs-h1:     clamp(2.4rem, 1.2rem + 5.2vw, 5.6rem);
  --fs-h2:     clamp(1.9rem, 1.1rem + 3.1vw, 3.5rem);
  --fs-h3:     clamp(1.15rem, 1rem + .6vw, 1.45rem);
  --fs-lead:   clamp(1.05rem, .98rem + .35vw, 1.25rem);

  /* ---- Space & shape ---- */
  --frame:   1360px;
  --pad:     clamp(16px, 3.2vw, 40px);
  --sec:     clamp(3.5rem, 2.4rem + 4.5vw, 7rem);
  --cut:     22px;   /* chamfer size on panels */
  --cut-sm:  9px;    /* chamfer size on buttons */
  --header-h: 72px;
}

:root[data-theme="dark"] {
  --bg:        #0B1235;
  --surface:   #111A45;
  --grey:      #16224F;
  --ink:       #F2F5FF;
  --text:      #C9D2EE;
  --muted:     #8E9AC6;
  --line:      #222D5E;
  --panel:     #141E52;
  --panel-2:   #1B2763;
  --panel-text:#DCE3F7;
  --panel-mute:#9DA9D6;
  --panel-line:#2E3B7D;
  --signal-text:#2FD9B8;
  --flag-bg:   #3A3010;  --flag-text: #FFD95A;
  --shadow:    rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
p { margin: 0 0 1em; max-width: 66ch; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, .display {
  font-family: var(--f-display); font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: .005em; line-height: .98; margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.1; font-weight: 600; letter-spacing: .02em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); }
.label { font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: var(--fs-small); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--signal); color: var(--on-signal); padding: .6em 1em; font-family: var(--f-mono); }
.skip:focus { left: 8px; top: 8px; }

/* ---------- The frame: visible grid lines ---------- */
.frame { max-width: var(--frame); margin-inline: auto; border-inline: 1px solid var(--line); position: relative; }
.sec { border-top: 1px solid var(--line); }
.pad { padding: var(--sec) var(--pad); }
.pad-x { padding-inline: var(--pad); }

/* ---------- Chamfered (cut-corner) shapes ---------- */
.cut    { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut-tr { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut-tl { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.cut-br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }

/* ---------- Photos: black & white, consistent ---------- */
.photo { position: relative; overflow: hidden; background: var(--panel); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.05); }
.photo::after { content: ""; position: absolute; inset: 0; background: var(--tint); mix-blend-mode: color; opacity: var(--tint-amt); pointer-events: none; }

/* Placeholders (delete once real images are in) */
.ph {
  width: 100%; height: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/24px 24px,
    var(--grey);
  color: var(--muted); font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .05em;
}
.ph span { background: var(--surface); padding: .35em .6em; }
.flag { display: inline-block; margin-top: .6rem; padding: .2em .55em; background: var(--flag-bg); color: var(--flag-text); font-family: var(--f-mono); font-size: .72rem; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--signal); --b-fg: var(--on-signal);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: .7em 1.15em; border: 0; cursor: pointer;
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--f-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; text-align: center;
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));
  transition: background-color .15s, color .15s;
}
.btn .ico { width: 1.15em; height: 1.15em; stroke-width: 1.8; flex: none; }
.btn:hover { --b-bg: var(--signal-hi); }
.btn-ink  { --b-bg: var(--ink); --b-fg: var(--bg); }
.btn-ink:hover { --b-bg: var(--signal); --b-fg: var(--on-signal); }
.btn-light { --b-bg: #F2F5FF; --b-fg: #121A44; }
.btn-light:hover { --b-bg: var(--signal); --b-fg: var(--on-signal); }
.btn-wa { --b-bg: var(--wa); --b-fg: #fff; }
.btn-wa:hover { --b-bg: #1A8A4A; --b-fg: #fff; }
/* Outline button: square border with a teal corner tick */
.btn-line {
  --b-bg: transparent; --b-fg: var(--ink); clip-path: none; position: relative;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn-line::after { content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: linear-gradient(225deg, var(--signal) 50%, transparent 50%); }
.btn-line:hover { --b-bg: var(--ink); --b-fg: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-dark .btn-line { --b-fg: #F2F5FF; }
.on-dark .btn-line:hover { --b-bg: #F2F5FF; --b-fg: #121A44; box-shadow: inset 0 0 0 1.5px #F2F5FF; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.text-link { display: inline-flex; align-items: center; gap: .5em; padding-block: .6em; font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--signal); align-self: flex-start; }
.text-link .ico { width: 1.1em; height: 1.1em; stroke-width: 1.8; transition: transform .15s; }
.text-link:hover .ico { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { max-width: var(--frame); margin-inline: auto; border-inline: 1px solid var(--line); min-height: var(--header-h); display: flex; align-items: center; gap: 1.25rem; padding-inline: var(--pad); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { height: 40px; width: auto; }
.brand-mark.on-dark-only { display: none; }
:root[data-theme="dark"] .brand-mark.on-light-only { display: none; }
:root[data-theme="dark"] .brand-mark.on-dark-only { display: block; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .65rem; letter-spacing: .08em; color: var(--muted); margin-top: .3em; }

.site-nav ul { list-style: none; display: flex; gap: .2rem; }
.site-nav a:not(.btn) {
  display: block; padding: .5em .7em; text-decoration: none; color: var(--text);
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; position: relative;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::before { content: ""; position: absolute; left: .7em; right: .7em; bottom: .15em; height: 2px; background: var(--signal); }
.nav-actions, .nav-meta { display: none; }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.header-cta { min-height: 40px; padding: .55em 1em; }

.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: transparent; color: var(--ink); border: 1px solid var(--line); cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.nav-toggle {
  display: none; align-items: center; gap: .6rem; height: 40px; padding: 0 .9rem; cursor: pointer;
  background: var(--ink); color: var(--bg); border: 0;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s, top .2s, background-color .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  /* Full-screen menu (dark in both themes) */
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 49;
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    background: var(--panel); color: var(--panel-text);
    padding: .5rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom));
    visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .2s ease; }
  .site-nav ul { flex-direction: column; gap: 0; margin-bottom: auto; }
  .site-nav a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .5em 0; border-bottom: 1px solid var(--panel-line); color: #F2F5FF;
    font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 1.1rem + 3.2vw, 2.6rem); letter-spacing: .02em; line-height: 1.15;
  }
  .site-nav a:not(.btn)::after { content: ""; width: 12px; height: 12px; border-top: 2px solid var(--panel-mute); border-right: 2px solid var(--panel-mute); transform: rotate(45deg); margin-right: 6px; flex: none; }
  .site-nav a[aria-current="page"] { color: var(--signal-hi); }
  .site-nav a[aria-current="page"]::before { display: none; }
  .nav-actions { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1.75rem; }
  .nav-actions .btn { min-height: 52px; }
  .nav-meta { display: block; margin-top: 1.25rem; font-family: var(--f-mono); font-size: .75rem; color: var(--panel-mute); line-height: 1.6; }
  .nav-meta p { margin: 0; }
  html.menu-open { overflow: hidden; }
  html.menu-open .quick-contact { display: none; }
}
@media (min-width: 700px) and (max-width: 1180px) { .nav-actions { grid-template-columns: 1fr 1fr; max-width: 620px; } }
@media (max-width: 420px) { .brand-name small { display: none; } .header-tools { gap: .35rem; } .brand-mark { height: 34px; } }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.hero-photo { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 8.2; }
.hero-title { grid-column: 1; grid-row: 2; padding: clamp(1.75rem, 3vw, 3rem) var(--pad) clamp(1.5rem, 2.5vw, 2.25rem); border-top: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.hero-title h1 { margin: 0; max-width: 14ch; }
.hero-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.hero-meta p { margin: 0; max-width: 42ch; color: var(--muted); font-size: var(--fs-small); }
.hero-panel {
  grid-column: 2; grid-row: 1 / span 2; background: var(--signal); color: var(--on-signal);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: clamp(1.5rem, 2.6vw, 2.5rem); padding-top: clamp(6rem, 12vw, 11rem);
  clip-path: polygon(0 clamp(4.5rem, 9vw, 8.5rem), clamp(4.5rem, 9vw, 8.5rem) 0, 100% 0, 100% 100%, 0 100%);
}
.hero-panel .label { color: var(--on-signal); opacity: .8; display: flex; justify-content: space-between; gap: 1rem; }
.hero-panel .lead { color: var(--on-signal); margin: 0; }
.hero-panel .btn-row .btn { flex: 1 1 auto; }
.hero-panel .btn-ink { --b-bg: var(--on-signal); --b-fg: #E9FFFA; }
.hero-panel .btn-ink:hover { --b-bg: #000; --b-fg: #fff; }
.hero-panel .btn-line { --b-fg: var(--on-signal); }
.hero-panel .btn-line::after { background: linear-gradient(225deg, var(--on-signal) 50%, transparent 50%); }
.hero-panel .btn-line:hover { --b-bg: var(--on-signal); --b-fg: #E9FFFA; box-shadow: inset 0 0 0 1.5px var(--on-signal); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-panel { grid-column: 1; grid-row: 3; padding-top: clamp(3.5rem, 12vw, 5rem); clip-path: polygon(0 2.5rem, 2.5rem 0, 100% 0, 100% 100%, 0 100%); }
  .hero-meta { flex-direction: column; align-items: start; }
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--panel); color: var(--panel-text); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; padding: 12px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--signal); color: var(--on-signal); padding: clamp(1rem, 2vw, 1.5rem); min-height: clamp(150px, 16vw, 210px); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.stat b { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem); line-height: 1; letter-spacing: .01em; }
.stat span { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; }
.stats-note { background: var(--grey); color: var(--text); padding: clamp(1.25rem, 2.6vw, 2.25rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
:root[data-theme="dark"] .stats-note { background: var(--panel-2); color: var(--panel-text); }
:root[data-theme="dark"] .stats-note h2 { color: #F2F5FF; }
.stats-note h2 { margin: 0; font-size: clamp(1.7rem, 1rem + 2.4vw, 2.9rem); }
.stats-note p { margin: 0; font-size: var(--fs-small); }
@media (max-width: 900px) { .stats-band { grid-template-columns: 1fr; } }

/* ---------- Split sections (left intro / right content) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.split > :first-child { padding: var(--sec) var(--pad); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.split > :last-child { padding: clamp(1rem, 2vw, 1.5rem); }
.split > .pad-content:last-child { padding: var(--sec) var(--pad); }
.split-intro p { color: var(--muted); font-size: var(--fs-small); }
.sticky-top { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split > :first-child { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
  .split > .pad-content:last-child { padding-top: 2rem; }
}

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.card-top {
  position: relative; background-color: var(--panel); color: var(--panel-text); padding: 1.1rem 1.2rem 1.4rem; min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  background-image: linear-gradient(var(--panel-line) 1px, transparent 1px), linear-gradient(90deg, var(--panel-line) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
}
.card-top h3 { color: #F2F5FF; margin: 0; max-width: 14ch; padding-right: 2.5rem; }
.card-top .num { position: absolute; top: 1.1rem; right: 1.2rem; font-family: var(--f-mono); font-size: var(--fs-label); color: var(--panel-mute); }
.card-top .ico { width: clamp(84px, 9vw, 112px); height: auto; margin: 1.5rem auto .5rem; stroke-width: 1.3; color: #F2F5FF; transition: transform .3s ease; }
.card-foot { background: var(--panel); color: var(--panel-mute); padding: .9rem 1.2rem; font-size: var(--fs-small); line-height: 1.45; min-height: 74px; }
.card-foot p { margin: 0; }
.card.is-signal .card-top, .card.is-signal .card-foot { background-color: var(--signal); color: var(--on-signal); }
.card.is-signal .card-top { background-image: linear-gradient(rgba(6,35,30,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(6,35,30,.14) 1px, transparent 1px); }
.card.is-signal h3, .card.is-signal .ico, .card.is-signal .num { color: var(--on-signal); }
.card:hover .card-top .ico { transform: scale(1.04); }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card-top { min-height: 230px; } }

/* ---------- Accordion (principles) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: .03em; color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 16px; height: 16px; background:
  linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat,
  linear-gradient(currentColor, currentColor) center/1.5px 100% no-repeat; transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); color: var(--signal-text); }
.acc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; padding: 0 0 1.5rem; align-items: start; }
.acc-body p { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.acc-body .photo { aspect-ratio: 4 / 3; }
.acc-body.no-media { grid-template-columns: 1fr; }
@media (max-width: 560px) { .acc-body { grid-template-columns: 1fr; } }

/* ---------- Project carousel & cards ---------- */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding: var(--sec) var(--pad) 2rem; flex-wrap: wrap; }
.sec-head h2 { margin: 0; max-width: 18ch; }
.sec-head p { margin: 0; color: var(--muted); max-width: 44ch; font-size: var(--fs-small); }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: max(280px, 38%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-top: 1px solid var(--line); scroll-behavior: smooth; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .carousel { grid-auto-columns: 80%; } }
.car-nav { display: flex; gap: 6px; padding: 1.25rem var(--pad) var(--sec); border-top: 1px solid var(--line); }
.car-nav .icon-btn { background: var(--ink); color: var(--bg); border: 0; }
.car-nav .icon-btn:hover { background: var(--signal); color: var(--on-signal); }
.car-nav .prev svg { transform: scaleX(-1); }

.pcard { position: relative; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.pcard-media { position: relative; aspect-ratio: 4 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.pcard-media .ph { min-height: 0; }
.pcard-media .side { position: relative; }
.pcard-media .side em { position: absolute; bottom: 8px; left: 8px; z-index: 2; font-style: normal; font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--bg); padding: .15em .45em; }
.pcard-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--signal); color: var(--on-signal); padding: .25em .6em; font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.pcard-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1rem .4rem; }
.pcard-bar h3 { margin: 0; font-size: 1.15rem; }
.pcard-bar .plus { width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); transition: background-color .15s; }
.pcard:hover .plus { background: var(--signal); color: var(--on-signal); }
.pcard-bar .plus svg { width: 14px; height: 14px; stroke-width: 2; }
.pcard-info { padding: 0 1rem 1.25rem; font-size: var(--fs-small); color: var(--muted); }
.pcard-info p { margin: 0 0 .2em; }

/* ---------- CTA over photo ---------- */
.cta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); color: #F2F5FF; background: #0B1235; isolation: isolate; overflow: hidden; }
.cta > .photo { position: absolute; inset: 0; z-index: -1; background: #0B1235; }
.cta > .photo img { opacity: .45; }
.cta-left { padding: clamp(1.5rem, 3vw, 2.5rem) var(--pad); border-right: 1px solid rgba(255,255,255,.16); }
.cta-left p { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; line-height: 1.15; max-width: 22ch; }
.cta-right { padding: clamp(2rem, 4vw, 3.5rem) var(--pad); border-top: 1px solid rgba(255,255,255,.16); margin-top: clamp(9rem, 16vw, 14rem); }
.cta-right h2 { color: #fff; margin-bottom: .6em; max-width: 16ch; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } .cta-left { border-right: 0; } .cta-right { margin-top: 5rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-grad); color: #E6EBFA; border-top: 6px solid var(--signal); }
.footer-grid { max-width: var(--frame); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); border-inline: 1px solid rgba(255,255,255,.16); }
.footer-left { padding: clamp(2rem, 4vw, 3rem) var(--pad); border-right: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; gap: 1.5rem; }
.footer-left .display { color: #fff; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); line-height: 1.1; font-weight: 600; margin: 0; max-width: 20ch; }
.footer-left .btn { align-self: flex-start; }
.footer-mark { width: clamp(150px, 20vw, 250px); height: auto; margin-top: auto; }
.footer-right { padding: clamp(2rem, 4vw, 3rem) var(--pad); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2rem 3rem; align-content: start; }
.footer-nav { list-style: none; grid-column: 1 / -1; }
.footer-nav li { border-bottom: 1px solid rgba(255,255,255,.16); }
.footer-nav a { color: #fff; display: block; padding: .55em 0; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; transition: padding .15s; }
.footer-nav a:hover { padding-left: .35em; color: var(--signal-hi); }
.footer-block .label { color: var(--signal-hi); opacity: 1; margin: 0 0 .6em; }
.footer-block p, .footer-block address, .footer-block li { margin: 0 0 .3em; font-size: var(--fs-small); font-style: normal; }
.footer-block ul { list-style: none; }
.footer-block a { text-decoration-color: rgba(255,255,255,.45); }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.16); font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-base p { margin: 0; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-left { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .footer-mark { width: 110px; }
}
@media (max-width: 560px) { .footer-right { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.page-hero-left { padding: clamp(1.5rem, 3vw, 2.5rem) var(--pad); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.crumb { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.crumb a { text-decoration: none; } .crumb a:hover { color: var(--ink); }
.page-hero-left p:not(.crumb) { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.page-hero-right { padding: clamp(4rem, 9vw, 8rem) var(--pad) clamp(1.75rem, 3vw, 2.5rem); }
.page-hero-right h1 { margin: 0; font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5rem); }
.page-hero-band { grid-column: 1 / -1; aspect-ratio: 16 / 5; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .page-hero { grid-template-columns: 1fr; }
  .page-hero-left { border-right: 0; border-top: 1px solid var(--line); order: 2; }
  .page-hero-right { order: 1; padding-top: 3rem; }
  .page-hero-band { order: 3; aspect-ratio: 16 / 9; }
}

/* ---------- Content blocks ---------- */
.prose h2 { font-size: clamp(1.7rem, 1rem + 2.4vw, 2.8rem); }
.prose h3 { margin-top: 1.6em; }
.prose ul { list-style: none; border-top: 1px solid var(--line); margin: 1rem 0 1.5rem; }
.prose ul li { padding: .6em 0 .6em 1.4em; border-bottom: 1px solid var(--line); position: relative; font-size: var(--fs-small); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; background: var(--signal); }

.service-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.service-block + .service-block { border-top: 1px solid var(--line); }
.service-block .photo { min-height: 460px; }
.service-block .sb-body { padding: var(--sec) var(--pad); }
.service-block.flip .photo { order: 2; }
.service-block .num { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--signal-text); letter-spacing: .06em; margin-bottom: 1rem; display: block; }
@media (max-width: 900px) { .service-block { grid-template-columns: 1fr; } .service-block .photo { min-height: 0; aspect-ratio: 4/3; } .service-block.flip .photo { order: 0; } }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); counter-reset: step; }
.steps li { counter-increment: step; padding: 1.5rem var(--pad) 2rem; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--signal-text); margin-bottom: 1.25rem; }
.steps h3 { margin-bottom: .5em; }
.steps p { margin: 0; color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(2) { border-right: 0; } .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Data tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.data-table th, .data-table td { text-align: left; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.data-table tbody th { color: var(--ink); font-weight: 600; }
.data-table td.hi { color: var(--ink); font-weight: 500; }
.on-panel { background: var(--panel); color: var(--panel-text); }
.on-panel h2, .on-panel h3 { color: #F2F5FF; }
.on-panel .data-table th, .on-panel .data-table td { border-color: var(--panel-line); }
.on-panel .data-table thead th { color: var(--panel-mute); border-bottom-color: var(--signal); }
.on-panel .data-table tbody th { color: var(--panel-mute); font-weight: 500; }
.on-panel .data-table td.hi { color: #fff; }
.on-panel .data-table td { color: var(--panel-mute); }
.on-panel .split > :first-child { border-color: var(--panel-line); }
.on-panel p { color: var(--panel-mute); }
.on-panel .label { color: var(--panel-mute); }
.on-panel .text-link { color: #F2F5FF; }
.on-panel .crosses { border-color: var(--panel-line); }

/* Slab-lift diagram */
.lift-figure { margin: 0; background: var(--surface); padding: clamp(.75rem, 2vw, 1.5rem); }
:root[data-theme="dark"] .lift-figure { background: var(--panel-2); }
.lift-figure figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .6rem; font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lift-svg { width: 100%; height: auto; }
.lift-svg text { font-family: var(--f-mono); font-size: 14px; fill: var(--ink); letter-spacing: .04em; text-transform: uppercase; }
.lift-svg text.t-soil { fill: #121A44; }
.lift-svg text.t-light { fill: #fff; }
.lift-svg .t-muted { fill: var(--muted); }
.lift-svg .tubes { stroke: var(--ink); }
.lift-svg .slab { transform-box: view-box; transform-origin: 40px 111px; transform: rotate(4deg); transition: transform 2.2s cubic-bezier(.3,.7,.2,1) .6s; }
.lift-svg .foam { transform-box: fill-box; transform-origin: center; transform: scale(.15); opacity: .4; transition: transform 1.6s ease-out .3s, opacity 1s ease-out .3s; }
.lift-svg .foam-wedge { opacity: 0; transition: opacity 1.4s ease 1.2s; }
.lift-svg .void { transition: opacity 1.2s ease .9s; }
.lift-svg .lift-done { opacity: 0; transition: opacity .6s ease 2.6s; }
.lift-svg .lift-before { transition: opacity .4s ease .2s; }
.lift-figure.is-lifted .slab { transform: rotate(0deg); }
.lift-figure.is-lifted .foam { transform: scale(1); opacity: 1; }
.lift-figure.is-lifted .foam-wedge { opacity: 1; }
.lift-figure.is-lifted .void { opacity: 0; }
.lift-figure.is-lifted .lift-done { opacity: 1; }
.lift-figure.is-lifted .lift-before { opacity: 0; }
.replay { background: none; border: 0; padding: .6em 0; min-height: 44px; font: inherit; color: var(--ink); cursor: pointer; border-bottom: 1.5px solid var(--signal); text-transform: uppercase; }
.lift-legend { display: none; list-style: none; gap: .4rem 1rem; flex-wrap: wrap; margin-top: .8rem; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; color: var(--text); }
.lift-legend li { display: flex; align-items: center; gap: .4rem; }
.lift-legend i { width: 12px; height: 12px; flex: none; }
@media (max-width: 640px) { .lift-svg text { display: none; } .lift-legend { display: flex; } }

/* Timeline */
.timeline { list-style: none; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 9rem minmax(0,1fr); gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.timeline b { font-family: var(--f-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--signal-text); }
.timeline p { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.timeline h3 { margin-bottom: .35em; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: .5rem; } }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.person .ph, .person .photo { aspect-ratio: 4 / 5; min-height: 0; }
.person-body { background: var(--surface); padding: 1rem 1.1rem 1.2rem; }
:root[data-theme="dark"] .person-body { background: var(--panel-2); }
.person-body h3 { margin: 0 0 .25em; }
.person-body p { margin: 0; color: var(--muted); font-size: var(--fs-small); }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.tile { padding: 1.75rem var(--pad) 2.25rem; border-right: 1px solid var(--line); }
.tile:last-child { border-right: 0; }
.tile .ico { width: 56px; height: 56px; stroke-width: 1.4; color: var(--signal-text); margin-bottom: 1.25rem; }
.tile h3 { margin-bottom: .5em; }
.tile p { margin: 0; color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } .tile { border-right: 0; border-bottom: 1px solid var(--line); } .tile:last-child { border-bottom: 0; } }

/* Certificates */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cert { background: var(--surface); display: flex; flex-direction: column; }
:root[data-theme="dark"] .cert { background: var(--panel-2); }
.cert-media { aspect-ratio: 3 / 4; }
.cert-media .ph { min-height: 0; }
.cert-body { padding: 1rem 1.1rem 1.25rem; }
.cert-body h3 { margin: 0 0 .35em; }
.cert-body p { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.cert-body .label { display: block; margin-bottom: .6rem; color: var(--signal-text); }

/* Project grid + filter */
.filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--pad) 1.5rem; }
.filter button { min-height: 40px; padding: .4em .9em; background: transparent; color: var(--text); border: 1px solid var(--line); cursor: pointer; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); }
.pgrid > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pgrid .pcard-info p.sum { color: var(--text); margin-top: .6em; }
.pgrid [hidden] { display: none; }
@media (min-width: 901px) { .pgrid > .pcard:nth-child(3n) { border-right: 0; } }
@media (max-width: 900px) and (min-width: 601px) { .pgrid { grid-template-columns: 1fr 1fr; } .pgrid > .pcard:nth-child(2n) { border-right: 0; } }
@media (max-width: 600px) { .pgrid { grid-template-columns: 1fr; } .pgrid > * { border-right: 0; } }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; padding: 0 var(--pad) var(--sec); }
.gallery figure { margin: 0; }
.gallery .photo { aspect-ratio: 3 / 4; }
.gallery figcaption { margin-top: .5rem; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.contact-grid > :first-child { padding: var(--sec) var(--pad); border-right: 1px solid var(--line); }
.contact-grid > :last-child { padding: var(--sec) var(--pad); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid > :first-child { border-right: 0; border-bottom: 1px solid var(--line); } }
.info-list { list-style: none; border-top: 1px solid var(--line); margin-bottom: 2rem; }
.info-list li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.info-list .ico { width: 20px; height: 20px; stroke-width: 1.6; color: var(--signal-text); margin-top: .15em; }
.info-list b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .2em; }
.info-list p { margin: 0; }
.contact-people { display: grid; gap: 8px; margin-bottom: 2rem; }
.cp { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .9rem; align-items: center; background: var(--surface); padding: 1rem; }
:root[data-theme="dark"] .cp { background: var(--panel-2); }
.cp .btn-row { grid-column: 1 / -1; }
.cp .btn { flex: 1 1 0; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; position: relative; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field label .req { color: var(--signal-text); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: .8em .9em; min-height: 48px; width: 100%;
}
:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field select, :root[data-theme="dark"] .field textarea { background: var(--panel-2); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 2px rgba(20,166,141,.35); }
.field .hint { font-size: .8rem; color: var(--muted); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions p { margin: 0; font-size: .8rem; color: var(--muted); max-width: 46ch; }
.notice { grid-column: 1 / -1; padding: 1rem 1.1rem; font-size: var(--fs-small); border-left: 3px solid var(--signal); background: var(--surface); color: var(--ink); }
.notice.err { border-left-color: #D2483A; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.map { aspect-ratio: 16 / 6; border-top: 1px solid var(--line); background: var(--grey); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
:root[data-theme="dark"] .map iframe { filter: grayscale(1) invert(.9) contrast(.9); }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- "Talk to us" pop-up ---------- */
.contact-modal {
  width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto;
  padding: 0; border: 0; background: var(--bg); color: var(--text);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.contact-modal::backdrop { background: rgba(8,12,40,.55); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.contact-modal[open] { animation: cm-in .22s ease-out; }
.contact-modal[open]::backdrop { animation: cm-fade .22s ease-out; }
@keyframes cm-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }
.cm-head { background: var(--signal); color: var(--on-signal); padding: 1.25rem 1.4rem 1.4rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cm-title { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; text-transform: uppercase; line-height: 1; margin: 0 0 .35em; }
.cm-sub { margin: 0; font-size: var(--fs-small); }
.cm-close { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--on-signal); color: #E9FFFA; border: 0; cursor: pointer; }
.cm-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.cm-people { list-style: none; padding: .5rem 1.4rem 0; }
.cm-person { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .8rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.who p { margin: 0; }
.who .name { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; color: var(--ink); line-height: 1.1; }
.who .role { font-size: var(--fs-small); color: var(--muted); }
.who .num { font-family: var(--f-mono); font-size: var(--fs-small); color: var(--text); }
.cm-actions { display: flex; gap: 6px; }
.cm-actions .btn { min-height: 42px; padding: .5em .85em; }
.cm-foot { padding: 1rem 1.4rem 1.4rem; font-size: var(--fs-small); color: var(--muted); }
.cm-foot p { margin: 0 0 .3em; }
.cm-foot a { color: var(--ink); }
html.modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .contact-modal { width: 100%; max-width: none; margin: auto 0 0; max-height: 92dvh; clip-path: polygon(0 var(--cut), var(--cut) 0, 100% 0, 100% 100%, 0 100%); }
  .contact-modal[open] { animation-name: cm-up; }
  @keyframes cm-up { from { transform: translateY(100%); } to { transform: none; } }
  .cm-person { grid-template-columns: auto minmax(0,1fr); }
  .cm-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .cm-actions .btn { min-height: 50px; }
  .cm-foot { padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
}

/* ---------- One-tap contact ---------- */
.quick-contact { position: fixed; z-index: 60; }
.quick-contact a { display: flex; align-items: center; justify-content: center; gap: .55rem; text-decoration: none; font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.quick-contact .ico { width: 20px; height: 20px; }
@media (max-width: 1180px) {
  body { padding-bottom: 60px; }
  .quick-contact { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; height: 60px; box-shadow: 0 -6px 18px var(--shadow); }
  .qc-call { background: var(--ink); color: var(--bg); }
  .qc-wa { background: var(--wa); color: #fff; }
}
@media (min-width: 1181px) {
  .quick-contact { right: 24px; bottom: 24px; }
  .qc-call { display: none !important; }
  .qc-wa { width: 62px; height: 62px; background: var(--wa); color: #fff; box-shadow: 0 8px 24px var(--shadow);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
  .qc-wa .ico { width: 30px; height: 30px; }
  .qc-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .qc-wa:hover { background: #1A8A4A; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   v3 additions: bilingual layout, Services dropdown, service-page blocks
   ========================================================== */
/* Language switch (EN / BM) */
.lang-switch { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-decoration: none; }

/* Services dropdown (desktop) */
.has-drop { position: relative; }
.nav-drop summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45em;
  padding: .5em .7em; color: var(--text); font-family: var(--f-mono); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; position: relative;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.nav-drop[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.nav-drop summary:hover, .nav-drop summary.is-current { color: var(--ink); }
.nav-drop summary.is-current::before { content: ""; position: absolute; left: .7em; right: 1.6em; bottom: .15em; height: 2px; background: var(--signal); }
.drop-list { list-style: none; }
@media (min-width: 1181px) {
  .drop-list {
    position: absolute; top: calc(100% + 14px); left: -12px; z-index: 60; min-width: 320px; padding: .5rem;
    background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px var(--shadow);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  }
  .drop-list a { display: block !important; padding: .7em .8em !important; border-bottom: 1px solid var(--line); }
  .drop-list li:last-child a { border-bottom: 0; }
  .drop-list a:hover { background: var(--grey); color: var(--ink); }
  .drop-list a[aria-current="page"] { color: var(--signal-text); }
  .drop-list a[aria-current="page"]::before { display: none; }
}
@media (max-width: 1180px) {
  .nav-drop summary {
    padding: .5em 0; border-bottom: 1px solid var(--panel-line); color: #F2F5FF; justify-content: space-between;
    font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 1.1rem + 3.2vw, 2.6rem); letter-spacing: .02em; line-height: 1.15;
  }
  .nav-drop summary::after { width: 11px; height: 11px; border-color: var(--panel-mute); margin-right: 6px; }
  .nav-drop summary.is-current { color: var(--signal-hi); }
  .nav-drop summary.is-current::before { display: none; }
  .drop-list { padding: .25rem 0 .75rem 0; border-bottom: 1px solid var(--panel-line); }
  .site-nav .drop-list a:not(.btn) { font-family: var(--f-body); font-weight: 500; font-size: 1.05rem; letter-spacing: 0; padding: .55em 0 .55em 1rem; border-bottom: 0; text-transform: none; }
  .site-nav .drop-list a:not(.btn)::after { width: 8px; height: 8px; }
}
@media (min-width: 1181px) and (max-width: 1360px) { .site-nav a:not(.btn), .nav-drop summary { padding-inline: .5em; font-size: .74rem; } }

/* Linked tiles */
.tile-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: background-color .15s; }
.tile-link:hover { background: var(--surface); }
.tile-link .text-link { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; }
.tile-link p { margin-bottom: 0; }

/* Mid-page inspection strip */
.inspect-strip { background: var(--signal); color: var(--on-signal); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: clamp(1.5rem, 3vw, 2.5rem) var(--pad); }
.inspect-strip .display { margin: 0; color: var(--on-signal); font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); max-width: 26ch; line-height: 1.05; }
.inspect-strip .btn-ink { --b-bg: var(--on-signal); --b-fg: #E9FFFA; }
.inspect-strip .btn-line { --b-fg: var(--on-signal); }
.inspect-strip .btn-line::after { background: linear-gradient(225deg, var(--on-signal) 50%, transparent 50%); }
.inspect-strip .btn-line:hover { --b-bg: var(--on-signal); --b-fg: #E9FFFA; box-shadow: inset 0 0 0 1.5px var(--on-signal); }

/* Symptom checklist */
.symptom-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.symptom-grid li { background: var(--surface); padding: 1rem 1.1rem 1.1rem; display: grid; grid-template-columns: 26px minmax(0,1fr); gap: .75rem; }
:root[data-theme="dark"] .symptom-grid li { background: var(--panel-2); }
.symptom-grid .ico { width: 22px; height: 22px; color: var(--signal-text); stroke-width: 2; margin-top: .1em; }
.symptom-grid b { display: block; color: var(--ink); font-weight: 600; margin-bottom: .2em; }
.symptom-grid span { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 640px) { .symptom-grid { grid-template-columns: 1fr; } }

/* Prose inside split sections */
.rich p { color: var(--text); }
.rich h3 { margin: 1.6em 0 .5em; }
.rich h3:first-child { margin-top: 0; }
.rich ul { list-style: none; border-top: 1px solid var(--line); margin: .5rem 0 1.5rem; }
.rich ul li { padding: .6em 0 .6em 1.4em; border-bottom: 1px solid var(--line); position: relative; font-size: var(--fs-small); }
.rich ul li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; background: var(--signal); }
.rich a { color: var(--signal-text); font-weight: 500; }

/* Two methods side by side */
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method { background: var(--panel); color: var(--panel-text); padding: clamp(1.25rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: .5rem; }
.method h3 { color: #F2F5FF; margin: 0 0 .25em; }
.method .label { color: var(--signal-hi); }
.method p { color: var(--panel-text); font-size: var(--fs-small); margin: 0 0 .5em; }
.method ul { list-style: none; border-top: 1px solid var(--panel-line); margin-top: .25rem; }
.method li { padding: .5em 0; border-bottom: 1px solid var(--panel-line); font-size: var(--fs-small); color: var(--panel-mute); }
.method li b { color: #F2F5FF; font-weight: 500; }
.method .photo { aspect-ratio: 4 / 3; margin: -.25rem 0 .75rem; }
.method a.text-link { color: #F2F5FF; margin-top: auto; }
@media (max-width: 760px) { .methods { grid-template-columns: 1fr; } }

/* Related project box */
.case-box { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0; background: var(--surface); }
:root[data-theme="dark"] .case-box { background: var(--panel-2); }
.case-box .photo { min-height: 300px; max-height: 420px; }
.case-box .photo img { position: absolute; inset: 0; }
.case-box .case-body { padding: clamp(1.25rem, 2.5vw, 2rem); }
.case-box .case-body h3 { margin-bottom: .4em; }
.case-box .case-body p { font-size: var(--fs-small); color: var(--text); }
@media (max-width: 760px) { .case-box { grid-template-columns: 1fr; } .case-box .photo { min-height: 0; aspect-ratio: 4/3; } }

/* Engineer / research partner box (E-E-A-T) */
.expert { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 1.25rem; align-items: start; background: var(--surface); padding: 1.25rem; margin-top: 1.5rem; }
:root[data-theme="dark"] .expert { background: var(--panel-2); }
.expert .ph { min-height: 0; aspect-ratio: 4/5; font-size: .6rem; }
.expert h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.expert p { margin: 0 0 .4em; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 520px) { .expert { grid-template-columns: 1fr; } .expert .ph { max-width: 140px; } }

.faq-a p { margin: 0 0 .6em; color: var(--muted); font-size: var(--fs-small); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: var(--signal-text); }

/* Footer link list: two columns now that there are more pages */
.footer-nav-2 { columns: 2; column-gap: 2rem; }
.footer-nav-2 li { break-inside: avoid; }
.footer-nav-2 a { font-size: .98rem; }
@media (max-width: 560px) { .footer-nav-2 { columns: 1; } }

/* 5-step process */
@media (min-width: 1101px) { .steps.steps-5 { grid-template-columns: repeat(5, minmax(0,1fr)); } .steps.steps-5 li { padding-inline: clamp(1rem, 1.6vw, 1.5rem); } }
@media (min-width: 901px) and (max-width: 1100px) { .steps.steps-5 { grid-template-columns: repeat(3, minmax(0,1fr)); } .steps.steps-5 li { border-bottom: 1px solid var(--line); } .steps.steps-5 li:nth-child(3n) { border-right: 0; } }
@media (max-width: 900px) and (min-width: 561px) { .steps.steps-5 li:nth-child(2n) { border-right: 0; } .steps.steps-5 li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); } .steps.steps-5 li:nth-child(2n) { border-right: 0; } }
/* dropdown list must stack vertically (overrides the horizontal main-menu list) */
.site-nav .drop-list { display: block; }
.site-nav .drop-list li { display: block; }
