/* ============================================================
   A.W.E.CO. · concept redesign · Origin Labs
   One family (Bricolage Grotesque), committed green palette,
   sunshine hardware, chunky rounded geometry.
   ============================================================ */

:root {
  --forest-950: #0A2517;
  --forest-900: #0F3423;
  --forest-700: #1B5A38;
  --green-600: #0F8C40;
  --green-500: #16A24A;
  --green-300: #7FDCA2;
  --mint-100: #E7F5EC;
  --mint-50:  #F1F9F4;
  --bg:       #FAFCFA;
  --ink:      #142219;
  --ink-soft: #41564A;
  --sun-500:  #FFC21E;
  --sun-400:  #FFCE3E;
  --sun-300:  #FFDD70;
  --coral-500:#F4593B;
  --sky-400:  #63B3E4;
  --line:     #DBE8DF;
  --line-dark: rgba(255,255,255,.16);

  --font: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --fs-hero: clamp(2.75rem, 6vw + 1rem, 5.7rem);
  --fs-h2: clamp(2.05rem, 3vw + 0.9rem, 3.4rem);
  --fs-h3: clamp(1.25rem, 1.1vw + 0.9rem, 1.55rem);
  --fs-lead: clamp(1.1rem, 0.5vw + 0.95rem, 1.3rem);

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --sec: clamp(4.5rem, 9vw, 8.5rem);
  --r-tile: 20px;
  --r-panel: 28px;

  --ease: cubic-bezier(.22, 1, .36, 1);

  --z-nav: 100;
  --z-menu: 200;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul[role="list"] { list-style: none; }
::selection { background: var(--sun-400); color: var(--ink); }

h1, h2, h3 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.028em; font-weight: 800; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.18; }
p { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  background: var(--forest-900); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
  transform: translateY(-64px); transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-color: var(--forest-900); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 17px 28px; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-s { padding: 12px 20px; font-size: .95rem; }
.btn-sun { background: var(--sun-400); color: var(--ink); box-shadow: 0 2px 0 rgba(20,34,25,.18); }
.btn-sun:hover { background: var(--sun-300); box-shadow: 0 10px 24px -8px rgba(255,194,30,.55); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-forest { background: var(--forest-900); color: #fff; }
.btn-forest:hover { background: var(--green-600); box-shadow: 0 10px 24px -10px rgba(15,140,64,.6); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: var(--z-nav);
  color: #fff;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav-inner {
  max-width: calc(var(--wrap) + 40px); margin-inline: auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav.scrolled {
  background: rgba(250,252,250,.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgba(10,37,23,.35);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 44px; height: 44px; flex: none; display: grid; }
.mark svg { width: 100%; height: 100%; }
.mark rect { fill: var(--green-500); }
.mark .mark-a { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.2rem; font-weight: 800; letter-spacing: .01em; }
.brand-text small { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; padding-block: 6px;
  white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2.5px; border-radius: 2px; background: var(--sun-400);
  transition: right .3s var(--ease);
}
.nav.scrolled .nav-links a::after { background: var(--green-500); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.burger {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  color: inherit;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.burger span {
  width: 24px; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--forest-950); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px;
  padding: 24px;
}
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mobile-menu nav > a {
  text-decoration: none; font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em;
}
.mobile-menu nav > a.btn { font-size: 1.05rem; margin-top: 10px; }
.mm-foot { position: absolute; bottom: 28px; font-size: .85rem; color: rgba(255,255,255,.6); }
.anim .mobile-menu nav > a { opacity: 0; transform: translateY(18px); }
.mobile-menu.open nav > a {
  opacity: 1; transform: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: calc(var(--i) * 55ms + 60ms);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(52rem 30rem at 82% -8%, rgba(22,162,74,.34), transparent 60%),
    radial-gradient(40rem 26rem at -12% 110%, rgba(255,206,62,.14), transparent 55%),
    var(--forest-900);
  color: #fff;
  overflow: clip;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.075) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  mask-image: radial-gradient(80rem 50rem at 30% 40%, #000 0%, transparent 78%);
}
.hero-inner {
  position: relative;
  max-width: var(--wrap); margin-inline: auto; padding: clamp(9rem, 16vh, 12rem) var(--pad) clamp(5rem, 9vh, 7rem);
}
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 9px 16px; margin-bottom: 26px;
  background: rgba(255,255,255,.06);
}
.tric { display: inline-flex; gap: 4px; }
.tric i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.tric i:nth-child(1) { background: #4CBB6E; }
.tric i:nth-child(2) { background: #F4F7F4; }
.tric i:nth-child(3) { background: #E4573D; }
.hero h1 { margin-bottom: 26px; }
.h-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.h-line > span { display: inline-block; }
.squig-wrap { position: relative; display: inline-block; }
.squig {
  position: absolute; left: 2%; bottom: -0.16em; width: 96%; height: .3em;
  overflow: visible;
}
.squig path {
  fill: none; stroke: var(--sun-400); stroke-width: 7; stroke-linecap: round;
}
.anim .squig path { stroke-dasharray: 300; stroke-dashoffset: 300; }
.anim.loaded .squig path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s var(--ease) 1.05s;
}
.hero .lead {
  font-size: var(--fs-lead); line-height: 1.62; color: rgba(255,255,255,.92);
  max-width: 56ch; margin-bottom: 34px; font-weight: 400;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-proof { font-size: .95rem; color: rgba(255,255,255,.72); max-width: 46ch; }
.hero-proof strong { color: rgba(255,255,255,.95); font-weight: 700; }

/* intro choreography */
.anim .intro-el { opacity: 0; transform: translateY(28px); }
.anim.loaded .intro-el {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}

/* floating shapes */
.shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape-p { position: absolute; left: var(--x); top: var(--y); will-change: transform; }
.shape svg { display: block; overflow: visible; }
.shape path, .shape circle, .shape rect { vector-effect: non-scaling-stroke; }
.f1 svg { width: clamp(64px, 8vw, 104px); }
.f2 svg { width: clamp(56px, 7vw, 88px); }
.f3 svg { width: clamp(58px, 7vw, 92px); }
.f4 svg { width: clamp(40px, 5vw, 62px); }
.f5 svg { width: clamp(70px, 9vw, 110px); }
.f6 svg { width: clamp(48px, 6vw, 80px); }
.kite { fill: var(--sun-400); stroke: var(--forest-950); stroke-width: 3; stroke-linejoin: round; }
.kite-x { fill: none; stroke: var(--forest-950); stroke-width: 3; }
.kite-tail { fill: none; stroke: var(--sun-400); stroke-width: 3.5; stroke-linecap: round; }
.ball { fill: var(--coral-500); stroke: var(--forest-950); stroke-width: 3; }
.ball-band { fill: none; stroke: #fff; stroke-width: 8; }
.ball-dot { fill: #fff; }
.blk { fill: var(--sky-400); stroke: var(--forest-950); stroke-width: 3; }
.blk-a { fill: none; stroke: var(--forest-950); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.star { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 3; stroke-linejoin: round; }
.spring { fill: none; stroke: var(--green-300); stroke-width: 5; stroke-linecap: round; }
.pw { stroke: var(--forest-950); stroke-width: 2.5; stroke-linejoin: round; }
.p-sun { fill: var(--sun-400); } .p-coral { fill: var(--coral-500); }
.p-sky { fill: var(--sky-400); } .p-mint { fill: var(--green-300); }
.pin-c { fill: var(--forest-950); }

@keyframes float-a { from { transform: translateY(-9px) rotate(-3deg); } to { transform: translateY(10px) rotate(3.5deg); } }
@keyframes float-b { from { transform: translateY(8px) rotate(2deg); } to { transform: translateY(-11px) rotate(-2.5deg); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.js.loaded .f1 { animation: float-a 5.6s ease-in-out infinite alternate; }
.js.loaded .f2 { animation: float-b 4.8s ease-in-out infinite alternate; }
.js.loaded .f3 { animation: float-a 6.4s ease-in-out infinite alternate -2s; }
.js.loaded .f4 { animation: float-b 5.2s ease-in-out infinite alternate -1s; }
.js.loaded .f5 { animation: float-a 7s ease-in-out infinite alternate -3s; }
.js.loaded .f6 .pin { transform-origin: 38px 38px; animation: spin-slow 14s linear infinite; }
.anim .shape { opacity: 0; transform: scale(.6); }
.anim.loaded .shape {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease) .5s, transform .9s var(--ease) .5s;
}

/* marquee */
.marquee {
  position: relative; z-index: 2;
  background: var(--sun-400); color: var(--ink);
  overflow: clip; border-top: 3px solid var(--forest-950);
}
.marquee-track { display: flex; width: max-content; animation: mq 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee-set { display: flex; align-items: center; gap: 34px; padding: 15px 17px; }
.marquee-set span {
  font-weight: 800; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.m-star { width: 15px; height: 15px; fill: var(--forest-950); flex: none; }

/* ---------- Section heads ---------- */
section { scroll-margin-top: 80px; }
.sec-head { max-width: 720px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.sec-head h2 { margin-bottom: 18px; }
.sec-head p { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.6; }
.sec-head-dark p { color: rgba(255,255,255,.85); }

/* ---------- Brands ---------- */
.brands { padding-block: var(--sec); background: var(--bg); }
.wall {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px;
}
.tile {
  aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-tile);
  display: grid; place-items: center; padding: 17%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.tile img { width: 100%; height: 100%; object-fit: contain; }
.tile:hover {
  transform: translateY(-6px) rotate(-1.6deg);
  border-color: var(--green-500);
  box-shadow: 0 18px 34px -18px rgba(10,37,23,.35);
}
.tile-name { background: var(--mint-100); border-color: transparent; }
.tile-name span { font-weight: 700; font-size: 1.02rem; color: var(--forest-900); text-align: center; line-height: 1.25; }
.tile-cta { background: var(--forest-900); border-color: var(--forest-900); padding: 10%; }
.tile-cta a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 100%; text-decoration: none; color: #fff; text-align: center;
}
.tile-cta em { font-style: normal; font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.tile-cta svg { width: 26px; height: 26px; fill: none; stroke: var(--sun-400); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.tile-cta:hover svg { transform: translateX(6px); }
.tile-cta:hover { background: var(--green-600); border-color: var(--green-600); }
.wall-note { margin-top: 26px; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Company / story ---------- */
.company { padding-block: var(--sec); background: var(--mint-100); }
.company-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2.5rem, 6vw, 5.5rem); }
.sticky-col { position: sticky; top: 108px; }
.company h2 { margin-bottom: 20px; }
.company .sticky-col > p { color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.6; max-width: 46ch; }
.polas { position: relative; margin-top: 44px; height: 380px; }
.pola {
  position: absolute; width: min(300px, 62%); background: #fff; border-radius: 6px;
  padding: 10px 10px 14px; box-shadow: 0 22px 44px -20px rgba(10,37,23,.35);
}
.pola img { border-radius: 3px; aspect-ratio: 4 / 3; object-fit: cover; }
.pola figcaption { margin-top: 10px; font-size: .88rem; font-weight: 600; font-style: italic; color: var(--ink-soft); text-align: left; padding-left: 4px; }
.pola-1 { left: 0; top: 0; transform: rotate(-4deg); z-index: 1; }
.pola-2 { right: 0; top: 132px; transform: rotate(3deg); z-index: 2; }
.pola { transition: transform .45s var(--ease), z-index 0s .1s; }
.pola:hover { transform: rotate(0deg) scale(1.04); z-index: 3; }
.stamp { position: absolute; right: -6px; top: -34px; width: 128px; z-index: 3; transform: rotate(-12deg); opacity: .96; }
.stamp-ring { fill: none; stroke: var(--green-600); stroke-width: 2.5; }
.stamp-ring-in { stroke-width: 1.5; stroke-dasharray: 4 5; }
.stamp-text { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; fill: var(--green-600); }
.stamp-star { fill: var(--green-600); }

.timeline { position: relative; padding-left: clamp(64px, 8vw, 96px); }
.tl-rail {
  position: absolute; left: 26px; top: 8px; bottom: 8px; width: 3px;
  background: rgba(15,140,64,.18); border-radius: 3px; overflow: hidden;
}
.tl-line {
  width: 100%; height: 100%; background: var(--green-500); border-radius: 3px;
  transform-origin: top;
}
.anim .tl-line { transform: scaleY(var(--p, 0)); }
.beat { position: relative; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.beat:last-child { padding-bottom: 0; }
.beat::before {
  content: ""; position: absolute; left: calc(-1 * clamp(64px, 8vw, 96px) + 18px); top: 14px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--green-500); border: 4px solid var(--mint-100);
  box-shadow: 0 0 0 2.5px var(--green-500);
}
.beat-year {
  display: block; font-weight: 800; line-height: .9;
  font-size: clamp(3.1rem, 5.5vw, 4.7rem); letter-spacing: -0.03em;
  color: var(--green-500); opacity: .32;
  margin-bottom: 6px;
}
@supports (-webkit-text-stroke: 2px black) {
  .beat-year { color: transparent; -webkit-text-stroke: 2.5px var(--green-500); opacity: .55; }
}
.beat h3 { margin-bottom: 10px; }
.beat p { color: var(--ink-soft); max-width: 52ch; }

/* ---------- Services ---------- */
.services { padding-block: var(--sec); background: var(--bg); }
.svc-rows { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(1.2rem, 4vw, 4rem); align-items: start;
  padding-block: clamp(1.8rem, 3.5vw, 2.6rem);
  border-bottom: 1px solid var(--line);
  border-radius: 14px;
  transition: background-color .35s var(--ease), padding .35s var(--ease);
}
.svc-row:hover { background: var(--mint-50); padding-inline: 22px; }
.svc-title { display: flex; align-items: flex-start; gap: 16px; }
.svc-ico {
  width: 34px; height: 34px; flex: none; margin-top: 4px;
  fill: none; stroke: var(--green-600); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.svc-row p { color: var(--ink-soft); max-width: 58ch; align-self: center; }

/* ---------- Territory ---------- */
.territory {
  padding-block: var(--sec);
  background:
    radial-gradient(50rem 28rem at 110% 0%, rgba(22,162,74,.35), transparent 60%),
    radial-gradient(36rem 22rem at -8% 100%, rgba(255,206,62,.1), transparent 55%),
    var(--forest-900);
  color: #fff; position: relative; overflow: clip;
}
.territory::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}
.territory .wrap { position: relative; }
.count { color: var(--sun-400); font-weight: 800; font-variant-numeric: tabular-nums; }
.map { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.map-svg { width: 100%; max-width: 940px; margin-inline: auto; display: block; height: auto; }
.map-dots circle { fill: rgba(255,255,255,.12); }
.arc {
  fill: none; stroke: var(--sun-400); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.anim .arc { stroke-dashoffset: calc(1 - var(--p, 0)); }
.arc-2 { stroke: var(--green-300); }
.arc-3 { stroke-dasharray: 0.02 0.014; }
.anim .arc-3 {
  stroke-dashoffset: 0;
  opacity: calc(var(--p, 0) * var(--p, 0) * 1.4);
  animation: march 1.4s linear infinite;
}
@keyframes march { from { stroke-dashoffset: 0.068; } to { stroke-dashoffset: 0; } }
.home-sq { fill: var(--green-500); stroke: #fff; stroke-width: 2.5; }
.home-a { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.node-dot { fill: var(--sun-400); stroke: var(--forest-950); stroke-width: 2.5; }
.node-pulse {
  fill: none; stroke: var(--sun-400); stroke-width: 2;
  transform-box: fill-box; transform-origin: center;
  animation: pulse 2.6s var(--ease) infinite;
}
.node-r2 .node-pulse { animation-delay: .5s; stroke: var(--green-300); }
.node-r3 .node-pulse { animation-delay: 1s; }
@keyframes pulse {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}
.node-label { fill: #fff; font-weight: 800; font-size: 15px; letter-spacing: .1em; }
.node-count { fill: var(--green-300); font-weight: 600; font-size: 13.5px; letter-spacing: .04em; }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3vw, 2.5rem); }
.region h3 { font-size: 1.12rem; margin-bottom: 16px; color: var(--green-300); letter-spacing: .01em; }
.region ul { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.26); border-radius: 999px;
  padding: 8px 15px; background: rgba(255,255,255,.05);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.55); }
.anim .chip { opacity: 0; transform: scale(.75); }
.anim .region.in .chip {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease),
              background-color .3s var(--ease), border-color .3s var(--ease);
  transition-delay: calc(var(--i) * 45ms), calc(var(--i) * 45ms), 0s, 0s;
}

/* ---------- TV ---------- */
.tv { padding-block: var(--sec); background: var(--bg); }
.tv-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.tv-copy h2 { margin-bottom: 20px; }
.tv-copy p { color: var(--ink-soft); margin-bottom: 18px; max-width: 54ch; }
.tv-copy .btn { margin-top: 10px; }
.tv-set { display: block; text-decoration: none; max-width: 460px; margin-inline: auto; }
.tv-set svg { width: 100%; height: auto; display: block; }
.tv-ant { stroke: var(--forest-900); stroke-width: 3.5; stroke-linecap: round; }
.tv-ant-tip { fill: var(--sun-400); stroke: var(--forest-900); stroke-width: 2.5; }
.tv-body { fill: #fff; stroke: var(--forest-900); stroke-width: 3.5; }
.tv-screen-frame { fill: var(--forest-950); }
.tv-static {
  width: 100%; height: 100%; border-radius: 10px; opacity: .5;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(127,220,162,.12) 0 2px, transparent 2px 5px);
}
.js.loaded .tv-static { animation: static-jitter .4s steps(3) infinite; }
@keyframes static-jitter {
  0% { background-position: 0 0, 0 0; }
  50% { background-position: 0 2px, 2px 0; }
  100% { background-position: 0 -2px, -1px 0; }
}
.tv-controls circle, .tv-controls rect { fill: var(--mint-100); stroke: var(--forest-900); stroke-width: 2.5; }
.tv-feet { stroke: var(--forest-900); stroke-width: 4; stroke-linecap: round; }
.tv-play circle { fill: var(--sun-400); stroke: var(--forest-950); stroke-width: 3; }
.tv-play path { fill: var(--forest-950); }
.tv-play { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); }
.tv-set:hover .tv-play { transform: scale(1.14) rotate(3deg); }
.tv-hint {
  display: block; text-align: center; margin-top: 18px;
  font-weight: 700; color: var(--forest-900); text-decoration: underline;
  text-decoration-color: var(--sun-500); text-decoration-thickness: 3px; text-underline-offset: 5px;
}

/* ---------- Contact ---------- */
.contact { padding-block: var(--sec); background: var(--mint-100); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.door {
  display: block; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-panel);
  padding: clamp(1.6rem, 3vw, 2.2rem); text-decoration: none;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.door:hover {
  transform: translateY(-5px); border-color: var(--green-500);
  box-shadow: 0 24px 44px -24px rgba(10,37,23,.3);
}
.door h3 { margin-bottom: 10px; }
.door p { color: var(--ink-soft); margin-bottom: 20px; }
.door-go { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green-600); }
.door-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.door:hover .door-go svg { transform: translateX(5px); }

.enquire-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 18px; scroll-margin-top: 110px; }
.form[hidden], .form-success[hidden] { display: none; }
.form, .form-success {
  background: #fff; border-radius: var(--r-panel); padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: 0 30px 60px -40px rgba(10,37,23,.35);
}
.seg {
  border: 0; display: inline-flex; gap: 6px; background: var(--mint-100);
  padding: 6px; border-radius: 999px; margin-bottom: 26px;
}
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; color: var(--ink-soft);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.seg input:checked + span { background: var(--forest-900); color: #fff; box-shadow: 0 6px 14px -6px rgba(10,37,23,.5); }
.seg input:focus-visible + span { outline: 3px solid var(--green-500); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink);
  width: 100%; min-width: 0;
  border: 1.5px solid var(--line); border-radius: 14px;
  padding: 13px 16px; background: var(--bg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #5C7263; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(22,162,74,.16);
}
.field input.invalid, .field textarea.invalid { border-color: var(--coral-500); }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.form-alt { font-size: .92rem; color: var(--ink-soft); }
.form-alt a { font-weight: 700; color: var(--green-600); }
.form-error { margin-top: 14px; font-weight: 600; color: #C23A22; }
.form-success { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.form-success svg { width: 84px; height: 84px; margin-bottom: 8px; }
.fs-star { fill: var(--sun-400); stroke: var(--forest-950); stroke-width: 2.5; stroke-linejoin: round; }
.fs-check { fill: none; stroke: var(--forest-950); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 2rem; }
.form-success p { color: var(--ink-soft); max-width: 34ch; }
.fs-note { font-size: .84rem; opacity: .75; }
.form-success .btn { margin-top: 14px; }
.contact-rail {
  background: var(--forest-900); color: #fff; border-radius: var(--r-panel);
  padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 22px;
  align-self: start;
}
.rail-item h4 { font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-300); margin-bottom: 6px; }
.rail-item p { line-height: 1.55; }
.rail-item a { color: #fff; font-weight: 600; text-decoration-color: var(--sun-400); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rail-item a:hover { color: var(--sun-300); }
.rail-social { display: flex; gap: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--forest-950); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.2rem; overflow: clip; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.brand-foot .brand-text strong { font-size: 1.3rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.5vw, 30px); }
.foot-nav a { text-decoration: none; font-weight: 600; opacity: .85; transition: opacity .25s, color .25s; }
.foot-nav a:hover { opacity: 1; color: var(--sun-400); }
.foot-big {
  font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.3);
  white-space: nowrap; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@supports not (-webkit-text-stroke: 1px black) {
  .foot-big { color: rgba(255,255,255,.14); }
}
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding-top: 22px; }
.foot-legal p { font-size: .88rem; color: rgba(255,255,255,.72); }

/* ---------- Reveal system ---------- */
.anim .rv { opacity: 0; transform: translateY(26px); }
.anim .rv.in {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.anim .rv-pop { opacity: 0; transform: scale(.88) translateY(12px); }
.anim .rv-pop.in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease) calc(var(--i, 0) * 26ms),
              transform .6s var(--ease) calc(var(--i, 0) * 26ms);
}
.anim .tile.rv-pop.in {
  transition: opacity .6s var(--ease) calc(var(--i, 0) * 26ms),
              transform .6s var(--ease) calc(var(--i, 0) * 26ms),
              box-shadow .4s var(--ease), border-color .4s var(--ease);
}

/* settle: once a reveal's transition window has passed, pin the final
   state with no transition so throttled or frozen compositors raster it */
.anim .rv.in.settle, .anim .rv-pop.in.settle,
.anim .region.in.settle .chip { transition: none !important; }
.anim.settled .intro-el, .anim.settled .shape,
.anim.settled .squig path { transition: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .company-grid { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .polas { height: 360px; max-width: 560px; }
  .tv-grid { grid-template-columns: 1fr; }
  .tv-set { max-width: 380px; }
  .regions { grid-template-columns: 1fr; gap: 1.8rem; }
  .doors { grid-template-columns: 1fr; }
  .enquire-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 14px; }
  .svc-row p { max-width: 62ch; }
}
@media (max-width: 1150px) {
  .f6 { display: none; }
  .shapes .shape-p:nth-child(3) { --x: 84%; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .hero-inner { padding-top: 7.5rem; }
  .hero-proof { font-size: .9rem; }
  .f5, .f6 { display: none; }
  .shapes .shape-p { opacity: .8; }
  .wall { grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; }
  .marquee-set { gap: 22px; padding: 12px 11px; }
  .marquee-set span { font-size: .82rem; }
  .polas { height: 330px; }
  .stamp { width: 100px; top: -26px; }
  .timeline { padding-left: 56px; }
  .tl-rail { left: 18px; }
  .beat::before { left: -46px; width: 16px; height: 16px; }
  .foot-big { white-space: normal; }
  .form-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fields { grid-template-columns: 1fr; }
  .seg { display: flex; }
  .seg span { padding: 10px 14px; font-size: .9rem; }
}
@media (max-width: 560px) {
  .f1 { display: none; }
  .shapes { opacity: .75; }
}

/* dev section isolation: load with ?only=<section id> to render one
   section at the top of the page (used for design review captures) */
html[data-only] .hero, html[data-only] main > section,
html[data-only] .nav, html[data-only] .footer { display: none; }
html[data-only="hero"] .hero { display: block; }
html[data-only="brands"] #brands { display: block; }
html[data-only="company"] #company { display: block; }
html[data-only="services"] #services { display: block; }
html[data-only="territory"] #territory { display: block; }
html[data-only="tv"] #tv { display: block; }
html[data-only="contact"] #contact { display: block; }
html[data-only="footer"] .footer { display: block; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .anim .intro-el, .js .shape, .js .rv, .js .rv-pop, .js .chip,
  .anim .mobile-menu nav > a { opacity: 1 !important; transform: none !important; }
  .anim .squig path { stroke-dashoffset: 0 !important; }
  .anim .tl-line { transform: none !important; }
  .anim .arc { stroke-dashoffset: 0 !important; opacity: 1 !important; }
  .marquee-track { animation: none !important; }
  .js.loaded .tv-static { animation: none !important; }
  .node-pulse { animation: none !important; opacity: 0; }
}
