/* PLM — site styles

   One typeface (Hanken Grotesk), one accent colour, soft surfaces instead
   of lines. Sizing follows the usual platform guidance:
   - spacing on an 8px grid
   - touch targets at least 48px tall, 8px apart
   - body text 17px, lines no longer than about 60 characters
   - breakpoints at 600px and 900px
*/

:root {
  color-scheme: light;

  --paper: #ffffff;
  --surface: #f5f5f4;
  --ink: #111315;
  --ink-2: #5d6268;
  --outline: #e3e4e5;
  --outline-strong: #c6c9cc;
  --accent: #ffc20e;
  --accent-press: #f0b300;
  --on-accent: #111315;
  --mark: #ffe58f;
  --danger: #b3261e;

  --dark: #141618;
  --on-dark: #f3f3f2;
  --on-dark-2: #a9aeb3;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
  --r-xl: 28px;
  --pill: 999px;

  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gap: clamp(16px, 2.2vw, 32px);
  --pad: clamp(20px, 4vw, 48px);
  --head-h: 72px;
  --space-section: clamp(88px, 11vw, 168px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mark); color: var(--ink); }

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

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

.skip {
  position: absolute; left: var(--pad); top: -100px; z-index: 100;
  padding: 12px 20px; background: var(--ink); color: var(--paper); border-radius: var(--pill);
}
.skip:focus { top: 12px; }

/* ---------- Shared pieces ---------- */

.label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
}

h1, h2 {
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.9vw, 4rem); line-height: 1.04; max-width: 13em; }
h2 { font-size: clamp(1.875rem, 3.7vw, 3rem); line-height: 1.08; max-width: 16em; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }

.sub, .lede {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  max-width: 34em;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--outline-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.15s ease;
}
.text-link:hover { text-decoration-color: currentColor; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--outline);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  height: 36px;
  padding: 0 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-radius: var(--r-s);
}
.brand-sub { font-size: 0.9375rem; color: var(--ink-2); white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav ul a:hover { background: var(--surface); color: var(--ink); }
.site-nav ul a[aria-current="true"] { color: var(--ink); background: var(--surface); }

.nav-side { display: flex; align-items: center; gap: 20px; }
.quiet {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.quiet:hover { color: var(--ink); }

.menu-btn {
  display: none;
  min-height: 44px;
  padding: 0 20px;
  background: var(--surface);
  border: 0;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--head-h));
    overflow-y: auto;
    padding: 8px var(--pad) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--outline);
    box-shadow: 0 24px 40px -24px rgb(0 0 0 / 0.18);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: flex; min-height: 56px; padding: 0; border-radius: 0;
    font-size: 1.125rem; color: var(--ink);
    border-bottom: 1px solid var(--outline); background: none !important;
  }
  .nav-side { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 20px; }
  .nav-side .btn { min-height: 52px; }
  .nav-side .quiet { order: 2; justify-content: center; min-height: 48px; }
}
@media (max-width: 420px) { .brand-sub { display: none; } }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
}
.hero-copy { grid-column: 1 / span 7; }
.hero-photo { grid-column: 9 / span 4; }
.hero h1 { margin-top: 24px; }
.hero .lede { margin-top: 24px; }
.hero .actions { margin-top: 32px; }

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 50%;
  background: var(--surface);
  border-radius: var(--r-xl);
}

.hero-grid.no-photo .hero-photo { display: none; }
.hero-grid.no-photo .hero-copy { grid-column: 1 / -1; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--gap);
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--outline);
}
.facts dt { font-size: 0.875rem; color: var(--ink-2); }
.facts dd { margin-top: 2px; font-weight: 500; line-height: 1.4; }

@media (max-width: 900px) {
  .hero-copy { grid-column: 1 / -1; }
  .hero-photo { grid-column: 1 / -1; margin-top: 40px; }
  .hero-photo img { aspect-ratio: 3 / 2; object-position: 50% 40%; border-radius: var(--r-l); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.section { margin-top: var(--space-section); }
.sec-head { margin-bottom: clamp(32px, 4.5vw, 56px); }
.sec-head h2 { margin-top: 16px; }
.sec-head .sub { margin-top: 16px; }

/* ---------- Catalogue ---------- */

.cat-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 32px; }
.cat-search input {
  flex: 1 1 280px;
  max-width: 480px;
  min-height: 56px;
  padding: 0 24px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cat-search input::placeholder { color: var(--ink-2); opacity: 1; }
.cat-search input:hover { background: #efefee; }
.cat-search input:focus-visible { outline: 0; background: var(--paper); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cat-status { font-size: 0.9375rem; color: var(--ink-2); }

.cat-group { padding: 20px 0 8px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.cat-group:first-child { padding-top: 0; }

.cat-h { font: inherit; letter-spacing: 0; }
.cat-h button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 8px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--outline);
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.cat-n { display: none; }
.cat-name { flex: 1; }
.cat-tail { font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); padding-left: 12px; white-space: nowrap; }
.cat-tail::after { content: "+"; display: inline-block; width: 1.1em; text-align: right; font-size: 1.375rem; line-height: 0; color: var(--ink); vertical-align: -1px; }
.cat-h button[aria-expanded="true"] .cat-tail::after { content: "–"; }

.cat-panel { padding: 20px 0 32px; }
.cat-title { display: none; }
.cat-blurb { color: var(--ink-2); max-width: 36em; text-wrap: pretty; }

.cat-sets { display: grid; gap: 20px; margin: 24px 0 28px; }
.cat-set h4 { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.cat-set ul { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-set li {
  padding: 7px 12px;
  background: var(--paper);
  border: 1px solid var(--outline);
  border-radius: var(--r-s);
  font-size: 0.9375rem;
  line-height: 1.3;
}
.cat-set li.is-dim { opacity: 0.4; }
mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 3px; }

.cat-empty { max-width: 34em; padding: clamp(24px, 3vw, 40px); background: var(--surface); border-radius: var(--r-xl); }
.cat-empty-h { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.cat-empty p + p { margin-top: 8px; color: var(--ink-2); }
.cat-empty .btn { margin-top: 12px; }

@media (min-width: 901px) {
  .cat {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    grid-template-rows: repeat(var(--rows, 16), auto) 1fr;
    column-gap: var(--gap);
    align-items: start;
  }
  .cat-group, .cat-h { grid-column: 1; }
  .cat-group { padding-inline: 14px; }

  .cat-h button {
    min-height: 48px;
    padding: 6px 14px;
    border-bottom: 0;
    border-radius: var(--r-m);
    font-size: 1rem;
    font-weight: 400;
    transition: background-color 0.15s ease;
  }
  .cat-h button:hover { background: var(--surface); }
  .cat-h button[aria-expanded="true"] { background: var(--surface); font-weight: 600; }
  .cat-tail::after { content: none !important; }

  .cat-panel {
    grid-column: 2;
    grid-row: 1 / -1;
    padding: clamp(28px, 3.2vw, 44px);
    background: var(--surface);
    border-radius: var(--r-xl);
    animation: panel-in 0.22s ease-out;
  }
  .cat-title { display: block; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 8px; }
}

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

/* ---------- Sourcing ---------- */

.source {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.rings { display: block; width: 100%; max-width: 340px; height: auto; overflow: visible; }
.ring { stroke: none; transition: fill 0.2s ease; }
.ring[data-t="3"] { fill: var(--surface); }
.ring[data-t="2"] { fill: #e6e6e4; }
.ring[data-t="1"] { fill: var(--accent); }
.ring-label { font-family: var(--sans); font-size: 11px; font-weight: 500; fill: var(--ink); }

#sourcing:has(.tier[data-t="2"]:hover) .ring[data-t="2"],
#sourcing:has(.tier[data-t="3"]:hover) .ring[data-t="3"] { fill: var(--accent); }
#sourcing:has(.tier[data-t="2"]:hover) .ring[data-t="1"],
#sourcing:has(.tier[data-t="3"]:hover) .ring[data-t="1"] { fill: var(--paper); }
#sourcing:has(.tier[data-t="3"]:hover) .ring[data-t="2"] { fill: var(--paper); }

.steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--outline);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li:last-child { padding-bottom: 0; }
.step-n {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  font-size: 0.9375rem; font-weight: 600;
}
.steps h3 { margin-top: 5px; }
.steps p { margin-top: 6px; color: var(--ink-2); max-width: 32em; }

@media (max-width: 760px) {
  .source { grid-template-columns: 1fr; row-gap: 40px; }
  .rings { max-width: 220px; }
}

/* ---------- Why ---------- */

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.reasons article { padding: clamp(24px, 2.6vw, 36px); background: var(--surface); border-radius: var(--r-l); }
.reasons p { margin-top: 8px; color: var(--ink-2); }

@media (max-width: 840px) { .reasons { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Logistics ---------- */

.modes > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--outline);
}
.modes > div:last-child { border-bottom: 1px solid var(--outline); }
.modes dt { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.modes dd { color: var(--ink-2); max-width: 32em; }

@media (max-width: 600px) {
  .modes > div { grid-template-columns: 1fr; row-gap: 4px; padding: 18px 0; }
}

/* ---------- Suppliers ---------- */

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  margin-top: var(--space-section);
  padding: clamp(32px, 5.5vw, 80px);
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--r-xl);
}
.band-copy { flex: 1 1 420px; }
.band h2 { margin-top: 16px; }
.band .sub { margin-top: 16px; color: var(--on-dark-2); }
.band .label { color: var(--on-dark-2); }
.band .text-link { text-decoration-color: #4a4f55; }
.band :focus-visible { outline-color: var(--on-dark); }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: 32px;
  align-items: start;
}
.about-copy { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.aims > div { padding: 18px 0; border-top: 1px solid var(--outline); }
.aims > div:first-child { padding-top: 0; border-top: 0; }
.aims dt { font-size: 0.875rem; color: var(--ink-2); }
.aims dd { margin-top: 2px; font-weight: 500; line-height: 1.45; }

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

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 40px;
  align-items: start;
}
.contact .sec-head { margin-bottom: 40px; }
.reach > div { padding: 16px 0; border-top: 1px solid var(--outline); max-width: 22em; }
.reach dt { font-size: 0.875rem; color: var(--ink-2); }
.reach dd { margin-top: 2px; font-weight: 500; line-height: 1.45; }
.reach a { text-decoration-color: var(--outline-strong); text-underline-offset: 0.25em; }
.reach a:hover { text-decoration-color: currentColor; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(24px, 3.2vw, 44px);
  background: var(--surface);
  border-radius: var(--r-xl);
}
.field-wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-2); margin-left: 4px; }

.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--outline);
  border-radius: var(--r-m);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 132px; }
.field ::placeholder { color: var(--ink-2); opacity: 0.8; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 23px) 50%, calc(100% - 17px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--outline-strong); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 0; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink);
}
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.err { margin-top: 6px; font-size: 0.9375rem; font-weight: 500; color: var(--danger); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form-note { font-size: 0.9375rem; color: var(--ink-2); }
.form-done { padding: 16px 20px; background: var(--paper); border-radius: var(--r-m); line-height: 1.45; }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

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

.site-foot { margin-top: var(--space-section); border-top: 1px solid var(--outline); padding-top: clamp(40px, 5vw, 64px); }
.foot-in { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.3fr)); gap: 36px var(--gap); }
.foot-brand p { margin-top: 16px; color: var(--ink-2); font-size: 0.9375rem; }
.site-foot h2 { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-bottom: 6px; max-width: none; }
.site-foot li { font-size: 0.9375rem; min-height: 36px; display: flex; align-items: center; }
.site-foot li a { text-decoration: none; }
.site-foot li a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.foot-legal {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(32px, 4vw, 56px); padding-block: 12px 20px;
  font-size: 0.875rem; color: var(--ink-2);
}
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-legal a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

/* ---------- Motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-head, .cat-search, .actions, .form { display: none !important; }
  .band { background: none; color: #000; }
}
