/* StoreUp: one stylesheet for every page.
   Sections: tokens · base · type · buttons · header · heroes · shared blocks · page blocks · footer · motion */

@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --cream: #f5f1e8;
  --cream-2: #ede6d7;
  --paper: #fbf9f4;
  --line: #e2dbcb;
  --line-strong: #cfc6b2;
  --ink: #0d1f15;
  --ink-2: #26372d;
  --muted: #59645b;
  --forest: #0b2b1b;
  --forest-2: #164a2e;
  --forest-deep: #022116;
  --lime: #a4cc4c;
  --lime-2: #cfe78e;
  --lime-soft: #e4efc6;
  --lime-pale: #eff5de;
  --leaf: #5f9a2a;
  --gold: #c9a869;
  --on-dark: #f3f0e6;
  --on-dark-muted: #b9c4b5;

  --radius-s: 14px;
  --radius: 22px;
  --radius-l: 32px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 84px;
  --section: clamp(80px, 10vw, 140px);
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --shadow: 0 30px 60px -40px rgba(13, 31, 21, .45);
  --shadow-soft: 0 18px 40px -28px rgba(13, 31, 21, .35);
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15C46 7 118 5 196 10' stroke='%23a4cc4c' stroke-width='9' stroke-linecap='round' fill='none'/%3E%3Cpath d='M18 19C70 14 130 13 180 15' stroke='%23cfe78e' stroke-width='4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

@view-transition { navigation: auto; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime-2); color: var(--ink); }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200; padding: 10px 18px; background: var(--forest); color: var(--on-dark); border-radius: 999px; transition: top .3s var(--ease); }
.skip-link:focus { top: 14px; }
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .6); }
main { display: block; }

/* ---------- type ---------- */
.h1, h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); line-height: 1; font-weight: 850; letter-spacing: -.025em; }
.h2, h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 750; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--muted); }
.latin { font-feature-settings: "kern"; letter-spacing: .02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--leaf);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow-latin { letter-spacing: .28em; font-size: .75rem; }

/* lime brush stroke under a word */
.mark { position: relative; display: inline-block; isolation: isolate; white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; z-index: -1; inset-inline: -.08em; bottom: -.02em; height: .38em;
  background: var(--brush) center / 100% 100% no-repeat;
  transform-origin: right; transform: scaleX(var(--mark, 1));
  transition: transform 1.2s var(--ease) .5s;
}
.dot { color: var(--lime); }

.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head-row .section-head { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--forest); --btn-fg: var(--on-dark); --btn-fill: var(--forest-2);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1.0625rem; line-height: 1; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--btn-fill); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .5s var(--ease); }
.btn:hover .icon { transform: translate(-3px, -3px); }
.btn:hover .icon-arrow, .text-link:hover .icon-arrow { transform: translateX(-5px); }
.btn-dark { box-shadow: 0 14px 30px -18px rgba(11, 43, 27, .9); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-fill: var(--ink); border-color: var(--ink); }
.btn-outline:hover, .btn-outline:focus-visible { --btn-fg: var(--on-dark); }
.btn-lime { --btn-bg: var(--lime-2); --btn-fg: var(--forest); --btn-fill: #ddef9f; box-shadow: 0 16px 34px -20px rgba(164, 204, 76, .9); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-fill: rgba(243, 240, 230, .12); border-color: rgba(243, 240, 230, .4); }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1.5px no-repeat; padding-bottom: 4px; transition: background-size .5s var(--ease); }
.text-link:hover, .text-link:focus-visible { background-size: 100% 1.5px; }
.text-link .icon { transition: transform .5s var(--ease); }
.text-link:hover .icon { transform: translateX(-5px); }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--lime-pale); border: 1px solid var(--lime-soft); font-size: .875rem; font-weight: 600; color: var(--forest); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-tile { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--lime-soft); color: var(--forest); flex: none; }
.icon-tile .icon { width: 26px; height: 26px; stroke-width: 1.5; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: transform .6s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease), height .5s var(--ease);
}
.site-header.is-scrolled { --header-h: 72px; background: color-mix(in srgb, var(--cream) 82%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 rgba(13, 31, 21, .07); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-bar { height: 100%; display: flex; align-items: center; gap: 28px; }
/* The mark sits to the left of the wordmark in every direction, so the lockup is laid out LTR. */
.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; direction: ltr; }
/* The mark spans the wordmark and tagline together; the tagline is set to about 90% of the wordmark's width. */
.logo-mark { width: auto; height: 46px; }
.logo-type { display: grid; justify-items: start; line-height: 1; }
.logo-name { font-size: 2.4rem; font-weight: 850; letter-spacing: .045em; color: var(--ink); }
.logo-up { color: var(--leaf); }
.logo-tag { margin-top: 4px; padding-inline-start: .1em; font-size: .54rem; font-weight: 600; letter-spacing: .23em; color: var(--ink); }
.main-nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(18px, 3vw, 46px); }
.nav-list > li { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-link { position: relative; padding: 10px 2px; font-size: 1.0625rem; font-weight: 500; color: var(--ink-2); transition: color .3s; }
.nav-link::after {
  content: ""; position: absolute; inset-inline: -6px; bottom: 0; height: 9px;
  background: var(--brush) center / 100% 100% no-repeat; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.nav-link:hover, .nav-link[aria-current] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.nav-link[aria-current] { font-weight: 750; }
.menu-caret { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); }
.menu-caret .icon { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.has-menu.is-open .menu-caret .icon { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 18px); inset-inline-start: 50%; translate: 50% 0; width: min(720px, 90vw);
  padding: 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(13, 31, 21, .45);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top center;
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s;
}
.mega::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; }
.has-menu.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-grid a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; transition: background-color .3s; }
.mega-grid a:hover, .mega-grid a:focus-visible { background: var(--lime-pale); }
.mega-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lime-soft); color: var(--forest); flex: none; }
.mega-grid strong { display: block; font-size: 1rem; line-height: 1.3; }
.mega-grid small { display: block; font-size: .875rem; color: var(--muted); line-height: 1.4; }
.mega-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: .9375rem; }
.header-cta { flex: none; }
.header-cta[aria-current="page"] { --btn-bg: var(--forest-2); }
.menu-button { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); padding: 0; }
.menu-button span { position: absolute; inset-inline: 14px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-button span:first-child { top: 19px; }
.menu-button span:last-child { top: 27px; }
.menu-button[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; background: var(--cream); overflow-y: auto;
  clip-path: circle(0 at calc(100% - 0px) 0); transition: clip-path .8s var(--ease-io);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 0px) 0); }
[dir="rtl"] .mobile-menu { clip-path: circle(0 at 40px 40px); }
[dir="rtl"] .mobile-menu.is-open { clip-path: circle(150% at 40px 40px); }
.mobile-nav { display: grid; }
.mobile-nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 800; line-height: 1.15; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.mobile-nav a span { font-size: .8rem; font-weight: 600; color: var(--leaf); letter-spacing: .1em; }
.mobile-nav a[aria-current] { color: var(--leaf); }
.mobile-menu.is-open .mobile-nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-nav a:nth-child(5) { transition-delay: .2s; }
.mobile-menu.is-open .mobile-nav a:nth-child(6) { transition-delay: .25s; }
.mobile-menu-foot { display: grid; gap: 14px; margin-top: 32px; }
.mobile-contact { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-2); }
.mobile-contact .icon { color: var(--leaf); }
body.menu-open { overflow: hidden; }

/* ---------- home hero ---------- */
/* The hero art runs full width behind the text and fades to #faf7f0 on its right edge, the same colour as the section. */
.hero-home {
  --hero-bg: #faf7f0;
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: min(100svh, 920px); padding-top: var(--header-h);
  background: var(--hero-bg);
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding-block: clamp(40px, 6vw, 80px); padding-inline: var(--edge) clamp(16px, 2vw, 32px); }
.hero-copy h1 { margin: 0 0 26px; }
.hero-copy .lead { max-width: 33ch; margin-bottom: 38px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: .9375rem; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note .icon { color: var(--leaf); }
/* The art fills the left side only and fades out before the text column, so the headline always sits on clean cream. */
.hero-visual {
  position: absolute; inset: var(--header-h) auto 0 0; width: 62%; z-index: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 24%); mask-image: linear-gradient(to left, transparent 0, #000 24%);
}
.hero-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, var(--hero-bg) 0, transparent 14%); }
.hero-frame { position: absolute; inset: 0; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; transform: scale(var(--hero-scale, 1.06)) translate3d(var(--px, 0), var(--py, 0), 0); transform-origin: 30% 60%; transition: transform 1.8s var(--ease); }
@media (min-width: 961px) and (max-width: 1279px) { .hero-frame img { object-position: 24% 50%; } }
.float-tile {
  position: absolute; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 20px;
  color: var(--forest); background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(239, 245, 222, .55));
  border: 1px solid rgba(255, 255, 255, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 50px -28px rgba(13, 31, 21, .55), inset 0 1px 0 #fff;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--r, 0deg));
  transition: transform 1.2s var(--ease);
  animation: bob 7s ease-in-out infinite;
}
.float-tile .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.float-tile.t1 { top: 22%; inset-inline-end: 12%; --r: -8deg; }
.float-tile.t2 { top: 47%; inset-inline-end: 4%; --r: 6deg; animation-delay: -2.4s; width: 62px; height: 62px; }
.float-tile.t3 { bottom: 16%; inset-inline-end: 16%; --r: -4deg; animation-delay: -4.6s; }
@keyframes bob { 50% { translate: 0 -12px; } }
.hero-scroll { position: absolute; inset-inline-start: var(--edge); bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 12px; font-size: .8125rem; color: var(--muted); letter-spacing: .06em; }
.hero-scroll i { position: relative; width: 1.5px; height: 42px; background: var(--line-strong); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--forest); animation: scrollcue 2.2s var(--ease-io) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- page hero (split, framed image) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(24px, 4vw, 56px)) 0 clamp(36px, 5vw, 64px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero h1 { margin: 0 0 22px; }
.page-hero .lead { max-width: 36ch; margin-bottom: 34px; }
.page-hero-media { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); background: var(--cream-2); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--hero-scale, 1.04)); transition: transform 1.8s var(--ease); }
.page-hero-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); pointer-events: none; }
.page-hero-media .float-tile { --r: -6deg; }

/* ---------- banner hero (artwork with empty space for text) ---------- */
.banner-hero { position: relative; padding-top: calc(var(--header-h) + 12px); }
.banner-frame { position: relative; overflow: hidden; border-radius: var(--radius-l); min-height: clamp(380px, 46vw, 560px); display: grid; align-items: center; background: var(--cream-2); }
.banner-frame > picture, .banner-frame > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner-frame > picture img { object-fit: cover; object-position: left center; }
.banner-copy { position: relative; z-index: 1; width: min(560px, 52%); margin-inline-start: clamp(28px, 6vw, 88px); padding-block: 48px; }
.banner-copy h1 { margin: 16px 0 18px; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); }
.banner-copy .lead { margin-bottom: 26px; }
.crumbs { display: flex; gap: 8px; font-size: .875rem; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- marquee ---------- */
/* direction: ltr pins the track to the left edge. In the RTL page it hung off the right edge, so moving it left opened an empty gap on the right. */
.marquee { direction: ltr; border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 48px; padding-inline-end: 48px; font-size: .875rem; font-weight: 600; letter-spacing: .32em; color: var(--ink-2); white-space: nowrap; }
.marquee-group i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
/* Four identical groups move by one group (a quarter of the track) per loop, so the row is always full, even on very wide screens. */
@keyframes marquee { to { transform: translateX(-25%); } }

/* ---------- horizontal scroll (services on home) ---------- */
.hscroll { position: relative; }
.hscroll-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--header-h); }
.hscroll-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3.5vh, 44px); }
.hscroll-head .section-head { margin: 0; }
.hscroll-aside { display: flex; align-items: center; gap: 28px; flex: none; }
.hscroll-progress { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; flex: none; }
.hscroll-progress span { display: block; height: 100%; background: var(--forest); transform-origin: right; transform: scaleX(var(--progress, 0)); }
.hscroll-track { display: flex; gap: clamp(18px, 2vw, 28px); padding-inline: var(--edge); will-change: transform; }
.panel {
  position: relative; flex: none; width: clamp(300px, 46vw, 680px); height: min(58svh, 560px);
  display: grid; grid-template-rows: minmax(0, 1fr) auto; border-radius: var(--radius-l); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.panel-media { position: relative; overflow: hidden; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translateX(var(--shift, 0)); transition: transform 1.4s var(--ease); }
.panel:hover .panel-media img { transform: scale(1.12) translateX(var(--shift, 0)); }
.panel-num { position: absolute; top: 18px; inset-inline-start: 18px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: rgba(251, 249, 244, .85); backdrop-filter: blur(8px); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; }
.panel-body { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: end; padding: 22px 26px 24px; }
.panel-body h3 { font-size: 1.45rem; }
.panel-body p { grid-column: 1; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.panel-link { grid-row: 1 / span 2; grid-column: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .4s, color .4s, transform .5s var(--ease); }
.panel-link:hover, .panel-link:focus-visible { background: var(--forest); color: var(--on-dark); transform: rotate(-8deg); }
.panel-intro { flex: none; width: clamp(260px, 26vw, 360px); display: flex; flex-direction: column; justify-content: end; gap: 18px; padding-bottom: 8px; }
.panel-intro p { color: var(--muted); }

/* ---------- service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.card h3 { margin-top: 6px; }
.card .text-link { margin-top: auto; padding-top: 6px; font-size: .9375rem; }
.card-center { text-align: center; align-items: center; }

/* ---------- project cards (home + about + lets talk) ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.project-card { display: grid; gap: 20px; perspective: 1200px; }
.project-media {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-l); aspect-ratio: 8 / 5; background: var(--cream-2);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transform-style: preserve-3d; transition: transform .8s var(--ease), box-shadow .8s var(--ease);
  box-shadow: var(--shadow-soft);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project-card:hover .project-media { box-shadow: 0 50px 80px -50px rgba(13, 31, 21, .6); }
.project-card:hover .project-media img { transform: scale(1.04); }
.project-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 45%); opacity: var(--glare, 0); transition: opacity .6s; pointer-events: none; }
.project-badge { position: absolute; bottom: 18px; inset-inline-start: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--paper); font-weight: 700; font-size: .9375rem; box-shadow: var(--shadow-soft); transform: translateZ(40px); }
.project-info { display: grid; gap: 8px; }
.project-meta { font-size: .75rem; font-weight: 700; letter-spacing: .24em; color: var(--leaf); }
.project-info h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; }
.project-info p { color: var(--muted); }
.project-note { margin-top: 22px; font-size: .875rem; color: var(--muted); }

/* ---------- dark band with 3D stage ---------- */
.dark-band { position: relative; overflow: hidden; color: var(--on-dark); background: var(--forest-deep); isolation: isolate; }
.dark-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/bg-forest.webp") center / cover no-repeat; opacity: .55; }
.dark-band .eyebrow { color: var(--lime-2); }
.dark-band h2 { color: #fff; }
.dark-band h2 em { font-style: normal; color: var(--lime-2); }
.dark-band p { color: var(--on-dark-muted); }
.tech-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.tech-copy { display: grid; gap: 22px; }
.tick-list { display: grid; gap: 14px; margin-top: 6px; }
.tick-list li { display: flex; gap: 14px; align-items: flex-start; }
.tick-list .tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--forest); flex: none; margin-top: 2px; }
.tick-list .tick .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.dark-band .tick-list li { color: var(--on-dark); }
.stage { position: relative; perspective: 1400px; }
.stage-inner { position: relative; transform-style: preserve-3d; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform 1s var(--ease); }
.stage-img { border-radius: var(--radius-l); -webkit-mask-image: radial-gradient(120% 120% at 40% 50%, #000 55%, transparent 80%); mask-image: radial-gradient(120% 120% at 40% 50%, #000 55%, transparent 80%); }
.stage-glow { position: absolute; inset: 20% 10% 10% 20%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(164, 204, 76, .35), transparent); filter: blur(30px); transform: translateZ(-60px); }
.stage-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(243, 240, 230, .1); border: 1px solid rgba(207, 231, 142, .3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-size: .9375rem; font-weight: 600; transform: translateZ(80px); box-shadow: 0 30px 50px -30px #000; }
.stage-chip .icon { color: var(--lime-2); }
.stage-chip.c1 { top: 6%; inset-inline-start: 2%; }
.stage-chip.c2 { bottom: 10%; inset-inline-end: 4%; transform: translateZ(120px); }

/* ---------- process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
/* The line runs between the first and last circles (set by site.js). On wide screens the section pins to the
   screen and each stretch of scroll lights one more circle: a glowing head leads the fill and holds on the
   circle it reached until the next scroll. */
.steps-line { position: absolute; top: 32px; inset-inline: var(--line-start, 6%) var(--line-end, 6%); height: 4px; border-radius: 4px; background: var(--line); }
.steps-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(to left, var(--leaf), var(--lime) 60%, var(--lime-2)); box-shadow: 0 0 16px rgba(164, 204, 76, .6); transform-origin: right; transform: scaleX(var(--draw, 0)); }
.steps-line::after {
  content: ""; position: absolute; top: 50%; inset-inline-start: calc(var(--draw, 0) * 100%); width: 16px; height: 16px; margin-inline-start: -8px; translate: 0 -50%;
  border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(164, 204, 76, .25), 0 0 24px 6px rgba(164, 204, 76, .65);
  animation: steps-head 1.8s var(--ease-io) infinite;
}
@keyframes steps-head { 50% { box-shadow: 0 0 0 11px rgba(164, 204, 76, .12), 0 0 30px 10px rgba(164, 204, 76, .45); } }
@media (min-width: 961px) and (min-height: 621px) and (prefers-reduced-motion: no-preference) {
  /* One screen of pinned view plus a little over half a screen of scroll per step. */
  .js .steps-section { height: calc(100svh + var(--steps-count, 4) * 55svh); padding-block: 0; }
  .js .steps-pin { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; }
  .js .steps-section .section-head { margin-bottom: clamp(36px, 5vh, 64px); }
}
.step { position: relative; display: grid; gap: 12px; padding: 0 6px; }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-strong); color: var(--forest); transition: background-color .6s var(--ease), border-color .6s, color .6s, transform .7s var(--ease), box-shadow .7s var(--ease); }
.step-dot .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.step-num { justify-self: start; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; color: var(--leaf); }
.step p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
/* On wide screens the steps the line has not reached yet stay quiet. */
@media (min-width: 961px) {
  .step.is-reached .step-dot { background: var(--forest); border-color: var(--lime); color: var(--lime-2); transform: scale(1.1); box-shadow: 0 0 0 7px rgba(164, 204, 76, .22), 0 18px 30px -14px rgba(11, 43, 27, .7); }
  .js .steps-wrap .step > :not(.step-dot) { opacity: .4; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .steps-wrap .step.is-reached > * { opacity: 1; transform: none; }
  .step.is-current .step-dot { box-shadow: 0 0 0 10px rgba(164, 204, 76, .28), 0 0 34px 6px rgba(164, 204, 76, .45), 0 18px 30px -14px rgba(11, 43, 27, .7); }
}
@media (max-width: 960px) {
  .step.is-in .step-dot { background: var(--lime-soft); border-color: var(--lime); }
}

/* ---------- testimonial ---------- */
.quote-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; overflow: hidden; border-radius: var(--radius-l); background: linear-gradient(100deg, #fbf8f1 0, #f6efe3 100%); border: 1px solid var(--line); }
.quote-body { position: relative; padding: clamp(32px, 5vw, 64px); display: grid; gap: 24px; }
.quote-mark { width: 54px; height: 54px; color: var(--lime); }
.quote-body blockquote p { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.5; font-weight: 600; color: var(--ink); }
.quote-body figcaption { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9375rem; }
.quote-body figcaption::before { content: ""; width: 40px; height: 2px; background: var(--lime); }
.quote-media { align-self: stretch; }
.quote-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.quote-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: border-color .4s, box-shadow .4s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime-pale); color: var(--forest); flex: none; transition: transform .5s var(--ease), background-color .4s; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--lime-soft); }
.faq-answer { padding: 0 26px 24px; color: var(--ink-2); }
.faq-answer p + p, .faq-answer p + ul, .faq-answer ul + p { margin-top: 12px; }
.faq-answer ul { display: grid; gap: 6px; }
.faq-answer li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 12px; background: var(--cream); font-size: .9375rem; }
.faq-answer li b { font-weight: 700; color: var(--forest); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.faq-cats { display: grid; gap: 6px; }
.faq-cats a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; font-weight: 600; color: var(--ink-2); transition: background-color .3s; }
.faq-cats a:hover, .faq-cats a.is-active { background: var(--paper); color: var(--ink); }

/* ---------- CTA bands ---------- */
.cta-dark { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 48px; padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 72px); border-radius: var(--radius-l); color: var(--on-dark); background: var(--forest-deep) url("../img/bg-arch.webp") center / cover no-repeat; isolation: isolate; }
.cta-dark h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.cta-dark p { color: var(--on-dark-muted); margin-top: 10px; font-size: 1.0625rem; }
.cta-light { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 48px; padding: clamp(32px, 4vw, 52px) clamp(28px, 5vw, 64px); border-radius: var(--radius-l); background: linear-gradient(100deg, var(--lime-pale), #f8f6ee 70%); border: 1px solid var(--lime-soft); }
.cta-light h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); }
.cta-light p { color: var(--muted); margin-top: 8px; }
.cta-light .divider { display: none; }

/* ---------- services page: sticky chapters ---------- */
.chapters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.chapters-media { position: sticky; top: calc(var(--header-h) + 28px); height: calc(100svh - var(--header-h) - 56px); max-height: 720px; border-radius: var(--radius-l); overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow); }
.chapters-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.chapters-media img.is-active { opacity: 1; transform: scale(1); }
.chapters-count { position: absolute; bottom: 20px; inset-inline-start: 20px; z-index: 1; padding: 8px 14px; border-radius: 999px; background: rgba(251, 249, 244, .9); backdrop-filter: blur(8px); font-weight: 700; font-size: .875rem; letter-spacing: .12em; }
.chapter { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-block: 48px; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter-inline { display: none; }
.chapter h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.chapter > p { color: var(--ink-2); font-size: 1.125rem; }
.chapter-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 6px; }
.chapter-detail h3 { font-size: 1rem; margin-bottom: 8px; color: var(--forest); }
.chapter-detail p { font-size: .975rem; color: var(--muted); line-height: 1.6; }
.chapter .tick-list { grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: .975rem; }
.service-index { display: flex; flex-wrap: wrap; gap: 10px; }
.service-index a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: .9375rem; transition: background-color .3s, border-color .3s; }
.service-index a:hover { background: var(--lime-pale); border-color: var(--lime-soft); }
.service-index .icon { color: var(--leaf); }

/* ---------- projects page: case studies ---------- */
.case { position: sticky; top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transform-origin: center top; }
.case + .case { margin-top: 10vh; }
.case-stack { padding-bottom: 6vh; }
.case .project-media { aspect-ratio: 16 / 10; }
.case-copy { display: grid; gap: 18px; }
.case-copy h2 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem); letter-spacing: -.01em; }
.case-copy > p { color: var(--ink-2); }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-fact { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.case-fact .icon-tile { width: 40px; height: 40px; border-radius: 12px; }
.case-fact .icon-tile .icon { width: 20px; height: 20px; }
.case-fact strong { display: block; font-size: .9375rem; line-height: 1.3; }
.case-fact span { display: block; font-size: .875rem; color: var(--muted); line-height: 1.45; }
.case-note { font-size: .8125rem; color: var(--muted); }

/* ---------- about ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.story-text { display: grid; gap: 20px; }
.story-text p { color: var(--ink-2); font-size: 1.125rem; }
.story-media { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-soft); }
.story-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.duo-card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); }
.duo-card .duo-text { display: grid; gap: 14px; padding: clamp(26px, 3vw, 40px); }
.duo-card .duo-text p { color: var(--muted); }
.duo-media { position: relative; overflow: hidden; min-height: 300px; }
.duo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.values-band { border-radius: var(--radius-l); overflow: hidden; color: var(--on-dark); background: var(--forest-deep) url("../img/bg-forest.webp") center / cover; padding: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: 32px 56px; align-items: center; }
.values-band h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.values-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.values-list li { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 6px 18px; }
.values-list li + li { border-inline-start: 1px solid rgba(201, 168, 105, .35); }
.values-list .icon { width: 36px; height: 36px; color: var(--gold); stroke-width: 1.3; }
.values-list strong { color: #fff; font-size: 1.125rem; }
.values-list span { color: var(--on-dark-muted); font-size: .9375rem; line-height: 1.5; }

/* ---------- contact + forms ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.form-card { padding: clamp(26px, 4vw, 48px); border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.form-card > h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.form-card > p { color: var(--muted); margin: 8px 0 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .9375rem; }
.field label .req, .field legend .req { color: var(--leaf); }
.field .optional { font-weight: 400; color: var(--muted); font-size: .8125rem; margin-inline-start: 6px; }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; top: 50%; inset-inline-start: 16px; translate: 0 -50%; color: var(--muted); pointer-events: none; width: 20px; height: 20px; }
.input-wrap textarea ~ .icon { top: 26px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 54px; padding: 14px 18px; padding-inline-start: 48px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: #fff; font-size: 1rem; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(164, 204, 76, .25); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .875rem; font-weight: 600; }
.field input::placeholder, .field textarea::placeholder { color: #8a918a; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; padding: 0; }
.choice span { display: grid; justify-items: center; gap: 8px; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--line-strong); background: #fff; text-align: center; font-size: .875rem; font-weight: 600; line-height: 1.35; transition: background-color .3s, border-color .3s, color .3s; }
.choice span .icon { width: 22px; height: 22px; color: var(--leaf); }
.choice input:checked + span { background: var(--lime-pale); border-color: var(--lime); color: var(--forest); }
.choice input:focus-visible + span { outline: 2.5px solid var(--leaf); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-legal { font-size: .8125rem; color: var(--muted); max-width: 42ch; }
.form-legal a { text-decoration: underline; }
.form-status { margin-top: 14px; color: #b3261e; font-weight: 600; }
.form-status:empty { display: none; }
.form-success { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 10px; }
.form-success .icon-tile { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); }
.form-success p { color: var(--muted); }
.contact-aside { display: grid; gap: 18px; }
.info-card { padding: 28px; border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); }
.info-card h2 { font-size: 1.5rem; margin-bottom: 16px; }
.contact-lines { display: grid; }
.contact-lines a { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: color .3s; }
.contact-lines a:last-child { border-bottom: 0; }
.contact-lines a:hover strong { color: var(--leaf); }
.contact-lines .icon-tile { width: 50px; height: 50px; border-radius: 14px; }
.contact-lines small { display: block; color: var(--muted); font-size: .875rem; }
.contact-lines strong { display: block; font-size: 1.0625rem; transition: color .3s; }
.note-card { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--lime-pale); border: 1px solid var(--lime-soft); }
.note-card .icon { width: 28px; height: 28px; color: var(--forest); flex: none; }
.note-card strong { display: block; font-size: 1.0625rem; }
.note-card p { font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }

/* dark form (lets talk) */
.form-dark { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-l); color: var(--on-dark); background: var(--forest-deep) url("../img/bg-forest.webp") center / cover; box-shadow: 0 50px 90px -50px rgba(2, 33, 22, .9); }
.form-dark h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem); }
.form-dark > p { color: var(--on-dark-muted); margin: 10px 0 26px; }
.form-dark .field label { color: var(--on-dark); }
.form-dark .field input, .form-dark .field textarea { background: rgba(255, 255, 255, .96); }
.form-dark .field .optional, .form-dark .form-legal { color: var(--on-dark-muted); }
.form-dark .field-error, .form-dark .form-status { color: #ffb4a9; }
.form-dark .form-success p { color: var(--on-dark-muted); }
.form-dark .form-success h3 { color: #fff; }
.talk-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.gain-list { display: grid; gap: 12px; margin-top: 28px; }
.gain-list li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; }
.gain-list .icon-tile { width: 46px; height: 46px; border-radius: 14px; }
.gain-list .icon-tile .icon { width: 22px; height: 22px; }

/* ---------- legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.legal-toc p { font-weight: 800; margin-bottom: 8px; }
.legal-toc a { padding: 8px 12px; border-radius: 10px; font-size: .9375rem; color: var(--ink-2); transition: background-color .3s; }
.legal-toc a:hover, .legal-toc a.is-active { background: var(--lime-pale); color: var(--ink); }
.legal { max-width: 760px; }
.legal .updated { color: var(--muted); font-size: .9375rem; margin-bottom: 32px; }
.legal section + section { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.legal h2 { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.85rem); margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.legal h2 span { font-size: .875rem; color: var(--leaf); font-weight: 700; letter-spacing: .1em; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; }
.legal ul li { position: relative; padding-inline-start: 22px; }
.legal ul li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.legal a { color: var(--forest-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- simple pages (404, thank you) ---------- */
.simple-hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; background: url("../img/bg-cream-leaves.webp") center / cover no-repeat; }
.simple-hero .inner { display: grid; justify-items: center; gap: 20px; max-width: 620px; }
.simple-hero .big { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 900; line-height: .9; letter-spacing: -.04em; color: var(--forest); }

/* ---------- footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 28px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.25fr 1.15fr; gap: 32px; }
.footer-grid > * + * { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(20px, 3vw, 44px); }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand p { color: var(--ink-2); max-width: 34ch; font-size: 1rem; }
.footer-title { font-size: 1.125rem; font-weight: 800; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 1rem; transition: color .3s; }
.footer-col a:hover { color: var(--ink); }
.footer-col a[aria-current="page"]::after, .footer-col a:hover::after { transform: scaleX(1); }
.footer-col a::after { content: ""; position: absolute; inset-inline: -4px; bottom: -6px; height: 8px; background: var(--brush) center / 100% 100% no-repeat; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.footer-contact a::after { display: none; }
.footer-contact .icon { color: var(--leaf); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.footer-partner { display: flex; align-items: center; gap: 16px; }
.footer-partner-tag { font-size: .6875rem; font-weight: 600; letter-spacing: .3em; color: var(--muted); padding-inline-start: 16px; border-inline-start: 1px solid var(--line-strong); }

/* ---------- Shopify Partner (monochrome co-branded lockup, per Shopify's partner brand guidelines) ---------- */
.lockup { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); color: #000; direction: ltr; }
.lockup img { width: clamp(112px, 11vw, 160px); height: auto; flex: none; }
.lockup-x { font-size: clamp(1.3rem, 1rem + .8vw, 1.8rem); font-weight: 300; line-height: 1; }
.lockup-name { display: inline-flex; align-items: center; gap: .32em; font-size: clamp(1.25rem, .95rem + 1vw, 1.8rem); font-weight: 850; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.lockup-name svg { width: 1.15em; height: auto; fill: currentColor; }
.lockup-sm { gap: 10px; }
.lockup-sm img { width: 96px; }
.lockup-sm .lockup-x { font-size: 1.1rem; }
.lockup-sm .lockup-name { font-size: 1.05rem; }
.partner-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(14px, 1.6vw, 20px); border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
/* The banner's glass card sits at the centre of the image (x 50%, y 48.5%); a 6:5 box always shows the whole card. */
.partner-brand { position: relative; isolation: isolate; container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.6cqi; align-self: center; aspect-ratio: 6 / 5; padding-bottom: 3cqi; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream-2); }
.partner-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48.5%; transition: transform 1.6s var(--ease); }
.partner-card:hover .partner-bg { transform: scale(1.03); }
.partner-brand .lockup { gap: 3cqi; }
.partner-brand .lockup img { width: max(80px, 25cqi); }
.partner-brand .lockup-x { font-size: 3.6cqi; }
.partner-brand .lockup-name { font-size: 5cqi; }
.partner-tag { display: flex; align-items: center; gap: 2.4cqi; font-size: max(.6875rem, 2.1cqi); font-weight: 600; letter-spacing: .34em; color: var(--leaf); }
.partner-tag::before, .partner-tag::after { content: ""; width: 6cqi; height: 1px; background: currentColor; opacity: .6; }
.partner-copy { display: grid; gap: 14px; padding: clamp(8px, 2vw, 28px) clamp(8px, 2vw, 28px) clamp(8px, 2vw, 28px) 0; }
.partner-copy h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); }
.partner-copy > p:not(.eyebrow) { color: var(--ink-2); }
.partner-points { display: grid; gap: 14px; margin-top: 8px; }
.partner-points li { display: flex; gap: 14px; align-items: flex-start; }
.partner-points .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
.partner-points .icon-tile .icon { width: 21px; height: 21px; }
.partner-points strong { display: block; font-size: 1.0625rem; }
.partner-points span:not(.icon-tile) { display: block; color: var(--muted); font-size: .975rem; line-height: 1.55; }
@media (max-width: 960px) {
  .partner-card { grid-template-columns: 1fr; }
  .partner-copy { padding: 4px 10px 14px; }
}
@media (max-width: 640px) {
  .footer-partner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-partner-tag { padding: 0; border: 0; }
}

/* ---------- motion ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="clip"] { opacity: 1; filter: none; transform: none; }
.js [data-reveal="clip"] > * { clip-path: inset(0 0 0 100%); transition: clip-path 1.6s var(--ease) .15s; }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }
.hero-frame > picture, .page-hero-media > picture { display: block; height: 100%; }
.js .mark { --mark: 0; }
.js .is-in .mark, .js .mark.is-in { --mark: 1; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--w, 0) * 70ms + 100ms); }
.is-in .split-word > span, .split-word.is-in > span { transform: none; }
.js .hero-loaded { --hero-scale: 1; }
[data-parallax] { will-change: transform; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :nth-child(2), .footer-grid > :nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .main-nav, .header-cta { display: none; }
  .menu-button { display: block; margin-inline-start: auto; }
  .logo-name { font-size: 1.95rem; }
  .logo-tag { font-size: .44rem; }
  .logo-mark { height: 38px; }
  .hero-home { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 36px var(--gutter) 28px; }
  .hero-visual { position: relative; inset: auto; width: auto; height: min(94vw, 600px); margin-inline: var(--gutter); border-radius: var(--radius-l); -webkit-mask-image: none; mask-image: none; }
  .hero-visual::after { display: none; }
  .hero-frame img { object-position: 50% 50%; transform: scale(var(--hero-scale, 1.04)); }
  .hero-scroll { display: none; }
  .page-hero-grid, .tech-grid, .faq-layout, .story, .talk-layout, .contact-layout, .legal-layout, .case { grid-template-columns: 1fr; }
  .page-hero-media { aspect-ratio: 1 / 1; order: -1; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 18px; }
  .steps-line { display: none; }
  .quote-card { grid-template-columns: 1fr; }
  .quote-media { order: -1; max-height: 220px; }
  .faq-aside, .legal-toc { position: static; }
  .legal-toc { display: none; }
  .chapters { grid-template-columns: 1fr; }
  .chapters-media { display: none; }
  .chapter { min-height: 0; padding-block: 40px; }
  .chapter-inline { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
  .chapter-inline img { width: 100%; height: 100%; object-fit: cover; }
  .case { position: relative; top: auto; }
  .case + .case { margin-top: 24px; }
  .banner-frame { display: flex; flex-direction: column; min-height: 0; background: linear-gradient(#f8f2e8, #f4ecdf); }
  .banner-copy { order: -1; width: auto; margin: 0; padding: 30px 22px 6px; }
  .banner-frame > picture { position: relative; inset: auto; height: auto; aspect-ratio: 1 / 1; }
  .banner-frame > picture img { object-position: var(--banner-pos-m, 50% 88%); }
  .cta-dark, .cta-light { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .values-list li:nth-child(3) { border-inline-start: 0; }
}
@media (max-width: 960px), (max-height: 620px), (prefers-reduced-motion: reduce) {
  .hscroll { height: auto !important; }
  .hscroll-sticky { position: relative; height: auto; padding-block: var(--section); overflow: visible; }
  .hscroll-track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; scroll-padding-inline: var(--edge); }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .panel { scroll-snap-align: start; width: min(84vw, 520px); height: auto; grid-template-rows: auto auto; }
  .panel-media { aspect-ratio: 16 / 11; }
  .panel-intro { display: none; }
  .hscroll-progress { display: none; }
  .hscroll-head { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .card-grid, .card-grid.two, .project-grid, .duo, .fields, .case-facts, .chapter-detail, .chapter .tick-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > * + * { border-inline-start: 0; padding-inline-start: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .btn-row .btn { flex: 1 1 100%; }
  .section-head-row { align-items: start; }
  .mega { display: none; }
  .float-tile { width: 56px; height: 56px; border-radius: 16px; }
  .float-tile .icon { width: 24px; height: 24px; }
  .float-tile.t2 { display: none; }
  .stage-chip { font-size: .8125rem; padding: 9px 12px; }
  .faq-item summary { padding: 18px 20px; }
  .faq-answer { padding: 0 20px 20px; }
  .values-list { grid-template-columns: 1fr; }
  .values-list li + li { border-inline-start: 0; border-top: 1px solid rgba(201, 168, 105, .3); padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal] > *, .split-word > span { opacity: 1; transform: none; filter: none; clip-path: none; }
  .js .mark { --mark: 1; }
  .marquee-track { animation: none; }
}
@media (hover: none) {
  .project-media, .stage-inner { transform: none; }
}
.split-mark { overflow: visible; clip-path: inset(-.6em -.4em -.12em -.4em); }
.steps-wrap { position: relative; }
.panel-more { width: clamp(280px, 30vw, 420px); display: flex; align-items: flex-end; color: var(--on-dark); background: var(--forest-deep) url("../img/bg-forest-m.webp") center / cover; border-color: transparent; }
.panel-more-inner { display: grid; gap: 16px; justify-items: start; padding: clamp(26px, 3vw, 40px); }
.panel-more .eyebrow { color: var(--lime-2); }
.panel-more h3 { color: #fff; font-size: 1.6rem; }
.panel-more p { color: var(--on-dark-muted); }
@media (max-width: 960px), (max-height: 620px), (prefers-reduced-motion: reduce) { .panel-more { width: min(84vw, 520px); min-height: 360px; } }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pillars li { display: grid; gap: 12px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: rgba(243, 240, 230, .06); border: 1px solid rgba(207, 231, 142, .18); backdrop-filter: blur(6px); transition: transform .6s var(--ease), background-color .6s; }
.pillars li:hover { transform: translateY(-6px); background: rgba(243, 240, 230, .1); }
.pillars h3 { color: #fff; font-size: 1.35rem; }
.pillar-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(207, 231, 142, .14); color: var(--lime-2); }
.pillar-icon .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.dark-band .section-head p { color: var(--on-dark-muted); }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }

/* Full-width light heroes (services, projects, about): the artwork runs edge to edge under the header,
   the subject sits on the left (desktop) or at the bottom (mobile), and the copy uses the empty space. */
.hero-full {
  position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden;
  min-height: clamp(560px, 50vw, 800px); padding: calc(var(--header-h) + 24px) 0 clamp(96px, 11vw, 180px);
  background: #f9e6d8;
}
.hero-full-art, .hero-full-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-full-art { z-index: -1; }
.hero-full-art img { object-fit: cover; object-position: 0% 72%; transform: scale(var(--hero-scale, 1.05)) translate3d(var(--px, 0), var(--py, 0), 0); transform-origin: 20% 70%; transition: transform 1.8s var(--ease); }
.hero-full .container { width: min(100% - var(--gutter) * 2, var(--container)); }
.hero-full-copy { width: min(560px, 46%); }
.hero-full-copy h1 { margin: 0 0 22px; }
.hero-full-copy .lead { max-width: 34ch; margin-bottom: 32px; }
@media (min-width: 961px) and (max-width: 1279px) {
  .hero-full::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to left, rgba(249, 232, 220, .9) 0, rgba(249, 232, 220, .6) 38%, transparent 62%); }
  .hero-full-copy { width: min(480px, 46%); }
  .hero-full-copy h1 { font-size: clamp(2.4rem, 4.4vw, 3.4rem); }
  .hero-full-art img { left: -20%; width: 120%; }
}
/* Mobile: the portrait art keeps its full width at the bottom (objects below the copy, never under it)
   and fades at the top into the section colour, which matches the art's own background. */
@media (max-width: 960px) {
  .hero-full { display: block; min-height: 0; padding: calc(var(--header-h) + 28px) 0 calc(100vw * 1.777 * .56); }
  .hero-full-copy { width: auto; }
  .hero-full-art { inset: auto 0 0; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%); }
  .hero-full-art img { position: static; height: auto; transform: scale(var(--hero-scale, 1.03)); transform-origin: 50% 100%; }
}

/* ---------- blog: index ---------- */
/* Full-width hero: the desk scene sits on the left and the copy uses the empty cream on the right. */
.blog-hero {
  position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden;
  min-height: calc(var(--header-h) + clamp(380px, 31vw, 600px)); padding: calc(var(--header-h) + 24px) 0 clamp(48px, 5vw, 80px);
  background: #f7e9dc;
}
.blog-hero-art, .blog-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.blog-hero-art { z-index: -1; }
.blog-hero-art img { object-fit: cover; object-position: 0% 100%; transform: scale(var(--hero-scale, 1.04)); transform-origin: 20% 80%; transition: transform 1.8s var(--ease); }
.blog-hero-copy { width: min(540px, 44%); }
.blog-hero-copy h1 { margin: 16px 0 20px; font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.6rem); }
.blog-hero-copy .lead { max-width: 40ch; }
@media (min-width: 961px) and (max-width: 1279px) {
  .blog-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to left, rgba(247, 233, 220, .92) 0, rgba(247, 233, 220, .55) 42%, transparent 62%); }
}
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-filter { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); font-size: .9375rem; font-weight: 600; color: var(--ink-2); transition: background-color .3s, border-color .3s, color .3s; }
.blog-filter:hover { border-color: var(--forest); color: var(--ink); }
.blog-filter[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.blog-count { font-size: .9375rem; color: var(--muted); }
.post-chip { align-self: flex-start; display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--lime-soft); color: var(--forest); font-size: .8125rem; font-weight: 700; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .875rem; color: var(--muted); }
.post-meta span, .post-meta time { display: inline-flex; align-items: center; gap: 7px; }
.post-meta .icon { width: 17px; height: 17px; color: var(--leaf); }
/* The whole card is one link: the title's link stretches over it. */
.post-card, .post-featured { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s; }
.post-card:hover, .post-featured:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.post-card h2 a::after, .post-card h3 a::after, .post-featured h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card h2 a:focus-visible, .post-card h3 a:focus-visible, .post-featured h3 a:focus-visible { outline: none; }
.post-card:has(a:focus-visible), .post-featured:has(a:focus-visible) { outline: 2.5px solid var(--leaf); outline-offset: 3px; }
.post-media { position: relative; overflow: hidden; background: var(--cream-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.post-card:hover .post-media img, .post-featured:hover .post-media img { transform: scale(1.05); }
.post-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: clamp(18px, 2.4vw, 28px); border-radius: var(--radius-l); }
.post-featured .post-media { min-height: 360px; }
.post-featured .post-media img { position: absolute; inset: 0; }
.post-featured .post-body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 56px); }
.post-featured h3 { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem); line-height: 1.2; }
.post-featured p { color: var(--muted); font-size: 1.0625rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.post-card { display: grid; grid-template-rows: auto 1fr; }
.post-card .post-media { aspect-ratio: 3 / 2; }
.post-card .post-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; }
.post-card h2, .post-card h3 { font-size: 1.3rem; line-height: 1.35; font-weight: 750; letter-spacing: 0; }
.post-card p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.post-card .post-meta { margin-top: auto; padding-top: 6px; }
.post-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.post-more .icon { transition: transform .5s var(--ease); }
.post-card:hover .post-more .icon, .post-featured:hover .post-more .icon { transform: translateX(-5px); }

/* ---------- blog: article ---------- */
.post-head { padding: calc(var(--header-h) + clamp(28px, 4vw, 56px)) 0 clamp(28px, 4vw, 44px); }
.post-head .container { display: grid; gap: 18px; justify-items: start; max-width: 900px; }
.post-head h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.8rem); line-height: 1.12; }
.post-head .lead { max-width: 60ch; }
.post-cover { max-width: 1100px; margin-inline: auto; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 8; background: var(--cream-2); box-shadow: var(--shadow-soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 88px); align-items: start; padding-block: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 64px); }
.post-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.post-toc { display: grid; gap: 2px; padding: 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.post-toc p { font-weight: 800; margin-bottom: 8px; }
.post-toc a { padding: 8px 12px; border-radius: 10px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); transition: background-color .3s; }
.post-toc a:hover, .post-toc a.is-active { background: var(--lime-pale); color: var(--ink); }
.post-aside .note-card .btn { margin-top: 12px; }
/* Article text: a comfortable measure and a clear rhythm between headings, lists and boxes. */
.prose { max-width: 72ch; font-size: 1.125rem; line-height: 1.85; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.2; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin-top: 1.8em; font-size: 1.3rem; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a:not(.btn) { color: var(--forest-2); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .3s; }
.prose a:not(.btn):hover { text-decoration-color: var(--forest-2); }
.prose ul, .prose ol { display: grid; gap: .55em; }
.prose ul li { position: relative; padding-inline-start: 26px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.prose ol { counter-reset: item; }
.prose ol li { position: relative; padding-inline-start: 42px; counter-increment: item; }
.prose ol li::before { content: counter(item); position: absolute; inset-inline-start: 0; top: .2em; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime-soft); color: var(--forest); font-size: .875rem; font-weight: 800; line-height: 1; }
.prose ul.post-checklist li { padding-inline-start: 34px; }
.prose ul.post-checklist li::before { width: 20px; height: 20px; top: .38em; inset-inline-start: 0; border-radius: 6px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2b1b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.prose-lead { font-size: 1.25rem; line-height: 1.75; color: var(--ink); }
.post-callout { padding: 22px 26px; border-radius: var(--radius); background: var(--lime-pale); border: 1px solid var(--lime-soft); border-inline-start: 4px solid var(--lime); }
.post-callout > * + * { margin-top: .6em; }
.post-callout-title { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--forest); }
.post-callout-title .icon { color: var(--leaf); }
.post-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.post-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1rem; line-height: 1.55; }
.post-table th, .post-table td { padding: 14px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-table thead th { background: var(--cream-2); color: var(--ink); font-weight: 800; }
.post-table tbody tr:last-child > * { border-bottom: 0; }
.post-table tbody th { color: var(--ink); font-weight: 700; }
.post-cta { display: grid; gap: 14px; justify-items: start; margin-top: 2.4em; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-l); color: var(--on-dark); background: var(--forest-deep) url("../img/bg-forest-m.webp") center / cover; }
.prose .post-cta-title { margin: 0; color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; line-height: 1.25; }
.prose .post-cta p { margin: 0; color: var(--on-dark-muted); }
.post-faq .faq-list { margin-top: 18px; }
.post-faq .faq-item summary { font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }
.post-faq .faq-answer { font-size: 1.0625rem; line-height: 1.75; }
.post-author { display: flex; align-items: center; gap: 16px; margin-top: 2.4em; padding-top: 28px; border-top: 1px solid var(--line); }
.post-author .icon-tile { width: 52px; height: 52px; border-radius: 50%; }
.post-author strong { display: block; color: var(--ink); line-height: 1.4; }
.post-author span:not(.icon-tile) { display: block; font-size: .9375rem; color: var(--muted); line-height: 1.5; }
.post-related { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); background: var(--paper); }
.post-related .post-card { background: var(--cream); }
@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  /* Mobile: the portrait art sits under the copy and fades into the section colour at its top. */
  .blog-hero { display: block; min-height: 0; padding: calc(var(--header-h) + 28px) 0 calc(100vw * 1.074 * .96); background: #f2e2d3; }
  .blog-hero-copy { width: auto; }
  .blog-hero-art { inset: auto 0 0; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%); }
  .blog-hero-art img { position: static; height: auto; transform: scale(var(--hero-scale, 1.03)); transform-origin: 50% 100%; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-media { min-height: 0; aspect-ratio: 3 / 2; }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; order: -1; }
  .post-aside .note-card { display: none; }
  .post-cover { aspect-ratio: 3 / 2; border-radius: var(--radius); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .blog-filters::-webkit-scrollbar { display: none; }
  .blog-filter { flex: none; }
  .prose { font-size: 1.0625rem; }
  .post-callout { padding: 18px 20px; }
}
@media (hover: none) {
  .post-card:hover, .post-featured:hover { transform: none; }
}

/* ---------- contact popup ("בואו נדבר" in the header) ---------- */
html:has(.contact-modal[open]) { overflow: hidden; }
.contact-modal {
  width: min(980px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--radius-l); background: transparent; color: var(--ink); overflow: visible;
}
.contact-modal::backdrop { background: rgba(2, 33, 22, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact-modal[open] { animation: modal-in .6s var(--ease); }
.contact-modal[open]::backdrop { animation: modal-fade .4s ease; }
.contact-modal.is-closing { animation: modal-out .3s var(--ease-io) forwards; }
.contact-modal.is-closing::backdrop { animation: modal-fade .3s ease reverse forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes modal-fade { from { opacity: 0; } }
.contact-modal-card {
  position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  border-radius: inherit; background: var(--paper); box-shadow: 0 50px 100px -40px rgba(2, 33, 22, .8);
}
.contact-modal-close {
  position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); transition: background-color .3s, color .3s, transform .5s var(--ease);
}
.contact-modal-close .icon { width: 22px; height: 22px; transform: rotate(45deg); }
.contact-modal-close:hover, .contact-modal-close:focus-visible { background: var(--forest); color: var(--on-dark); transform: rotate(90deg); }
.contact-modal-info {
  display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 44px);
  color: var(--on-dark); background: linear-gradient(to top, rgba(2, 33, 22, .85), rgba(2, 33, 22, .2) 55%), var(--forest-deep) url("../img/bg-forest-m.webp") center / cover;
}
.contact-modal-info h2 { color: #fff; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); }
.contact-modal-info > p { color: var(--on-dark-muted); }
.contact-modal-list { display: grid; gap: 10px; margin-top: 6px; }
.contact-modal-list a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(243, 240, 230, .07); border: 1px solid rgba(207, 231, 142, .2); transition: background-color .3s, border-color .3s; }
.contact-modal-list a:hover, .contact-modal-list a:focus-visible { background: rgba(243, 240, 230, .13); border-color: rgba(207, 231, 142, .45); }
.contact-modal-list small { display: block; font-size: .8125rem; color: var(--on-dark-muted); line-height: 1.3; }
.contact-modal-list bdi { display: block; font-weight: 700; font-size: 1.0625rem; color: #fff; }
.contact-modal-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(207, 231, 142, .16); color: var(--lime-2); flex: none; }
.contact-modal-notes { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; font-size: .9375rem; color: var(--on-dark-muted); }
.contact-modal-notes li { display: flex; align-items: center; gap: 10px; }
.contact-modal-notes .icon { color: var(--lime); }
.contact-modal-form { padding: clamp(28px, 4vw, 44px); padding-top: clamp(64px, 6vw, 72px); }
.contact-modal-form .form-success { padding-block: 60px; }
.contact-modal .field textarea { min-height: 96px; }
@media (max-width: 760px) {
  .contact-modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .contact-modal-card { grid-template-columns: 1fr; max-height: calc(100dvh - 20px); }
  .contact-modal-info { gap: 14px; padding: 28px 22px 22px; }
  .contact-modal-info h2 { padding-inline-end: 52px; }
  .contact-modal-notes { display: none; }
  .contact-modal-form { padding: 22px; }
  .contact-modal-close { background: rgba(251, 249, 244, .92); }
}
