/* ==========================================================================
   The homepage's own bands, kept out of css/styles.css so a page that has none
   of them does not download them. Loaded by index.html only, after the site
   sheet, and in the same order the blocks had there, so nothing restacks.
   ========================================================================== */
/* ---------- Hero ---------- */

/* The landing page's largest element, and it is the illustration the page opens on: the GoFillAm
   rider on the road, the refilled cylinder strapped behind the seat.

   It is three pictures rather than one, one per band, because one shape cannot be right for all
   of them. A phone's hero box comes out about 0.5:1 and a desktop's about 1.8:1, while the art is
   wide; `cover` takes that difference out of the sides, so the only thing that matters per band is
   that the picture is tall enough and that the rider is on its centre line.

     a phone    ≤ 560px     assets/hero-portrait.png, 0.67:1 — the rider on the road in portrait,
                            shipped as 768x1536 → 62 KB. That is the middle 75% of the master at
                            the master's own height, which is the whole of it a phone can see:
                            a 0.5:1 box over a 0.67:1 picture crops a quarter off each side.
     a tablet   561–1100px  assets/hero-tablet.png, 1.50:1 — shipped whole,
                            1536x1024 → 102 KB.
     a desktop  ≥ 1101px    assets/hero.png, 2.50:1 — unchanged,
                            1440x793 → 45 KB and 1983x793 → 72 KB.

   Each band keeps its PNG as the first declaration, so a browser without WebP still has a hero.
   The rider is on the centre line of all three, so which picture a screen gets never moves him off
   the line the panel above him is aligned to. That is measured, on the strongest single marker of
   his own line — the yellow cylinder strapped behind his back, which is the one saturated object
   of its colour in the scene: his own centre of mass sits at 49.5% of the desktop art's width,
   48.6% of the tablet's and 51.9% of the portrait's. (The lime vest is no good for that reading:
   the roadside grass is lime too.) */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Clip, and only clip. `hidden` was not enough here, and it is the whole of the fault this pair
     is written for: it hides the overflow *and* makes the section a scroll container, and the last
     spacer deliberately hangs a hundred and fifty pixels below a box that is held to the master's
     own ratio — so the section was a scroller with ninety pixels to give. Anything that scrolls a
     scroll container took those ninety pixels off the top of the hero and the picture came up with
     them, which is the picture seen through the wrong window: white across the
     middle, the road still under it, the next section where it belongs. A wheel over the artwork
     did it, so did a tab that landed in the panel, and so did the tour — `scrollIntoView` scrolls
     every scrollable ancestor, not only the page, and the walk down and back up left the section
     standing ninety pixels down. `clip` is the same hiding with no box to scroll: there is nothing
     left for any of them to move. `hidden` stays in front of it for a browser that does not know
     `clip`, which clips as it always did, and js/tour.js puts the section's scroll back. */
  overflow: hidden;
  overflow: clip;
  /* The light layers above this picture blend with what is behind them (`mix-blend-mode: screen`).
     Left ungrouped, that blend group reaches past the section, so the browser has to re-read and
     re-raster everything under the hero whenever the hero moves - and on the way back up to the
     top, a band of the artwork is painted a frame late, which reads as the hero breaking and then
     repairing itself. Isolating the section ends the blend at its own edge. The picture the light
     sits on is inside the group, so the effect is identical; the page behind it is simply not
     re-read on every frame. */
  isolation: isolate;
  /* The join, as one image the hero paints in its own pass. `--hero-foot-curve` is an SVG of the
     section's own white whose fill runs to the bottom row across the whole width, so the last row
     the picture's sub-pixel edge contributes is white wherever it falls; the picture is drawn
     under it in the same pass, in the same box and under the same clip, which is what makes that a
     guarantee rather than a hope — a background layer cannot disagree with the picture about
     anything.

     The curve is a valley rather than a dome: deepest at the sides (5.8% of the hero) and
     shallowest at the centre (2.5%). That is the shape this art asks for. Its foot is bare road
     across the whole width — the first thing the picture paints down there, the kerb and the lane
     dashes, starts at 7.4% — so the curve can spend its white where there is nothing to hide, and
     leave the middle, where the rider is, showing deepest into the section.

     No filter, no animation and no transform is anywhere on it: that is what the old drawn wave
     had, and what made its raster something a browser could measure once and then keep. */
  /* `shape-rendering: crispEdges` is not a flourish here, it is the whole of the difference
     between a clean join and a line along it. Left anti-aliased, the shape's own boundary is
     rasterised as partial alpha, and partial alpha over the picture means the picture's colour
     shows *through* the white — measured on this path at a 1440x51 band, 1433 pixels across 28
     rows are neither white nor clear, which is a soft, tinted hairline tracing the curve. It is
     invisible at 100% and obvious the moment anybody zooms, which is how it was found. With the
     edges crisp every boundary pixel is fully white or fully clear — 0 partial pixels, measured
     the same way — so there is nothing left for the art to show through. The curve's slack is
     0.04px of edge per horizontal pixel, so the stair it trades for that is one pixel every
     twenty-six and nothing an eye can find. */
  --hero-foot-curve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' shape-rendering='crispEdges' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,100 L0,6 C300,6 420,60 720,60 C1020,60 1140,6 1440,6 L1440,100 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-image: var(--hero-foot-curve), url("/assets/hero.png");
  background-image: var(--hero-foot-curve), url("/assets/img/hero-1440.webp");
  background-repeat: no-repeat, no-repeat;
  background-position: center bottom, center top;
  /* And the curve is a share of the section, so it steps with the hero at every width rather than
     being spent once at one size — 6.2% puts its deepest white at 5.8% and its shallowest at 2.5%,
     both of them inside the picture's own bare foot at every width. The picture fills that section:
     at the picture's own shape `cover` is an exact fit, so a desktop shows the whole of it and
     nothing is cut. */
  background-size: 100% 6.2%, cover;
  /* The colour under the picture before the picture arrives. It was the scene's own dark green,
     which meant a slow first paint was a full screen of green with no content on it �?" the shape
     a customer reads as a broken page or a stuck app. The paper the rest of the page is made of
     is the honest placeholder: the header already paints its cream bar over it, the hero copy
     sits on its own dark glass, and the artwork lands on top a moment later. A blank sheet is a
     quieter first frame than a colour the page is not using yet. */
  background-color: var(--color-paper);
  width: 100%;
  /* The master's own ratio. It is a wide picture — 2.5:1 — so it is the shape the hero takes only
     when the viewport is short and wide enough that the height below would be less than this. */
  aspect-ratio: 1983 / 793;
  /* How tall the section actually is: 92% of the viewport, and never more than 1000px — past that
     figure the 793px-tall picture is being enlarged rather than shown, which is the one thing the
     height is not allowed to cost. The ratio above is the fallback on a short, wide viewport, and
     the panel between its two bands is a third floor, so the hero is never shorter than what is
     in it. `cover` takes what the height costs out of the sides, and it takes it evenly, which is
     why the rider stays in the middle of the section: measured in the master, his own centre of
     mass sits at 49.6% of its width. */
  min-height: min(92vh, 1000px);
}

/* ── The join, painted last ──────────────────────────────────────────────────────────────────
   The curve above is the hero's own background, and it is still the paint that guarantees the
   picture's last sub-pixel row is white rather than the road. What it cannot guarantee is its
   own colour: a background is painted beneath the hero's light layers, and those layers are
   `mix-blend-mode: screen` over the artwork, so the white they cover comes back a shade of
   whatever is screening over it — the mint bloom in the hero's bottom-right corner is what
   turned the right half of the wave pale green, and that pale band meeting the section's white
   is the line that was reported between the hero and the next section.

   So the same shape is painted once more, after everything in the section: an element is drawn
   over those layers rather than under them, so nothing can tint it. Its fill is
   `var(--color-surface)` — the very value `.why` paints itself with, not a copy of it — so the
   wave and the section it lands in cannot be two whites, and a theme that moves the section
   moves the wave with it.

   It is one shape the hero already asks for: 6.2% of the hero's own height, the same figure the
   background layer is sized to, and the same path, stretched with `preserveAspectRatio="none"`,
   so the join steps with the picture at every width. There is no filter, transform or animation
   on it, which is what the old drawn wave had and what made its raster something a browser could
   measure once and keep: nothing here needs re-measuring. `pointer-events: none` keeps it out of
   the way of the artwork behind it — it is paint, not a control. */
.hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6.2%;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.hero__foot svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* A cinematic light field gives the illustration a little depth without replacing or repainting
   it: a warm sunlit bloom, a cool brand-green reflection, and one soft moving sunbeam. It stays
   between the photograph and the hero copy, so controls remain crisp and the artwork stays legible. */
.hero__lightfield {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.5;
}

.hero__lightfield::before,
.hero__lightfield::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
}

.hero__lightfield::before {
  background:
    radial-gradient(ellipse 22% 17% at 11% 19%, rgba(255, 208, 128, 0.34), transparent 70%),
    radial-gradient(ellipse 22% 20% at 92% 88%, rgba(120, 224, 188, 0.12), transparent 70%),
    radial-gradient(ellipse 46% 16% at 52% 100%, rgba(255, 183, 82, 0.16), transparent 76%);
  filter: blur(38px);
  animation: hero-lightfield-float 22s ease-in-out infinite alternate;
  /* The blooms ring the hero rather than washing over its middle: the glass panel sits on that
     middle, and a light behind a blur is a tint the words have to fight. Masked out, the same
     light frames the picture and the copy stays on the pane's own dark tint. */
  -webkit-mask-image: radial-gradient(ellipse 66% 60% at 50% 52%, transparent 0 60%, #000 88%);
  mask-image: radial-gradient(ellipse 66% 60% at 50% 52%, transparent 0 60%, #000 88%);
}

.hero__lightfield::after {
  inset: 0;
  background: linear-gradient(116deg, transparent 0 35%, rgba(255, 255, 255, 0.035) 42%, rgba(255, 251, 224, 0.16) 47%, rgba(255, 255, 255, 0.045) 51%, transparent 61%) 0 0 / 230% 100% no-repeat;
  animation: hero-lightfield-sweep 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hero-lightfield-float {
  from { transform: translate3d(-1.2%, -0.6%, 0) scale(0.98); }
  to { transform: translate3d(1.2%, 0.8%, 0) scale(1.04); }
}

@keyframes hero-lightfield-sweep {
  0%, 18% { background-position: 120% 0; }
  78%, 100% { background-position: -75% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__lightfield { opacity: 0.55; }
  .hero__lightfield::before,
  .hero__lightfield::after { animation: none; }
}

/* The aurora: a second, finer light over the blooms above — three slow brand-coloured ribbons that
   drift and breathe behind the copy, plus a film grain that keeps the whole field from banding on a
   wide gamut display. Where the light field is the sun and the sheen, this is the air in the room:
   the same mix-blend-mode and the same slot in the stack, so it reads as more of the one effect
   rather than as a second, competing one. It is masked away from the middle for the same reason —
   the glass panel is where the words are, and light behind a blur is contrast the copy has to pay
   for. Decorative, unclickable, and silent for anyone who has asked for less motion. */
.hero__aurora {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.42;
}

/* Two wide bands at an angle rather than three round blooms: a bloom is a shape, and the light
   field already owns that vocabulary. What these add is direction — a slow cross of green and
   amber through the picture, blurred past the point of being a stripe. Masked away from the
   middle for the same reason the light field is: the glass panel sits there, and light behind a
   blur is contrast the words have to pay for. */
.hero__aurora::before {
  content: "";
  position: absolute;
  inset: -14%;
  pointer-events: none;
  background:
    linear-gradient(72deg, transparent 12%, rgba(46, 197, 118, 0.2) 34%, transparent 52%),
    linear-gradient(288deg, transparent 14%, rgba(255, 196, 104, 0.18) 38%, transparent 58%);
  filter: blur(46px);
  animation: hero-aurora-drift 34s ease-in-out infinite alternate;
  -webkit-mask-image: radial-gradient(ellipse 62% 56% at 50% 52%, transparent 0 58%, #000 90%);
  mask-image: radial-gradient(ellipse 62% 56% at 50% 52%, transparent 0 58%, #000 90%);
}

/* The grain. A tiny repeating dot pattern over the light is what stops a large soft gradient from
   stepping into visible bands on a wide gamut display; it is drawn at 3px, so it reads as texture
   and never as noise over the artwork. It is not masked — a texture that fades out is a texture
   the eye can see the edge of. */
.hero__aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.5;
  animation: hero-aurora-grain 6s steps(6, end) infinite;
}

@keyframes hero-aurora-drift {
  from { transform: translate3d(-2%, 1.2%, 0) rotate(-1.4deg) scale(1); }
  to { transform: translate3d(2.2%, -1%, 0) rotate(1.4deg) scale(1.07); }
}

@keyframes hero-aurora-grain {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-3px, 3px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__aurora { opacity: 0.4; }
  .hero__aurora::before,
  .hero__aurora::after { animation: none; }
}

/* The embers. The light field and the aurora are painted: two gradients and a grain that the
   browser can raster once and move around. What they cannot do is put anything *in* the scene —
   every mark they make is behind the glass and blurred past recognition. This layer is the one
   piece of the hero's light the browser draws frame by frame, and what it draws is warm motes off
   the road: a handful of soft, rising points of light, so the picture reads as air the rider is
   moving through rather than as a photograph with a tint over it.

   It is the last of the three light layers and shares their slot, their `screen` blend and their
   silence — decorative, unclickable, and drawn over the art but under the copy. The middle is
   masked away for the same reason the other two are: the glass panel sits there, and points of
   light behind a blur are contrast the words have to pay for. Unlike theirs, this mask is a dim
   rather than a hole — a few embers crossing the pane's edge are what tie the layer to the rest of
   the scene, and the samplers below keep the field thin enough that the copy never has to fight
   it. */
.hero__embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.92;
  -webkit-mask-image: radial-gradient(ellipse 76% 68% at 50% 52%, rgba(0, 0, 0, 0.12) 0 40%, rgba(0, 0, 0, 0.55) 60%, #000 80%);
  mask-image: radial-gradient(ellipse 76% 68% at 50% 52%, rgba(0, 0, 0, 0.12) 0 40%, rgba(0, 0, 0, 0.55) 60%, #000 80%);
}

/* The canvas is sized in CSS pixels by the sheet and in device pixels by the script, so the field
   is sharp on a 2x screen without asking a phone to draw three times the motes it can show. */
.hero__embers-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Motion asked against means no embers at all, not frozen ones: a still field of bright dots over
   the copy is a texture nobody asked for. The layer goes, and with it the frame the script would
   otherwise draw into it. */
@media (prefers-reduced-motion: reduce) {
  .hero__embers { display: none; }
}

/* 1601px and up: the desktop art in WebP at the master's own width — the only tier that shows it
   with nothing taken off the sides. */
@media (min-width: 1601px) {
  .hero {
    background-image: var(--hero-foot-curve), url("/assets/hero.png");
    background-image: var(--hero-foot-curve), url("/assets/img/hero-1983.webp");
  }
}

/* A tablet: the second picture, whole, and the section takes its 3:2 shape where nothing else is
   sizing it. A tall tablet takes the sides off it evenly — 0.82:1 against 1.5:1 — and a wide one
   keeps nearly all of it at 1.45:1, which is why this band ships the whole frame rather than a
   slice of it: a slice would be wrong in one direction or the other. */
@media (max-width: 1100px) {
  .hero {
    background-image: var(--hero-foot-curve), url("/assets/hero-tablet.png");
    background-image: var(--hero-foot-curve), url("/assets/img/hero-tablet.webp");
    aspect-ratio: 1536 / 1024;
  }
}

/* A phone: the third picture, in portrait. A phone's box is narrower than the art, so `cover`
   takes a quarter off each side and the middle 75% is all that is ever shown — which is exactly
   what the tier is, at the master's own height, so the rider arrives at 1536 rows of detail
   rather than a wide picture's middle stretched across a 3x screen.

   The band does not take the picture's ratio as its height any more. A ratio makes a block's
   height *definite*, and a definite height does not grow to fit what is inside it: a phone whose
   copy wraps to more lines than usual — a 360px Android, where the description runs to six — had
   a section 88px shorter than its own panel and two 150px bands, so the spare room came out of
   the band under the panel, the section clipped the overflow, and the Schedule Order pill ended
   up sitting on the wave. The height is the viewport share below, and it may grow: the two bands
   keep their 150px floors, the panel keeps its distance from the join, and `cover` fills whatever
   height the box turns out to be with the same portrait picture. */
@media (max-width: 560px) {
  .hero {
    background-image: var(--hero-foot-curve), url("/assets/hero-portrait.png");
    background-image: var(--hero-foot-curve), url("/assets/img/hero-portrait.webp");
    aspect-ratio: auto;
    min-height: min(92vh, 1000px);
  }
}
/* The band above the hero's own content — the space the headline opens under.

   Left to flex alone it is half of whatever the hero has spare, which follows the screen's height
   rather than the header it has to clear, and on a wide, short hero that goes wrong quietly: at
   1181 wide the headline started 2px below the nav and at 1280 it started 18px below it, so the top
   line read as part of the header rather than as the page's own title. 150px is the floor the
   phone already puts under the same 104px header, and it is deliberately a floor, not a height:
   with the hero at 92vh the share is 287px at 1181 and 276 at 1440, and it stays there to 1920 —
   so the floor only comes into play where the content, not the screen, is what sizes the hero,
   which is a short viewport on a phone or a tablet. */
.hero__spacer--top {
  flex: 1;
  min-height: 150px;
  min-height: max(150px, calc(env(safe-area-inset-top) + 120px));
}

/* Equal shares, so the band above and the band below the content are the same height and what the
   hero says sits in the middle of the picture rather than two thirds of the way up it. Measured
   across the widths: 296px above and below on a phone, 328 on a tablet, 293 at 1001, 276 at 1440
   and 276 at 1920 — the panel is centred, not merely placed.

   The 150px floor is the panel's own clearance from the foot: a flex share is whatever the hero
   has spare, and where a short viewport holds the hero to its content — the panel plus the two
   floors — the band under it is still the 150px, 22% of a 666px hero, which is what keeps the
   buttons clear of the white strip the hero paints across its own bottom edge. */
.hero__spacer--bottom {
  flex: 1;
  min-height: 150px;
}

/* ---------- The hero's wordmark ----------
   The heading is the brand's own name in the display face, saying itself in the languages it is
   said in. All five names sit in one grid cell, so the slot is as big as the longest of them and
   the description under it never moves as the cycle turns; the names that are not on screen are
   at zero opacity in the same place, which is what makes the change a switch rather than a
   reflow. The cycle is CSS only: no script runs for it, nothing has to be initialised, and with
   motion reduced the first name simply stays where it is.

   The handover is a dissolve and it is eased: each name holds the frame whole for two and a half
   seconds, fades out over the last four tenths of its three, and the next fades up from its own
   zero over the four tenths after that. A slower fade would leave two names half-drawn together;
   a faster one is the hard switch this replaced, and the drift — a tenth of a line up into the
   frame — is small enough to read as the name settling rather than moving.

   The line box is the face's own height, and the same amount is taken back off the block's
   margins, and both halves of that matter. Boldonse draws far outside the line a page normally
   gives it: measured in the browser, one line of it at 36px has 44px of cap above the baseline —
   more than the 36px em — and 12px below it for the names that carry a dot under an `ụ`, against
   the 41.4px this rule used to leave it. A box shorter than its ink is not a tight setting, it is
   a cut: the tops of every name were sliced flat, so the G, the F and the A all began on one
   horizontal line the face has no reason to draw, and the two names with an `ụ` lost the dot
   underneath. `1.85em` is where both ends clear with a pixel to spare (66.6px at 36px, 177.6px at
   96px, the face's own `normal` being 1.92em), and `-0.35em` of block margin is exactly the half
   of the growth that
   would otherwise push the names apart: the box grows, the ink sits where it always sat, and the
   panel is as tall as it always was. */
.hero__wordmark {
  display: grid;
  /* All five names hang from one baseline rather than from the middle of their own boxes. The three
     with the hat are 2.960em tall; the two plain names are a 1.85 line box, so centring each item in
     the shared cell put the plain names 12px higher — at 390px their text top measured 182.6px
     against the hat's 194.6px — and the name stepped up twice in every cycle. A baseline is the line
     all five have in common, so that is what they are aligned on; the cell's height, which the hat
     sets, does not change. */
  justify-items: center;
  align-items: baseline;
  margin-block: -0.35em;
  font-family: var(--font-display);
  /* The one place on the page that is the display face at full weight: the names the brand is
     called by, which is as bold as this hero says anything. */
  font-weight: 700;
  font-size: clamp(36px, 6.5vw, 6rem);
  line-height: 1.85;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  color: var(--color-cream-ink);
}

/* Five names, 18 seconds, 3.6s each: the slot is long enough to read the name and notice it is a
   name rather than a flicker — the cycle used to turn every 3s and each one held for 2.2, which
   read as the panel changing rather than as the brand saying itself five ways. The last four are
   offset by a whole slot each. The swap between them is a soft focus blend rather than a fade or a
   slide: the name simply loses its edge — six pixels of blur — and the next one finds its own, with
   no travel and no scale, because a heading that lurches every three seconds reads as restless. */
.hero__wordmark-item {
  grid-area: 1 / 1;
  opacity: 0;
  will-change: opacity, filter;
  animation: hero-wordmark-slot 18s ease-in-out infinite;
}

.hero__wordmark-item:nth-child(1) { animation-delay: 0s; }
.hero__wordmark-item:nth-child(2) { animation-delay: 3.6s; }
.hero__wordmark-item:nth-child(3) { animation-delay: 7.2s; }
.hero__wordmark-item:nth-child(4) { animation-delay: 10.8s; }
.hero__wordmark-item:nth-child(5) { animation-delay: 14.4s; }

/* The cycle is never put down. The five names turn through a scroll and through a pause, so the
   frame at the top is the frame that was there before the reader left, and no name arrives a
   beat after the frame it belongs to. */

/* ── The season's hat ────────────────────────────────────────────────────────────────────────
   Every name the brand answers to that starts with a G wears the supplied hat over that letter:
   names one to three are the G's, and that list is pinned by the hero's own suite, so this rule
   cannot quietly drift onto a name that starts with something else without the suite saying so.

   The G is gone from the markup and the supplied picture stands in its place, on the baseline the
   letter stood on and at the letter's own size: `0.72em` is the cap height of the display face,
   which is what a capital G measures, and the box is square so the picture keeps its own shape
   inside it rather than being stretched to a letter's width. Three names carry it, one picture
   cached once. */
/* The letter is the default and the picture is the season's: the letter costs nothing, it is what
   the wordmark is every other month of the year, and the swap is one class on <html>. js/season.js
   adds `is-festive` from November 1st to the end of December on the Lagos clock — on January 1st
   the class is simply not written, so the G comes back with nothing for anybody to switch off. */
.hero__g-swap { display: inline-block; }
.hero__g-letter { display: inline; }

.hero__g-mark {
  display: none;
  /* Sized to the letter it stands in for, from numbers measured rather than guessed. In the
     supplied file the white G's ink runs from 31.1% to 78.9% of a 1500x1800 canvas and from 15.9%
     to 78.1% across, so drawn as-is the letter would stand at about four-fifths of the cap beside
     it. `scale` about that ink's centre, inside a box the size of the letter's own ink (1.43em
     wide, 1.22em of cap), draws the letter at 1.36em of ink: a little over the cap, which is what
     it takes to read level with its neighbours at this weight, with its foot on the text baseline
     and without changing one line of layout. The origin is chosen for that foot; the transparent
     margin overflows, which costs nothing.

     The file's white also measures a shade cooler than this hero's ink, so it is not left as an
     <img> at all: the picture is painted as a background *multiplied* into the heading's own cream
     and masked by its own alpha. Multiply is exactly the right sum here — white lands on the cream
     to the level, and the hat's red barely moves because red is already far from white. A CSS
     `filter: url(#…)` would have tinted it too, but a reference that fails takes the picture with
     it and renders nothing, which is a whole letter missing rather than a letter a shade off. */
  /* The box is the size the picture is *shown* at, not the size of the letter it stands in for:
     1.473 × 1.22em magnified by 2.333 is 3.437 × 2.847em, plus the 4% asked for after that is
     3.574 × 2.960em — and drawing it at that size is what makes the edges as sharp as the type
     beside them. The magnification was a transform, and a
     transform stretches a layer the browser has already rasterised — a 54px picture blown up to
     127px on a phone, which is why the G read soft while the words read crisp. */
  /* Four percent larger than the picture that stood in before, in every dimension: 3.437 x 2.847em
     at 4% is 3.574 x 2.960em. The three figures under it are what keep a size change from becoming a
     spacing change. */
  width: 3.574em;
  height: 2.960em;
  /* The line's advance is still 1.493em — the same as the letter's own box plus the 0.02em the hat
     always held — and the ink stays centred on the same point it was: the picture is wider now, and
     the extra 0.068em a side is given back as margin rather than pushing "aa" along. */
  margin-left: -1.010em;
  margin-right: -1.071em;
  /* The ink's foot is 78.9% of the way down its canvas, so the box hangs 0.211 of its height below
     the baseline: 0.625em of 2.960, where it was 0.6em of 2.847. That keeps the foot on the
     baseline exactly as it was, and the extra size grows upward into the hat instead of sinking the
     letter. */
  vertical-align: -0.625em;
  background-color: var(--color-cream-ink);
  background-image: url("../assets/christmas-hat.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-blend-mode: multiply;
  -webkit-mask-image: url("../assets/christmas-hat.webp");
  mask-image: url("../assets/christmas-hat.webp");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
  animation: hero-hat-bob 5.4s ease-in-out infinite;
}

/* The letter is the default until the picture has decoded. `is-festive` alone is not enough to
   hide it: on a cold refresh the mask file can still be in flight, and a hidden letter with no
   picture is the "aa Wụjuo Ya" wordmark. season.js adds `is-festive-ready` only after decode. */
html.is-festive .hero__g-letter { display: inline; }
html.is-festive.is-festive-ready .hero__g-letter { display: none; }
html.is-festive.is-festive-ready .hero__g-mark { display: inline-block; }

/* ── One axis for all five names ──────────────────────────────────────────────────────────────
   The hat's box is wider than the ink in it: the picture is drawn 3.574em across while its painted G
   starts 0.909em in, because the file is a portrait canvas inside a landscape box and the transparent
   margin is centred. So a name that wears the hat has 0.101em more ink on its right than on its
   left, and its ink centre lands 0.0505em — 1.9px at a phone's 37.08px — left of the axis a plain
   name centres on. All five names are centred on that one axis; the hat's three take the 0.0505em
   back so their ink does too. Measured live at 390px: hat ink 77.5–291.7, centre 184.6; plain box
   45.1–327.9, centre 186.5; the axis, 186.5, is where the five now meet.

   Season only, because outside the hat the G is a letter whose own side bearings are near enough
   symmetrical: the correction there would push the three the same 1.9px the wrong way. */
html.is-festive.is-festive-ready .hero__wordmark-item:nth-child(-n + 3) {
  transform: translateX(0.0505em);
}

/* The bob is a nudge of the drawn picture, in its own em now: 0.03em of the old small box is
   0.07em of this one, so the movement is the same number of pixels it has always been. */
@keyframes hero-hat-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.07em); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__g-mark { animation: none; }
}

@keyframes hero-wordmark-slot {
  0% { opacity: 0; filter: blur(6px); }
  5% { opacity: 1; filter: blur(0); }
  18% { opacity: 1; filter: blur(0); }
  23% { opacity: 0; filter: blur(6px); }
  100% { opacity: 0; filter: blur(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__wordmark-item {
    animation: none;
  }

  .hero__wordmark-item:first-child {
    opacity: 1;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* The two numbers the panel's light is steered by, registered so they can be *transitioned*: a
   plain custom property is not interpolatable, so the highlight would jump between positions
   instead of gliding to them. `inherits: false` keeps the pair on the plate it belongs to. */
@property --hero-mx {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 50%;
}

@property --hero-my {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 50%;
}

/* One centred column under the wordmark: the description, then the two pills, and the column sits
   on a pane of glass rather than a slab of paint. The tint is what guarantees the words stay
   legible at any width; the blur behind it is what lets the picture keep showing through instead
   of being covered, so the rider reads *through* the panel rather than disappearing behind it.

   The rest of the treatment is deliberately thin: a one-pixel light edge that catches the
   picture's brightness, a highlight along the top bevel, and the shadow it drops onto the art so
   the pane reads as sitting above it. Two slow brand-coloured glows drift inside the glass, and
   one sheen crosses it every eleven seconds. None of it is drawn *after* the words — every layer
   here is behind the text, which is what keeps the copy as sharp as it was on the flat tint. */
.hero__main {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 900px;
  padding: 34px 36px;
  border-radius: 28px;
  background-color: rgba(0, 0, 0, 0.44);
  /* The sheen: one diagonal band of light, parked off the right edge and animated across. It is a
     background layer rather than an element, so it costs a paint and no layout at all. */
  background-image: linear-gradient(104deg, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0.11) 47%, rgba(255, 255, 255, 0) 58%);
  background-repeat: no-repeat;
  background-size: 240% 100%;
  background-position: 150% 0;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 26px 64px -26px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: hero-glass-sheen 11s ease-in-out infinite;
  transition: --hero-mx 0.45s ease, --hero-my 0.45s ease;
  text-align: center;
}

/* The light that follows the pointer, and the only thing on this page that does: the two custom
   properties above are written by `js/main.js` as the pointer crosses the pane, and the gradient
   is anchored to them. It fades in on hover — on a touch screen there is no pointer to follow, so
   it simply never appears rather than sitting parked in the middle of the glass. */
.hero__main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--hero-mx) var(--hero-my),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0) 62%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.hero__main:hover::before {
  opacity: 1;
}

/* The two glows behind the glass, in the brand's own colours: painted over the tint but under
   every word, blurred past the pane's own edge so they read as light inside the glass rather than
   as shapes on it. They drift on the longest clock in the hero so the pane is never quite the
   same surface twice. */
.hero__main::after {
  content: "";
  position: absolute;
  inset: -26% -8%;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(40% 46% at 16% 18%, rgba(220, 120, 28, 0.30), rgba(220, 120, 28, 0) 70%),
    radial-gradient(38% 44% at 86% 82%, rgba(0, 160, 72, 0.28), rgba(0, 160, 72, 0) 72%);
  filter: blur(26px);
  animation: hero-glass-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hero-glass-sheen {
  0%, 62% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

@keyframes hero-glass-drift {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}

/* Reduced motion keeps the glass and gives up the movement: the pane still blurs, still has its
   edge and its glow, and the sheen and the drift stop where they are. */
@media (prefers-reduced-motion: reduce) {
  .hero__main {
    animation: none;
  }

  .hero__main::after {
    animation: none;
  }
}

/* The description is the page's ordinary body face, not the display one — the display face belongs
   to the names above it. Cream rather than the body ink, because the glass under it is a dark tint
   over a bright picture, and that is the one combination that stays readable at every width. */
.hero__copy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-cream-ink);
  max-width: 660px;
  margin: 0;
}

/* The two pills are one row, and they are aligned rather than stacked: both are the button
   system's own 48px circle tall, the two labels are the same size, and the row is centred on the
   column, so neither pill reads as the primary one and neither sits lower than the other. */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  width: 100%;
}

/* The label is one line, whatever the pill is asked to hold. "Schedule Order" broke onto two
   lines inside its own pill on a narrow phone, so the pill grew taller than the one beside it and
   the words sat stacked — the two controls stopped reading as a pair. The pills may still take a
   row each when the screen cannot hold both; what they may not do is wrap their own word. */
.hero__actions .btn__label {
  white-space: nowrap;
}

.hero__form {
  width: auto;
  max-width: 100%;
}

/* The wrapper the order form's button has always lived in. The amount field it used to hold is
   gone — the order form asks for the kilograms itself — and `js/main.js` reaches the button
   through this row, so the class stays. */
.hero__input-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

/* ---------- Customer Dashboard ---------- */

.customer-dashboard-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.customer-dashboard-overlay[hidden] { display: none; }
.customer-dashboard {
  background: var(--color-surface);
  border-radius: 22px;
  padding: 0;
  max-width: 1240px;
  width: 100%;
  height: min(92dvh, 920px);
  max-height: min(92dvh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: contain;
  position: relative;
  box-shadow: 0 24px 70px rgba(7, 32, 20, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
body.cd-open { overflow: hidden; }
/* The dashboard is a full screen of its own. The page's floating helpers belong to the page
   underneath, and on a phone they otherwise sit over the last card's buttons. */
body.cd-open .amma-chat,
body.cd-open .tour-launch { display: none; }
/* A section change is announced to a screen reader without moving focus away from the tab.
   The block is visually hidden in the same way the photo label is on a phone. */
.cd-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.customer-dashboard-close {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted-2);
  cursor: pointer;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex: 0 0 auto;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.customer-dashboard-close svg { width: 18px; height: 18px; }
.customer-dashboard-close:hover { background: var(--color-surface-3); border-color: #cfd8d3; color: var(--color-ink); }
/* ── The account shell ────────────────────────────────────────────────────────
   WooCommerce's My Account and a Shopify customer account are one shape: the customer and
   their sections on the left, the section they chose on the right. This dashboard used to be
   a 760px column with the identity stacked over a six-tab bar — a dialog with a menu, not an
   account. It is the same shell those two use now, and a phone keeps the full-screen sheet
   with the two-row rail it already had. Every panel id and tab name is unchanged, so the
   controller, the deep links and the tests still speak the same words. */
.cd-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}
/* The rail is the account's fixed furniture: the customer scrolls the section, never the menu
   that got them there. Each pane owns its own overflow so the rail cannot be dragged away with
   the orders behind it. */
.cd-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 18px 20px;
  background: #fff;
  border-right: 1px solid #e3ebe6;
  border-radius: 22px 0 0 22px;
}
/* The reference dashboard opens with its own mark above the menu. It is the same GoFillAm logo
   the page uses, at the size a sidebar can hold, and it is hidden where the sidebar folds into
   the phone's chrome. */
.cd-brand {
  display: inline-flex;
  align-items: center;
  padding: 0 4px 2px;
  text-decoration: none;
}
.cd-brand img { display: block; width: 122px; height: 55px; object-fit: contain; }
.cd-side__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e8f0eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cd-side__foot a {
  color: #50665a;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.cd-side__foot a:hover { color: var(--color-green); text-decoration: underline; }
/* The rail spends its width on the name rather than on a label that wraps: the eyebrow holds
   one line, the way out is a touch smaller, and the greeting is a size down from the pane's
   heading. 280px is what those three need together. */
.cd-side .cd-header__top { gap: 8px; }
.cd-side .cd-header__eyebrow { white-space: nowrap; }
.cd-side .cd-welcome__name { font-size: 1.04rem; line-height: 1.34; }
.cd-side .customer-dashboard-signout { padding: 7px 11px; font-size: 0.74rem; }
.cd-main {
  padding: 22px 24px 30px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  background: #f7faf8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: start;
  column-gap: 22px;
}
/* The pane's own children occupy the first column; the right rail is the third column of the
   reference and lives in the second, so the shell itself is still the two-column shell the
   phone suite pins. */
.cd-main__head,
.cd-main > .cd-filters,
.cd-main > .cd-tab-content { grid-column: 1; }
.cd-rail { grid-column: 2; grid-row: 1 / span 3; }
/* The pane names the section the rail is on, the way an account page in either shop titles
   its own pane, so the choice is answered where the content starts. */
.cd-main__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  min-height: 1.2em;
}
.cd-main__heading { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cd-main__eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f8378;
}
.cd-main__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
.cd-main__tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.cd-main__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 210px;
  min-height: 42px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e3ebe6;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(20, 50, 34, 0.03);
}
.cd-main__search svg { width: 16px; height: 16px; color: #7a8c82; flex: 0 0 16px; }
.cd-main__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  color: var(--color-ink);
}
.cd-main__search input::placeholder { color: #8b9a91; }
.cd-main__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background: var(--color-green);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(10, 143, 60, 0.18);
  transition: background 0.18s ease, transform 0.18s ease;
}
.cd-main__cta:hover { background: var(--color-green-dark); }
.cd-main__cta:active { transform: translateY(1px); }
.cd-main__cta svg { width: 15px; height: 15px; flex: 0 0 15px; }
.cd-chrome { padding: 0; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
/* A section change is a quiet cross-fade, not a slide. The rail already says which way the
   customer went, and a panel that travels across the pane makes a menu switch feel like a page
   load. One short opacity change keeps it seamless and is removed under reduced motion. */
.cd-tab-content.is-entering { animation: cd-panel-in 0.16s ease both; }
@keyframes cd-panel-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.customer-dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
/* The account's own header is two rows. The first is the room and the two ways out of it; the
   second is the person, with the photo and the name on one line. Before this the close mark was
   pinned over the top-right corner while "Sign out" sat on the same line as a name that was
   allowed to wrap, so on a phone the two controls and the name competed for one row and the
   "Change photo" label landed under the greeting. */
.cd-header__top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}
.cd-header__eyebrow {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f8378;
}
.cd-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.cd-header__profile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
/* The greeting is three pieces on one small column: the eyebrow, the name, and the way to
   manage the photo. They were sitting on top of each other; a little air between them is what
   makes the name read as a name rather than as a block of text. */
.cd-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
}
.customer-dashboard-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: #0a8f3c; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(10, 143, 60, 0.22);
}
.customer-dashboard-header h2 {
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--color-ink); margin: 0;
  line-height: 1.2;
}
.cd-welcome__hello {
  display: block;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f8378;
}
.cd-welcome__name {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.36;
  overflow-wrap: anywhere;
}
.customer-dashboard-header #cd-email {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
  margin: 8px 0 0;
  color: #6b7a70;
  font-size: 0.82rem;
  line-height: 1.45;
}
.customer-dashboard-signout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none; border: 1px solid var(--color-border);
  border-radius: 999px; padding: 8px 14px; font-size: 0.78rem;
  color: var(--color-muted-2); cursor: pointer; font-family: var(--font-body);
  flex: 0 0 auto;
  min-height: 36px;
}
.customer-dashboard-signout svg { width: 15px; height: 15px; }
.customer-dashboard-signout:hover { border-color: #ef4444; color: #ef4444; }

/* ── The section rail ─────────────────────────────────────────────────────────
   A filled active pill instead of a two-pixel underline. The rail is a real grid on a
   laptop, and a five-column grid on a phone, so all five sections stay in one control
   and none of the names is left off the edge waiting for a sideways swipe. */
/* One clean segmented bar rather than a decorated rail. The six sections are equal columns,
   each with its own icon and name, and the active one is a solid green pill. Nothing sits above
   the bar: the section names are the only thing that needs to be read. Six across on a laptop;
   on a phone they break to two rows of three (see the phone block), because a row of six at
   360px would leave each name a third of a word. */
.cd-nav { margin: 0; }
.cd-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin: 0;
  border: 0;
  padding: 0;
}
.cd-tab {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.3;
  color: #50665a;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  font-weight: 600;
  text-align: left;
}
.cd-tab__icon { display: inline-flex; width: 19px; height: 19px; flex: 0 0 19px; }
.cd-tab__icon svg { width: 100%; height: 100%; display: block; }
.cd-tab__label { max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; }
.cd-tab.is-active {
  background: #0a8f3c;
  color: #fff;
  border-color: #0a8f3c;
  box-shadow: 0 6px 14px rgba(10, 143, 60, 0.22);
}
.cd-tab:hover:not(.is-active) {
  background: #f4faf6;
  border-color: #e0ebe3;
  color: var(--color-ink);
}
.cd-tab:focus-visible {
  outline: 3px solid rgba(10, 143, 60, 0.32);
  outline-offset: 2px;
}
.cd-main > .cd-filters { margin: 0 0 18px; }
.cd-main > .cd-tab-content { padding: 0; }
.cd-tab-content { min-height: 200px; }
/* The pane is a fixed-height grid, so its own padding-bottom sits at the foot of the pane rather
   than after a section that overflows it. Scrolled to the end, the last card used to rest exactly
   on the pane's edge and lose its bottom border and shadow; the breathing room has to live in the
   section's own scrollable overflow, after the last card. A phone and a tablet are plain block
   scrollers, where the pane's padding already travels with the content, so this is the laptop
   grid's concern only. The schedule rail is a flex scroller of its own for the same reason. */
@media (min-width: 1181px) {
  .cd-main > .cd-tab-content::after {
    content: "";
    display: block;
    height: 30px;
  }
  .cd-rail::after {
    content: "";
    display: block;
    flex: 0 0 14px;
  }
}

/* ── The greeting hero ───────────────────────────────────────────────────────
   The reference dashboard opens on a wide welcome panel with a short summary and the next step.
   This is the same shape in GoFillAm's green, with a cylinder-and-route drawing rather than a
   stock photograph: it says what the business is without shipping a second image. */
.cd-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(120deg, #0a8f3c 0%, #0d6f3b 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(10, 143, 60, 0.18);
}
.cd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 34%);
  pointer-events: none;
}
.cd-hero__copy { position: relative; z-index: 1; min-width: 0; max-width: 58%; }
.cd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.cd-hero__title {
  margin: 10px 0 7px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #fff;
}
.cd-hero__title span { color: #f5c542; }
.cd-hero__text { margin: 0; font-size: 0.82rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.cd-hero__meta {
  margin: 6px 0 0;
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.68);
}
.cd-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cd-hero__cta,
.cd-hero__ghost {
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.cd-hero__cta { background: #fff; color: #0a6b34; border: 1px solid #fff; }
.cd-hero__cta:hover { background: #f4fbf6; }
.cd-hero__ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.36); }
.cd-hero__ghost:hover { background: rgba(255, 255, 255, 0.16); }
.cd-hero__art {
  position: relative;
  z-index: 1;
  flex: 0 0 210px;
  width: 210px;
  max-width: 40%;
}
.cd-hero__art svg { display: block; width: 100%; height: auto; }

/* ── The right rail ──────────────────────────────────────────────────────────
   The reference's third column: the week, the last few events and a human to talk to. It is
   sticky inside the section scroller so it stays with the customer while a long order list
   moves; below the width where three columns would squeeze the pane it is hidden entirely. */
.cd-rail {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(min(92dvh, 920px) - 52px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cd-rail::-webkit-scrollbar { width: 0; height: 0; }
.cd-rail__card {
  padding: 16px;
  border: 1px solid #e0ebe4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 50, 34, 0.04);
}
.cd-rail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cd-rail__kicker {
  display: block;
  margin-bottom: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d8f86;
}
.cd-rail__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--color-ink);
}
.cd-rail__link {
  border: 0;
  background: none;
  padding: 2px;
  font-family: var(--font-body);
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--color-green-ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.cd-rail__link:hover { text-decoration: underline; }
.cd-rail__week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-bottom: 12px; }
.cd-rail__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #6f8378;
}
.cd-rail__day.is-today { background: #f4faf6; }
.cd-rail__day.is-active {
  background: #0a8f3c;
  color: #fff;
  box-shadow: 0 6px 14px rgba(10, 143, 60, 0.2);
}
.cd-rail__day-name { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cd-rail__day-num { font-size: 0.88rem; font-weight: 800; color: var(--color-ink); }
.cd-rail__day.is-active .cd-rail__day-num { color: #fff; }
.cd-rail__next { padding: 12px; border: 1px solid #dcebe2; border-radius: 14px; background: #f4fbf6; }
.cd-rail__next-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cd-rail__next-label { font-size: 0.59rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #16874a; }
.cd-rail__next-ref { display: block; margin-top: 6px; font-size: 0.9rem; font-weight: 800; color: var(--color-ink); }
.cd-rail__next-date { display: block; margin-top: 2px; font-size: 0.71rem; line-height: 1.4; color: var(--color-muted-2); }
.cd-rail__next-link {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-green-ink-2);
  cursor: pointer;
}
.cd-rail__next-link:hover { text-decoration: underline; }
.cd-rail__muted { margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--color-muted-2); }
.cd-rail__activity { display: flex; flex-direction: column; gap: 2px; }
.cd-rail__activity-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #eef3ef;
  background: none;
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
}
.cd-rail__activity-row:last-child { padding-bottom: 0; border-bottom: 0; }
.cd-rail__activity-row:hover .cd-rail__activity-main strong { color: var(--color-green); }
.cd-rail__activity-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #0a8f3c;
  box-shadow: 0 0 0 3px #e8f7ee;
}
.cd-rail__activity-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.cd-rail__activity-main strong { font-size: 0.77rem; line-height: 1.3; color: var(--color-ink); }
.cd-rail__activity-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.63rem;
  line-height: 1.35;
  color: var(--color-muted-2);
}
.cd-rail__activity-amount { font-size: 0.73rem; font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.cd-rail__help { background: #0a8f3c; border-color: #0a8f3c; color: #fff; }
.cd-rail__help .cd-rail__kicker { color: rgba(255, 255, 255, 0.72); }
.cd-rail__help h3 { margin-bottom: 5px; font-size: 1.15rem; color: #fff; }
.cd-rail__help p { margin: 0; font-size: 0.75rem; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.cd-rail__help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cd-rail__help-link {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.cd-rail__help-link:hover { background: rgba(255, 255, 255, 0.12); }
.cd-rail__help-link--solid { background: #fff; border-color: #fff; color: #0a6b34; }
.cd-rail__help-link--solid:hover { background: #f4fbf6; }
.cd-empty.cd-search-empty { margin-top: 12px; }

/* ── Filter toolbar ──
   Native selects carry the value; these custom triggers are the face. The bar is one row on a
   laptop and a two-column grid on a phone, with the live count on its own line underneath. */
.cd-filters {
  display: flex;
  gap: 10px;
  padding: 10px;
  align-items: center;
  border: 1px solid #eef1ef;
  border-radius: 16px;
  background: #fbfcfb;
  box-shadow: 0 1px 2px rgba(31, 47, 45, 0.04);
  margin-bottom: 18px;
  position: relative;
  flex-wrap: wrap;
}
.cd-filter {
  position: relative;
}
/* The real control keeps the value but is not painted — the trigger speaks. */
.cd-filter-select--native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.cd-filter__trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid #e3e8e5;
  border-radius: 12px;
  background: var(--color-surface);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.cd-filter__trigger:hover { border-color: #cfd8d3; }
.cd-filter__trigger:focus-visible {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(0, 160, 72, 0.15);
}
.cd-filter.is-open .cd-filter__trigger,
.cd-filter.is-active .cd-filter__trigger {
  border-color: rgba(0, 160, 72, 0.5);
  background: #f2fbf6;
  box-shadow: 0 0 0 3px rgba(0, 160, 72, 0.1);
}
.cd-filter__icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: var(--color-muted-2);
  flex-shrink: 0;
}
.cd-filter.is-active .cd-filter__icon,
.cd-filter.is-open .cd-filter__icon { color: var(--color-green-ink-2); }
.cd-filter__icon svg { width: 100%; height: 100%; }
.cd-filter__caption { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cd-filter__kicker {
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9aa6a0;
  font-weight: 600;
}
.cd-filter__value {
  font-size: 0.82rem;
  color: var(--color-ink);
  font-weight: 500;
  white-space: nowrap;
}
.cd-filter__chevron {
  display: inline-flex;
  width: 15px;
  height: 15px;
  color: #9aa6a0;
  transition: transform 0.22s ease;
}
.cd-filter__chevron svg { width: 100%; height: 100%; }
.cd-filter.is-open .cd-filter__chevron { transform: rotate(180deg); }
.cd-filter__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-width: min(300px, calc(100vw - 48px));
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #e8ecea;
  background: var(--color-surface);
  box-shadow: 0 18px 40px -14px rgba(31, 47, 45, 0.28), 0 2px 6px rgba(31, 47, 45, 0.06);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.cd-filter.is-open .cd-filter__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.cd-filter__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--color-muted);
  text-align: left;
}
.cd-filter__option:hover { background: #f4f7f5; }
.cd-filter__option.is-selected { background: #ecfdf5; color: #14713c; font-weight: 500; }
.cd-filter__check { opacity: 0; color: var(--color-green-ink-2); font-weight: 700; }
.cd-filter__option.is-selected .cd-filter__check { opacity: 1; }
.cd-filter-clear {
  border: 1px dashed #d6ddd9;
  background: none;
  border-radius: 10px;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--color-muted-2);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.cd-filter-clear:hover { border-color: #ef4444; color: #ef4444; }
.cd-filter-count {
  font-size: 0.8rem;
  color: var(--color-muted-faint);
  margin-left: auto;
  font-family: var(--font-body);
  white-space: nowrap;
}
.cd-orders-list { display: flex; flex-direction: column; gap: 12px; }
.cd-order-card {
  background: var(--color-surface-2); border-radius: 12px; padding: 16px;
  border: 1px solid var(--color-border); transition: border-color 0.2s;
}
.cd-order-card:hover { border-color: var(--color-green); }
.cd-order-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.cd-order-ref { font-weight: 700; color: var(--color-ink); font-size: 0.95rem; }
.cd-order-badge {
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}
.cd-order-badge--completed { background: #d1fae5; color: #065f46; }
.cd-order-badge--cancelled { background: #fee2e2; color: #991b1b; }
.cd-order-badge--awaiting_payment { background: #fef3c7; color: #92400e; }
.cd-order-badge--paid { background: #dbeafe; color: #1e40af; }
.cd-order-badge--assigned { background: #e0e7ff; color: #3730a3; }
.cd-order-badge--picked_up { background: #ede9fe; color: #5b21b6; }
.cd-order-badge--refilling { background: #fce7f3; color: #9d174d; }
.cd-order-badge--delivered { background: #d1fae5; color: #065f46; }
.cd-order-detail { font-size: 0.85rem; color: var(--color-muted-2); margin-bottom: 4px; }
.cd-order-actions { display: flex; gap: 8px; margin-top: 8px; }
.cd-btn-receipt {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--color-green);
  background: var(--color-surface); color: var(--color-green-ink-2); font-size: 0.8rem;
  font-weight: 600; cursor: pointer; font-family: var(--font-body);
  transition: background 0.2s;
}
.cd-btn-receipt:hover { background: var(--color-mint); }
.cd-btn-reorder {
  padding: 6px 14px; border-radius: 8px; border: none;
  background: var(--color-green); color: #fff; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; font-family: var(--font-body);
  transition: opacity 0.2s; margin-left: 8px;
}
.cd-btn-reorder:hover { opacity: 0.85; }
/* A payment reads in one glance: what it was for, when and how it was paid, how much, where the
   order is now — and the receipt for the one that has to be kept. Ref alone was a column of
   numbers that answered none of those questions. */
.cd-txn-summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 0 4px 10px; border-bottom: 1px dashed var(--color-border); margin-bottom: 12px;
}
.cd-txn-summary__count {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--color-muted-2);
}
.cd-txn-summary__total { font-size: 0.95rem; font-weight: 700; color: var(--color-green-ink-2); }
.cd-txn-card {
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: 12px; padding: 14px 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px;
  align-items: center;
}
.cd-txn-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cd-txn-ref {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.92rem; font-weight: 600; color: var(--color-ink);
}
.cd-txn-chip {
  border-radius: 999px; padding: 2px 8px; background: var(--color-mint);
  color: var(--color-green-ink-2); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.cd-txn-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.cd-txn-amount { font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.cd-txn-state { font-size: 0.72rem; color: var(--color-muted-2); }
.cd-txn-receipt {
  grid-column: 1 / -1; justify-self: start;
  background: none; border: 1px solid var(--color-border); border-radius: 999px;
  padding: 5px 12px; font-family: var(--font-body); font-size: 0.74rem; font-weight: 600;
  color: var(--color-muted-2); cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.cd-txn-receipt:hover { border-color: var(--color-green); color: var(--color-green-ink-2); background: var(--color-surface); }
.cd-txn-date { font-size: 0.8rem; color: var(--color-muted-faint); }
.cd-empty { text-align: center; color: var(--color-muted-2); padding: 40px 0; font-size: 0.9rem; }

/* ── The account at a glance ─────────────────────────────────────────────────
   The section the account opens on. Both platforms it is being held against — a Shopify
   customer's account home and WooCommerce's My Account — answer four questions before they
   show anything to search through: how much, how much is still moving, what is the one order
   I am waiting on, and what can I do next. So the order is stats, then the open order with its
   own progress, then the three most recent rows, then the way out.

   Everything here is drawn from the same one history the Orders tab reads, so a figure can
   never disagree with the list it sits beside. Figures are body type rather than the display
   face: Boldonse draws well outside its own line box and carries no tabular figures, which is
   fine for a title and wrong for a column of money. */
.cd-ov { display: flex; flex-direction: column; gap: 14px; }
.cd-ov__section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 0;
}
.cd-ov__section-kicker {
  display: block;
  font-size: 0.59rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d8f86;
}
.cd-ov__section-head h3 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--color-ink);
}
.cd-ov__section-note { font-size: 0.67rem; line-height: 1.4; color: var(--color-muted-2); white-space: nowrap; }
.cd-ov__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.cd-stat {
  position: relative;
  background: #fff;
  border: 1px solid #e6eee9;
  border-radius: 16px;
  padding: 14px 14px 15px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 50, 34, 0.035);
}
.cd-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #eef8f1;
  color: #0a8f3c;
}
.cd-stat:nth-child(2) .cd-stat__icon { background: #eef4ff; color: #4067b8; }
.cd-stat:nth-child(3) .cd-stat__icon { background: #fff6e6; color: #b7791f; }
.cd-stat:nth-child(4) .cd-stat__icon { background: #f4efff; color: #7c5cbf; }
.cd-stat__icon svg { width: 100%; height: 100%; display: block; }
.cd-stat__value {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  overflow-wrap: anywhere;
}
.cd-stat__label {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-muted-2);
}

/* The one order still moving, with the path it is on. The path is the point: a status word
   has to be interpreted, a filled step four of four is already understood. */
.cd-active {
  background: #f2fbf6;
  border: 1px solid #d8ece0;
  border-radius: 16px;
  padding: 15px 16px 14px;
}
.cd-active--clear { background: var(--color-surface-2); border-color: var(--color-border); }
.cd-active__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cd-active__kicker {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #16874a;
}
.cd-active__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
}
.cd-active__ref { font-size: 1rem; font-weight: 800; color: var(--color-ink); }
.cd-active__total { font-size: 0.98rem; font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.cd-active__calm { margin: 8px 0 0; font-size: 0.87rem; line-height: 1.55; color: var(--color-muted-2); }
.cd-active__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed #dfe8e2;
}
.cd-active__meta { font-size: 0.78rem; color: var(--color-muted-2); min-width: 0; }
.cd-active__track {
  border: 0;
  border-radius: 999px;
  padding: 9px 17px;
  background: var(--color-green);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.cd-active__track:hover { background: var(--color-green-dark); }
.cd-active__track:active { transform: translateY(1px); }
.cd-active__track:focus-visible { outline: 3px solid rgba(10, 143, 60, 0.34); outline-offset: 2px; }

/* Four steps across, evenly, with the line behind them: the segments behind the dot are filled
   and the segments ahead of it are not, so the one dot that is bigger is where the order is. */
.cd-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 4px;
  padding: 0;
}
.cd-step {
  position: relative;
  padding-top: 20px;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--color-muted-2);
}
.cd-step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e0e9e4;
}
.cd-step:first-child::before { display: none; }
.cd-step.is-done::before,
.cd-step.is-now::before { background: #0a8f3c; }
.cd-step__dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #c8d5ce;
  z-index: 1;
}
.cd-step.is-done .cd-step__dot { background: #0a8f3c; border-color: #0a8f3c; }
.cd-step.is-now .cd-step__dot {
  background: #0a8f3c;
  border-color: #b4fc2c;
  box-shadow: 0 0 0 3px rgba(180, 252, 44, 0.4);
}
.cd-step.is-done .cd-step__label,
.cd-step.is-now .cd-step__label { color: #14713c; font-weight: 700; }

/* Panels: a titled card each. The head carries the way on when there is one, so "View all" is
   in the same place on every size of screen. */
.cd-ov__panel {
  background: #fff;
  border: 1px solid #e6eee9;
  border-radius: 16px;
  padding: 14px 14px 15px;
  box-shadow: 0 1px 2px rgba(20, 50, 34, 0.035);
}
.cd-ov__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cd-ov__panel-head h3 {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-2);
}
.cd-ov__link {
  border: 0;
  background: none;
  padding: 4px 2px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-green-ink-2);
  cursor: pointer;
  min-height: 32px;
}
.cd-ov__link:hover { text-decoration: underline; }
.cd-ov__link:focus-visible { outline: 2px solid rgba(10, 143, 60, 0.4); outline-offset: 2px; border-radius: 6px; }
.cd-ov__table { display: flex; flex-direction: column; }
.cd-ov__table-head,
.cd-ov__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) auto auto;
  align-items: center;
  gap: 12px;
}
.cd-ov__table-head {
  padding: 0 11px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-faint);
}
.cd-ov__table-head span:nth-child(3) { text-align: right; }
.cd-ov__table-head span:nth-child(4) { text-align: right; }
.cd-ov__row {
  width: 100%;
  min-height: 52px;
  padding: 9px 11px;
  margin-bottom: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cd-ov__row:last-child { margin-bottom: 0; }
.cd-ov__row:hover { border-color: var(--color-green); background: #f7fcf9; }
.cd-ov__row:focus-visible { outline: 3px solid rgba(10, 143, 60, 0.32); outline-offset: 2px; }
.cd-ov__row-ref { font-size: 0.86rem; font-weight: 700; color: var(--color-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cd-ov__row-date { font-size: 0.72rem; color: var(--color-muted-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-ov__row-amount { font-size: 0.85rem; font-weight: 700; color: var(--color-ink); white-space: nowrap; text-align: right; }
.cd-ov__row .cd-order-badge { justify-self: end; font-size: 0.62rem; padding: 2px 8px; max-width: none; white-space: nowrap; }

.cd-ov__actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.cd-ov__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 78px;
  padding: 11px 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 13px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--color-ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.cd-ov__action:hover { border-color: var(--color-green); background: #f7fcf9; transform: translateY(-1px); }
.cd-ov__action:focus-visible { outline: 3px solid rgba(10, 143, 60, 0.32); outline-offset: 2px; }
.cd-ov__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 10px;
  background: #eef8f1;
  color: #16874a;
}
.cd-ov__action-icon svg { width: 100%; height: 100%; display: block; }


.nav-account-link {
  display: none;
}

/* ---------- Mission ticker ---------- */

.mission-ticker {
  --mission-ticker-edge: #0d1f1b;
  position: relative;
  isolation: isolate;
  /* Four layers under one surface: two soft pools of brand light, a hairline grid that only
     shows when the eye stays long enough to find it, and the deep green itself. The strip is a
     band between two large sections, so it reads as a lit shelf rather than a flat divider. */
  background:
    radial-gradient(460px 130px at 22% 0%, rgba(255, 92, 76, 0.22), transparent 72%),
    radial-gradient(520px 120px at 74% 0%, rgba(255, 205, 120, 0.16), transparent 74%),
    radial-gradient(860px 150px at 12% 50%, rgba(0, 198, 92, 0.2), transparent 70%),
    radial-gradient(720px 130px at 88% 50%, rgba(180, 252, 44, 0.13), transparent 72%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 52px),
    linear-gradient(180deg, #10241f, #0b1b18 54%, #10241f);
  overflow: hidden;
  padding: 26px 0 28px;
  box-shadow:
    inset 0 1px 0 rgba(180, 252, 44, 0.22),
    inset 0 -1px 0 rgba(180, 252, 44, 0.14);
}

.mission-ticker::before,
.mission-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 88px;
  z-index: 4;
  pointer-events: none;
}

.mission-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--mission-ticker-edge) 6%, rgba(13, 31, 27, 0.82) 42%, transparent);
}

.mission-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--mission-ticker-edge) 6%, rgba(13, 31, 27, 0.82) 42%, transparent);
}

/* ── The season on the strip ─────────────────────────────────────────────────────────────────
   The band is the one thing on the page already carrying words across the screen, so the season
   rides it rather than sitting somewhere else: a string of carol bulbs along the top edge, snow
   drifting through the deep green, and a greeting card that keeps station in the loop beside the
   values and the shop's ticket. Both halves of the marquee carry the card, because js/main.js
   measures one group and clones it to fill the row.

   Every moving part is a background or an opacity on a layer of its own: one paint, no layout, and
   all of it sits inside `.mission-ticker`, which is a held band — the snow and the bulbs stop with
   the scroll and with the band being off screen, so a paused frame costs nothing. */
.mission-ticker__snow,
.mission-ticker__carol-lights {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

/* Two point fields on one element, drifting at two speeds: the near flakes are wider and slide
   from the top-right, the far ones are smaller, dimmer, and go the other way. */
.mission-ticker__snow {
  top: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.78) 1.35px, transparent 2px),
    radial-gradient(circle at 58% 66%, rgba(255, 255, 255, 0.42) 0.95px, transparent 1.6px);
  background-size: 116px 104px, 78px 70px;
  background-position: 0 -104px, 0 -70px;
  animation: mission-ticker-snow 26s linear infinite;
  opacity: 0.9;
}

@keyframes mission-ticker-snow {
  from { background-position: 0 -104px, 0 -70px; }
  to { background-position: 116px 0, -78px 0; }
}

/* A wire along the top with three colours of bulb on it, painted as three point layers offset
   from each other so the string reads as alternating rather than as one blinking row. */
.mission-ticker__carol-lights {
  top: 0;
  height: 12px;
  background-image:
    linear-gradient(90deg, transparent, rgba(255, 236, 196, 0.28) 12%, rgba(255, 236, 196, 0.28) 88%, transparent),
    radial-gradient(circle at 50% 55%, #fff3cf 0 1.9px, rgba(255, 243, 207, 0.35) 2.6px, transparent 4.4px),
    radial-gradient(circle at 50% 55%, #ff7b6b 0 1.9px, rgba(255, 123, 107, 0.3) 2.6px, transparent 4.4px),
    radial-gradient(circle at 50% 55%, #8bffb0 0 1.9px, rgba(139, 255, 176, 0.3) 2.6px, transparent 4.4px);
  background-size: 100% 1px, 48px 12px, 48px 12px, 48px 12px;
  background-position: 0 0, 0 0, 16px 0, 32px 0;
  background-repeat: no-repeat, repeat-x, repeat-x, repeat-x;
  filter: drop-shadow(0 0 5px rgba(255, 208, 128, 0.45));
  animation: mission-ticker-lights 4.2s ease-in-out infinite;
}

@keyframes mission-ticker-lights {
  0%, 100% { opacity: 0.92; }
  42% { opacity: 0.6; }
  64% { opacity: 1; }
}

/* The greeting card: deep red under a warm skin, the same ticket shape as the shop's, so the two
   ride the loop as a pair rather than as a banner dropped into a strip. */
.mission-ticker__festive {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 9px 18px 9px 11px;
  border: 1px solid rgba(255, 226, 156, 0.4);
  border-radius: 16px;
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(255, 110, 92, 0.45), transparent 62%),
    linear-gradient(120deg, #7f1310, #a8171b 52%, #6b0f0e);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 236, 200, 0.3);
  color: #fff6e6;
  white-space: nowrap;
}

.mission-ticker__festive-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 236, 196, 0.36);
  border-radius: 50%;
  background: rgba(255, 236, 196, 0.14);
  color: #ffe9b8;
}

.mission-ticker__festive-icon svg { width: 16px; height: 16px; }

/* The signup offer is a second Christmas card rather than a repeat of the greeting: it reads
   in the brand's own green, so the discount is the card the eye lands on while the greeting
   stays red. Same shape and rhythm as the greeting, so the loop keeps one height. */
.mission-ticker__festive--credit {
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(190, 255, 90, 0.34), transparent 62%),
    linear-gradient(120deg, #073f26, #0a6b3b 52%, #04331f);
  border-color: rgba(190, 255, 120, 0.42);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(226, 255, 190, 0.26);
}
.mission-ticker__festive--credit .mission-ticker__festive-icon {
  border-color: rgba(210, 255, 150, 0.42);
  background: rgba(190, 255, 90, 0.16);
  color: #d6ff88;
}
.mission-ticker__festive--credit .mission-ticker__festive-eyebrow { color: #d6ff88; }

.mission-ticker__festive-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mission-ticker__festive-eyebrow {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd9a8;
}

.mission-ticker__festive-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}

.mission-ticker__festive-note {
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 246, 230, 0.74);
}

@media (prefers-reduced-motion: reduce) {
  .mission-ticker__snow,
  .mission-ticker__carol-lights { animation: none; }
}

/* A lit filament under the rail, travelling the whole width while the cards travel the other
   way. It is the one moving line that is not carrying words, so it can be pure light. */
.mission-ticker__rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(180, 252, 44, 0.08) 20%,
    var(--color-lime) 50%,
    rgba(180, 252, 44, 0.08) 80%,
    transparent 100%
  );
  background-size: 52% 100%;
  background-repeat: no-repeat;
  animation: mission-ticker-rail 6.5s linear infinite;
  opacity: 0.78;
}

.mission-ticker__track {
  position: relative;
  z-index: 2;
  display: flex;
  width: max-content;
  --mission-ticker-distance: 50%;
  animation: mission-ticker-scroll 14s linear infinite;
  padding-block: 2px;
}

.mission-ticker__track--waiting {
  animation-play-state: paused;
}

/* The strip is a marquee, and a marquee scrolls: it does not hold still for a pointer resting on
   it. It does hold still for the keyboard — that is the one case where stopping is the difference
   between a link somebody can use and a link that travels out from under them as they reach it.

   The shop's ticket is still a link, so the words have to survive being read on the move. */
.mission-ticker:focus-within .mission-ticker__track {
  animation-play-state: paused;
}

.mission-ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 18px;
  padding-right: 18px;
}

/* The labels are a status mark rather than a solid sticker: a lime dot, a skin of light and a
   hairline edge, so the eye finds "Mission" and "Our Values" without either one shouting over
   the sentence they introduce. */
.mission-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #eaffc0;
  background: linear-gradient(180deg, rgba(180, 252, 44, 0.19), rgba(180, 252, 44, 0.07));
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(180, 252, 44, 0.34);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 7px 18px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.mission-ticker__label::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow:
    0 0 0 3px rgba(180, 252, 44, 0.11),
    0 0 12px rgba(180, 252, 44, 0.58);
}

.mission-ticker__mission {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: 0.018em;
  text-transform: uppercase;
  color: var(--color-white);
  white-space: nowrap;
}

/* The sentence is the one piece of type on the strip that can carry a gradient without losing
   its weight: white for the first half, then the brand's lime at the last clause. The fallback
   above is the plain white every browser can paint; the clipped version is only opted into by
   the browsers that can do it. */
@supports (-webkit-background-clip: text) {
  .mission-ticker__mission {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 54%, #e6ffc1 76%, var(--color-lime) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.mission-ticker__value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 6px 16px rgba(0, 0, 0, 0.12);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.mission-ticker__value:hover {
  color: var(--color-white);
  border-color: rgba(180, 252, 44, 0.34);
  background: linear-gradient(180deg, rgba(180, 252, 44, 0.12), rgba(255, 255, 255, 0.04));
}

.mission-ticker__value-icon {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--color-lime);
  opacity: 0.86;
}

.mission-ticker__divider {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: linear-gradient(135deg, #ffb45c, var(--color-orange));
  box-shadow: 0 0 12px rgba(220, 120, 28, 0.5);
  transform: rotate(45deg);
}

/* ── The season, riding the same loop as the mission ────────────────────────
   A ticket travelling with the mission and the values. From 25 September to 1 October 2026 it
   was the Independence Day greeting; in the first three days of a month up to that date it is
   the new-month one. js/celebrate.js picks which, and out of season it shows neither — so for
   the rest of the year, and from October 2nd 2026 onwards for good, this strip is exactly the
   strip it always was.

   It is *inside* a group rather than beside the track, because the script measures one group's
   width and clones it to fill the row: a greeting outside the groups would be stranded at the
   seam. Both tokens ship in both groups for the same reason — the next group is what the first
   is measured against, so the two have to stay identical.

   The flag is drawn, not shipped: three bands in a flex row cost no request and stay sharp at
   any size. They carry the national flag's own green (#008751) rather than the brand's
   brighter one — at this size a shade that is merely close is the one thing a Nigerian visitor
   would notice. The wordmark below is the same display face the flyer uses, so the ticket and
   the pop-up read as one campaign rather than as a banner and a flyer that happen to
   coincide. */
.mission-ticker__season {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 13px;
  padding: 9px 18px 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 135, 81, 0.5);
  background:
    radial-gradient(120% 170% at 0% 50%, rgba(0, 135, 81, 0.42), transparent 64%),
    linear-gradient(100deg, rgba(0, 198, 92, 0.18), rgba(255, 255, 255, 0.03) 62%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 26px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  white-space: nowrap;
}

/* `hidden` is how both tokens arrive, and the display above would otherwise beat the
   browser's own rule for it: the UA's `[hidden]` is not `!important`, so it loses to any class
   that sets a display. */
.mission-ticker__season[hidden] {
  display: none;
}

/* The ribbon across the top: the flag's own three bands on the anniversary, and the brand's
   green into lime at every other month's opening. */
.mission-ticker__season::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #008751 0 33.33%,
    #f4f6f2 33.33% 66.66%,
    #008751 66.66% 100%
  );
}

.mission-ticker__season--month::before {
  background: linear-gradient(90deg, var(--color-green-bright), var(--color-lime));
}

/* A light travelling across the card, so the eye finds it in a row that is already moving.
   Transform only — the cheapest thing to animate on a track whose own transform never stops. */
.mission-ticker__season::after {
  content: "";
  position: absolute;
  inset: -50% -30%;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: mission-ticker-sheen 5.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mission-ticker-sheen {
  0%, 62% { transform: translateX(-130%); }
  100%    { transform: translateX(130%); }
}

/* 2:1, which is the flag's own proportion — at 1.5:1 it reads as a green-white-green chip
   rather than as Nigeria's flag. */
.mission-ticker__season-flag {
  display: inline-flex;
  flex-shrink: 0;
  width: 32px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 6px 14px rgba(0, 0, 0, 0.35);
}

.mission-ticker__season-band {
  flex: 1 1 0;
  background: #008751;
}

.mission-ticker__season-band--white { background: #f4f6f2; }

/* Three registers: where we are in the calendar, the greeting itself, and the one line that
   says why. Set in a column so the greeting stays the biggest thing in the ticket. */
.mission-ticker__season-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.mission-ticker__season--month {
  padding-left: 18px;
}

.mission-ticker__season-eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange-ink-2);
}

.mission-ticker__season--month .mission-ticker__season-eyebrow {
  color: var(--color-lime);
}

.mission-ticker__season-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.06rem;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-white);
}

.mission-ticker__season-note {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.66);
}

/* ── The shop's ticket, riding the same loop as the mission ────────────────
   The store is live, and this is where a visitor on the way down the page finds it out. It
   travels with the mission and the values rather than sitting in a banner above the fold,
   because the strip under the hero is where the eye already is.

   It is built like the season ticket beside it — a ribbon across the top, a light that passes
   over it, a shadow that lifts it off the dark — and differs in the one thing that matters:
   it is a link. So the loop holds still while the pointer or the keyboard is on the strip, the
   card carries a visible focus ring, and the arrow leans towards the shop on hover.

   The dot is drawn rather than shipped, and it is the one thing on the strip that says *now*
   rather than *always*: a dot with a ring that leaves it, no request, sharp at any size. */
.mission-ticker__ad {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 13px;
  padding: 9px 12px 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(180, 252, 44, 0.36);
  background:
    radial-gradient(130% 190% at 0% 50%, rgba(0, 198, 92, 0.56), transparent 58%),
    radial-gradient(90% 160% at 100% 100%, rgba(180, 252, 44, 0.14), transparent 60%),
    linear-gradient(105deg, rgba(11, 37, 25, 0.94), rgba(9, 28, 22, 0.72)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 34px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.mission-ticker__ad:hover {
  border-color: rgba(180, 252, 44, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 38px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(180, 252, 44, 0.1);
  transform: translateY(-1px);
}

/* The strip is dark, so the ring is the brand's own lime rather than the browser's blue: at a
   glance it is part of the card, and it is still unmistakably a focus ring. */
.mission-ticker__ad:focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 2px;
}

/* The ribbon: the brand's green into lime, the same furniture the season ticket wears. */
.mission-ticker__ad::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-green-bright) 18%,
    var(--color-lime) 55%,
    transparent
  );
  opacity: 0.95;
}

/* The light, slower and a beat behind the season ticket's own, so two cards riding the same row
   are never caught mid-sweep together. Transform only, like its neighbour. */
.mission-ticker__ad::after {
  content: "";
  position: absolute;
  inset: -50% -30%;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.2) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: mission-ticker-sheen 6.6s ease-in-out 0.9s infinite;
  pointer-events: none;
}

.mission-ticker__ad-live {
  position: relative;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 0 3px rgba(180, 252, 44, 0.16), 0 0 10px rgba(180, 252, 44, 0.55);
}

.mission-ticker__ad-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: mission-ticker-live 2.4s ease-out infinite;
}

@keyframes mission-ticker-live {
  0%   { transform: scale(1); opacity: 0.65; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Three registers, the same three the season ticket is set in: what this is, what it is called,
   and the one line of detail that says what is in it. */
.mission-ticker__ad-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.mission-ticker__ad-eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-lime);
}

.mission-ticker__ad-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.16;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--color-white);
}

.mission-ticker__ad-note {
  font-family: var(--font-body);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.012em;
  color: rgba(255, 255, 255, 0.66);
}

/* The one thing to click, and the only solid lime on the strip: the values are chips, the mission
   is type, and this is a door. */
.mission-ticker__ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 2px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ddff7d, var(--color-lime) 58%, #a7ee1c);
  color: var(--color-ink-solid);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 8px 20px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mission-ticker__ad-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.mission-ticker__ad:hover .mission-ticker__ad-cta,
.mission-ticker__ad:focus-visible .mission-ticker__ad-cta {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 8px 24px rgba(180, 252, 44, 0.32);
  transform: translateY(-1px);
}

.mission-ticker__ad:hover .mission-ticker__ad-arrow,
.mission-ticker__ad:focus-visible .mission-ticker__ad-arrow {
  transform: translateX(2px);
}

@keyframes mission-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--mission-ticker-distance)));
  }
}

@keyframes mission-ticker-rail {
  from { background-position: -80% 0; }
  to   { background-position: 180% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mission-ticker__track {
    animation: none;
  }

  /* The filament stays as a still line of light rather than travelling under a visitor who
     asked the page not to move. */
  .mission-ticker__rail {
    animation: none;
    background-position: 50% 0;
    opacity: 0.5;
  }

  /* The ticket keeps its light; it simply stops travelling — and rests off the edge of
     itself, where it is invisible rather than parked across the words. */
  .mission-ticker__season::after {
    animation: none;
  }

  /* The shop's ticket stops the same way: the light rests off its own edge, and the live dot
     keeps its colour and its size without the ring that leaves it. */
  .mission-ticker__ad::after,
  .mission-ticker__ad-live::after {
    animation: none;
  }
}

@media (max-width: 560px) {
  .mission-ticker {
    padding: 20px 0 21px;
  }

  .mission-ticker::before,
  .mission-ticker::after {
    width: 36px;
  }

  .mission-ticker__group {
    gap: 14px;
    padding-right: 14px;
  }

  .mission-ticker__label {
    gap: 7px;
    font-size: 0.61rem;
    padding: 7px 12px 7px 10px;
  }

  .mission-ticker__mission {
    font-size: 0.92rem;
  }

  .mission-ticker__value {
    gap: 7px;
    font-size: 0.7rem;
    padding: 7px 12px 7px 10px;
  }

  .mission-ticker__value-icon {
    width: 12px;
    height: 12px;
  }

  /* The ticket a size down. Its height is what sets the strip's height, so on a phone every
     register steps down together rather than the card being scaled by the width of the
     screen — scaled, the smallest line stops being readable before the largest one stops
     being a headline. */
  .mission-ticker__season {
    gap: 10px;
    padding: 7px 14px 8px 11px;
    border-radius: 14px;
  }

  .mission-ticker__season--month {
    padding-left: 14px;
  }

  .mission-ticker__season-flag {
    width: 26px;
    height: 13px;
  }

  .mission-ticker__season-eyebrow {
    font-size: 0.53rem;
    letter-spacing: 0.1em;
  }

  .mission-ticker__season-title {
    font-size: 0.9rem;
  }

  .mission-ticker__season-note {
    font-size: 0.61rem;
  }

  /* The shop's ticket a size down, the same way the season's is: every register steps down
     together rather than the card being scaled by the width of the screen, so the detail line
     stays readable while the headline stays a headline. */
  .mission-ticker__ad {
    gap: 10px;
    padding: 7px 10px 8px 11px;
    border-radius: 14px;
  }

  .mission-ticker__ad-title {
    font-size: 0.94rem;
  }

  .mission-ticker__ad-note {
    font-size: 0.66rem;
  }

  .mission-ticker__ad-cta {
    font-size: 0.6rem;
    padding: 6px 10px;
  }
}

/* ---------- Why GoFillAm ---------- */

/* The section after the hero starts inside it — three pixels up — and it is a later sibling, so its
   white is painted over the hero's foot rather than under it. That overlap is the other half of the
   same guard: if the browser hands the hero's own paint back a row short, the missing row falls in
   the strip this section already covers, and white over white is nothing to see. Three pixels is
   well inside the white the hero paints itself — the curve is still 2.5% deep at its shallowest
   point, 20px on an 817px hero — so what this covers is white, and no part of the picture is cut
   by it. */
.hero + .why {
  margin-top: -3px;
}

.why {
  position: relative;
  background-color: var(--color-surface);
  padding: 100px 0 160px;
  overflow: hidden;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 3.2rem);
  text-align: center;
  color: var(--color-ink);
  margin: 0 0 72px;
}

.why__image {
  display: block;
  max-width: 560px;
  width: 100%;
  height: auto;
  aspect-ratio: 1350 / 1476;
  margin: 0 auto;
}

.why__image-wrap {
  animation: why-image-breathe 6s ease-in-out infinite;
}

@keyframes why-image-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .why__image-wrap {
    animation: none;
  }
}

/* ──────────────── The promise, one story at a time ────────────────
   The band under "Why GoFillAm" makes the page's one promise in the shape of a headline — gas
   to your door, one clear price per kilo — and then shows who that is for: a home, a business.

   Both stories stand in the same cell of one grid (grid-area 1 / 1), so the band is the height
   of the taller of them and the video below never jumps when the story changes. Only the story
   that is `active` is painted and read; the other is held invisible and out of the way.

   The white card is the picture's own surface rather than a frame drawn around it: the supplied
   portraits are cut on white, so a white card lets them sit on the page without showing the cut. */
.spotlight {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 6.4vw, 92px) 0 clamp(48px, 5.4vw, 80px);
  /* White, like the section above it: the band is a part of the page's own paper rather than a
     second colour laid on top of it. The contour is pressed into that same sheet rather than laid
     over it — faint enough that the white still reads as white from a step back, and fitted to the
     band rather than tiled, so there is no seam for the eye to catch. */
  background-color: var(--color-surface);
  background-image: url("../assets/img/contour-paper.jpg");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

/* The only thing on the ground is a field of the brand's own dots, held far enough back to be a
   texture and faded out at every edge, so the white still reads as white and the two columns
   stand on nothing but the page. */
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(0, 160, 72, 0.5) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.07;
  -webkit-mask-image: radial-gradient(88% 76% at 74% 46%, #000 0%, transparent 74%);
  mask-image: radial-gradient(88% 76% at 74% 46%, #000 0%, transparent 74%);
  pointer-events: none;
}

/* The second thing on the ground, behind the portrait: the arch the photographs are cut into,
   drawn once more in the brand's green at three percent and sunk under the picture, so the shape
   the eye meets in the portrait is already in the page before it gets there — present enough to
   find, never enough to name. It is a field, not a frame: it runs off the right edge and is clipped
   by the band. */
.spotlight::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(-140px, -5vw, -40px);
  z-index: 0;
  width: min(44vw, 540px);
  aspect-ratio: 5 / 6;
  translate: 0 -50%;
  border: 1px solid rgba(0, 160, 72, 0.03);
  border-radius: 999px 999px 20px 20px;
  background: radial-gradient(120% 78% at 50% 26%, rgba(0, 160, 72, 0.03), transparent 72%);
  pointer-events: none;
}

.spotlight > .container {
  position: relative;
  z-index: 1;
}

.spotlight__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 26px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-green-ink);
}

/* One hairline either side, the width of a thumb: the label reads as a caption to the band rather
   than as a line of small print left over from the menu. */
.spotlight__eyebrow::before,
.spotlight__eyebrow::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 1px;
  background: rgba(0, 160, 72, 0.34);
}

/* The display face set as large as a phone and a desktop allow without breaking the sentence
   across three lines on the small one: `text-wrap: balance` splits it evenly instead of leaving
   "kilo." alone on a line. */
.spotlight__title {
  /* Wide enough that the second row — the longer of the two — stays on one line at the largest
     size the clamp allows; narrower than that and it breaks after "per", leaving "kilo." alone. */
  max-width: 1120px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(31px, 5.7vw, 4.7rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-align: center;
  text-wrap: balance;
  color: var(--color-ink);
}

/* The headline is drawn as two rows rather than as one sentence left to break where it likes:
   at a desk the columns of a wrapping headline land mid-phrase, and on a phone each row still
   wraps on its own. The rows carry their own leading so the tall display face has room for its
   descenders between them. */
.spotlight__title-line {
  display: block;
}

.spotlight__title-line + .spotlight__title-line {
  margin-top: 0.06em;
}

.spotlight__title-accent {
  color: var(--color-green-ink);
}

.spotlight__intro {
  max-width: 600px;
  margin: 30px auto 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  text-align: center;
  color: var(--color-muted);
}

.spotlight__stage {
  margin-top: clamp(32px, 3.6vw, 52px);
}

/* The stories sit on a measure narrower than the page's, and the controls below sit on the same
   one: at full container width the copy and the portrait were pushed to opposite edges with a
   gulf between them, and the band read as two things rather than as one. */
.spotlight__slides {
  max-width: 1140px;
  margin: 0 auto;
}

/* One cell, four stories. */
.spotlight__slides {
  display: grid;
}

.spotlight__slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(32px, 4vw, 64px);
  /* The copy is centred against the card rather than pinned to its floor: a taller card leaves a
     hand's width of white above the words, and that reads as a missing picture rather than as
     space. */
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 20px, 0);
  /* Half a second a change: fast enough that the band never feels like it is waiting for itself,
     slow enough that the eye follows the story across rather than seeing it cut. */
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0.55s;
}

/* The arriving story waits a beat longer than the leaving one begins to go, so the two are never
   equally opaque and the band never reads as a muddle of both. */
.spotlight__slide[data-state="active"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0.06s, 0.06s, 0s;
}

.spotlight__copy {
  min-width: 0;
}

.spotlight__step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-2);
}

.spotlight__step-num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.spotlight__heading {
  max-width: 16ch;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(25px, 2.7vw, 2.35rem);
  /* A little air between the rows: the display face is short of descenders, and at 1.14 its two
     lines sat on each other rather than beside each other. */
  line-height: 1.26;
  color: var(--color-ink);
}
/* Each story is set on the same beat: the first line ends on "that", the second carries the
   promise. The break is written into the markup rather than left to the column width, so the four
   stories cannot drift into four different shapes as the band changes size. */
.spotlight__heading-line { display: block; }

.spotlight__body {
  max-width: 48ch;
  margin: 0 0 22px;
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.65;
  color: var(--color-muted);
}

.spotlight__meta {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-green-ink);
}

/* ── The order, as it happens ──────────────────────────────────────────────────────────
   A small transcript of one refill: collected, filled, back before dinner. It is the proof of the
   paragraph above it, so it is drawn as the thing a customer actually holds — two messages headed
   by the reference and the clock — rather than as another card of copy. The lime tag hanging off
   its corner is the line that survives the scroll. */
.spotlight__thread {
  position: relative;
  max-width: 366px;
  margin: 26px 0 0;
  padding: 14px 14px 16px;
  border: 1px solid rgba(31, 47, 45, 0.07);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf4 100%);
  /* Barely off the page: enough that the card has a near edge and the messages inside it sit
     against something, not enough to become a second surface on the band. */
  box-shadow:
    0 1px 2px rgba(31, 47, 45, 0.04),
    0 14px 30px -18px rgba(31, 47, 45, 0.22);
}

.spotlight__thread-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-muted-2);
}

.spotlight__thread-live {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 3px rgba(0, 160, 72, 0.11);
}

.spotlight__thread-time {
  margin-left: auto;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-muted-faint);
}

.spotlight__thread-msg {
  margin: 0 0 8px;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--color-ink);
}

.spotlight__thread-msg span {
  display: block;
  margin-top: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-muted-faint);
}

.spotlight__thread-msg--in {
  border: 1px solid rgba(31, 47, 45, 0.07);
  border-bottom-left-radius: 5px;
  background: var(--color-surface);
}

.spotlight__thread-msg--out {
  margin-left: 30px;
  margin-bottom: 0;
  border-bottom-right-radius: 5px;
  background: #e8f7ee;
}

/* The tag is tilted a degree or two and hangs past the card's corner, the way a sticker would:
   straight and inside the card it would read as a third message instead of a remark about the
   whole thread. */
.spotlight__thread-pill {
  position: absolute;
  right: -12px;
  bottom: -15px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--color-lime);
  color: var(--color-ink-solid);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-2.5deg);
}

/* No box: no rule, no shadow, no lift. The portraits are cut on white and the band is white, so
   the picture's own ground is the band's and the arch stands on the page by itself — a card drawn
   around it would only put a rectangle back where the photograph had none. */
.spotlight__art {
  justify-self: end;
  width: 100%;
  /* Nearly the column's own width at a desk, so the portrait carries its side of the band instead
     of leaving a lake of white between itself and the words. */
  max-width: 468px;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-surface);
}

/* A `picture` is inline by default, and an inline box would not pass the card's height on to the
   image inside it. */
.spotlight__art picture {
  display: block;
  height: 100%;
}

/* The picture is already at rest at 1.045; the story that arrives settles it to 1, so the card
   holds still and only the photograph inside it moves. */
.spotlight__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.045);
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.spotlight__slide[data-state="active"] .spotlight__art img {
  transform: scale(1);
}

/* The bar is the story's own foot: where you are on the left, what to do about it on the right. */
.spotlight__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  max-width: 1140px;
  margin: clamp(30px, 3.4vw, 44px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(31, 47, 45, 0.14);
}

.spotlight__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* A dot is a target before it is a mark: the button is a thumb wide, the pill inside it is what
   the eye reads, and the active one stretches rather than filling in a second shape. */
.spotlight__dot {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.spotlight__dot span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(31, 47, 45, 0.22);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.spotlight__dot[aria-current="true"] span {
  width: 30px;
  background: var(--color-green);
}

.spotlight__dot:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: -6px;
  border-radius: 999px;
}

.spotlight__play {
  min-height: var(--tap);
  margin-left: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-2);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.spotlight__play:hover {
  color: var(--color-green-ink);
  background: rgba(0, 160, 72, 0.07);
}

/* Stopped by the reader rather than by the fold: the button says so, so the band cannot look
   broken to someone who pressed it. */
.spotlight__play[data-state="paused"] {
  color: var(--color-green-ink);
}

.spotlight__cta {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  /* The picture comes first on a phone, the way the story is told: who this is for, then why. */
  .spotlight__slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .spotlight__art {
    order: -1;
    justify-self: center;
    max-width: 380px;
    border-radius: 26px;
  }

  .spotlight__heading {
    max-width: none;
  }
}

@media (max-width: 560px) {
  /* The label takes two lines at this width, and two rules beside a two-line label read as stray
     dashes. The label keeps the band on its own. */
  .spotlight__eyebrow::before,
  .spotlight__eyebrow::after {
    display: none;
  }

  .spotlight__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .spotlight__nav {
    justify-content: center;
  }

  .spotlight__cta {
    justify-content: center;
  }
}

/* Under reduced motion the band is still two stories — it just changes without travelling, and
   `js/main.js` never starts the rotation on its own. */
@media (prefers-reduced-motion: reduce) {
  .spotlight__slide,
  .spotlight__slide[data-state="active"] {
    transition: none;
    transform: none;
  }

  .spotlight__art img,
  .spotlight__slide[data-state="active"] .spotlight__art img,
  .spotlight__dot span {
    transition: none;
    transform: none;
  }
}

/* ---------- How It Works ---------- */

.how {
  position: relative;
  background: #1f2f2d;
  color: var(--color-white);
  /* A short lead-in, not a long one: the band above is the dark ticker, so this section
     is the same colour and a big top pad reads as one long empty stretch above the
     heading rather than as breathing room around it. */
  padding: 40px 0 104px;
  /* `clip`, not `hidden`: a hidden overflow would make this section a scroll container
     and the pinned pane inside it would have nothing that moves to stick to. `clip`
     clips the same way without ever becoming a scrollport. */
  overflow: clip;
  /* The walk writes a height to its own slot after fonts and artwork land. Scroll anchoring would
     treat that as content appearing above the reader and shift the page under them; this section
     is the one place where the script is the authority on where it should sit. */
  overflow-anchor: none;
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 20px);
}

/* ── The walk ─────────────────────────────────────────────────────────────────
   The carousel is walked by the page rather than by a finger. The slot reserves one
   viewport of hold plus the distance the row itself has to travel, and the pane inside
   it pins to the top of the screen for exactly that stretch — so scrolling down hands
   the visitor the five stages in order and only releases the page once the last one is
   reached. That is the whole section on a phone too, which is where a page that keeps
   scrolling past the stages shows no more than the first one and a half of them.

   `is-walking` is set by the script, and only when there is travel to walk, a screen tall
   enough to pin a card on, and no request for reduced motion: with no script, or with
   motion turned down, or on a screen with no room for a card, this is an ordinary
   horizontal scroller and the two arrows do the walking. */
.how__walk {
  position: relative;
}

.how.is-walking {
  padding-bottom: 48px;
}

.how.is-walking .how__walk {
  /* One viewport of hold plus the travel, as measured by scripts/js at runtime. */
  height: var(--how-walk, 200vh);
}

.how.is-walking .how__pane {
  position: sticky;
  top: 0;
  display: flex;
  /* Top-aligned, not centred. Centred, the content floats to the middle of the screen and
     the heading ends up ~90px lower than its own padding says — which is exactly the
     empty stretch of dark panel above the heading that made it read as a gap between the
     ticker band and this section. */
  align-items: flex-start;
  /* `svh`, not `vh`: a phone's browser chrome is not part of the screen it shows the page on,
     and it is the tall figure that puts the foot of a pinned card under the address bar. `vh`
     stays first for a browser that does not know `svh`, where the script's own room test then
     decides whether pinning is worth it at all. */
  height: 100vh;
  height: 100svh;
  /* Clear of the fixed site header (104px tall), so the pinned carousel never sits under
     it. This is now the whole of the offset above the heading — there is no second,
     invisible offset from a centring pass. */
  padding: calc(env(safe-area-inset-top, 0px) + 124px) 0 28px;
}

.how.is-walking.is-walk-live .how__pane {
  will-change: transform;
}

/* `align-items: flex-start` above makes this container a flex item, and a flex item is sized by
   its own content unless it is told otherwise. The content here is a row of five fixed-width
   cards, so on a 390px screen the container measured 846px — clipped by the section, which is
   why the heading's lede was cut mid-word and the second card ran off the edge of the screen,
   while the same markup was perfectly fine in flow. `width: 100%` puts it back on the pane's own
   width, and `min-width: 0` stops the content-based minimum from putting it back the other way. */
.how.is-walking .how__pane > .container {
  width: 100%;
  min-width: 0;
}

/* Snapping is for a finger, not for a row whose offset is rewritten every frame: with it
   on, the browser re-snaps behind each write and the walk stutters. During the walk the
   arrows drive the page, so nothing is relying on the snap either. */
.how.is-walking .step-row {
  scroll-snap-type: none;
  /* The page owns the walk through the track's transform, so the row itself is no longer a
     horizontal scroller while it is pinned. Hidden rather than auto keeps a stray wheel or
     trackpad swipe from moving the row underneath a transform that is already deciding where
     it sits. */
  overflow: hidden;
  /* A finger has to be told to leave this row alone. Without this a swipe across it moves the
     row, and the page's own scroll is then walking a row the visitor has already moved — two
     owners of one offset, which is what kept the walk off touch screens. `pan-y` keeps the
     vertical drag (the walk) and drops the horizontal one; the two arrows are how the row is
     moved without the page. */
  touch-action: pan-y;
  /* Never animated while the page owns the offset: the track is transformed on every frame of
     a scroll, and a smooth behaviour turns each of those writes into an animation that never
     finishes. */
  scroll-behavior: auto;
}

/* The card is capped by the room the pinned pane leaves it — a number the script measures,
   because the room is what is left after a heading, a lede, two arrows and a meter have taken
   their share of a screen that is different on every device. A fixed height taller than the
   screen it is pinned to is a card with its own foot cut off, which is what 410px was on a
   phone. Nothing is capped when the walk is off: the row is then an ordinary scroller inside
   a section that grows to fit it. */
.how.is-walking .step-card {
  max-height: var(--how-card-h, none);
}

.how__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px 32px;
  margin-bottom: 24px;
}

.how__intro {
  min-width: 0;
}

.how__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 3.1rem);
  line-height: 1.1;
  color: var(--color-white);
  margin: 0 0 12px;
}

/* One measure for the whole section, so the heading and the lede share a left edge with
   the first card below them rather than each setting their own. */
.how__lede {
  margin: 0;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.how__nav {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  padding-bottom: 6px;
}

.how__nav-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease;
}

/* Hover states are for a pointer that can hover — see the note on the card below. */
@media (hover: hover) and (pointer: fine) {
  .how__nav-btn:hover:not(:disabled) {
    background: var(--color-green-bright);
    border-color: var(--color-green-bright);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 198, 92, 0.32);
  }
}

.how__nav-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.95);
  box-shadow: none;
}

.how__nav-btn:focus-visible {
  outline: 2px solid rgba(10, 143, 60, 0.32);
  outline-offset: 3px;
}

.how__nav-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.how__nav-btn svg {
  width: 20px;
  height: 20px;
}

/* ── The progress rail ──────────────────────────────────────────────────────
   A five-card row hidden behind a scroller gives no sense of an end. The rail is the
   whole length of the walk and the bar is how much of it is done, with the count in
   figures beside it. --how-progress is set by the script from the row's scrollLeft. */
.how__meter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 32px;
}

.how__meter-track {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.how__meter-bar {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--color-green-bright);
  transform: scaleX(var(--how-progress, 0));
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The meter describes the same scroll position as the cards; easing it separately trails them. */
.how.is-walking .how__meter-bar {
  transition: none;
}

.how__meter-count {
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

/* ── The row of stages ──────────────────────────────────────────────────────
   Still a horizontal scroller with snap and the two arrow buttons, because that is
   what the section always was. What changed is the card: a fixed box the artwork
   cannot leave. */
.step-row {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* No `scroll-behavior: smooth` while the page does the walking: the track is transformed
     on every frame of a scroll, and a smooth behaviour would turn each write into an
     animation that never finishes. The arrows ask for smoothness themselves when they are
     the ones moving it. On a touchscreen that owns the swipe, the behaviour comes back
     through the `is-walking` exception below. */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 10px;
  counter-reset: stepcard;
}

/* One track, one transform. A pinned row used to be walked by writing `scrollLeft` on every
   frame, which makes the engine lay out and paint the row each time and leaves the hand a
   frame behind. The cards now sit on a track that is moved in three dimensions, a change the
   compositor owns: the page's vertical scroll and the row's horizontal travel can run in the
   same frame without either one waiting for a layout. */
.step-row__track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.how.is-walking.is-walk-live .step-row__track {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.step-row::-webkit-scrollbar {
  display: none;
}

.step-card {
  position: relative;
  counter-increment: stepcard;
  scroll-snap-align: start;
  /* The last card takes `end` rather than `start` (see below). */
  flex: 0 0 302px;
  display: flex;
  flex-direction: column;
  /* One owner for the side inset: the picture is allowed to bleed past it to the card's
     own edge (see below), and a copy of the number per breakpoint is exactly how those
     two drift apart. */
  --card-pad-x: 20px;
  /* A definite height, so the picture can be told to take all of the room the words
     leave instead of the box growing to fit the picture. */
  height: 470px;
  /* A band at the top belongs to the stage numeral, so the heading and the copy start
     below it and the number is never half-covered by the card's own title. No bottom
     padding: the picture is allowed to reach the card's own edge. */
  padding: 62px var(--card-pad-x) 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #172321;
  box-shadow: none;
  /* The box clips. The illustration is a cut-out whose ink runs to the edge of the
     file, and with nothing clipping it, it met the card's own edge exactly and read as
     artwork sliding out from under the panel. */
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.42s ease;
}

/* The last card aligns its END to the row's end, not its start. Its start lies past the
   end of the row's scroll range on every phone — 0.18 of the viewport, at every width —
   so a row of `start` cards rests on the last card only because the engine clamps that
   out-of-range target. Where an engine does not clamp, a swipe to the end springs back a
   card and the last stage cannot be brought fully into view. Aligned to the end it is
   the row's end by definition — the same resting place, on any engine. */
.step-card:last-child {
  scroll-snap-align: end;
}

/* The accent runs the journey: green while the gas is being ordered, warming through
   lime to the brand orange by the time it reaches the door. */
.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--color-green-bright));
}

.step-card:nth-child(1) { --card-accent: var(--color-green-bright); }
.step-card:nth-child(2) { --card-accent: #3fc267; }
.step-card:nth-child(3) { --card-accent: var(--color-lime); }
.step-card:nth-child(4) { --card-accent: var(--color-orange); }
.step-card:nth-child(5) { --card-accent: #f0b455; }

/* The stage numeral, drawn from the counter rather than typed into the markup, so the
   number cannot appear twice or drift out of order. It sits under the text as a
   watermark. */
.step-card::after {
  content: counter(stepcard, decimal-leading-zero);
  position: absolute;
  top: 6px;
  right: 18px;
  z-index: -1;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.075);
  pointer-events: none;
}

/* ── Hover belongs to a pointer that can hover ────────────────────────────────
   A finger does not hover, but a browser that cannot hover does not know that: it
   leaves :hover on whatever was tapped last, so a card the visitor taps and then swipes
   away stays lifted with its artwork scaled until something else is tapped — a raised
   card riding across the row, and its picture repainted at a different size for nothing.
   Where the pointer cannot hover, these states do not exist at all. The `:hover` cancel
   in the reduced-motion block below this is then belt and braces rather than the fix. */
@media (hover: hover) and (pointer: fine) {
  .step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.22);
  }
}

.step-card h3 {
  flex: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.22rem;
  /* Two lines of a display face sit on each other at 1.32; the extra leading is what
     gives the heading its own block instead of one dense lump. */
  line-height: 1.45;
  letter-spacing: 0.005em;
  margin: 0 0 14px;
  /* Room for the watermark so a long heading never runs into it. */
  padding-right: 44px;
}

.step-card p {
  flex: none;
  font-size: 0.92rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.66);
  margin: 0;
}

/* ── The picture ─────────────────────────────────────────────────────────────
   Every one of these illustrations is a tall cut-out whose ink runs to the edge of its
   own file, so a capped height left the card with a band of empty panel under it and the
   end of the drawing reading as a blunt cut across the middle of the box. Instead the
   picture takes all the room the words leave, scales to fit it on its own axis, and sits
   on the card's bottom edge — so the cut lands exactly where the card ends and the card's
   own rounded corner closes it. The box is filled, and nothing is left over. */

/* The flex item is the picture, not the file inside it. A `<picture>` sits between the card
   and the `<img>`, so the image's own `flex` never had the card as its parent and never
   applied to anything: the wrapper kept its content height — the file's ratio at the card's
   width — and ran past the foot of the card, where the card's own clip cut the drawing off.
   Measured at 390px: the picture box reached 212px below a 400px card, so nearly half the
   first illustration was hidden. `display: contents` takes the wrapper out of the box tree,
   so the image is the flex item the rules below already describe and `object-fit: contain`
   fits the whole drawing rather than the top slice of an oversized box. */
.step-card picture {
  display: contents;
}

.step-card__image {
  /* flex-basis 0 and one unit of growth: the picture is exactly the space the words
     did not take, and nothing else in the card is allowed to give way. */
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  margin-top: 12px;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The fourth illustration is the one that arrives already cropped on its left side — the
   hand runs off that edge of the file. Centred, that cut sat in the middle of the panel
   with a stripe of card beside it, reading as a seam down the drawing. It bleeds through
   the card's own side inset so the cut lands exactly on the card's left edge, where the
   rounded corner closes it the same way the bottom already closes it. `max-width: none`
   because the site's `img { max-width: 100% }` would otherwise cancel the wider box. */
.step-card:nth-child(4) .step-card__image {
  max-width: none;
  width: calc(100% + var(--card-pad-x));
  margin-left: calc(var(--card-pad-x) * -1);
  object-position: left bottom;
}

/* The fifth illustration is the only square one, so `contain` fills it on both axes and
   it draws larger than the four before it. Pulled in its own side inset and lifted clear
   of the card's bottom edge, it sits with the others instead of reading as the biggest
   thing on the row. */
.step-card:nth-child(5) .step-card__image {
  padding: 0 24px 16px;
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  .step-card:hover .step-card__image {
    transform: scale(1.03);
  }
}

/* The card stagger is gone with the scroll observer that used to start it: the row is painted
   with the rest of the page, so there is no arrival to animate. The cards keep their hover
   behaviour, which is a response to the pointer rather than to a callback. */

@media (max-width: 900px) {
  .how__header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .how__nav {
    padding-bottom: 0;
  }

  .how__nav-btn {
    width: 46px;
    height: 46px;
  }

  .step-card {
    flex-basis: min(78vw, 302px);
    height: 440px;
    --card-pad-x: 20px;
    padding: 58px var(--card-pad-x) 0;
  }
}

@media (max-width: 560px) {
  .how {
    padding: 32px 0 80px;
  }

  /* ── The room above the row, on the screen where it is scarcest ────────────────
     The card is capped by the pane (`--how-card-h`), and on a phone almost all of the pane
     went to everything above the row: measured on a 390x700 screen, the heading, lede and
     arrows were a 192px block, the meter and its margin 37px, and the pane's own padding 152px
     — leaving a 256px card. The illustration is drawn to the height the words leave, so the
     tallest of the five (work-3, aspect 0.55) came out 30x55: not a small picture, a picture
     with nowhere to stand.

     The arrows move up beside the heading — they were a 46px row of their own on a phone — and
     the margins come in. That is the difference between the card being the space that is left
     over and the card being what the section is for: roughly 100px returned here, and because
     `contain` scales with the box, the drawing grows in both directions at once. Nothing is
     cropped to achieve it — the artwork is given room rather than being made to fill a box it
     does not fit. */
  /* The heading, the lede and the arrows keep the width they had — the text is where the section
     is read, and squeezing it beside the arrows folded the heading onto two lines and the lede
     onto five. The room comes out of the margins instead, and it is still room the card gets. */
  .how__header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .how__meter {
    margin-bottom: 10px;
  }

  /* The pane sits on the foot of the fixed header it has to clear (104px), not above it: 20px of
     air over the heading read as a stretch of empty panel between the bar and the section, and
     every one of those pixels was also taken from the card below the row. The heading's own
     leading is the breathing room now, and the box resting on the bar's foot still leaves the
     letters clear of it — the bar is opaque by the time the section is pinned, and the glyphs
     start below its edge. */
  .how.is-walking .how__pane {
    padding-top: calc(env(safe-area-inset-top, 0px) + 104px);
    padding-bottom: 16px;
  }

  .step-row__track {
    gap: 14px;
  }

  .step-card {
    flex-basis: 82vw;
    /* Taller than any phone that will show it, so it is the measured room that caps the card
       rather than this number: on a short screen the section still fits the card to the pane,
       and on a tall one the artwork gets the whole 460 instead of 410. */
    height: 460px;
    --card-pad-x: 18px;
    padding: 52px var(--card-pad-x) 0;
    border-radius: 18px;
  }

  .step-card::after {
    font-size: 2.8rem;
    top: 5px;
    right: 16px;
  }

  .step-card h3 {
    font-size: 1.1rem;
    padding-right: 34px;
  }

}

/* A touch device that is not walking the row still swipes it, and a swipe should carry. While
   the walk is on the page is the only mover (see `touch-action` above), so this is the branch
   for the same phone with the walk off — reduced motion, or a screen with no room for a card. */
@media (hover: none) and (pointer: coarse) {
  .how:not(.is-walking) .step-row {
    scroll-behavior: smooth;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────────────
   The row still arrives and the arrows still move it; nothing slides, lifts or fades. */
@media (prefers-reduced-motion: reduce) {
  .step-card,
  .step-card__image,
  .how__nav-btn,
  .how__meter-bar {
    transition: none;
  }

  .step-card:hover,
  .step-card:hover .step-card__image {
    transform: none;
  }
}

/* ---------- Feature panels ---------- */

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.features__panel {
  display: flex;
  align-items: center;
}

.features__panel--teal {
  background: #172321;
}

.features__panel--brown {
  background: var(--color-brown);
}

.features__panel-inner {
  padding: 96px 48px;
  color: var(--color-white);
}

.features__panel--teal .features__panel-inner {
  padding-left: max(
    var(--container-pad),
    calc((100vw - var(--container-width)) / 2 + var(--container-pad))
  );
  padding-right: 96px;
}

.features__panel--brown .features__panel-inner {
  padding-right: max(
    var(--container-pad),
    calc((100vw - var(--container-width)) / 2 + var(--container-pad))
  );
  padding-left: 120px;
}

.features__panel-inner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 2.6rem);
  line-height: 180%;
  margin: 0 0 24px;
}

.features__panel-inner p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .features__panel-inner {
    padding: 64px var(--container-pad);
    max-width: 100%;
  }

  .features__panel--teal .features__panel-inner,
  .features__panel--brown .features__panel-inner {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
  }
}

/* ---------- Become a Rider ---------- */

.rider {
  position: relative;
  padding-top: 60px;
  background: var(--color-dark-2);
  overflow: hidden;
}

.rider__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.rider__content {
  padding: 60px 0 140px;
  color: var(--color-white);
  max-width: 440px;
  overflow: visible;
}

.rider__content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 3.2rem);
  margin: 0 0 16px;
  white-space: nowrap;
}

.rider__content p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
}

.rider__image {
  justify-self: end;
  max-width: 110%;
  width: auto;
  height: auto;
  aspect-ratio: 1546 / 1352;
}

@media (max-width: 900px) {
  .rider__grid {
    grid-template-columns: 1fr;
  }

  .rider__content {
    padding: 80px 0 24px;
    max-width: 100%;
  }

  .rider__content h2 {
    white-space: normal;
  }

  .rider__image {
    justify-self: center;
    width: 340px;
  }
}

/* ---------- Gallery ---------- */

.gallery {
  background: var(--color-paper);
  padding: 120px 0;
}

.gallery__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.gallery__eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green-ink);
  margin: 0 0 14px;
}

.gallery__header .section-title {
  margin-bottom: 16px;
}

.gallery__intro {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 0;
}

/* ── The flyer wall, moving ─────────────────────────────────────────────────────────────
   One track holds the same eleven flyers twice and travels exactly half its own width, again
   and again. Because the two halves are identical and the halfway point *is* the period, the
   flyer leaving the left edge is the same file arriving at the right edge: the movement has no
   start, no end and no seam, and it costs one CSS animation — there is no script, so it runs
   even on a page whose javascript never got there.

   The spacing is a margin on each card rather than a flex `gap`. A gap sits between the two
   halves as well, which puts the halfway point half a gap past the period — a slow, visible
   creep of every card, once per lap, forever. A margin on both sides of every card is part of
   the card's width, so half of the total really is the period.

   Nothing here is load-bearing: with `prefers-reduced-motion` the track stops and becomes a
   normal sideways scroller, and with no CSS at all the twenty-two cards simply sit in a row. */
.gallery__marquee {
  margin-top: 8px;
  overflow: hidden;
  /* The cards are taller than the band they scroll in, so the lift on hover has room to move
     without being clipped at the bottom of the section. */
  padding: 16px 0 30px;
}

.gallery__track {
  --gallery-card-w: 268px;
  --gallery-card-gap: 26px;
  --gallery-lap: 68s;
  display: flex;
  width: max-content;
  animation: gallery-marquee var(--gallery-lap) linear infinite;
}

.gallery__track .gallery__item {
  flex: 0 0 auto;
  width: var(--gallery-card-w);
  margin: 0 calc(var(--gallery-card-gap) / 2);
}

/* A hand on the wall stops it, so a flyer can actually be read and clicked — the pointer is
   already over the card, and chasing a moving target is how a link gets missed. */
.gallery__marquee:hover .gallery__track,
.gallery__marquee:focus-within .gallery__track {
  animation-play-state: paused;
}

@keyframes gallery-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__marquee { overflow-x: auto; }

  .gallery__track {
    animation: none;
    /* Half the cards would be a copy nobody can reach without scrolling twice, so the duplicates
       are simply not shown when the movement is off. */
  }

  .gallery__track .gallery__item[aria-hidden="true"] {
    display: none;
  }
}

.gallery__item {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-dark-2);
  box-shadow: 0 12px 28px rgba(31, 47, 45, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(9, 20, 15, 0.6), rgba(9, 20, 15, 0) 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery__item-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-white);
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.gallery__item-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gallery__item:hover,
.gallery__item:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(31, 47, 45, 0.22);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.06);
}

.gallery__item:hover .gallery__item-overlay,
.gallery__item:focus-visible .gallery__item-overlay {
  opacity: 1;
}

.gallery__item:hover .gallery__item-label,
.gallery__item:focus-visible .gallery__item-label {
  transform: translateY(0);
}

.gallery__cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .gallery {
    padding: 90px 0;
  }

  .gallery__track {
    --gallery-card-w: 214px;
    --gallery-card-gap: 18px;
    /* A shorter journey per card, so a smaller screen still sees the whole wall go by rather
       than waiting half again as long for the same flyers. */
    --gallery-lap: 52s;
  }
}

@media (max-width: 560px) {
  .gallery__track {
    --gallery-card-w: 178px;
    --gallery-card-gap: 14px;
    --gallery-lap: 44s;
  }

  /* A phone has no hover, so the card carries its own label all the time instead of revealing it
     on an event that never comes. */
  .gallery__item-overlay {
    opacity: 1;
  }

  .gallery__item-label {
    transform: translateY(0);
  }
}

/* ---------- Coverage Map ---------- */

.coverage {
  background: var(--color-paper);
  padding: 80px 0 100px;
  overflow: hidden;
}
.coverage__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}
.coverage__hero-content { flex: 1; }
.coverage__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green-ink);
  background: rgba(31,157,83,0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin: 0 0 20px;
}
.coverage__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 3rem);
  line-height: 1.15;
  color: var(--color-ink);
}
.coverage__title-accent {
  color: var(--color-green-ink-2);
  display: block;
  margin-top: 4px;
}
.coverage__subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
  max-width: 480px;
}
.coverage__hero-stats {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.coverage__stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: var(--color-surface);
  border: 1px solid rgba(31,157,83,0.1);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  min-width: 100px;
}
.coverage__stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
}
.coverage__stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.coverage__stat-card--live {
  border-color: rgba(6,186,87,0.2);
  background: var(--color-mint);
}
.coverage__stat-card--live .coverage__stat-number {
  color: var(--color-green-ink);
  font-size: 1.2rem;
}
.coverage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 48px;
}
.coverage__content { max-width: 560px; }
/* The area list is a window, not a grid that runs past the map. Three columns travel in
   opposite directions inside the height the map sets, and the sheet fades both edges so a
   name arrives and leaves instead of being clipped. The columns are real scroll containers:
   the motion is a nudge of their own scrollTop, so a wheel, a finger or a focused button can
   take over at any time and the loop stays seamless. */
.coverage__zones {
  --coverage-zones-height: 416px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: var(--coverage-zones-height);
  margin-bottom: 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.coverage__zones-col {
  position: relative;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  scroll-behavior: auto;
  padding: 2px 2px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.coverage__zones-col::-webkit-scrollbar {
  display: none;
}
.coverage__zones-track,
.coverage__zones-set {
  display: flex;
  flex-direction: column;
}
.coverage__zones-set {
  gap: 10px;
  padding-bottom: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .coverage__zones-set--clone { display: none; }
}
.coverage__zone-pill {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid rgba(31,157,83,0.08);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-ink);
  transition: all 0.25s ease;
  cursor: default;
}
.coverage__zone-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-green-ink-2);
  background: rgba(31,157,83,0.08);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.coverage__zone-pill:hover {
  border-color: var(--color-green);
  background: var(--color-mint);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31,157,83,0.1);
}
.coverage__note {
  font-size: 0.88rem;
  color: var(--color-muted-faint);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.5;
}
.coverage__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 3px rgba(6,186,87,0.15);
  animation: coverage-pulse 2s ease-in-out infinite;
}
@keyframes coverage-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(6,186,87,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(6,186,87,0.05); }
}

.coverage__map-viewport {
  position: relative;
  aspect-ratio: 300 / 260;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(160deg, #fbf3e2 0%, #f2e7cd 100%);
  box-shadow: 0 20px 60px rgba(28,43,37,0.12), 0 0 0 1px rgba(28,43,37,0.04);
  border: 1px solid rgba(255,255,255,0.6);
}

.coverage__map-inner {
  position: absolute;
  inset: 0;
  animation: coverage-map-zoom 8s ease-in-out infinite;
}

.coverage__map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.coverage__map-river {
  fill: none;
  stroke: #c3ddda;
  stroke-width: 11;
  stroke-linecap: round;
  opacity: 0.75;
}

.coverage__map-road {
  fill: none;
  stroke: #e3d5b3;
  stroke-width: 5;
  stroke-linecap: round;
}

.coverage__map-block {
  fill: var(--color-green);
  opacity: 0.09;
}

.coverage__poi {
  position: absolute;
  width: 0;
  height: 0;
}

.coverage__poi--1 { top: 20%; left: 18%; }
.coverage__poi--2 { top: 66%; left: 74%; }
.coverage__poi--3 { top: 82%; left: 30%; }
.coverage__poi--4 { top: 18%; left: 76%; }

.coverage__poi-pin {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50% 50% 50% 0;
  background: var(--color-green-dark);
  border: 1.5px solid var(--color-white);
  box-shadow: 0 3px 6px rgba(31, 47, 45, 0.25);
  transform: translate(-50%, -4px) rotate(-45deg);
}

.coverage__poi-label {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  background: rgba(253, 246, 232, 0.85);
  padding: 2px 6px;
  border-radius: 6px;
}

.coverage__pin-wrap {
  position: absolute;
  top: 48%;
  left: 48%;
  width: 0;
  height: 0;
}

.coverage__pin-ping {
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: rgba(229, 52, 42, 0.45);
  animation: coverage-pin-ping 2.4s ease-out infinite;
}

.coverage__pin-shadow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 28px;
  height: 9px;
  border-radius: 50%;
  background: rgba(31, 47, 45, 0.3);
  filter: blur(1px);
  transform: translateX(-50%);
  animation: coverage-pin-shadow 2.2s ease-in-out infinite;
}

.coverage__pin {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #ff6a52, #e5342a);
  box-shadow: 0 10px 18px rgba(197, 38, 23, 0.4), inset 0 -3px 6px rgba(0, 0, 0, 0.15), inset 0 2px 3px rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -8px) rotate(-45deg);
  animation: coverage-pin-jump 2.2s ease-in-out infinite;
  z-index: 2;
}

.coverage__pin img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(45deg);
  filter: brightness(0) invert(1);
}

.coverage__pin-label {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

@keyframes coverage-map-zoom {
  0%, 20% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  80%, 100% {
    transform: scale(1);
  }
}

@keyframes coverage-pin-jump {
  0%, 22%, 100% {
    transform: translate(-50%, -8px) rotate(-45deg);
  }
  10% {
    transform: translate(-50%, -26px) rotate(-45deg);
  }
}

@keyframes coverage-pin-shadow {
  0%, 22%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.32;
  }
  10% {
    transform: translateX(-50%) scale(0.55);
    opacity: 0.16;
  }
}

@keyframes coverage-pin-ping {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .coverage__hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .coverage__eyebrow { margin-bottom: 16px; }
  .coverage__grid {
    grid-template-columns: 1fr;
  }

  .coverage__content {
    max-width: 100%;
  }

  .coverage__title {
    text-align: left;
  }

  .coverage__content p {
    text-align: left;
  }

  .coverage__legend {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: fit-content;
  }

  .coverage__map-viewport {
    max-width: 380px;
  }
}

/* The reach map is a desktop band. A phone has hidden the whole section since the bottom bar
   arrived, and a tablet used to keep the map on its own - first under a heading that had been
   removed, then as the last thing left in a stacked column. Between the phone and the desktop it
   is a wide-format drawing several screens tall sitting between the customer and the order form,
   with the checker that explains it gone. So the band is not there at all below the desktop's
   901px line, which is the width at which the heading, the checker and the map stand side by side
   again. Nothing about the section itself changed, and a desktop reads it exactly as before. */
@media (max-width: 900px) {
  .coverage { display: none; }
}

@media (max-width: 560px) {
  .coverage { padding: 60px 0 80px; }
  .coverage__hero { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
  .coverage__hero-stats { width: 100%; display: flex; gap: 12px; }
  .coverage__eyebrow { margin-bottom: 12px; font-size: 0.7rem; }
  .coverage__title { font-size: clamp(26px, 6vw, 2.2rem); line-height: 1.28; margin-bottom: 10px; }
  .coverage__subtitle { font-size: 0.95rem; }
  .coverage__grid { grid-template-columns: 1fr; gap: 28px; }
  .coverage__zones { gap: 8px; }
  .coverage__zone-pill { padding: 10px 12px; font-size: 0.82rem; }
  .coverage__note { font-size: 0.82rem; text-align: left; }

  .coverage__map-viewport {
    max-width: 300px;
    border-radius: 20px;
  }

  .coverage__pin {
    width: 38px;
    height: 38px;
  }

  .coverage__pin img {
    width: 20px;
    height: 20px;
  }

  .coverage__pin-label {
    font-size: 0.68rem;
    padding: 4px 10px;
    bottom: 58px;
  }

  .coverage__poi-pin {
    width: 12px;
    height: 12px;
  }

  .coverage__poi-label {
    font-size: 0.56rem;
    padding: 1px 5px;
  }
}

@media (max-width: 480px) {
  .coverage__stats { flex-direction: row; gap: 8px; }
  .coverage__stat-card { flex: 1; min-width: 0; padding: 12px 10px; }
  .coverage__stat-number { font-size: 1.1rem; }
  .coverage__stat-label { font-size: 0.62rem; }
}
@media (max-width: 380px) {
  .coverage__map-viewport { max-width: 100%; }
  .coverage__poi-label { display: none; }
}

/* ---------- The credential, set as a footer line ---------- */

/* The commission's lockup and standing, plus the way to check it, on one rule at the foot of
   the column. It is the last thing read, so it is a line rather than a second card. */
.whatsapp-cta__trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  width: 100%;
  margin-top: auto;
  padding-top: clamp(28px, 3vw, 44px);
  border-top: 1px solid rgba(22, 128, 63, 0.14);
}

.whatsapp-cta__trust-lockup {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.whatsapp-cta__trust-seal {
  display: block;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(22, 128, 63, 0.14),
    0 10px 20px -14px rgba(22, 128, 63, 0.8);
}

/* The lockup the commission issues: the seal, then the wordmark in two weights of tracking
   with the rule between them. Set in type rather than shipped as a bitmap so it stays sharp at
   any size and can take the site's ink. */
.whatsapp-cta__trust-word {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--color-green-ink);
}

.whatsapp-cta__trust-word span:first-child {
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.whatsapp-cta__trust-word span:first-child::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 5px;
  background: currentColor;
  opacity: 0.4;
}

.whatsapp-cta__trust-word span:last-child {
  font-size: 0.61rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.whatsapp-cta__trust-status {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-muted);
}

.whatsapp-cta__trust-status::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 4px rgba(22, 128, 63, 0.1);
}

.whatsapp-cta__trust-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--color-green-ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 30px -20px rgba(22, 128, 63, 0.7);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.whatsapp-cta__trust-link svg {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.whatsapp-cta__trust-link:hover {
  transform: translateY(-1px);
  background: #0f5a2d;
  box-shadow: 0 18px 34px -18px rgba(22, 128, 63, 0.78);
}

.whatsapp-cta__trust-link:hover svg {
  transform: translateX(2px);
}

.whatsapp-cta__trust-link:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .whatsapp-cta::before {
    background-size: 180% auto;
    opacity: 0.24;
  }

  .whatsapp-cta__grid {
    grid-template-columns: minmax(0, 1fr);
    padding: clamp(48px, 8vw, 72px) 0;
  }

  .whatsapp-cta__scan {
    padding-right: 0;
    padding-bottom: clamp(34px, 5vw, 48px);
  }

  .whatsapp-cta__inside {
    padding-left: 0;
    border-left: 0;
    padding-top: clamp(34px, 5vw, 48px);
    border-top: 1px solid rgba(22, 128, 63, 0.12);
  }

  .whatsapp-cta__trust {
    margin-top: clamp(30px, 4vw, 44px);
  }

  .whatsapp-cta__title,
  .whatsapp-cta__text {
    max-width: 32ch;
  }
}

@media (max-width: 700px) {
  .whatsapp-cta__grid {
    padding: 48px 0;
  }

  .whatsapp-cta__qr img {
    width: 180px;
    height: 180px;
  }

  .whatsapp-cta__title {
    font-size: clamp(27px, 8vw, 32px);
    line-height: 1.34;
  }

  .whatsapp-cta__inside-title {
    font-size: clamp(22px, 6.2vw, 26px);
    line-height: 1.34;
  }

  .whatsapp-cta__feed-list li {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .whatsapp-cta__feed-title {
    font-size: 0.82rem;
  }

  .whatsapp-cta__trust {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 26px;
  }

  .whatsapp-cta__trust-link {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

/* ── The customer dashboard on a phone ───────────────────────────────────────────────────────
   These are the same rules that used to sit at the end of css/styles.css. They moved here
   because this sheet is loaded after that one on the page that draws the dashboard, and a
   media query does not win on being a media query: at equal specificity the later sheet
   takes the declaration. The laptop shell below (280px rail, 92dvh card) was therefore the
   one a phone got as soon as the dashboard moved into this file, so the phone version of
   every rule it overrides is written after it, at the end of the sheet.
   Nothing in these blocks is new: the phone sheet, the two-row rail, the two filters, the
   order card and its thumb-sized actions are the layout the dashboard had before the split. */
/* -- The customer dashboard on a phone ---------------------------------------
   The old sheet let the five tabs overflow a 360px screen and let the dashboard's
   vertical scroller imply a horizontal one, so a swipe moved the whole panel and the
   header slid out of view. On a phone the panel is now a full-screen sheet with one
   vertical scroller, a sticky chrome block (identity + section rail), and a rail that
   scrolls by itself with snap points. Nothing outside the panel can scroll. */
/* The shell folds at the width the rail did: one column, identity on top, three sections to a
   row. Between a laptop and the phone sheet there is not enough width for a rail and a
   readable pane, and a half-width rail is the worst of both. */
@media (max-width: 1180px) {
  .cd-main { display: block; }
  .cd-rail { display: none; }
}
@media (max-width: 900px) {
  .cd-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
  }
  .cd-side {
    min-height: 0;
    overflow: visible;
    padding: 0;
    gap: 0;
    background: transparent;
    border-right: 0;
    border-radius: 0;
  }
  .cd-brand, .cd-side__foot { display: none; }
  .cd-chrome { padding: 16px 18px 0; }
  .cd-nav {
    margin: 0 -18px;
    padding: 8px 14px 10px;
    border-top: 1px solid #edf2ee;
  }
  .cd-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .cd-tab {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    font-size: 0.68rem;
    text-align: center;
  }
  .cd-tab__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cd-main { padding: 16px 18px 28px; }
  .cd-main__head { margin-bottom: 14px; gap: 12px; }
  .cd-main__head h3 { font-size: 1.15rem; }
  .cd-main__search { width: 180px; }
  .cd-main > .cd-filters { margin: 0 0 14px; }
  .cd-main > .cd-tab-content { padding: 0; }
}

@media (max-width: 720px) {
  .customer-dashboard-overlay {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background: rgba(7, 24, 16, 0.68);
    backdrop-filter: blur(3px);
  }
  .customer-dashboard {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
  }
  .cd-shell {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
  .cd-side {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }
  .cd-main {
    min-height: 0;
    overflow-y: auto;
  }
  .cd-chrome {
    position: relative;
    top: auto;
    z-index: 20;
    padding: calc(10px + env(safe-area-inset-top)) 14px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e5ece7;
    box-shadow: 0 6px 20px rgba(15, 45, 30, 0.055);
  }
  /* The header is sticky, so it needs to say when content has gone underneath it rather than
     floating on a shadow that is always the same. */
  .cd-chrome.is-scrolled {
    box-shadow: 0 9px 26px rgba(15, 45, 30, 0.12);
    border-bottom-color: #dce7df;
  }
  .customer-dashboard-header {
    gap: 10px;
    align-items: stretch;
    margin: 0;
    padding: 0 0 10px;
    border-bottom: 0;
  }
  .cd-header__top { min-height: 32px; gap: 8px; }
  .cd-header__eyebrow { font-size: 0.6rem; }
  .cd-header-actions { gap: 6px; }
  .cd-header__profile { gap: 12px; }
  .customer-dashboard-avatar { width: 48px; height: 48px; }
  .cd-welcome__hello { font-size: 0.58rem; }
  .cd-welcome__name { font-size: 1.06rem; }
  .customer-dashboard-header #cd-email { font-size: 0.74rem; }
  .customer-dashboard-signout {
    padding: 0 11px;
    min-height: 34px;
    font-size: 0.7rem;
    gap: 5px;
  }
  .customer-dashboard-signout svg { width: 14px; height: 14px; }
  .customer-dashboard-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(20, 50, 34, 0.1);
  }
  /* The photo is changed by the camera badge rather than by a word that reaches sideways under
     the customer's name. The word stays in the markup for a screen reader; the visual is a
     24px control that sits on the photo the way a camera badge does everywhere else. */
  .cd-avatar-edit {
    left: auto;
    right: -4px;
    bottom: -1px;
    transform: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 3px 8px rgba(7, 55, 28, 0.22);
  }
  .cd-avatar-edit__icon { display: block; width: 12px; height: 12px; flex-basis: 12px; }
  .cd-avatar-edit__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .cd-nav {
    margin: 0 -14px;
    padding: 8px 12px 10px;
    border: 0;
    border-top: 1px solid #edf2ee;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .cd-tabs {
    display: grid;
    /* Six sections cannot share one row on a phone without each name being a third of a word,
       so they break into two rows of three — every one of them on screen, none of them off
       the edge waiting for a sideways swipe. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding: 0;
    overflow: visible;
  }
  .cd-tab {
    min-width: 0;
    width: 100%;
    min-height: 54px;
    flex-direction: column;
    gap: 4px;
    padding: 7px 2px;
    border-radius: 11px;
    font-size: 0.6rem;
  }
  .cd-tab__icon { width: 19px; height: 19px; flex-basis: 19px; }
  .cd-tab__label { max-width: 100%; font-size: 0.58rem; line-height: 1.3; }
  /* The overview on a phone: four figures become a two-by-two, the four ways out become two
     rows of two, and the money in a figure is allowed to shrink rather than being clipped —
     a spend total that runs past its own tile is a number nobody can read. */
  .cd-ov { gap: 12px; }
  .cd-hero { padding: 18px; align-items: flex-start; }
  .cd-hero__copy { max-width: 100%; }
  .cd-hero__art {
    position: absolute;
    right: -22px;
    bottom: -20px;
    width: 155px;
    max-width: none;
    opacity: 0.22;
  }
  .cd-hero__title { font-size: 1.3rem; }
  .cd-hero__text { max-width: 94%; }
  .cd-ov__section-head { margin: 2px 2px 0; }
  .cd-ov__section-note { display: none; }
  .cd-ov__table-head { display: none; }
  .cd-ov__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .cd-ov__row-date { display: none; }
  .cd-ov__row-amount { grid-column: 1; text-align: left; }
  .cd-ov__row .cd-order-badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .cd-ov__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cd-stat { padding: 11px 12px 12px; }
  .cd-stat__icon { width: 30px; height: 30px; padding: 7px; margin-bottom: 7px; }
  .cd-stat__value { font-size: clamp(17px, 5.4vw, 21px); }
  .cd-ov__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cd-ov__action { min-height: 66px; font-size: 0.74rem; }
  .cd-active { padding: 13px 14px 12px; }
  .cd-active__ref { font-size: 0.95rem; }
  .cd-active__foot { align-items: stretch; flex-direction: column; }
  .cd-active__track { width: 100%; }
  /* Four steps at 360px is 88px each, so the label is the size that has to give way — the
     dots and the line stay full size, because they are what carries the meaning. */
  .cd-step { font-size: 0.62rem; padding-top: 18px; }
  .cd-steps { margin-top: 14px; }
  .cd-ov__panel { padding: 13px 12px 14px; }
  .cd-ov__row { min-height: 54px; padding: 9px 10px; }
  .cd-main > .cd-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px;
    overflow: visible;
  }
  .cd-filter { min-width: 0; }
  .cd-filter__trigger {
    width: 100%;
    min-height: 46px;
    padding: 7px 10px;
    gap: 8px;
    border-radius: 11px;
  }
  .cd-filter__caption { flex: 1 1 auto; }
  .cd-filter__kicker { font-size: 0.55rem; }
  .cd-filter__value {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.76rem;
  }
  .cd-filter__icon { width: 16px; height: 16px; }
  .cd-filter__chevron { width: 14px; height: 14px; }
  .cd-filter__panel {
    left: 0;
    right: auto;
    width: min(18rem, calc(100vw - 56px));
    min-width: 0;
    max-width: none;
  }
  .cd-filter[data-cd-filter="sort"] .cd-filter__panel { left: auto; right: 0; }
  .cd-filter-clear { grid-column: 1; justify-self: start; min-height: 34px; padding: 6px 10px; }
  .cd-filter-count {
    grid-column: 2;
    justify-self: end;
    margin: 0;
    padding: 2px 4px 0 0;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #6f8378;
  }
  /* This shorthand is the last word on the pane's padding, so the home indicator's inset has
     to be repeated here: the earlier block sets it, then this line used to reset the bottom to
     a flat 28px and the last card could finish under the indicator. */
  .cd-main { padding: 12px 14px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .cd-main__head { flex-wrap: wrap; align-items: flex-start; }
  .cd-main__tools { width: 100%; }
  .cd-main__search { flex: 1 1 auto; width: auto; min-width: 0; min-height: 40px; }
  .cd-main__cta { min-height: 40px; padding: 0 12px; }
  .cd-main__eyebrow { font-size: 0.56rem; }
  .cd-main > .cd-tab-content { padding: 0; }
  .cd-tab-content { min-height: 0; }
  .cd-orders-list { gap: 12px; }
  .cd-txn-card { padding: 13px 14px; gap: 8px 12px; }
  .cd-txn-amount { font-size: 0.95rem; }
  .cd-txn-receipt { min-height: 38px; padding: 7px 14px; }
  .cd-txn-summary { flex-wrap: wrap; gap: 4px 12px; }
  .cd-order-card {
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 50, 34, 0.04);
  }
  .cd-order-row { gap: 8px; align-items: flex-start; margin-bottom: 8px; }
  .cd-order-ref { font-size: 0.9rem; line-height: 1.3; }
  .cd-order-badge {
    max-width: 58%;
    padding: 4px 8px;
    font-size: 0.6rem;
    line-height: 1.2;
    text-align: center;
  }
  .cd-order-channel { margin-bottom: 8px; padding: 4px 9px; font-size: 0.62rem; }
  .cd-order-detail { margin-bottom: 2px; font-size: 0.8rem; line-height: 1.5; }
  .cd-order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf2ee;
  }
  .cd-order-actions > * {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.76rem;
  }
  .cd-order-actions > *:only-child { grid-column: 1 / -1; }
}
/* The narrowest phones in use are 320 CSS pixels. The five names still fit, but the longest needs
   a little less type and the rail a little less side padding to stay whole rather than truncate. */
@media (max-width: 350px) {
  .cd-nav { padding-left: 8px; padding-right: 8px; }
  .cd-tabs { gap: 3px; }
  .cd-tab { padding-left: 0; padding-right: 0; }
  .cd-tab__label { font-size: 0.54rem; letter-spacing: -0.005em; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-tab-content.is-entering { animation: none; }
  .customer-dashboard { scroll-behavior: auto; }
}

