/* ============================================================
   EURO VISTAA — PHASE 12 STYLESHEET ("Blue / Ink")
   One stylesheet for the whole site. Sections, in order:
   1  Tokens            7  Buttons & links      13 Cards, steps, splits
   2  Reset & base      8  Nav                  14 CTA band, certs strip
   3  Typography        9  Heroes               15 Contact form
   4  Layout            10 Section index        16 Footer
   5  Sections          11 Spec tables, chips   17 Utilities
   6  Kicker            12 Families, products   18 Motion & print
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Ground & text */
  --ink: #12283A;
  --ink-2: #0E1F2E;
  --paper: #FFFFFF;              /* main content ground (was warm paper) */
  --surface: #F3F6F8;            /* secondary panels: feature block, literature rows, alternate sections */
  --white: #FFFFFF;
  --text: #161B22;
  --muted: #52616E;
  --rule: #D9E1E7;
  --rule-strong: #B9C7D1;

  /* Action colour — EV logo blue is the only action colour */
  --blue: #0B8AC6;
  --blue-dark: #076E9F;          /* hover; also small blue text on light grounds (AA) */
  --blue-light: #5CB6E4;
  --blue-deeper: #055578;        /* primary-button hover */         /* same blue, lifted for small text on ink (AA) */

  /* Brochure accent — short rules only, never fills */
  --amber: #E8A33D;

  /* Family colours — used only by the range-colour rules */
  --fam-euractiv: #08668C;
  --fam-eurosperse: #8D1C6B;
  --fam-eurowhite: #276C78;
  --fam-eurosol: #93032E;
  --fam-eurovat: #3B3A96;
  --fam-eurolan: #C4761A;
  --fam-eurodir: #6E4A2E;
  --fam-eurocryl: #0E5149;
  --fam-europrint: #D6006E;
  --fam-euraux: #292F3E;
  --fam-cpb: #0F8040;

  /* On-ink text */
  --on-ink: #FFFFFF;
  --on-ink-soft: rgba(255, 255, 255, 0.80);
  --on-ink-muted: rgba(255, 255, 255, 0.62);
  --on-ink-rule: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --section-y: clamp(4rem, 8vw, 7rem);

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --container-narrow: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 80px;
  --index-w: 220px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;
  --normal: 320ms;

  /* Consumed by contact.js for its inline status colour */
  --color-gold: var(--blue-dark);
}

@media (max-width: 1080px) {
  :root { --nav-h: 68px; }
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

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

a {
  color: var(--blue-dark);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

a:hover { color: var(--ink); }

ul[class],
ol[class] { list-style: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); letter-spacing: -0.015em; }

h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }

h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
}

h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

p { max-width: 68ch; }
p + p { margin-top: 1em; }
.container--narrow > p { font-size: 1.0625rem; line-height: 1.75; }

strong, b { font-weight: 600; }

small { font-size: 0.8125rem; color: var(--muted); }

/* Long-form text (privacy, notes) */
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin: var(--space-2xl) 0 var(--space-md); }

.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: var(--space-md); color: var(--text); }
.prose p a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

/* ------------------------------------------------------------
   5. SECTIONS
   ------------------------------------------------------------ */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--surface { background: var(--surface); }

.section--ink { background: var(--ink); color: var(--on-ink-soft); }

.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--on-ink); }
.section--ink p { color: var(--on-ink-soft); }
.section--ink a:not([class]),
.section--ink .link-arrow { color: var(--blue-light); }
.section--ink a:not([class]):hover,
.section--ink .link-arrow:hover { color: var(--on-ink); }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.section__head h2 { margin: 0; }
.section__head > * + * { margin-top: 0.75rem; }

.section__lede {
  margin-top: var(--space-md);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.section--ink .section__lede { color: var(--on-ink-soft); }

/* Hairline between two consecutive sections on the same (white) ground */
.section--paper + .section--paper,
.section--white + .section--white,
.section--paper + .section--white,
.section--white + .section--paper,
.section--surface + .section--surface { border-top: 1px solid var(--rule); }

/* ------------------------------------------------------------
   6. KICKER
   ------------------------------------------------------------ */
.kicker {
  display: block;
  max-width: none;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.kicker--rule::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 0.75rem;
  background: var(--amber);
}


/* Numbered section kickers (homepage 01 / 02 / 03 — Yarns, Dyes & Chemicals, Fabrics).
   R2-01 rebalance: a restrained amber numeral (~21px Playfair) and a dominant
   16px semibold label, sharing one baseline (inline boxes), ~11px apart.
   The standard 40px amber .kicker--rule sits beneath. Used only on the homepage;
   the small numbers inside yarn/fabric cards are plain .kicker and unchanged. */
.kicker--num { line-height: 1.3; margin-bottom: var(--space-lg); }
.kicker__num {
  display: inline-block;
  margin-right: 0.6875rem;
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--amber);
}
.kicker__label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero .kicker,
.section--ink .kicker,
.cta-band--ink .kicker { color: var(--blue-light); }

/* ------------------------------------------------------------
   7. BUTTONS & LINKS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.375rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease);
}

.btn--primary {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-deeper);
  border-color: var(--blue-deeper);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue-dark);
}

.btn--ghost:hover { background: var(--blue); color: var(--white); }

.btn--onink {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn--onink:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.hero .link-arrow { color: var(--blue-light); }
.hero .link-arrow:hover { color: var(--on-ink); }

.section--ink .btn--ghost,
.hero .btn--ghost { border-color: var(--blue-light); color: var(--white); }

.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.link-arrow::after { content: "→"; transition: transform var(--fast) var(--ease); }

.link-arrow:hover { color: var(--ink); }
.link-arrow:hover::after { transform: translateX(3px); }

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ------------------------------------------------------------
   8. NAV — transparent over home/split heroes, white otherwise
   ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: -60px;
  left: 8px;
  z-index: 1000;
  padding: 0.625rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  transition: top var(--fast) var(--ease);
}

.skip-link:focus { top: 8px; color: var(--white); }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color var(--normal) var(--ease),
              border-color var(--normal) var(--ease);
  border-bottom: 1px solid transparent;
}

/* Soft scrim so links stay legible where the nav crosses a photo */
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -24px;
  background: linear-gradient(180deg, rgba(14, 31, 46, 0.72), rgba(14, 31, 46, 0));
  pointer-events: none;
  transition: opacity var(--normal) var(--ease);
}

.nav.scrolled,
.nav.nav--open { background: var(--white); border-bottom-color: var(--rule); }

.nav.scrolled::before,
.nav.nav--open::before { opacity: 0; }

.nav__inner {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  height: 100%;
}

.logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.logo__img { width: auto; }
/* Sized by the visible mark, not the raster canvas: the blue EURO panel is
   157/384 of the PNG height (transparent padding above and below), so an
   83px image gives a ~34px panel (full lockup incl. tagline ~53px). */
.logo__img--nav { height: 56px; }
.logo__img--nav-light { display: none; }
.logo__img--nav-dark { display: block; }
.nav.scrolled .logo__img--nav-light,
.nav.nav--open .logo__img--nav-light { display: block; }
.nav.scrolled .logo__img--nav-dark,
.nav.nav--open .logo__img--nav-dark { display: none; }

.nav__menu { margin-left: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.nav__links a {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(14, 31, 46, 0.45);
}

.nav.scrolled .nav__links a,
.nav.nav--open .nav__links a { text-shadow: none; }

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--normal) var(--ease);
}

.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a.active { color: var(--white); }

.nav.scrolled .nav__links a { color: var(--text); }
.nav.scrolled .nav__links a:hover,
.nav.scrolled .nav__links a.active { color: var(--ink); }

.nav__home,
.nav__links-locale { display: none; }

/* Locale switcher */
.locale-switcher { position: relative; }

.locale-current {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 36px;
  padding: 0.25rem 0.625rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease);
}

.locale-current:hover { border-color: var(--white); }

.nav.scrolled .locale-current,
.nav.nav--open .locale-current { border-color: var(--rule-strong); color: var(--text); }

.nav.scrolled .locale-current:hover { border-color: var(--blue); }

.locale-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 200;
  min-width: 128px;
  padding: 0.25rem 0;
  background: var(--white);
  border: 1px solid var(--rule);
}

.locale-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
}

.locale-menu a:hover { background: var(--surface); color: var(--ink); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform var(--normal) var(--ease), opacity var(--fast);
}

.nav.scrolled .hamburger span,
.nav.nav--open .hamburger span { background: var(--text); }

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay { display: none; }

@media (max-width: 1080px) {
  .logo__img--nav { height: 44px; }
  .hamburger { display: inline-flex; }
  .locale-switcher--desktop { display: none; }
  .nav__menu { margin-left: auto; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(86vw, 380px);
    padding: var(--space-md) var(--gutter) var(--space-2xl);
    overflow-y: auto;
    background: var(--white);
    border-left: 1px solid var(--rule);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--normal) var(--ease), visibility 0s linear var(--normal);
  }

  .nav__links.open {
    transform: none;
    visibility: visible;
    transition: transform var(--normal) var(--ease), visibility 0s;
  }

  .nav__links > li { border-bottom: 1px solid var(--rule); }
  .nav__home { display: block; }

  .nav__links a,
  .nav.scrolled .nav__links a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0;
    font-size: 1.0625rem;
    color: var(--text);
  }

  .nav__links a::after { display: none; }

  .nav__links a.active {
    color: var(--ink);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--blue);
    padding-left: 0.875rem;
  }

  .nav__links-locale {
    display: block;
    border-bottom: 0 !important;
    padding-top: var(--space-lg);
  }

  .nav__links .locale-current {
    min-height: 44px;
    border-color: var(--rule-strong);
    color: var(--text);
  }

  .nav__links .locale-menu { position: static; margin-top: 0.5rem; }

  .nav__links .locale-menu a { min-height: 44px; }

  .mobile-overlay {
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 99;
    background: rgba(14, 31, 46, 0.5);
  }

  .mobile-overlay.active { display: block; }
}

.page-404 .locale-switcher { display: none; }

/* ------------------------------------------------------------
   9. HEROES
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-ink-soft);
  overflow: hidden;
}

.hero h1,
.hero__title { color: var(--on-ink); }

.hero__title { margin-bottom: 0; }
.hero__title-sub { display: block; }
/* Homepage only: the chemistry line sits below "Yarns." at a subordinate size */
.hero--home .hero__title-sub { font-size: 0.74em; line-height: 1.15; margin-top: 0.15em; }

.hero__lede {
  margin-top: var(--space-lg);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--on-ink-soft);
  max-width: 46ch;
}

.hero__note {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-xl);
}

/* Amber 40px rule under the h1 (split + home heroes) */
.hero--split .hero__title::after,
.hero--home h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 1.25rem;
  background: var(--amber);
}

/* --- Split interior hero: ink field left, photo right --- */
.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: clamp(460px, 64vh, 620px);
}

.hero--split .hero__field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
  /* align the text with the 1200px container edge */
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.hero--split .hero__field > .container { max-width: none; margin: 0; padding-inline: 0; }
.hero--split .hero__title { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }

.hero__media {
  position: relative;
  min-height: 100%;
  background: var(--ink-2);
}

.hero__media picture,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.hero__media img { object-position: center; filter: saturate(0.82) contrast(1.02); }

@media (max-width: 900px) {
  .hero--split { grid-template-columns: 1fr; min-height: 0; }

  .hero--split .hero__field { padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 2.75rem; }

  .hero__media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* --- Homepage hero: full-bleed photo, ink on the left 55%, knit at right edge --- */
.hero--home {
  display: flex;
  align-items: center;
  min-height: clamp(560px, 88vh, 780px);
  isolation: isolate;
}

.hero--home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero--home .hero__bg picture,
.hero--home .hero__bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero--home .hero__bg img { filter: saturate(0.85); }

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(18, 40, 58, 0.97) 0%,
      rgba(18, 40, 58, 0.93) 45%,
      rgba(18, 40, 58, 0.55) 60%,
      rgba(18, 40, 58, 0.08) 78%,
      rgba(18, 40, 58, 0) 100%);
}

.hero--home::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 14%;
  background-image: url('/assets/brand/EV_leaf_tile_white_alpha.png');
  background-size: 50% auto;
  background-repeat: repeat;
  opacity: 0.1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 80%);
  mask-image: linear-gradient(90deg, transparent, #000 80%);
  pointer-events: none;
}

.hero--home .hero__content {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 5rem;
}

.hero--home .hero__content > * { max-width: 36rem; }
.hero--home h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 46rem; }
.hero--home .hero__content > p:not(.kicker) {
  margin-top: var(--space-lg);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--on-ink-soft);
}

/* R2-01: three supporting lines (data array) — one block per group; each may
   wrap internally on phones, the separation between groups is kept. */
.hero--home .hero__content > p.hero__lines { max-width: 40rem; line-height: 1.5; }
.hero__lines > span { display: block; }
.hero__lines > span + span { margin-top: 0.5em; }

/* R2-01: small factual proof line under the hero actions */
.hero--home .hero__content > p.hero__proof {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--on-ink-muted);
}

@media (max-width: 767px) {
  .hero--home { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero--home::before { display: none; }
  .hero--home::after { bottom: 40vh; bottom: clamp(220px, 40svh, 360px); width: 14%; }
  .hero--home .hero__content { order: 1; padding-bottom: 2.75rem; }
  .hero--home .hero__bg { position: relative; inset: auto; z-index: 0; order: 2; height: 40vh; height: clamp(220px, 40svh, 360px); min-height: 220px; }
  .hero--home .hero__bg img { object-position: center; }
}

/* --- Plain hero: ink field only, closes with a 4px amber rule --- */
.hero--plain {
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(2.75rem, 5vw, 4.5rem);
  border-bottom: 4px solid var(--amber);
}

.hero--plain .hero__field,
.hero--plain > .container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero--plain .hero__field > .container { padding-inline: 0; }
.hero--plain .hero__title { max-width: 20ch; }

/* ------------------------------------------------------------
   10. SECTION INDEX — sticky side index ≥1024px, select below
   ------------------------------------------------------------ */
.index-layout { display: grid; grid-template-columns: minmax(0, 1fr); }

.index-layout__content { min-width: 0; }

.side-index { display: none; }

.section-select {
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  z-index: 20;
  display: block;
  width: 100%;
  min-height: 48px;
  margin-bottom: var(--space-xl);
  padding: 0 2.75rem 0 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23076E9F' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.section-select:focus-visible { border-color: var(--blue); }

@media (max-width: 1023px) {
  .index-layout [id] { scroll-margin-top: calc(var(--nav-h) + 76px); }
}

@media (min-width: 1024px) {
  .index-layout {
    grid-template-columns: var(--index-w) minmax(0, 1fr);
    column-gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
  }

  .section-select { display: none; }

  .side-index {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
    display: block;
    max-height: calc(100vh - var(--nav-h) - 4rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .side-index__label,
  .side-index > p,
  .side-index > h2,
  .side-index > h3 {
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .side-index ul { border-left: 1px solid var(--rule); }

  .side-index li ul { border-left: 0; margin-left: 0.75rem; }

  .side-index a {
    display: block;
    margin-left: -1px;
    padding: 0.4375rem 0 0.4375rem 1rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--muted);
    border-left: 2px solid transparent;
    transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
  }

  .side-index a:hover { color: var(--text); }

  .side-index a.is-active {
    color: var(--ink);
    font-weight: 500;
    border-left-color: var(--blue);
  }

  /* Two-line family items (R2 batch 02): brand first, category second */
  .side-index__brand,
  .side-index__cat { display: block; }
  .side-index__brand {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
  }
  .side-index__cat {
    margin-top: 0.0625rem;
    font-size: 0.8125rem;
    color: var(--muted);
  }
  .side-index a.is-active .side-index__brand { color: var(--ink); }
  .side-index a.is-active .side-index__cat { color: var(--text); }
}

/* ------------------------------------------------------------
   11. SPEC TABLES & CHIPS
   ------------------------------------------------------------ */
.spec-table { margin-block: var(--space-lg); border-top: 1px solid var(--rule); }

.spec-table__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: var(--space-lg);
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule);
}

.spec-table__label {
  padding-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-table__value {
  font-size: 0.96875rem;
  line-height: 1.6;
  color: var(--text);
}

.spec-table__value > * + * { margin-top: 0.375rem; }
.spec-table__value small { display: block; }
.spec-table__value ul { padding-left: 1.1rem; }
.spec-table__value .chips { margin-top: 0.5rem; }

/* R2 batch 03 — Fabrics: a short run-in label inside a spec value
   (e.g. Jacquard / Woven / Knitted under Construction). */
.spec-table__lead { font-weight: 600; color: var(--text); }
.spec-table__lead::after { content: " —"; font-weight: 400; color: var(--muted); }

@media (max-width: 640px) {
  .spec-table__row { grid-template-columns: 1fr; row-gap: 0.25rem; }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
}

a.chip:hover { border-color: var(--blue); color: var(--blue-dark); }

.section--ink .chip { color: var(--on-ink); border-color: var(--on-ink-rule); }

/* ------------------------------------------------------------
   12. RANGE CARDS, FAMILIES, PRODUCT ROWS, LITERATURE
   ------------------------------------------------------------ */
.range-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.range-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-height: 136px;
  padding: 1.5rem 1.5rem 1.375rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--family, var(--blue));
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.range-card:hover {
  color: var(--text);
  border-left-color: var(--rule-strong);
  border-right-color: var(--rule-strong);
  border-bottom-color: var(--rule-strong);
}

.range-card__name {
  order: -1;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.range-card__type {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.range-card p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.section--surface .range-card { background: var(--white); }

.section--ink .range-card {
  color: var(--on-ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--on-ink-rule);
  border-top-color: var(--family, var(--blue));
}

.section--ink .range-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 255, 255, 0.3);
  border-right-color: rgba(255, 255, 255, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.section--ink .range-card__type,
.section--ink .range-card p { color: var(--on-ink-muted); }

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

@media (max-width: 520px) {
  .range-grid { grid-template-columns: 1fr; }
  .range-card { min-height: 0; }
}

/* --- Family / category sections on product pages --- */
/* Every anchored section in an index layout (families, yarn categories,
   fabric ranges, chemical sections) is separated by a hairline */
.index-layout__content > section,
.family { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }

/* Product-page families (dyes, chemicals): 56px apart desktop / 36px mobile,
   separated by a neutral full-width hairline */
.index-layout__content > .family { padding-block: 56px; }
@media (max-width: 640px) {
  .index-layout__content > .family { padding-block: 36px; }
}

.index-layout__content > section:first-of-type { padding-top: 0; border-top: 0; }

.index-layout__content > section:last-child,
.family:last-child { padding-bottom: 0; }

.index-layout__content > section > h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.index-layout__content > section > h2 + p {
  margin-top: var(--space-md);
  font-size: 1.0625rem;
  color: var(--muted);
}
.index-layout__content > section > .chips { margin-top: var(--space-lg); }
.index-layout__content > section > h3 { margin-top: var(--space-2xl); }
.index-layout__content > section > h3 + .spec-table { margin-top: var(--space-md); }
.index-layout__content > section > .btn { margin-top: var(--space-lg); }

.family--sub { margin-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 0; }

.family--sub .family__header h2,
.family--sub .family__header h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.family__note { margin-top: var(--space-md); color: var(--muted); }

.family__header { margin-bottom: var(--space-lg); }
.family__header h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
@media (max-width: 640px) {
  .family__header h2 { font-size: 1.9rem; }
}

/* Family opening: a short rule in the family colour above the kicker.
   Primary families only — not the nested EUROPRINT RV block or the boxed
   caustic-free feature panel. */
.family:not(.family--sub):not(.family--feature) > .family__header::before {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--family, var(--blue));
}
body[data-range-colour="header"] .family__header::before { display: none; }

.family__lede {
  margin-top: var(--space-md);
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.family__meta > .spec-table,
.family__meta.spec-table { margin-top: 0; }

.family__ranges { margin-top: var(--space-xl); }

.family__ranges > h3,
.family__ranges > h4,
.family__more > h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* In range lists the label is a product name, not a field name */
.family__ranges .spec-table__label {
  padding-top: 0;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
}

.family__more { border-top: 1px solid var(--rule); }

.family__more + .family__more { border-top: 1px solid var(--rule); }
.family__more:last-of-type { border-bottom: 1px solid var(--rule); }
.family__ranges + .family__more,
.spec-table + .family__more { margin-top: var(--space-xl); }

.family__more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding-block: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  cursor: pointer;
}

.family__more > summary::-webkit-details-marker { display: none; }

.family__more > summary::after {
  content: "+";
  flex: none;
  width: 1.5rem;
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: var(--blue-dark);
}

.family__more[open] > summary::after { content: "−"; }
.family__more > summary:hover { color: var(--blue-dark); }

.family__more > :not(summary) { margin-bottom: var(--space-lg); }

.family__more > .spec-table { margin-top: 0; }

.family__more ul:not([class]) { padding-left: 1.125rem; color: var(--text); }

.family__more ul:not([class]) li { padding-left: 0.25rem; margin-bottom: 0.5rem; }

.family__more ul:not([class]) li::marker { color: var(--blue); }

/* Compact literature + action row: cover thumbnail, title and one line on
   the left; "Request technical literature" and "Discuss this range" grouped
   on the right. Chemicals section rows (button + link) keep the plain row. */
.family__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: var(--space-xl);
}

.family__actions--lit {
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.index-layout__content > .family__actions--standalone { margin-top: 0; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.family__lit {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 18rem;
  min-width: 0;
}

.family__lit-cover {
  flex: none;
  width: 64px;
  height: auto;
  aspect-ratio: 360 / 509;
  object-fit: cover;
  background: var(--white);
  border: 1px solid var(--rule);
}

.family__lit-body { min-width: 0; }

.family__lit-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
}

.family__lit-body p {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.family__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: none;
}

@media (max-width: 640px) {
  .family__actions--lit { flex-direction: column; align-items: stretch; padding: 1rem; }
  .family__lit { flex: none; align-items: flex-start; }
  .family__lit-cover { width: 56px; }
  .family__buttons { flex-direction: column; }
  .family__buttons .btn { width: 100%; }
}

/* R2 batch 03 — text-only literature row (Fabrics: no cover until the
   dedicated brochures are final) and the knitted denim / CVC note. */
.family__actions--text { margin-top: var(--space-xl); }
.fabric-range__note { margin-top: var(--space-md); font-size: 0.9375rem; }
.fabric-range__note .link-arrow { display: inline; font-weight: 500; }
/* CPB literature row sits inside the surface-coloured feature panel */
.family--feature .family__actions--lit { background: var(--white); }

/* Further Options (R2 batch 02): one row per further range, name first,
   description after; aligned with the range-selection rows above. */
.family__ranges > h3.family__subhead { margin-top: var(--space-xl); }

.further-list { border-top: 1px solid var(--rule); }

.further-list__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: var(--space-lg);
  padding-block: 0.875rem;
  font-size: 0.96875rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--rule);
}

.further-list__name {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.further-list__text { color: var(--text); }

/* Cross-references to a separate range (e.g. Related brightener) */
.family__xref { margin-top: var(--space-md); }
.family__xref li + li { margin-top: 0.375rem; }
.family__xref .link-arrow { font-size: 0.9375rem; }

@media (max-width: 640px) {
  .further-list__row { grid-template-columns: 1fr; row-gap: 0.125rem; }
}

/* Related Auxiliaries (R2 batch 02): one renderer for every family. Each
   row is a single link covering the stage label and the product names, so
   either side is clickable with one keyboard stop and one focus outline.
   Two columns on desktop, stacked on phones. */
.related-list__intro {
  font-size: 0.9375rem;
  color: var(--muted);
}

.related-list {
  margin-top: 0;
  border-top: 1px solid var(--rule);
}

.related-list > li { border-bottom: 1px solid var(--rule); }

.related-list__row {
  display: grid;
  grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr) 1.25rem;
  column-gap: var(--space-lg);
  align-items: baseline;
  min-height: 48px;
  padding: 0.75rem 0.5rem;
  margin-inline: -0.5rem;
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--fast) var(--ease);
}

.related-list__row::after {
  content: "→";
  justify-self: end;
  color: var(--blue-dark);
  transition: transform var(--fast) var(--ease);
}

.related-list__stage {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.related-list__names {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--blue-dark);
}

.related-list__row:hover { background: var(--surface); }
.related-list__row:hover .related-list__names { color: var(--ink); }
.related-list__row:hover::after { transform: translateX(3px); }
.related-list__row:focus-visible { outline-offset: 0; }

@media (max-width: 640px) {
  .related-list__row {
    grid-template-columns: minmax(0, 1fr) 1.25rem;
    row-gap: 0.125rem;
  }
  .related-list__stage { grid-column: 1; grid-row: 1; }
  .related-list__names { grid-column: 1; grid-row: 2; }
  .related-list__row::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* --- Product groups (chemicals, yarn categories) --- */
.product-group { margin-top: var(--space-2xl); }
.product-group:first-child { margin-top: 0; }

.product-group__title {
  padding-bottom: 0.75rem;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--text);
}

.product-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  column-gap: var(--space-lg);
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule);
}

.product-row__name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.product-row__desc { font-size: 0.9375rem; color: var(--muted); }

@media (max-width: 640px) {
  .product-row { grid-template-columns: 1fr; row-gap: 0.125rem; }
}

/* --- Range-colour variant: "header" --- */
body[data-range-colour="header"] .family__header {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--family, var(--ink));
  color: var(--on-ink);
}

body[data-range-colour="header"] .family__header .kicker { color: rgba(255, 255, 255, 0.82); }
body[data-range-colour="header"] .family__header h2,
body[data-range-colour="header"] .family__header h3 { color: var(--on-ink); }
body[data-range-colour="header"] .family__header .family__lede { color: rgba(255, 255, 255, 0.9); }

@media (min-width: 1024px) {
  body[data-range-colour="header"] .side-index a.is-active {
    color: var(--family, var(--active-family, var(--ink)));
    border-left-color: var(--family, var(--active-family, var(--blue)));
  }
  body[data-range-colour="header"] .side-index a.is-active .side-index__brand { color: inherit; }
}

/* ------------------------------------------------------------
   13. CARDS, STEPS, FEATURE SPLITS
   ------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.card > img:first-child,
.card > picture:first-child {
  width: calc(100% + 3.5rem);
  max-width: none;
  margin: -2rem -1.75rem 0.5rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card > picture:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-grid--yarns { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.card-grid--yarns .card { padding: 1.5rem 1.25rem; }
@media (max-width: 1023px) { .card-grid--yarns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid--yarns { grid-template-columns: 1fr; } }

a.card { color: var(--text); transition: border-color var(--fast) var(--ease); }
a.card:hover { color: var(--text); border-color: var(--rule-strong); }
.card h3 { font-size: 1.3rem; }

.card p { font-size: 0.9375rem; color: var(--muted); }

.card .link-arrow { margin-top: auto; padding-top: 0.5rem; }

/* Card with several destinations (no nested anchors): h3 + sub-line + a row of link-arrows */
.card__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: auto; }
.card__links .link-arrow { margin-top: 0; }

.section--white .card { background: var(--surface); }
.section--surface .card { background: var(--white); }

.section--ink .card { background: rgba(255, 255, 255, 0.04); border-color: var(--on-ink-rule); }

.section--ink .card p { color: var(--on-ink-soft); }

/* R2-01: .explore-row — compact secondary link list under homepage product cards
   ("Also Explore" yarn categories, "More Colour Ranges" dye families).
   Text links with hairlines, not cards: 3 columns desktop, 2 on phones. */
.explore-row { margin-top: var(--space-xl); }
.explore-row__label {
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.explore-row__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.explore-row__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.125rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem 0.75rem 0;
  position: relative;
  border-top: 1px solid var(--rule);
  color: var(--text);
  text-decoration: none;
}
.explore-row__link::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 0.75rem;
  color: var(--blue);
  transition: transform var(--fast) var(--ease);
}
.explore-row__link:hover { color: var(--blue-dark); }
.explore-row__link:hover::after { transform: translateX(3px); }
.explore-row__name { font-weight: 500; }
.explore-row__brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.explore-row__all { margin-top: var(--space-md); }

.section--ink .explore-row__label,
.section--ink .explore-row__brand { color: var(--on-ink-muted); }
.section--ink .explore-row__link { border-top-color: var(--on-ink-rule); color: var(--on-ink); }
.section--ink .explore-row__link::after { color: var(--blue-light); }
.section--ink .explore-row__link:hover { color: var(--blue-light); }

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

/* Worldwide block: short closing line under the body text */
.feature-split__body p.feature-split__tagline:not(.kicker) { font-weight: 500; color: var(--text); }

/* Numbered steps — 01 / 02 / 03 / 04 */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--blue);
}

.step__num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15;
  color: var(--blue-dark);
}

.step h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }

.step p { font-size: 0.9375rem; color: var(--muted); }

.section--ink .step { border-top-color: var(--on-ink-rule); }
.section--ink .step__num { color: var(--blue-light); }
.section--ink .step p { color: var(--on-ink-soft); }

/* R2 batch 03 — Technical Support: supporting line under a step
   (colour-management reference) and the two starting-point routes. */
.step p.step__note {
  margin-top: 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--amber);
  font-size: 0.875rem;
  color: var(--text);
}
.start-routes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.start-routes li { padding-block: 1rem; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; line-height: 1.7; max-width: 68ch; }
.start-routes strong { font-weight: 600; color: var(--text); }

/* Image + text, alternating */
.feature-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.feature-split + .feature-split { margin-top: clamp(3.5rem, 7vw, 6rem); }

.feature-split:nth-of-type(even) .feature-split__media,
.feature-split--reverse .feature-split__media { order: 2; }

.feature-split__media img,
.feature-split__media picture {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-split__media img { filter: saturate(0.88); }

.feature-split__body h2,
.feature-split__body h3 { margin-bottom: var(--space-md); }

.feature-split__body p { margin-bottom: var(--space-md); }
.feature-split__body p:not(.kicker) { color: var(--muted); }
.feature-split__body > :last-child { margin-bottom: 0; }
.section--ink .feature-split__body p:not(.kicker) { color: var(--on-ink-soft); }

@media (max-width: 860px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split:nth-of-type(even) .feature-split__media,
  .feature-split--reverse .feature-split__media { order: 0; }
}

/* ------------------------------------------------------------
   14. CTA BAND & CERTIFICATIONS STRIP
   ------------------------------------------------------------ */
.cta-band {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--white);
  border-top: 1px solid var(--rule);
}

.cta-band > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cta-band > .container > * { grid-column: 1; }

.cta-band > .container > .btn,
.cta-band > .container > .hero__actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}

.cta-band h2 {
  max-width: 34ch;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.25;
}

.cta-band p:not(.kicker) { margin-top: var(--space-md); color: var(--muted); }

.cta-band--ink { background: var(--ink); border-top: 0; }

.cta-band--ink h2 { color: var(--on-ink); }
.cta-band--ink p:not(.kicker) { color: var(--on-ink-soft); }

@media (max-width: 760px) {
  .cta-band > .container { grid-template-columns: 1fr; }

  .cta-band > .container > .btn,
  .cta-band > .container > .hero__actions {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: var(--space-lg);
  }
}

.certs-strip {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.certs-strip__heading {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.certs-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.cert {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}

/* ------------------------------------------------------------
   15. CONTACT FORM
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-card { background: var(--surface); }
.contact-card h2 { margin-bottom: var(--space-md); font-size: clamp(1.4rem, 2vw, 1.75rem); }
.contact-card p { color: var(--text); }





.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  transition: border-color var(--fast) var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 0;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group select {
  padding-right: 2.5rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2352616E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  cursor: pointer;
}

.form-note { font-size: 0.8125rem; color: var(--muted); }
.form-note--privacy { margin-top: 0.75rem; }

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

/* ------------------------------------------------------------
   16. FOOTER — ink-2 with the knit band at its top edge
   ------------------------------------------------------------ */
.footer {
  padding-bottom: var(--space-xl);
  color: var(--on-ink-soft);
  background: var(--ink-2);
}

.footer__knit {
  height: 72px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  background-image: url('/assets/brand/EV_leaf_tile_white_alpha.png');
  background-size: max(6vw, 40px) auto;   /* one stitch column ≈ 85px at 1440 */
  background-repeat: repeat-x;
  opacity: 0.07;
  /* even across the full width; softens only into the footer below */
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
  mask-image: linear-gradient(180deg, #000 30%, transparent);
}

.footer a { color: var(--on-ink-soft); }
.footer a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.logo__img--footer { height: 56px; }

.footer__blurb {
  max-width: 36ch;
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--on-ink-soft);
}

.footer__address {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  font-style: normal;
  line-height: 1.6;
  color: var(--on-ink-muted);
}

.footer__heading {
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ink);
}

.footer__col ul { list-style: none; }

.footer__col li { margin-bottom: 0.625rem; font-size: 0.875rem; }

.footer__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

.footer .certs-strip { border-color: var(--on-ink-rule); }

.footer .certs-strip__heading { color: var(--on-ink-muted); }

.footer .cert { color: var(--on-ink-soft); border-color: rgba(255, 255, 255, 0.22); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: var(--space-lg);
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}

.footer__bottom a { color: var(--on-ink-muted); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer__knit { height: 48px; }
  .logo__img--footer { height: 40px; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__col a { display: inline-block; padding-block: 0.25rem; }
  .footer__bottom { flex-direction: column; }
}

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

.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.photo-credits {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.photo-credits ul { list-style: none; }
.photo-credits li + li { margin-top: 0.25rem; }
.prose .photo-credits__heading,
.photo-credits__heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Focus — keyboard only */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }

.hero :focus-visible,
.section--ink :focus-visible,
.cta-band--ink :focus-visible,
.footer :focus-visible,
.nav:not(.scrolled):not(.nav--open) :focus-visible { outline-color: var(--blue-light); }

/* ------------------------------------------------------------
   18. MOTION & PRINT
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Drawer visibility must flip instantly so the first link can take focus on open. */
  /* The global rule above gives every element a 0.01ms transition on ALL properties, so the
     inherited visibility change would also lag on the links themselves. */
  .nav__links,
  .nav__links * { transition: none !important; }
}

@media print {
  .nav,
  .footer__knit,
  .side-index,
  .section-select,
  .hamburger,
  .mobile-overlay { display: none !important; }

  .hero { padding-top: 2rem !important; background: none; color: var(--text); }
  .hero h1, .hero__title, .hero__lede { color: var(--text); }
  details.family__more > :not(summary) { display: block; }
}


/* ---- Certifications band (logos) — sits above the footer; reused on About ---- */
.certs-band { background: var(--white); border-top: 1px solid var(--rule); padding: var(--space-2xl) 0 var(--space-xl); }
.certs-band__heading { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-lg); }
.certs-band__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-lg) 1.5rem; align-items: flex-start; }
.cert-logo { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 100px; }
.cert-logo img, .cert-logo__text { height: 50px; width: auto; max-width: 100px; object-fit: contain; }
.cert-logo--gots img, .cert-logo--ocs-100 img, .cert-logo--fieo img, .cert-logo--texprocil img { height: 56px; }
.cert-logo--aeo img, .cert-logo--grs img, .cert-logo--matexil img { max-width: 100px; }
.cert-logo__text { display: flex; align-items: center; justify-content: center; font-size: 1.5rem; letter-spacing: 0.08em; color: var(--amber); }
.cert-logo__text--iso { flex-direction: column; font-family: var(--font-heading); font-size: 1.9rem; line-height: 1; letter-spacing: 0.02em; color: var(--ink); }
.cert-logo__text--iso small { font-family: var(--font-body); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; margin-top: 3px; color: var(--muted); }
.cert-logo__label { font-size: 0.6875rem; line-height: 1.3; text-align: center; color: var(--muted); }
.certs-band__members { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-lg) var(--space-2xl); }
.certs-band__members-label { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 1.1rem; min-width: 90px; }
.certs-band__row--members .cert-logo { width: 104px; }
@media (max-width: 640px) {
  .certs-band__row { gap: var(--space-lg) var(--space-lg); justify-content: flex-start; }
  .cert-logo { width: calc(33.333% - var(--space-lg)); }
  .cert-logo img, .cert-logo__text { height: 44px; max-width: 100%; }
  .certs-band__members-label { width: 100%; min-width: 0; padding-top: 0; }
}

/* ---- About: credentials with one-line scope ---- */
/* R2 batch 03 — About: four labelled range rows inside the narrow text column */
.range-list { margin: var(--space-md) 0 var(--space-lg); border-top: 1px solid var(--rule); }
.range-list__row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: var(--space-lg); padding-block: 0.875rem; border-bottom: 1px solid var(--rule); }
.range-list dt { font-weight: 600; font-size: 0.9375rem; line-height: 1.6; }
.range-list dt a { color: var(--blue-dark); text-decoration: none; }
.range-list dt a:hover { text-decoration: underline; }
.range-list dd { margin: 0; font-size: 0.96875rem; line-height: 1.65; color: var(--text); }
.range-list + p { margin-top: 0; }
@media (max-width: 640px) { .range-list__row { grid-template-columns: 1fr; row-gap: 0.25rem; } }
.creds__group { margin-top: var(--space-2xl); }
.creds__group h3 { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--space-md); }
.creds__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.creds__item { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-lg); align-items: center; padding: var(--space-md) 0; border-bottom: 1px solid var(--rule); }
.creds__mark { display: flex; align-items: center; justify-content: center; height: 56px; }
.creds__mark img, .creds__mark .cert-logo__text { height: 48px; width: auto; max-width: 96px; object-fit: contain; }
.creds__body h4 { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; color: var(--text); margin: 0 0 0.15rem; }
.creds__body p { font-size: 0.875rem; color: var(--muted); margin: 0; max-width: 70ch; }
@media (max-width: 640px) { .creds__item { grid-template-columns: 72px 1fr; gap: var(--space-md); } .creds__mark { height: 48px; } .creds__mark img, .creds__mark .cert-logo__text { height: 40px; max-width: 72px; } }

.contact-card__overseas { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--rule); }
.contact-card__overseas h3 { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.4rem; }
.contact-card__overseas p { font-size: 0.9375rem; margin: 0; }

/* Chemicals: caustic-free bleaching as the featured first block */
.family--feature { background: var(--surface); border: 1px solid var(--rule); padding: var(--space-xl); margin-bottom: var(--space-2xl); }
.family--feature .family__header { margin-bottom: var(--space-lg); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.index-layout__content > .family.family--feature { padding: var(--space-xl); border-top: 1px solid var(--rule); }
@media (max-width: 720px) { .card-grid--2 { grid-template-columns: 1fr; } .family--feature, .index-layout__content > .family.family--feature { padding: var(--space-lg); } }
/* R2 batch 03 — two benefit sentences between the intro and the routes */
.family--feature .family__benefits { margin-top: var(--space-md); max-width: 60ch; font-size: 1rem; line-height: 1.6; color: var(--text); }
