/* ============================================================
   WeGrow — premium.css
   Layered on top of style.css (loaded after it). Contains:
   · motion + typography system
   · Farming Solutions (tabs + expanding panels)
   · Our Systems (filterable catalogue + stage)
   · detail modal
   · refinements to existing sections (nav, about, why, process, contact)
   ============================================================ */

:root {
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --forest-deep: #112A1E;
  --water: #A9CFC4;
}

/* ── Shared type accents ────────────────────────────────────── */
.section-title em,
.hero-heading em,
.banner-heading em,
.wg-display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--leaf-text);
}
.systems2 .section-title em,
.banner-heading em { color: var(--beige); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

/* ── Buttons ────────────────────────────────────────────────── */
.wg-btn {
  --bg: var(--forest); --fg: var(--ivory); --bd: var(--forest);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 22px; height: 46px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd);
  font: 600 14px/1 inherit; font-family: inherit; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.wg-btn .arr { display: inline-block; transition: transform .35s var(--ease-out); }
.wg-btn:hover .arr { transform: translateX(4px); }
.wg-btn:hover { --bg: var(--leaf); --bd: var(--leaf); }
.wg-btn:active { transform: scale(.98); }
.wg-btn--light { --bg: var(--ivory); --fg: var(--forest); --bd: var(--ivory); }
.wg-btn--light:hover { --bg: var(--beige); --bd: var(--beige); }
.wg-btn--ghost { --bg: transparent; --fg: var(--ivory); --bd: rgba(245,243,233,.5); }
.wg-btn--ghost:hover { --bg: rgba(245,243,233,.12); --bd: var(--ivory); }
.wg-btn--outline { --bg: transparent; --fg: var(--forest); --bd: rgba(24,61,43,.35); }
.wg-btn--outline:hover { --bg: var(--forest); --fg: var(--ivory); --bd: var(--forest); }
.wg-btn--sm { height: 40px; padding: 0 18px; font-size: 13px; }
:where(.wg-btn, .chip, .cat-btn, .sol-tab, .acc-trigger):focus-visible,
.wg-modal-close:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}
.systems2 :where(.wg-btn, .chip, .cat-btn):focus-visible { outline-color: var(--beige); }

/* ============================================================
   MOTION SYSTEM
   ============================================================ */
/* word-by-word headline reveal (JS wraps words; falls back to plain text) */
.wg-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin: 0 -.06em -.14em 0; }
.wg-split .wi {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.wg-split.in .wi { transform: translateY(0); }

/* generic fade-up + stagger */
.fx { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.fx.in { opacity: 1; transform: none; }

/* image mask reveal */
.mask-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-io); }
.mask-reveal.in { clip-path: inset(0 0 0 0); }
.mask-reveal img { transform: scale(1.18); transition: transform 1.6s var(--ease-out); }
.mask-reveal.in img { transform: scale(1); }

/* decorative parallax leaves */
.deco { position: absolute; pointer-events: none; opacity: .5; z-index: 0; will-change: transform; }
.section-rel { position: relative; overflow: hidden; overflow: clip; } /* clip (not hidden) so position:sticky keeps working inside */
.section-rel > .container { position: relative; z-index: 1; }

/* water-flow + bubbles inside illustrations */
.wg-flow { stroke-dasharray: 5 9; animation: wg-flow 1.3s linear infinite; }
@keyframes wg-flow { to { stroke-dashoffset: -14; } }
.wg-bubble { animation: wg-bubble 2.2s ease-in infinite; transform-box: fill-box; }
@keyframes wg-bubble { 0% { transform: translateY(8px); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-28px); opacity: 0; } }
.wg-drip { animation: wg-drip 1.8s ease-in infinite; }
@keyframes wg-drip { 0% { transform: translateY(-40px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
.wg-ray { animation: wg-ray 3s ease-in-out infinite; }
@keyframes wg-ray { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ============================================================
   NAV refinements
   ============================================================ */
.nav {
  background: rgba(245,243,233,.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.nav-links { gap: 2px; }
.nav-link { position: relative; }
.nav-links .nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.nav-links .nav-link:hover::after, .nav-links .nav-link.active::after { transform: scaleX(1); }
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--leaf), var(--beige));
  transform: scaleX(var(--p, 0)); transform-origin: left; opacity: .9;
}
.nav-cta { border-radius: 999px; }
.nav-cta:hover { transform: translateY(-1px); }

/* ============================================================
   ABOUT (integration)
   ============================================================ */
.about-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about .btn-dark { margin-top: 0 !important; border-radius: 999px; padding: 0 24px; height: 46px; }
.about .btn-dark { display: inline-flex !important; }

/* ============================================================
   FARMING SOLUTIONS — tabs + expanding panels
   ============================================================ */
.solutions { background: var(--sand); padding-block: calc(var(--py) * .7) var(--py); }
.sol-head {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; margin-bottom: 48px;
}
.sol-head .section-title { max-width: 14ch; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; }
.sol-head .section-desc { max-width: 46ch; padding-bottom: 8px; }

.sol-tabs {
  position: relative; display: inline-flex; gap: 0; padding: 6px; margin-bottom: 28px;
  background: rgba(24,61,43,.08); border-radius: 999px;
}
.sol-tabs-pill {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px;
  background: var(--forest); box-shadow: 0 6px 20px rgba(24,61,43,.25);
  transition: transform .55s var(--ease-out), width .55s var(--ease-out);
}
.sol-tab {
  position: relative; z-index: 1; display: flex; align-items: baseline; gap: 10px;
  padding: 14px 28px; border: 0; background: none; cursor: pointer; border-radius: 999px;
  font: 700 15px/1 inherit; font-family: inherit; color: var(--forest); transition: color .4s var(--ease-out);
}
.sol-tab small { font-size: 12px; font-weight: 500; opacity: .65; }
.sol-tab[aria-selected="true"] { color: var(--ivory); }

.sol-panel[hidden] { display: none; }
.acc {
  display: flex; gap: 10px; height: clamp(520px, 74vh, 640px);
}
.sol-panel.enter .acc-item { animation: acc-in .9s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes acc-in { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }

.acc-item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 20px;
  background: var(--forest-deep); isolation: isolate;
  transition: flex-grow .85s var(--ease-io);
}
.acc-item.is-active { flex-grow: 6.2; }
.acc-media { position: absolute; inset: 0; z-index: -2; }
.acc-media img, .acc-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-media > * { transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
.acc-item.is-active .acc-media > * { transform: scale(1); }
.acc-item:not(.is-active):hover .acc-media > * { transform: scale(1.18); }
.acc-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(10,22,15,.5) 0%, rgba(10,22,15,0) 26%),
    linear-gradient(to top, rgba(10,22,15,.92) 0%, rgba(10,22,15,.5) 46%, rgba(10,22,15,.14) 100%);
  transition: opacity .6s;
}
.acc-trigger {
  position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; background: none; cursor: pointer;
  color: var(--ivory); text-align: left; font-family: inherit;
}
.acc-item.is-active .acc-trigger { pointer-events: none; }
.acc-num {
  position: absolute; top: 68px; left: 50%; transform: translateX(-50%); font: 700 12px/1 inherit; letter-spacing: .14em; color: var(--beige);
  transition: top .6s var(--ease-io), left .6s var(--ease-io), transform .6s var(--ease-io);
}
.acc-item.is-active .acc-num { top: 24px; left: 36px; transform: none; }
.acc-vname {
  position: absolute; left: 50%; bottom: 24px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-size: 18px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; max-height: calc(100% - 80px);
  transition: opacity .35s var(--ease-out);
}
.acc-item.is-active .acc-vname { opacity: 0; }
.acc-plus {
  position: absolute; top: 16px; left: 50%; margin-left: -17px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(245,243,233,.4); display: grid; place-items: center; font-size: 18px; line-height: 1;
  transition: opacity .3s, background .3s;
}
.acc-item:not(.is-active):hover .acc-plus { background: rgba(245,243,233,.18); }
.acc-item.is-active .acc-plus { opacity: 0; }

.acc-body {
  position: absolute; left: 0; bottom: 0; width: min(560px, 100%); padding: 0 36px 34px; color: var(--ivory);
  opacity: 0; transform: translateY(18px); pointer-events: none; visibility: hidden;
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), visibility 0s .45s;
}
.acc-item.is-active .acc-body {
  opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  transition: opacity .7s var(--ease-out) .35s, transform .8s var(--ease-out) .35s, visibility 0s;
}
.acc-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--beige); margin-bottom: 12px; }
.acc-title { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; margin-bottom: 14px; }
.acc-desc { font-size: 15px; line-height: 1.65; color: rgba(245,243,233,.86); margin-bottom: 22px; max-width: 46ch; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   OUR SYSTEMS — filterable catalogue
   ============================================================ */
.systems2 {
  position: relative; color: var(--ivory);
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(82,125,70,.38), transparent 60%),
    radial-gradient(700px 480px at -10% 60%, rgba(168,185,154,.12), transparent 60%),
    var(--forest);
  padding-block: calc(var(--py) * 1.1);
}
.systems2 .section-label { color: var(--sage); }
.sys-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; margin-bottom: 44px; }
.sys-head .section-title { color: var(--ivory); font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; max-width: 12ch; }
.sys-head .section-desc { color: rgba(245,243,233,.76); max-width: 46ch; padding-bottom: 8px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; margin-bottom: 36px; padding-block: 18px; border-block: 1px solid rgba(245,243,233,.14); }
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-right: 6px; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: 600 13px/1 inherit; font-family: inherit;
  color: rgba(245,243,233,.85); background: transparent; border: 1px solid rgba(245,243,233,.25);
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s, transform .3s var(--ease-out);
}
.chip:hover { border-color: var(--beige); color: var(--ivory); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.filter-count { margin-left: auto; font-size: 13px; color: rgba(245,243,233,.7); }
.filter-count b { color: var(--beige); font-weight: 700; }

.catalogue { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.cat-list { counter-reset: sys; }
.cat-item {
  display: grid; grid-template-rows: 1fr; border-top: 1px solid rgba(245,243,233,.14);
  transition: grid-template-rows .55s var(--ease-io), opacity .4s var(--ease-out);
}
.cat-item:last-child { border-bottom: 1px solid rgba(245,243,233,.14); }
.cat-item > div { min-height: 0; overflow: hidden; }
.cat-item.is-out { grid-template-rows: 0fr; opacity: 0; pointer-events: none; border-top-color: transparent; }
.cat-btn {
  position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; width: 100%;
  padding: 20px 6px; background: none; border: 0; cursor: pointer; text-align: left; color: rgba(245,243,233,.62); font-family: inherit;
  transition: color .4s var(--ease-out), padding .5s var(--ease-out);
}
.cat-btn::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(245,243,233,.06);
  transition: width .6s var(--ease-out); z-index: 0;
}
.cat-btn > * { position: relative; z-index: 1; }
.cat-n { font: 700 12px/1 inherit; letter-spacing: .12em; color: var(--sage); transition: color .3s; }
.cat-name { display: block; font-size: clamp(19px, 1.9vw, 25px); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.cat-kick { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .04em; opacity: .7; }
.cat-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(245,243,233,.25); color: var(--beige); white-space: nowrap; transition: background .3s, color .3s, border-color .3s;
}
.cat-btn:hover { color: var(--ivory); padding-left: 14px; }
.cat-btn:hover::before { width: 100%; }
.cat-btn[aria-current="true"] { color: var(--ivory); padding-left: 14px; }
.cat-btn[aria-current="true"]::before { width: 100%; background: rgba(245,243,233,.09); }
.cat-btn[aria-current="true"] .cat-n { color: var(--beige); }
.cat-btn[aria-current="true"] .cat-tag { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.cat-empty { display: none; padding: 40px 0; color: rgba(245,243,233,.8); }
.cat-empty.show { display: block; }
.cat-empty button { margin-top: 14px; }

.cat-side { align-self: stretch; }
.cat-stage {
  position: sticky; top: calc(var(--nav-h) + 22px);
  background: var(--sand); color: var(--charcoal); border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.5);
}
.cat-art { position: relative; aspect-ratio: 14 / 10; background: var(--sand); overflow: hidden; }
.cat-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cat-art .badge {
  position: absolute; left: 18px; top: 18px; z-index: 2; padding: 7px 12px; border-radius: 999px;
  background: var(--forest); color: var(--ivory); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.cat-info { padding: 24px 30px 28px; }
.cat-info h3 { font-size: clamp(24px, 2.5vw, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; color: var(--forest); margin-bottom: 10px; }
.cat-info p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 18px; max-width: 54ch; }
.crop-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.crop {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(82,125,70,.14); color: #2F5A2A;
}
.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-stage.swap .cat-art svg, .cat-stage.swap .cat-info > * { animation: stage-in .7s var(--ease-out) both; }
.cat-stage.swap .cat-info > *:nth-child(2) { animation-delay: .05s; }
.cat-stage.swap .cat-info > *:nth-child(3) { animation-delay: .1s; }
.cat-stage.swap .cat-info > *:nth-child(4) { animation-delay: .15s; }
.cat-stage.swap .cat-info > *:nth-child(5) { animation-delay: .2s; }
@keyframes stage-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cat-stage.swap .cat-art svg { animation-name: art-in; }
@keyframes art-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* ============================================================
   MODAL
   ============================================================ */
.wg-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; visibility: hidden; pointer-events: none; }
.wg-modal.open { visibility: visible; pointer-events: auto; }
.wg-modal-backdrop { position: absolute; inset: 0; background: rgba(10,22,15,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s var(--ease-out); }
.wg-modal.open .wg-modal-backdrop { opacity: 1; }
.wg-modal-dialog {
  position: relative; width: min(1000px, 100%); max-height: min(720px, calc(100vh - 48px)); display: grid; grid-template-columns: 5fr 6fr;
  background: var(--paper); border-radius: 26px; overflow: hidden; outline: none;
  opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.55);
}
.wg-modal.open .wg-modal-dialog { opacity: 1; transform: none; }
.wg-modal-media { background: var(--sand); display: flex; flex-direction: column; overflow-y: auto; }
.mm-art { position: relative; aspect-ratio: 4 / 3; flex: none; background: var(--sand); overflow: hidden; }
.mm-art svg, .mm-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-extra { padding: 8px 30px 30px; }
.mm-extra .m-h { margin-top: 22px; }
.m-mobile-only { display: none; }
.wg-modal-content { padding: 40px 40px 34px; overflow-y: auto; overscroll-behavior: contain; }
.wg-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(24,61,43,.2); background: rgba(251,250,244,.92); color: var(--forest); font-size: 22px; line-height: 1;
  transition: transform .4s var(--ease-out), background .3s;
}
.wg-modal-close:hover { transform: rotate(90deg); background: #fff; }
.m-kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf-text); }
.m-title { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.06; color: var(--forest); margin: 10px 0 14px; padding-right: 36px; }
.m-desc { font-size: 15px; line-height: 1.7; color: var(--muted); }
.m-note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(31,92,88,.1); border-left: 3px solid #1F5C58; font-size: 14px; line-height: 1.6; color: #174744; }
.m-h { margin: 26px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--charcoal); }
.m-list { display: grid; gap: 9px; }
.m-list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.m-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg) scale(.9); transform-origin: left top; }
.m-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
body.modal-open { overflow: hidden; }

/* ============================================================
   Existing sections — integration & refinement
   ============================================================ */
.banner { overflow: hidden; }
a.banner-badge { transition: transform .5s var(--ease-out), background .3s, box-shadow .5s var(--ease-out); }
a.banner-badge:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 20px 36px -18px rgba(0,0,0,.5); }
a.banner-badge .banner-badge-label::after { content: ' →'; opacity: 0; transition: opacity .3s; }
a.banner-badge:hover .banner-badge-label::after { opacity: 1; }
.banner-heading { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; }

.why-image-wrap { overflow: visible; }
.why-image { will-change: transform; }
.why-badge { border-radius: 10px; box-shadow: none; }
.why-feature { transition: border-color .3s, transform .5s var(--ease-out); }
.why-feature:hover { transform: translateX(6px); border-left-color: var(--forest); }

.process-step { border-top: 0; position: relative; }
.process-step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--forest);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-io) .1s;
}
.process-step.visible::before { transform: scaleX(1); }
.process-step-num { transition: color .4s, transform .6s var(--ease-out); }
.process-step:hover .process-step-num { color: var(--forest); transform: translateY(-4px); }

.contact-form-card { border-radius: 22px; box-shadow: 0 30px 60px -36px rgba(24,61,43,.45); }
.form-hint { display: none; margin-top: 2px; font-size: 12.5px; color: var(--leaf-text); font-weight: 600; }
.form-hint.show { display: block; }
.form-select.flash { animation: sel-flash 1.8s var(--ease-out); }
@keyframes sel-flash { 0% { box-shadow: 0 0 0 0 rgba(82,125,70,.6); border-color: var(--leaf); } 40% { box-shadow: 0 0 0 7px rgba(82,125,70,.0); border-color: var(--leaf); } 100% { box-shadow: none; } }
.form-submit { border-radius: 999px; }
.contact-img { border-radius: 18px; }
.footer-link:hover { color: var(--beige); }

/* Achievements band */
.achievements {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); margin-top: 88px;
  background: var(--forest); color: var(--ivory); border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(24,61,43,.6);
}
.ach { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 38px 30px; border-left: 1px solid rgba(245,243,233,.12); min-height: 190px; }
.ach:first-child { border-left: 0; }
.ach-num { font-size: clamp(40px, 4.6vw, 68px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--ivory); font-variant-numeric: tabular-nums; }
.ach-label { min-height: 2.7em; font-size: 14px; font-weight: 600; color: var(--beige); letter-spacing: .01em; }
.ach-sub { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--sage); line-height: 1.1; }
.ach--lead { position: relative; background: radial-gradient(420px 260px at 0% 100%, rgba(82,125,70,.55), transparent 70%), rgba(245,243,233,.05); }
.ach--lead .ach-label { min-height: 0; }
.ach--lead .ach-num { font-size: clamp(56px, 6.6vw, 96px); }
.ach-pin { width: 30px; height: 30px; color: var(--beige); margin-bottom: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .catalogue { gap: 40px; }
  .sol-head, .sys-head { gap: 32px; }
}

@media (max-width: 900px) {
  .deco { display: none; }
  .achievements { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .ach { min-height: 150px; padding: 28px 22px; border-left: 0; border-top: 1px solid rgba(245,243,233,.12); }
  .ach--lead { grid-column: 1 / -1; border-top: 0; min-height: 210px; }
  .ach:nth-child(odd):not(.ach--lead) { border-right: 1px solid rgba(245,243,233,.12); }
  .sol-head, .sys-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .sol-head .section-title, .sys-head .section-title { max-width: none; }

  /* panels become a vertical accordion */
  .acc { flex-direction: column; height: auto; gap: 8px; }
  .acc-item { flex: none; height: 78px; transition: height .8s var(--ease-io); }
  .acc-item.is-active { height: 500px; }
  .acc-num { top: 33px; left: 22px; transform: none; }
  .acc-item.is-active .acc-num { top: 24px; left: 22px; }
  .acc-vname { writing-mode: horizontal-tb; transform: none; left: 62px; right: 56px; bottom: auto; top: 50%; margin-top: -12px; font-size: 17px; max-height: none; }
  .acc-plus { top: 22px; left: auto; right: 16px; margin-left: 0; }
  .acc-body { padding: 0 22px 24px; width: 100%; }
  .acc-desc { font-size: 14.5px; margin-bottom: 18px; }

  /* catalogue: list becomes a horizontal scroller above the stage */
  .catalogue { grid-template-columns: 1fr; gap: 20px; }
  .cat-list { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; margin-inline: calc(var(--px) * -1); padding-inline: var(--px); scrollbar-width: none; }
  .cat-list::-webkit-scrollbar { display: none; }
  .cat-item, .cat-item:last-child { display: block; flex: none; border: 0; scroll-snap-align: start; }
  .cat-item.is-out { display: none; }
  .cat-item > div { overflow: visible; }
  .cat-btn { display: flex; padding: 11px 18px; border: 1px solid rgba(245,243,233,.28); border-radius: 999px; }
  .cat-btn::before, .cat-n, .cat-kick, .cat-tag { display: none; }
  .cat-btn:hover, .cat-btn[aria-current="true"] { padding-left: 18px; }
  .cat-btn[aria-current="true"] { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
  .cat-name { font-size: 14.5px; white-space: nowrap; }
  .cat-stage { position: relative; top: 0; border-radius: 20px; }


  .wg-modal { padding: 0; align-items: end; }
  .wg-modal-dialog { display: block; max-height: 92vh; border-radius: 22px 22px 0 0; overflow-y: auto; }
  .wg-modal-media { overflow: visible; }
  .wg-modal-close { position: sticky; top: 10px; display: block; margin: 10px 10px -52px auto; }
  .mm-art { aspect-ratio: auto; height: 190px; }
  .mm-extra { display: none; }
  .m-mobile-only { display: block; }
  .wg-modal-content { overflow: visible; }
  .wg-modal-content { padding: 26px 22px 28px; }
}

@media (max-width: 600px) {
  .sol-tabs { display: flex; width: 100%; }
  .sol-tab { flex: 1; justify-content: center; padding: 14px 8px; font-size: 14px; }
  .sol-tab small { display: none; }
  .acc-item.is-active { height: 540px; }
  .filters { gap: 12px; }
  .filter-group { width: 100%; }
  .filter-count { margin-left: 0; }
  .cat-info { padding: 22px 20px 24px; }
  .stage-actions .wg-btn, .acc-actions .wg-btn, .m-actions .wg-btn { flex: 1 1 auto; justify-content: center; }
  .about-links .btn-dark, .about-links .wg-btn { flex: 1 1 100%; justify-content: center; }
}

/* ============================================================
   REDUCED MOTION — content appears instantly, loops stop
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .wg-split .wi, .fx, .reveal { transform: none !important; opacity: 1 !important; }
  .mask-reveal { clip-path: none; }
  .mask-reveal img, .acc-media > * { transform: none !important; }
  .wg-flow, .wg-bubble, .wg-drip, .wg-ray { animation: none !important; }
  .banner { background-attachment: scroll; }
}
