/* ============================================================
   COMMERCE — the store sections around the kit
   The Recognised, How it works, Shop the Kits,
   Our Story. Behaviour lives in js/commerce.js.
   ============================================================ */

:root {
  --foil: linear-gradient(100deg, #7d5f2e 0%, #c9a46a 22%, #f6e2b0 42%, #c9a46a 58%, #8a6a35 80%, #d9b97c 100%);
}

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

/* ---------- The Recognised, and How it works: a light, warm paper ground with ink type ---------- */
.recognised,
.steps {
  --color-text: #1c1512;
  --color-muted: rgba(28, 21, 18, 0.6);
  --color-line: rgba(28, 21, 18, 0.14);
  background: #f1f0ec;
  color: var(--color-text);
}
.recognised {
  padding-block: clamp(6rem, 20vh, 12rem) clamp(5rem, 14vh, 9rem);
  text-align: center;
  overflow: hidden;
}
.recognised__head { padding-inline: var(--container-gutter); }
.recognised__count {
  font-family: var(--font-display);
  font-size: clamp(5rem, 17vw, 16rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.recognised__count span {
  display: inline-block;
  padding: 0.04em 0.02em 0.1em;
  color: var(--color-text);
}
.recognised__title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}
/* The carousel: a rail of cards drifting sideways in a loop (js/commerce.js moves it) */
.tcar { margin-top: clamp(3.5rem, 9vh, 6rem); }
.tcar__track {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.tcar__track:focus-visible { outline: 2px solid var(--color-text); outline-offset: -2px; }
.tcar__track.is-dragging { cursor: grabbing; user-select: none; }
.tcar__rail {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* A card. The photo is cut like the plate on the hero's doors: a tall panel with its
   corners cut at 45° (16% of the width). */
.tcard {
  --w: clamp(250px, 23vw, 340px);
  --cut: calc(var(--w) * 0.16);
  flex: none;
  width: var(--w);
  margin-right: clamp(1.25rem, 2.2vw, 2rem);         /* a margin, not a gap, so every card is one step wide */
  text-align: center;
}
.tcard__media { position: relative; }
.tcard__frame {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #2f0a0b;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
                     calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.tcard__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tcard__frame::after {                               /* a warm, low light over the photo */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(62, 10, 14, 0) 55%, rgba(30, 6, 8, 0.45));
  pointer-events: none;
}
.tcard:hover .tcard__frame img { transform: scale(1.04); }
/* The Medallion they were given, centred on the lower edge of the photo */
.tcard__medal {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 64px;
  height: 64px;
  translate: -50% 0;
  filter: drop-shadow(0 6px 10px rgba(28, 21, 18, 0.35));
}
.tcard__quote {
  max-width: 30ch;
  margin: 2.75rem auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.35vw, 1.35rem);
  line-height: 1.32;
  color: var(--color-text);
  text-wrap: balance;
}
.tcard__who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
}
.tcard__who strong { font-family: var(--font-display); font-size: 18px; font-weight: 400; }
.tcard__who span,
.tcard__given {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.tcard__given { margin-top: 0.4rem; }
.tcard__given em { font-style: normal; color: #8a6430; }

/* Previous / next, and where you are */
.tcar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  padding-inline: var(--container-gutter);
}
.tcar__btn {
  --cut: 14px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: #1c1512;
  color: #f1f0ec;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
                     calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: background-color 0.5s var(--ease-btn), transform 0.2s var(--ease-btn);
}
.tcar__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.5s var(--ease-btn); }
.tcar__btn:hover, .tcar__btn:focus-visible { background: #6b4f24; }
.tcar__btn[data-tcar="prev"]:hover svg { translate: -3px 0; }
.tcar__btn[data-tcar="next"]:hover svg { translate: 3px 0; }
.tcar__btn:active { transform: scale(0.97); }
.tcar__btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #e6c891; }
.tcar__count {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-size: 15px;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--color-text);
}
.tcar__bar {
  position: relative;
  width: clamp(6rem, 14vw, 11rem);
  height: 1px;
  background: var(--color-line);
}
.tcar__bar i {
  position: absolute;
  inset: 0;
  background: var(--color-text);
  transform-origin: left;
  transform: scaleX(0.125);
  transition: transform 0.2s linear;
}

@media (max-width: 560px) {
  .tcard { --w: 78vw; }
  .tcard__medal { width: 56px; height: 56px; bottom: -26px; }
}

/* ---------- How it works ---------- */
.steps {
  padding: clamp(6rem, 18vh, 11rem) var(--container-gutter);
  border-top: 1px solid var(--color-line);
}
.steps__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}
.steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: clamp(3.5rem, 10vh, 6.5rem) 0 0;
  padding: 0;
  list-style: none;
}
.steps__item { position: relative; padding-top: 1.75rem; border-top: 1px solid var(--color-line); }
/* A brass rule draws across the top as each step arrives */
.steps__item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out) 0.2s;
}
.steps__item.is-visible::before { transform: scaleX(1); }
.steps__no {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6.5vw, 6rem);
  line-height: 0.9;
  background: linear-gradient(100deg, #5e4520 0%, #9a7638 22%, #c9a46a 42%, #9a7638 58%, #6b4f24 80%, #a8823f 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 2.6s var(--ease-out) 0.3s;
}
.steps__item.is-visible .steps__no { background-position: 0 0; }
.steps__name {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
}
.steps__text {
  max-width: 32ch;
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-muted);
}
.steps__text a { color: var(--color-text); text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 1024px) {
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3.5rem; }
}
@media (max-width: 600px) {
  .steps__list { grid-template-columns: 1fr; row-gap: 2.75rem; }
}

/* ---------- Shop the Kits ---------- */
.shop {
  padding: clamp(6rem, 18vh, 11rem) var(--container-gutter);
  border-top: 1px solid var(--color-line);
}
.shop__head { text-align: center; }
.shop__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.9vw, 3.9rem);
  font-weight: 400;
  line-height: 1;
}
.shop__sub { max-width: 46ch; margin: 1rem auto 0; font-size: var(--text-sm); color: var(--color-muted); }
.shop__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  max-width: 1320px;
  margin: clamp(3rem, 8vh, 5rem) auto 0;
  align-items: stretch;
}

/* Each kit is a bottle label: a blurred colour panel with the mark, the name in a
   tint of it under the Medallions in the kit; then a paper panel
   with what's inside, the price and the button. The colour sits in --hue (deep),
   --glow (the soft band of light) and --tint (the name and the mark). */
.product {
  --hue: #6e0d14;
  --deep: #240205;
  --glow: #f0a3a0;
  --tint: #f6cfc6;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f1f0ec;
  color: #1c1512;
  /* Cut at the corners like the story cards: an octagon */
  --cut: clamp(28px, 3vw, 44px);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
                     calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: transform 0.6s var(--ease-btn);
}
.product--unit      { --hue: #5b3420; --deep: #241208; --glow: #e98a5c; --tint: #f1d08f; }
.product--programme { --hue: #59561a; --deep: #24220a; --glow: #e9b143; --tint: #cfe8bf; }
.product:hover { transform: translateY(-6px); }

.label {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
  aspect-ratio: 4 / 4.2;
  padding: 2rem 2.5rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep);
}
/* The colour, blurred: a band of light along the top and a softer one low down */
.label::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -2;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--glow) 85%, #fff) 0%,
      var(--glow) 9%,
      var(--hue) 24%,
      var(--deep) 56%,
      var(--hue) 78%,
      color-mix(in srgb, var(--glow) 70%, var(--hue)) 92%,
      color-mix(in srgb, var(--glow) 60%, #fff) 100%);
  filter: blur(14px);
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-btn);
}
.product:hover .label::before { transform: scale(1.04) translateY(-2%); }
/* A little grain, so the colour reads as printed, not flat */
.label::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--velvet);
  background-size: 220px;
  opacity: 0.35;
  mix-blend-mode: overlay;
}
/* The Medallions in the kit, standing on the label where a crest would be */
.label__medals { display: grid; place-items: center; width: 100%; }
.label__medals img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55));
  transition: transform 0.9s var(--ease-out);
}
.label__medals[data-shop-medals="1"] img { width: clamp(96px, 9vw, 128px); }
.label__medals[data-shop-medals="6"] { grid-template-columns: repeat(3, 1fr); gap: 0.5rem 0.9rem; max-width: 200px; }
.label__medals[data-shop-medals="12"] { grid-template-columns: repeat(4, 1fr); gap: 0.4rem 0.6rem; max-width: 220px; }
.product:hover .label__medals img { transform: translateY(-4px) scale(1.04); }
.product:hover .label__medals img:nth-child(2n) { transition-delay: 60ms; }
.product:hover .label__medals img:nth-child(3n) { transition-delay: 120ms; }
.label__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--tint);
}
.product__badge {
  position: absolute;
  top: 1.4rem;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  padding: 6px 10px 5px;
  border: 1px solid color-mix(in srgb, var(--tint) 60%, transparent);
  color: var(--tint);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 2vw, 1.75rem) max(clamp(1.25rem, 2vw, 1.75rem), calc(var(--cut) * 0.8)); }
.product__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #1c1512;
}
.product__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1;
  white-space: nowrap;
}
.product__price span { font-family: var(--font-ui); font-size: 10.5px; letter-spacing: 0.04em; color: #6f6760; }
.product__script {
  margin: 0.9rem 0 0;
  font-family: 'Pinyon Script', cursive;
  font-size: 1.6rem;
  line-height: 1;
  color: #1c1512;
}
.product__desc { margin-top: 0.6rem; font-size: 13px; line-height: 1.5; color: #4d4640; }
.product__list { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.product__list li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.5; color: #4d4640; }
.product__list li + li { margin-top: 0.2rem; }
.product__list li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: calc(0.75em - 3.5px);
  width: 7px;
  height: 7px;
  background: var(--hue);
  transform: rotate(45deg);
}
.product__list { margin-bottom: 1.5rem; }
.product__form, .product__body > .product__btn { margin: auto 0 0; }
.product__btn { width: 100%; min-width: 0; }
/* Secondary on paper: the outline plate in ink */
.btn-oct--outline-ink {
  padding-inline: 12px;
  border: 14px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M14.3 .5H15.7L29.5 14.3V15.7L15.7 29.5H14.3L.5 15.7V14.3Z' fill='none' stroke='%231c1512' stroke-opacity='.8'/%3E%3C/svg%3E") 14;
  --btn-bg: transparent;
  --btn-fg: #1c1512;
  --btn-bg-hover: #1c1512;
  --btn-fg-hover: #f1f0ec;
}

@media (max-width: 1024px) {
  .shop__grid { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---------- Footer ----------
   A closing call inside the hero's gold border, then the mark on a rule over three
   columns of links. All on black. */
.foot {
  --foot-line: rgba(201, 164, 106, 0.28);
  padding: clamp(3rem, 8vh, 5rem) var(--container-gutter) 0;
  background: #000;
  color: var(--color-text);
}
.foot__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(5rem, 14vh, 8.5rem) clamp(1.5rem, 6vw, 6rem) clamp(4.5rem, 12vh, 7.5rem);
  text-align: center;
}
.foot__frame { position: absolute; inset: 0; pointer-events: none; }
.foot__frame svg { display: block; width: 100%; height: 100%; overflow: visible; }
.foot__frame path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.foot__frame .gold { stroke: url(#ff-gold); stroke-width: 1.1; }
.foot__frame .gold .fill { fill: url(#ff-gold); stroke: none; }
.foot__burst { width: clamp(120px, 10vw, 160px); height: auto; margin-bottom: 1rem; overflow: visible; }
.foot__burst path, .foot__burst circle { fill: none; stroke: #c9a46a; stroke-width: 0.8; stroke-linecap: round; }
.foot__burst .fill { fill: #c9a46a; stroke: none; color: #c9a46a; }
.foot__title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
}
.foot__title span {
  font-size: clamp(2.25rem, 5.4vw, 5.5rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.foot__btn { margin-top: clamp(1.75rem, 4vh, 2.5rem); }

/* The mark on a rule, the rule running the full width; three columns hang from it */
.foot__base {
  position: relative;
  margin: clamp(5rem, 14vh, 8rem) calc(-1 * var(--container-gutter)) 0;
  border-top: 1px solid var(--foot-line);
}
.foot__logo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  margin: 0 auto;
  padding: 0 1.75rem 1rem;
  transform: translateY(-62%);
  background: #000;
  color: #f0e6d6;
  text-decoration: none;
}
.foot__mark { width: 44px; height: 58px; fill: currentColor; }
.foot__word {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.04em;
}
.foot__tag {
  margin-top: 0.5rem;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}
/* Three columns of links, then the newsletter in a wider fourth */
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.35fr);
  margin-top: calc(-1 * clamp(3rem, 6vh, 4rem));
}
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.foot__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.75rem, 6vh, 3.75rem) 1.5rem clamp(3.5rem, 8vh, 5rem);
}
.foot__col + .foot__col { border-left: 1px solid var(--foot-line); }
.foot__col > * { width: min(100%, 15rem); }
.foot__head {
  position: relative;
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  font-family: var(--font-headline);
  font-size: 1.5rem;
  line-height: 1;
  color: #e6c891;
}
.foot__head::before {    /* a small lozenge, as on the border */
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
}
.foot__col ul { display: grid; gap: 0.85rem; margin: 0; padding: 0 0 0 1.1rem; list-style: none; }
.foot__col a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--duration-fast) var(--ease-out);
}
.foot__col a:hover, .foot__col a:focus-visible { color: #e6c891; }
.foot__news {
  padding: clamp(2.75rem, 6vh, 3.75rem) clamp(1.5rem, 3vw, 3rem) clamp(3.5rem, 8vh, 5rem);
  border-left: 1px solid var(--foot-line);
}
.foot__news-text { margin: 0; max-width: 30ch; font-size: 13px; line-height: 1.55; color: var(--color-muted); }
.foot__news-row { display: flex; align-items: flex-end; gap: 0.75rem; margin-top: 1.4rem; }
.foot__news-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--foot-line);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.5s var(--ease-btn);
}
.foot__news-row input::placeholder { color: rgba(255, 255, 255, 0.35); }
.foot__news-row input:focus { outline: none; border-bottom-color: #e6c891; }
.foot__news-row input[aria-invalid='true'] { border-bottom-color: #c9705f; }
/* The same chamfered plate as the carousel's arrows, in blush on black */
.foot__news-btn {
  --cut: 12px;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: var(--ox-blush, #e9d6bf);
  color: var(--ox-deep, #3e0a0e);
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
                     calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: background-color 0.5s var(--ease-btn), transform 0.2s var(--ease-btn);
}
.foot__news-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.5s var(--ease-btn); }
.foot__news-btn:hover, .foot__news-btn:focus-visible { background: #fff; }
.foot__news-btn:hover svg { translate: 3px 0; }
.foot__news-btn:active { transform: scale(0.97); }
.foot__news-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ox-deep, #3e0a0e); }
.foot__news-status { min-height: 1.4em; margin: 0.75rem 0 0; font-size: 12px; color: var(--color-muted); }
.foot__news.is-error .foot__news-status { color: #e0a090; }
.foot__news.is-done .foot__news-status { color: #e6c891; }
.foot__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--container-gutter);
  border-top: 1px solid var(--foot-line);
  font-size: 11px;
  color: var(--color-muted);
}
.foot__legal a { color: inherit; }
.foot__legal a:hover { color: #fff; }

@media (max-width: 768px) {
  .foot__grid { grid-template-columns: 1fr; margin-top: -2.5rem; }
  .foot__cols { grid-template-columns: 1fr; }
  .foot__news { border-left: 0; border-top: 1px solid var(--foot-line); padding-block: 2.5rem; text-align: left; }
  .foot__col { padding-block: 2.5rem; }
  .foot__col:first-child { padding-top: 0.5rem; }
  .foot__col + .foot__col { border-left: 0; border-top: 1px solid var(--foot-line); }
  .foot__legal { flex-direction: column; align-items: center; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__news { border-left: 0; border-top: 1px solid var(--foot-line); justify-self: center; width: min(100%, 30rem); }
}

/* ============================================================
   THE VAULT: the shared reverse on the left, the claim on the right.
   Cream, like the counter and How it works.
   ============================================================ */
.vault {
  --color-text: #1c1512;
  --color-muted: rgba(28, 21, 18, 0.6);
  --color-line: rgba(28, 21, 18, 0.16);
  padding: clamp(6rem, 18vh, 11rem) var(--container-gutter);
  background: #f1f0ec;
  color: var(--color-text);
}
.vault__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  max-width: 1280px;
  margin: 0 auto;
}

/* The coin */
.vault__coin { margin: 0; display: flex; flex-direction: column; align-items: center; perspective: 1200px; }
.vault__disc {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
/* A soft shadow on the cream, under the coin */
.vault__disc::before {
  content: '';
  position: absolute;
  inset: 12% 10% -2%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 40, 18, 0.32), rgba(60, 40, 18, 0));
  transform: translateY(6%);
  filter: blur(18px);
  z-index: -1;
}
.vault__img { display: block; width: 100%; height: auto; user-select: none; }

/* The copy */
.vault__copy { max-width: 34rem; }
.vault__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.3vw, 3.25rem);
  text-wrap: balance;
  font-weight: 400;
  line-height: 1.04;
}
.vault__text { margin-top: 1.5rem; font-size: 1rem; line-height: 1.65; color: var(--color-muted); }

/* The claim */
.vault__form {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem 1.5rem;
  margin-top: clamp(2.25rem, 5vh, 3rem);
}
.vault__field { display: flex; flex-direction: column; gap: 0.5rem; }
.vault__field label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.vault__field input {
  width: 100%;
  height: 50px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(28, 21, 18, 0.35);
  border-radius: 0;
  background: transparent;
  font: 400 1.125rem/1 var(--font-ui);
  letter-spacing: 0.12em;
  color: var(--color-text);
  transition: border-color 0.3s ease;
}
.vault__field input::placeholder { color: rgba(28, 21, 18, 0.28); }
.vault__field input:focus { outline: none; border-bottom-color: var(--color-text); box-shadow: 0 1px 0 var(--color-text); }
.vault__field input[aria-invalid='true'] { border-bottom-color: #9c3b2a; box-shadow: 0 1px 0 #9c3b2a; }
.btn-oct--ink { --btn-bg: #1c1512; --btn-fg: #f1f0ec; --btn-bg-hover: #6b4f24; }
.vault__status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}
.vault__form.is-error .vault__status { color: #9c3b2a; }
.vault__form.is-claimed .vault__status { color: #6b4f24; font-weight: 500; }

.vault__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--color-line);
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}
.vault__points b {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: #8a6430;
}

@media (max-width: 900px) {
  .vault__inner { grid-template-columns: 1fr; }
  .vault__disc { width: min(78vw, 400px); }
  .vault__copy { max-width: none; }
}
@media (max-width: 560px) {
  .vault__form { grid-template-columns: 1fr 1fr; }
  .vault__btn { grid-column: 1 / -1; width: 100%; }
  .vault__points { grid-template-columns: 1fr; gap: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .vault__disc { transition: none; } }

/* The band behind the card: paper above the seam, black below, so the card sits across it */
.perm-band {
  padding-inline: var(--container-gutter);
  background: linear-gradient(#f1f0ec 50%, var(--color-bg, #000) 50%);
}
.perm-band > .perm { filter: drop-shadow(0 24px 48px rgba(28, 21, 18, 0.16)); }
.perm-band + .shop { border-top: 0; padding-top: clamp(7rem, 20vh, 12rem); }
.steps:has(+ .perm-band) { padding-bottom: clamp(7rem, 20vh, 12rem); }

/* ---------- Recognition, made permanent: a paper card at the head of the collections,
   photograph left (edge to edge) and promise right, half and half ---------- */
.perm {
  --cut: clamp(28px, 3vw, 44px);
  --color-line: rgba(28, 21, 18, 0.14);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1320px;
  margin: 0 auto;
  background: #faf8f3;               /* broken white, a shade lighter than the paper behind it */
  color: #1c1512;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
                     calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.perm__media { position: relative; margin: 0; min-height: 100%; background: #dcdcdc; }
@media (min-width: 901px) {
  .perm { min-height: clamp(680px, calc(40vw + 120px), 746px); }   /* the card keeps its height when the copy is short */
}
.perm__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}
.perm__text { max-width: 38rem; justify-self: center; align-self: center; padding: clamp(3rem, 6vh, 4.5rem) clamp(1.5rem, 4vw, 4rem); text-align: center; }
.perm__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
.perm__body {
  margin: 1.75rem auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  color: #4a3f37;
  text-wrap: pretty;                  /* no lone word on the last line */
}
.perm__body em { font-style: italic; color: #6b4f24; }
.perm__label {
  margin: 2.75rem 0 1.5rem;
  font: 500 10px/1 var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b4f24;
}
.perm__promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 11px/1.45 var(--font-ui);
  color: #5d544c;
}
.perm__coin {                        /* a small struck medal, drawn by js/medals.js (PROMISE) */
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.perm__coin img { display: block; width: 100%; height: 100%; }
.perm__promise li:hover .perm__coin { transform: translateY(-4px) rotate(-8deg); }
.perm__btn { margin-top: 2.75rem; }

@media (max-width: 900px) {
  .perm { grid-template-columns: minmax(0, 1fr); }
  .perm__media { aspect-ratio: 1586 / 992; min-height: 0; }
  .perm__text { padding-block: 3rem 3.5rem; }
}
@media (max-width: 420px) {
  .perm__promise { gap: 0.4rem; font-size: 10px; }
  .perm__coin { width: 58px; height: 58px; }
}
