/* ==========================================================================
   KUNEY FLOWERS — interface
   Minimal chrome inside the 3D space; editorial layout outside it.
   ========================================================================== */

/* --- app shell ---------------------------------------------------------- */

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#canvas-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}

#canvas-host.is-live {
  opacity: 1;
}

/* Fade plate used for space-to-space transitions. */
#veil {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: var(--bone);
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms var(--ease);
}

#veil.is-up {
  opacity: 1;
}

#veil.is-instant {
  transition: none;
}

/* The renderer draws at the host's size; CSS keeps the canvas filling it
   between a viewport change and the next resize, so an iOS toolbar collapse
   or a rotation never shows a strip of bare page. */
#canvas-host canvas {
  width: 100% !important;
  height: 100% !important;
}

/* --- loading ------------------------------------------------------------ */

#loader {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.4rem;
  background: var(--bone);
  transition: opacity 700ms var(--ease), visibility 700ms;
}

#loader[hidden] {
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Same wordmark image as the hero: the letters fill 83.3% of its width and
   17.9% of its height, so the transparent margin is pulled back out. Sized so
   the wordmark matches the old 1.6-2.4rem spaced "KUNEY" text. */
.loader__mark {
  --w: clamp(10rem, 25vw, 15rem);
  display: block;
  width: var(--w);
  height: auto;
  margin: calc(var(--w) * -0.29) calc(var(--w) * -0.083);
}

.loader__bar {
  width: min(220px, 40vw);
  height: 1px;
  background: rgba(44, 42, 38, 0.16);
  overflow: hidden;
}

.loader__bar span {
  display: block;
  height: 100%;
  width: 30%;
  background: var(--charcoal);
  animation: sweep 1.5s var(--ease-soft) infinite;
}

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(360%); }
}

.loader__status {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-faint);
}

/* --- landing ------------------------------------------------------------ */

#landing {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
  background: var(--bone);
  transition: opacity 900ms var(--ease), visibility 900ms;
}

#landing[hidden] {
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: calc(clamp(4rem, 12vh, 8rem) + var(--safe-t)) var(--gutter) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}

/* The hero art is the live 3D shop, rendered behind and drifting slowly. */
.hero__plate {
  position: absolute;
  inset: -4%;
  background:
    radial-gradient(120% 90% at 62% 22%, rgba(255, 249, 238, 0.92) 0%, rgba(255, 249, 238, 0) 58%),
    linear-gradient(178deg, #f7f4ee 0%, #efe9df 46%, #e4dccd 100%);
  animation: heroDrift 34s var(--ease-soft) infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(-1%, -0.6%, 0); }
  to { transform: scale(1.1) translate3d(1.2%, 0.8%, 0); }
}

.hero__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  animation: heroDrift 40s var(--ease-soft) infinite alternate;
}

.hero__image.is-set {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(244, 241, 236, 0.5) 0%,
    rgba(244, 241, 236, 0.16) 34%,
    rgba(244, 241, 236, 0.6) 78%,
    var(--bone) 100%
  );
}

/* Floating botanical motes — decorative only. */
.hero__motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__motes i {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50% 50% 50% 12%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 8px rgba(255, 246, 230, 0.9);
  animation: float linear infinite;
}

@keyframes float {
  0% { transform: translate3d(0, 8vh, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.85; }
  88% { opacity: 0.6; }
  100% { transform: translate3d(6vw, -92vh, 0) rotate(220deg); opacity: 0; }
}

.hero__inner {
  position: relative;
  min-width: 0;
  max-width: 62ch;
}

.hero__eyebrow,
.hero__title,
.hero__intro,
.hero__actions,
.hero__season {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.1s var(--ease) forwards;
}

.hero__eyebrow { animation-delay: 0.15s; }
.hero__title { animation-delay: 0.3s; }
.hero__season { animation-delay: 0.42s; }
.hero__intro { animation-delay: 0.54s; }
.hero__actions { animation-delay: 0.68s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-size: clamp(2.9rem, 9vw, 6.4rem);
  letter-spacing: 0.02em;
  /* Matched to the gap below the logo: the eyebrow's line box adds ~0.28rem
     of half-leading under it, FLOWERS adds ~0.1em above itself. */
  margin: 1rem 0 0;
}

/* The wordmark in place of the set KUNEY. Letters span 83.4% of the image's
   width and 18% of its height (0.707 × width), so the margins trim the empty
   canvas around them — the same crop the HUD logo uses. */
.hero__logo {
  --w: clamp(11.2rem, 33.6vw, 24rem);
  display: block;
  width: var(--w);
  height: auto;
  margin: calc(var(--w) * -0.29) 0 calc(var(--w) * -0.29) calc(var(--w) * -0.083);
}

.hero__title b {
  display: block;
  font-weight: 300;
  letter-spacing: 0.3em;
  font-size: 0.24em;
  font-family: var(--sans);
  text-transform: uppercase;
  color: var(--charcoal-soft);
  line-height: 1;
  margin-top: 1.28rem;
}

.hero__season {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.hero__season::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--sage-deep);
}

.hero__intro {
  margin-top: 1.4rem;
  font-size: clamp(0.8rem, 1.2vw, 0.912rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.6;
  color: #1a1a1a;
  max-width: 48ch;
}

/* No season copy: drop the line so it doesn't float on its own. */
.hero__season:has(> span:empty) {
  display: none;
}

.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Featured */

.featured {
  padding: clamp(3.5rem, 9vh, 7rem) var(--gutter);
  border-top: var(--rule-faint);
}

.featured__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.6rem;
}

.featured__head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin-top: 0.5rem;
}

.featured__grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
}

.card {
  display: grid;
  gap: 0.85rem;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
}

.card__art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(168deg, #f2eee6, #e2dacb);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

@media (hover: hover) {
  .card:hover .card__art {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }
}

.card__art img,
.card__art canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__art--empty::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: var(--heading);
  font-size: 2.6rem;
  letter-spacing: 0.14em;
  color: rgba(44, 42, 38, 0.18);
}

.card__title {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.22rem;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--charcoal-faint);
  line-height: 1.5;
}

/* Sizes strip */

.sizes {
  padding: clamp(3rem, 7vh, 5.5rem) var(--gutter);
  border-top: var(--rule-faint);
  display: grid;
  gap: 2rem;
}

/* The eyebrow and heading sit ~0.43rem apart on their line boxes alone;
   0.17rem took that to 1.4x (~0.60rem), this takes it 1.4x again (~0.84rem). */
.sizes #sizes-title {
  margin-top: 0.41rem;
}

.sizes__grid {
  display: grid;
  gap: 1px;
  background: rgba(44, 42, 38, 0.12);
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.sizes__grid > div {
  background: var(--bone);
  padding: 1.8rem 1.6rem;
}

.sizes__grid h3 {
  font-size: 1.4rem;
}

.sizes__price {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  margin-top: 0.5rem;
  color: var(--sage-deep);
}

.sizes__grid p {
  font-size: 0.86rem;
  color: var(--charcoal-faint);
  margin-top: 0.6rem;
}

/* Footer */

.site-foot {
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--gutter) calc(3rem + var(--safe-b));
  border-top: var(--rule);
  display: grid;
  gap: 2rem;
}

.site-foot__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  align-items: start;
}

/* Same face, weight, tracking and colour as the size labels (Standard /
   Large / Extravagant); only the size differs. */
.site-foot h4 {
  font-family: var(--heading);
  font-size: 1.125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.9rem;
}

/* Same type as the size descriptions ("A generous hand-tied bouquet."). */
.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--charcoal-faint);
  overflow-wrap: anywhere;
}

/* Links and link-buttons share one box model so every column's first line
   sits on the same baseline. */
.site-foot li {
  margin: 0;
  padding: 0;
}

.site-foot li > a,
.site-foot li > .u-link {
  display: inline-block;
  vertical-align: top;
  line-height: inherit;
}

.site-foot a:hover,
.u-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* A button that should read as a link. */
.u-link {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
}

.site-foot__note {
  font-size: 0.8rem;
  color: var(--charcoal-faint);
  max-width: 60ch;
}

.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.72rem;
  color: var(--charcoal-faint);
  border-top: var(--rule-faint);
  padding-top: 1.4rem;
}

/* --- in-space HUD ------------------------------------------------------- */

#hud {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--dur) var(--ease);
}

#hud[hidden] {
  display: block;
  opacity: 0;
  visibility: hidden;
}

/* When a detail panel opens, the rest of the interface recedes.

   The tour nav deliberately does not: Next and Previous have to keep working
   with the panel open, and dimming them to 0.16 with pointer-events off was
   what forced a visitor to close the panel before they could step on. */
#hud.is-dimmed .hud__topbar,
#hud.is-dimmed .hud__plan,
#hud.is-dimmed .hud__hint {
  opacity: 0.16;
  pointer-events: none;
}

#hud > * {
  pointer-events: auto;
}

.hud__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: calc(clamp(0.85rem, 2vw, 1.4rem) + var(--safe-t))
    calc(clamp(0.85rem, 2.5vw, 1.8rem) + var(--safe-r))
    clamp(0.85rem, 2vw, 1.4rem)
    calc(clamp(0.85rem, 2.5vw, 1.8rem) + var(--safe-l));
  transition: opacity var(--dur) var(--ease);
}

/* The logo stands on its own now — no pill, no backdrop — at the size the
   shop's own header gives it: a 130px wordmark.

   images/kuneylogo.png is that wordmark centred in a large transparent canvas.
   The letters are 83.3% of the file's width and 17.9% of its height, so the
   image is sized to 156px (156 x 0.833 = 130px of actual wordmark) and the
   transparent margin is pulled back out of the layout box. Without that the
   link would be a 156 x 110px block over the top-left corner of the room,
   swallowing clicks on the stone and the flowers behind it.

   The pill was also what kept black letters legible; a soft white halo does
   that job instead, and costs nothing when the wall behind is already pale. */
.hud__brand {
  display: flex;
  align-items: center;
  /* Half the top bar's side padding again: 1.5x the logo's left inset. */
  margin-left: calc(clamp(0.85rem, 2.5vw, 1.8rem) * 0.5);
}

.hud__brand img {
  display: block;
  width: 218px;
  height: auto;
  /* 154px tall at that width: 41% of it is empty above and below the letters,
     8.3% either side. */
  margin: -63px -18px;
  filter: drop-shadow(0 0 3px rgba(255, 253, 248, 0.75));
}

.hud__spacer {
  flex: 1;
}

.hud__group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--panel);
  -webkit-backdrop-filter: var(--panel-blur);
  backdrop-filter: var(--panel-blur);
  border: 1px solid rgba(44, 42, 38, 0.1);
}

.hud__group .icon-btn {
  border: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  width: 38px;
  height: 38px;
}

.hud__group .icon-btn[aria-pressed='true'] {
  background: var(--charcoal);
  color: var(--bone);
}

/* Bottom navigation */

.hud__steps {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(0.9rem, 2.5vw, 1.6rem) + var(--safe-b));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: var(--panel);
  -webkit-backdrop-filter: var(--panel-blur);
  backdrop-filter: var(--panel-blur);
  border: 1px solid rgba(44, 42, 38, 0.1);
  box-shadow: var(--shadow-soft);
  max-width: calc(100vw - 1.6rem - var(--safe-l) - var(--safe-r));
  transition: opacity var(--dur) var(--ease);
}

.hud__stepbtn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--charcoal-soft);
}

.hud__stepbtn:hover {
  background: rgba(44, 42, 38, 0.07);
  color: var(--charcoal);
}

.hud__stepbtn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hud__stepnow {
  min-width: 0;
  padding: 0 0.9rem;
  text-align: center;
}

.hud__stepnow b {
  display: block;
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44vw;
}

.hud__stepnow span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-faint);
}

.hud__hint {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(0.9rem, 2.5vw, 1.6rem) + 66px + var(--safe-b));
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--charcoal-soft);
  background: var(--panel);
  -webkit-backdrop-filter: var(--panel-blur);
  backdrop-filter: var(--panel-blur);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 42, 38, 0.08);
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--dur) var(--ease);
}

.hud__hint[hidden] {
  display: none;
}

/* Floor plan */

.hud__plan {
  position: absolute;
  left: calc(clamp(0.85rem, 2.5vw, 1.8rem) + var(--safe-l));
  bottom: calc(clamp(0.9rem, 2.5vw, 1.6rem) + var(--safe-b));
  width: 168px;
  padding: 0.7rem;
  border-radius: 14px;
  background: var(--panel);
  -webkit-backdrop-filter: var(--panel-blur);
  backdrop-filter: var(--panel-blur);
  border: 1px solid rgba(44, 42, 38, 0.1);
  box-shadow: var(--shadow-soft);
  transition: opacity var(--dur) var(--ease);
}

.hud__plan p {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-faint);
  margin-bottom: 0.45rem;
}

.hud__plan svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.plan__room {
  fill: rgba(44, 42, 38, 0.045);
  stroke: rgba(44, 42, 38, 0.28);
  stroke-width: 0.9;
}

.plan__feature {
  fill: rgba(44, 42, 38, 0.13);
}

.plan__dot {
  fill: var(--bone);
  stroke: var(--charcoal-soft);
  stroke-width: 0.9;
  cursor: pointer;
  transition: fill 200ms var(--ease-soft), r 200ms var(--ease-soft);
}

.plan__dot:hover {
  fill: var(--sage);
}

.plan__dot.is-active {
  fill: var(--charcoal);
  stroke: var(--charcoal);
}

.plan__you {
  fill: var(--sage-deep);
}

.plan__cone {
  fill: rgba(110, 124, 102, 0.22);
}

/* Gathered-stems counter */

.hud__basket {
  position: absolute;
  right: calc(clamp(0.85rem, 2.5vw, 1.8rem) + var(--safe-r));
  bottom: calc(clamp(0.9rem, 2.5vw, 1.6rem) + var(--safe-b));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.basket__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 42, 38, 0.12);
  background: var(--panel);
  -webkit-backdrop-filter: var(--panel-blur);
  backdrop-filter: var(--panel-blur);
  box-shadow: var(--shadow-soft);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.basket__swatches {
  display: flex;
}

.basket__swatches i {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--bone);
  margin-left: -5px;
  box-shadow: 0 0 0 1px rgba(44, 42, 38, 0.14);
}

.basket__swatches i:first-child {
  margin-left: 0;
}

/* --- side panel --------------------------------------------------------- */

.panel {
  position: absolute;
  z-index: 25;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  background: rgba(246, 243, 238, 0.97);
  -webkit-backdrop-filter: var(--panel-blur);
  backdrop-filter: var(--panel-blur);
  border-left: var(--rule-faint);
  box-shadow: -30px 0 70px -40px rgba(44, 42, 38, 0.35);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease), visibility var(--dur);
  visibility: hidden;
}

.panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

.panel__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.5rem 1rem;
  padding-top: calc(1.4rem + var(--safe-t));
  padding-right: calc(1.5rem + var(--safe-r));
  border-bottom: var(--rule-faint);
}

.panel__head > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.panel__head h2 {
  font-size: clamp(1.19rem, 2.55vw, 1.5725rem);
  margin-top: 0.35rem;
}

.panel__head .icon-btn {
  margin-left: auto;
  flex: none;
}

.panel__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.4rem calc(1.5rem + var(--safe-r)) 2rem 1.5rem;
  display: grid;
  gap: 1.5rem;
  align-content: start;
  min-width: 0;
}


.panel__foot {
  padding: 1rem calc(1.5rem + var(--safe-r)) calc(1.4rem + var(--safe-b)) 1.5rem;
  border-top: var(--rule-faint);
  display: grid;
  gap: 0.6rem;
}

.panel--wide {
  width: min(560px, 100%);
}

/* Panel sections */

.section > h3 {
  font-family: var(--heading);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-faint);
  font-weight: 500;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.section > h3 em {
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.72rem;
  color: var(--charcoal-faint);
  margin-left: auto;
}

.prose {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--charcoal-soft);
}

.varieties {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.varieties li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: var(--rule-faint);
}

.varieties li::before {
  content: '';
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
  transform: translateY(-2px);
}

/* A colour breakdown of one vase: swatch instead of the sage dot, count on
   the right. Used where a display holds several colours of one variety. */

.varieties--swatched li::before {
  display: none;
}

.varieties--swatched li {
  align-items: center;
  gap: 0.6rem;
}

.varieties--swatched i {
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(44, 42, 38, 0.16);
}

.varieties--swatched em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--charcoal-soft);
}

/* Chips (colour + occasion + size) */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 42, 38, 0.18);
  background: transparent;
  font-size: 0.8rem;
  transition: border-color var(--dur-fast) var(--ease-soft),
    background var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft);
}

.chip:hover {
  border-color: rgba(44, 42, 38, 0.42);
}

.chip[aria-pressed='true'] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--bone);
}

.chip i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(44, 42, 38, 0.2);
  flex: none;
}

.chip--size {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  border-radius: 4px;
  padding: 0.8rem 1rem;
  flex: 1 1 120px;
  text-align: left;
}

.chip--size strong {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  font-weight: 400;
}

.chip--size span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  opacity: 0.72;
}

/* Order readout */

.readout {
  display: grid;
  gap: 0.55rem;
  font-size: 0.86rem;
}

.readout div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.55rem;
  border-bottom: var(--rule-faint);
}

.readout dt,
.readout span:first-child {
  color: var(--charcoal-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex: none;
}

.readout b {
  font-weight: 400;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.readout--total {
  border-top: 1px solid var(--charcoal);
  padding-top: 0.9rem;
  margin-top: 0.4rem;
}

.readout--total b {
  font-family: var(--heading);
  font-size: 1.5rem;
}

.notice {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--charcoal-soft);
  background: rgba(140, 154, 130, 0.13);
  border-left: 2px solid var(--sage);
  padding: 0.8rem 0.95rem;
}

.notice--warn {
  background: rgba(184, 58, 63, 0.08);
  border-left-color: #b83a3f;
}

/* --- calendar ----------------------------------------------------------- */

.cal {
  display: grid;
  gap: 0.9rem;
}

.cal__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.cal__title {
  font-size: 1.5rem;
  margin-top: 0.3rem;
}

.cal__nav {
  display: flex;
  gap: 0.4rem;
}

.cal__weekdays,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal__weekdays span {
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-faint);
  padding-bottom: 0.2rem;
}

.cal__cell {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 0.1rem;
  min-width: 0;
  min-height: 54px;
  overflow: hidden;
  padding: 0.32rem 0.36rem;
  border: 1px solid rgba(44, 42, 38, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  text-align: left;
  transition: border-color var(--dur-fast) var(--ease-soft),
    background var(--dur-fast) var(--ease-soft);
}

.cal__cell--empty {
  border: 0;
  background: none;
  min-height: 0;
}

.cal__cell:not([disabled]):hover {
  border-color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.9);
}

.cal__num {
  font-family: var(--heading);
  font-size: 1.06rem;
  line-height: 1;
}

.cal__status {
  font-size: 0.56rem;
  line-height: 1.25;
  color: var(--charcoal-faint);
  overflow-wrap: anywhere;
}

.cal__status b {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sage-deep);
  line-height: 1.1;
}

.cal__status i {
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.52rem;
}

.cal__cell.is-past {
  opacity: 0.4;
  background: none;
}

.cal__cell.is-sold {
  background: repeating-linear-gradient(
    -45deg,
    rgba(44, 42, 38, 0.05) 0 4px,
    transparent 4px 8px
  );
}

.cal__cell.is-sold .cal__num {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.6;
}

.cal__cell.is-selected {
  border-color: var(--charcoal);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--charcoal);
}

.cal__note {
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  line-height: 1.6;
}

.cal__admin {
  border-top: var(--rule);
  padding-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.cal__adminrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.cal__adminrow .btn {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.66rem;
}

.cal__adminnote {
  font-size: 0.72rem;
  color: var(--charcoal-faint);
}

.cal__adminnote a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--charcoal-faint);
  letter-spacing: 0.04em;
}

.field > span {
  text-transform: none;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 0.9rem;
  color: var(--charcoal);
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(44, 42, 38, 0.2);
  border-radius: 3px;
  background: #fff;
  width: 100%;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 1px;
}

/* --- invoice ------------------------------------------------------------ */

#invoice-overlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: start center;
  padding: calc(clamp(0.8rem, 3vw, 2.5rem) + var(--safe-t))
    calc(clamp(0.8rem, 3vw, 2.5rem) + var(--safe-r))
    calc(clamp(0.8rem, 3vw, 2.5rem) + var(--safe-b))
    calc(clamp(0.8rem, 3vw, 2.5rem) + var(--safe-l));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(38, 36, 32, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

#invoice-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.invoice-shell {
  width: min(720px, 100%);
  display: grid;
  gap: 0.9rem;
}

.invoice-paper {
  background: #fff;
  color: #000;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
  /* Torn top edge, as though pulled from the printer. */
  clip-path: polygon(
    0 6px, 2% 0, 4% 6px, 6% 1px, 8% 6px, 10% 0, 12% 5px, 14% 0, 16% 6px, 18% 1px,
    20% 6px, 22% 0, 24% 5px, 26% 1px, 28% 6px, 30% 0, 32% 6px, 34% 1px, 36% 5px,
    38% 0, 40% 6px, 42% 1px, 44% 6px, 46% 0, 48% 5px, 50% 1px, 52% 6px, 54% 0,
    56% 6px, 58% 1px, 60% 5px, 62% 0, 64% 6px, 66% 1px, 68% 6px, 70% 0, 72% 5px,
    74% 1px, 76% 6px, 78% 0, 80% 6px, 82% 1px, 84% 5px, 86% 0, 88% 6px, 90% 1px,
    92% 6px, 94% 0, 96% 5px, 98% 1px, 100% 6px, 100% 100%, 0 100%
  );
  animation: printOut 900ms var(--ease) both;
}

@keyframes printOut {
  from { transform: translateY(-26px) scaleY(0.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.invoice-actions .btn {
  background: var(--bone);
  color: var(--charcoal);
  border-color: var(--bone);
}

.invoice-actions .btn:hover {
  background: transparent;
  color: var(--bone);
  border-color: rgba(244, 241, 236, 0.6);
}

.invoice-actions .btn--pay {
  background: var(--charcoal);
  color: var(--bone);
  border-color: var(--charcoal);
}

.invoice-actions .btn--pay:hover {
  background: var(--bone);
  color: var(--charcoal);
}

/* Invoice typography — strictly black and white. */

.inv {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: #000;
  display: grid;
  gap: 1.3rem;
}

.inv__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.inv__brand {
  display: block;
  width: 170px;
  height: auto;
  /* The file's transparent margin (41% above and below, 8.3% either side —
     see .hud__brand img) pulled back out of the layout box. */
  margin: -49px -14px;
}

.inv__sub {
  font-size: 0.76rem;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 0.2rem;
}

.inv__meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: right;
  line-height: 1.9;
}

.inv__meta span {
  color: rgba(0, 0, 0, 0.45);
  margin-right: 0.4rem;
}

.inv__title {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  font-weight: 500;
}

.inv__list {
  margin: 0;
  display: grid;
  gap: 0;
}

.inv__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.inv__row dt {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.inv__row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 0.94rem;
}

.inv__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

.inv__total span {
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.inv__total b {
  font-family: var(--heading);
  font-size: 1.9rem;
  font-weight: 400;
}

.inv__note {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.8);
}

.inv__note--faint {
  color: rgba(0, 0, 0, 0.52);
  font-size: 0.76rem;
}

.inv__cols {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.inv__cols h3 {
  font-family: var(--heading);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  margin-bottom: 0.7rem;
}

.inv__cols ul,
.inv__cols ol {
  margin: 0;
  padding: 0 0 0 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.55;
}

.inv__cols ul li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.inv__cols ol {
  counter-reset: term;
  padding-left: 0;
}

.inv__cols ol li {
  counter-increment: term;
  display: flex;
  gap: 0.6rem;
  color: rgba(0, 0, 0, 0.75);
}

.inv__cols ol li::before {
  content: counter(term) '.';
  flex: none;
  color: rgba(0, 0, 0, 0.45);
}

.inv__foot {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

/* --- garden panel ------------------------------------------------------- */

.garden-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 1px;
  background: rgba(44, 42, 38, 0.12);
  border: 1px solid rgba(44, 42, 38, 0.12);
}

.garden-stats > div {
  background: rgba(246, 243, 238, 0.9);
  padding: 0.8rem 0.7rem;
  text-align: center;
}

.garden-stats b {
  display: block;
  font-family: var(--heading);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.1;
}

.garden-stats span {
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-faint);
}

.plot-list {
  display: grid;
  gap: 0.6rem;
}

.plot {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(44, 42, 38, 0.13);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  text-align: left;
  width: 100%;
}

.plot.is-active {
  border-color: var(--charcoal);
  box-shadow: inset 0 0 0 1px var(--charcoal);
}

.plot__top {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.plot__top i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(44, 42, 38, 0.22);
}

.plot__top b {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  font-weight: 400;
}

.plot__top span {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-faint);
}

.plot__bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(44, 42, 38, 0.1);
  overflow: hidden;
}

.plot__bar i {
  display: block;
  height: 100%;
  background: var(--sage-deep);
  transition: width var(--dur) var(--ease);
}

.plot__meta {
  font-size: 0.74rem;
  color: var(--charcoal-faint);
}

.plot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.plot__actions .btn {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.reward {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--sage);
  background: rgba(140, 154, 130, 0.12);
  border-radius: 4px;
}

.reward b {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.2rem;
  font-weight: 400;
}

.reward__streak {
  display: flex;
  gap: 4px;
}

.reward__streak i {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(44, 42, 38, 0.14);
}

.reward__streak i.is-on {
  background: var(--sage-deep);
}

/* --- toast -------------------------------------------------------------- */

#toasts {
  position: absolute;
  top: calc(clamp(4.6rem, 9vw, 5.6rem) + var(--safe-t));
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  pointer-events: none;
  width: min(440px, calc(100vw - 2rem));
}

.toast {
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: rgba(44, 42, 38, 0.93);
  color: var(--bone);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: var(--shadow-lift);
  animation: toastIn 320ms var(--ease) both;
}

.toast.is-out {
  animation: toastOut 320ms var(--ease) both;
}

.toast--warn {
  background: rgba(140, 52, 56, 0.94);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 860px) {
  .hud__plan {
    display: none;
  }

  /* Same type as the size-card notes. */
  .hero__intro {
    font-family: var(--sans);
    font-size: 0.86rem;
  }

  .panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 85vh;
    max-height: 85svh;
    /* Normally only the body scrolls. On a short screen, where the head and
       the buttons would squeeze it below its minimum, the whole sheet scrolls
       instead, so nothing is cut off at the bottom. */
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 0;
    border-top: var(--rule-faint);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -30px 70px -40px rgba(44, 42, 38, 0.4);
  }

  .panel.is-open {
    transform: translateY(0);
  }

  .panel::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(44, 42, 38, 0.18);
  }

  /* A bottom sheet sits below the notch, so only the side insets apply at
     the top; the foot keeps its home-indicator padding from above. */
  .panel__head {
    padding: 1.7rem calc(1.5rem + var(--safe-r)) 1rem calc(1.5rem + var(--safe-l));
  }

  /* The body is the one part of the sheet that scrolls: head and foot stay
     put, and min-height: 0 lets it shrink inside the capped flex column
     rather than pushing the foot off the bottom of the screen. */
  .panel__body {
    min-height: min(9rem, 30svh);
    overflow-y: auto;
    padding-left: calc(1.5rem + var(--safe-l));
  }

  .panel__head,
  .panel__foot {
    flex: none;
  }

  .panel__foot {
    padding-left: calc(1.5rem + var(--safe-l));
  }

  .hud__basket {
    bottom: calc(clamp(0.9rem, 2.5vw, 1.6rem) + 62px + var(--safe-b));
  }

  .hud__steps {
    width: calc(100vw - 1.6rem - var(--safe-l) - var(--safe-r));
    justify-content: space-between;
  }

  .hud__stepbtn {
    width: 54px;
    height: 54px;
  }

  .hud__hint {
    bottom: calc(clamp(0.9rem, 2.5vw, 1.6rem) + 74px + var(--safe-b));
    font-size: 0.66rem;
  }

  .hud__stepnow b {
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  /* Same wordmark, scaled to 162px on a small screen. */
  .hud__brand img {
    width: 162px;
    margin: -46px -13px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .sizes__grid > div {
    padding: 1.5rem 1.25rem;
  }

  .panel__body {
    padding-left: calc(1.1rem + var(--safe-l));
    padding-right: calc(1.1rem + var(--safe-r));
  }

  .panel__head,
  .panel__foot {
    padding-left: calc(1.1rem + var(--safe-l));
    padding-right: calc(1.1rem + var(--safe-r));
  }

  .cal__cell {
    min-height: 48px;
    padding: 0.26rem 0.22rem;
  }

  .cal__status i {
    font-size: 0.46rem;
    letter-spacing: 0.02em;
  }

  .inv__meta {
    text-align: left;
  }
}

/* A landscape phone wide enough to keep the basket clear of the centred
   tour bar puts it back down in its corner. */
@media (max-height: 460px) and (min-width: 640px) {
  .hud__basket {
    bottom: calc(clamp(0.9rem, 2.5vw, 1.6rem) + var(--safe-b));
  }
}

/* The narrowest phones (320–380px): logo, HUD buttons and the tour bar
   tighten so the top bar and the step bar never run off the side. */
@media (max-width: 380px) {
  .hud__topbar {
    gap: 0.5rem;
  }

  .hud__brand img {
    width: 128px;
    margin: -36px -10px;
  }

  .hud__group {
    gap: 0.15rem;
    padding: 0.2rem;
  }

  .hud__group .icon-btn {
    width: 36px;
    height: 36px;
  }

  .hud__steps {
    gap: 0.2rem;
    padding: 0.3rem;
  }

  .hud__stepbtn {
    width: 46px;
    height: 46px;
  }

  .hud__stepnow {
    padding: 0 0.4rem;
  }

  .hud__basket {
    bottom: calc(clamp(0.9rem, 2.5vw, 1.6rem) + 56px + var(--safe-b));
  }

  .hud__hint {
    bottom: calc(clamp(0.9rem, 2.5vw, 1.6rem) + 66px + var(--safe-b));
  }

  .btn {
    padding: 0.75rem 1.2rem;
    letter-spacing: 0.12em;
  }
}

/* Keep the space usable in landscape on a phone. */
@media (max-height: 460px) {
  #app {
    --side-panel: min(400px, 50vw);
  }

  .hud__plan,
  .hud__hint {
    display: none;
  }

  /* In landscape the sheet would cover almost everything; as a side panel it
     leaves the room visible beside it. */
  .panel,
  .panel--wide {
    top: 0;
    left: auto;
    width: var(--side-panel);
    max-height: none;
    border-radius: 0;
    border-top: 0;
    border-left: var(--rule-faint);
    transform: translateX(100%);
  }

  .panel.is-open {
    transform: translateX(0);
  }

  .panel::before {
    display: none;
  }

  .panel__head {
    padding-top: calc(1rem + var(--safe-t));
  }

  .panel__foot {
    gap: 0.4rem;
    padding-top: 0.6rem;
    padding-bottom: calc(0.8rem + var(--safe-b));
  }

  .panel__foot .btn {
    min-height: 40px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .hud__steps {
    width: auto;
    gap: 0.2rem;
  }

  .hud__stepbtn {
    width: 44px;
    height: 44px;
  }

  .hud__stepnow b {
    max-width: 30vw;
  }

  /* With a panel open, the tour bar centres in the strip of room left beside
     it rather than sliding underneath (Safari 15.4+; older ones keep it
     centred on the screen). */
  #app:has(.panel.is-open) .hud__steps {
    left: calc((100vw - var(--side-panel)) / 2);
    max-width: calc(100vw - var(--side-panel) - 1.6rem);
  }

  .hero {
    min-height: 0;
    padding-top: calc(4.5rem + var(--safe-t));
    padding-bottom: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__plate,
  .hero__image,
  .hero__motes {
    animation: none !important;
  }

  .hero__motes {
    display: none;
  }

  .hero__eyebrow,
  .hero__title,
  .hero__intro,
  .hero__actions,
  .hero__season {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .invoice-paper {
    animation: none;
  }
}
