/* ============================================================
   THINK ENVIRO — Environmental, Health & Safety Consulting
   Corporate Modern. No JavaScript.
   Swap the design-system values in :root below with your own.
   ============================================================ */

:root {
  /* ---- COLORS ---- (v2 palette: sage #556F57 + charcoal #242424) ---- */
  --color-bg:          #F5F6F2;   /* page background, soft warm grey-green */
  --color-surface:     #FFFFFF;   /* cards / raised panels */
  --color-surface-alt: #EBEEE8;   /* sunk / alt sections, pale sage */
  --color-ink:         #242424;   /* primary text & dark sections — charcoal */
  --color-ink-2:       #4C514A;   /* secondary text */
  --color-ink-3:       #80857D;   /* muted / captions */

  --color-primary:       #556F57; /* sage green — buttons, brand */
  --color-primary-700:   #41573F; /* darker (hover/press) */
  --color-primary-900:   #2C3A2D; /* deep green — large dark surfaces */
  --color-primary-100:   #E2E9E1; /* tint backgrounds */
  --color-primary-050:   #F0F4EF;

  --color-accent:        #A6CF8C; /* fresh leaf — highlights, on-dark pops */
  --color-accent-700:    #7CA567; /* darker leaf */
  --color-accent-ink:    #1E2A14; /* readable text on accent */

  --color-line:        #DDE2D8;   /* hairline borders */
  --color-line-strong: #C2CABD;
  --color-focus:       #556F57;   /* focus ring color */

  --color-success:     #4C8C5A;
  --color-on-primary:  #FFFFFF;

  /* ---- TYPOGRAPHY ---- */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;

  --fs-xs:   0.78rem;
  --fs-sm:   0.9rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  3.9rem;

  /* ---- SPACING ---- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  6rem;
  --sp-10: 8rem;

  /* ---- RADIUS ---- */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* ---- OTHER ---- */
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(36, 36, 36, 0.06);
  --shadow-md: 0 10px 30px rgba(36, 36, 36, 0.08);
  --shadow-lg: 0 24px 60px rgba(36, 36, 36, 0.12);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-ink-2);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-5); }

.section { padding-block: var(--sp-8); }
.section--lg { padding-block: var(--sp-9); }

/* offset anchor targets for the sticky header on the single-page layout */
[id] { scroll-margin-top: 92px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--color-accent-700);
}
.eyebrow--light { color: var(--color-accent); }
.eyebrow--light::before { background: var(--color-accent); }

/* Hero eyebrow: no leading dash, slightly larger text */
.hero__grid .eyebrow { font-size: var(--fs-sm); }
.hero__grid .eyebrow::before { display: none; }

.section-head { max-width: 60ch; margin-bottom: var(--sp-6); }
.section-head h2 { font-size: var(--fs-2xl); margin-top: var(--sp-3); }
.section-head p { margin-top: var(--sp-3); font-size: var(--fs-md); color: var(--color-ink-2); }

.lede { font-size: var(--fs-md); color: var(--color-ink-2); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-700); }

.btn--accent { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--accent:hover { background: var(--color-accent-700); }

.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-line-strong); }
.btn--ghost:hover { border-color: var(--color-primary); background: var(--color-primary-050); }

.btn--light { background: #fff; color: var(--color-primary); }
.btn--light:hover { background: var(--color-primary-050); }

.btn--lg { padding: 1.1rem 2rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 242, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.nav {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 76px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center;
  margin-right: auto;
  flex-shrink: 0;
}
/* Logo wordmark image — sits seamlessly via its transparent background */
.brand__logo {
  height: 48px; width: auto; display: block;
}
.footer__brand .brand__logo { height: 56px; }
@media (max-width: 480px) {
  .brand__logo { height: 40px; }
  .footer__brand .brand__logo { height: 48px; }
}

.nav__links { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; list-style: none; padding: 0; }
.nav__links a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--color-ink-2);
  transition: color .15s ease, background-color .15s ease;
}
.nav__links a:hover { color: var(--color-ink); background: var(--color-surface-alt); }
.nav__links a[aria-current="page"] { color: var(--color-primary); background: var(--color-primary-100); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: var(--sp-8) var(--sp-5); }
.hero__grid {
  display: grid; gap: var(--sp-7);
  grid-template-columns: 1fr;
  align-items: center;
}
.hero h1 {
  font-size: var(--fs-3xl);
  margin-top: var(--sp-4);
  font-weight: 800;
}
.hero h1 .mark { color: var(--color-primary); position: relative; }
.hero h1 .mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.28em;
  background: var(--color-accent); z-index: -1; border-radius: 2px;
}
.hero p.lede { margin-top: var(--sp-5); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.hero__media { position: relative; }
.hero__media img {
  /* Render the SVG at its native ratio so its own rounded corners (rx=28)
     show cleanly. A drop-shadow follows the artwork's rounded alpha shape,
     so we avoid the cropped dark corners that object-fit + border-radius
     produced (and any composited black-corner artifact). */
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 10px 30px rgba(36, 36, 36, 0.12));
}
.hero__badge {
  position: absolute; left: -10px; bottom: 24px;
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg); max-width: 235px;
}
.hero__badge strong { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--color-primary); display: block; }
.hero__badge span { font-size: var(--fs-sm); color: var(--color-ink-2); }

/* trust strip */
.trust {
  /* Sits above the hero media so the parallax drift can never paint over
     "Who we serve"; the opaque background masks any overlap at the line. */
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  margin-top: var(--sp-7);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
  align-items: center;
}
.trust span:first-child { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-ink-3); font-weight: 600; }
.trust ul { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); list-style: none; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--color-ink-2); }
.trust li svg { width: 18px; height: 18px; color: var(--color-primary); }

/* "Trusted by" — centered label framed by fading hairlines; introduces the marquee */
.trust__by {
  flex-basis: 100%;
  display: flex; align-items: center; gap: var(--sp-5);
  max-width: 460px; margin-inline: auto; margin-top: 44px;
}
.trust__by::before,
.trust__by::after {
  content: ""; flex: 1; height: 1px;
}
.trust__by::before { background: linear-gradient(90deg, transparent, var(--color-line-strong)); }
.trust__by::after  { background: linear-gradient(90deg, var(--color-line-strong), transparent); }
.trust__by-label {
  flex: 0 0 auto; white-space: nowrap;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--color-ink-3); font-weight: 600;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  background: var(--color-primary-900);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-7);
}
.stats__grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(2, 1fr);
}
.stat__num { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 800; color: var(--color-accent); line-height: 1; letter-spacing: -0.03em; }
.stat__label { margin-top: var(--sp-2); color: rgba(255,255,255,0.82); font-size: var(--fs-sm); }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.cards { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.cards--3 { grid-template-columns: 1fr; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--color-line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-primary-100);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.card__icon svg { width: 26px; height: 26px; color: var(--color-primary); }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.card p { font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.card li { display: flex; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--color-ink-2); }
.card li svg { width: 16px; height: 16px; color: var(--color-accent-700); flex-shrink: 0; margin-top: 4px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-5); font-weight: 600; font-size: var(--fs-sm); color: var(--color-primary); }
.card__link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .card__link svg { transform: translateX(3px); }

/* ============================================================
   WHO WE SERVE — institutional credibility
   ============================================================ */
.section-head--center {
  margin-left: auto; margin-right: auto;
  text-align: center; max-width: 66ch;
}
.section-head--center .eyebrow { justify-content: center; }

/* Institution roster ("trusted by") */
.institutions {
  margin: var(--sp-7) 0;
  padding: var(--sp-6);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
}
.institutions__label {
  display: block; text-align: center;
  font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--color-ink-3);
  margin-bottom: var(--sp-5);
}
.institutions__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.inst {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 76px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--r-md);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.inst:hover { border-color: var(--color-line-strong); box-shadow: var(--shadow-sm); }
.inst svg { width: 22px; height: 22px; color: var(--color-primary); flex-shrink: 0; }
.inst__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-base); line-height: 1.25;
  color: var(--color-ink);
}

/* Capability pillars */
.pillars { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.pillar {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pillar:hover { border-color: var(--color-line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pillar__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--color-primary-100);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.pillar__icon svg { width: 24px; height: 24px; color: var(--color-primary); }
.pillar h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.pillar p { font-size: var(--fs-sm); color: var(--color-ink-2); }

@media (min-width: 560px) {
  .institutions__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .institutions__grid { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.timeline { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; counter-reset: step; }
.tl-step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
}
.tl-step__num {
  counter-increment: step;
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-sm);
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--color-primary); color: var(--color-accent);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.tl-step__num::before { content: "0" counter(step); }
.tl-step h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.tl-step p { font-size: var(--fs-sm); }

/* Trust banner — process credibility callout */
.trust-banner {
  margin-top: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  background: var(--color-primary-050);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.trust-banner__badge {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: var(--r-pill);
  background: var(--color-primary);
  color: var(--color-accent);
  display: grid; place-items: center;
}
.trust-banner__badge svg { width: 28px; height: 28px; }
.trust-banner__title { font-size: var(--fs-lg); color: var(--color-ink); margin-bottom: var(--sp-2); }
.trust-banner__body p { font-size: var(--fs-sm); color: var(--color-ink-2); max-width: 92ch; }

@media (max-width: 560px) {
  .trust-banner { flex-direction: column; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5); }
}

/* Trusted-by logo marquee — seamless right-to-left scroller */
.logo-marquee {
  background: var(--color-bg);
  padding-block: var(--sp-6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: logo-scroll 40s linear infinite;
}
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__item { flex: 0 0 auto; margin-right: 3.5rem; display: grid; place-items: center; }
.logo-marquee__item img {
  height: 50px;
  width: auto;
  object-fit: contain;
  /* brightness lifts near-white (#fcfcfc) backgrounds to pure white so multiply
     erases them cleanly; multiply then dissolves the white into the page color */
  filter: brightness(1.04);
  mix-blend-mode: multiply;
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 560px) {
  .logo-marquee__item { margin-right: 2.25rem; }
  .logo-marquee__item img { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track { animation: none; }
}

/* ============================================================
   SPLIT / FEATURE
   ============================================================ */
.split { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; align-items: center; }
.split__media img { border-radius: var(--r-xl); width: 100%; object-fit: cover; aspect-ratio: 5/4; box-shadow: var(--shadow-md); }
.checklist { list-style: none; padding: 0; display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.checklist li { display: flex; gap: var(--sp-3); }
.checklist svg { width: 24px; height: 24px; color: var(--color-primary); flex-shrink: 0; }
.checklist strong { color: var(--color-ink); display: block; font-family: var(--font-display); }
.checklist span { font-size: var(--fs-sm); }

/* ============================================================
   FAQ ACCORDION (CSS-only)
   ============================================================ */
.faq { display: grid; gap: var(--sp-3); max-width: 800px; }
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--color-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--color-line-strong);
  display: grid; place-items: center; transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.faq summary .ico svg { width: 16px; height: 16px; color: var(--color-primary); }
.faq details[open] summary .ico { transform: rotate(45deg); background: var(--color-primary); border-color: var(--color-primary); }
.faq details[open] summary .ico svg { color: var(--color-accent); }
.faq p { margin-top: var(--sp-3); font-size: var(--fs-sm); max-width: 65ch; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-7);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 120%, rgba(166,207,140,0.20), transparent 45%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: var(--fs-2xl); }
.cta-band p { color: rgba(255,255,255,0.78); margin: var(--sp-4) auto 0; max-width: 52ch; }
.cta-band .hero__cta { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-primary-100); color: var(--color-ink-2); border-top: 1px solid var(--color-line-strong); margin-top: var(--sp-8); }
.footer__grid {
  display: grid; gap: var(--sp-7);
  grid-template-columns: 1fr;
  padding-block: var(--sp-8) var(--sp-6);
}
.footer__brand .brand { color: var(--color-ink); }
.footer__brand p { margin-top: var(--sp-4); font-size: var(--fs-sm); max-width: 34ch; }
.site-footer h4 { color: var(--color-ink); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--sp-4); font-family: var(--font-body); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.site-footer a { font-size: var(--fs-sm); transition: color .15s ease; }
.site-footer a:hover { color: var(--color-primary); }
.footer__contact li { display: flex; gap: var(--sp-2); font-size: var(--fs-sm); }
.footer__contact svg { width: 17px; height: 17px; color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }
.social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--color-line-strong); display: grid; place-items: center; transition: background-color .15s ease, border-color .15s ease; }
.social a:hover { background: var(--color-primary); border-color: var(--color-primary); }
.social svg { width: 18px; height: 18px; color: var(--color-ink-2); transition: color .15s ease; }
.social a:hover svg { color: #fff; }
.footer__bottom {
  border-top: 1px solid var(--color-line);
  padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  font-size: var(--fs-xs); color: var(--color-ink-3);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  box-shadow: var(--shadow-md);
}
.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--color-ink); }
.field label .req { color: var(--color-primary); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--fs-base); color: var(--color-ink);
  background: var(--color-surface-alt);
  border: 1.5px solid var(--color-line);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(85,111,87,0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.form-note { font-size: var(--fs-xs); color: var(--color-ink-3); margin-top: var(--sp-3); }

.contact-grid { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; }
.info-block { display: grid; gap: var(--sp-5); }
.info-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-item__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--color-primary-100); display: grid; place-items: center; flex-shrink: 0; }
.info-item__icon svg { width: 22px; height: 22px; color: var(--color-primary); }
.info-item h3 { font-size: var(--fs-md); margin-bottom: 2px; }
.info-item a, .info-item p { font-size: var(--fs-sm); color: var(--color-ink-2); }
.info-item a:hover { color: var(--color-primary); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { background: var(--color-surface-alt); border-bottom: 1px solid var(--color-line); padding-block: var(--sp-8); }
.page-hero h1 { font-size: var(--fs-3xl); margin-top: var(--sp-3); }
.page-hero p { margin-top: var(--sp-4); font-size: var(--fs-md); max-width: 60ch; }
.breadcrumb { font-size: var(--fs-xs); color: var(--color-ink-3); margin-bottom: var(--sp-4); }
.breadcrumb a:hover { color: var(--color-primary); }

/* alt section bg */
.bg-alt { background: var(--color-surface-alt); }
.bg-soft { background: var(--color-primary-050); }

/* value grid */
.values { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.value { padding: var(--sp-5); border-left: 3px solid var(--color-accent); }
.value h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.value p { font-size: var(--fs-sm); }

/* detailed service block */
.svc { border-top: 1px solid var(--color-line); padding-block: var(--sp-7); }
.svc__grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
.svc__head { position: relative; }
.svc__tag { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; color: var(--color-accent-700); }
.svc h3 { font-size: var(--fs-xl); margin-block: var(--sp-2) var(--sp-3); }
.svc__list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.svc__list li { display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--color-ink); align-items: center; }
.svc__list svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-primary); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r-md) 0; z-index: 100; font-weight: 600; font-size: var(--fs-sm);
}
.skip-link:focus { left: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 720px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .svc__grid { grid-template-columns: 1fr 1.1fr; }
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero h1 { font-size: var(--fs-4xl); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--5 { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(5, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .page-hero h1 { font-size: var(--fs-4xl); }
}

/* ============================================================
   SEAMLESS PAGE TRANSITIONS (cross-document View Transitions)
   Navigating between Home / About / Services / Contact animates
   smoothly. Header & footer are pinned so the chrome stays put
   while the main content cross-fades and lifts into place.
   Browsers without support simply navigate instantly.
   ============================================================ */
@view-transition { navigation: auto; }

/* Persistent chrome — own snapshot so it doesn't fade with the page */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

/* Keep pinned chrome rock-steady (no fade) across the swap */
::view-transition-old(site-header),
::view-transition-new(site-header),
::view-transition-old(site-footer),
::view-transition-new(site-footer) {
  animation: none;
  mix-blend-mode: normal;
  height: 100%;
}

/* Main content: outgoing recedes + fades, incoming lifts, scales up & fades in
   — a cinematic "push through" between scenes rather than a hard cut. */
::view-transition-old(root) {
  animation: te-scene-out 280ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
::view-transition-new(root) {
  animation: te-scene-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes te-scene-out {
  to { opacity: 0; transform: translateY(-14px) scale(0.985); filter: blur(2px); }
}
@keyframes te-scene-in {
  from { opacity: 0; transform: translateY(26px) scale(1.012); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ============================================================
   SCROLL STORYTELLING — reveal-on-scroll
   Elements start hidden and dynamically slide / fade / morph into
   place as they enter the viewport (driven by motion.js +
   IntersectionObserver). Falls back to fully visible if JS is off
   or motion is reduced.
   ============================================================ */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform, clip-path;
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

/* Variants — the resting (hidden) transform */
[data-reveal="up"]      { transform: translateY(40px); }
[data-reveal="down"]    { transform: translateY(-40px); }
[data-reveal="left"]    { transform: translateX(48px); }
[data-reveal="right"]   { transform: translateX(-48px); }
[data-reveal="scale"]   { transform: scale(0.92); }
[data-reveal="blur"]    { transform: translateY(28px); filter: blur(10px); }
/* "mask" morphs an image in behind a wipe */
[data-reveal="mask"]    { clip-path: inset(0 0 100% 0); transform: none; }

/* Revealed state */
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}

/* No-JS / no-observer safety: show everything */
.no-js [data-reveal],
html:not(.js) [data-reveal] { opacity: 1; transform: none; filter: none; clip-path: none; }

/* Non-scrolling-context safety (embedded/scaled previews, print, in-app
   viewers): force every reveal element to its final state INSTANTLY — no
   transition — so off-viewport content (e.g. the split-section photo) can
   never get stranded at its hidden start value. Set by motion.js. */
html.reveal-all [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
  transition: none !important;
}

/* ============================================================
   SCROLL PROGRESS BAR — thin cinematic scrubber under the header
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 60;
  pointer-events: none;
}

/* ============================================================
   HERO PARALLAX — media drifts slower than the page on scroll,
   giving the opening scene cinematic depth. Driven by motion.js.
   ============================================================ */
.hero__media { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .scroll-progress { display: none; }
}
