/* ================================================================
 * Pages — page-level composition for the public site.
 * Every block here only ARRANGES what components.css and layout.css
 * already define; it never restyles a component's internals.
 * Mobile first. Breakpoints: 640 / 900 / 1200 only.
 * Colours, sizes, radii, shadows and easings come from tokens.css.
 * ================================================================ */

/* ---------- Hero — text column + asymmetric capsule cluster ---------- */
/* One column on phones; the frame cluster keeps its two-up rhythm at every
   width because the capsules are the brand, not decoration. */
.avx-hero{display:grid;gap:clamp(var(--space-6),5vw,var(--space-9));align-items:center}
/* The gap grows with the viewport because the capsules orbit inside it: at
   var(--space-4) they would cross each other at the extremes of the arc.
   `perspective` is what turns a rotateY into a capsule pivoting in depth;
   without it the same transform is just a horizontal squash. */
.avx-hero__frames{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(var(--space-4),2.6vw,var(--space-6));align-items:end;width:100%;max-width:520px;justify-self:start;perspective:1100px;perspective-origin:50% 45%}
.avx-hero__stack{display:grid;gap:clamp(var(--space-4),2.6vw,var(--space-6));align-self:end}
.avx-hero__frames>.avx-frame{width:100%}

@media (min-width:900px){
  /* Not an even split: the capsule cluster is capped at 520px and never uses
     a full half, so the extra width is given to the words, which do need it.
     Costs the artwork nothing and buys the headline about 55px.

     The gap is wider than the page default, and that is the capsules' turn-
     around space, not decoration. They grow as they come towards the viewer —
     perspective plus swell is about 23% — and a shape set hard against the
     right of its column grows leftwards as well, straight across the gutter
     and over the words. Reserving ~8vw keeps the whole excursion inside the
     gutter at every width where the two columns sit side by side. */
  .avx-hero{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    gap:clamp(var(--space-8),8vw,var(--space-9))}
  .avx-hero__frames{justify-self:end}
  /* Two frames side by side (about, partners): the second one drops, so the
     pair carries the same off-centre split as the logo capsule. Both frames
     switch to top alignment, otherwise the grid row grows with the offset and
     the stagger cancels itself out. Where :has() is unsupported the pair stays
     bottom-aligned, which loses the rhythm, not the content. */
  .avx-hero__frames>.avx-frame:has(+.avx-frame){align-self:start}
  .avx-hero__frames>.avx-frame+.avx-frame{align-self:start;margin-block-start:clamp(var(--space-5),5vw,var(--space-8))}
}

/* The capsules orbit. The client asked for extravagant, not tasteful-but-dull,
   so each one travels a continuous ellipse, tilting as it goes, and never
   stops or reverses.

   An orbit rather than a float because a float is a line segment: it goes up,
   it comes back, and the eye reads it as hesitation. A closed loop always has
   somewhere to go, so the cluster keeps turning over itself.

   WHY THERE IS NO rotateY OR rotateX HERE, and why there must never be.
   These capsules are flat elements lit to look solid, and that illusion holds
   for exactly as long as the viewer is never shown a surface that does not
   exist. Rotating about y or x turns the element towards its edge: a real pill
   would reveal its curved body, a flat one just thins out, and the whole thing
   collapses into a sheet of paper. Those two axes were tried and removed.

   What IS safe is every transform that an image of a solid object could
   undergo and stay truthful: rotateZ turns it in the picture plane, which is
   indistinguishable from rotating a photograph of the real thing; translate
   moves it across the frame; translateZ and scale bring it nearer or further.
   None of them ask the element to show a new face. So the drama goes there —
   a hard lean, a big approach — and the lighting is left alone to do the work
   it is already doing well.

   A travelling sheen was tried here too and removed. Under a fixed light a
   spinning cylinder's shading does not move at all; only markings printed on
   it do. A highlight that slides therefore reads as the lamp swinging, not the
   pill turning, and on a large flat face it reads as a wiper blade.

   Eight keyframes, not four. With `linear` timing — which an orbit needs, or
   it visibly slows at each corner — four points describe a diamond. Eight make
   an octagon, which at this radius is indistinguishable from a circle.

   The loop is seamless because 100% restates 0% exactly: same offset, same
   tilt, same scale. The rest position is the CENTRE of the ellipse, so the
   capsule sits one radius above it at the start of the cycle.

   --avx-orbit-x / -y / -z are the radii, --avx-orbit-tilt / -turn / -nod the
   peak rotation about z / y / x, --avx-orbit-swell the peak scale, and
   negating x per capsule is what sends one of them round the other way. Only
   transform is animated, so this stays on the compositor and the hero grid
   never reflows. The navy block clips its own overflow, so nothing an orbit
   does can reach the page and make a scrollbar. */
@keyframes avx-hero-orbit{
  0%{transform:translate3d(0,calc(var(--avx-orbit-y) * -1),0)
    rotateZ(0deg) rotateY(0deg) rotateX(0deg) scale(1)}
  12.5%{transform:translate3d(calc(var(--avx-orbit-x) * .707),calc(var(--avx-orbit-y) * -.707),calc(var(--avx-orbit-z) * .707))
    rotateZ(calc(var(--avx-orbit-tilt) * .707)) rotateY(calc(var(--avx-orbit-turn) * .707)) rotateX(calc(var(--avx-orbit-nod) * .707))
    scale(calc(1 + (var(--avx-orbit-swell) - 1) * .707))}
  25%{transform:translate3d(var(--avx-orbit-x),0,var(--avx-orbit-z))
    rotateZ(var(--avx-orbit-tilt)) rotateY(var(--avx-orbit-turn)) rotateX(var(--avx-orbit-nod))
    scale(var(--avx-orbit-swell))}
  37.5%{transform:translate3d(calc(var(--avx-orbit-x) * .707),calc(var(--avx-orbit-y) * .707),calc(var(--avx-orbit-z) * .707))
    rotateZ(calc(var(--avx-orbit-tilt) * .707)) rotateY(calc(var(--avx-orbit-turn) * .707)) rotateX(calc(var(--avx-orbit-nod) * .707))
    scale(calc(1 + (var(--avx-orbit-swell) - 1) * .707))}
  50%{transform:translate3d(0,var(--avx-orbit-y),0)
    rotateZ(0deg) rotateY(0deg) rotateX(0deg) scale(1)}
  62.5%{transform:translate3d(calc(var(--avx-orbit-x) * -.707),calc(var(--avx-orbit-y) * .707),calc(var(--avx-orbit-z) * -.707))
    rotateZ(calc(var(--avx-orbit-tilt) * -.707)) rotateY(calc(var(--avx-orbit-turn) * -.707)) rotateX(calc(var(--avx-orbit-nod) * -.707))
    scale(calc(1 - (var(--avx-orbit-swell) - 1) * .707))}
  75%{transform:translate3d(calc(var(--avx-orbit-x) * -1),0,calc(var(--avx-orbit-z) * -1))
    rotateZ(calc(var(--avx-orbit-tilt) * -1)) rotateY(calc(var(--avx-orbit-turn) * -1)) rotateX(calc(var(--avx-orbit-nod) * -1))
    scale(calc(2 - var(--avx-orbit-swell)))}
  87.5%{transform:translate3d(calc(var(--avx-orbit-x) * -.707),calc(var(--avx-orbit-y) * -.707),calc(var(--avx-orbit-z) * -.707))
    rotateZ(calc(var(--avx-orbit-tilt) * -.707)) rotateY(calc(var(--avx-orbit-turn) * -.707)) rotateX(calc(var(--avx-orbit-nod) * -.707))
    scale(calc(1 - (var(--avx-orbit-swell) - 1) * .707))}
  100%{transform:translate3d(0,calc(var(--avx-orbit-y) * -1),0)
    rotateZ(0deg) rotateY(0deg) rotateX(0deg) scale(1)}
}

.avx-hero__frames .avx-frame{
  --avx-orbit-x:16px;--avx-orbit-y:18px;--avx-orbit-z:60px;
  --avx-orbit-tilt:14deg;--avx-orbit-turn:0deg;--avx-orbit-nod:0deg;--avx-orbit-swell:1.08;
  animation:avx-hero-orbit var(--avx-orbit-time,16s) var(--avx-orbit-offset,0s)
    linear infinite;
  will-change:transform}

/* The tall banded capsule — the largest shape, so the most tilt. A 9deg lean
   swings the ends of a 400px pill through about 60px: that, not the drift, is
   the movement you actually notice. */
.avx-hero__frames>.avx-frame{
  --avx-orbit-x:18px;--avx-orbit-y:24px;--avx-orbit-z:120px;
  --avx-orbit-tilt:17deg;--avx-orbit-turn:0deg;--avx-orbit-nod:0deg;--avx-orbit-swell:1.1;
  --avx-orbit-time:13s}

/* The gold circle, going the other way round and quickest. A circle can swell
   harder than the others without reading as a wobble, because it has no
   corners to distort. */
.avx-hero__stack>.avx-frame:first-child{
  --avx-orbit-x:-17px;--avx-orbit-y:15px;--avx-orbit-z:-150px;
  --avx-orbit-tilt:-21deg;--avx-orbit-turn:0deg;--avx-orbit-nod:0deg;--avx-orbit-swell:1.16;
  --avx-orbit-time:9s;--avx-orbit-offset:-3.1s}

/* The navy block, slowest and on its own clock, so the three never line up. */
.avx-hero__stack>.avx-frame:last-child{
  /* Orbits leftward: at +15px its approach pushed the right edge 22px past
     the navy block and the capsule got clipped. */
  --avx-orbit-x:-12px;--avx-orbit-y:16px;--avx-orbit-z:120px;
  --avx-orbit-tilt:19deg;--avx-orbit-turn:0deg;--avx-orbit-nod:0deg;--avx-orbit-swell:1.13;
  --avx-orbit-time:16s;--avx-orbit-offset:-6.7s}

/* On a phone the three capsules sit close together in a 2-up grid, and an arc
   this size would have them overlapping each other. Same motion, half the
   reach. */
@media (max-width:639px){
  .avx-hero__frames .avx-frame{
    --avx-orbit-x:8px;--avx-orbit-y:9px;--avx-orbit-z:40px;
    --avx-orbit-tilt:9deg;--avx-orbit-turn:0deg;--avx-orbit-nod:0deg;--avx-orbit-swell:1.05}
  .avx-hero__frames>.avx-frame{--avx-orbit-x:9px;--avx-orbit-y:11px;--avx-orbit-tilt:6deg}
  .avx-hero__stack>.avx-frame:first-child{--avx-orbit-x:-8px;--avx-orbit-y:7px;--avx-orbit-tilt:-7deg}
  .avx-hero__stack>.avx-frame:last-child{--avx-orbit-x:7px;--avx-orbit-y:8px;--avx-orbit-tilt:7deg}
}

/* base.css collapses every animation to 1ms and one iteration under reduced
   motion, which for this keyframe set would strand each capsule one radius
   above its resting place. Stop them outright instead. */
@media (prefers-reduced-motion:reduce){
  .avx-hero__frames .avx-frame{animation:none;will-change:auto}
}

/* ---------- Product ticker — the gold line under the hero ---------- */
/* The newest product names, each one a link, scrolling left for ever.
   It carries its own 16px inset and pill radius, so it sits straight in the
   section rather than inside a container.

   How the loop stays perfect. The line holds two identical groups, side by
   side, and each one travels exactly its own width — translateX(-100%) is a
   percentage of the element being moved, so the group decides the distance,
   not the screen. One cycle later every group has taken the place of the one
   before it, which makes the last frame pixel-identical to the first: no jump
   at the restart, and nothing to tune when the range grows.

   How the right-hand end stays covered. `min-width:100%` floors each group at
   the width of the line itself. So the group in front is never narrower than
   the screen it is leaving, and the group behind it has already reached the
   right-hand edge before the one in front clears the left: there is no width,
   no product count and no font fallback at which a hole can open. The view
   repeats the names until a group is comfortably wider than the line, so the
   floor only takes effect on a screen wider than the real list, and
   `space-around` then spreads the names evenly instead of bunching them.

   Note what is NOT here: no count, no `calc()` over a number of sets, no
   custom property carrying a measurement. The loop is seamless because of the
   two rules above and nothing else, which is why it holds with JavaScript off
   and why `main.js` can only ever improve the spacing, never fix the loop.

   Class hooks the view sets and this block reads: `--echo` on a cell that
   repeats a name already announced, `--end` on the last real name, `--echo` on
   the twin group. They do nothing while the line scrolls; they are what the
   reduced-motion block at the end of this section needs.

   Only `transform` is animated, so a frame costs no layout. The design system
   asks for a linear marquee: one group width in 60s is about 35px a second,
   the same unhurried pace the ticker was drawn at. */
.avx-ticker{
  --avx-ticker-duration:60s;
  display:flex;
  /* `clip` rather than `hidden` on purpose: `hidden` makes this a scroll
     container, and a browser scrolling a focused link into view would shove
     the line sideways and open the very gap this block exists to prevent.
     `hidden` stays as the fallback for anything that cannot do `clip`. */
  overflow:hidden;overflow:clip;
  margin-inline:var(--section-gap);
  padding-block:18px;
  background:var(--gold-500);color:var(--navy-900);
  border-radius:var(--radius-pill);
  white-space:nowrap;font:var(--fw-medium) 15px/1 var(--font-display);letter-spacing:.02em}

.avx-ticker__group{
  display:flex;flex:none;align-items:center;justify-content:space-around;
  min-width:100%;margin:0;padding:0;list-style:none;
  animation:avx-ticker-run var(--avx-ticker-duration) linear infinite}

.avx-ticker__cell{display:flex;align-items:center;gap:28px;margin:0;padding-inline-end:28px}

/* The names are links on a gold block, where the design system's gold underline
   would be invisible and 2px taller; they take the underline on hover instead. */
.avx-ticker__link{color:inherit;border-block-end:0;border-radius:var(--radius-xs)}
.avx-ticker__link:hover{color:var(--navy-700);text-decoration:underline;text-underline-offset:4px}

/* The shared `--focus-ring` is a cream halo inside a gold one, which on this
   block puts gold on gold: half the ring disappears and the caret is hard to
   find on a line that is also moving. Same two-ring shape, outer ring navy,
   which is the one colour on the palette that cannot vanish into gold. */
.avx-ticker__link:focus-visible{
  color:var(--navy-900);text-decoration:underline;text-underline-offset:4px;
  box-shadow:0 0 0 3px var(--cream-50),0 0 0 6px var(--navy-900)}

/* The separator. A middle dot carries far less ink than the × it replaced, so
   it is set larger and lighter to divide the names without competing with
   them: at the body weight and size it reads as a full stop between words. */
.avx-ticker__sep{font-size:1.5em;line-height:1;font-weight:var(--fw-semibold);opacity:.5}

/* A moving name is hard to read and harder to hit, so the line stops while the
   pointer is over it or a name has focus. */
.avx-ticker:hover .avx-ticker__group,
.avx-ticker:focus-within .avx-ticker__group{animation-play-state:paused}

@keyframes avx-ticker-run{
  from{transform:translateX(0)}
  to{transform:translateX(-100%)}
}

/* Reduced motion. Two things have to happen here, not one.

   First the animation goes off outright. The global block in base.css only
   collapses the duration to 1ms and the count to 1, which would run this
   animation to its end and leave the line parked one whole group to the left —
   visibly wrong, not still.

   Second the line stops being a ticker and becomes a row. A stopped ticker is
   still a strip of content wider than its own box with `overflow:clip` over
   it: at 320px most of the names would sit outside the pill, unreadable, and a
   keyboard visitor could focus a link that cannot be scrolled into view. So
   everything that only existed to give the scroll something to scroll into is
   dropped — the twin group and every repeated cell — and what is left is the
   real list, wrapped, centred and complete. The last name loses its trailing
   separator, which joins names in a loop and dangles at the end of a row. */
@media (prefers-reduced-motion:reduce){
  .avx-ticker{white-space:normal;padding-inline:var(--space-5)}
  /* `flex:none` and the `min-width:100%` floor are what keep a group at least
     as wide as the line while it scrolls, and they are exactly what stops it
     wrapping: a group whose width is its own content can never be narrower
     than its content, so `flex-wrap` would have nothing to act on and the row
     would still run out of the bar. Letting the group shrink to the line and
     dropping the floor is what turns the ticker into a block of text. */
  .avx-ticker__group{animation:none;flex:1 1 auto;min-width:0;
    flex-wrap:wrap;justify-content:center;row-gap:var(--space-3)}
  .avx-ticker__group--echo{display:none}
  .avx-ticker__cell--echo{display:none}
  .avx-ticker__cell--end{padding-inline-end:0}
  .avx-ticker__cell--end .avx-ticker__sep{display:none}
}

/* ---------- Trust row ---------- */
/* Intrinsic tracks: five benefits on a desktop row, two on a tablet, one at
   320px, with no breakpoint doing the deciding. */
.avx-trust{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:clamp(var(--space-5),3vw,var(--space-6))}

/* ---------- Generic two-column split ---------- */
.avx-split{display:grid;gap:clamp(var(--space-6),5vw,var(--space-9))}
@media (min-width:900px){
  .avx-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
}

/* ---------- Category selector ---------- */
/* One track that cannot grow past the section: the chips and the capsules
   carry names typed in the panel, and a long one must wrap inside the
   column rather than widen it. */
.avx-cats{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(var(--space-6),4vw,var(--space-7))}
.avx-cats__filters{display:flex;flex-wrap:wrap;gap:var(--space-2);margin:0;padding:0;list-style:none}
.avx-cats__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:var(--space-4);margin:0;padding:0;list-style:none}
.avx-cats__item{display:flex;flex-direction:column;align-items:center;margin:0;text-align:center}
/* The capsule and its name are one link to the category's page: one target,
   one tab stop. It fills the grid track, as the item did, so the capsule is
   sized exactly as before; the base link underline and hover colour are
   taken off, because the badge carries the name and its own colours. */
.avx-cats__link{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);
  width:100%;color:inherit;text-decoration:none;border-block-end:0;
  border-radius:var(--radius-card)}
.avx-cats__link:hover{color:inherit}
/* The half-filled capsule stays narrow however wide its track gets, and
   lifts a little under the pointer to say it can be pressed. */
.avx-cats__link>.avx-frame{width:100%;max-width:92px;
  transition:transform var(--dur-base) var(--ease-pop)}
.avx-cats__link:hover>.avx-frame{transform:translateY(calc(-1 * var(--space-1)))}
/* The ring goes round the whole link, capsule and name together, so it is
   plain which one thing the keyboard is on. */
.avx-cats__link:focus-visible{box-shadow:var(--focus-ring)}
@media (prefers-reduced-motion:reduce){
  .avx-cats__link:hover>.avx-frame{transform:none}
}
/* The filter hides items with the hidden attribute; a flex item needs telling. */
.avx-cats__item[hidden]{display:none}
/* With JS off the chips cannot filter anything, so they never appear and the
   grid simply shows every category. */
html:not(.js) .avx-cats__filters{display:none}

/* ---------- Pillar card row ---------- */
/* Three cards, never two plus an orphan: one column until all three fit.
   Equal heights come from the default stretch. */
.avx-pillars{display:grid;gap:var(--space-4)}
@media (min-width:900px){
  .avx-pillars{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ---------- Centred pull statement ---------- */
.avx-pull{display:flex;flex-direction:column;align-items:center;gap:var(--space-5);max-width:960px;margin-inline:auto;text-align:center}
.avx-pull>p{font:var(--fw-medium) var(--fs-display-m)/var(--lh-tight) var(--font-display);letter-spacing:var(--ls-display);text-wrap:balance}
/* A second paragraph is the quiet support line under the statement. */
.avx-pull>p+p{font:var(--text-lede);color:var(--fg-2);max-width:60ch}

/* ---------- Approach points ---------- */
.avx-points{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.avx-points__item{display:flex;align-items:center;gap:var(--space-4);padding-block:var(--space-5);font:var(--fw-medium) clamp(var(--fs-h4),2vw,var(--fs-h3))/var(--lh-tight) var(--font-display);letter-spacing:var(--ls-tight)}
/* Hairline between points only. Mixed from the navy token so it reads on the
   gold block without introducing a colour of its own. */
.avx-points__item+.avx-points__item{border-block-start:1px solid color-mix(in srgb,var(--navy-900) 18%,transparent)}
.avx-points__item>.avx-capsule{flex:none}

/* ---------- Contact ---------- */
.avx-contact{display:grid;gap:clamp(var(--space-6),5vw,var(--space-9));align-items:start}
@media (min-width:900px){
  .avx-contact{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}

/* The form is the one white card on the page. Its direct children are the
   fields: everything spans the full card, and only name and email pair up. */
.avx-contact__form{display:grid;gap:var(--space-5);align-content:start;padding:clamp(var(--space-5),4vw,var(--space-7));background:var(--surface-card);border-radius:var(--radius-xl)}
.avx-contact__form>*{grid-column:1/-1}
.avx-contact__form fieldset{min-width:0;margin:0;padding:0;border:0}
@media (min-width:640px){
  .avx-contact__form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .avx-contact__form>.avx-field:has(input[name="name"]),
  .avx-contact__form>.avx-field:has(input[name="email"]){grid-column:span 1}
}

/* Contact details render only for the values that are configured, so the list
   has to look right with one item or with four. */
.avx-contact__details{display:grid;gap:var(--space-4);margin:0;padding:0;list-style:none}
.avx-contact__detail{display:grid;gap:var(--space-1);margin:0}
.avx-contact__detail>:first-child{font:var(--text-label);color:var(--fg-3)}
.avx-contact__detail>:first-child+*{font:var(--text-body);color:var(--fg-1);overflow-wrap:anywhere}

/* ---------- Prose (privacy) ---------- */
/* A single readable measure, Unbounded headings, generous rhythm. */
.avx-prose{max-width:72ch}
.avx-prose>*+*{margin-block-start:var(--space-5)}
.avx-prose h2{font:var(--fw-medium) var(--fs-h3)/var(--lh-tight) var(--font-display);letter-spacing:var(--ls-display);margin-block-start:var(--space-7)}
.avx-prose h3{font:var(--text-title);margin-block-start:var(--space-6)}
.avx-prose p,.avx-prose li{font:var(--text-body);color:var(--fg-2)}
.avx-prose ul{display:grid;gap:var(--space-2);margin:0;padding-inline-start:var(--space-5)}
.avx-prose strong{color:var(--fg-1);font-weight:var(--fw-semibold)}
/* Links keep the design system's gold underline rather than a browser one. */
.avx-prose a{color:var(--navy-900);border-block-end:2px solid var(--gold-500)}
.avx-prose a:hover{color:var(--gold-700);border-block-end-color:var(--apricot-700)}

/* ---------- Error page (404, 500) ---------- */
.avx-error{display:flex;flex-direction:column;align-items:center;gap:var(--space-6);max-width:var(--container-narrow);margin-inline:auto;padding-block:var(--space-7);text-align:center}
.avx-error>.avx-cluster{justify-content:center}

/* ---------- Reveal on scroll ---------- */
/* Hidden only once boot.js has set html.js, so a no-JS visitor never meets an
   invisible section. The observer adds --in. */
html.js .avx-reveal{opacity:0;transform:translateY(var(--space-4));transition:opacity var(--dur-slow) var(--ease-out),transform var(--dur-slow) var(--ease-out)}
html.js .avx-reveal--in{opacity:1;transform:none}
/* The failsafe. html.js is set before main.js has even been fetched, so until
   main.js says it is running (html.js-ready) the hidden state is on a timer: a
   few seconds in, every section shows itself. A main.js that never runs is
   handed back to the whole no-JS document by boot.js at DOMContentLoaded; this
   covers the slow download, which keeps DOMContentLoaded waiting. main.js
   marks whatever the timer has already shown as revealed before the class
   switches the timer off, so nothing blinks out again. */
html.js:not(.js-ready) .avx-reveal{--avx-reveal-failsafe:3s;
  animation:avx-reveal-failsafe var(--dur-slow) var(--ease-out) var(--avx-reveal-failsafe) forwards}
@keyframes avx-reveal-failsafe{to{opacity:1;transform:none}}

/* ---------- No-JS affordances ---------- */
/* A tab strip without JS is a dead control: it goes, and every panel stands on
   its own so the page reads as plain content. Panels are not server-rendered
   hidden, but the override stays in case one ever is. */
html:not(.js) .avx-tabs,
html:not(.js) [role="tablist"]{display:none}
html:not(.js) [data-panel]{display:block}
html:not(.js) [data-panel]+[data-panel]{margin-block-start:var(--space-6)}
/* A panel may repeat its tab label as a heading so that stack has structure;
   with JS the strip already names the panel, so the repeat is left to screen
   readers. */
html.js [data-panel-title]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html.js .avx-reveal,
  html.js .avx-reveal--in{opacity:1;transform:none;transition:none}
}

/* ================================================================
 * ================================================================
 * CATALOGUE (/produkte) AND PRODUCT (/produkte/<slug>)
 * Appended as one block; nothing above this banner is touched.
 *
 * The catalogue is not a shop grid. Avorix ships one or two products
 * at launch and perhaps six later, so a card grid would look broken
 * at two and cheap at six. Instead every product is a full-width
 * editorial row — a capsule-framed image on one side, the text on
 * the other, sides alternating — and the colour block around the row
 * comes from the section tone, exactly as every other block on the
 * site. One row reads as deliberate; six read as a rhythm.
 *
 * The product page is the dense one: it carries label data (actives,
 * a nutrition table, suggested use, warnings, storage, packaging, an
 * FAQ) and has to stay readable at 320px without a sideways scroll.
 *
 * Rules these blocks keep, same as the rest of the sheet: they only
 * ARRANGE what components.css already defines and never restyle a
 * component's internals; every colour, space, radius, shadow and
 * easing is a token; no inline styles anywhere, so state travels as
 * an attribute ([open]) or a class; mobile first, breakpoints at
 * 640 / 900 / 1200 only.
 * ================================================================ */

/* ---------- Shared helpers ----------
 * A row can sit on any of the four grounds (cream, apricot, gold,
 * navy), so its hairlines and its quiet text are mixed out of
 * currentColor rather than named: the same rule reads correctly with
 * navy text on cream and with cream text on navy. The two sizes
 * below are named once here for the same reason layout.css names the
 * header height — no token carries them and they must agree across
 * both pages. */
:root{
  --avx-rule:color-mix(in srgb,currentColor 16%,transparent);
  --avx-quiet:color-mix(in srgb,currentColor 70%,transparent);
  /* A capsule-masked product frame is tall (1:1.7); past this width it
     stops being an image and becomes a column of its own. */
  --avx-media-max:420px;
  /* Panel padding: 24px → 32px, both ends token-derived. */
  --avx-panel-pad:clamp(var(--space-5),3vw,var(--card-pad));
}

/* ---------- Catalogue — the range list ----------
 * .avx-range only groups the rows: it stays display:block so that the
 * per-product colour blocks inside it keep the section rhythm
 * (.avx-section + .avx-section) instead of a grid gap doubling it. It
 * is written to work as a <ul> or a <div>. */
.avx-range{display:block;margin:0;padding:0;list-style:none}

/* The row: one column on phones, media first in source order, so the
   reading order is image then text at every width. */
.avx-range__item{
  --avx-range-media:45fr;
  --avx-range-body:55fr;
  display:grid;grid-template-columns:minmax(0,1fr);
  gap:clamp(var(--space-6),5vw,var(--space-9));
  align-items:center;min-width:0;margin:0}

/* Only needed when several rows share one colour block; when each row
   has its own section there is no adjacency and this never applies.
   Half a section's height either side of the hairline, the same way
   .avx-section--tight halves its own padding. */
.avx-range__item+.avx-range__item{
  margin-block-start:calc(var(--section-y) * .5);
  padding-block-start:calc(var(--section-y) * .5);
  border-block-start:1px solid var(--avx-rule)}

.avx-range__media{width:100%;max-width:min(100%,var(--avx-media-max));
  justify-self:center;min-width:0}

.avx-range__body{display:grid;gap:clamp(var(--space-5),2.5vw,var(--space-6));
  justify-items:start;align-content:center;min-width:0}

/* The product name is display scale. A heading() already sets its own
   size and its title is a grandchild, so the child selector here only
   catches a hand-rolled heading and can never fight the component. */
.avx-range__body>h2,
.avx-range__body>h3{margin:0;
  font-size:var(--avx-fs-display-m,var(--fs-display-m));
  line-height:var(--lh-display);letter-spacing:-0.035em;text-wrap:balance}

/* Format and doses per pack: a small inline key/value row in the UI
   type, not a table. --text-ui is set for a control, so the value
   takes a readable line-height back for the widths where it wraps. */
.avx-range__facts{display:flex;flex-wrap:wrap;align-items:baseline;
  gap:var(--space-3) var(--space-6);width:100%;margin:0;padding:0;list-style:none}
.avx-range__fact{display:flex;align-items:baseline;gap:var(--space-2);min-width:0;margin:0}
.avx-range__fact-key{margin:0;font:var(--text-label);color:var(--avx-quiet)}
.avx-range__fact-value{margin:0;font:var(--text-ui);line-height:1.3;
  font-variant-numeric:tabular-nums}

/* The quiet line under the range: the range grows carefully. */
.avx-range__note{max-width:64ch;margin:0;
  font:var(--fw-regular) var(--fs-body-s)/var(--lh-relaxed) var(--font-sans);
  color:var(--avx-quiet)}

@media (min-width:900px){
  /* ~45/55. The reverse row swaps the tracks as well as the columns, so
     the media keeps the same 45% width on whichever side it lands. */
  .avx-range__item{
    grid-template-columns:minmax(0,var(--avx-range-media)) minmax(0,var(--avx-range-body))}
  .avx-range__item--reverse{
    grid-template-columns:minmax(0,var(--avx-range-body)) minmax(0,var(--avx-range-media))}
  .avx-range__media{justify-self:start}
  .avx-range__item--reverse>.avx-range__media{grid-column:2;grid-row:1;justify-self:end}
  .avx-range__item--reverse>.avx-range__body{grid-column:1;grid-row:1}
}

/* ---------- Product — breadcrumb ----------
 * Quiet and small, wraps on a phone. The links drop the global gold
 * underline: three of them in a row would read as a rule, not a trail.
 * An empty separator element becomes the brand's split capsule, so the
 * view may ship either an empty .avx-breadcrumb__sep or a plain
 * character inside it. */
.avx-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);
  min-width:0;margin:0;padding:0;list-style:none;
  font:var(--fw-regular) var(--fs-body-s)/1.4 var(--font-sans)}
/* `overflow-wrap:anywhere` on the step itself (base.css gives every <li>
   `break-word`, so it cannot be inherited from the list): the last step is a
   name the panel typed, a category or a product, and one long word in it must
   wrap inside the trail rather than widen a 320px page. Only `anywhere`
   lowers the min-content width the trail is sized from. */
.avx-breadcrumb__item{display:flex;align-items:center;gap:var(--space-2);min-width:0;margin:0;
  overflow-wrap:anywhere}
.avx-breadcrumb__item a{color:var(--avx-quiet);border-block-end:0}
.avx-breadcrumb__item a:hover{color:inherit;border-block-end:0}
.avx-breadcrumb__item a[aria-current="page"]{color:inherit}
.avx-breadcrumb__sep{flex:0 0 auto;color:var(--avx-quiet)}
.avx-breadcrumb__sep:empty{width:12px;height:6px;
  border:1px solid var(--gold-700);border-radius:var(--radius-pill);
  background:linear-gradient(90deg,var(--gold-500) 50%,var(--cream-0) 50%)}

/* ---------- Product — hero split ----------
 * Capsule-framed image beside the name, tagline, badges, key facts and
 * the CTA. Collapses to one column below 900px, media first. */
.avx-product{display:grid;gap:clamp(var(--space-6),5vw,var(--space-9));
  align-items:center;min-width:0}

.avx-product__media{width:100%;max-width:min(100%,var(--avx-media-max));
  justify-self:center;min-width:0}

.avx-product__body{display:grid;gap:clamp(var(--space-5),2.5vw,var(--space-6));
  justify-items:start;align-content:center;min-width:0}

/* Same child-only fallback as the catalogue row: a heading() title is a
   grandchild and keeps its component size. */
.avx-product__body>h1{margin:0;
  font-size:var(--avx-fs-display-l,var(--fs-display-l));
  line-height:var(--lh-display);letter-spacing:-0.035em;text-wrap:balance}

/* The free-from / suitability labels. The badge look itself is the
   component's; this only wraps the row. */
.avx-product__badges{display:flex;flex-wrap:wrap;gap:var(--space-2);
  width:100%;margin:0;padding:0;list-style:none}

/* Key facts as a hairline-ruled key/value list: label left, value hard
   right. Wrapping is allowed, so at 320px a long value drops to its own
   line instead of pushing the row sideways. */
.avx-product__facts{display:grid;width:100%;margin:0;padding:0;
  border-block-start:1px solid var(--avx-rule)}
.avx-product__fact{display:flex;flex-wrap:wrap;align-items:baseline;
  gap:var(--space-2) var(--space-5);min-width:0;margin:0;
  padding-block:var(--space-3);border-block-end:1px solid var(--avx-rule)}
.avx-product__fact-key{margin:0;font:var(--text-label);color:var(--avx-quiet)}
.avx-product__fact-value{margin:0;margin-inline-start:auto;
  font:var(--text-ui);line-height:1.3;font-variant-numeric:tabular-nums;text-align:end}

@media (min-width:900px){
  .avx-product{grid-template-columns:minmax(0,45fr) minmax(0,55fr)}
  .avx-product__media{justify-self:start}
}

/* ---------- Product — the image gallery ----------
 * A product carries as many photographs as somebody attaches, and
 * this page showed one of them. The client: "only the main image
 * shows. Not the other added images which should show too."
 *
 * So: a strip of the pictures with a row of thumbnails under it, in the
 * hero's media column, where the single picture was.
 *
 * ** The strip is the same mechanism as the related-products slider, and
 * literally the same class. ** `.avx-slider` (further down this sheet)
 * is the scroll container: overflow-x, scroll-snap, a styled scrollbar,
 * the focus ring, and the inline bleed that keeps a focus ring from
 * being clipped. So with JavaScript off the strip scrolls with a finger,
 * a trackpad, a scrollbar and the arrow keys, and every thumbnail is a
 * real link to a picture's id — the browser brings it into view, which
 * for a target inside a scroll container means scrolling that container.
 * `main.js` only intercepts the press so the picture is selected without
 * navigating, reveals the two buttons once the strip really does
 * overflow, and moves one attribute. Nothing here depends on it.
 *
 * Nothing is hidden for being scrolled out of sight: no `display:none`,
 * no `aria-hidden`, no `inert` on a slide, whatever is on screen. */
.avx-gallery{display:grid;gap:var(--space-4);min-width:0}

/* The track. The same shape as `.avx-related--slider` — a row that does
   not wrap, with a snap point per item and the trailing bleed box that
   gives the last item somewhere to snap to — but one picture to a view
   instead of 2.6 cards: a photograph is the thing being looked at, and
   half of the next one beside it is a thumbnail nobody asked for.
     `flex-basis:100%` is 100% of the container's content box, so the
   slide is the viewport minus the bleed and the snap positions land on
   multiples of a slide plus a gap, which is exactly the step main.js
   measures from the first two items.
     `align-items:center`, and it is a real choice. The pictures are
   different heights — each is at its own aspect ratio — so the strip is
   as tall as the tallest of them and the others have room to spare. A
   wide photograph top-aligned in a tall strip sits in the corner of a
   mostly empty box (measured, at 1280: a 1600x600 picture 98px tall at
   the top of a 640px track); centred, it is where the eye already is.
   The caption travels with its own picture, which is what a figure is
   for. */
.avx-gallery__track{display:flex;flex-wrap:nowrap;gap:var(--space-4);
  align-items:center;min-width:0;margin:0;padding:0;list-style:none}
/* `position:relative` is load-bearing and was measured, not guessed.
   Each slide carries a visually-hidden line saying which picture of how
   many it is, and `.avx-visually-hidden` is `position:absolute`. An
   absolutely positioned box is laid out in its nearest POSITIONED
   ancestor — and is clipped by that ancestor's overflow, not by any
   scroller in between. With every ancestor static, those lines belong to
   the initial containing block, so the strip does not clip them: at
   320px the fourth one sat at x=907 and the document scrolled 588px
   sideways on a page that must not scroll sideways at all. Making the
   slide the containing block puts them back inside the box that clips.
   Measured in the browser at 320px: 908px wide before, 320px after. */
.avx-gallery__slide{flex:0 0 100%;position:relative;min-width:0;margin:0;
  scroll-snap-align:start}
/* The last slide snaps by its far edge. Start-aligning it would put its
   snap position past the furthest the box can scroll, and under
   `mandatory` a snap position nothing can reach is a picture nothing can
   reach — the same measurement the related slider documents. */
.avx-gallery__slide:last-child{scroll-snap-align:end}
.avx-gallery__track::after{content:'';flex:0 0 auto;
  inline-size:var(--avx-slider-bleed-i);
  margin-inline-start:calc(var(--space-4) * -1)}

/* A figure, so a caption is attached to its own picture and not to the
   product. The margin reset is not cosmetic: a `<figure>` carries
   40px of inline margin by default, which at 320px is 80px of a 288px
   column and would push the page sideways. */
.avx-gallery__figure{display:grid;min-width:0;margin:0}

.avx-gallery__caption{min-width:0;margin:0}
/* The spacing is on the body rather than the figcaption, so a figure
   with no caption has nothing to space: the element is simply absent. */
.avx-gallery__caption-body{display:grid;gap:var(--space-1);
  margin-block-start:var(--space-3);min-width:0}
.avx-gallery__caption-label{font:var(--text-label);color:var(--avx-quiet)}
.avx-gallery__caption-text{font:var(--fw-regular) var(--fs-body-s)/var(--lh-normal)
  var(--font-sans);color:var(--fg-2);overflow-wrap:anywhere}

/* The row under the strip: the thumbnails, and the two scroll buttons at
   the end of it. The buttons wrap under the thumbnails when there is no
   room, which at 320px with several pictures there is not. */
.avx-gallery__foot{display:flex;flex-wrap:wrap;align-items:center;
  gap:var(--space-3);min-width:0}
.avx-gallery__nav{display:flex;gap:var(--space-2);margin-inline-start:auto}

/* The thumbnails WRAP rather than scroll, which is the whole reason this
   row needs no script and hides nothing: however many a product carries,
   every one of them is on screen at 320px, in the page's own flow, where
   the browser scrolls to a focused link without being asked. A row that
   scrolled sideways would put thumbnails out of view and need a script
   to bring a focused one back — and there is no ceiling on how many
   pictures a product has, so "they all fit" cannot be assumed, only
   arranged. */
.avx-gallery__thumbs{display:flex;flex-wrap:wrap;gap:var(--space-2);
  flex:1 1 auto;min-width:0;margin:0;padding:0;list-style:none}
.avx-gallery__thumbs>li{display:block;margin:0}

/* One thumbnail: a square of the picture on the same quiet surface the
   photographs sit on, with a transparent ring that the current one
   fills in. The ring is always there — colouring it in rather than
   adding it is what stops the row jumping when the selection moves. */
.avx-gallery__thumb{--avx-thumb-size:56px;
  display:block;inline-size:var(--avx-thumb-size);
  block-size:var(--avx-thumb-size);
  padding:var(--space-1);
  background:color-mix(in srgb,currentColor 7%,transparent);
  border:2px solid transparent;border-radius:var(--radius-s);
  overflow:hidden;
  transition:border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-pop)}
.avx-gallery__thumb:hover{border-color:color-mix(in srgb,currentColor 35%,transparent);
  transform:translateY(-2px)}
.avx-gallery__thumb:focus-visible{box-shadow:var(--focus-ring)}
/* `contain`, not `cover`, here too. A 56px square is navigation and not
   the photograph — but the client's point holds at any size: nobody
   knows how big the product inside the picture is, and a cropped
   thumbnail can be a thumbnail of its background. */
.avx-gallery__thumb-img{display:block;inline-size:100%;block-size:100%;
  object-fit:contain}
.avx-gallery__thumb[aria-current="true"]{border-color:var(--gold-500)}

/* "Shown now" rides inside every thumbnail and is shown by exactly one:
   the state is the attribute, and the sentence follows it, so main.js
   has one attribute to move and never a string to invent. Hiding it on
   the others is hiding a label that is false for them, which is the only
   thing on this page that is hidden from anybody. */
.avx-gallery__thumb:not([aria-current="true"]) .avx-gallery__now{display:none}

@media (prefers-reduced-motion:reduce){
  .avx-gallery__thumb,
  .avx-gallery__thumb:hover{transform:none;transition:none}
}

/* ---------- Product — ingredient list ----------
 * Name and amount on one line, the amount right-aligned in tabular
 * figures, the explanatory line underneath, a hairline between items.
 * It has to read as a list, not as a table: no vertical rules, no
 * header row, and the amount is pushed right by an auto margin so it
 * still sits right when a long name wraps it onto its own line. */
.avx-ing{display:grid;min-width:0;margin:0;padding:0;list-style:none}
.avx-ing__item{display:grid;gap:var(--space-1);min-width:0;margin:0;
  padding-block:var(--space-4)}
.avx-ing__item+.avx-ing__item{border-block-start:1px solid var(--avx-rule)}
.avx-ing__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-2) var(--space-4)}
.avx-ing__name{min-width:0;margin:0;font:var(--text-title);letter-spacing:var(--ls-tight)}
.avx-ing__amount{flex:0 0 auto;margin:0;margin-inline-start:auto;
  font:var(--text-ui);line-height:1.3;font-variant-numeric:tabular-nums;
  white-space:nowrap;text-align:end}
.avx-ing__note{max-width:68ch;margin:0;
  font:var(--fw-regular) var(--fs-body-s)/var(--lh-relaxed) var(--font-sans);
  color:var(--avx-quiet)}

/* ---------- Product — nutrition panel ----------
 * The supplement-facts idea in Avorix clothing: the serving and the
 * servings per pack above a three-column table, inside a cream surface
 * at the card radius. */
.avx-nutri{--avx-panel-bg:var(--cream-0);
  display:grid;gap:var(--space-4);min-width:0;
  padding:var(--avx-panel-pad);background:var(--avx-panel-bg);
  border-radius:var(--radius-card)}

/* A <dl> of one or two pairs. A plain paragraph instead of the list
   still lands on its own full-width row. */
.avx-nutri__meta{display:grid;grid-template-columns:auto minmax(0,1fr);
  align-items:baseline;column-gap:var(--space-5);row-gap:var(--space-2);margin:0}
.avx-nutri__meta dt{font:var(--text-label);color:var(--avx-quiet)}
.avx-nutri__meta dd{margin:0;font:var(--text-ui);line-height:1.3}
.avx-nutri__meta>p{grid-column:1/-1;margin:0;
  font:var(--fw-regular) var(--fs-body-s)/var(--lh-relaxed) var(--font-sans)}

/* Three columns, so there is no need to scroll one sideways: the two
   numeric columns take exactly the width of their longest value
   (width:1% collapses an auto table column onto its content) and the
   nutrient name wraps into whatever is left. */
.avx-nutri__table{width:100%;border-collapse:collapse;
  font:var(--fw-regular) var(--fs-body-s)/1.45 var(--font-sans)}
.avx-nutri__table th,
.avx-nutri__table td{margin:0;padding-block:var(--space-3);padding-inline:0;
  text-align:start;vertical-align:top;overflow-wrap:break-word;
  border-block-end:1px solid var(--avx-rule)}
.avx-nutri__table thead th{vertical-align:bottom;
  font:var(--text-label);color:var(--avx-quiet)}
.avx-nutri__table tbody th{font-weight:var(--fw-medium)}
/* Columns two and three by position, not by adjacency: the nutrient cell is a
   row header (<th scope="row">), so a `td+td` rule would skip the amount and
   only catch the VRU. :nth-child(n+2) is right whichever element the first
   column uses. */
.avx-nutri__table th:nth-child(n+2),
.avx-nutri__table td:nth-child(n+2){width:1%;padding-inline-start:var(--space-3);
  text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}
.avx-nutri__table tbody tr:last-child th,
.avx-nutri__table tbody tr:last-child td{border-block-end:0}

/* Works as a <caption> (hence caption-side) or as a <p> after the table. */
.avx-nutri__note{caption-side:bottom;margin:0;text-align:start;
  font:var(--fw-regular) var(--fs-caption)/1.5 var(--font-sans);color:var(--avx-quiet)}

/* ---------- Product — panels (use, warnings, storage, packaging) ----------
 * Two-up from 900px, one-up below. Cream surfaces at the card radius;
 * on a navy block the surface switches to the on-dark tint so a panel
 * is still a surface and not a hole. */
.avx-panels{display:grid;gap:var(--space-4);min-width:0}

.avx-panel{--avx-panel-bg:var(--cream-0);
  display:flex;flex-direction:column;gap:var(--space-3);min-width:0;
  padding:var(--avx-panel-pad);background:var(--avx-panel-bg);
  border-radius:var(--radius-card)}
.avx-panel__title{margin:0;font:var(--text-title);letter-spacing:var(--ls-tight);color:inherit}
.avx-panel__body{font:var(--text-body);color:var(--avx-quiet)}
.avx-panel__body p+p{margin-block-start:var(--space-3)}

/* Unstyled list with the design system's capsule bullet — the same
   glyph .avx-eyebrow::before draws, sized down and optically centred
   on the first line. */
.avx-panel__list{display:grid;gap:var(--space-3);margin:0;padding:0;list-style:none;
  font:var(--text-body);color:var(--avx-quiet)}
.avx-panel__list li{display:grid;grid-template-columns:auto minmax(0,1fr);
  gap:var(--space-3);align-items:start;min-width:0;margin:0}
.avx-panel__list li::before{content:'';width:14px;height:8px;margin-block-start:.55em;
  border:1px solid var(--gold-700);border-radius:var(--radius-pill);
  background:linear-gradient(90deg,var(--gold-500) 50%,var(--cream-0) 50%)}

.avx-section--navy .avx-nutri,
.avx-section--navy .avx-panel,
.avx-section--navy .avx-prodcard{--avx-panel-bg:var(--surface-on-dark)}

@media (min-width:900px){
  .avx-panels{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---------- Product — FAQ ----------
 * Native <details>/<summary>, so it opens with JavaScript off. The
 * default marker goes in WebKit (::-webkit-details-marker) and in
 * Firefox (list-style and ::marker), replaced by a chevron the CSS
 * draws — unless the summary already carries an icon, in which case
 * that icon does the rotating instead and the drawn one stands down. */
.avx-faq{display:grid;min-width:0;margin:0;padding:0;list-style:none;
  border-block-start:1px solid var(--avx-rule)}
.avx-faq__item{min-width:0;margin:0;border-block-end:1px solid var(--avx-rule)}

.avx-faq__q{display:flex;align-items:center;justify-content:space-between;
  gap:var(--space-4);min-width:0;padding-block:var(--space-4);
  font:var(--text-title);letter-spacing:var(--ls-tight);color:inherit;
  border-radius:var(--radius-m);list-style:none;cursor:pointer}
.avx-faq__q::-webkit-details-marker{display:none}
.avx-faq__q::marker{content:''}
.avx-faq__q:focus-visible{box-shadow:var(--focus-ring)}

/* Rotating a 10px square by 45° makes it ~14px across, so it would bleed 2px
   out of the summary and give the row a 2px scrollable overflow of its own.
   The inline margin reserves that bleed instead of letting it escape. */
.avx-faq__q::after{content:'';flex:0 0 auto;width:10px;height:10px;
  margin-inline:var(--space-1);
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  transition:transform var(--dur-base) var(--ease-pop)}
.avx-faq__item[open]>.avx-faq__q::after{transform:rotate(225deg)}
.avx-faq__q:has(.avx-icon)::after{content:none}
.avx-faq__q .avx-icon{transition:transform var(--dur-base) var(--ease-pop)}
.avx-faq__item[open]>.avx-faq__q .avx-icon{transform:rotate(180deg)}

.avx-faq__a{max-width:72ch;margin:0;padding-block-end:var(--space-5);
  font:var(--text-body);color:var(--avx-quiet)}

@media (prefers-reduced-motion:no-preference){
  .avx-faq__item[open] .avx-faq__a{animation:avx-faq-in var(--dur-base) var(--ease-out) both}
}

@keyframes avx-faq-in{
  from{opacity:0;transform:translateY(var(--space-1))}
  to{opacity:1;transform:none}
}

/* ---------- Product — related products ----------
 * Up to three small cards. Intrinsic tracks rather than a breakpoint:
 * three across on a desktop, one at 320px, and two related products
 * simply share the row. The card lifts on hover like the design
 * system's interactive card. */
.avx-related{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));
  gap:var(--space-4);min-width:0;margin:0;padding:0;list-style:none}
.avx-related>li{display:grid;min-width:0;margin:0}

.avx-prodcard{--avx-panel-bg:var(--cream-0);
  display:flex;flex-direction:column;gap:var(--space-3);min-width:0;
  padding:var(--space-4);background:var(--avx-panel-bg);
  border:0;border-radius:var(--radius-card);overflow:hidden;
  color:inherit;text-decoration:none;
  transition:transform var(--dur-base) var(--ease-pop),box-shadow var(--dur-base) var(--ease-pop)}
.avx-prodcard:hover{color:inherit;transform:translateY(-4px);box-shadow:var(--shadow-card-hover)}
.avx-prodcard:active{transform:scale(.97)}
.avx-prodcard:focus-visible{box-shadow:var(--focus-ring)}

.avx-prodcard__media{width:100%;max-width:min(100%,200px);align-self:center}

/* A card's picture keeps the card's slot.
   `components.css` lets a photograph size itself — its own aspect ratio,
   capped — which is right where the photograph is the subject of the
   page. In a card it is not: cards sit side by side in a grid and in a
   row, and a column of pictures each as tall as it happens to be would
   put every product's name at a different height. So in a card the box
   keeps the ratio the placeholder had and the picture is contained
   inside it: whole and never cropped, which is the client's rule, in a
   slot that is the same for every card, which is the grid's.
   The ratio is `--r-tallish`'s own 1/1.15, written out rather than
   inherited: the component rule has already set `aspect-ratio:auto` on a
   two-class selector, so the slot has to be restated on a longer one.
   Change one and change the other. */
.avx-prodcard__media>.avx-frame:has(>.avx-frame__img){aspect-ratio:1 / 1.15}
.avx-prodcard__media>.avx-frame:has(>.avx-frame__img)>.avx-frame__img{
  block-size:100%;max-block-size:100%}
.avx-prodcard__name{margin:0;font:var(--text-title);letter-spacing:var(--ls-tight);color:inherit}
.avx-prodcard__tagline{margin:0;
  font:var(--fw-regular) var(--fs-body-s)/var(--lh-normal) var(--font-sans);
  color:var(--avx-quiet)}

/* ---------- Product — related products as a slider ----------
 * More than two related products scroll instead of wrapping (the view
 * switches the markup; two or fewer are still the grid above).
 *
 * The slider is this scroll container and nothing else. No JavaScript
 * is involved in the scrolling: overflow-x plus scroll-snap gives a
 * finger, a trackpad, a scrollbar and the arrow keys a working slider
 * on the document the server sent. assets/js/main.js only adds the two
 * buttons, which the view renders `hidden` so that a page without
 * JavaScript never shows a control that does nothing.
 *
 * The heading row: the title keeps the row and the two buttons sit at
 * the end of it, wrapping under the title when there is no room — at
 * 320px there is not, and a 32px display title beside two 48px discs
 * would otherwise be the one thing on this page that overflowed. */
.avx-related__head{display:flex;flex-wrap:wrap;align-items:center;
  gap:var(--space-4);min-width:0}
.avx-related__head>.avx-heading{flex:1 1 auto;min-width:0}
.avx-related__nav{display:flex;gap:var(--space-2);margin-inline-start:auto}

/* The scroller.
 *
 * It clips, so the padding is the room the card's focus ring (6px of
 * halo) and its 4px hover lift need in order not to be cut off, and the
 * negative margin pays that padding back so the cards still line up
 * with the heading above them and with every other block on the page.
 * The inline bleed is smaller than the container gutter at every width,
 * so it eats into the gutter and never into the viewport: the page
 * itself gains no horizontal scrollbar, only this box does.
 *
 * scroll-padding-inline repeats the inline bleed for the browser, so
 * that a card snaps to rest at the start of the padding rather than
 * under it. Without it the focus ring of the first card would sit under
 * the clip edge, which is the failure this padding exists to prevent.
 *
 * overscroll-behavior-x keeps a flick at either end inside the slider
 * instead of handing it to the page (or to the browser's back gesture).
 *
 * overflow-y is hidden rather than left to compute to `auto`: with one
 * axis scrollable the other would become scrollable too, and a stray
 * vertical scrollbar inside a row of cards is noise. */
.avx-slider{--avx-slider-bleed-i:var(--space-2);--avx-slider-bleed-b:var(--space-3);
  min-width:0;
  margin-inline:calc(var(--avx-slider-bleed-i) * -1);
  margin-block:calc(var(--avx-slider-bleed-b) * -1);
  padding-inline:var(--avx-slider-bleed-i);
  padding-block:var(--avx-slider-bleed-b);
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:var(--avx-slider-bleed-i);
  scrollbar-width:thin}
.avx-slider:focus-visible{box-shadow:var(--focus-ring)}

/* The bar itself.
 *
 * It is part of the control rather than the browser's idea of one: it is
 * the only thing on the page that says how far along the row you are, and
 * with JavaScript off, where the two buttons never appear, it is the only
 * thing that says the row moves at all. So it is styled rather than
 * hidden - unlike the header's nav and the tabs, which scroll a handful
 * of items nobody has to be told about.
 *
 * The four colours are custom properties, so a slider dropped on a dark
 * section is one override rather than a second copy of every rule below.
 *
 * Then the same bar twice, because no single mechanism covers every
 * browser:
 *   - 'scrollbar-color' is the standard property and all Firefox has. It
 *     takes a thumb colour and a track colour, and nothing else: no size,
 *     no radius, no hover.
 *   - '::-webkit-scrollbar' is the old WebKit set, which Chromium and
 *     Safari still honour, and which can style the whole thing.
 * Chromium 121 and later ignore those pseudo-elements the moment
 * 'scrollbar-width' or 'scrollbar-color' is anything but 'auto'. So the
 * standard properties are declared for everybody, and then put back to
 * 'auto' inside a feature query that only a browser which HAS the
 * pseudo-elements can enter: Firefox stays out of it and keeps the
 * colours, Chromium and Safari go in and get the whole bar, and a browser
 * with neither keeps its own - which is still a scrollbar. */
.avx-slider{--avx-scroll-track:var(--cream-200);
  --avx-scroll-thumb:var(--gold-500);
  --avx-scroll-thumb-hover:var(--gold-600);
  --avx-scroll-thumb-active:var(--gold-700);
  --avx-scroll-size:var(--space-2);
  scrollbar-color:var(--avx-scroll-thumb) var(--avx-scroll-track)}

@supports selector(::-webkit-scrollbar){
  /* Back to 'auto' so the rules below are the ones that count. */
  .avx-slider{scrollbar-width:auto;scrollbar-color:auto}
  .avx-slider::-webkit-scrollbar{height:var(--avx-scroll-size)}
  /* The groove stops where the cards stop. The bar is drawn across the
     whole box, bleed included, so without this margin it would run eight
     pixels past the card on either end and line up with nothing. */
  .avx-slider::-webkit-scrollbar-track{background:var(--avx-scroll-track);
    border-radius:var(--radius-pill);
    margin-inline:var(--avx-slider-bleed-i)}
  .avx-slider::-webkit-scrollbar-thumb{background:var(--avx-scroll-thumb);
    border-radius:var(--radius-pill)}
  .avx-slider::-webkit-scrollbar-thumb:hover{background:var(--avx-scroll-thumb-hover)}
  .avx-slider::-webkit-scrollbar-thumb:active{background:var(--avx-scroll-thumb-active)}
  /* The two arrow buttons Windows puts at the ends. They are a second,
     worse copy of the prev/next buttons above the row, at a size nobody
     can hit, and they are what makes a styled bar still look like the
     operating system's. */
  .avx-slider::-webkit-scrollbar-button{display:none;width:0;height:0}
}

/* The same list, laid out as a row that does not wrap. Intrinsic sizing
   rather than breakpoints, exactly like the grid above it — but sized so
   that a slider always is one.
     The obvious width, a third of the row, makes three cards fit exactly
   on a desktop: the track stops overflowing, the buttons hide
   themselves, and the client, who asked for a slider "with more than 2
   other products", gets back the row they already had. So a card is a
   little wider than that instead. 2.6 to the row leaves four tenths of
   the next card showing, which is the whole affordance: the edge of a
   card at the clip line is what says "this scrolls" before anyone
   touches it, and it means three products overflow at every width, not
   only below ~820px.
     The floor is the grid's own 220px minimum (itself floored at the
   width available, so a very narrow window never gets a card wider than
   its container).
     320px  -> 220px cards, the next one visibly waiting
     ~620px -> the third-of-the-row sizing takes over from the floor
     1440px -> 456px cards, two and a half of them in view
   Nothing here is a media query, so there is no width at which the card
   size jumps. */
.avx-related--slider{--avx-slider-min:220px;--avx-slider-gap:var(--space-4);
  --avx-slider-visible:2.6;
  display:flex;flex-wrap:nowrap;gap:var(--avx-slider-gap)}
.avx-related--slider>li{flex:0 0 auto;scroll-snap-align:start;
  inline-size:max(min(100%,var(--avx-slider-min)),
    calc((100% - var(--avx-slider-gap) * 2) / var(--avx-slider-visible)))}

/* The last card snaps by its far edge, not its near one.
   Start-aligning it would put its snap position past the furthest the
   box can scroll, and a snap position nothing can reach is a card
   nothing can reach: under `mandatory` the browser answers an attempt
   to scroll there by snapping back to the card before it, so the last
   product becomes the one product the slider cannot show — with the
   button, with a trackpad and with the arrow keys alike. Aligning its
   end puts that snap position at the end of the track instead. */
.avx-related--slider>li:last-child{scroll-snap-align:end}

/* The bleed, again, at the end of the track — and it has to be a box in
   the row to count. A scroll container's own end padding is not part of
   what it can scroll to (measured: a 692px row inside a box padded 8px
   each side scrolls 700px, not 708), and nor is a trailing margin on
   the last card, so neither of the obvious ways of leaving room after
   the last card leaves any. An empty flex item does, with the gap
   before it cancelled so that the room is the bleed and not the bleed
   plus a gap. It carries no text, so it is a box and nothing more: the
   list still has exactly the three items the server rendered.
   What it buys: the end-aligned snap position above lands inside the
   scrollable range instead of 8px past it, and the last card's focus
   ring gets the same room on its right that the container's start
   padding gives the first card's on its left. */
.avx-related--slider::after{content:'';flex:0 0 auto;
  inline-size:var(--avx-slider-bleed-i);
  margin-inline-start:calc(var(--avx-slider-gap) * -1)}

/* Smooth only when motion is welcome. main.js calls scrollBy() without a
   `behavior`, which means "whatever scroll-behavior says", so this one
   declaration is what makes the buttons animate — and the global reduce
   block in base.css forces scroll-behavior:auto anyway, which is the
   second net under this. */
@media (prefers-reduced-motion:no-preference){
  .avx-slider{scroll-behavior:smooth}
}

/* ---------- Product — regulatory line ----------
 * Quiet, small, full width, clearly separated from the content above.
 * grid-column only matters where it is dropped into a grid. */
.avx-disclaimer{grid-column:1/-1;width:100%;margin:0;
  padding-block-start:var(--space-5);border-block-start:1px solid var(--avx-rule);
  font:var(--fw-regular) var(--fs-caption)/1.6 var(--font-sans);color:var(--avx-quiet)}

/* ---------- Reduced motion ----------
 * The global block in base.css collapses every duration; these stop
 * the transform-based effects of these two pages outright. The chevron
 * still turns — it reports state — it just does not animate. */
@media (prefers-reduced-motion:reduce){
  .avx-prodcard:hover,
  .avx-prodcard:active{transform:none}
  .avx-faq__q::after,
  .avx-faq__q .avx-icon{transition:none}
  .avx-faq__item[open] .avx-faq__a{animation:none}
}
