/* ==========================================================================
   Myxaris site.css
   One stylesheet for index.html, mushrooms.html, ordering.html, farm.html
   and contact.html.

   MARKUP CONVENTIONS USED BY EVERY PAGE
   Skeleton:
     <a class="mx-skip" href="#main">Skip to content</a>
     <header class="mx-header"><div class="mx-header__inner mx-wrap">
       <a class="mx-wordmark" href="index.html">MYXARIS</a>
       <nav class="mx-nav" aria-label="Main"><ul><li><a>...</a></li></ul></nav>
       <details class="mx-menu"><summary class="mx-menu__toggle">Menu</summary>
         <nav class="mx-menu__panel" aria-label="Main"><ul><li><a>...</a></li></ul></nav>
       </details>
     </div></header>
     <main id="main" class="mx-main"><div class="mx-wrap"> sections </div></main>
     <footer class="mx-footer"><div class="mx-wrap"> ... </div></footer>
     <script src="js/site.js" defer></script>

   Grid: .mx-grid with children .mx-span-3 / 4 / 5 / 6 / 7 / 8 / 12,
     optional .mx-md-6 / .mx-md-12 for the 700-1199px band, .mx-tile--tall
     to span two rows.
   Tiles: .mx-tile, surfaces .mx-tile--raised / .mx-tile--deep,
     .mx-tile--marked gives a coral hairline on the left edge.
     Every tile opens with a .mx-label.
   Sections: <section class="mx-section" id="..." data-rail="Prices">.
     data-rail feeds the numbered right rail, which the script builds.
   Reveals: add data-reveal to an element (values: rise, fade, slow).
     data-reveal-group="150" on a container staggers its data-reveal
     children. Nothing is hidden by this stylesheet unless the script
     has added .is-pending first.
   Chevrons on .mx-button, .mx-fact__more, .mx-next__title and the
     phone menu links are drawn in CSS. Do not type arrows in that markup.
   Signatures: <p class="mx-sign">Rok</p>. The leading hairline is CSS.
   Plate drawings: <figure class="mx-plate"><svg viewBox="0 0 520 680">
     strokes as path/line/ellipse/polyline, hatching in g.mx-plate__hatch,
     captions as text.mx-plate__caption, the coral leader as
     path.mx-plate__leader and its 3px dot as circle.mx-plate__dot.
   ========================================================================== */

:root {
  --mx-ground: #E2EEE9;
  --mx-raised: #EAF3EF;
  --mx-deep: #D7E6E0;
  --mx-text: #1C2A47;
  --mx-muted: #53657A;
  --mx-line: #BFD3CC;
  --mx-accent: #C9473D;

  --mx-display: Futura, 'Futura PT', 'Century Gothic', 'URW Gothic', 'Avenir Next', 'Trebuchet MS', sans-serif;
  --mx-body: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --mx-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --mx-pad-x: clamp(16px, 3.9vw, 56px);
  --mx-rail-w: 56px;
  --mx-pad-r: var(--mx-pad-x);
  --mx-gap: 32px;
  --mx-tile-pad: 48px;
  --mx-header-h: 72px;
  --mx-hero-h: clamp(540px, 80vh, 880px);
}

@media (min-width: 900px) {
  :root { --mx-pad-r: calc(var(--mx-pad-x) + var(--mx-rail-w)); }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--mx-ground);
  color: var(--mx-text);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--mx-ground);
  color: var(--mx-text);
  font-family: var(--mx-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; }
svg { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--mx-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}

p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }

strong, b { font-weight: 500; }

::selection { background: var(--mx-line); color: var(--mx-text); }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: var(--mx-muted);
  transition: text-decoration-color 240ms ease, color 240ms ease;
}
a:hover { text-decoration-color: var(--mx-accent); }

:focus-visible {
  outline: 2px solid var(--mx-accent);
  outline-offset: 3px;
}

[id] { scroll-margin-top: calc(var(--mx-header-h) + 24px); }

.mx-skip {
  position: absolute;
  left: var(--mx-pad-x);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--mx-text);
  color: var(--mx-ground);
  text-decoration: none;
  font-size: 0.875rem;
}
.mx-skip:focus { top: 12px; }

.mx-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout wrapper ---------- */

.mx-wrap {
  width: 100%;
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: var(--mx-pad-x) var(--mx-pad-r);
}

.mx-main { padding-top: var(--mx-gap); }

/* ---------- Type scale ---------- */

.mx-label {
  display: block;
  margin: 0 0 1.5rem;
  font-family: var(--mx-body);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mx-muted);
}
.mx-label--flush { margin: 0; }

.mx-caption {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mx-muted);
  line-height: 1.6;
}

.mx-lede {
  font-size: 1.3125rem;
  line-height: 1.55;
  color: var(--mx-text);
  max-width: 46ch;
}

.mx-h1 {
  font-size: clamp(2rem, 1.55rem + 1.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.mx-h2 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.mx-h3 {
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.3;
}

.mx-display {
  font-family: var(--mx-display);
  font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--mx-muted);
  text-wrap: balance;
}
.mx-display em { font-style: normal; color: var(--mx-text); }

.mx-figure {
  display: block;
  font-family: var(--mx-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--mx-text);
  font-variant-numeric: lining-nums;
  margin-bottom: 1.25rem;
}

.mx-muted { color: var(--mx-muted); }

.mx-prose { max-width: 62ch; }
.mx-prose p + p,
.mx-prose p + ul,
.mx-prose ul + p { margin-top: 1em; }

/* ---------- Header ---------- */

.mx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mx-ground);
  border-bottom: 1px solid var(--mx-line);
}

.mx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--mx-header-h);
}

.mx-wordmark {
  font-family: var(--mx-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mx-text);
  white-space: nowrap;
}

.mx-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mx-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mx-muted);
  white-space: nowrap;
}
.mx-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0.18em; bottom: 2px;
  height: 1px;
  background: var(--mx-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms var(--mx-ease);
}
.mx-nav a:hover { color: var(--mx-text); }
.mx-nav a:hover::after { transform: scaleX(1); }
.mx-nav a[aria-current="page"] { color: var(--mx-text); }
.mx-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--mx-text); }

/* Phone menu, built on details and summary */
.mx-menu { display: none; }

.mx-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--mx-line);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mx-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 240ms ease;
}
.mx-menu__toggle::-webkit-details-marker { display: none; }
.mx-menu__toggle::marker { content: ""; }
.mx-menu__toggle::after {
  content: "";
  width: 16px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transition: height 240ms var(--mx-ease);
}
.mx-menu__toggle:hover { border-color: var(--mx-muted); }
.mx-menu[open] .mx-menu__toggle { border-color: var(--mx-text); }
.mx-menu[open]:not(.is-closing) .mx-menu__toggle::after { height: 1px; border-bottom-color: transparent; }

.mx-menu__panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--mx-ground);
  border-bottom: 1px solid var(--mx-line);
  padding: 8px var(--mx-pad-x) 32px;
}
.mx-menu[open] .mx-menu__panel { animation: mx-menu-in 240ms var(--mx-ease) both; }
.mx-menu.is-closing .mx-menu__panel { animation: mx-menu-out 240ms ease-in both; }

.mx-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.mx-menu__panel li { border-bottom: 1px solid var(--mx-line); }
.mx-menu__panel a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--mx-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  color: var(--mx-muted);
  transition: color 240ms ease, transform 320ms var(--mx-ease);
}
.mx-menu__panel a::after {
  content: "";
  flex: none;
  align-self: center;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  color: var(--mx-line);
  transition: color 240ms ease;
}
.mx-menu__panel a:hover,
.mx-menu__panel a[aria-current="page"] { color: var(--mx-text); }
.mx-menu__panel a:hover { transform: translateX(6px); }
.mx-menu__panel a:hover::after { color: var(--mx-accent); }

@keyframes mx-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mx-menu-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* Phone progress bar along the header foot */
.mx-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--mx-accent);
  transform: scaleX(var(--mx-progress, 0));
  transform-origin: left center;
  pointer-events: none;
  display: none;
}

/* ---------- Right rail, built by the script ---------- */

.mx-rail {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 40;
  width: var(--mx-rail-w);
  height: min(56vh, 520px);
  transform: translateY(-50%);
}
.mx-rail__track,
.mx-rail__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 20px;
  width: 1px;
}
.mx-rail__track { background: var(--mx-line); }
.mx-rail__fill {
  background: var(--mx-accent);
  transform: scaleY(var(--mx-progress, 0));
  transform-origin: center top;
}
.mx-rail__list {
  position: absolute;
  inset: -12px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mx-rail-tick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 24px;
  padding-right: 30px;
  text-decoration: none;
  color: var(--mx-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  transition: color 320ms ease;
}
.mx-rail-tick::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 7px;
  height: 1px;
  background: currentColor;
  transition: width 320ms var(--mx-ease);
}
.mx-rail-tick__name {
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  padding: 5px 10px 5px 12px;
  background: var(--mx-ground);
  border: 1px solid var(--mx-line);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mx-text);
  opacity: 0;
  transform: translate(8px, -50%);
  pointer-events: none;
  transition: opacity 420ms var(--mx-ease), transform 420ms var(--mx-ease);
}
.mx-rail-tick:hover,
.mx-rail-tick.is-active { color: var(--mx-text); }
.mx-rail-tick.is-active::after { width: 12px; }
.mx-rail-tick:hover .mx-rail-tick__name,
.mx-rail-tick:focus-visible .mx-rail-tick__name {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ---------- Grid and tiles ---------- */

.mx-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--mx-gap);
  grid-auto-flow: row dense;
  align-items: stretch;
}
.mx-grid > * { min-width: 0; }

.mx-span-3 { grid-column: span 3; }
.mx-span-4 { grid-column: span 4; }
.mx-span-5 { grid-column: span 5; }
.mx-span-6 { grid-column: span 6; }
.mx-span-7 { grid-column: span 7; }
.mx-span-8 { grid-column: span 8; }
.mx-span-9 { grid-column: span 9; }
.mx-span-12 { grid-column: 1 / -1; }

.mx-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--mx-tile-pad);
  border: 1px solid var(--mx-line);
  background: transparent;
  color: var(--mx-text);
}
.mx-tile > * { min-width: 0; }
.mx-tile--raised { background: var(--mx-raised); }
.mx-tile--deep { background: var(--mx-deep); }
.mx-tile--marked { border-left-color: var(--mx-accent); }
.mx-tile--tall { grid-row: span 2; }
.mx-tile--wide { grid-column: span 8; }
.mx-tile--wide.mx-span-12 { grid-column: 1 / -1; }
.mx-tile--narrow { --mx-tile-pad: 36px; }
.mx-tile--top { align-self: start; }

/* ---------- Sections ---------- */

.mx-section { margin-top: clamp(72px, 9vw, 136px); }
.mx-section--near { margin-top: var(--mx-gap); }
.mx-section--close { margin-top: clamp(48px, 5vw, 72px); }
.mx-section--far { margin-top: clamp(96px, 12vw, 184px); }

.mx-section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--mx-gap);
  row-gap: 0;
  align-items: end;
  margin-bottom: clamp(28px, 3.2vw, 48px);
}
.mx-section__head > * { min-width: 0; }
.mx-section__head > .mx-label { grid-column: 1 / -1; }
.mx-section__head > h2 { grid-column: 1 / span 7; }
.mx-section__intro {
  grid-column: 8 / span 5;
  color: var(--mx-muted);
  max-width: 48ch;
}

/* ---------- Page head, inner pages ---------- */

.mx-pagehead {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--mx-gap);
  align-items: end;
  padding-block: clamp(48px, 8vw, 120px) clamp(36px, 4.5vw, 64px);
  border-bottom: 1px solid var(--mx-line);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.mx-pagehead > * { min-width: 0; }
.mx-pagehead > .mx-label { grid-column: 1 / -1; }
.mx-pagehead > h1 { grid-column: 1 / span 7; }
.mx-pagehead__lede {
  grid-column: 8 / span 5;
  font-size: 1.3125rem;
  line-height: 1.55;
  color: var(--mx-muted);
  max-width: 44ch;
}
.mx-pagehead__lede a { color: var(--mx-text); }

/* ---------- Hero, index ---------- */

.mx-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--mx-gap);
}
.mx-hero > * { min-width: 0; }

.mx-hero__text {
  grid-column: span 7;
  min-height: var(--mx-hero-h);
  padding: clamp(28px, 3.9vw, 56px);
  justify-content: space-between;
}

.mx-statement {
  margin-top: auto;
  font-family: var(--mx-display);
  font-size: clamp(2.375rem, 1.6rem + 3.2vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--mx-muted);
  text-wrap: balance;
  max-width: 15ch;
}
.mx-statement em { font-style: normal; color: var(--mx-text); }

.mx-hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: clamp(36px, 6vh, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--mx-line);
}
.mx-hero__meta {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mx-muted);
  line-height: 1.6;
}

.mx-hero__plate {
  grid-column: span 5;
  min-height: var(--mx-hero-h);
  padding: clamp(16px, 2.2vw, 36px);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.mx-hero__plate .mx-plate {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mx-hero__plate .mx-plate svg {
  max-height: calc(var(--mx-hero-h) - 72px);
}

/* ---------- Button ---------- */

.mx-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: auto;
  max-width: 100%;
  padding: 14px 22px;
  border: 1px solid var(--mx-text);
  background: transparent;
  color: var(--mx-text);
  font-family: var(--mx-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 280ms ease, color 280ms ease;
}
.mx-button::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 360ms var(--mx-ease), color 280ms ease;
}
.mx-button:hover { border-color: var(--mx-accent); }
.mx-button:hover::after { transform: translateX(5px) rotate(45deg); color: var(--mx-accent); }

/* ---------- Three questions ---------- */

#questions .mx-grid { align-items: start; }

.mx-q__question {
  font-family: var(--mx-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.mx-q__answer {
  font-size: 1.3125rem;
  line-height: 1.55;
  color: var(--mx-text);
  max-width: 40ch;
}
.mx-q__answer a { white-space: nowrap; }
.mx-tile.mx-q .mx-tile__foot { margin-top: 2rem; }

/* ---------- Fact tiles ---------- */

a.mx-fact {
  text-decoration: none;
  color: var(--mx-text);
  transition: border-color 320ms ease;
}
.mx-fact__text {
  font-family: var(--mx-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.25;
  text-wrap: balance;
  max-width: 24ch;
}
.mx-fact__text em { font-style: normal; color: var(--mx-muted); }
.mx-fact__art {
  margin-top: auto;
  padding-top: 32px;
}
.mx-fact__more {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 36px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mx-muted);
  transition: color 280ms ease;
}
.mx-fact__art + .mx-fact__more { margin-top: 0; padding-top: 24px; }
.mx-fact__more::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 360ms var(--mx-ease), color 280ms ease;
}
a.mx-fact:hover { border-color: var(--mx-muted); }
a.mx-fact:hover .mx-fact__more { color: var(--mx-text); }
a.mx-fact:hover .mx-fact__more::after { transform: translateX(6px) rotate(45deg); color: var(--mx-accent); }

/* ---------- Plate drawings ---------- */

.mx-plate {
  position: relative;
  width: 100%;
  margin: 0;
}
.mx-plate svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.mx-plate path,
.mx-plate line,
.mx-plate polyline,
.mx-plate ellipse,
.mx-plate circle,
.mx-plate rect {
  fill: none;
  stroke: var(--mx-text);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.mx-plate .mx-plate__hatch path,
.mx-plate .mx-plate__hatch line,
.mx-plate .mx-plate__fine {
  stroke: var(--mx-muted);
}
.mx-plate .mx-plate__frame { stroke: var(--mx-line); }
.mx-plate text,
.mx-plate .mx-plate__caption {
  fill: var(--mx-muted);
  stroke: none;
  font-family: var(--mx-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mx-plate .mx-plate__caption--key { fill: var(--mx-text); }
.mx-plate .mx-plate__leader { stroke: var(--mx-accent); }
.mx-plate .mx-plate__dot { fill: var(--mx-accent); stroke: none; }
.mx-plate figcaption {
  margin-top: 16px;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mx-muted);
}
.mx-plate--single { max-width: 340px; }

@media (prefers-reduced-motion: no-preference) {
  .mx-plate--drift svg {
    animation: mx-drift 32s ease-in-out infinite alternate;
    transform-origin: 50% 55%;
  }
}
@keyframes mx-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.03) translate3d(-0.8%, -0.6%, 0); }
}

/* ---------- Variety tiles, mushrooms page ---------- */

.mx-variety__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.mx-variety__name {
  font-family: var(--mx-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}
.mx-variety__latin {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mx-muted);
}
.mx-variety__price {
  font-family: var(--mx-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}

.mx-specs {
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--mx-line);
}
.mx-specs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--mx-line);
}
.mx-specs dt {
  flex: none;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mx-muted);
}
.mx-specs dd {
  margin: 0;
  min-width: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mx-note {
  margin-top: 0;
  padding-top: 32px;
}
.mx-note .mx-label { margin-bottom: 0.75rem; }
.mx-note p { max-width: 52ch; }
.mx-note p + p { margin-top: 0.8em; }

/* Lion's mane long section */
.mx-longread {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--mx-gap);
  padding: clamp(28px, 5.5vw, 88px);
}
.mx-longread__aside {
  grid-column: 1 / span 4;
  align-self: start;
  position: static;
  top: calc(var(--mx-header-h) + 40px);
}
@media (min-width: 900px) and (min-height: 1050px) {
  .mx-longread__aside { position: sticky; }
}
.mx-longread__aside .mx-plate { margin: 28px 0 32px; }
.mx-longread__title {
  font-family: var(--mx-display);
  font-size: clamp(2rem, 1.55rem + 1.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 8px;
}
.mx-longread__body {
  grid-column: 6 / span 7;
  max-width: 62ch;
}
.mx-longread__open {
  font-family: var(--mx-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--mx-text);
  margin-bottom: 2.5rem;
  text-wrap: balance;
}
.mx-longread__body p + p { margin-top: 1.1em; }
.mx-longread__subhead {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 3.5rem 0 1.25rem;
  font-family: var(--mx-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mx-muted);
  line-height: 1.5;
}
.mx-longread__subhead::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--mx-line);
}

.mx-sign {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2.5rem;
  font-family: var(--mx-display);
  font-size: 1.3125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--mx-text);
}
.mx-sign::before {
  content: "";
  flex: none;
  width: 40px;
  height: 1px;
  background: var(--mx-accent);
}

/* ---------- Lists ---------- */

.mx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--mx-line);
}
.mx-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--mx-line);
  color: var(--mx-muted);
  transition: color 280ms ease;
}
.mx-list li::before {
  content: "";
  flex: 0 0 14px;
  height: 1px;
  background: var(--mx-line);
  transform: translateY(-0.32em);
  transition: flex-basis 360ms var(--mx-ease), background-color 280ms ease;
}
.mx-list li > * { min-width: 0; }
.mx-list li:hover { color: var(--mx-text); }
.mx-list li:hover::before { flex-basis: 26px; background: var(--mx-accent); }
.mx-list strong { color: var(--mx-text); font-weight: 500; }

.mx-towns {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  gap: 6px 0;
}
.mx-towns li {
  font-family: var(--mx-display);
  font-size: 1.3125rem;
  line-height: 1.4;
}
.mx-towns li:not(:last-child)::after {
  content: "\00B7";
  margin: 0 0.55em;
  color: var(--mx-muted);
}

/* ---------- Prices, ordering page ---------- */

.mx-price__name {
  font-family: var(--mx-display);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.3;
}
.mx-price__figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25em 0.5em;
  margin-top: auto;
  padding-top: 44px;
  font-family: var(--mx-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
}
.mx-price__unit {
  font-family: var(--mx-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mx-muted);
}
.mx-price__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--mx-line);
  color: var(--mx-muted);
}

/* ---------- Farm page ---------- */

.mx-step__num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 56px);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: var(--mx-muted);
  font-variant-numeric: tabular-nums;
}
.mx-step__num::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--mx-line);
}
.mx-step__name {
  font-family: var(--mx-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.mx-step__text { max-width: 44ch; }
.mx-step__text + .mx-step__text { margin-top: 0.8em; }

.mx-letter p {
  font-size: 1.3125rem;
  line-height: 1.6;
  max-width: 56ch;
}
.mx-letter p + p { margin-top: 0.9em; }

/* ---------- Contact page ---------- */

.mx-email {
  display: inline-block;
  max-width: 100%;
  font-family: var(--mx-display);
  font-size: clamp(1.5rem, 0.95rem + 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.005em;
  color: var(--mx-text);
  text-decoration-color: var(--mx-line);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.mx-email:hover { text-decoration-color: var(--mx-accent); }
.mx-email-note {
  margin-top: 1.5rem;
  color: var(--mx-muted);
  max-width: 48ch;
}

.mx-tile .mx-tile__foot {
  margin-top: auto;
  padding-top: 28px;
}

/* ---------- Next block ---------- */

.mx-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mx-gap);
  margin-top: clamp(96px, 12vw, 168px);
}
.mx-next__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 0 8px;
  border-top: 1px solid var(--mx-line);
  text-decoration: none;
  color: var(--mx-muted);
  min-width: 0;
  transition: color 280ms ease;
}
.mx-next__link::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--mx-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--mx-ease);
}
.mx-next__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mx-muted);
}
.mx-next__title {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mx-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--mx-text);
}
.mx-next__title::after {
  content: "";
  flex: none;
  align-self: center;
  width: 10px;
  height: 10px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  color: var(--mx-muted);
  transition: transform 360ms var(--mx-ease), color 280ms ease;
}
.mx-next__link:hover::before { transform: scaleX(1); }
.mx-next__link:hover .mx-next__title::after { transform: translateX(8px) rotate(45deg); color: var(--mx-accent); }

/* ---------- Footer ---------- */

.mx-footer {
  margin-top: clamp(96px, 12vw, 168px);
  border-top: 1px solid var(--mx-line);
  padding-block: clamp(48px, 6vw, 80px) 36px;
}
.mx-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px var(--mx-gap);
}
.mx-footer__grid > * { min-width: 0; }
.mx-footer__brand { grid-column: span 5; }
.mx-footer__pages { grid-column: span 4; }
.mx-footer__contact { grid-column: span 3; }
.mx-footer__brand .mx-wordmark { display: inline-block; margin-bottom: 18px; }
.mx-footer__brand p { color: var(--mx-muted); max-width: 36ch; }
.mx-footer__pages ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mx-footer__pages a {
  display: inline-flex;
  padding: 5px 0;
  text-decoration: none;
  color: var(--mx-muted);
  transition: color 240ms ease, transform 320ms var(--mx-ease);
}
.mx-footer__pages a:hover,
.mx-footer__pages a[aria-current="page"] { color: var(--mx-text); }
.mx-footer__pages a:hover { transform: translateX(6px); }
.mx-footer__contact a { overflow-wrap: anywhere; }
.mx-footer__contact p + p { margin-top: 0.4em; }
.mx-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--mx-line);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mx-muted);
}

/* ---------- Reveal states, only ever applied by the script ---------- */

[data-reveal="fade"] { --mx-dur: 1400ms; }
[data-reveal="slow"] { --mx-dur: 1200ms; }
.mx-longread__body [data-reveal="fade"] { --mx-dur: 500ms; }

.is-pending {
  transform: translate3d(0, 24px, 0);
}
[data-reveal="fade"].is-pending { transform: translate3d(0, 10px, 0); }

[data-reveal].is-revealed {
  transition:
    opacity var(--mx-dur, 900ms) var(--mx-ease) var(--mx-delay, 0ms),
    transform var(--mx-dur, 900ms) var(--mx-ease) var(--mx-delay, 0ms),
    border-color 320ms ease,
    color 280ms ease;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  :root { --mx-gap: 24px; --mx-tile-pad: 40px; }
  .mx-span-3, .mx-span-4, .mx-span-5, .mx-span-6, .mx-span-7 { grid-column: span 6; }
  .mx-span-8, .mx-span-9, .mx-tile--wide { grid-column: 1 / -1; }
  .mx-md-6 { grid-column: span 6; }
  .mx-md-12 { grid-column: 1 / -1; }
  .mx-hero__text { grid-column: span 7; }
  .mx-hero__plate { grid-column: span 5; }
  .mx-longread__aside { grid-column: 1 / span 4; }
  .mx-longread__body { grid-column: 5 / span 8; }
}

@media (max-width: 899px) {
  :root { --mx-header-h: 60px; --mx-tile-pad: 32px; --mx-gap: 20px; }

  .mx-nav { display: none; }
  .mx-menu { display: block; }
  .mx-rail { display: none; }
  .mx-progress { display: block; }

  .mx-hero__text,
  .mx-hero__plate { grid-column: 1 / -1; min-height: 0; }
  .mx-hero__plate .mx-plate svg { max-height: 420px; }
  .mx-statement { max-width: 18ch; }

  .mx-pagehead > h1,
  .mx-pagehead__lede,
  .mx-section__head > h2,
  .mx-section__intro { grid-column: 1 / -1; }
  .mx-pagehead__lede,
  .mx-section__intro { margin-top: 1.25rem; }

  .mx-longread__aside,
  .mx-longread__body { grid-column: 1 / -1; }
  .mx-longread__aside { position: static; margin-bottom: 40px; }

  .mx-footer__brand { grid-column: 1 / -1; }
  .mx-footer__pages,
  .mx-footer__contact { grid-column: span 6; }
}

@media (max-width: 699px) {
  :root { --mx-gap: 16px; --mx-tile-pad: 28px; }

  .mx-grid > *,
  .mx-span-3, .mx-span-4, .mx-span-5, .mx-span-6, .mx-span-7,
  .mx-span-8, .mx-span-9, .mx-span-12, .mx-md-6, .mx-md-12,
  .mx-tile--wide { grid-column: 1 / -1; }
  .mx-tile--tall { grid-row: auto; }
  .mx-tile--narrow { --mx-tile-pad: 28px; }

  .mx-hero__text { padding: 28px; }
  .mx-hero__foot { margin-top: 24px; padding-top: 20px; }
  .mx-hero__plate { padding: 8px; min-height: 300px; }
  .mx-hero__plate .mx-plate svg { max-height: 300px; }
  .mx-hero__plate .mx-plate text:not(.mx-plate__caption) { display: none; }
  .mx-hero__plate .mx-plate .mx-plate__chrome { display: none; }
  .mx-hero__plate .mx-plate text {
    font-size: 22px;
    letter-spacing: 0.1em;
  }
  .mx-plate .mx-plate__dense { display: none; }
  .mx-statement { max-width: none; }

  .mx-fact__text,
  .mx-q__question,
  .mx-variety__name,
  .mx-variety__price,
  .mx-step__name,
  .mx-longread__open,
  .mx-next__title { font-size: 1.5rem; }
  .mx-q__answer,
  .mx-letter p { font-size: 1.1875rem; }
  .mx-price__figure { font-size: 2.25rem; padding-top: 32px; }

  .mx-longread { padding: 28px; }
  .mx-longread__subhead { margin-top: 2.75rem; }

  .mx-next { grid-template-columns: 1fr; gap: 0; }

  .mx-footer__pages,
  .mx-footer__contact { grid-column: 1 / -1; }

  .mx-specs > div { flex-wrap: wrap; }
  .mx-specs dd { text-align: left; }
}

@media (max-width: 380px) {
  .mx-wordmark { letter-spacing: 0.32em; margin-right: -0.32em; }
  .mx-statement { font-size: 2.125rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .is-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .mx-header, .mx-rail, .mx-progress, .mx-next { display: none; }
  .is-pending { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
  .mx-tile { break-inside: avoid; }
}