/* Maumee Technologies — site styles
   One family (Archivo, variable weight + width). Navy ink, white, cool surface, restrained cyan accent.
   Per-model colours come from the TRESA brochure and are used only as small identifiers. */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0e2a47;
  --ink-2: #1b3b5e;
  --slate: #4a5e73;
  --muted: #586a7d;
  --surface: #eef2f5;
  --surface-2: #e3e9ee;
  --rule: #d5dde4;
  --white: #ffffff;
  --accent: #0a7c91;
  --accent-ink: #075e6e;
  --accent-soft: #e2f2f4;

  --m-crd: #2f5da8;
  --m-ci: #c25a1f;
  --m-h: #a8323a;
  --m-cih: #1f8aa0;
  --m-tl: #2f8a5c;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 4px;
  --r-md: 8px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --step-3: clamp(1.65rem, 1.25rem + 1.6vw, 2.2rem);
  --step-4: clamp(2rem, 1.35rem + 2.9vw, 3.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 108px; font-size: 96.875%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, .h3 { line-height: 1.12; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-stretch: 112%; font-weight: 750; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-stretch: 108%; }
h3, .h3 { font-size: var(--step-1); font-stretch: 104%; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 38em; }
.fineprint { font-size: var(--step--1); color: var(--muted); max-width: 70ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
main:focus { outline: none; }

/* Review markers ---------------------------------------------------------- */
.confirm { display: inline; background: #fff3b0; color: #4a3b00; border: 1px dashed #b38f00; border-radius: 3px; padding: 0 0.35em; font-size: 0.82em; line-height: 1.5; font-stretch: 100%; font-weight: 400; letter-spacing: 0; }
p.confirm { display: block; padding: 0.5em 0.75em; margin: 0.75em 0; }
.review-bar { background: #fff8d6; color: #4a3b00; font-size: var(--step--1); text-align: center; padding: 6px var(--gutter); border-bottom: 1px solid #ecd98a; }
.confirm--inline { font-size: 1em; }

/* Buttons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0.7em 1.35em; border-radius: var(--r-sm); font: inherit; font-weight: 650; font-stretch: 104%; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--sm { min-height: 40px; padding: 0.5em 1em; font-size: 0.9375rem; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.textlink { font-weight: 650; }

/* Header -------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand img { width: 270px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a:not(.btn) { display: block; padding: 10px 11px; font-size: 0.97rem; color: var(--ink); text-decoration: none; font-weight: 550; border-radius: var(--r-sm); }
.site-nav a:not(.btn):hover { background: var(--surface); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .brand img { width: 210px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; background: none; border: 1px solid var(--rule); border-radius: var(--r-sm); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ''; }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 8px; padding: 8px var(--gutter) 20px; box-shadow: 0 12px 24px rgba(14,42,71,.08); }
  .js .site-nav.is-open { display: flex; }
  .no-js .site-nav { display: flex; position: static; box-shadow: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--surface-2); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .site-header__inner { position: relative; flex-wrap: wrap; }
}

/* Breadcrumbs ---------------------------------------------------------------- */
.crumbs ol { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--step--1); color: var(--muted); }
.crumbs li + li::before { content: '/'; margin: 0 6px 0 2px; color: var(--rule); }
.crumbs a { color: var(--muted); }

/* Sections ------------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--surface { background: var(--surface); }
.section__head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-head .lead { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.two-col--wide { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 860px) { .two-col, .two-col--wide { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 0.45em 0 0.45em 1.75em; border-bottom: 1px solid var(--rule); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.95em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Hero + line-up (the signature element) -------------------------------------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(var(--white) 0 55%, var(--surface) 55% 100%); }
.hero__text { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(20px, 3vw, 36px); }
.hero h1 { margin: 0; max-width: 12.5em; }
.hero__aside .lead { margin: 0; }
@media (max-width: 860px) { .hero__text { grid-template-columns: 1fr; } .hero { background: linear-gradient(var(--white) 0 70%, var(--surface) 70% 100%); } }

.lineup { container-type: inline-size; --u: min(0.19px, calc(100cqw / var(--total))); }
.lineup--compact { --u: min(0.13px, calc(100cqw / var(--total))); margin-top: clamp(20px, 4vw, 40px); }
.lineup__list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-content: start; column-gap: calc(var(--gap) * var(--u)); }
.lineup__ruler { grid-row: 1; position: relative; width: calc(300 * var(--u)); min-width: 30px; height: calc(2000 * var(--u)); align-self: end; border-right: 1px solid var(--slate); }
.lineup__ruler span { position: absolute; right: 0; bottom: calc(var(--t) * var(--u)); transform: translateY(50%); padding-right: 8px; font-size: 0.75rem; color: var(--muted); line-height: 1; white-space: nowrap; }
.lineup__ruler span::after { content: ''; position: absolute; right: -1px; top: 50%; width: 6px; height: 1px; background: var(--slate); }
.lineup__item { grid-row: span 2; display: grid; grid-template-rows: subgrid; }
.lineup__link { grid-row: span 2; display: grid; grid-template-rows: subgrid; text-decoration: none; color: var(--ink); }
.lineup__figure { align-self: end; display: block; width: calc(var(--vw) * var(--u)); height: calc(var(--vh) * var(--u)); }
.lineup__figure img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; transition: transform .2s ease; transform-origin: bottom center; }
.lineup__meta { display: block; border-top: 3px solid var(--m); padding-top: 10px; margin-top: 0; min-width: calc(var(--cw, var(--vw)) * var(--u)); width: max-content; max-width: max(calc(var(--cw, var(--vw)) * var(--u)), 8.5em); }
.lineup__code { display: block; font-size: clamp(0.95rem, 0.55rem + 1.6vw, 1.85rem); font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: 0.01em; }
.lineup__app { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--slate); line-height: 1.3; }
.lineup__dims { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); }
.lineup__link:hover .lineup__code, .lineup__link:focus-visible .lineup__code { color: var(--m); }
@media (prefers-reduced-motion: no-preference) { .lineup__link:hover img { transform: translateY(-4px); } }
.lineup__scale { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 10px; position: relative; font-size: var(--step--1); color: var(--muted); }
.lineup__scale::before { content: ''; position: absolute; left: 0; right: 8px; top: 0; height: 1px; background: var(--slate); }
.lineup__scale::after { content: ''; position: absolute; right: 0; top: -4px; border-left: 9px solid var(--slate); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.lineup__note { font-size: 0.75rem; color: var(--muted); margin: 6px 0 0; }
.lineup--compact .lineup__app, .lineup--compact .lineup__note { display: none; }
@media (max-width: 760px) {
  .lineup__app { display: none; }
  .lineup__meta { max-width: none; }
  .lineup__code { font-size: 0.95rem; }
  .lineup__dims { font-size: 0.6875rem; white-space: nowrap; }
  .lineup__scale span:nth-child(2) { display: none; }
}
@media (max-width: 480px) { .lineup__dims { display: none; } .lineup__ruler span { font-size: 0.625rem; padding-right: 4px; } }

/* Range rows ------------------------------------------------------------------ */
.range { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.range-row { display: grid; grid-template-columns: 110px minmax(180px, 1.1fr) 2.2fr auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); position: relative; }
.range-row::before { content: ''; position: absolute; left: -16px; top: 20px; bottom: 20px; width: 3px; background: var(--m); border-radius: 2px; }
.range-row__img { height: 84px; display: flex; align-items: center; justify-content: center; }
.range-row__img img { max-height: 84px; width: auto; }
.range-row__name h3 { margin: 0 0 4px; font-stretch: 112%; }
.range-row__name h3 a { color: var(--ink); text-decoration: none; }
.range-row__name h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.range-row__name p { margin: 0; color: var(--slate); font-size: 0.95rem; line-height: 1.4; }
.range-row__facts { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; margin: 0; }
.range-row__facts dt, .p-card__facts dt { font-size: 0.8125rem; color: var(--muted); }
.range-row__facts dd, .p-card__facts dd { margin: 0; font-weight: 600; line-height: 1.35; }
.range-row__go { font-weight: 650; white-space: nowrap; }
@media (max-width: 1000px) {
  .range-row { grid-template-columns: 88px 1fr; row-gap: 12px; }
  .range-row::before { left: -10px; }
  .range-row__facts, .range-row__go { grid-column: 2; }
  .range-row__img { height: 72px; } .range-row__img img { max-height: 72px; }
}
@media (max-width: 560px) { .range-row__facts { grid-template-columns: 1fr; gap: 8px; } .range-row::before { left: -8px; } }

/* Finder ----------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split__intro p { color: var(--slate); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.finder { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); }
.finder li + li { border-top: 1px solid var(--rule); }
.finder a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; text-decoration: none; color: var(--ink); }
.finder a:hover { background: var(--accent-soft); }
.finder__q { line-height: 1.4; }
.finder__a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-stretch: 110%; white-space: nowrap; color: var(--ink); }
.swatch { display: inline-block; width: 10px; height: 10px; background: var(--m); border-radius: 2px; margin-right: 8px; flex: none; }
.finder__a .swatch { margin-right: 0; }
@media (max-width: 520px) { .finder a { grid-template-columns: 1fr; gap: 6px; } }

/* Why ------------------------------------------------------------------------- */
.why { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why__img { margin: 0; }
.why__img img { border-radius: var(--r-md); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why__img img { aspect-ratio: 4 / 3; } }

/* Process sequence + technologies -------------------------------------------- */
.sequence { list-style: none; padding: 0; margin: 0 0 clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.sequence li { counter-increment: s; padding: 0 20px 0 0; position: relative; }
.sequence li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px; position: relative; z-index: 1; }
.sequence li:not(:last-child)::after { content: ''; position: absolute; top: 20px; left: 40px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--slate) 0 6px, transparent 6px 12px); }
.sequence h3 { margin-bottom: 0.3em; }
.sequence p { color: var(--slate); font-size: 0.975rem; margin: 0; }
@media (max-width: 760px) {
  .sequence { grid-template-columns: 1fr; gap: 18px; }
  .sequence li { padding: 0 0 0 58px; }
  .sequence li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .sequence li:not(:last-child)::after { left: 19px; top: 44px; bottom: -18px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--slate) 0 6px, transparent 6px 12px); }
}
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--r-md); background: #fff; }
.tech { padding: 26px 26px 20px; }
.tech + .tech { border-left: 1px solid var(--rule); }
.tech p { color: var(--slate); }
.tech__models { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.tech__models a { display: inline-flex; align-items: center; font-weight: 650; color: var(--ink); }
@media (max-width: 860px) { .tech-grid { grid-template-columns: 1fr; } .tech + .tech { border-left: 0; border-top: 1px solid var(--rule); } }
.tech-grid + .fineprint { margin-top: 20px; }

/* Company --------------------------------------------------------------------- */
.company { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.company__imgs { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: end; }
.company__imgs img { border-radius: var(--r-md); width: 100%; object-fit: cover; }
.company__a { aspect-ratio: 4 / 5; }
.company__b { aspect-ratio: 3 / 4; }
@media (max-width: 860px) { .company { grid-template-columns: 1fr; } }

/* Downloads ------------------------------------------------------------------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.dl-card { display: grid; grid-template-columns: 96px 1fr; gap: 18px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 18px; }
.dl-card__thumb img { border: 1px solid var(--rule); border-radius: 3px; width: 96px; height: auto; }
.dl-card h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.dl-card h3 a { color: var(--ink); text-decoration: none; }
.dl-card h3 a:hover { text-decoration: underline; }
.dl-card p { font-size: 0.94rem; color: var(--slate); margin-bottom: 0.5em; }
.dl-card__for { font-weight: 600; color: var(--ink) !important; }
.dl-card__meta { font-size: var(--step--1) !important; color: var(--muted) !important; }
.dl-card .btn { margin-top: 4px; }
@media (max-width: 400px) { .dl-grid { grid-template-columns: 1fr; } .dl-card { grid-template-columns: 72px 1fr; } .dl-card__thumb img { width: 72px; } }

/* Contact band ---------------------------------------------------------------- */
.band--ink { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.band__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.band--ink h2 { color: #fff; }
.band--ink p { color: #d3dde7; max-width: 42em; margin: 0; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.band--ink :focus-visible { outline-color: #7fd6e3; }
@media (max-width: 860px) { .band__inner { grid-template-columns: 1fr; } .band__actions { justify-content: flex-start; } }

/* Footer ---------------------------------------------------------------------- */
.site-footer { background: #0a2038; color: #c9d4df; padding: 56px 0 28px; font-size: 0.95rem; }
.site-footer a { color: #e6eef5; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.site-footer__h { font-size: 1rem; color: #fff; font-stretch: 104%; margin-bottom: 0.8em; }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 6px; }
.logo-chip { display: inline-block; background: #fff; padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; }
.logo-chip img { width: 230px; height: auto; }
.site-footer__base { border-top: 1px solid #22405f; margin-top: 40px; padding-top: 20px; font-size: var(--step--1); color: #9fb2c4; }
.site-footer__base p { margin: 0 0 6px; }
.site-footer :focus-visible { outline-color: #7fd6e3; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Products overview ------------------------------------------------------------ */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.p-card { border: 1px solid var(--rule); border-top: 4px solid var(--m); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; }
.p-card__img { display: flex; align-items: center; justify-content: center; height: 200px; background: var(--surface); border-radius: var(--r-sm); margin-bottom: 18px; padding: 16px; }
.p-card__img img { max-height: 168px; width: auto; }
.p-card__scope { font-size: var(--step--1); color: var(--muted); margin: 0 0 4px; }
.p-card h2 { font-size: 1.6rem; font-stretch: 114%; margin-bottom: 4px; }
.p-card h2 a { color: var(--ink); text-decoration: none; }
.p-card h2 a:hover { text-decoration: underline; }
.p-card__app { font-weight: 600; color: var(--ink-2); }
.p-card > p:not(.p-card__app):not(.p-card__scope) { color: var(--slate); font-size: 0.97rem; }
.p-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 20px; padding-top: 14px; border-top: 1px solid var(--rule); }
.p-card .btn { margin-top: auto; align-self: flex-start; }

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-md); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.97rem; }
.compare caption { text-align: left; font-size: var(--step-2); font-weight: 700; font-stretch: 108%; padding: 20px 20px 8px; }
.compare th, .compare td { text-align: left; padding: 14px 20px; border-top: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-size: 0.8125rem; color: var(--muted); font-weight: 600; border-top: 0; }
.compare tbody th a { display: inline-flex; align-items: center; color: var(--ink); font-weight: 700; white-space: nowrap; }
.table-scroll + .fineprint { margin-top: 14px; }

/* Product page ----------------------------------------------------------------- */
.p-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.p-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.p-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); margin: 18px 0 8px; }
.p-hero__headline { font-size: var(--step-1); font-weight: 600; color: var(--ink-2); line-height: 1.4; max-width: 30em; }
.p-hero__text > p:not(.p-hero__headline) { color: var(--slate); max-width: 38em; }
.p-hero__img { background: var(--surface); border-radius: var(--r-md); padding: clamp(20px, 4vw, 48px); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; }
.p-hero__img img { max-height: 440px; width: auto; }
.p-hero__img .confirm { margin-top: 16px; }
@media (max-width: 860px) { .p-hero__grid { grid-template-columns: 1fr; } .p-hero__img { order: -1; min-height: 0; } .p-hero__img img { max-height: 280px; } }

.plate { display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; line-height: 1; }
.plate__series { background: var(--ink); color: #fff; padding: 8px 10px; font-weight: 700; font-stretch: 125%; font-size: 0.9rem; letter-spacing: 0.04em; display: flex; align-items: center; }
.plate__code { padding: 6px 14px 6px 12px; font-weight: 800; font-stretch: 125%; font-size: 1.25rem; color: var(--ink); border-left: 6px solid var(--m); display: flex; align-items: center; }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.figures div { padding: 14px 12px 14px 0; }
.figures div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.figures dt { font-size: 0.8125rem; color: var(--muted); order: 2; }
.figures dd { margin: 0 0 2px; font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.55rem); font-weight: 750; font-stretch: 108%; line-height: 1.15; white-space: nowrap; }
.figures div { display: flex; flex-direction: column-reverse; }
@media (max-width: 560px) { .figures { grid-template-columns: 1fr 1fr; } .figures div:nth-child(3) { border-left: 0; padding-left: 0; } .figures div:nth-child(n+3) { border-top: 1px solid var(--rule); } }

.subnav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; position: sticky; top: 89px; z-index: 40; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 14px 14px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.subnav a:hover { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 960px) { .subnav { position: static; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; counter-reset: st; }
.steps li { counter-increment: st; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.steps p { margin: 0; color: var(--slate); font-size: 0.95rem; }

.specs { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.specs th { font-weight: 500; color: var(--slate); width: 44%; padding-right: 16px; }
.specs td { font-weight: 650; }
.specs tr:first-child th, .specs tr:first-child td { border-top: 2px solid var(--ink); }
@media (max-width: 480px) { .specs th, .specs td { display: block; width: 100%; } .specs th { padding-bottom: 0; border-bottom: 0; } .specs tr:first-child td { border-top: 0; } }

.side-stack { display: grid; gap: 20px; align-content: start; }
.panel { border: 1px solid var(--rule); border-radius: var(--r-md); padding: 22px; background: #fff; }
.panel--plain { background: var(--surface); border-color: transparent; }
.panel p:last-child { margin-bottom: 0; }
.chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--rule); background: var(--surface); padding: 4px 10px; border-radius: 999px; font-size: 0.9rem; font-weight: 550; }

.flow { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 28px; align-items: center; margin-top: 8px; }
.flow__node { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 18px 14px; text-align: center; position: relative; }
.flow__node strong { display: block; font-stretch: 110%; }
.flow__node span { font-size: var(--step--1); color: var(--muted); }
.flow__node--main { border: 2px solid var(--m, var(--ink)); }
.flow__node:not(:last-child)::after { content: ''; position: absolute; right: -24px; top: 50%; width: 20px; height: 2px; background: var(--slate); }
.flow__node:not(:last-child)::before { content: ''; position: absolute; right: -26px; top: calc(50% - 4px); border-left: 7px solid var(--slate); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow__node:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -22px; width: 2px; height: 18px; }
  .flow__node:not(:last-child)::before { right: auto; left: calc(50% - 4px); top: auto; bottom: -26px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--slate); border-bottom: 0; }
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 560px)); gap: 20px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--r-md); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.related__item { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--rule); border-left: 4px solid var(--m); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.related__item:hover { background: var(--surface); }
.related__img { height: 64px; display: flex; align-items: center; justify-content: center; }
.related__img img { max-height: 64px; width: auto; }
.related__item strong { display: block; font-stretch: 110%; }
.related__item span span { font-size: 0.9rem; color: var(--slate); line-height: 1.35; display: block; }

/* About -------------------------------------------------------------------------- */
.about-hero img { border-radius: var(--r-md); width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 12px; }
.partner { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 26px; }
.partner__role { color: var(--accent-ink); font-weight: 600; }
.partner address { color: var(--slate); margin-top: 12px; }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } }
.facility { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.facility figure { margin: 0; }
.facility img { border-radius: var(--r-md); width: 100%; object-fit: cover; }
.facility__a { grid-row: span 2; }
.facility__a img { aspect-ratio: 4 / 3.3; height: calc(100% - 32px); }
.facility__b, .facility__c, .facility__d { }
.facility__b img, .facility__c img, .facility__d img { aspect-ratio: 4 / 3; }
.facility__b { grid-row: span 2; } .facility__b img { aspect-ratio: auto; height: calc(100% - 32px); }
@media (max-width: 860px) {
  .facility { grid-template-columns: 1fr 1fr; }
  .facility__a { grid-column: 1 / -1; grid-row: auto; } .facility__a img { height: auto; aspect-ratio: 4 / 3; }
  .facility__b { grid-row: auto; } .facility__b img { height: auto; aspect-ratio: 4 / 3; }
}

/* Contact -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__aside { display: grid; gap: 16px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.field { margin-bottom: 14px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: #a8323a; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #94a5b6; border-radius: var(--r-sm); padding: 11px 12px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid rgba(10,124,145,.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #a8323a; border-width: 2px; }
.field__hint { font-size: var(--step--1); color: var(--muted); margin: 6px 0 0; }
.field__err { font-size: var(--step--1); color: #9b2129; font-weight: 600; margin: 6px 0 0; }
.field__err:empty { display: none; }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.field--check label { font-weight: 400; margin: 0; }
.field--check .field__err { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status:empty { display: none; }
.form__status { border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 20px; border: 1px solid; }
.form__status--error { background: #fdf0f0; border-color: #e3b3b6; color: #6d151b; }
.form__status--ok { background: #ecf7f1; border-color: #a9d6bc; color: #134a2c; }
.form__status--info { background: #fff8d6; border-color: #ecd98a; color: #4a3b00; }
.form__status h2 { font-size: 1.1rem; margin: 0 0 0.3em; }
.form__status p { margin: 0; }
.form__status ul { margin: 6px 0 0; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.prose h2 { font-size: var(--step-2); margin-top: 1.4em; }
.prose > * { max-width: 68ch; }
.pending-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.page-head--404 { padding-bottom: clamp(48px, 7vw, 96px); }

@media print {
  .site-header, .subnav, .band--ink, .site-footer, .review-bar { display: none; }
  a { color: inherit; }
}

/* ---- Project 2 additions ------------------------------------------------------ */
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #d3dde7; }
.section--ink :focus-visible { outline-color: #7fd6e3; }

.challenge { display: grid; grid-template-columns: 1.15fr 0.6fr 0.9fr; gap: clamp(16px, 3vw, 32px); align-items: end; }
.challenge__img { margin: 0; }
.challenge__img img { width: 100%; border-radius: var(--r-md); object-fit: cover; }
.challenge__img--a img { aspect-ratio: 3 / 4; }
.challenge__img--b img { aspect-ratio: 4 / 3.4; }
.burdens { list-style: none; padding: 0; margin: 1.2em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.burdens li { background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 960px) { .challenge { grid-template-columns: 1fr 1fr; } .challenge__text { grid-column: 1 / -1; } }
.tanks { margin-top: clamp(32px, 5vw, 56px); padding-top: clamp(24px, 4vw, 40px); border-top: 1px solid var(--rule); }
.tanks h3 { margin-bottom: 1em; }
.sequence--small { margin-bottom: 0; }
.sequence--small h4 { font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.35; }

.patent { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center; margin-top: 28px; padding: 24px; border: 1px solid var(--rule); border-radius: var(--r-md); }
.patent__img { margin: 0; background: #fff; }
.patent__img img { width: 140px; height: auto; }
.patent p { color: var(--slate); max-width: 62ch; }
.patent p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .patent { grid-template-columns: 90px 1fr; gap: 16px; padding: 16px; } .patent__img img { width: 90px; } }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.benefits li { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); }
.benefits li:not(:nth-child(4n+1)) { padding-left: 20px; border-left: 1px solid var(--rule); }
.benefits h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.benefits p { margin: 0; color: var(--slate); font-size: 0.95rem; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } .benefits li { padding-left: 0 !important; border-left: 0 !important; } .benefits li:nth-child(even) { padding-left: 20px !important; border-left: 1px solid var(--rule) !important; } }
@media (max-width: 480px) { .benefits { grid-template-columns: 1fr; } .benefits li:nth-child(even) { padding-left: 0 !important; border-left: 0 !important; } }

.kpis { margin: 0; display: grid; gap: 14px; }
.kpi { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 6px; align-items: baseline; }
.kpi dt { font-weight: 600; }
.kpi dd { margin: 0; }
.kpi__val { font-size: 1.35rem; font-weight: 750; font-stretch: 108%; }
.kpi__lim { font-size: var(--step--1); color: #b9c8d6; }
.kpi__bar { grid-column: 1 / -1; height: 6px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.kpi__bar span { display: block; height: 100%; background: #6fd0c0; border-radius: 3px; }

.ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ops figure { margin: 0; }
.ops img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); }
@media (max-width: 760px) { .ops { grid-template-columns: 1fr 1fr; } }

.etv { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; border: 1px solid var(--rule); border-radius: var(--r-md); padding: clamp(20px, 3vw, 36px); }
.etv--noimg { grid-template-columns: 1fr; }
.etv__img { margin: 0; }
.etv__img img { width: 200px; box-shadow: 0 2px 10px rgba(14,42,71,.12); }
.etv p { color: var(--slate); max-width: 62ch; }
@media (max-width: 640px) { .etv { grid-template-columns: 1fr; } .etv__img img { width: 160px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 24px; margin: 18px 0 0; }
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; }
.facts--panel { grid-template-columns: 1fr; background: var(--surface); padding: 22px; border-radius: var(--r-md); margin: 0; align-self: start; }
.facts--inline { margin-top: 8px; }

.shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shop figure { margin: 0; }
.shop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
@media (max-width: 760px) { .shop { grid-template-columns: 1fr 1fr; } }

/* Compatibility */
.filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 16px; align-items: end; padding: 20px; background: var(--surface); border-radius: var(--r-md); margin-bottom: 20px; }
.filters .field { margin: 0; }
.filters input[type="search"] { width: 100%; font: inherit; font-size: 1rem; border: 1px solid #94a5b6; border-radius: var(--r-sm); padding: 11px 12px; min-height: 48px; background: #fff; color: var(--ink); }
.filters__count { margin: 0 0 12px; font-weight: 600; white-space: nowrap; }
.no-js .filters { display: none; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } .filters .field:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--step--1); color: var(--slate); }
.legend li { display: flex; align-items: center; gap: 8px; }
.fit { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 0.8125rem; font-weight: 650; white-space: nowrap; line-height: 1.5; }
.fit--direct { background: #dff1e7; color: #155c35; }
.fit--filtration, .fit--dilution, .fit--pump { background: #fff1d6; color: #6b4600; }
.fit--no { background: transparent; color: #8a97a5; font-weight: 500; }
.mfr { margin-bottom: clamp(32px, 5vw, 52px); }
.mfr__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 12px; }
.mfr__head h2 { font-size: var(--step-2); margin: 0; }
.mfr__head p { margin: 0; color: var(--slate); font-size: 0.95rem; }
.compat { width: 100%; border-collapse: collapse; min-width: 980px; font-size: 0.9rem; }
.compat th, .compat td { padding: 10px 10px; border-top: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.compat thead th { font-size: 0.78rem; color: var(--muted); font-weight: 600; border-top: 0; padding-top: 12px; }
.compat thead tr:first-child th { padding-bottom: 2px; }
.compat thead th a { color: var(--ink); font-weight: 750; font-stretch: 112%; font-size: 0.85rem; }
.compat tbody th { font-weight: 650; white-space: nowrap; }
.compat td:nth-child(n+3):nth-child(-n+7) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare--tight { min-width: 640px; }
.compare--tight th[scope="rowgroup"] { font-weight: 700; vertical-align: top; }
.empty { padding: 20px; background: var(--surface); border-radius: var(--r-md); }
.notes { margin-top: 12px; }
.filtered-out { display: none; }

/* Results */
.results { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
.results th, .results td { padding: 12px 14px; border-top: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.results thead th { font-size: 0.8125rem; color: var(--muted); font-weight: 600; border-top: 0; }
.results tbody th { font-weight: 600; }
.bar { display: inline-block; vertical-align: middle; width: 120px; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.muted { color: var(--muted); font-size: 0.875rem; }
.section--ink .confirm, .section--ink p.confirm { color: #4a3b00; }

.filters .field { display: flex; flex-direction: column; gap: 6px; }
.filters .field label { margin: 0; }
.filters select, .filters input[type="search"] { width: 100%; min-width: 0; }
.filters select { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #94a5b6; border-radius: var(--r-sm); padding: 11px 12px; min-height: 48px; }
.fit--no { color: #8a97a5; font-size: 1rem; padding: 0 8px; }
.compat { min-width: 900px; }
h1 .confirm, h2 .confirm, h3 .confirm { font-size: 0.8125rem; font-weight: 400; font-stretch: 100%; vertical-align: middle; letter-spacing: 0; line-height: 1.4; }
.table-scroll { position: relative; } .filters .field label { text-align: left; }
.section-intro { color: var(--slate); max-width: 62ch; margin-bottom: 20px; }

/* ---- Project 2, round 3 ---------------------------------------------------- */
/* Width bar under each line-up unit: real length L at the same scale as the height ruler */
.lineup__meta { border-top: 0; padding-top: 0; }
.lineup__wbar { display: block; position: relative; width: calc(var(--l) * var(--u)); height: 3px; background: var(--m); margin: 0 0 10px; border-radius: 1px; }
.lineup__wbar::before, .lineup__wbar::after { content: ''; position: absolute; top: -4px; width: 2px; height: 11px; background: var(--m); }
.lineup__wbar::before { left: 0; } .lineup__wbar::after { right: 0; }
.lineup__list { border-bottom: 0; }

/* Product dimension drawing */
.dims { margin: 0; }
.dims svg { width: 100%; height: auto; display: block; color: var(--ink); font-family: var(--font); font-size: 12px; }
.dims .box { fill: var(--surface); stroke: var(--m, var(--ink)); stroke-width: 2; }
.dims .box--side { fill: var(--surface-2); }
.dims .ground { stroke: var(--slate); stroke-width: 1; }
.dims .dl { stroke: var(--slate); stroke-width: 1; }
.dims text { fill: var(--ink); font-weight: 600; }
.dims .tag { fill: var(--muted); font-weight: 500; font-size: 11px; }
.dims figcaption { margin-top: 6px; }

/* Additional challenge photos */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 20px; }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(3, 1fr); } .strip figure:nth-child(n+4) { display: none; } }

/* Company photo (outside, with signboard) */
.company__photo { margin: 0; }
.company__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }

/* About: outside views */
.facility-out { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-top: 16px; }
.facility-out figure { margin: 0; }
.facility-out img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--r-md); }
@media (max-width: 760px) { .facility-out { grid-template-columns: 1fr 1fr; } .facility-out { grid-template-columns: 1fr; } .facility-out img { height: 220px; } }
.shop { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .shop { grid-template-columns: repeat(2, 1fr); } }

/* ---- Water & molecule artwork (same family as the TRESA datasheets) ---------- */
/* Hero: artwork top-right, washed to white on the left so the headline stays crisp */
.hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 40%, rgba(255,255,255,.55) 56%, rgba(255,255,255,.4) 100%),
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,.65) 75%, rgba(255,255,255,.45) 100%),
    url('../img/bg-water-top-1600.webp') right 35% / cover no-repeat,
    var(--white);
}
@media (max-width: 860px) {
  .hero { background:
    linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 55%, rgba(238,242,245,.94) 100%),
    url('../img/bg-water-top-1000.webp') right top / cover no-repeat, var(--white); }
}

/* Inner page headers: artwork fades in from the right */
.page-head { position: relative; isolation: isolate; overflow: hidden; }
.page-head::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url('../img/bg-water-top-1600.webp') right 20% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 62%, rgba(0,0,0,.5) 85%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 62%, rgba(0,0,0,.5) 85%, #000 100%);
  opacity: .45;
}

/* Product image panel: the datasheet background behind the unit */
.p-hero__img {
  background:
    linear-gradient(180deg, rgba(255,255,255,.6), rgba(238,242,245,.75)),
    url('../img/bg-water-bottom-1000.webp') center / cover no-repeat,
    var(--surface);
}
.p-hero__img img { filter: drop-shadow(0 14px 18px rgba(14,42,71,.18)); }

/* Contact band: artwork glows faintly through the navy */
.band--ink { position: relative; isolation: isolate; overflow: hidden; }
.band--ink::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url('../img/bg-water-bottom-1600.webp') right center / cover no-repeat;
  mix-blend-mode: soft-light; opacity: .3;
}

/* Benefits section: light artwork on the left edge */
.section--surface.section--art { background:
  linear-gradient(90deg, rgba(238,242,245,.7) 0%, rgba(238,242,245,.97) 30%, var(--surface) 100%),
  url('../img/bg-water-full-800.webp') left center / auto 120% no-repeat, var(--surface); }
@media (max-width: 760px) { .section--surface.section--art { background: var(--surface); } }

@media print { .hero, .p-hero__img, .page-head::before, .band--ink::before { background: none !important; } }
@media (max-width: 760px) { .lineup__meta { min-width: 0; width: auto; } .lineup__code { white-space: nowrap; } .lineup__list { column-gap: calc(var(--gap) * var(--u) * 0.8); } }
/* label text never widens a line-up column: columns are set by the to-scale image and length bar */
.lineup__meta { contain: inline-size; width: 100%; min-width: 0; max-width: none; }
.lineup__app { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 1000px) { .lineup__app { display: none; } }
.lineup__app { overflow-wrap: normal; hyphens: none; }

/* Contact page layout */
.contact { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.form { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: clamp(20px, 3vw, 36px); }
.form fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.form legend { font-size: 1.1rem; font-weight: 700; font-stretch: 104%; padding: 0; margin-bottom: 14px; }
.form fieldset + fieldset { border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 8px; }
.form__grid { gap: 6px 22px; }
.form .field { margin-bottom: 16px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.form__actions .fineprint { margin: 0; }
.contact__aside { position: sticky; top: 100px; }
.contact__aside .panel p { margin-bottom: 0.6em; }
.contact__aside dl { margin: 0; display: grid; gap: 16px; }
.contact__aside dt { font-weight: 700; }
.contact__aside dd { margin: 4px 0 0; color: var(--slate); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__aside { position: static; } }

/* Relative thumbnail sizes (--ts set per product) */
.range-row__img img { max-height: calc(84px * var(--ts, 1)); max-width: calc(100% * var(--ts, 1)); }
.range-row__img { align-items: flex-end; }
@media (max-width: 1000px) { .range-row__img img { max-height: calc(72px * var(--ts, 1)); } }
.p-card__img { align-items: flex-end; }
.p-card__img img { max-height: calc(168px * var(--ts, 1)); max-width: calc(100% * var(--ts, 1)); }
.related__img { align-items: flex-end; }
.related__img img { max-height: calc(64px * var(--ts, 1)); max-width: calc(100% * var(--ts, 1)); }
/* ETV badge */
.etv { grid-template-columns: 170px 1fr 170px; }
.etv__badge-img { width: 160px; height: auto; filter: drop-shadow(0 8px 14px rgba(14,42,71,.18)); }
.etv__img img { width: 170px; }
@media (max-width: 860px) { .etv { grid-template-columns: 120px 1fr; } .etv__badge-img { width: 110px; } .etv__img { grid-column: 1 / -1; } }
@media (max-width: 520px) { .etv { grid-template-columns: 1fr; } }
.etv-mini { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; }
.etv-mini__badge { width: 72px; height: auto; }

@media (max-width: 380px) { .brand img { width: 180px; } }
.contact__aside { top: 112px; }

/* Image protection (deterrent): no drag-to-desktop, no iOS/Android long-press save menu, no selection */
img { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* TRESA TL additions */
.aims { background: var(--ink); color: #fff; }
.aims__list { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.aims__list li { padding: 6px 24px; color: #d3dde7; font-size: 0.95rem; }
.aims__list li + li { border-left: 1px solid #2b4a6b; }
.aims__list strong { display: block; color: #fff; font-size: 1.02rem; }
@media (max-width: 760px) { .aims__list { grid-template-columns: 1fr; } .aims__list li + li { border-left: 0; border-top: 1px solid #2b4a6b; } .aims__list li { padding: 10px 0; } }
.principle { margin-top: clamp(28px, 4vw, 44px); background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: clamp(20px, 3vw, 32px); }
.principle > p { color: var(--slate); max-width: 70ch; }
.reactions { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: r; }
.reactions li { counter-increment: r; border-top: 3px solid var(--m-tl); padding-top: 14px; }
.reactions h4 { margin: 0 0 6px; font-size: 1rem; }
.reactions h4::before { content: counter(r) '. '; color: var(--m-tl); }
.reactions p { color: var(--slate); font-size: 0.93rem; margin: 0 0 10px; }
.reaction { display: inline-block; background: var(--surface); border-radius: var(--r-sm); padding: 6px 10px; font-weight: 650; color: var(--ink) !important; }
@media (max-width: 860px) { .reactions { grid-template-columns: 1fr; } }
.ga { margin: 16px 0 0; border-top: 1px solid var(--rule); padding-top: 14px; }
.ga img { width: 100%; height: auto; background: #fff; }
.oxid { min-width: 600px; }
.oxid th { width: 30%; font-weight: 700; }
.oxid td { color: var(--slate); }
.gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .is-portrait img { aspect-ratio: 3 / 4; }

/* Knowledge Center + FAQs */
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.k-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; }
.k-card h3 { font-size: 1.08rem; margin-bottom: 0.5em; }
.k-card h3 a { color: var(--ink); text-decoration: none; }
.k-card h3 a:hover { text-decoration: underline; color: var(--accent-ink); }
.k-card p { color: var(--slate); font-size: 0.94rem; }
.k-card__for { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 0.82rem !important; font-weight: 600; color: var(--ink) !important; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.k-sep { display: inline-block; width: 14px; }
.faq > * { max-width: 900px; }
.faq__list { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 650; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ''; position: absolute; right: 8px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
.faq__item[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq__item summary:hover { color: var(--accent-ink); }
.faq__item p { margin: 0 0 18px; color: var(--slate); max-width: 72ch; }
.article__kicker { font-weight: 650; color: var(--accent-ink); margin-bottom: 6px; }
.article .page-head h1 { font-size: var(--step-3); max-width: 24em; }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(48px, 6vw, 80px); }
.article__body h2 { font-size: var(--step-2); margin-top: 1.5em; }
.article__body h2:first-child { margin-top: 0.5em; }
.article__body ol { padding-left: 1.3em; }
.article__body ol li { margin-bottom: 0.5em; }
.article__body p, .article__body li { color: var(--ink-2); }
.article__aside { position: sticky; top: 110px; }
.article__products { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.article__products a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 8px; border: 1px solid var(--rule); border-left: 4px solid var(--m); border-radius: var(--r-sm); }
.article__products a:hover { background: var(--surface); }
.article__products .related__img { height: 52px; }
.article__products .related__img img { max-height: calc(52px * var(--ts, 1)); }
.article__products strong { display: block; }
.article__products span span { font-size: 0.85rem; color: var(--slate); }
@media (max-width: 900px) { .article__grid { grid-template-columns: 1fr; } .article__aside { position: static; } }
.k-model { white-space: nowrap; display: inline-flex; align-items: center; }
.motto { color: #fff !important; font-weight: 650; font-stretch: 106%; font-size: 1.05rem; line-height: 1.4; margin-bottom: 8px; max-width: 22em; }

/* "See how TRESA works" video */
.video-sec { background: #fff; padding-bottom: clamp(64px, 9vw, 110px); }
.video-sec__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.video-sec__text p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; }
.video-frame { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 60px rgba(14,42,71,.22); border: 4px solid var(--ink); aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-sec__sound[aria-pressed="false"] .wave { opacity: .35; }
@media (max-width: 860px) { .video-sec__grid { grid-template-columns: 1fr; } .video-sec { background: #fff; } }

/* Readability: justified body text with hyphenation (desktop/tablet); short labels and narrow cards stay left-aligned */
/* Readability
   - left-aligned text (even word spacing, no stretched gaps, no hyphenation)
   - lines kept to a comfortable length, about 65-70 characters
   - generous line spacing and clear space between paragraphs
   - darker body colour for contrast
   - balanced headings and no single word left alone on the last line of a paragraph */
main p, main li, main dd, .band--ink p, .faq__item p { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
main p { max-width: 68ch; line-height: 1.7; text-wrap: pretty; }
main p + p { margin-top: 0.15em; }
main h1, main h2, main h3, .h3 { text-wrap: balance; }
.lead, .section__head p, .p-hero__headline, .video-sec__text p { line-height: 1.55; }
.prose p, .section-intro, .principle > p, .etv p, .about p { color: var(--ink-2); }
.prose p { font-size: 1.0625rem; line-height: 1.75; margin-bottom: 1.1em; }
.prose li { line-height: 1.65; }
main .steps p, main .sequence p, main .tech p, main .benefits p, main .reactions p, main .p-card p,
main .dl-card p, main .k-card p, main .partner p, main .range-row p { line-height: 1.6; max-width: none; }
/* hyphenated words (on-site, anti-doping, pre-treats) are never split across two lines */
.nw { white-space: nowrap; }
/* the line breaks between sentences get a little breathing room */
/* each line-up column is at least wide enough for its label (set per unit in --cw, mm) */
.lineup__item { min-width: calc(var(--cw, var(--vw)) * var(--u)); }
/* About page: the two batch photos lead the workshop grid as a wide pair */
.shop .shop__wide { grid-column: span 2; }
