/* Pacexports — shared stylesheet
   Sections: tokens, base, buttons, masthead, page hero, brand index,
   brand section + box, home, footer, inquiry dialog, age gate. */

/* ---------- Tokens ---------- */
:root {
  /* original pacexports.com colours: the header gradient runs white -> green -> blue,
     the menu sits on navy. The logo uses the same blue and green. */
  --ink: #142544;
  --ink-deep: #0c1830;
  --blue: #2d4f90;
  --blue-light: #4b71b7;
  --green: #8eb75f;
  --green-dark: #76a047;
  --mist: #e4eaf5;
  --paper: #ffffff;
  --header-gradient: linear-gradient(135deg, #ffffff 0%, #ffffff 14%, #8eb75f 52%, #4b71b7 100%);

  --text: #1b2a44;
  --muted: #515f78;
  --rule: rgba(20, 37, 68, 0.16);
  --rule-on-dark: rgba(228, 234, 245, 0.22);

  --font-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --font-ui: "Archivo", "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --masthead-h: 76px;
  --index-h: 50px;
}

@media (max-width: 899px) {
  :root {
    --masthead-h: 62px;
    --index-h: 46px;
    /* keep the logo on white when the bar is narrow */
    --header-gradient: linear-gradient(135deg, #ffffff 0%, #ffffff 44%, #8eb75f 80%, #4b71b7 100%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--masthead-h);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 96%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* headings and sections that only receive focus from a script (after the age gate, after a
   jump) are not controls, so they do not need a ring */
[tabindex="-1"]:focus {
  outline: none;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--green);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 92%;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--green);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--green-dark);
}

.btn--secondary {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn__meta {
  font-weight: 400;
  opacity: 0.75;
}

/* ---------- Masthead: sticky main menu ----------
   Home, About, Products (opens the four ranges), Brands, and Contact us at the far right. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-gradient);
  box-shadow: 0 1px 0 rgba(20, 37, 68, 0.18);
}

.masthead__bar {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--masthead-h);
}

.masthead__logo {
  flex: none;
  display: block;
}

.masthead__logo img {
  width: 186px;
}

.masthead__menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 100%;
}

.primary-nav > ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--ink);
  border-radius: 4px;
}

.primary-nav > ul > li {
  position: relative;
}

.primary-nav > ul > li:first-child > a {
  border-radius: 4px 0 0 4px;
}

.primary-nav > ul > li:last-child > a {
  border-radius: 0 4px 4px 0;
}

.primary-nav > ul > li > a,
.primary-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 clamp(14px, 1.7vw, 22px);
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 92%;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.primary-nav > ul > li > a:hover,
.primary-nav__toggle:hover,
.primary-nav__toggle[aria-expanded="true"] {
  background: var(--blue);
}

/* "Products" is a link plus a small arrow button: the link navigates, the arrow opens the
   ranges. They read as one item, so they light up together. */
.has-submenu {
  display: flex;
}

.has-submenu > a {
  padding-right: 6px;
}

.has-submenu > .primary-nav__toggle {
  padding: 0 14px 0 8px;
}

.has-submenu:hover > a,
.has-submenu:hover > .primary-nav__toggle,
.has-submenu.is-open > a {
  background: var(--blue);
}

.primary-nav > ul > li > a[aria-current="page"],
.has-submenu:has([aria-current="page"]) > a,
.has-submenu:has([aria-current="page"]) > .primary-nav__toggle {
  background: var(--blue-light);
}

/* chevron drawn with borders, so it follows the text colour */
.primary-nav__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.primary-nav__toggle[aria-expanded="true"]::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  width: max-content;
  max-width: min(420px, 90vw);
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--ink);
  border-radius: 4px;
  box-shadow: 0 24px 40px -18px rgba(8, 16, 34, 0.6);
}

/* invisible bridge so the pointer can travel from the button to the list */
.submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 6px;
}

.has-submenu.is-open > .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 11px 20px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.submenu a:hover {
  background: var(--blue);
}

.submenu a[aria-current="page"] {
  background: var(--blue-light);
  font-weight: 700;
}

/* Contact us sits on the blue end of the gradient */
.masthead__contact.btn {
  background: #fff;
  color: var(--ink);
}

.masthead__contact.btn:hover {
  background: var(--ink);
  color: #fff;
}

.masthead__toggle {
  display: none;
}

@media (max-width: 899px) {
  .masthead__bar {
    justify-content: space-between;
  }

  .masthead__logo img {
    width: 160px;
  }

  .masthead__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
  }

  .masthead__toggle-bars,
  .masthead__toggle-bars::before,
  .masthead__toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 0.18s ease;
  }

  .masthead__toggle-bars {
    position: relative;
  }

  .masthead__toggle-bars::before,
  .masthead__toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .masthead__toggle-bars::before {
    top: -6px;
  }

  .masthead__toggle-bars::after {
    top: 6px;
  }

  .masthead__toggle[aria-expanded="true"] .masthead__toggle-bars {
    background: transparent;
  }

  .masthead__toggle[aria-expanded="true"] .masthead__toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .masthead__toggle[aria-expanded="true"] .masthead__toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .masthead__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    height: auto;
    max-height: calc(100svh - var(--masthead-h));
    overflow-y: auto;
    padding: 4px var(--gutter) 24px;
    background: var(--ink);
    box-shadow: 0 24px 40px -24px rgba(8, 16, 34, 0.6);
  }

  .masthead__menu.is-open {
    display: block;
  }

  .primary-nav > ul {
    flex-direction: column;
    background: transparent;
    border-radius: 0;
  }

  .primary-nav > ul > li {
    border-bottom: 1px solid var(--rule-on-dark);
  }

  .primary-nav > ul > li > a,
  .primary-nav__toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 0;
    padding: 15px 0;
    border-radius: 0 !important;
    font-size: 1.0625rem;
  }

  .primary-nav > ul > li > a:hover,
  .primary-nav__toggle:hover,
  .primary-nav__toggle[aria-expanded="true"],
  .primary-nav > ul > li > a[aria-current="page"],
  .has-submenu:hover > a,
  .has-submenu:hover > .primary-nav__toggle,
  .has-submenu.is-open > a,
  .has-submenu:has([aria-current="page"]) > a,
  .has-submenu:has([aria-current="page"]) > .primary-nav__toggle {
    background: transparent;
    color: #cfe3b8;
  }

  /* link on the left, arrow button on the right, ranges wrap underneath */
  .has-submenu {
    flex-wrap: wrap;
  }

  .has-submenu > a {
    flex: 1;
    width: auto;
  }

  .has-submenu > .primary-nav__toggle {
    flex: none;
    justify-content: center;
    width: 52px;
    padding: 0;
  }

  .submenu {
    flex-basis: 100%;
    position: static;
    width: auto;
    max-width: none;
    padding: 0 0 10px;
    background: transparent;
    box-shadow: none;
  }

  .submenu a {
    padding: 10px 12px 10px 16px;
    border-radius: 3px;
  }

  .masthead__contact {
    width: 100%;
    margin-top: 20px;
  }
}

/* ---------- Page hero (range pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--mist);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--bg-x, 50%) var(--bg-y, 50%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(20, 37, 68, 0.88) 42%, rgba(20, 37, 68, 0.25) 100%);
}

.page-hero__inner {
  padding-block: clamp(56px, 9vw, 104px);
}

.page-hero h1 {
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2.375rem, 5.4vw, 4.25rem);
}

.page-hero p {
  max-width: 54ch;
  margin-top: 20px;
  font-size: 1.125rem;
}

/* ---------- Brand index: sticky in-page nav under the masthead ---------- */
.brand-index {
  position: sticky;
  top: var(--masthead-h);
  z-index: 90;
  background: var(--ink);
  border-top: 1px solid var(--rule-on-dark);
}

.brand-index ul {
  display: flex;
  gap: 30px;
  height: var(--index-h);
  margin-block: 0; /* keep .container's auto inline margins */
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.brand-index ul::-webkit-scrollbar {
  display: none;
}

.brand-index a {
  display: flex;
  align-items: center;
  height: 100%;
  border-bottom: 3px solid transparent;
  color: var(--mist);
  font-size: 0.9375rem;
  font-stretch: 90%;
  white-space: nowrap;
  text-decoration: none;
}

.brand-index a:hover {
  color: #fff;
}

.brand-index a.is-active {
  border-bottom-color: var(--green);
  color: #fff;
  font-weight: 600;
}

/* ---------- Brand section ----------
   One per brand: a wide centred box with the photo on one side and the brand details on
   the other. Configure from HTML, no new CSS needed:
     data-media  left | right | top      which side of the box the photo sits on (swap freely)
     data-box    paper | ink             colour of the box
     --media-w                           width of the photo column (default 50%)
     --bg-x / --bg-y                     focal point of the photo (default 50% 50%)
     --bg-fit                            cover (default) or contain
     --tone                              colour of the band behind the box */
.brand {
  padding: clamp(36px, 6vw, 88px) var(--gutter);
  background-color: var(--tone, var(--mist));
  scroll-margin-top: var(--index-h);
}

/* ---------- Brand box: the centred "consignment label" ---------- */
.brand-box {
  display: grid;
  grid-template-columns: var(--media-w, 50%) minmax(0, 1fr);
  width: min(100%, var(--container));
  min-height: clamp(480px, 64vh, 660px);
  margin-inline: auto;
  overflow: hidden;
  background: var(--paper);
  color: var(--text);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(20, 37, 68, 0.06),
    0 30px 70px -28px rgba(8, 16, 34, 0.55);
}

.brand-box__media {
  position: relative;
  min-height: 300px;
  margin: 0;
  background: var(--ink);
}

.brand-box__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--bg-fit, cover);
  object-position: var(--bg-x, 50%) var(--bg-y, 50%);
}

.brand-box__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.6vw, 68px);
}

/* swap: photo on the right, details on the left */
.brand[data-media="right"] .brand-box {
  grid-template-columns: minmax(0, 1fr) var(--media-w, 50%);
}

.brand[data-media="right"] .brand-box__media {
  order: 2;
}

/* photo as a banner across the top of the box */
.brand[data-media="top"] .brand-box {
  grid-template-columns: minmax(0, 1fr);
}

.brand[data-media="top"] .brand-box__media {
  min-height: 0;
  aspect-ratio: 21 / 8;
}

@media (max-width: 859px) {
  /* small screens: always photo first, details underneath.
     [data-media] keeps these as specific as the left/right/top rules above, so they win. */
  .brand[data-media] .brand-box {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .brand[data-media] .brand-box__media {
    order: 0;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

.brand-box__name {
  font-size: clamp(2.125rem, 3.8vw, 3.375rem);
}

.brand-box__tagline {
  margin-top: 10px;
  color: var(--blue);
  font-size: 1.0625rem;
  font-weight: 600;
  font-stretch: 92%;
}

.brand-box__text {
  max-width: 56ch;
  margin-top: 18px;
  color: var(--muted);
}

.brand-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 0;
  border-block: 1px solid var(--rule);
}

.brand-facts > div {
  padding: 14px 16px;
}

.brand-facts > div:first-child {
  padding-left: 0;
}

.brand-facts > div + div {
  border-left: 1px solid var(--rule);
}

.brand-facts dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.brand-facts dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.brand-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.brand-range li {
  padding: 5px 12px;
  background: var(--mist);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.875rem;
  font-stretch: 92%;
}

.brand-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.brand-more {
  margin-top: 24px;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
}

.brand-more dl {
  margin: 0;
}

.brand-more dl > div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.brand-more dt {
  color: var(--muted);
}

.brand-more dd {
  margin: 0;
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .brand-more:not([hidden]) {
    animation: reveal 0.24s ease;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* dark variant of the box, for bright photos */
.brand[data-box="ink"] .brand-box {
  background: var(--ink);
  color: var(--mist);
  --rule: var(--rule-on-dark);
}

.brand[data-box="ink"] .brand-box__name,
.brand[data-box="ink"] .brand-facts dd,
.brand[data-box="ink"] .brand-more dd {
  color: #fff;
}

.brand[data-box="ink"] .brand-box__tagline {
  color: #9dbcf2;
}

.brand[data-box="ink"] .brand-box__text,
.brand[data-box="ink"] .brand-facts dt,
.brand[data-box="ink"] .brand-more dt {
  color: #b9c6dd;
}

.brand[data-box="ink"] .brand-range li {
  background: rgba(228, 234, 245, 0.12);
  color: var(--mist);
}

.brand[data-box="ink"] .btn--secondary {
  color: var(--mist);
}

.brand[data-box="ink"] .btn--secondary:hover {
  background: var(--mist);
  border-color: var(--mist);
  color: var(--ink);
}

@media (max-width: 479px) {
  .brand-box__actions .btn {
    width: 100%;
  }

  .brand-more dl > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* closing band on range pages */
.range-close {
  background: var(--mist);
  padding-block: clamp(48px, 7vw, 80px);
}

.range-close__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.range-close h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.range-close p {
  max-width: 56ch;
  margin-top: 10px;
}

/* ---------- Range page designs ----------
   The four range pages share one HTML structure; <html data-design="..."> picks the look:
     bands     full-width colour bands behind each brand box (no extra rules; uses --tone)
     wall      panels over a parallax wall of shipping containers
     manifest  light, ruled, like a cargo manifest; no cards
     offset    big photo with the details card overlapping its edge
     showcase  one panel in the brand's --tone colour, photo bleeding in from one side
   The default is set in tools/build_pages.py (RANGE_DESIGN). assets/js/design-switch.js adds
   a prototype-only switcher so the options can be compared live. */

/* ---------- Design: wall ----------
   Instead of full-width colour bands, the hero, the brand boxes and the closing band float as
   panels over a wall of stacked shipping containers (the same ribs as maintenance.html).
   The wall is a fixed layer, so the page scrolls over it; where the browser supports
   scroll-driven animation the horizontal seams between containers also drift more slowly than
   the page, which gives the parallax. */
[data-design="wall"] body {
  background: var(--ink);
}

[data-design="wall"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    /* seams between stacked containers: a dark gap with a lit edge, every 340px */
    repeating-linear-gradient(180deg,
      transparent 0 316px,
      rgba(8, 16, 34, 0.7) 316px 326px,
      rgba(157, 188, 242, 0.22) 326px 328px,
      transparent 328px 340px),
    /* darker towards top and bottom so panels stand out */
    linear-gradient(180deg, rgba(12, 24, 48, 0.62), rgba(12, 24, 48, 0.2) 45%, rgba(12, 24, 48, 0.66)),
    /* the corrugated ribs */
    repeating-linear-gradient(90deg, #26447f 0 22px, #2d4f90 22px 30px, #4b71b7 30px 52px, #2d4f90 52px 60px);
  background-color: var(--ink);
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-design="wall"] body::before {
      animation: wall-seams linear both;
      animation-timeline: scroll(root);
    }

    /* one full seam period per page, so the drift is slow and ends where it started */
    @keyframes wall-seams {
      from {
        background-position: 0 0, 0 0, 0 0;
      }

      to {
        background-position: 0 -340px, 0 0, 0 0;
      }
    }
  }
}

[data-design="wall"] .page-hero {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: clamp(20px, 3vw, 36px) auto 0;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

[data-design="wall"] .page-hero .container {
  width: auto;
  margin-inline: clamp(22px, 4.6vw, 68px);
}

/* the index is the bottom edge of the hero panel; once it sticks it sits flush under the menu,
   so no page content shows through a gap */
[data-design="wall"] .brand-index {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  border: 0;
  border-radius: 0 0 6px 6px;
  background: var(--ink-deep);
  box-shadow: 0 24px 50px -26px rgba(4, 10, 24, 0.95);
}

[data-design="wall"] .brand-index ul.container {
  width: auto;
  margin-inline: clamp(22px, 4.6vw, 68px);
}

[data-design="wall"] .brand {
  padding-block: clamp(14px, 2vw, 22px);
  background: transparent;
  scroll-margin-top: calc(var(--index-h) + 20px);
}

[data-design="wall"] .brand-index + .brand {
  padding-top: clamp(24px, 3.4vw, 40px);
}

[data-design="wall"] .brand-box {
  border-radius: 6px;
  box-shadow: 0 34px 80px -30px rgba(4, 10, 24, 0.95);
}

/* a navy box on a navy wall needs an edge */
[data-design="wall"] .brand[data-box="ink"] .brand-box {
  box-shadow:
    0 0 0 1px rgba(157, 188, 242, 0.34),
    0 34px 80px -30px rgba(4, 10, 24, 0.95);
}

[data-design="wall"] .range-close {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: clamp(14px, 2vw, 22px) auto clamp(48px, 7vw, 96px);
  padding: clamp(28px, 4.6vw, 68px);
  border-radius: 6px;
  box-shadow: 0 34px 80px -30px rgba(4, 10, 24, 0.95);
}

[data-design="wall"] .range-close .container {
  width: auto;
}

/* ---------- Shared by offset + showcase: the hero and index become one container-width panel ---------- */
:is([data-design="offset"], [data-design="showcase"]) .page-hero {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: clamp(20px, 3vw, 36px) auto 0;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

:is([data-design="offset"], [data-design="showcase"]) .page-hero .container,
:is([data-design="offset"], [data-design="showcase"]) .brand-index ul.container {
  width: auto;
  margin-inline: clamp(22px, 4.6vw, 68px);
}

:is([data-design="offset"], [data-design="showcase"]) .brand-index {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  border: 0;
  border-radius: 0 0 6px 6px;
}

:is([data-design="offset"], [data-design="showcase"]) .brand {
  background: transparent;
  scroll-margin-top: calc(var(--index-h) + 20px);
}

/* the photo drifts inside its frame as the brand scrolls through the viewport */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :is([data-design="offset"], [data-design="showcase"]) .brand-box__media img {
      animation: photo-drift linear both;
      animation-timeline: view();
    }

    @keyframes photo-drift {
      from {
        transform: scale(1.16) translateY(-5%);
      }

      to {
        transform: scale(1.16) translateY(5%);
      }
    }
  }
}

/* ---------- Design: manifest ----------
   Light and ruled, like a cargo manifest: no cards, brands are rows separated by hairlines,
   the photo is an attachment that stays in view while the details scroll past. */
[data-design="manifest"] .page-hero {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  color: var(--text);
}

[data-design="manifest"] .page-hero::before {
  display: none;
}

[data-design="manifest"] .page-hero__inner {
  padding-block: clamp(40px, 6vw, 84px);
}

[data-design="manifest"] .page-hero h1 {
  color: var(--ink);
}

[data-design="manifest"] .page-hero p {
  color: var(--muted);
}

[data-design="manifest"] .page-hero__media {
  border-radius: 4px;
}

[data-design="manifest"] .brand-index {
  background: var(--paper);
  border-top: 0;
  border-bottom: 1px solid var(--rule);
}

[data-design="manifest"] .brand-index a {
  color: var(--muted);
}

[data-design="manifest"] .brand-index a:hover,
[data-design="manifest"] .brand-index a.is-active {
  color: var(--ink);
}

[data-design="manifest"] .brand {
  padding-block: 0;
  background: transparent;
}

[data-design="manifest"] .brand-box {
  min-height: 0;
  padding-block: clamp(36px, 6vw, 88px);
  overflow: visible;
  background: transparent;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
}

[data-design="manifest"] .brand-box__media {
  overflow: hidden;
  border-radius: 4px;
  background: var(--mist);
}

[data-design="manifest"] .brand-box__body {
  padding: 0;
  justify-content: flex-start;
}

[data-design="manifest"] .brand-box__name {
  font-size: clamp(2.375rem, 5vw, 4rem);
}

/* a dark entry stays a dark block inside the light sheet */
[data-design="manifest"] .brand[data-box="ink"] .brand-box {
  margin-block: clamp(20px, 3vw, 40px);
  padding: clamp(20px, 4vw, 56px);
  border: 0;
  border-radius: 6px;
}

@media (min-width: 860px) {
  [data-design="manifest"] .page-hero__media {
    inset: 50% max(var(--gutter), calc((100% - var(--container)) / 2)) auto auto;
    width: min(36%, 440px);
    height: 72%;
    transform: translateY(-50%);
  }

  [data-design="manifest"] .page-hero__inner > * {
    max-width: 56%;
  }

  [data-design="manifest"] .brand-box {
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }

  [data-design="manifest"] .brand[data-media="right"] .brand-box {
    grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
  }

  [data-design="manifest"] .brand-box__media {
    position: sticky;
    top: calc(var(--masthead-h) + var(--index-h) + 24px);
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 859px) {
  [data-design="manifest"] .page-hero__media {
    position: static;
    height: 200px;
    border-radius: 0;
  }

  [data-design="manifest"] .brand-box {
    gap: 24px;
  }
}

/* ---------- Design: offset ----------
   A big photo with the details card overlapping its inner edge, and a block of the brand's
   --tone colour stepping out behind the photo. */
[data-design="offset"] .brand {
  padding-block: clamp(32px, 5vw, 72px);
}

[data-design="offset"] .brand-box,
[data-design="offset"] .brand[data-box="ink"] .brand-box {
  min-height: 0;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

[data-design="offset"] .brand-box__media {
  overflow: hidden;
  border-radius: 6px;
}

[data-design="offset"] .brand-box__body {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(20, 37, 68, 0.08),
    0 30px 70px -28px rgba(8, 16, 34, 0.55);
}

[data-design="offset"] .brand[data-box="ink"] .brand-box__body {
  background: var(--ink);
}

@media (min-width: 860px) {
  [data-design="offset"] .brand-box {
    grid-template-columns: 60% minmax(0, 1fr);
    align-items: center;
    padding: 0 28px 28px;
  }

  [data-design="offset"] .brand[data-media="right"] .brand-box {
    grid-template-columns: minmax(0, 1fr) 60%;
  }

  [data-design="offset"] .brand-box__media {
    min-height: clamp(460px, 62vh, 620px);
    box-shadow: -28px 28px 0 var(--tone, var(--mist));
  }

  [data-design="offset"] .brand[data-media="right"] .brand-box__media {
    box-shadow: 28px 28px 0 var(--tone, var(--mist));
  }

  [data-design="offset"] .brand-box__body {
    margin: 56px 0 56px -120px;
  }

  [data-design="offset"] .brand[data-media="right"] .brand-box__body {
    margin: 56px -120px 56px 0;
  }
}

@media (max-width: 859px) {
  [data-design="offset"] .brand-box__body {
    margin: -40px 12px 0;
  }
}

/* ---------- Design: showcase ----------
   One panel per brand in the brand's --tone colour. The photo bleeds in from one side and
   fades into the colour; the details sit on a card at the other side. */
[data-design="showcase"] body {
  background: var(--mist);
}

[data-design="showcase"] .brand {
  padding-block: clamp(14px, 2vw, 22px);
}

[data-design="showcase"] .brand-index + .brand {
  padding-top: clamp(24px, 3.4vw, 40px);
}

[data-design="showcase"] .brand-box,
[data-design="showcase"] .brand[data-box="ink"] .brand-box {
  position: relative;
  isolation: isolate;
  background: var(--tone, var(--ink));
  border-radius: 8px;
  box-shadow: 0 30px 70px -32px rgba(8, 16, 34, 0.65);
}

[data-design="showcase"] .brand-box__body {
  background: var(--paper);
  border-radius: 6px;
}

[data-design="showcase"] .brand[data-box="ink"] .brand-box__body {
  background: var(--ink);
}

[data-design="showcase"] .range-close {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: clamp(14px, 2vw, 22px) auto clamp(48px, 7vw, 96px);
  padding: clamp(28px, 4.6vw, 68px);
  background: var(--paper);
  border-radius: 8px;
}

[data-design="showcase"] .range-close .container {
  width: auto;
}

@media (min-width: 860px) {
  [data-design="showcase"] .brand-box,
  [data-design="showcase"] .brand[data-media="right"] .brand-box {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: clamp(560px, 72vh, 700px);
  }

  [data-design="showcase"] .brand-box__media {
    position: absolute;
    inset: 0 30% 0 0;
    z-index: -1;
    min-height: 0;
    background: transparent;
    -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent);
    mask-image: linear-gradient(90deg, #000 60%, transparent);
  }

  [data-design="showcase"] .brand[data-media="right"] .brand-box__media {
    inset: 0 0 0 30%;
    -webkit-mask-image: linear-gradient(270deg, #000 60%, transparent);
    mask-image: linear-gradient(270deg, #000 60%, transparent);
  }

  [data-design="showcase"] .brand-box__body {
    justify-self: end;
    width: min(47%, 560px);
    margin: 40px;
  }

  [data-design="showcase"] .brand[data-media="right"] .brand-box__body {
    justify-self: start;
  }
}

@media (max-width: 859px) {
  [data-design="showcase"] .brand-box__body {
    margin: 12px;
  }
}

/* ---------- Design switcher (prototype only, built by assets/js/design-switch.js) ---------- */
.design-switch {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 7px 7px 18px;
  transform: translateX(-50%);
  background: var(--ink-deep);
  border: 1px solid rgba(157, 188, 242, 0.3);
  border-radius: 999px;
  box-shadow: 0 18px 40px -12px rgba(4, 10, 24, 0.85);
  color: #fff;
  font-size: 0.875rem;
}

.design-switch__label {
  flex: none;
  font-weight: 600;
}

.design-switch__options {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.design-switch__options::-webkit-scrollbar {
  display: none;
}

.design-switch button {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.design-switch button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.design-switch button[aria-pressed="true"] {
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
}

.design-switch button:focus-visible {
  outline-color: #fff;
}

/* keep the last line of the footer clear of the switcher */
html[data-has-design-switch] .footer__legal {
  padding-bottom: 84px;
}

@media (max-width: 699px) {
  .design-switch {
    left: 12px;
    right: 12px;
    max-width: none;
    padding: 7px;
    transform: none;
    border-radius: 12px;
  }

  .design-switch__label {
    display: none;
  }
}

/* ---------- Home ---------- */
.notice {
  background: var(--green);
  color: var(--ink);
  font-weight: 500;
}

.notice p {
  padding-block: 12px;
}

.home-hero {
  background: var(--ink);
  color: var(--mist);
  padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px);
}

.home-hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}

.home-hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}

.home-hero__intro p {
  max-width: 46ch;
  font-size: 1.125rem;
}

.ranges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: clamp(36px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

.range-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(300px, 38vw, 460px);
  padding: 22px;
  overflow: hidden;
  border-radius: 3px;
  color: #fff;
  text-decoration: none;
}

.range-tile__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--bg-x, 50%) var(--bg-y, 50%);
  transition: transform 0.5s ease;
}

.range-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 24, 48, 0) 30%, rgba(12, 24, 48, 0.9) 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .range-tile:hover .range-tile__media {
    transform: scale(1.04);
  }
}

.range-tile__name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.12;
  text-wrap: balance;
}

.range-tile__note {
  margin-top: 8px;
  color: var(--mist);
  font-size: 0.9375rem;
}

.range-tile:hover .range-tile__name {
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section--mist {
  background: var(--mist);
}

.section h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 4vw, 3rem);
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 48px);
}

.brand-list h3 {
  padding-top: 16px;
  border-top: 3px solid var(--blue);
  font-size: 1.3125rem;
  line-height: 1.2;
}

.brand-list h3 a {
  color: inherit;
  text-decoration: none;
}

.brand-list h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
}

.brand-list ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.brand-list li + li {
  margin-top: 8px;
}

@media (max-width: 899px) {
  .brand-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 519px) {
  .brand-list {
    grid-template-columns: 1fr;
  }
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.about img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}

.about p {
  max-width: 58ch;
  margin-top: 20px;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(32px, 5vw, 56px);
}

.services h3 {
  padding-top: 18px;
  border-top: 3px solid var(--blue);
  font-size: 1.5rem;
}

.services p {
  margin-top: 10px;
  color: var(--muted);
}

.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(32px, 6vw, 88px);
  margin: clamp(28px, 4vw, 48px) 0 0;
}

.reasons > div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.reasons dt {
  color: var(--ink);
  font-weight: 600;
}

.reasons dd {
  margin: 0;
  color: var(--muted);
}

.contact {
  background: var(--ink);
  color: var(--mist);
}

.contact h2 {
  color: #fff;
}

.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 28px 48px;
}

.contact p {
  max-width: 52ch;
  margin-top: 16px;
}

.contact a:not(.btn) {
  color: #fff;
}

@media (max-width: 899px) {
  .home-hero__intro,
  .about {
    grid-template-columns: 1fr;
  }

  .ranges {
    grid-template-columns: repeat(2, 1fr);
  }

  .services,
  .reasons {
    grid-template-columns: 1fr;
  }
}

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

  .range-tile {
    min-height: 220px;
  }

  .reasons > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- Catalogue (products.html): category sidebar + product cards ---------- */
.catalogue {
  padding-block: clamp(48px, 7vw, 96px);
}

.catalogue__intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.catalogue__intro p {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--muted);
}

.catalogue__layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
}

.catalogue__filters {
  position: sticky;
  top: calc(var(--masthead-h) + 24px);
  padding: 22px 14px 14px;
  background: var(--mist);
  border-radius: 4px;
}

.catalogue__filters h3 {
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 1.375rem;
}

.filter-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.filter-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 3px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.filter-list a:hover {
  background: rgba(20, 37, 68, 0.08);
}

.filter-list a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.filter-list__count {
  flex: none;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.catalogue__status {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover,
.product-card:focus-within {
  border-color: var(--blue-light);
  box-shadow: 0 18px 36px -24px rgba(8, 16, 34, 0.55);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--mist);
}

/* absolute, so a portrait photo cannot stretch the 4:3 frame taller */
.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--bg-x, 50%) var(--bg-y, 50%);
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.product-card__range {
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
}

.product-card__name {
  margin-top: 6px;
  font-size: 1.4375rem;
  line-height: 1.15;
}

/* the title link covers the whole card, so the card is one big target */
.product-card__name a {
  color: inherit;
  text-decoration: none;
}

.product-card__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product-card__name a:focus-visible {
  outline: none;
}

.product-card:has(.product-card__name a:focus-visible) {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
}

.product-card__brand {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.product-card__text {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.product-card__more {
  margin-top: auto;
  padding-top: 16px;
  color: var(--blue);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

@media (max-width: 1099px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .catalogue__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  /* the sidebar becomes a row of scrollable chips above the grid */
  .catalogue__filters {
    position: static;
    padding: 0;
    background: transparent;
  }

  .catalogue__filters h3 {
    padding: 0 0 10px;
    border: 0;
    font-size: 1.125rem;
  }

  .filter-list {
    display: flex;
    gap: 8px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-list::-webkit-scrollbar {
    display: none;
  }

  .filter-list a {
    padding: 9px 14px;
    background: var(--mist);
    white-space: nowrap;
  }
}

@media (max-width: 559px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Brand wall (brands.html): every brand, grouped by range ---------- */
.brand-group {
  padding-block: clamp(40px, 6vw, 80px);
  scroll-margin-top: var(--index-h);
}

.brand-group:nth-of-type(even) {
  background: var(--mist);
}

.brand-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.brand-group__head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.brand-group__head a {
  font-size: 0.9375rem;
  font-weight: 600;
}

.brand-group__note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.brand-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
}

/* A tile stands in for a logo. When real logos arrive, put an <img class="brand-tile__logo">
   inside .brand-tile__mark in place of the text. */
.brand-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.brand-tile:hover {
  border-color: var(--blue-light);
  box-shadow: 0 18px 36px -24px rgba(8, 16, 34, 0.55);
}

.brand-tile__mark {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

.brand-tile__logo {
  max-height: 72px;
  width: auto;
}

.brand-tile__meta {
  padding: 14px 16px 16px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.brand-tile__product {
  display: block;
  font-weight: 600;
}

.brand-tile__origin {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

@media (max-width: 999px) {
  .brand-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .brand-wall {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-tile__mark {
    min-height: 104px;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-deep);
  color: #b9c6dd;
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr 1fr;
  gap: 32px 48px;
  padding-block: clamp(48px, 6vw, 72px) 40px;
}

.footer__brand {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.footer__grid p {
  max-width: 34ch;
  margin-top: 12px;
}

.footer h2 {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}

.footer ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__legal {
  padding-block: 18px 28px;
  border-top: 1px solid var(--rule-on-dark);
  font-size: 0.84375rem;
}

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

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

/* ---------- Inquiry dialog ---------- */
.inquiry {
  width: min(100% - 32px, 600px);
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 40px 90px -20px rgba(8, 16, 34, 0.75);
}

.inquiry::backdrop {
  background: rgba(12, 24, 48, 0.72);
}

@media (prefers-reduced-motion: no-preference) {
  .inquiry[open] {
    animation: dialog-in 0.2s ease;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.inquiry__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 36px) 0;
}

.inquiry__head h2 {
  font-size: 2rem;
}

.inquiry__close {
  flex: none;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  cursor: pointer;
}

.inquiry__close:hover {
  color: var(--ink);
}

.inquiry__body {
  padding: 8px clamp(20px, 5vw, 36px) 32px;
}

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

.inquiry__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid rgba(20, 37, 68, 0.35);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--blue);
}

.inquiry__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.inquiry__hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
}

.inquiry__done h3 {
  font-size: 1.5rem;
}

.inquiry__done p {
  margin-top: 12px;
}

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

/* ---------- Age gate (wine-beer-spirits.html only) ----------
   The page ships locked: <html class="age-locked">. age-gate.js removes the class once
   the visitor is verified. While locked the gate covers everything and the page cannot scroll. */
.age-gate {
  display: none;
}

html.age-locked {
  overflow: hidden;
}

html.age-locked .age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
  isolation: isolate;
  background: var(--ink-deep);
}

.age-gate__media {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.age-gate__panel {
  width: min(100%, 520px);
  padding: clamp(28px, 6vw, 48px);
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.age-gate__panel:focus {
  outline: none;
}

.age-gate__logo {
  width: 170px;
  margin: 0 auto 28px;
}

.age-gate__title {
  font-size: clamp(2rem, 6vw, 2.75rem);
}

.age-gate__text {
  max-width: 40ch;
  margin: 16px auto 0;
  color: var(--muted);
}

.age-gate__actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.age-gate__note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.875rem;
}
