/* ==========================================================================
   Efficient Street V3 — components + homepage sections
   Requires es-tokens.css to be loaded first.
   ========================================================================== */

/* ==========================================================================
   Logo
   Variants are custom-property overrides, never duplicated geometry.
   The drop shadow is a CSS filter on the host <svg> rather than an SVG
   <filter> inside the symbol, so --mono can switch it off from outside the
   shadow tree.
   ========================================================================== */

.es-logo { display: block; }
.es-logo svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 5px rgba(16, 28, 22, 0.26));
}

.es-logo--mono {
  --sign-face: none;
  --sign-edge: none;
  --sign-frame: none;
  --sign-screw: none;
  --sign-sheen: none;
  --sign-vig: none;
  --sign-hi: none;
  --sign-ink: currentColor;
  --sign-tag: currentColor;
  --sign-outline-w: 2.6;
}
.es-logo--mono svg { filter: none; }

/* .es-logo--light removed 2026-08-09: the tagline moved onto its own cream
   plate, so recolouring it to mint made it unreadable. */

/* ==========================================================================
   Buttons
   ========================================================================== */

.es-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
              background-color 220ms var(--ease), color 220ms var(--ease),
              border-color 220ms var(--ease);
}
.es-btn:hover { transform: translateY(-2px); }
.es-btn:active { transform: translateY(0); }

.es-btn--primary {
  background: var(--leaf);
  color: var(--cream);
  box-shadow: var(--sh-glow);
}
.es-btn--primary:hover { background: var(--forest); box-shadow: 0 10px 28px rgba(30, 122, 82, 0.38); }

/* On cream, a translucent-cream border is invisible — this is the light-ground
   counterpart to V2's ghost-light button. */
.es-btn--ghost {
  background: transparent;
  border-color: var(--leaf);
  color: var(--forest);
}
.es-btn--ghost:hover { background: var(--leaf); color: var(--cream); }

.es-btn--onDark {
  background: var(--mint);
  color: var(--forest);
  box-shadow: 0 8px 26px rgba(71, 212, 149, 0.28);
}
.es-btn--onDark:hover { background: var(--cream); }

/* ==========================================================================
   Icon badge tiles
   The sprite glyphs are stroke-only + currentColor, so the badge sets `color`
   and the glyph follows — no per-color icon exports.
   ========================================================================== */

.es-badge {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--forest);
  color: var(--cream);
  box-shadow: var(--sh-2), var(--sh-inset-line);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.es-badge svg { width: 32px; height: 32px; }
.es-badge--leaf  { background: var(--leaf); }
.es-badge--brick { background: var(--illus-brick); }
.es-badge--sm { width: 52px; height: 52px; border-radius: 16px; }
.es-badge--sm svg { width: 24px; height: 24px; }

/* ==========================================================================
   Enamel plaque — the stat-bar chip. CSS, not SVG: it is a bevel and two
   screws, which stretch fine and cost nothing.
   ========================================================================== */

.es-plaque {
  position: relative;
  padding: 22px 30px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--card), var(--cream-2));
  box-shadow: inset 0 0 0 1.5px var(--forest), var(--sh-2);
  text-align: center;
}
.es-plaque::before,
.es-plaque::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--card), var(--muted));
}
.es-plaque::before { left: 9px; }
.es-plaque::after  { right: 9px; }

.es-plaque__num {
  font-family: var(--font-sign);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--forest);
}
.es-plaque__label {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

/* ==========================================================================
   Curb stripe — the repeating kerb motif on nav and footer edges.
   ========================================================================== */

/* Fine dashes, not chunky ones — this is a kerb marking, not a divider. Gaps
   are transparent so the stripe reads correctly over cream AND over forest;
   an opaque cream gap glares on the dark bands. */
.es-curb {
  height: 2px;
  background: repeating-linear-gradient(90deg,
    var(--leaf) 0 12px, transparent 12px 22px);
  opacity: 0.5;
}
.es-curb--thick { height: 3px; opacity: 0.62; }

/* ==========================================================================
   NAV
   ========================================================================== */

.es-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.es-nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 12px;
}
.es-nav__logo { width: 158px; flex: none; }
.es-nav__logo svg { filter: drop-shadow(0 2px 3px rgba(16, 28, 22, 0.22)); }

.es-nav__links { display: flex; gap: 28px; margin-left: auto; }
.es-nav__links a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-block: 6px;
  transition: color 200ms var(--ease);
}
.es-nav__links a:hover { color: var(--forest); }
.es-nav__links a[aria-current="page"] { color: var(--forest); font-weight: 600; }
.es-nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--leaf);
}
.es-nav__cta { padding: 11px 22px; font-size: 14px; }

.es-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.es-nav__toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--forest);
}

.es-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--cream);
}
.es-mobile-menu.is-open { display: flex; }
.es-mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}
.es-mobile-menu a.es-btn { font-family: var(--font-body); font-size: 15px; color: var(--cream); }
.es-mobile-menu__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--cream-2);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .es-nav__links, .es-nav__cta { display: none; }
  .es-nav__toggle { display: flex; }
  .es-nav__logo { width: 132px; }
}

/* ==========================================================================
   HERO — daylight
   ========================================================================== */

.es-hero--short .es-hero__inner { padding-top: clamp(50px, 8vw, 90px); padding-bottom: clamp(40px, 6vw, 70px); }

.es-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--art-sky) 0%,
    color-mix(in srgb, var(--illus-sky) 55%, var(--cream)) 46%,
    var(--cream) 100%);
}
/* Keeps the band readable where color-mix is unsupported. */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .es-hero { background: linear-gradient(180deg, var(--art-sky) 0%, var(--cream) 100%); }
}

.es-hero__clouds { position: absolute; inset: 0; pointer-events: none; }
.es-cloud { position: absolute; opacity: 0.55; width: 150px; }
.es-cloud--1 { top: 8%;  left: 4%;  width: 190px; }
.es-cloud--2 { top: 17%; right: 6%; width: 140px; opacity: 0.42; }
.es-cloud--3 { top: 44%; left: 11%; width: 110px; opacity: 0.3; }

.es-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(40px, 7vw, 76px);
  padding-bottom: clamp(30px, 5vw, 52px);
}
.es-hero__sign {
  width: clamp(230px, 32vw, 340px);
  margin-bottom: clamp(20px, 3vw, 34px);
  transform-origin: 50% 8%;
  animation: es-sway 6s ease-in-out infinite alternate;
}
@keyframes es-sway {
  from { transform: rotate(-0.6deg); }
  to   { transform: rotate(0.6deg); }
}
.es-hero__inner h1 { margin: 16px 0 0; max-width: 16ch; }
/* mint on cream is 1.7:1 — unreadable. leaf is 4.82:1. */
.es-hero__inner h1 em { font-style: italic; color: var(--leaf); }
.es-hero__sub {
  margin-top: 20px;
  max-width: 60ch;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  color: var(--ink-2);
}
.es-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* --- Skyline band ------------------------------------------------------- */
.es-skyline { position: relative; z-index: 0; line-height: 0; }
.es-skyline svg { width: 100%; height: clamp(150px, 17vw, 260px); }
.es-skyline__narrow { display: none; }
@media (max-width: 760px) {
  .es-skyline__wide { display: none; }
  .es-skyline__narrow { display: block; }
}

/* --- Hero variant: raster Main Street plate -----------------------------
   Home only. The plate (2528x1696) carries its own clouds, skyline and road,
   so this variant ships without es-hero__clouds / es-skyline / es-road.

   Crop contract: object-position is center bottom, so the storefront, the
   a-frame sign and the street always survive; only sky is trimmed off the
   top. Never switch this to `top` — it would cut the road off instead. The
   band height is capped in vw so the plate scales with the viewport rather
   than swallowing the fold on a laptop. */
/* The base hero fades to cream, which would hit the plate's sky as a hard
   line. The copy block lands on the plate's own top-edge colour instead, so
   the CSS sky and the raster sky read as one continuous sky. Copy still sits
   in the pale upper two-thirds, so the h1's leaf `em` keeps its contrast. */
/* Sits behind the plate's masked top edge (see .es-hero__art), so the fade
   dissolves into sky rather than into the body's cream. */
.es-hero--art { padding-bottom: 0; background: var(--illus-sky-horizon); }
.es-hero__copy {
  background: linear-gradient(180deg,
    var(--art-sky) 0%,
    color-mix(in srgb, var(--illus-sky) 62%, var(--cream)) 52%,
    var(--illus-sky-horizon) 100%);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .es-hero__copy {
    background: linear-gradient(180deg, var(--art-sky) 0%, var(--illus-sky-horizon) 100%);
  }
}

/* Tighter than the base hero: the plate is ~600px on a laptop, so the copy
   block gives back vertical room to keep the storefront near the fold. */
.es-hero--art .es-hero__inner {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(22px, 3vw, 40px);
}
.es-hero--art picture { display: block; line-height: 0; }

.es-hero__art {
  display: block;
  width: 100%;
  /* 45.7vw is the plate's own aspect (2000x915), so between ~525px and
     ~1310px wide it renders uncropped. Outside that, cover trims sky off the
     top and/or the sides — never the street, see object-position below. */
  height: clamp(240px, 45.7vw, 600px);
  object-fit: cover;
  /* 36% is the storefront's horizontal centre in the plate, which is left of
     the image's centre. Anchoring there keeps the shop and its sign in frame
     when a narrow viewport forces a side crop. */
  object-position: 36% bottom;
  /* The plate's painted clouds sit right on its top edge, so even a
     colour-matched gradient leaves a faint line. Fading the first ~56px into
     the sky behind it removes the join entirely. Unsupported browsers just
     get the colour-matched edge, which is already close. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 56px);
          mask-image: linear-gradient(180deg, transparent 0, #000 56px);
}

/* --- Road: CSS, not SVG. A stripe cannot distort. ----------------------- */
.es-road {
  position: relative;
  height: var(--road-h);
  background: var(--art-road);
  box-shadow: inset 0 3px 0 var(--art-ink);
}
.es-road__dash {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 4px;
  margin-top: -2px;
  background: repeating-linear-gradient(90deg,
    var(--art-road-dash) 0 34px, transparent 34px 72px);
}

/* ==========================================================================
   STAT BAR
   ========================================================================== */

.es-stats { background: var(--cream-2); padding-block: clamp(30px, 4vw, 46px); }
.es-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
/* Three plaques stay three-across down to phone width rather than the old
   4-item 2x2 fold — a 2-up grid would leave the third orphaned on its own
   row. */
@media (max-width: 520px) { .es-stats__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   TICKER — asphalt gantry
   ========================================================================== */

.es-ticker { overflow: hidden; background: var(--illus-asphalt); padding-block: 15px; }
.es-ticker__track { display: flex; width: max-content; animation: es-marquee 32s linear infinite; }
.es-ticker__track span {
  position: relative;
  padding-inline: 30px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--cream);
}
.es-ticker__track span::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--mint);
}
@keyframes es-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */

.es-section { padding-block: clamp(56px, 8vw, 104px); }
.es-section__head { max-width: 46rem; }
.es-section__head--center { margin-inline: auto; text-align: center; }
.es-section__head h2 { margin: 16px 0 0; }
.es-section__head p { margin-top: 16px; font-size: 1.05rem; color: var(--ink-2); }

/* ==========================================================================
   PILLARS — shopfront cards
   ========================================================================== */

.es-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(38px, 5vw, 60px);
}
.es-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 26px 30px;
  border: 2px solid var(--art-ink);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--sh-2);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.es-pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
/* Raster plates in the hero's painted style, one per pillar (960x640). The
   band is locked to the plates' own 3:2 so nothing crops at 3-up; the sky
   gradient behind them covers the load gap. */
.es-pillar__art {
  margin: 0 -26px;
  aspect-ratio: 3 / 2;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, var(--art-sky), var(--cream-2));
  line-height: 0;
  overflow: hidden;
}
.es-pillar__art img {
  display: block;
  width: 100%;
  /* An explicit height is what lets the wrapper's aspect-ratio win over the
     img's height attribute — see DESIGN-SYSTEM.md §"Raster images". */
  height: 100%;
  object-fit: cover;
  /* Only bites in the shallower single-column band below. 60% takes the trim
     off the sky first and the sidewalk second, so the shop itself survives. */
  object-position: 50% 60%;
}
.es-pillar__badge {
  align-self: flex-start;
  margin-top: -17px;
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-sign);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--sh-2);
}
.es-pillar h3 { margin-top: 18px; }
.es-pillar p { margin-top: 10px; font-size: 0.97rem; }

@media (max-width: 900px) {
  .es-pillars { grid-template-columns: 1fr; }
  /* A single-column card is far wider than the 3-up column, so 3:2 would grow
     the plate to ~480px and push the copy off-screen. 2:1 is the shallowest
     band that still keeps a whole storefront — roofline to awning — in frame;
     anything flatter starts slicing the shops in half. */
  .es-pillar__art { aspect-ratio: 2 / 1; }
}

/* ==========================================================================
   SERVICE TILES — badge tiles
   ========================================================================== */

.es-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: clamp(30px, 4vw, 48px);
}
.es-tile {
  padding: 30px 26px;
  border-radius: 18px;
  background: var(--cream-2);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.es-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.es-tile:hover .es-badge { transform: translateY(-3px); box-shadow: var(--sh-3), var(--sh-inset-line); }
.es-tile .es-badge svg { transition: transform 500ms var(--ease); }
.es-tile:hover .es-badge svg { transform: rotate(180deg); }
.es-tile h4 { margin-top: 20px; }
.es-tile p { margin-top: 10px; font-size: 0.95rem; }

@media (max-width: 900px) { .es-services { grid-template-columns: 1fr; } }

/* ==========================================================================
   THE ROUTE
   ========================================================================== */

.es-route { background: var(--cream-2); padding-block: clamp(56px, 8vw, 104px); }

.es-route__road {
  position: relative;
  aspect-ratio: 1200 / 300;
  margin-top: clamp(34px, 5vw, 56px);
}
.es-route__road > svg { width: 100%; height: 100%; }

.es-route__shoulder { fill: none; stroke: var(--art-ink); stroke-width: 72; }
.es-route__asphalt  { fill: none; stroke: var(--art-road); stroke-width: 64; }
.es-route__center {
  fill: none;
  stroke: var(--art-road-dash);
  stroke-width: 4;
  stroke-dasharray: 26 30;
  animation: es-march 3.2s linear infinite;
}
/* Positive offset runs the dashes against the path's drawn direction, so the
   centerline reads as travelling right-to-left. Negate to flip it back. */
@keyframes es-march { to { stroke-dashoffset: 56; } }

/* 80/1200 of the container width. Because the box is aspect-locked and the
   svg uses `meet`, viewBox x maps linearly to container % — so --x is exact
   at every width and post/road alignment cannot drift. */
.es-route__post {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6.667%;
  transform: translate(-50%, -93.3%) scale(1);
  transform-origin: 50% 93.3%;
  transition: transform 520ms var(--ease), opacity 520ms var(--ease);
  transition-delay: calc(var(--i) * 90ms);
}
.es-route__post svg { width: 100%; height: auto; overflow: visible; }
.es-route__post text {
  font-family: var(--font-sign);
  font-size: 28px;
  font-weight: 700;
  fill: var(--art-face);
}
.es-route__road:not(.is-visible) .es-route__post {
  opacity: 0;
  transform: translate(-50%, -85%) scale(0.82);
}

.es-route__stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: mile;
}
.es-route__stops li { text-align: center; padding-inline: 8px; }
.es-route__mile {
  display: block;
  font-family: var(--font-sign);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}
.es-route__stops h3 { margin-top: 8px; }
.es-route__stops p { margin-top: 8px; font-size: 0.95rem; }

/* Mobile: the road SVG is removed entirely and replaced by a CSS gutter rail.
   No SVG on the highest-risk section at narrow widths = no distortion risk. */
@media (max-width: 899px) {
  .es-route__road { display: none; }
  .es-route__stops {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 34px;
    /* Dash layer FIRST — CSS paints the first-listed background on top, so
       listing the solid road first would bury the centerline. */
    background:
      repeating-linear-gradient(180deg, var(--art-road-dash) 0 14px, transparent 14px 30px) 23.5px 0 / 3px 100% no-repeat,
      linear-gradient(var(--art-road), var(--art-road)) 17px 0 / 16px 100% no-repeat;
  }
  .es-route__stops li {
    position: relative;
    text-align: left;
    padding: 0 0 36px 74px;
  }
  .es-route__stops li:last-child { padding-bottom: 0; }
  .es-route__stops li::before {
    counter-increment: mile;
    content: counter(mile, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -2px;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--art-ink);
    box-shadow: inset 0 0 0 2.5px var(--art-face);
    color: var(--art-face);
    font-family: var(--font-sign);
    font-size: 18px;
    font-weight: 700;
  }
}

/* ==========================================================================
   CTA — dusk
   ========================================================================== */

.es-cta {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  padding-top: clamp(64px, 9vw, 116px);
  text-align: center;
  /* Same building geometry as the hero — night is a token override, not new art.
     Silhouette color is --ink, not --pine: the 2026-08-10 palette re-sample
     lightened --forest enough that pine-on-forest collapsed to 1.01:1
     contrast (buildings vanished into the sky, only windows stayed
     visible). --ink is the darkest token in the system — 1.56:1 against
     the new forest, a real silhouette again. See decisions/log.md. */
  --art-ink: var(--ink);
  --art-face: var(--ink);
  --art-wood: var(--ink);
  --art-brick: var(--ink);
  --art-foliage: var(--ink);
  --art-foliage-2: var(--ink);
  --art-awning-a: var(--ink);
  --art-awning-b: var(--ink);
  --art-glass: var(--leaf);
  --art-glass-lit: var(--mint);
}
.es-cta__skyline { position: absolute; left: 0; right: 0; bottom: 0; line-height: 0; }
.es-cta__skyline svg { width: 100%; height: clamp(140px, 15vw, 220px); }

.es-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: clamp(160px, 17vw, 250px);
}
.es-cta__sign { width: clamp(180px, 22vw, 240px); margin-bottom: 26px; }
.es-cta h2 { margin-top: 14px; color: var(--cream); }
.es-cta p { margin-top: 14px; max-width: 46ch; color: rgba(250, 248, 243, 0.78); }
.es-cta__actions { margin-top: 28px; }
.es-cta__note { margin-top: 18px; font-size: 13px; color: rgba(250, 248, 243, 0.6); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.es-footer { background: var(--cream-2); }
.es-footer > .es-wrap { padding-block: clamp(44px, 6vw, 68px) 28px; }
.es-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}
.es-footer__logo { display: block; width: 210px; }
.es-footer__brand p { margin-top: 18px; max-width: 44ch; font-size: 0.95rem; color: var(--ink-2); }
.es-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.es-footer__col { display: flex; flex-direction: column; gap: 10px; }
/* Footer column labels are h2 (top-level footer nav groups) so the document
   heading order has no level skip — they are styled as micro-labels, not as
   the h2 type scale. */
.es-footer__h {
  margin: 0 0 4px;
  font-family: var(--font-sign);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}
.es-footer__col a, .es-footer__col span { font-size: 0.93rem; color: var(--ink-2); text-decoration: none; }
.es-footer__col a:hover { color: var(--leaf); }

.es-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(13, 47, 34, 0.12);
  font-size: 0.83rem;
  color: var(--muted);
}
.es-footer__social { display: flex; gap: 10px; }
.es-footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  color: var(--forest);
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.es-footer__social a:hover { background: var(--leaf); border-color: var(--leaf); color: var(--cream); }
.es-footer__social svg { width: 17px; height: 17px; }

@media (max-width: 760px) {
  .es-footer__top { grid-template-columns: 1fr; }
}
