/* ==========================================================================
   Still Life Holding Sdn Bhd — Earthwork Contractor
   Design system + site styles
   --------------------------------------------------------------------------
   Contents
     01  Design tokens
     02  Reset & base
     03  Typography & utilities
     04  Layout primitives
     05  Buttons & links
     06  Header / navigation
     07  Hero
     08  Sections & section headers
     09  Cards (service, project, value, client)
     10  Stat bar
     11  Process / steps
     12  Fleet & capability lists
     13  Contact page
     14  CTA band
     15  Footer
     16  Language switch & Chinese typography
     17  Motion & accessibility
   ========================================================================== */

/* ==========================================================================
   01  Design tokens
   ========================================================================== */

:root {
  /* Brand — earth, machinery and safety colours */
  --ink:          #14161a;   /* near-black, cool graphite       */
  --ink-2:        #1c1f25;   /* raised dark surface             */
  --ink-3:        #262a32;   /* dark borders                    */
  --soil:         #2f2418;   /* deep excavated earth            */
  --clay:         #7a5a3c;   /* subsoil / laterite              */
  --amber:        #f2a81d;   /* safety yellow — primary accent  */
  --amber-deep:   #d98c05;
  --amber-soft:   #fff3d8;
  --sand:         #f6f2ec;   /* page background                 */
  --sand-2:       #ede7dd;   /* alternate band                  */
  --paper:        #ffffff;
  --steel:        #5c6570;   /* muted body text on light        */
  --steel-2:      #8a939e;
  --line:         #ded5c8;   /* hairlines on light              */
  --ok:           #2f7d54;

  /* Type */
  --font-display: "Barlow Condensed", "Oswald", "Helvetica Neue", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-cjk:     "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* Fluid type scale */
  --fs-hero:  clamp(2.5rem, 1.35rem + 4.2vw, 4.75rem);
  --fs-h1:    clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --fs-h2:    clamp(1.85rem, 1.25rem + 2.4vw, 3rem);
  --fs-h3:    clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-lead:  clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-body:  1rem;
  --fs-sm:    0.9375rem;
  --fs-xs:    0.8125rem;

  /* Space */
  --gutter:   clamp(1.25rem, 4vw, 3rem);
  --sec-y:    clamp(4rem, 8vw, 7.5rem);
  --maxw:     1240px;
  --maxw-narrow: 780px;

  /* Effects */
  --radius:   4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .06), 0 2px 8px rgba(20, 22, 26, .05);
  --shadow-md: 0 4px 12px rgba(20, 22, 26, .08), 0 16px 40px rgba(20, 22, 26, .09);
  --shadow-lg: 0 8px 24px rgba(20, 22, 26, .12), 0 32px 64px rgba(20, 22, 26, .14);
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

/* ==========================================================================
   02  Reset & base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; font-weight: 700; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }

a { color: inherit; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

::selection { background: var(--amber); color: var(--ink); }

/* ==========================================================================
   03  Typography & utilities
   ========================================================================== */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .012em;
  line-height: 1.02;
}

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); font-family: var(--font-body); text-transform: none; letter-spacing: -.01em; line-height: 1.25; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--steel);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
  flex: none;
}
.on-dark .eyebrow { color: var(--amber); }

.muted   { color: var(--steel); }
.center  { text-align: center; }
.nowrap  { white-space: nowrap; }
.mb-0    { margin-bottom: 0 !important; }
.mt-2    { margin-top: 2rem; }

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

.skip-link {
  position: absolute;
  top: -60px; left: var(--gutter);
  z-index: 200;
  background: var(--amber);
  color: var(--ink);
  padding: .65rem 1.1rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   04  Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--sand  { background: var(--sand-2); }
.section--paper { background: var(--paper); }

.on-dark {
  background: var(--ink);
  color: #e8eaed;
}
.on-dark .lead,
.on-dark .muted { color: #a9b0b9; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }

/* Topographic contour texture, drawn as a repeating background */
.topo {
  position: absolute;
  inset: 0;
  background-image: url("../img/topo.svg");
  background-size: 760px auto;
  opacity: .5;
  pointer-events: none;
}
.on-dark .topo { opacity: .38; }

.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  /* a sticky column needs room to travel, so this variant top-aligns */
  .split--sticky { align-items: start; }
  .split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 2.5rem); }
  .split--40-60 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ==========================================================================
   05  Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.btn--primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); box-shadow: 0 8px 22px rgba(217, 140, 5, .32); }

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

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover { background: currentColor; color: var(--ink); }
.on-dark .btn--ghost:hover { color: var(--ink); }

.btn--sm { padding: .6rem 1.1rem; font-size: var(--fs-xs); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
  transition: gap .18s var(--ease), color .18s var(--ease);
}
.link-arrow:hover { gap: .8rem; color: var(--amber-deep); }
.on-dark .link-arrow { color: #fff; }
.on-dark .link-arrow:hover { color: var(--amber); }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   06  Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  min-height: var(--header-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
  margin-right: auto;
}
/* The circular emblem carries more internal whitespace than a solid mark, so
   it needs a touch more size to hold its own next to the wordmark. */
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: .028em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__sub {
  font-size: .625rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--steel-2);
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(.25rem, 1.4vw, 1.1rem); }
.nav__link {
  position: relative;
  padding: .55rem .35rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--amber-deep); }

.header__actions { display: flex; align-items: center; gap: .6rem; flex: none; }

/* The in-panel CTA is for the mobile drawer only; the desktop CTA lives in
   .header__actions. Exactly one of the two is visible at any width. */
.nav__cta { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }

  /* IMPORTANT: no backdrop-filter at these widths.
     The drawer below is a position:fixed descendant of .site-header, and a
     backdrop-filter (like filter/transform/perspective) turns its element
     into the containing block for fixed descendants — which would resolve
     the drawer's `bottom: 0` to the bottom of the 76px header and collapse
     it. The header is opaque here instead, which looks the same. */
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(101%);
    /* visibility keeps the off-canvas links out of the tab order and out of
       the accessibility tree while the drawer is closed */
    visibility: hidden;
    /* visibility flips instantly on open, and only after the panel has slid
       away on close — a plain duration on a discrete property is unreliable */
    transition: transform .28s var(--ease), visibility 0s linear .28s;
    overflow-y: auto;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .28s var(--ease), visibility 0s linear 0s;
  }
  .nav__link {
    padding: 1rem .25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { border-left: 3px solid var(--amber); padding-left: .85rem; }
  .nav__cta { display: inline-flex; margin-top: 1.5rem; }
}

/* On phones the header has to fit brand + language switch + menu button.
   The descriptor line is the first thing to go; the footer keeps it. */
@media (max-width: 640px) {
  .site-header__inner { gap: .6rem; }
  .site-header .brand__sub { display: none; }
  .site-header .brand__name { font-size: 1.05rem; }
  .lang-switch__btn { padding: .35rem .58rem; }
}
@media (max-width: 400px) {
  .site-header__inner { padding-inline: 1rem; }
  .site-header .brand__mark { width: 32px; height: 32px; }
  /* allow the brand to give up width so the nav controls always fit */
  .site-header .brand { flex: 0 1 auto; min-width: 0; }
  .site-header .brand__name {
    font-size: .95rem;
    white-space: normal;   /* wrap to two lines rather than push the nav off */
    line-height: 1.06;
  }
  .lang-switch__btn { padding: .32rem .5rem; font-size: .75rem; }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
  z-index: 90;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   07  Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 78% 8%, rgba(242, 168, 29, .20) 0%, transparent 58%),
    radial-gradient(90% 80% at 8% 96%, rgba(122, 90, 60, .40) 0%, transparent 62%),
    linear-gradient(168deg, #14161a 0%, #1b1d22 46%, #241d15 100%);
  z-index: -2;
}
.hero .topo { z-index: -1; opacity: .32; }

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(4.5rem, 11vw, 9rem) var(--gutter) clamp(7rem, 12vw, 10rem);
}
.hero--page .hero__inner { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4.5rem, 9vw, 7rem); }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: .005em;
  max-width: 17ch;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.hero--page .hero__title { font-size: var(--fs-h1); max-width: 20ch; }
.hero__title .accent { color: var(--amber); }

.hero__lead {
  font-size: var(--fs-lead);
  color: #b9c0c9;
  max-width: 58ch;
  margin-bottom: 0;
}

/* Terrain strata graphic anchored to the bottom of the home hero */
.hero__terrain {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(90px, 13vw, 190px);
  z-index: -1;
  object-fit: cover;
  object-position: bottom;
  opacity: .95;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8f97a1;
  margin-bottom: 1.4rem;
}
.breadcrumb a { text-decoration: none; color: #8f97a1; transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span[aria-hidden] { color: #4c535c; }

/* ==========================================================================
   08  Sections & section headers
   ========================================================================== */

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: .55rem; text-wrap: balance; }
.section-head p  { margin-bottom: 0; }

.section-head--split {
  display: grid;
  gap: 1.5rem;
  max-width: none;
  align-items: end;
}
@media (min-width: 860px) {
  .section-head--split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .section-head--split > :last-child { justify-self: end; text-align: right; }
}

/* ==========================================================================
   09  Cards
   ========================================================================== */

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .28s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfc4b3;
}
.card:hover::after { transform: scaleY(1); }

.card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: var(--amber-deep);
  margin-bottom: 1.15rem;
}
.card__icon svg { width: 28px; height: 28px; }

.card h3 { font-size: 1.15rem; margin-bottom: .5rem; letter-spacing: -.005em; }
.card p  { font-size: var(--fs-sm); color: var(--steel); margin-bottom: 0; }

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: var(--sand-2);
  color: var(--steel);
  border: 1px solid var(--line);
}

/* --- Project cards ------------------------------------------------------- */

.project {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* Drop a photo in by setting --photo on the element; the layered gradient
   below stays visible as a designed fallback if the file is missing. */
.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-image:
    var(--photo, none),
    url("../img/topo.svg"),
    linear-gradient(155deg, #2b2f36 0%, #3a3026 55%, #55402a 100%);
  background-size: cover, 420px auto, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, repeat, no-repeat;
  display: grid;
  place-items: center;
}
.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,22,26,.15) 0%, rgba(20,22,26,.72) 100%);
}
.project__glyph {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  color: rgba(242, 168, 29, .85);
  opacity: .9;
}
.project__badge {
  position: absolute;
  z-index: 2;
  top: 1rem; left: 1rem;
  background: var(--amber);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 3px;
}
.project__body { padding: clamp(1.35rem, 2.2vw, 1.85rem); display: flex; flex-direction: column; flex: 1; }
.project__loc {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: .5rem;
}
.project__loc svg { width: 14px; height: 14px; flex: none; }
.project h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.project p  { font-size: var(--fs-sm); color: var(--steel); }
.project .card__tags { margin-top: auto; padding-top: 1.15rem; }

/* --- Filter bar ---------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.25rem;
}
.filter {
  padding: .55rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--steel);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.filter:hover { border-color: var(--amber); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.project[hidden] { display: none; }

/* --- Client tiles -------------------------------------------------------- */

.client {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 116px;
  padding: 1.5rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.25;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.client:hover { color: var(--ink); border-color: var(--amber); transform: translateY(-3px); }

/* A client tile shows the company name until a real logo file is confirmed
   loaded (main.js adds .has-logo). Missing file, blocked image or no JS all
   degrade to the name — the tile is never empty or broken. */
/* Logos arrive in wildly different aspect ratios — a wide wordmark next to a
   stacked monogram. Sizing by height (not max-height) with a width cap keeps
   the row optically balanced instead of letting wordmarks dominate. */
.client__logo {
  display: none;
  height: 44px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .68;
  transition: filter .22s var(--ease), opacity .22s var(--ease);
}
/* for stacked / square marks, which read smaller at the same height */
.client__logo--tall { height: 64px; }
.client.has-logo .client__logo { display: block; }
.client.has-logo .client__name { display: none; }
.client.has-logo:hover .client__logo { filter: none; opacity: 1; }

/* --- Value / feature rows ------------------------------------------------ */

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.feature-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .9rem;
  align-items: start;
  font-size: var(--fs-sm);
}
.feature-list li::before {
  content: "";
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--amber-soft) url("../img/check.svg") center / 13px no-repeat;
  border: 1px solid rgba(217, 140, 5, .35);
}
.on-dark .feature-list li::before { background-color: rgba(242,168,29,.16); border-color: rgba(242,168,29,.4); }

/* ==========================================================================
   10  Stat bar
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--ink-3);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--ink-2);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.4vw, 1.75rem);
  text-align: left;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.3rem + 3.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  letter-spacing: .01em;
  margin-bottom: .5rem;
}
.stat__num--sm { font-size: clamp(1.35rem, .95rem + 1.5vw, 1.9rem); line-height: 1.15; padding-block: .35rem; }
.stat__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #98a0aa;
  line-height: 1.45;
}

/* Stats sitting on a light background, overlapping the hero above */
.stats--float {
  margin-top: calc(-1 * clamp(3rem, 6vw, 5rem));
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   11  Process / steps
   ========================================================================== */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
}
.step { position: relative; padding-top: 2.75rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.step::after {
  content: "";
  position: absolute;
  top: 14px; left: 3.4rem; right: -1rem;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
@media (max-width: 720px) { .step::after { display: none; } }
.on-dark .step::after { background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 12px); }
.step h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.step p  { font-size: var(--fs-sm); color: var(--steel); margin-bottom: 0; }

/* ==========================================================================
   12  Fleet & capability lists
   ========================================================================== */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  font-weight: 700;
  width: 40%;
  color: var(--ink);
}
.spec-table td { color: var(--steel); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.on-dark .spec-table th { color: #fff; }
.on-dark .spec-table td { color: #a9b0b9; }
.on-dark .spec-table th, .on-dark .spec-table td { border-color: var(--ink-3); }

.chip-list { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.chip {
  padding: .5rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--paper);
}
.on-dark .chip { background: var(--ink-2); border-color: var(--ink-3); color: #cfd4da; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.5rem);
}
.on-dark .panel { background: var(--ink-2); border-color: var(--ink-3); }

/* ==========================================================================
   13  Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
}

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.info-item { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.info-item__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--amber-soft);
  color: var(--amber-deep);
  border-radius: var(--radius);
}
.info-item__icon svg { width: 21px; height: 21px; }
.info-item__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel-2);
  margin-bottom: .3rem;
}
.info-item__value { font-size: var(--fs-sm); line-height: 1.6; white-space: pre-line; }
.info-item__value a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .18s var(--ease), color .18s var(--ease); }
.info-item__value a:hover { color: var(--amber-deep); border-bottom-color: var(--amber); }

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field--2 { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field--2 { grid-template-columns: 1fr 1fr; } }

.label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--steel);
}
.label .req { color: var(--amber-deep); }

.input, .textarea, .select {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  padding: .8rem .95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.textarea { min-height: 150px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("../img/chevron.svg");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 168, 29, .22);
}
.input::placeholder, .textarea::placeholder { color: var(--steel-2); }

.form-note { font-size: var(--fs-xs); color: var(--steel-2); margin: 0; }

.form-status {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  border: 1px solid;
}
.form-status[hidden] { display: none; }
.form-status--ok   { background: #eef7f1; border-color: #bcdcc9; color: var(--ok); }
.form-status--err  { background: #fdf0ef; border-color: #f0c6c2; color: #a8332a; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-2);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: clamp(300px, 42vw, 440px); border: 0; }

/* ==========================================================================
   14  CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #14161a 0%, #241d15 100%);
  z-index: -2;
}
.cta-band .topo { z-index: -1; opacity: .3; }
.cta-band__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(3.25rem, 6vw, 5rem);
}
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: minmax(0, 1.5fr) auto; }
}
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: .6rem; }
.cta-band p  { color: #b0b7c0; margin-bottom: 0; max-width: 54ch; }
.cta-band .btn-row { margin-top: 0; }

/* ==========================================================================
   15  Footer
   ========================================================================== */

.site-footer {
  background: #0f1114;
  color: #99a1ab;
  font-size: var(--fs-sm);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 700px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.35fr; } }

.footer__brand .brand { margin-bottom: 1.1rem; color: #fff; }
.footer__brand .brand__sub { color: #6f7883; }
.footer__blurb { max-width: 40ch; line-height: 1.7; }

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer a { text-decoration: none; transition: color .18s var(--ease); }
.footer a:hover { color: var(--amber); }

.footer__bottom {
  border-top: 1px solid #22262c;
  padding-block: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: #6f7883;
}

/* ==========================================================================
   16  Language switch & Chinese typography
   ========================================================================== */

.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--sand-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: none;
}
.lang-switch__btn {
  padding: .38rem .8rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--steel);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* Condensed Latin display faces do not carry CJK glyphs; when the page is in
   Chinese, swap the display stack and relax the tracking. */
html.lang-zh .display,
html.lang-zh .hero__title,
html.lang-zh .brand__name,
html.lang-zh .stat__num,
html.lang-zh .client,
html.lang-zh .step::before,
html.lang-zh h1, html.lang-zh h2, html.lang-zh h3, html.lang-zh h4 {
  font-family: var(--font-cjk);
  letter-spacing: 0;
  text-transform: none;
}
html.lang-zh .stat__num, html.lang-zh .step::before { font-family: var(--font-display); }
html.lang-zh .brand__name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .028em; }
html.lang-zh .hero__title { line-height: 1.18; letter-spacing: .01em; }
html.lang-zh .eyebrow,
html.lang-zh .stat__label,
html.lang-zh .info-item__label,
html.lang-zh .label,
html.lang-zh .tag,
html.lang-zh .project__loc,
html.lang-zh .breadcrumb,
html.lang-zh .brand__sub,
html.lang-zh .footer h4 { letter-spacing: .06em; }
html.lang-zh body { line-height: 1.85; }
html.lang-zh .client { font-size: .98rem; letter-spacing: .02em; }

/* Line-length caps are written in `ch`, which is the width of "0" — roughly
   half a Han glyph. Left as-is, Chinese lines break at half the intended
   measure and split words across lines. Restate the caps in `em`, where one
   unit is one Han character. */
html.lang-zh .hero__title            { max-width: 15em; }
html.lang-zh .hero--page .hero__title { max-width: 17em; }
html.lang-zh .hero__lead             { max-width: 33em; }
html.lang-zh .section-head           { max-width: 34em; }
html.lang-zh .cta-band p             { max-width: 30em; }
html.lang-zh .footer__blurb          { max-width: 22em; }
html.lang-zh .card p,
html.lang-zh .step p,
html.lang-zh .project p              { max-width: 30em; }

/* ==========================================================================
   17  Motion & accessibility
   ========================================================================== */

/* Scroll reveals are opt-in: the .js class is set by an inline script in each
   page's <head>. Without scripting the content simply renders, so a failed
   observer or a blocked script can never leave the page blank. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-scrim, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { background: #fff !important; color: #000 !important; }
}
