/* Woo Nest — design system
   ---------------------------------------------------------------------------
   Art direction: a furniture workshop catalogue, set like a technical document.
   Paper and ink do the work; hairline rules are the grid made visible; the only
   colour that carries meaning is walnut (heat, wood, the PUR glue line).

   Two self-hosted OFL faces, 51 KB together, preloaded (see head.jet):
   Instrument Serif for display, Instrument Sans for everything else.

   Budget: this file must stay under 35 KB gzipped.
*/

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* Colour. Every pair below is checked for WCAG AA at its intended size. */
  --paper: #f7f3ec;
  --paper-2: #f0ebe1;
  --tint: #e8e0d2;
  --ink: #14110d;
  --ink-2: #3f382e;
  --muted: #5f5646;   /* 5.5:1 on the tinted panels, not just on paper */
  --line: #dcd2c1;
  --line-2: #c6b9a4;
  --walnut: #8a5a34;
  --accent: #96521f;        /* small text on paper: 5.4:1 */
  --deep: #151310;
  --on-dark: #f2ece0;
  --on-dark-muted: #b9ae9b;
  --on-dark-line: #35302a;

  /* Type */
  --serif: "Instrument Serif", ui-serif, "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.7rem, 5.6vw, 4.9rem);
  --fs-h1: clamp(2.25rem, 4.2vw, 3.5rem);
  --fs-h2: clamp(1.7rem, 2.7vw, 2.45rem);
  --fs-h3: clamp(1.1rem, 1.35vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --fs-micro: .7188rem;

  /* Space and rhythm */
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(64px, 8vw, 132px);
  --section-tight: clamp(40px, 5vw, 72px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .25, 1);
  --shadow: 0 18px 40px -28px rgba(20, 17, 13, .55);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; background: var(--tint); }

a { color: var(--walnut); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.012em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.22; }
p { margin: 0 0 1.05em; text-wrap: pretty; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--ink); color: var(--paper); }

/* ---------- layout ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: var(--section-tight); }
.section--tint { background: var(--paper-2); }
.section--dark {
  background: var(--deep);
  color: var(--on-dark);
  --line: var(--on-dark-line);
  --line-2: var(--on-dark-line);
  --ink: var(--on-dark);
  --ink-2: var(--on-dark-muted);
  --muted: var(--on-dark-muted);
  --accent: #d19a6a;
  --walnut: #d19a6a;
  --paper: var(--deep);
  --paper-2: var(--deep);
}
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark .lede, .section--dark p { color: var(--on-dark-muted); }

/* ---------- shared type devices ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.15rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  max-width: 88px;
  height: 1px;
  background: currentColor;
  opacity: .38;
}

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
.muted { color: var(--muted); font-size: var(--fs-sm); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: .85rem 1.35rem;
  font-size: var(--fs-sm);
  letter-spacing: .04em;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.section__head { max-width: 74ch; margin-bottom: clamp(32px, 4.5vw, 60px); }
.section__head h2 { max-width: 28ch; }
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: none;
}
.section__lede { color: var(--ink-2); max-width: 66ch; margin-bottom: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
body[data-scrolled="true"] .site-header { background: color-mix(in srgb, var(--paper) 97%, transparent); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.25rem);
  min-height: 84px;
  transition: min-height .25s var(--ease);
}
body[data-scrolled="true"] .site-header__inner { min-height: 66px; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; transition: height .25s var(--ease); }
body[data-scrolled="true"] .brand img { height: 26px; }
.brand__text { display: grid; gap: .12rem; padding-left: .8rem; border-left: 1px solid var(--line-2); }
.brand__name { font-family: var(--serif); font-size: 1.02rem; letter-spacing: .16em; line-height: 1; white-space: nowrap; }
.brand__tag { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.site-nav { display: flex; gap: clamp(1.1rem, 2vw, 1.9rem); margin-left: auto; }
.site-nav__foot { display: none; }
.site-nav__link {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem 0;
  white-space: nowrap;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav__link:hover::after, .site-nav__link.is-active::after, .site-nav__link:focus-visible::after { transform: scaleX(1); }
.site-nav__link.is-active { color: var(--ink); }

.site-header__actions { display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin-left: auto;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s linear;
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
body[data-nav-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body[data-nav-open="true"] .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.4rem;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--lg { padding: 1.05rem 1.85rem; }
.btn--sm { padding: .62rem 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--walnut); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--outline { background: transparent; color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 42%, transparent); }
.btn--outline:hover { background: var(--on-dark); color: var(--deep); }
.btn:active { transform: translateY(1px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(44px, 5.5vw, 88px) clamp(52px, 6vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -.02em;
  margin-bottom: 1.4rem;
  max-width: 17ch;
}
.hero__copy .lede { margin-bottom: 2rem; }
.hero__points {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.hero__points li {
  position: relative;
  padding: 1rem 1.5rem 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
  margin: 0;
}
.hero__points li:nth-child(odd) { border-right: 1px solid var(--line); }
.hero__points li:nth-child(even) { padding-left: 1.5rem; }
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 7px;
  height: 1px;
  background: var(--walnut);
}
.hero__points li:nth-child(even)::before { left: 1.5rem; }
.hero__points li:nth-child(even) { text-indent: 1rem; }
.hero__actions, .page-hero__actions, .notfound__actions, .product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.hero__note { margin-top: 1.25rem; font-size: var(--fs-xs); color: var(--muted); max-width: 46ch; }

/* The image is treated as a plate in a catalogue: corner ticks, a caption rule
   and the drawing number underneath. */
.plate { position: relative; }
.plate::before, .plate::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-2);
  pointer-events: none;
}
.plate::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.plate::after { bottom: 44px; right: -7px; border-left: 0; border-top: 0; }
.plate img { width: 100%; object-fit: cover; }
.plate__caption {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin: .85rem 0 0;
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.plate__caption::before {
  content: "Fig. 01";
  font-family: var(--serif);
  font-size: var(--fs-sm);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.hero__media { position: relative; }
.hero__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--tint); }
.hero__caption {
  margin: .85rem 0 0;
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- spec strip ---------- */
.trust-bar { border-block: 1px solid var(--line); background: var(--paper-2); }
.trust-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-bar__item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: clamp(1.2rem, 2vw, 1.7rem) clamp(1rem, 2vw, 1.8rem);
  border-right: 1px solid var(--line);
}
.trust-bar__item:last-child { border-right: 0; }
.trust-bar__item:first-child { padding-left: 0; }
.trust-bar__value {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.trust-bar__label {
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- category index ---------- */
.cat-grid { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.cat-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1.3fr) auto;
  align-items: baseline;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1.15rem, 2vw, 1.7rem) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background .25s var(--ease), padding .25s var(--ease);
}
.cat-card:hover { background: var(--paper-2); color: var(--ink); padding-inline: 1rem; }
.cat-card__num {
  font-size: var(--fs-micro);
  letter-spacing: .14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cat-card__title { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.05; }
.cat-card__blurb { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.cat-card__more {
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); }
.product-grid--wide { grid-template-columns: repeat(2, 1fr); }
.product-card { display: flex; flex-direction: column; }
.product-card__media {
  display: block;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid var(--line);
}
.product-card__media img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  transition: transform .6s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.035); }
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-top: 1.05rem;
}
.product-card__cat {
  margin: 0;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card__name { margin: 0; font-size: clamp(1.15rem, 1.5vw, 1.35rem); }
.product-card__name a { color: var(--ink); text-decoration: none; }
.product-card__summary { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.product-card__specs {
  display: flex;
  gap: 2rem;
  margin: .35rem 0 .2rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}
.product-card__specs dt {
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card__specs dd {
  margin: 0;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.product-card__link {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- split sections ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.split:not(:has(.split__media)) { grid-template-columns: minmax(0, 1fr); }
.split:not(:has(.split__media)) .split__copy { max-width: 78ch; }
.split--reverse .split__copy { order: 2; }
.split__media { margin: 0; }
.split__media img { width: 100%; border: 1px solid var(--line); }
.split__media figcaption {
  margin-top: .8rem;
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tick-list { list-style: none; padding: 0; display: grid; gap: .65rem; }
.tick-list li { position: relative; padding-left: 1.6rem; color: var(--ink-2); margin: 0; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 1px;
  background: var(--walnut);
}
.plain-list { color: var(--ink-2); columns: 2; column-gap: 2.5rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.6rem 0 1.9rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table caption {
  text-align: left;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: .8rem;
}
.data-table th, .data-table td {
  padding: .8rem 1.2rem .8rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom-color: var(--line-2);
}
.data-table tbody th { font-weight: 500; color: var(--ink-2); width: 32%; }
.data-table td { color: var(--ink); font-variant-numeric: tabular-nums; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.table-wrap--compare .data-table tbody tr:first-child td { font-family: var(--serif); font-size: 1.02rem; }
.table-note { font-size: var(--fs-xs); color: var(--muted); margin: .6rem 0 0; max-width: 72ch; }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  counter-reset: s;
}
.steps__item { border-top: 1px solid var(--line-2); padding-top: 1.15rem; }
.steps__num {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: .7rem;
  font-variant-numeric: tabular-nums;
}
.steps__item h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.steps__item p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* ---------- band ---------- */
.band { background: var(--tint); border-block: 1px solid var(--line); }
.band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(40px, 5vw, 68px);
}
.band__inner h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin-bottom: .4rem; }
.band__inner p { margin: 0; color: var(--ink-2); max-width: 62ch; font-size: var(--fs-sm); }
.band__inner .btn { flex: 0 0 auto; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative;
  cursor: pointer;
  padding: 1.2rem 3rem 1.2rem 0;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: .35rem;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1px 12px no-repeat;
  transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 3.5rem 1.4rem 0; }
.faq__body p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); max-width: 70ch; }

/* ---------- final CTA ---------- */
.cta-final h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); max-width: 22ch; }
.cta-final .lede { color: var(--on-dark-muted); }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- page hero ---------- */
.page-hero {
  padding-block: clamp(40px, 5vw, 76px) clamp(26px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
}
.page-hero--compact { padding-block: clamp(30px, 3.5vw, 52px) clamp(22px, 2.5vw, 34px); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { margin-bottom: 1.75rem; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stat-row div { display: flex; flex-direction: column; }
.stat-row dt {
  order: 2;
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .4rem;
}
.stat-row dd {
  order: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1;
}

/* ---------- breadcrumb ---------- */
.breadcrumb { padding-top: 1.35rem; font-size: var(--fs-micro); letter-spacing: .06em; color: var(--muted); }
.breadcrumb nav { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--ink-2); }

/* ---------- motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- product page ---------- */
.product-layout { padding-block: clamp(18px, 2vw, 28px) clamp(40px, 5vw, 72px); }
.product-layout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.product-layout__media { position: sticky; top: 104px; }
.product-layout__col { display: grid; gap: clamp(28px, 3vw, 44px); min-width: 0; }
.product-hero__copy { max-width: 60ch; }
.product-hero h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: .75rem; }
.product-hero .lede { margin-bottom: 1.5rem; }
.product-hero__note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--muted); }
.product-hero__actions { margin-top: 1.6rem; }

.key-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1.6rem;
  border-top: 1px solid var(--line);
}
.key-facts div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .85rem 1rem .85rem 0;
  border-bottom: 1px solid var(--line);
}
.key-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.key-facts div:nth-child(even) { padding-left: 1rem; }
.key-facts dt {
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.key-facts dd { margin: 0; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

.gallery { display: grid; gap: .6rem; }
.gallery__main { border: 1px solid var(--line); background: var(--tint); }
.gallery__main img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.gallery__thumbs button {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--tint);
  cursor: pointer;
}
.gallery__thumbs img { aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); }

.product-body { max-width: 64ch; }
.product-body h2 { margin-top: 2.4rem; }
.product-body h2:first-child { margin-top: 0; }

.product-aside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  margin-top: 2.6rem;
}
.aside-card {
  border: 1px solid var(--line-2);
  padding: clamp(1.15rem, 2vw, 1.6rem);
  background: var(--paper-2);
}
.aside-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.aside-card p { font-size: var(--fs-sm); color: var(--ink-2); }
.aside-card p:last-child { margin-bottom: 0; }
.aside-card--quiet { background: transparent; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .6rem;
  border: 1px solid var(--line-2);
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.step-pill { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; }

/* ---------- forms ---------- */
.rfq-form { display: grid; gap: 1.1rem; }
.form-step {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-step > legend {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: 0;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.form-step > legend::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.field { display: grid; gap: .3rem; min-width: 0; }
.field label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  padding: .5rem 0 .55rem;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  border-radius: 0;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-bottom-color: var(--ink);
  background: color-mix(in srgb, var(--tint) 45%, transparent);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; }
.field-hint { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.field-status { font-size: var(--fs-xs); color: var(--accent); margin: 0; min-height: 1.1em; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field--check input { width: 1.05rem; height: 1.05rem; margin-top: .2rem; accent-color: var(--ink); }
.field--check label { font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .4rem; }
.form-note { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.form-status { font-size: var(--fs-sm); margin: 0; }
.form-status[data-state="error"] { color: #8c2f1d; }
.form-status[data-state="ok"] { color: #2f5d3a; }
.form-aside { display: grid; gap: 1.25rem; align-content: start; }

.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: .32rem .65rem;
  border: 1px solid var(--line-2);
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.contact-card { border-top: 1px solid var(--line-2); padding-top: 1.2rem; }
.contact-card h2 { font-size: 1.3rem; }
.contact-card p { font-size: var(--fs-sm); color: var(--ink-2); }
.contact-card__big {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.1;
}
.contact-card__big a { text-decoration: none; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(70px, 12vw, 160px); }
.notfound h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 18ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--on-dark); padding-block: clamp(48px, 6vw, 88px) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .78fr)) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--on-dark-line);
}
.footer-brand__mark { height: 26px; width: auto; opacity: .95; margin-bottom: 1.3rem; display: block; }
.footer-brand__name { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--on-dark); }
.footer-brand__desc { font-size: var(--fs-sm); color: var(--on-dark-muted); max-width: 32ch; margin: .6rem 0 .9rem; }
.footer-brand__addr { font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer-brand__badge { font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 1rem; }
.footer-col h2, .footer-col h3 {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--on-dark); text-decoration: none; font-size: var(--fs-sm); }
.footer-col a:hover { color: #d19a6a; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: var(--fs-micro);
  color: var(--on-dark-muted);
}
.footer-bottom ul { display: flex; gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.footer-bottom a { color: var(--on-dark-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--on-dark); text-decoration: underline; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin-bottom: 1.2rem; }

/* ---------- utilities ---------- */
.empty { color: var(--muted); font-size: var(--fs-sm); }
tbody.empty td, .empty td { color: var(--muted); }

/* ---------- responsive: tablet ---------- */
@media (max-width: 1120px) {
  /* Five nav items plus a CTA stop fitting next to the lockup well before the
     layout itself breaks, so the tagline goes first. */
  .brand__tag { display: none; }
  .brand__name { font-size: .95rem; letter-spacing: .12em; }
  .site-nav__link { font-size: var(--fs-xs); letter-spacing: .1em; }
  .site-header .btn { white-space: nowrap; padding-inline: 1.1rem; }
}

@media (max-width: 1080px) {
  .product-layout__grid, .split { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .split--reverse .split__copy { order: 0; }
  .product-layout__media { position: static; }
  .product-hero__copy { max-width: none; }
  .product-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The hero keeps two columns until there is genuinely no room; see 940px. */
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { grid-template-columns: 3rem minmax(0, 1fr) auto; }
  .cat-card__blurb { display: none; }
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar__item { border-bottom: 1px solid var(--line); }
  .trust-bar__item:nth-child(2n) { border-right: 0; }
  .trust-bar__item:nth-child(odd) { padding-left: 0; }
  .trust-bar__item:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- responsive: phone ---------- */
@media (max-width: 980px) {
  :root { --fs-body: 1rem; }
  .site-header__inner { min-height: 66px; gap: 1rem; }
  .brand img { height: 28px; }
  .site-header__actions .btn { display: none; }
  .nav-toggle { display: block; }

  /* The nav becomes a full-screen sheet: large serif rows, numbered, with the
     quote button pinned at the bottom. The header must stop filtering the
     backdrop here: a backdrop-filter turns the header into the containing block
     for position:fixed children, which would trap the sheet inside the bar. */
  .site-header { backdrop-filter: none; background: var(--paper); }
  .site-nav {
    position: fixed;
    inset: 66px 0 0;
    display: grid;
    align-content: start;
    gap: 0;
    margin: 0;
    padding: 2rem var(--gutter) 6rem;
    background: var(--paper);
    border-top: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    overflow-y: auto;
  }
  body[data-nav-open="true"] .site-nav { opacity: 1; transform: none; visibility: visible; }
  body[data-nav-open="true"] { overflow: hidden; }
  .site-nav__link {
    font-family: var(--serif);
    font-size: 1.6rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    counter-increment: nav;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link.is-active { color: var(--accent); }
  .site-nav { counter-reset: nav; }
  .site-nav__foot { display: grid; gap: 1rem; margin-top: 2.4rem; }
  .site-nav__mail { font-size: var(--fs-sm); color: var(--muted); text-decoration: none; }

  .hero { padding-block: 24px clamp(40px, 8vw, 64px); }
  .hero__points { grid-template-columns: 1fr; }
  .hero__points li:nth-child(odd) { border-right: 0; }
  .hero__points li:nth-child(even) { padding-left: 0; text-indent: 0; }
  .hero__points li:nth-child(even)::before { left: 0; }
  .hero__actions .btn { flex: 1 1 auto; }

  .cat-card { grid-template-columns: 2.2rem minmax(0, 1fr) auto; padding-block: 1rem; gap: .6rem; }
  .cat-card__title { font-size: 1.25rem; }
  .cat-card__more { font-size: .62rem; }

  .product-grid, .product-grid--wide { grid-template-columns: 1fr; }
  .product-card__media img { aspect-ratio: 4 / 5; }

  .section__head--row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .band__inner .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr; }
  .product-aside { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .plain-list { columns: 1; }
  .gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
  .key-facts { grid-template-columns: 1fr; }
  .key-facts div:nth-child(odd) { border-right: 0; }
  .key-facts div:nth-child(even) { padding-left: 0; }
  .table-wrap { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .band, .cta-final, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- product: a short related list should not look abandoned ----- */
.product-grid--related { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.product-grid--related > .product-card { max-width: 420px; }

/* Two bullet columns break a six-word line in half; keep prose bullets stacked. */
.product-body .plain-list { columns: 1; }

/* ---------- responsive: narrow tablet ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  /* Stacked hero: the headline comes first, the plate supports it. Leading with a
     full-width drawing pushed the promise below the fold on portrait tablets. */
  .hero__media { order: 0; }
  .hero__caption { display: none; }
  .hero__media img { max-height: 56vh; width: auto; max-width: 100%; margin-inline: auto; }
}

