/* ============================================================
   Silicon Valley Enterprises Ltd  |  v2 dark industrial theme
   Shape rule: buttons pill, cards/media 20px, inputs 10px.
   One accent: brand orange from the SVE logo. Page theme: dark,
   locked (one deliberate orange CTA color block per page).
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg0: #0C0E0D;
  --bg1: #121514;
  --bg2: #191D1B;
  --line: #262B28;
  --text: #F2F1EB;
  --soft: #C2C6BE;
  --muted: #939A91;

  --accent: #F08A21;
  --accent-strong: #FFA14A;
  --accent-ink: #1A1207;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;

  --r-card: 20px;
  --r-input: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-weight: 360;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg0);
  overflow-x: clip;
}

/* filmic grain, fixed + inert so it never repaints on scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img { max-width: 100%; display: block; }

.container { width: min(100% - 2.5rem, 1220px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1.2rem; border-radius: 999px; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible { top: 1rem; }

/* ---------- Cross-page view transitions (progressive) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem); }
h3 { font-size: 1.3rem; }
p { max-width: 65ch; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.section { padding-block: clamp(4.5rem, 3rem + 4.5vw, 8rem); }
.section-head { max-width: 680px; margin-bottom: clamp(2.2rem, 1.5rem + 2.5vw, 4rem); }
.section-head p { margin-top: 1.1rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.98rem; white-space: nowrap;
  padding: 0.9rem 1.8rem; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background-color 0.25s, border-color 0.25s;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(240, 138, 33, 0.55);
}
.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(12, 14, 13, 0.3);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.85); transform: translateY(-2px); }
.btn-dark { background: var(--bg0); color: var(--text); }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,0.6); }
.btn-block { width: 100%; }

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

/* ---------- Header ---------- */
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: rgba(12, 14, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(12, 14, 13, 0.88); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.brand img { width: 52px; height: 42px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.15;
}
.brand-name em { font-style: normal; color: var(--accent-strong); }

.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; }
.site-nav ul a {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
  color: var(--soft); text-decoration: none;
  padding: 0.3rem 0.1rem; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav ul a:hover { color: var(--text); }
.site-nav ul a[aria-current="page"] { color: var(--text); border-color: var(--accent); }
.btn-nav { padding: 0.62rem 1.4rem; font-size: 0.92rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }

/* ---------- Heroes ---------- */
.hero {
  position: relative;
  display: flex; align-items: flex-end;
  isolation: isolate; overflow: clip;
}
.hero-full { min-height: 100dvh; }
.hero-page { min-height: min(72dvh, 760px); }

.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12, 14, 13, 0.96) 4%, rgba(12, 14, 13, 0.45) 45%, rgba(12, 14, 13, 0.35) 100%),
    linear-gradient(105deg, rgba(12, 14, 13, 0.72) 0%, rgba(12, 14, 13, 0.15) 65%);
}

.hero-content { padding-block: calc(var(--header-h) + 3.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero-title {
  font-size: clamp(2.9rem, 1.2rem + 7.2vw, 6.8rem);
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--accent-strong); }

.hero-sub { margin-top: 1.5rem; max-width: 36rem; font-size: 1.12rem; color: var(--soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: hero-zoom 15s var(--ease-out) both; transform-origin: 55% 42%; }
  .hero-title .line > span {
    transform: translateY(112%);
    animation: hero-rise 0.95s var(--ease-out) forwards;
  }
  .hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
  .hero-sub, .hero-cta {
    opacity: 0; transform: translateY(24px);
    animation: hero-fade 0.85s var(--ease-out) forwards;
  }
  .hero-sub { animation-delay: 0.32s; }
  .hero-cta { animation-delay: 0.45s; }

  @supports (animation-timeline: view()) {
    .hero-bg img {
      animation: hero-zoom 15s var(--ease-out) both, hero-parallax linear both;
      animation-timeline: auto, view();
      animation-range: normal, exit 0% exit 100%;
    }
  }
}
@keyframes hero-zoom { from { scale: 1.12; } to { scale: 1; } }
@keyframes hero-rise { to { transform: translateY(0); } }
@keyframes hero-fade { to { opacity: 1; transform: translateY(0); } }
@keyframes hero-parallax { to { translate: 0 16%; } }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease-out) var(--d, 0ms),
              transform 0.8s var(--ease-out) var(--d, 0ms);
}
html.js .reveal-wipe { clip-path: inset(0 100% 0 0 round var(--r-card)); }
html.js .reveal-wipe.is-in {
  clip-path: inset(0 0 0 0 round var(--r-card));
  transition: clip-path 1.05s var(--ease-out) var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal-wipe {
    opacity: 1; transform: none; clip-path: none; transition: none;
  }
}

/* ---------- Home: division split panels ---------- */
.split-panels {
  display: flex;
  gap: 3px;
  height: min(80vh, 720px);
}
.split {
  position: relative; flex: 1; overflow: hidden;
  isolation: isolate; text-decoration: none;
  transition: flex 0.7s var(--ease-out);
}
.split img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.split::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12, 14, 13, 0.92) 0%, rgba(12, 14, 13, 0.28) 55%, rgba(12, 14, 13, 0.2) 100%);
  transition: background-color 0.5s;
}
.split:hover, .split:focus-visible { flex: 1.5; }
.split:hover img { transform: scale(1.04); }

.split-body { position: absolute; inset-inline: 0; bottom: 0; padding: clamp(1.6rem, 1rem + 2vw, 3rem); color: var(--text); }
.split-body h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); }
.split-body p { margin-top: 0.6rem; color: var(--soft); max-width: 44ch; }
.split-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.2rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--accent-strong);
}
.split-link .arrow { transition: transform 0.3s var(--ease-out); }
.split:hover .split-link .arrow { transform: translateX(6px); }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg1); padding-block: 3.6rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2rem; }
.stat { padding-inline-start: 1.3rem; border-inline-start: 3px solid var(--accent); }
.stat-num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.4rem);
  letter-spacing: -0.02em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: 0.45rem; color: var(--muted); font-size: 0.95rem; max-width: 20ch; }

/* ---------- Impact band (photo) ---------- */
.impact { position: relative; isolation: isolate; padding-block: clamp(5rem, 4rem + 4.5vw, 9rem); }
.impact-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.impact-bg img { width: 100%; height: 100%; object-fit: cover; }
.impact-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(12, 14, 13, 0.95) 25%, rgba(12, 14, 13, 0.7) 65%, rgba(12, 14, 13, 0.55) 100%);
}

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 920px; }
.mv-card {
  padding: 1.9rem 2rem;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (prefers-reduced-transparency: reduce) {
  .mv-card { background: rgba(12, 14, 13, 0.92); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.mv-card h3 { color: var(--accent-strong); font-size: 1.05rem; margin-bottom: 0.6rem; }
.mv-card p { color: var(--soft); }

.honors { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.3rem; max-width: 920px; }
.honors li {
  font-size: 0.9rem; color: var(--text);
  padding: 0.55rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(12, 14, 13, 0.4);
}
.impact .more-link { margin-top: 2.4rem; }

.more-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600;
  color: var(--accent-strong); text-decoration: none;
}
.more-link .arrow { transition: transform 0.3s var(--ease-out); }
.more-link:hover .arrow { transform: translateX(6px); }

/* ---------- Gallery marquee ---------- */
.gallery { overflow: clip; }
.gallery .section-head { margin-bottom: 2.2rem; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 1.1rem; width: max-content; padding-inline: 1.25rem; }
.marquee-track figure { height: 250px; flex: none; border-radius: var(--r-card); overflow: hidden; }
.marquee-track img { height: 100%; width: auto; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track.animate { animation: marquee-scroll 58s linear infinite; }
  .marquee:hover .marquee-track.animate { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ---------- CTA color block (once per page) ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); padding-block: clamp(3.8rem, 3rem + 3vw, 6rem); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-inner h2 { max-width: 16ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.cta-phone {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  letter-spacing: -0.02em;
  color: var(--accent-ink); text-decoration: none;
}
.cta-phone:hover { text-decoration: underline; text-underline-offset: 6px; }
.cta-note { font-size: 0.95rem; color: rgba(26, 18, 7, 0.75); }

/* ---------- Sticky service stack (division pages) ---------- */
.stack { display: grid; gap: 1.6rem; }
.stack-card {
  position: sticky;
  top: calc(var(--header-h) + 1.2rem + var(--i, 0) * 16px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 430px;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 -18px 50px -30px rgba(0, 0, 0, 0.8);
}
.stack-media { min-height: 260px; }
.stack-media img { width: 100%; height: 100%; object-fit: cover; }
.stack-media-contain { background: var(--bg2); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.stack-media-contain img { object-fit: contain; max-height: 340px; width: auto; }
.stack-text { padding: clamp(1.8rem, 1.2rem + 2vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.stack-text h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.stack-text p { margin-top: 0.9rem; color: var(--muted); }
.stack-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; list-style: none; }
.stack-tags li {
  font-size: 0.85rem; color: var(--soft);
  padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--line);
}
.stack-card:nth-child(even) .stack-media { order: 2; }

/* ---------- Equipment snap row ---------- */
.snap-row {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(300px, 76vw);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.2rem 1.25rem 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.snap-card {
  scroll-snap-align: start;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.snap-card:hover { transform: translateY(-4px); border-color: #3A413C; }
.snap-media { background: #E9E7E0; height: 220px; display: flex; align-items: center; justify-content: center; padding: 1.1rem; }
.snap-media img { max-height: 100%; width: auto; object-fit: contain; }
.snap-card figcaption { padding: 1rem 1.2rem 1.2rem; color: var(--soft); font-size: 0.95rem; }

/* ---------- Process blocks ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.process-cell { border-top: 3px solid var(--accent); padding-top: 1.1rem; }
.process-cell h3 { font-size: 1.12rem; }
.process-cell p { margin-top: 0.5rem; color: var(--muted); font-size: 0.96rem; }

/* ---------- Waste split + accordion ---------- */
.waste-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 1.5rem + 3vw, 5rem);
  align-items: start;
}
.waste-media { position: sticky; top: calc(var(--header-h) + 2rem); }
.waste-photo-main { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; border-radius: var(--r-card); }
.waste-photo-inset {
  width: 46%; border-radius: 14px;
  border: 5px solid var(--bg0);
  position: absolute; bottom: -2rem; right: -0.9rem;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
}

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0.2rem;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.acc-trigger::after {
  content: "+"; flex: none;
  font-size: 1.35rem; font-weight: 500; color: var(--accent-strong);
  transition: transform 0.35s var(--ease-out);
}
.acc-trigger[aria-expanded="true"],
.acc-trigger:hover { color: var(--accent-strong); }
.acc-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }

.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.acc-panel.open { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p { padding: 0 0.2rem 1.35rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .acc-panel { transition: none; } }

/* ---------- About: story split + photo grid ---------- */
.story-grid {
  display: grid; grid-template-columns: 6fr 5fr;
  gap: clamp(2rem, 1.5rem + 3vw, 5rem);
  align-items: center;
}
.story-grid .section-head { margin-bottom: 0; }
.story-photo { border-radius: var(--r-card); overflow: hidden; }
.story-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.photo-grid figure { border-radius: var(--r-card); overflow: hidden; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.7s var(--ease-out); }
.photo-grid figure:hover img { transform: scale(1.04); }
.photo-grid .tall img { aspect-ratio: 4 / 4.6; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: start;
}
.contact-list { display: grid; gap: 1.6rem; }
.contact-row dt {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-strong); margin-bottom: 0.35rem;
}
.contact-row dd { color: var(--soft); line-height: 1.65; }
.contact-row a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); transition: border-color 0.2s; }
.contact-row a:hover { border-color: var(--accent-strong); }
.contact-row:first-child dd a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
  border-bottom: none;
}

.quote-form {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  display: grid; gap: 1.25rem;
}
.field { display: grid; gap: 0.45rem; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; color: #DFDFD7; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: #1E2320; border: 1px solid #343A36;
  border-radius: var(--r-input); padding: 0.78rem 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #C2C6BE 50%), linear-gradient(135deg, #C2C6BE 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 138, 33, 0.3);
}
.field.invalid input, .field.invalid select { border-color: #E2604A; }
.field-error { color: #F0907E; font-size: 0.88rem; }
.form-status { color: var(--soft); font-size: 0.95rem; min-height: 1.4em; }

.map-card { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.map-card iframe {
  display: block; width: 100%; height: 400px; border: 0;
  filter: invert(0.89) hue-rotate(180deg) grayscale(0.25) contrast(0.92);
}

/* ---------- Blog: index ---------- */
.page-head { padding: calc(var(--header-h) + clamp(3rem, 2rem + 3vw, 5rem)) 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); letter-spacing: -0.03em; }
.page-head p { margin-top: 1rem; color: var(--muted); max-width: 56ch; }

.cat-tag {
  display: inline-block;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-strong);
}

.featured-post {
  display: grid; grid-template-columns: 7fr 5fr;
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  text-decoration: none; color: var(--text);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.featured-post:hover { transform: translateY(-4px); border-color: #3A413C; }
.featured-media { min-height: 320px; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.featured-post:hover .featured-media img { transform: scale(1.04); }
.featured-body { padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.8rem); display: flex; flex-direction: column; justify-content: center; gap: 0.8rem; }
.featured-body h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); }
.featured-body p { color: var(--muted); }
.post-date { color: var(--muted); font-size: 0.9rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.post-card:hover { transform: translateY(-4px); border-color: #3A413C; }
.post-card-media { height: 190px; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: 0.55rem; }
.post-card-body h2, .post-card-body h3 { font-size: 1.12rem; line-height: 1.25; }

/* ---------- Blog: article ---------- */
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: #565C56; }
.breadcrumbs a { color: var(--soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

.post-header { padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 2vw, 4rem)); }
.post-header h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); letter-spacing: -0.03em; max-width: 22ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.post-hero { margin-top: clamp(1.8rem, 1.4rem + 1.5vw, 3rem); border-radius: var(--r-card); overflow: hidden; }
.post-hero img { width: 100%; max-height: 460px; object-fit: cover; }

.post-article { max-width: 720px; margin-inline: auto; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.post-article > * + * { margin-top: 1.15em; }
.post-article h2 { font-size: 1.65rem; margin-top: 2em; }
.post-article h3 { font-size: 1.2rem; margin-top: 1.6em; }
.post-article ul, .post-article ol { padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.post-article li::marker { color: var(--accent-strong); }
.post-article a { color: var(--accent-strong); text-underline-offset: 3px; }
.post-article a:hover { color: var(--accent); }
.post-article strong { color: var(--text); }
.post-article p, .post-article li { color: var(--soft); }
.post-article table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.post-article th, .post-article td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); color: var(--soft); }
.post-article th { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.table-scroll { overflow-x: auto; }

.faq-block { margin-top: 2.4em; border-top: 1px solid var(--line); }
.faq-block h2 { margin-top: 1.4em; }
.faq-block h3 { color: var(--text); }
.faq-block h3 + p { margin-top: 0.5em; }

.cta-box {
  margin-top: 2.6em;
  background: var(--bg1); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
}
.cta-box p { color: var(--soft); }
.cta-box .btn { margin-top: 1.1rem; }

.related { border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: #090B0A; border-top: 1px solid var(--line); color: var(--muted); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-word { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--text); margin-bottom: 0.5rem; }
.footer-word em { font-style: normal; color: var(--accent-strong); }
.footer-tagline { color: var(--accent-strong); font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-brand p:last-child { max-width: 34ch; }
.footer-heading {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #767D75; margin-bottom: 0.9rem;
}
.footer-nav ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--text); }
.footer-contact p { margin-bottom: 0.4rem; }
.footer-bottom { border-top: 1px solid #161A18; padding-block: 1.4rem; font-size: 0.9rem; color: #767D75; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1023px) {
  .site-nav {
    position: fixed; top: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg0);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.8);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.9rem 0.2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .btn-nav { margin-top: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .split-panels { flex-direction: column; height: auto; }
  .split { min-height: 320px; }
  .split:hover, .split:focus-visible { flex: 1; }

  .stack-card { grid-template-columns: 1fr; position: static; }
  .stack-card:nth-child(even) .stack-media { order: 0; }
  .stack-media { max-height: 300px; }
  .stack-media-contain { padding: 1.2rem; }
  .stack-media-contain img { max-height: 260px; }

  .waste-grid { grid-template-columns: 1fr; }
  .waste-media { position: relative; top: auto; max-width: 520px; margin-bottom: 2.6rem; }
  .story-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-media { min-height: 240px; max-height: 320px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.7rem; }
  .mv-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .waste-photo-inset { bottom: -1.4rem; right: 0; }
  .marquee-track figure { height: 195px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .post-grid { grid-template-columns: 1fr; }
}
