/* =========================================================================
   Sastha Soil Testing Services — static site styles
   Zero external dependencies. System font stack, inline SVG icons.
   ========================================================================= */

:root {
  /* Brand palette — deep geotechnical green + warm soil/clay accent */
  --ink:        #0f1f18;
  --brand:      #1e5945;
  --brand-700:  #16483a;
  --brand-800:  #103528;
  --accent:     #d98c3f;   /* warm clay / amber */
  --accent-600: #c2772c;
  --sand:       #f6f2ea;   /* warm off-white page bg */
  --paper:      #ffffff;
  --line:       #e4ddd0;   /* warm hairline */

  --text:       #1c2a24;
  --text-soft:  #4b5a52;
  --text-mute:  #7a877f;
  --on-brand:   #eef5f1;

  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(16,34,26,.06), 0 1px 3px rgba(16,34,26,.08);
  --shadow-md:  0 6px 18px rgba(16,34,26,.08), 0 2px 6px rgba(16,34,26,.06);
  --shadow-lg:  0 24px 50px -16px rgba(16,34,26,.28);

  --maxw: 1160px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-head: "Sora", var(--font-sans);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--sand);
  line-height: 1.65;
  font-size: 1rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }   /* keep real proportions when CSS sets only the width */
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); letter-spacing: -.01em; font-weight: 700; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.grid { display: grid; gap: var(--gap); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- Section headers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-top: .7rem; }
.section-head p { color: var(--text-soft); margin-top: .8rem; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--brand); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--_bg); color: var(--_fg); cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn--accent { --_bg: var(--accent); }
.btn--accent:hover { background: var(--accent-600); }
.btn--ghost { --_bg: transparent; --_fg: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, transparent); box-shadow: none; }
.btn--ghost:hover { --_fg: #fff; background: var(--brand); }
.btn--light { --_bg: #fff; --_fg: var(--brand); }
.btn--light:hover { color: var(--brand); background: #fff; }
.btn--outline-light { --_bg: transparent; --_fg: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color:#fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--sand) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: color-mix(in srgb, var(--sand) 95%, transparent); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 34px; width: auto; }
.brand .brand-text { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.1; letter-spacing: -.01em; }
.brand .brand-text small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .04em; color: var(--text-mute); text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: .3rem; }
.nav-menu a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--text-soft);
  padding: .5rem .85rem; border-radius: 8px; transition: color .15s ease, background .15s ease;
}
.nav-menu a:hover { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.nav-menu a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-menu a.btn, .nav-menu a.btn:hover { color: #fff; }
.nav-menu a.btn { background: var(--accent); margin-left: .4rem; }
.nav-menu a.btn:hover { background: var(--accent-600); }
.footer-logo { display: inline-flex; background: #fff; border-radius: 10px; padding: .55rem .8rem; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-brand);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(217,140,63,.22), transparent 55%),
    linear-gradient(160deg, var(--brand-800) 0%, var(--brand-700) 48%, var(--brand) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 500px at 70% 10%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(3.5rem, 8vw, 6.5rem); display: grid; gap: clamp(2rem,5vw,3.5rem); grid-template-columns: 1.15fr .85fr; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.07; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { color: rgba(238,245,241,.82); font-size: clamp(1.05rem, 2vw, 1.22rem); margin-top: 1.1rem; max-width: 36ch; }
.hero .btn-row { margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600;
  font-family: var(--font-head); color: var(--on-brand);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: .4rem .8rem; border-radius: 999px;
}
.badge svg { width: 15px; height: 15px; stroke: var(--accent); }

/* Hero side card */
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; font-size: 1.1rem; }
.hero-card .mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.1rem; }
.mini-stat { background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: .9rem; }
.mini-stat .n { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--accent); }
.mini-stat .l { font-size: .8rem; color: rgba(238,245,241,.75); margin-top: .15rem; }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--paper); border-block: 1px solid var(--line); }
.stat-strip .grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { text-align: center; padding: clamp(1.4rem,3vw,2.2rem) 1rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem,3.5vw,2.3rem); color: var(--brand); }
.stat .l { color: var(--text-soft); font-size: .92rem; margin-top: .2rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.5vw, 1.7rem); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }
.card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card p { color: var(--text-soft); font-size: .96rem; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 10%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
  margin-bottom: 1rem;
}
.icon-badge svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.card:hover .icon-badge { background: var(--brand); border-color: var(--brand); }
.card:hover .icon-badge svg { stroke: #fff; }

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

/* Service category card (with list) */
.svc-card .count { font-size: .78rem; font-weight: 600; font-family: var(--font-head); color: var(--accent-600); background: color-mix(in srgb, var(--accent) 14%, var(--paper)); padding: .2rem .6rem; border-radius: 999px; }
.svc-card .card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chip { font-size: .82rem; color: var(--text-soft); background: var(--sand); border: 1px solid var(--line); border-radius: 8px; padding: .28rem .6rem; }
.svc-note { margin-top: 1rem; color: var(--text-soft); font-size: .95rem; }

/* ---------- About ---------- */
.about-grid { grid-template-columns: 1.1fr .9fr; align-items: start; gap: clamp(2rem,5vw,3.5rem); }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--text-soft); }
.feature-list { margin-top: 1.4rem; display: grid; gap: .9rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list .tick { flex: none; width: 26px; height: 26px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, var(--paper)); display: grid; place-items: center; margin-top: .1rem; }
.feature-list .tick svg { width: 15px; height: 15px; stroke: var(--brand); stroke-width: 2.4; fill: none; }
.feature-list strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .98rem; }
.feature-list span.d { color: var(--text-soft); font-size: .92rem; }

.policy-card { background: linear-gradient(160deg, var(--brand-700), var(--brand)); color: var(--on-brand); border-radius: var(--radius-lg); padding: clamp(1.5rem,3vw,2.2rem); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.policy-card::before { content: "“"; position: absolute; top: -20px; right: 10px; font-size: 9rem; font-family: Georgia, serif; color: rgba(255,255,255,.08); line-height: 1; }
.policy-card h3 { color: #fff; position: relative; }
.policy-card p { color: rgba(238,245,241,.85); margin-top: .8rem; font-size: .98rem; position: relative; }
.mentor { display: flex; align-items: center; gap: .9rem; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.15); position: relative; }
.mentor .ava { width: 46px; height: 46px; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.mentor .m-name { font-family: var(--font-head); font-weight: 600; color: #fff; }
.mentor .m-role { font-size: .85rem; color: rgba(238,245,241,.7); }

/* ---------- Coverage ---------- */
.region-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.region { display: inline-flex; align-items: center; gap: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-family: var(--font-head); font-weight: 500; font-size: .95rem; box-shadow: var(--shadow-sm); }
.region svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.8; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem,3vw,2rem); box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.quote-card .stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }
.quote-card blockquote { font-size: 1.05rem; color: var(--text); margin-top: .8rem; flex: 1; }
.quote-card .by { display: flex; align-items: center; gap: .8rem; margin-top: 1.3rem; }
.quote-card .ava { width: 44px; height: 44px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, var(--paper)); color: var(--brand); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.quote-card .n { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.quote-card .r { display: block; font-size: .85rem; color: var(--text-mute); }

/* ---------- Equipment ---------- */
.equip-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.equip {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem; display: flex; align-items: center; gap: .8rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.equip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }
.equip .ic { flex: none; width: 42px; height: 42px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 9%, var(--paper)); display: grid; place-items: center; }
.equip .ic svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.7; }
.equip span { font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--ink); line-height: 1.25; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-800), var(--brand)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem,5vw,3.2rem); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(500px 300px at 20% 120%, rgba(217,140,63,.3), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem,4vw,2.3rem); }
.cta-band p { color: rgba(238,245,241,.85); margin-top: .7rem; max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
.contact-grid > *, .info-row > div { min-width: 0; }
.info-row .val, .footer-contact { overflow-wrap: anywhere; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem,3vw,1.8rem); box-shadow: var(--shadow-sm); }
.info-row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 10%, var(--paper)); display: grid; place-items: center; }
.info-row .ic svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.info-row .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); font-weight: 600; }
.info-row .val { font-family: var(--font-head); color: var(--ink); font-weight: 500; font-size: 1rem; margin-top: .1rem; }
.info-row .val a { color: var(--ink); }
.info-row .val a:hover { color: var(--accent-600); }
.branch-tag { display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color: var(--accent-600); background: color-mix(in srgb, var(--accent) 14%, var(--paper)); padding:.15rem .5rem; border-radius:6px; margin-bottom:.4rem; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem,3vw,1.8rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--sand);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--text-mute); margin-top: .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d4ce; padding-block: clamp(2.5rem,5vw,3.5rem) 1.5rem; }
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem,3vw,2.5rem); }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer .brand .brand-text, .site-footer .brand .brand-text small { color: #fff; }
.site-footer p { color: #a6b3ac; font-size: .92rem; }
.footer-links a { display: block; color: #a6b3ac; padding: .3rem 0; font-size: .95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { font-size: .92rem; color: #a6b3ac; }
.footer-contact a { color: #c9d4ce; }
.footer-contact a:hover { color: var(--accent); }
.footer-certs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.footer-certs .badge { color: #c9d4ce; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; color: #8695;  font-size: .88rem; }
.footer-bottom p { color: #8a978f; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--brand-800), var(--brand-700)); color: #fff; padding-block: clamp(2.6rem,6vw,4.2rem); position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; opacity:.5; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(700px 300px at 80% 0%, #000, transparent 75%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem,4.5vw,2.9rem); }
.page-hero p { color: rgba(238,245,241,.82); margin-top: .7rem; max-width: 56ch; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .88rem; color: rgba(238,245,241,.7); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(238,245,241,.9); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .6; }

/* ---------- Image cards (services) ---------- */
.img-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.img-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }
.img-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-800); position: relative; }
.img-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.img-card:hover .thumb img { transform: scale(1.06); }
.img-card .thumb .tag { position: absolute; top: .7rem; left: .7rem; font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(16,53,40,.85); padding: .25rem .6rem; border-radius: 999px; backdrop-filter: blur(3px); }
.img-card .body { padding: 1.15rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.img-card .body h3 { font-size: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.img-card .body .count { font-size: .74rem; font-weight: 600; font-family: var(--font-head); color: var(--accent-600); background: color-mix(in srgb, var(--accent) 14%, var(--paper)); padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.img-card .body p { color: var(--text-soft); font-size: .93rem; margin-top: .5rem; }
.img-card .chip-list { margin-top: .9rem; }
.img-card .more-link { margin-top: auto; padding-top: 1rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--brand); display: inline-flex; align-items: center; gap: .35rem; }
.img-card .more-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.img-card:hover .more-link svg { transform: translateX(3px); }

/* Equipment photo cards */
.equip-grid.photos { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.equip-photo { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.equip-photo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }
.equip-photo .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-800); }
.equip-photo .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.equip-photo:hover .thumb img { transform: scale(1.06); }
.equip-photo .cap { padding: .8rem .9rem; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); text-align: center; line-height: 1.25; }

/* Full inventory chip list */
.inventory { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.inventory li { display: flex; align-items: center; gap: .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .93rem; color: var(--ink); box-shadow: var(--shadow-sm); }
.inventory li svg { flex: none; width: 17px; height: 17px; stroke: var(--brand); stroke-width: 2.2; fill: none; }

/* ---------- Clients strip ---------- */
.clients-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }
.clients-row .logo, .marquee .logo { width: 96px; height: 96px; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: .5rem; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; filter: grayscale(100%); opacity: .78; }
.clients-row .logo:hover, .marquee .logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); filter: none; opacity: 1; }
.clients-row .logo img, .marquee .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Full-width service rows (services page) */
.svc-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.svc-row + .svc-row { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.svc-row:nth-child(even) .svc-media { order: 2; }
.svc-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; background: var(--brand-800); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-body h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.svc-body .count { display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600); margin-bottom: .6rem; }
.svc-body p { color: var(--text-soft); margin: .5rem 0 0; }
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-media { order: 0; }
  .inventory { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .inventory { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { perspective: 1400px; }
html.js .reveal > * {
  --d: calc(var(--ri, 0) * 80ms);
  opacity: 0; translate: 0 46px; rotate: x 24deg; transform-origin: 50% 100%;
  transition: opacity .7s ease var(--d), translate .9s cubic-bezier(.2,.75,.2,1) var(--d), rotate .9s cubic-bezier(.2,.75,.2,1) var(--d),
              transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
html.js .reveal.in > * { opacity: 1; translate: 0 0; rotate: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .equip:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards-4, .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--sand); border-bottom: 1px solid var(--line); padding: 1rem clamp(1rem,4vw,2rem) 1.4rem;
    gap: .2rem; box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease; max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a { padding: .75rem .6rem; border-radius: 10px; font-size: 1rem; }
  .nav-menu a.btn { margin-top: .5rem; margin-left: 0; }
  .nav-actions .btn:not(.nav-toggle) { display: none; } /* keep header lean on mobile */
}
@media (max-width: 680px) {
  .stat-strip .grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .cards-4, .equip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand .brand-text small { display: none; }
}

/* =========================================================================
   v2 — vector logo, preloader, 3D hero, tilt, parallax, projects, marquee
   ========================================================================= */

/* ---------- Logo ---------- */
.site-header .brand img { height: 46px; width: auto; }
.site-footer .footer-logo { background: none; padding: 0; }
.site-footer .footer-logo img { height: 46px; width: auto; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
html.js .preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(1100px 650px at 50% 38%, #1f5b47 0%, #103528 55%, #0a2219 100%);
  transition: opacity .55s ease, visibility .55s ease;
  animation: pl-failsafe .5s ease 6s forwards;   /* never trap the page if JS fails */
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes pl-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.pl-stage { display: grid; justify-items: center; gap: 26px; perspective: 900px; }
.pl-coin { position: relative; width: 132px; height: 132px; transform-style: preserve-3d; animation: pl-tilt 2.6s ease-in-out infinite; }
.pl-coin img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 22px 44px -12px rgba(0,0,0,.55); }
.pl-ring { position: absolute; inset: -16px; transform: translateZ(34px); overflow: visible; }
.pl-ring circle { fill: none; stroke: #eab676; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: pl-draw 1.8s cubic-bezier(.6,.1,.3,.9) infinite; }
.pl-name { width: 210px; height: auto; opacity: .95; }
.pl-strata { width: 210px; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.12); }
.pl-strata span { display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #87a4a0 0 25%, #eab676 25% 50%, #d98c3f 50% 75%, #2a9d8f 75%);
  animation: pl-fill 1.2s cubic-bezier(.5,0,.2,1) forwards; }
html.pl-quick .pl-strata span { animation-duration: .35s; }
@keyframes pl-tilt { 0%,100% { transform: rotateY(-26deg) rotateX(8deg); } 50% { transform: rotateY(26deg) rotateX(-6deg); } }
@keyframes pl-draw { 0% { stroke-dashoffset: 520; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -520; } }
@keyframes pl-fill { to { width: 100%; } }

/* ---------- 3D hero carousel ---------- */
.hero3d { position: relative; overflow: hidden; background: #0b241b; color: #fff; isolation: isolate; perspective: 1600px; }
.hero-slides { display: grid; }
.hslide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: clamp(580px, 84vh, 760px);
  visibility: hidden; transform-origin: 50% 50% -50vw; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.hslide.is-active { visibility: visible; z-index: 1; }
.hslide.is-leaving { visibility: visible; z-index: 2; }
.hslide-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hslide-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 8s cubic-bezier(.2,.6,.2,1); }
.hslide.is-active .hslide-bg img { transform: scale(1.0); }
.hslide-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,30,22,.94) 0%, rgba(12,40,30,.82) 42%, rgba(12,40,30,.38) 100%),
              radial-gradient(800px 500px at 85% 10%, rgba(217,140,63,.25), transparent 60%); }
.hslide-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: 4.5rem 6.5rem; width: 100%; }
.hslide-copy > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.hslide.is-active .hslide-copy > * { opacity: 1; transform: none; }
.hslide.is-active .hslide-copy > :nth-child(1) { transition-delay: .25s; }
.hslide.is-active .hslide-copy > :nth-child(2) { transition-delay: .38s; }
.hslide.is-active .hslide-copy > :nth-child(3) { transition-delay: .5s; }
.hslide.is-active .hslide-copy > :nth-child(4) { transition-delay: .62s; }
.hslide.is-active .hslide-copy > :nth-child(5) { transition-delay: .74s; }
.hslide-copy .eyebrow { color: #eab676; }
.hslide-copy .eyebrow::before { background: #eab676; }
.hslide-copy .htitle { color: #fff; font-size: clamp(2.3rem, 5.8vw, 4.1rem); line-height: 1.05; margin-top: .8rem;
  text-shadow: 0 1px 0 #0d3327, 0 2px 0 #0b2d22, 0 3px 0 #09261d, 0 4px 0 #072018, 0 14px 26px rgba(0,0,0,.45); }
.hslide-copy .htitle .hl { color: var(--accent); }
.hslide-copy .lead { color: rgba(238,245,241,.85); font-size: clamp(1.02rem, 2vw, 1.2rem); margin-top: 1.1rem; max-width: 40ch; }
.hslide-copy .btn-row { margin-top: 1.8rem; }
.hslide-copy .hero-badges { margin-top: 1.8rem; }

/* 3D floating photo card */
.hcard-wrap { perspective: 1100px; justify-self: center; width: min(100%, 470px); }
.hcard {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(calc(-15deg + var(--mx, 0) * 34deg)) rotateX(calc(7deg - var(--my, 0) * 22deg));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hslide:not(.is-active) .hcard { transform: rotateY(-48deg) rotateX(10deg) translateZ(-260px); }
.hslide.is-active .hcard { transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
.hero3d.pointer-live .hslide.is-active .hcard { transition: transform .25s ease-out; }
.hcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 50px 90px -30px rgba(0,0,0,.75); }
.hcard .hc-frame { position: absolute; inset: -16px; border: 2px solid rgba(234,182,118,.55); border-radius: 30px; transform: translateZ(-50px); }
.hcard .hc-chip {
  position: absolute; left: -26px; bottom: 26px; transform: translateZ(80px);
  display: flex; align-items: center; gap: .7rem; background: #fff; color: var(--ink);
  padding: .75rem 1rem; border-radius: 16px; box-shadow: 0 24px 40px -14px rgba(0,0,0,.5);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; line-height: 1.2;
}
.hcard .hc-chip img { width: 40px; height: 40px; aspect-ratio: auto; border-radius: 50%; box-shadow: none; }
.hcard .hc-chip small { display: block; font-weight: 500; color: var(--text-mute); font-size: .76rem; }
.hcard .hc-tag {
  position: absolute; right: -18px; top: 22px; transform: translateZ(60px);
  background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; padding: .5rem .85rem; border-radius: 999px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.5);
}

/* hero controls */
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; }
.hero-ctrl .container { display: flex; align-items: center; gap: 1rem; }
.hdots { display: flex; gap: .55rem; }
.hdot { width: 34px; height: 6px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.28); position: relative; overflow: hidden; }
.hdot[aria-current="true"] { background: rgba(255,255,255,.35); }
.hdot[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(1); }
.hero3d.ticking .hdot[aria-current="true"]::after { animation: hdot-run var(--dur, 7000ms) linear forwards; }
@keyframes hdot-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.harrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.harrow:hover { background: var(--accent); border-color: var(--accent); }
.harrow svg { width: 20px; height: 20px; }
.hero-ctrl .spacer { flex: 1; }
.hero-ctrl .hcount { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.75); min-width: 3.2em; }

/* ---------- 3D tilt + glare (fine pointers only; enabled by JS) ---------- */
html.tilt-on [data-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; will-change: transform;
}
html.tilt-on [data-tilt]:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); box-shadow: var(--shadow-lg); }
html.tilt-on [data-tilt].tilting { transition: transform .08s linear, box-shadow .3s ease; }
html.tilt-on [data-tilt] { position: relative; }
html.tilt-on [data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.32), rgba(255,255,255,0) 48%);
  opacity: 0; transition: opacity .3s ease;
}
html.tilt-on [data-tilt]:hover::after { opacity: 1; }
html.tilt-on [data-tilt] .pop { transform: translateZ(38px); }
html.tilt-on [data-tilt] .pop-sm { transform: translateZ(22px); }

/* ---------- About: layered 3D photo stack ---------- */
.photo-stack { position: relative; padding: 0 0 12% 0; }
.photo-stack .ps-main { width: 86%; border-radius: 22px; box-shadow: var(--shadow-lg); aspect-ratio: 990 / 600; object-fit: cover; }
.photo-stack .ps-float { position: absolute; right: 0; bottom: 0; width: 44%; border: 6px solid #fff; border-radius: 20px; box-shadow: var(--shadow-lg); }
.photo-stack .ps-badge {
  position: absolute; left: -2%; top: 10%; background: var(--brand); color: #fff; border-radius: 16px;
  padding: .9rem 1.1rem; box-shadow: var(--shadow-lg); font-family: var(--font-head); line-height: 1.15;
}
.photo-stack .ps-badge b { display: block; font-size: 1.7rem; color: #eab676; }
.photo-stack .ps-badge span { font-size: .82rem; color: rgba(238,245,241,.85); }
html.tilt-on .photo-stack[data-tilt] .ps-float { transform: translateZ(70px); }
html.tilt-on .photo-stack[data-tilt] .ps-badge { transform: translateZ(100px); }
html.tilt-on .photo-stack[data-tilt]::after { display: none; }

/* ---------- Photo-background sections with parallax ---------- */
.bg-section { position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.bg-section .bg-media { position: absolute; left: 0; right: 0; top: -12%; height: 124%; width: 100%; object-fit: cover; z-index: -2; will-change: transform; }
.bg-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(9,30,22,.93), rgba(16,53,40,.84) 55%, rgba(16,53,40,.7)); }
.bg-section h2, .bg-section h3 { color: #fff; }
.bg-section .eyebrow { color: #eab676; }
.bg-section .eyebrow::before { background: #eab676; }
.policy-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.policy-grid p { color: rgba(238,245,241,.88); }
.policy-grid .mentor { border-top-color: rgba(255,255,255,.18); }
.nabl-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 1.6rem; text-align: center; box-shadow: 0 40px 70px -30px rgba(0,0,0,.6); }
.nabl-card img { width: 150px; margin: 0 auto; }
.nabl-card h3 { color: var(--ink); font-size: 1.05rem; margin-top: .9rem; }
.nabl-card p { color: var(--text-soft); font-size: .9rem; margin-top: .3rem; }
.nabl-card .footer-certs .badge { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); border-color: color-mix(in srgb, var(--brand) 20%, #fff); }
.nabl-card .footer-certs { justify-content: center; }

/* ---------- Why choose us (4) ---------- */
.why-grid { grid-template-columns: repeat(4, 1fr); }
.cred-list { margin-top: .8rem; display: grid; gap: .45rem; }
.cred-list li { display: flex; gap: .5rem; align-items: center; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); }
.cred-list li svg { width: 16px; height: 16px; stroke: var(--accent-600); stroke-width: 2.4; fill: none; flex: none; }

/* ---------- Projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
.proj { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--brand-800); box-shadow: var(--shadow-sm); }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.proj:hover img { transform: scale(1.08); }
.proj figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 2.2rem .8rem .7rem;
  background: linear-gradient(180deg, rgba(10,32,24,0), rgba(10,32,24,.92)); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; line-height: 1.2;
}

/* ---------- Request-a-service split ---------- */
.request-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.request-media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; max-height: 520px; }
.request-media img { width: 100%; height: 100%; object-fit: cover; }
.request-actions { display: grid; gap: .8rem; margin-top: 1.6rem; }
.request-actions a.info-line { display: flex; align-items: center; gap: .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease; overflow-wrap: anywhere; }
.request-actions a.info-line:hover { border-color: var(--brand); box-shadow: var(--shadow-md); color: var(--ink); }
.request-actions .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 10%, var(--paper)); display: grid; place-items: center; }
.request-actions .ic svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.request-actions small { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); font-weight: 600; }
.request-actions b { font-family: var(--font-head); font-weight: 600; }

/* ---------- Clients marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); padding-block: .5rem; }
.marquee-track { display: flex; gap: 1rem; width: max-content; }
.marquee-track.is-cloned { animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .logo { flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - .5rem)); } }

/* ---------- Page hero with photo ---------- */
.page-hero .ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .32; mix-blend-mode: luminosity; }
.page-hero.has-photo::after { z-index: 0; }

/* ---------- Responsive (v2) ---------- */
@media (max-width: 1100px) { .proj-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 960px) {
  .hslide-inner { grid-template-columns: 1fr; padding-block: 3.5rem 6rem; }
  .hcard-wrap { display: none; }
  .policy-grid, .request-split { grid-template-columns: 1fr; }
  .nabl-card { max-width: 360px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(4, 1fr); }
  .request-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) { .site-header .brand img { height: 40px; } }
@media (max-width: 680px) {
  .hslide { min-height: 600px; }
  .proj-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .proj figcaption { font-size: .78rem; padding: 1.6rem .5rem .5rem; }
  .why-grid { grid-template-columns: 1fr; }
  .photo-stack .ps-badge b { font-size: 1.3rem; }
}
@media (max-width: 420px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reduced motion: keep it calm ---------- */
@media (prefers-reduced-motion: reduce) {
  .hslide, .hslide.is-active, .hslide.is-leaving { transform: none !important; transition: opacity .4s ease, visibility 0s !important; }
  .hslide-bg img, .hslide.is-active .hslide-bg img { transform: none; transition: none; }
  .hslide-copy > * { opacity: 1; transform: none; transition: none; }
  .hcard, .hslide:not(.is-active) .hcard { transform: rotateY(-12deg) rotateX(5deg); transition: none; }
  .pl-coin, .pl-ring circle { animation: none; }
  .pl-ring circle { stroke-dashoffset: 0; }
  .marquee-track.is-cloned { animation: none; }
  .bg-section .bg-media { transform: none !important; }
  .proj img, .proj:hover img { transition: none; transform: none; }
}

/* v2 fixes */
html:not(.js) .hero-ctrl { display: none; }
.marquee-track:not(.is-cloned) { flex-wrap: wrap; justify-content: center; width: auto; padding-inline: 16px; }
html.tilt-on .photo-stack[data-tilt]:hover { box-shadow: none; }

/* ---------- Click-to-load map (contact) ---------- */
.map-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); min-height: 380px; display: grid;
  background: linear-gradient(rgba(30,89,69,.06) 1px, transparent 1px) 0 0 / 34px 34px, linear-gradient(90deg, rgba(30,89,69,.06) 1px, transparent 1px) 0 0 / 34px 34px, radial-gradient(600px 300px at 50% 40%, #eef4ef, #e6ece4); }
.map-ph { display: grid; justify-items: center; align-content: center; gap: .9rem; padding: 2rem 1.2rem; text-align: center; }
.map-pin { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 18px 30px -12px rgba(16,53,40,.6); }
.map-pin svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.8; }
.map-addr { max-width: 46ch; color: var(--ink); font-family: var(--font-head); font-weight: 500; }
.map-note { color: var(--text-mute); font-size: .82rem; }
.map-card iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* =========================================================================
   v3 — live-site content structure
   ========================================================================= */
/* Top contact bar (as on the live site) */
.topbar { background: var(--ink); color: #c9d4ce; font-size: .84rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: flex-end; padding-block: .45rem; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .45rem; color: #c9d4ce; }
.topbar a:hover { color: var(--accent); }
.topbar svg { width: 14px; height: 14px; stroke: var(--accent); flex: none; }
@media (max-width: 760px) { .topbar { display: none; } }

.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 1rem; }
.bg-section .section-title { color: #fff; }
.section-statement { font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin-top: .7rem; line-height: 1.3; }
.why-grid h5 { font-family: var(--font-head); font-size: 1.12rem; color: var(--ink); margin-bottom: .5rem; }

/* Numbered test lists (live "1.Water Content," style, rendered as real lists) */
.svc-lead { margin-top: .9rem; font-weight: 600; color: var(--ink); }
.svc-list { margin: .6rem 0 0; padding-left: 1.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.5rem; color: var(--text-soft); }
.svc-list li::marker { color: var(--accent-600); font-weight: 600; }
.svc-list.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; counter-reset: t; }
.svc-list.chips li { counter-increment: t; font-size: .86rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .65rem; }
.svc-list.chips li::before { content: counter(t) ". "; color: var(--accent-600); font-weight: 600; }
.svc-body > p { color: var(--text-soft); }

/* Know More dialogs */
.svc-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--text); background: var(--paper); }
.svc-dialog::backdrop { background: rgba(9, 30, 22, .62); backdrop-filter: blur(3px); }
.svc-dialog[open] { display: flex; flex-direction: column; animation: dlg-in .35s cubic-bezier(.2,.7,.2,1); }
@keyframes dlg-in { from { opacity: 0; transform: perspective(900px) rotateX(-10deg) translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--sand); }
.dlg-head h3 { font-size: 1.2rem; }
.dlg-x { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.dlg-x svg { width: 18px; height: 18px; }
.dlg-body { padding: .6rem 1.4rem 1.2rem; overflow-y: auto; }
.dlg-foot { padding: .9rem 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
@media (max-width: 520px) { .svc-list { grid-template-columns: 1fr; } }

/* Projects filter + category */
.proj-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 1.8rem; }
html:not(.js) .proj-filter { display: none; }
.chip-btn { font-family: var(--font-head); font-weight: 600; font-size: .9rem; padding: .55rem 1.2rem; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--brand) 30%, transparent); background: transparent; color: var(--brand); cursor: pointer; transition: background .2s ease, color .2s ease; }
.chip-btn[aria-pressed="true"], .chip-btn:hover { background: var(--brand); color: #fff; }
.proj figcaption small { display: block; font-weight: 500; font-size: .74rem; color: #eab676; letter-spacing: .04em; margin-top: .15rem; }
.proj[hidden] { display: none; }
.proj.pop-in { animation: proj-in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes proj-in { from { opacity: 0; transform: perspective(700px) rotateY(-25deg) scale(.9); } to { opacity: 1; transform: none; } }

/* Request for a Service band */
.request-band .request-split { grid-template-columns: .8fr 1.2fr; }
.request-intro .eyebrow { font-size: .95rem; }
.request-phone { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1rem; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: #fff; }
.request-phone:hover { color: var(--accent); }
.request-phone svg { width: 1.1em; height: 1.1em; stroke: var(--accent); }
.request-band .form-card { color: var(--text); }

/* Form (live fields: Name First/Last, Email, Comment or Message) */
.form-title { font-size: 1.35rem; margin-bottom: 1.1rem; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
fieldset.field legend { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: .4rem; padding: 0; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field label.sub { display: grid; gap: .3rem; margin: 0; font-weight: 400; }
.field label.sub span { font-size: .8rem; color: var(--text-mute); font-family: var(--font-sans); }
.form-note { overflow-wrap: anywhere; }
@media (max-width: 420px) { .name-row { grid-template-columns: 1fr; } }

.info-row h4.label { font-size: .78rem; font-family: var(--font-sans); }
.dir-link { display: inline-flex; margin-top: .5rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }

/* Footer (live columns) */
.site-footer .footer-grid { grid-template-columns: 1.3fr 1.3fr .8fr 1.2fr; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.footer-bottom-links a { color: #8a978f; font-size: .88rem; }
.footer-bottom-links a:hover { color: var(--accent); }
@media (max-width: 960px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } .request-band .request-split { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .svc-dialog[open], .proj.pop-in { animation: none; } }

/* =========================================================================
   v4 — more 3D: cube slider, depth parallax, flip cards, coverflow, badge flip, logo ring
   ========================================================================= */

/* ---------- Hero: rotating-cube transition ---------- */
.hero-slides { transform-style: preserve-3d; }
.hslide::before { content: ""; position: absolute; inset: 0; background: #020a07; opacity: 0; pointer-events: none; z-index: 6; }
.hero3d.dir-next .hslide.turning   { animation: cube-in-next 1.25s cubic-bezier(.65,.05,.25,1) both; }
.hero3d.dir-next .hslide.is-leaving { animation: cube-out-next 1.25s cubic-bezier(.65,.05,.25,1) both; }
.hero3d.dir-prev .hslide.turning   { animation: cube-in-prev 1.25s cubic-bezier(.65,.05,.25,1) both; }
.hero3d.dir-prev .hslide.is-leaving { animation: cube-out-prev 1.25s cubic-bezier(.65,.05,.25,1) both; }
.hslide.turning::before   { animation: shade-in 1.25s ease both; }
.hslide.is-leaving::before { animation: shade-out 1.25s ease both; }
.hero3d.turning .hero-slides { animation: cube-pull 1.25s cubic-bezier(.65,.05,.25,1) both; }
@keyframes cube-in-next  { from { transform: rotateY(90deg); }  to { transform: rotateY(0deg); } }
@keyframes cube-out-next { from { transform: rotateY(0deg); }   to { transform: rotateY(-90deg); } }
@keyframes cube-in-prev  { from { transform: rotateY(-90deg); } to { transform: rotateY(0deg); } }
@keyframes cube-out-prev { from { transform: rotateY(0deg); }   to { transform: rotateY(90deg); } }
@keyframes cube-pull { 0%, 100% { transform: translateZ(0); } 50% { transform: translateZ(-28vw); } }
@keyframes shade-in  { from { opacity: .7; } to { opacity: 0; } }
@keyframes shade-out { from { opacity: 0; }  to { opacity: .7; } }

/* ---------- Hero: depth parallax (background / copy / card on separate planes) ---------- */
.hslide-bg img { translate: calc(var(--mx, 0) * -28px) calc(var(--my, 0) * -18px); transition: transform 8s cubic-bezier(.2,.6,.2,1), translate .45s ease-out; }
.hslide-copy { translate: calc(var(--mx, 0) * 16px) calc(var(--my, 0) * 10px); transition: translate .45s ease-out; }
.hcard-wrap { position: relative; animation: hc-float 6s ease-in-out infinite; }
@keyframes hc-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* headline words flip up on each slide */
.htitle.split { opacity: 1 !important; transform: none !important; }
.htitle .w { display: inline-block; perspective: 700px; }
.htitle .w > span { display: inline-block; transform-origin: 50% 100% -20px; transform: rotateX(-95deg); opacity: 0;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .5s ease; transition-delay: calc(.3s + var(--wi, 0) * 90ms); }
.hslide.is-active .htitle .w > span { transform: none; opacity: 1; }

/* ---------- Floating 3D soil-sample cube (strata faces) ---------- */
.soil-cube { --s: 96px; position: absolute; width: var(--s); height: var(--s); perspective: 700px; pointer-events: none; z-index: 4; }
.hcard-wrap .soil-cube { left: -52px; bottom: -40px; translate: calc(var(--mx, 0) * -34px) calc(var(--my, 0) * -22px); transition: translate .35s ease-out; }
.sc { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: sc-spin 16s linear infinite; }
.sc i { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.28); }
.sc .f1, .sc .f2, .sc .f3, .sc .f4 {
  background:
    radial-gradient(circle at 22% 66%, rgba(255,255,255,.35) 0 2px, transparent 3px) 0 0 / 18px 14px,
    linear-gradient(180deg, #5f8f2f 0 9%, #3d2b1e 9% 30%, #7b5331 30% 52%, #c8a065 52% 74%, #8f928c 74% 100%);
}
.sc .f1 { transform: translateZ(calc(var(--s) / 2)); }
.sc .f2 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.sc .f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.sc .f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.sc .f5 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: radial-gradient(circle at 35% 35%, #8cc152, #4f7d27 70%); }
.sc .f6 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: #5c5f5a; }
@keyframes sc-spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }

/* ---------- Inner page heroes: extruded title, parallax, soil cube ---------- */
.page-hero h1 { text-shadow: 0 1px 0 #0d3327, 0 2px 0 #0b2d22, 0 3px 0 #09261d, 0 4px 0 #072018, 0 5px 0 #051a13, 0 14px 24px rgba(0,0,0,.45); }
.page-hero .ph-bg { scale: 1.08; translate: calc(var(--mx, 0) * -30px) calc(var(--my, 0) * -20px); transition: translate .45s ease-out; }
.page-hero .container { translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 9px); transition: translate .45s ease-out; }
.page-hero .ph-cube { --s: 110px; right: max(4vw, calc((100vw - var(--maxw)) / 2 + 2rem)); top: 50%; margin-top: -55px;
  translate: calc(var(--mx, 0) * -40px) calc(var(--my, 0) * -26px); transition: translate .35s ease-out; }
@media (max-width: 760px) { .page-hero .ph-cube { display: none; } }

/* ---------- Services (home): 3D flip cards ---------- */
.flip-card { perspective: 1400px; height: 100%; }
.flip-inner { position: relative; height: 100%; min-height: 360px; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) and (pointer: fine) { .flip-card:hover .flip-inner { transform: rotateY(180deg); } }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.flip-front { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--paper); }
.flip-front .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-800); }
.flip-front .thumb img { width: 100%; height: 100%; object-fit: cover; }
.flip-front .body { padding: 1.15rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.flip-front .body h3 { font-size: 1.15rem; }
.flip-front .more-link { margin-top: auto; padding-top: .9rem; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--brand); display: inline-flex; align-items: center; gap: .35rem; }
.flip-front .more-link svg { width: 16px; height: 16px; }
.flip-hint { position: absolute; top: .8rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(16,53,40,.88); display: grid; place-items: center; z-index: 2; box-shadow: var(--shadow-md); }
.flip-hint svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.flip-back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.4rem; color: #eef5f1; border-color: transparent;
  background: radial-gradient(500px 260px at 100% 0%, rgba(217,140,63,.28), transparent 60%), linear-gradient(160deg, var(--brand-800), var(--brand)); }
.flip-back h3 { color: #fff; font-size: 1.12rem; }
.flip-back .svc-lead { color: #eab676; font-size: .9rem; margin-top: .5rem; }
.flip-back .svc-list { color: rgba(238,245,241,.9); font-size: .88rem; gap: .15rem 1rem; }
.flip-back .svc-list li::marker { color: #eab676; }
.flip-back .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Equipment (home): 3D coverflow ---------- */
.coverflow.cf-on { display: block; position: relative; height: 400px; perspective: 1600px; overflow: hidden; }
.coverflow.cf-on > * { position: absolute; left: 50%; top: 18px; width: 280px; margin-left: -140px; cursor: pointer;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s ease, box-shadow .4s ease;
  -webkit-box-reflect: below 6px linear-gradient(transparent 64%, rgba(255,255,255,.22)); }
.coverflow.cf-on > .cf-active { cursor: default; box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.cf-ctrl { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .4rem; }
.cf-ctrl[hidden] { display: none; }
.cf-ctrl .harrow { color: var(--brand); background: var(--paper); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.cf-ctrl .harrow:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.cf-count { font-family: var(--font-head); font-weight: 600; color: var(--text-soft); min-width: 4.5em; text-align: center; }
@media (max-width: 640px) { .coverflow.cf-on { height: 330px; } .coverflow.cf-on > * { width: 220px; margin-left: -110px; } }

/* ---------- Credentials: NABL badge flips to the emblem ---------- */
.coin-stage { perspective: 900px; width: 170px; height: 219px; margin: 0 auto; }
.coin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: coin-flip 9s cubic-bezier(.6,0,.3,1) infinite; }
.coin:hover { animation-play-state: paused; }
.coin-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 0 0 1px var(--line), 0 18px 30px -16px rgba(0,0,0,.35); }
.coin-face img { width: 88%; height: auto; }
.coin-back { transform: rotateY(180deg); background: radial-gradient(circle at 50% 38%, #ffffff, #e8efe9); }
.coin-back img { width: 72%; }
@keyframes coin-flip { 0%, 40% { transform: rotateY(0deg); } 50%, 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* ---------- Client logos: rotating 3D ring ---------- */
.marquee.ring-on { perspective: 1100px; padding-block: 2.4rem; }
.marquee.ring-on .marquee-track { position: relative; width: 100%; height: calc(var(--lw, 96px) + 48px); padding: 0; flex-wrap: nowrap; transform-style: preserve-3d; animation: ring-spin 60s linear infinite; }
.marquee.ring-on:hover .marquee-track { animation-play-state: paused; }
.marquee.ring-on .logo, .marquee.ring-on .logo:hover { position: absolute; left: 50%; top: 50%; margin: calc(var(--lw) / -2) 0 0 calc(var(--lw) / -2); width: var(--lw); height: var(--lw);
  transform: rotateY(var(--a)) translateZ(var(--r)); backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: none; opacity: 1; box-shadow: 0 14px 26px -14px rgba(16,34,26,.4); }
@keyframes ring-spin { from { transform: translateY(calc(var(--r) * -0.09)) translateZ(calc(var(--r) * -1)) rotateX(-10deg) rotateY(0deg); } to { transform: translateY(calc(var(--r) * -0.09)) translateZ(calc(var(--r) * -1)) rotateX(-10deg) rotateY(-360deg); } }

/* ---------- Services page: images rest at a 3D angle, straighten on hover ---------- */
html.js .svc-rows .svc-row.in .svc-media { rotate: y -9deg; }
html.js .svc-rows .svc-row.in:nth-child(even) .svc-media { rotate: y 9deg; }
html.js .svc-rows .svc-row.in:hover .svc-media { rotate: y 0deg; }

/* ---------- Reduced motion: flat and calm ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal > * { opacity: 1; translate: none; rotate: none; transition: none; }
  .hslide.turning, .hslide.is-leaving, .hero3d.turning .hero-slides, .hslide::before { animation: none !important; }
  .hslide.is-leaving { visibility: hidden; }
  .htitle .w > span { transform: none; opacity: 1; transition: none; }
  .sc, .coin, .hcard-wrap { animation: none; }
  .hslide-bg img, .hslide-copy, .soil-cube, .page-hero .ph-bg, .page-hero .container { translate: none !important; }
  .flip-inner { transition: none; }
  .flip-card:hover .flip-inner, .flip-card.flipped .flip-inner { transform: none; }
  html.js .svc-rows .svc-row.in .svc-media { rotate: none; }
}
.flip-back .svc-list li.more { list-style: none; color: #eab676; }
