/* Fonts (self-hosted) */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-400-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-400-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Gupter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/gupter-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --forest-950: #07130c;
  --forest-900: #0c1f14;
  --forest-850: #10291b;
  --forest-800: #143322;
  --moss-700: #17552b;
  --moss-600: #1d6a36;
  --moss-500: #24803f;
  --cream: #f2e9d0;
  --cream-dim: #d6ceb4;
  --lichen-50: #f6f7f1;
  --lichen-100: #eceee3;
  --lichen-200: #dfe3d4;
  --ink: #142219;
  --ink-soft: #435348;
  --rule: #c7cdbb;
  --ochre: #82590b;
  --ochre-light: #e2b553;
  --paper: #faf7ef;
  --field-line: #4a5a4e;
  --error: #9a2f1a;
  --error-light: #f4a990; /* errors and required marks on dark glass */

  --serif: "Instrument Serif", "Times New Roman", serif;
  --display: "Gupter", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  accent-color: var(--moss-600);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; scrollbar-color: var(--moss-600) var(--paper); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--moss-600); color: var(--cream); }
:focus-visible { outline: 2px solid var(--moss-500); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .apply :focus-visible, .site-footer :focus-visible, .site-header :focus-visible { outline-color: var(--cream); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--cream); color: var(--ink); }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.8rem 1.6rem;
  font: 500 1.0625rem/1.2 var(--sans); letter-spacing: 0.005em;
  text-decoration: none; border: 1px solid transparent; border-radius: 3px; cursor: pointer;
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn--primary { background: var(--moss-600); color: var(--cream); box-shadow: 0 6px 18px -8px rgb(4 20 10 / 0.6); }
.btn--primary:hover { background: var(--moss-700); box-shadow: 0 10px 24px -10px rgb(4 20 10 / 0.7); }
.btn--cream { background: var(--cream); color: var(--forest-900); }
.btn--cream:hover { background: #fff6dc; }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--cream);
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.site-header.is-solid { background: var(--forest-900); box-shadow: 0 8px 24px -16px rgb(0 0 0 / 0.6); }
.site-header__inner {
  display: flex; align-items: center; gap: 2rem;
  width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; min-height: 4.5rem;
}
.brand { flex: none; display: block; border-radius: 3px; }
.brand img { width: auto; height: 4rem; }
.primary-nav { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 2rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav__list, .primary-nav__account { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.8rem; font: 500 1rem/1.2 var(--sans); color: inherit;
  background: none; border: 0; cursor: pointer; text-decoration: none; border-radius: 3px;
}
.nav-link { white-space: nowrap; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: rgb(242 233 208 / 0.1); }
.nav-link svg { transition: transform 0.25s var(--ease-out); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.basket-count {
  display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem;
  font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--forest-900); background: var(--cream); border-radius: 999px;
}
.has-panel { position: relative; }
.panel {
  position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 40rem;
  padding: 1.75rem 2rem 1.5rem; color: var(--ink); background: var(--lichen-50);
  border-radius: 4px; box-shadow: 0 24px 48px -20px rgb(3 14 8 / 0.55), 0 2px 6px rgb(3 14 8 / 0.15);
}
.panel--narrow { min-width: 20rem; }
.panel__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.panel__title { margin: 0 0 0.5rem; font: 400 1.5rem/1.1 var(--serif); }
.panel ul { display: grid; gap: 0.15rem; }
.panel ul a { display: block; padding: 0.3rem 0; text-decoration: none; color: var(--ink-soft); }
.panel ul a:hover { color: var(--moss-700); text-decoration: underline; }
.panel__all { display: inline-block; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); width: 100%; font-weight: 500; color: var(--moss-700); }
.panel__soon { margin: 0; color: var(--ink-soft); }
.menu-toggle { display: none; }

/* Hero: the approved sign artwork fills the first screen; strapline and actions are live text below the lettering */
.hero {
  position: relative;
  /* full screen, capped so the cover-scaled artwork never crops the lettering at the sides */
  height: min(100svh, 70vw);
  min-height: max(560px, calc(26.6vw + 330px));
  overflow: hidden;
  background: var(--forest-950);
  color: var(--cream);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 9rem; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgb(5 14 9 / 0.7), rgb(5 14 9 / 0));
}
.hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__copy {
  /* the artwork is cover-scaled: its height is max(width x 0.5655, hero height); lettering ends ~70% down it */
  position: absolute; left: 0; right: 0; z-index: 3;
  top: calc(50% + 0.235 * max(56.55vw, 100%));
  display: grid; justify-items: center; gap: clamp(0.9rem, 1.6vw, 1.4rem);
  padding-inline: var(--gutter); text-align: center;
  animation: rise 0.9s var(--ease-out) 0.15s both;
}
.hero__strap {
  margin: 0; font: italic 400 clamp(1.6rem, 3.1vw, 3rem)/1.05 var(--serif);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.6), 0 2px 18px rgb(0 0 0 / 0.7);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.85rem 1.75rem; }
.link-quiet { font-weight: 500; text-shadow: 0 1px 10px rgb(0 0 0 / 0.7); }
.link-quiet:hover { color: #fff; }
@keyframes rise { from { transform: translateY(14px); } }

@media (max-aspect-ratio: 3/4) {
  /* portrait screens: the portrait artwork sits at its natural size from the top and the screen below it runs into forest */
  .hero { height: 100svh; min-height: max(600px, calc(113vw + 11.5rem)); }
  .hero__art img { inset: 0 0 auto; height: auto; aspect-ratio: 1200 / 2122; }
  .hero::after {
    content: ""; position: absolute; inset: min(125vw, calc(100% - 17rem)) 0 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, rgb(7 19 12 / 0), rgb(7 19 12 / 0.72) 6.5rem, var(--forest-950) 14rem);
  }
  .hero__copy { top: max(113vw, calc(100% - 13rem)); }
}
@media (max-width: 700px) {
  .hero__actions { flex-direction: column; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Trade account application */
.apply {
  position: relative; isolation: isolate;
  padding-block: clamp(4.25rem, 6vw, 5.5rem) var(--section-y);
  color: var(--cream);
  background: var(--forest-900);
  color-scheme: dark; accent-color: var(--cream);
}
/* the forest carries on behind the application; the form is a pane of dark glass in front of it */
.apply::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--forest-900), rgb(12 31 20 / 0.82) 13%, rgb(7 19 12 / 0.28) 44%, rgb(7 19 12 / 0.5) 80%, var(--forest-900)),
    url("img/apply-forest.jpg") 50% 70% / cover no-repeat;
}
.apply .section-title, .apply .next__title { color: var(--cream); }
.apply__head { text-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 2px 16px rgb(0 0 0 / 0.55); }
.section-title {
  margin: 0;
  font: 700 clamp(2.125rem, 5.4vw, 4.5rem)/1.02 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--forest-800);
}
.section-title span { display: block; }
.apply__head { display: grid; justify-items: center; gap: clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.next__title { margin: 0 0 0.7rem; font: 700 clamp(1.3125rem, 1.9vw, 1.625rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--moss-700); }
.next__text { margin: 0 auto; max-width: 56ch; font-size: 1.1875rem; text-wrap: pretty; }

/* the application sits in its own frame, narrower than the page */
.tform {
  max-width: 68rem; margin: clamp(2rem, 4vw, 3rem) auto 0; padding: clamp(1.25rem, 3.5vw, 2.25rem);
  background: linear-gradient(155deg, rgb(242 233 208 / 0.1), rgb(242 233 208 / 0.02) 42%), rgb(9 26 17 / 0.46);
  -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgb(242 233 208 / 0.28); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 28px 60px -28px rgb(0 0 0 / 0.75);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tform { background: rgb(9 26 17 / 0.93); }
}
.tform__cols, .tform__col { display: grid; gap: clamp(2rem, 4vw, 2.75rem); align-content: start; }
.tform__note { margin: 0 0 -0.75rem; max-width: 62ch; font-size: 1rem; color: var(--cream-dim); text-wrap: pretty; }
.tform__note a { color: var(--cream); font-weight: 500; white-space: nowrap; }
.fgroup { display: grid; gap: 1.1rem; }
.fgroup__name {
  margin: 0; padding-bottom: 0.45rem; border-bottom: 1px solid rgb(242 233 208 / 0.38);
  font: 700 clamp(1.3125rem, 1.9vw, 1.625rem)/1.12 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--cream);
}
/* each field spans three shared rows (label, control, message) so paired controls always line up */
.fgroup__fields {
  --fgap: 0.5rem; --rgap: 1.4rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--rgap) - var(--fgap)) 1.75rem;
}
.fgroup__fields > .choice { margin-bottom: var(--fgap); }
.fgroup__fields--address { grid-template-columns: 1.15fr 1.15fr 0.8fr; }

.field { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--fgap); }
.field--wide { grid-column: 1 / -1; }
.field label, .choice legend { font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--cream); }
.req { margin-left: 0.1em; font-weight: 600; color: var(--error-light); }
.tform__note .req { margin: 0; }
.field input, .field select {
  width: 100%; min-height: 3.5rem; padding: 0.8rem 1rem; font: inherit; font-size: 1.125rem; color: var(--cream);
  background: rgb(242 233 208 / 0.08); border: 1.5px solid rgb(242 233 208 / 0.5); border-radius: 6px; caret-color: var(--cream);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field select {
  appearance: none; padding-right: 2.75rem; cursor: pointer;
  background: rgb(242 233 208 / 0.08) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 12%22%3E%3Cpath d=%22M2.5 4.5 6 8l3.5-3.5%22 stroke=%22%23f2e9d0%22 stroke-width=%221.5%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") right 1rem center / 0.85rem no-repeat;
}
.field select option { color: var(--cream); background: var(--forest-850); }
.field input:hover, .field select:hover { border-color: var(--cream); background-color: rgb(242 233 208 / 0.12); }
.field input:focus, .field select:focus { outline: none; border-color: var(--cream); background-color: rgb(242 233 208 / 0.14); box-shadow: 0 0 0 3px rgb(242 233 208 / 0.3); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error-light); box-shadow: 0 0 0 1px var(--error-light); }
/* browser autofill keeps the glass look instead of a white box */
.field input:-webkit-autofill { -webkit-text-fill-color: var(--cream); box-shadow: inset 0 0 0 100px #1f3a2b; caret-color: var(--cream); }
.field__hint { margin: 0; font-size: 1rem; color: var(--cream-dim); text-wrap: pretty; }
.field__error { margin: 0; font-size: 1rem; font-weight: 500; color: var(--error-light); }

.choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice legend { padding: 0; margin-bottom: 0.6rem; }
.choice__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); grid-auto-flow: column; gap: 0.25rem 1.75rem; }
.choice__options--three { display: flex; flex-wrap: wrap; gap: 0.25rem 2.25rem; }
.choice__opt, .check { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; font-size: 1.125rem; cursor: pointer; }
.choice__opt input, .check input { flex: none; width: 1.375rem; height: 1.375rem; margin: 0; cursor: pointer; }
.choice .field__error { margin-top: 0.35rem; }

.tform__foot { display: grid; gap: 1.5rem; padding-top: clamp(1.75rem, 3vw, 2.25rem); border-top: 1px solid rgb(242 233 208 / 0.38); }
.check { font-weight: 500; }
.tform__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.btn--lg { min-height: 3.75rem; padding: 1rem 2.25rem; font-size: 1.1875rem; font-weight: 600; border-radius: 6px; }
.tform__msg { margin: 0; max-width: 62ch; font-weight: 500; color: var(--cream); }
.tform__msg:empty { display: none; }
.tform__msg.is-error { color: var(--error-light); }

/* one-column layouts are far taller than the photo, so it sits at the head and runs out into forest */
@media (max-width: 999px) {
  .apply::before {
    inset: 0 0 auto; height: 46rem;
    background:
      linear-gradient(to bottom, var(--forest-900), rgb(7 19 12 / 0.4) 30%, rgb(7 19 12 / 0.45) 60%, var(--forest-900)),
      url("img/apply-forest-sm.jpg") 50% 0 / cover no-repeat;
  }
}

/* Desktop: the whole application fits one screen, in two columns */
@media (min-width: 1000px) {
  html { scroll-padding-top: 4.5rem; }
  .apply { padding-block: 1.75rem 3.5rem; }
  .apply .section-title { font-size: clamp(2.25rem, 3vw, 2.75rem); }
  .apply__head { gap: 0.75rem; }
  .next__title { margin-bottom: 0.35rem; font-size: 1.25rem; }
  .next__text { max-width: 92ch; font-size: 1.0625rem; line-height: 1.5; }
  .tform { margin-top: 1.1rem; padding: 1.1rem 1.75rem 1.25rem; }
  /* left: business details and address, with the note beneath; right: status, licence and submit */
  .tform__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 0.75rem clamp(2rem, 3.2vw, 3rem); }
  .tform__col--start { grid-column: 1; grid-row: 1; }
  .tform__col--end { grid-column: 2; grid-row: 1 / span 2; }
  .tform__note { grid-column: 1; grid-row: 2; margin: 0; max-width: none; font-size: 0.9375rem; }
  .tform__col { gap: 1.25rem; }
  .fgroup { gap: 0.6rem; }
  .fgroup__name { padding-bottom: 0.35rem; font-size: 1.25rem; }
  .fgroup__fields { --fgap: 0.3rem; --rgap: 0.65rem; column-gap: 1rem; }
  .field label, .choice legend { font-size: 1rem; line-height: 1.25; }
  .field input, .field select { min-height: 2.625rem; padding: 0.45rem 0.8rem; font-size: 1rem; }
  .field select { background-position: right 0.8rem center; }
  .choice legend { margin-bottom: 0.2rem; }
  .choice__options:not(.choice__options--three) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); grid-auto-flow: column; gap: 0 1rem; }
  .choice__opt, .check { gap: 0.6rem; min-height: 1.875rem; font-size: 1rem; }
  .choice__opt input, .check input { width: 1.2rem; height: 1.2rem; }
  .tform__foot { gap: 0.75rem; padding-top: 0.9rem; }
  .btn--lg { min-height: 3.125rem; padding: 0.7rem 1.9rem; font-size: 1.0625rem; }
}
@media (min-width: 1000px) and (max-height: 920px) {
  .apply { padding-top: 1.25rem; }
  .apply .section-title { font-size: 2.125rem; }
  .apply__head { gap: 0.6rem; }
  .tform { margin-top: 0.9rem; padding-block: 0.9rem 1rem; }
  .tform__col { gap: 1rem; }
  .fgroup { gap: 0.5rem; }
  .fgroup__fields { --rgap: 0.55rem; }
  .field input, .field select { min-height: 2.5rem; }
  .btn--lg { min-height: 3rem; }
}
@media (min-width: 1000px) and (max-height: 870px) {
  .apply { padding-top: 1rem; }
  .tform { margin-top: 0.75rem; padding-block: 0.75rem 0.85rem; }
  .tform__col { gap: 0.85rem; }
  .apply .section-title { font-size: 1.875rem; }
  .apply .section-title span { display: inline; }
  .next__text { font-size: 1rem; }
  .fgroup__fields { --fgap: 0.2rem; }
  .field input, .field select { min-height: 2.375rem; padding-block: 0.35rem; }
  .choice__opt, .check { min-height: 1.75rem; }
  .tform__foot { gap: 0.6rem; padding-top: 0.7rem; }
}
@media (min-width: 1000px) and (max-height: 815px) {
  /* short laptop screens: heading on one line, tighter rows */
  .apply { padding-top: 0.6rem; }
  .apply__head { gap: 0.4rem; }
  .tform { margin-top: 0.5rem; padding-block: 0.5rem 0.6rem; }
  .tform__col { gap: 0.6rem; }
  .fgroup { gap: 0.45rem; }
  .fgroup__name { padding-bottom: 0.2rem; font-size: 1.125rem; }
  .fgroup__fields { --rgap: 0.45rem; }
  .field label, .choice legend { font-size: 0.9375rem; }
  .field input, .field select { min-height: 2.1875rem; padding-block: 0.25rem; }
  .btn--lg { min-height: 2.875rem; }
}

/* What we supply: edge-to-edge photo mosaic */
.supply { background: var(--paper); }
/* a light pause between the hero photograph and the category photographs */
.supply__head { padding: clamp(2.75rem, 5vw, 4.25rem) var(--gutter) clamp(2.25rem, 4vw, 3.25rem); text-align: center; }
.supply__head .section-title { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
.supply__lead { margin: 0.9rem auto 0; max-width: 48ch; font-size: 1.1875rem; text-wrap: balance; }
.mosaic {
  display: grid; gap: 6px; margin: 0; padding: 6px 0; list-style: none; background: var(--cream);
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, clamp(14rem, 24vw, 24rem)) clamp(16rem, 29vw, 29rem);
}
.tile { position: relative; overflow: hidden; background: var(--forest-950); color: var(--cream); }
.tile--tropical { grid-row: 1 / 3; }
.tile--hardscape { grid-column: 1 / -1; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.tile--hardscape img { object-position: 50% 78%; }
.tile--marine img { object-position: 70% 50%; }
.tile--tropical img { object-position: 90% 50%; }
.tile--coldwater img { object-position: 100% 50%; }
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(5 14 9 / 0.8), rgb(5 14 9 / 0.28) 34%, rgb(5 14 9 / 0) 60%);
}
.tile__label {
  position: absolute; inset: auto 0 0; z-index: 1; margin: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem;
  padding: clamp(1.1rem, 2.6vw, 2.25rem) clamp(1.25rem, 3vw, 2.75rem);
  color: inherit; text-decoration: none;
}
a.tile__label { inset: 0; align-content: end; }
.tile__name { font: 700 clamp(2rem, 4.2vw, 3.875rem)/0.98 var(--display); text-transform: uppercase; letter-spacing: 0.015em; text-shadow: 0 2px 20px rgb(0 0 0 / 0.55); }
.tile--tropical .tile__name, .tile--hardscape .tile__name { font-size: clamp(2.25rem, 5.2vw, 4.75rem); }
.tile__status { font-size: 1.0625rem; font-weight: 500; text-shadow: 0 1px 10px rgb(0 0 0 / 0.7); }
a.tile__label .tile__name { text-decoration: underline transparent; text-decoration-thickness: 2px; text-underline-offset: 0.12em; transition: text-decoration-color 0.25s var(--ease-out); }
a.tile__label:hover .tile__name { text-decoration-color: currentColor; }
a.tile__label:focus-visible { outline: 3px solid var(--cream); outline-offset: -8px; }
/* one line about the department; on hover-capable screens it opens under the name while the photograph eases closer */
.tile__more { flex-basis: 100%; display: grid; grid-template-rows: 1fr; font-size: 1.0625rem; font-weight: 500; text-shadow: 0 1px 10px rgb(0 0 0 / 0.7); }
.tile__more > span { overflow: hidden; }
@media (hover: hover) {
  .tile__more { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.45s var(--ease-out), opacity 0.35s var(--ease-out); }
  .tile:hover .tile__more, .tile:focus-within .tile__more { grid-template-rows: 1fr; opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover img, .tile:focus-within img { transform: scale(1.07); }
}

.ask { margin: 0; padding: clamp(2.5rem, 5vw, 4.25rem) var(--gutter); text-align: center; font: 400 clamp(1.625rem, 2.9vw, 2.5rem)/1.15 var(--serif); color: var(--forest-800); text-wrap: balance; }
.ask a { color: var(--moss-700); text-decoration-thickness: 2px; }
.ask a:hover { color: var(--forest-900); }

/* Visit us: the light close between the application and the footer */
.visit { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--paper); }
.visit__grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.visit .section-title { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
.visit__lead { margin: 1.1rem 0 0; max-width: 34ch; font-size: 1.1875rem; text-wrap: pretty; }
.visit__name {
  margin: 0 0 1rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--forest-800);
  font: 700 clamp(1.3125rem, 1.9vw, 1.625rem)/1.12 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--forest-800);
}
.visit address { font-style: normal; font-size: 1.125rem; line-height: 1.55; }
.visit__link { display: inline-block; margin-top: 1rem; font-weight: 500; color: var(--moss-700); }
.visit__link:hover { color: var(--forest-900); }
.hours { display: grid; margin: 0; font-size: 1.125rem; }
.hours div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.hours div:first-child { padding-top: 0; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr 1fr; }
  .visit__intro { grid-column: 1 / -1; }
  .visit__lead { max-width: 52ch; }
}
@media (max-width: 600px) {
  .visit__grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { padding: clamp(3rem, 6vw, 4.5rem) 0 2.25rem; background: var(--forest-900); color: var(--cream-dim); text-align: center; }
.site-footer__name { margin: 0; font: 700 clamp(1.625rem, 3.4vw, 2.625rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--cream); text-wrap: balance; }
.site-footer__trade { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0.9rem 0 0; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream); }
.site-footer__trade::before, .site-footer__trade::after { content: ""; width: clamp(2.5rem, 8vw, 6rem); height: 1px; background: rgb(242 233 208 / 0.45); }
.site-footer__trade span { margin-right: -0.3em; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
/* base row: copyright left, company details centred, credit right */
.site-footer__base { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem 2.5rem; margin: 2.25rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--forest-800); font-size: 0.875rem; }
.site-footer__copy { margin: 0; text-align: left; }
.site-footer__company { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem 0; margin: 0; text-align: left; }
.site-footer__company div { padding-inline: 1.5rem; }
.site-footer__company div + div { border-left: 1px solid rgb(242 233 208 / 0.22); }
.site-footer__company dt { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-dim); }
.site-footer__company dd { margin: 0.25rem 0 0; max-width: 30ch; font-size: 0.9375rem; line-height: 1.4; color: var(--cream); font-variant-numeric: tabular-nums; text-wrap: balance; }
.site-footer__credit { justify-self: end; }
.site-footer__credit { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--cream-dim); white-space: nowrap; }
/* the logo file is already tinted to the footer's text colour (--cream-dim) and is four times its shown size */
.site-footer__credit img { width: auto; height: 3.5rem; }
.site-footer .site-footer__credit:hover { color: var(--cream); text-decoration: none; }

/* Responsive */
@media (min-width: 701px) and (max-width: 1100px) {
  .site-footer__base { grid-template-columns: 1fr 1fr; }
  .site-footer__company { grid-column: 1 / -1; grid-row: 1; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .site-header__inner { gap: 1rem; }
  .brand img { height: 3.25rem; }
  .nav-link { padding-inline: 0.55rem; }
  .primary-nav { gap: 1rem; }
}
@media (max-width: 900px) {
  .site-header__inner { gap: 1rem; justify-content: space-between; }
  .brand img { height: 3.5rem; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; order: 2;
    padding: 0.6rem 0.8rem; font: 500 1rem/1 var(--sans); color: inherit; background: none; border: 1px solid rgb(242 233 208 / 0.35); border-radius: 3px; cursor: pointer;
  }
  .primary-nav {
    position: fixed; inset: 4.5rem 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100svh - 4.5rem); overflow-y: auto; padding: 0.75rem var(--gutter) 1.5rem; background: var(--forest-900);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav__list, .primary-nav__account { flex-direction: column; align-items: stretch; }
  .primary-nav__account { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgb(242 233 208 / 0.2); }
  .nav-link { width: 100%; justify-content: space-between; padding: 0.9rem 0.25rem; font-size: 1.125rem; }
  .panel { position: static; min-width: 0; padding: 0.5rem 0.25rem 1rem; color: var(--cream); background: none; box-shadow: none; }
  .panel__cols { grid-template-columns: 1fr; gap: 1rem; }
  .panel ul a, .panel__soon { color: var(--cream-dim); }
  .panel__all { color: var(--cream); border-color: rgb(242 233 208 / 0.2); }
}

@media (max-width: 700px) {
  .site-footer__base { grid-template-columns: 1fr; justify-items: center; }
  .site-footer__copy { text-align: center; }
  .site-footer__company { flex-direction: column; align-items: center; text-align: center; }
  .site-footer__company div { padding-inline: 0; }
  .site-footer__company div + div { border-left: 0; }
  .site-footer__credit { justify-self: center; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .tile { aspect-ratio: 4 / 3; }
  .tile--tropical { grid-row: auto; aspect-ratio: 1; }
  .tile--hardscape { grid-column: auto; }
  .tile--hardscape img { object-position: 55% 78%; }
  .tile--coldwater img, .tile--coldwater:hover img, .tile--coldwater:focus-within img { transform: scale(1.14); transform-origin: 100% 45%; }
}

@media (max-width: 560px) {
  /* phone: one field per row, except the short pairs (email and password, phone and website) */
  .fgroup__fields { --rgap: 1.15rem; column-gap: 0.75rem; }
  .field { grid-column: 1 / -1; }
  .field--pair { grid-column: auto; }
  .field--pair input { padding-inline: 0.8rem; }
  .choice__options:not(.choice__options--three) {
    grid-template-columns: repeat(2, minmax(0, auto)); grid-template-rows: repeat(2, auto); grid-auto-flow: column;
    justify-content: start; gap: 0.1rem 1rem;
  }
  .choice__opt { gap: 0.6rem; font-size: 1rem; }
  .choice__options--three { gap: 0.1rem 1.75rem; }
  .tform__submit .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
