/* INTERLAB v6: v5's components, with less on each page (see the v6 layer at the end). The full content of v2 with the finish of v3: translucent materials,
   size-specific type, springs that start from what is on screen, momentum and rubber-banding. */

/* The two web fonts, served by the site itself (Latin and Latin Extended files of Instrument Serif and Inter). */
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("assets/fonts/inter-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff;
  --gray: #f5f5f7;
  --fill: rgba(118, 118, 128, 0.12);
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --hairline: #d2d2d7;
  --navy: #0b1f3a;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --blue-wash: #e8f2fe;
  --green: #5dbb46;
  --green-deep: #2e8b2a;
  --green-light: #74cf5c;
  /* Textile division colours, sampled from its own logo */
  --wine: #8a1745;
  --wine-deep: #5a0e2d;
  --wine-pink: #d85a8a;
  --wine-wash: #f9e9f0;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;

  --wide: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-float: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.12), 0 30px 80px rgba(0, 0, 0, 0.18);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.47; letter-spacing: -0.011em; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- type: negative tracking grows with size, body near zero ---------- */
.hero-h { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.032em; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.25rem + 2.5vw, 3.375rem); line-height: 1.07; letter-spacing: -0.027em; text-wrap: balance; }
.lede { margin-top: 18px; font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.4; letter-spacing: -0.014em; color: var(--ink-2); text-wrap: pretty; }
.eyebrow-name { margin-bottom: 10px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); letter-spacing: -0.012em; color: var(--blue); }
.fine { margin-top: 28px; font-size: 0.75rem; letter-spacing: 0; color: var(--ink-3); }

/* ---------- controls ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 980px; font-size: 1.0625rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 200ms ease, transform 100ms ease-out; }
.pill:active { transform: scale(0.97); }
.pill-sm { height: 30px; padding: 0 14px; font-size: 0.8125rem; letter-spacing: -0.006em; }
.pill-lg { height: 52px; padding: 0 28px; }
.pill-blue { background: var(--blue); color: #fff; }
.pill-green { background: var(--green-deep); color: #fff; }
.pill-white { background: #fff; color: var(--ink); }
.pill-glass { color: #fff; background: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.wa-ico { flex: none; width: 1.15em; height: 1.15em; margin-right: 8px; fill: currentColor; }
.pill-glass .wa-ico { color: #25d366; }
.ctile-wa { display: inline-flex; align-items: center; }
.ctile-wa .wa-ico { width: 28px; height: 28px; margin-right: 10px; color: #0b2a07; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; color: var(--link); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .pill-blue:hover { background: var(--blue-hover); }
  .pill-green:hover { background: #27791f; }
  .pill-white:hover { background: #f0f0f2; }
  .pill-glass:hover { background: rgba(255, 255, 255, 0.22); }
  .link-arrow:hover { text-decoration: underline; }
}

/* =====================================================================
   Navigation
   ===================================================================== */
.nav { position: sticky; top: 0; z-index: 100; margin-bottom: -52px; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0)); opacity: 0; transition: opacity 200ms ease; }
.nav.is-scrolled::after { opacity: 1; }
.nav-inner { display: flex; align-items: center; gap: 20px; max-width: var(--wide); height: 52px; margin-inline: auto; padding-inline: var(--gutter); }
.nav-brand img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 0.8125rem; letter-spacing: -0.006em; color: rgba(29, 29, 31, 0.82); text-decoration: none; transition: color 150ms ease; }
.nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }
.nav-toggle { display: none; }

/* =====================================================================
   Hero: the lab itself, with a light material card on top
   ===================================================================== */
/* The photo clips itself, not the hero, so the search results can hang below the fold line over the next section. */
.hero { position: relative; z-index: 2; isolation: isolate; display: flex; align-items: flex-end; min-height: 100svh; background: var(--navy); color: #fff; }
.hero-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; will-change: transform; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5, 16, 34, 0.9) 0%, rgba(5, 16, 34, 0.72) 40%, rgba(5, 16, 34, 0.3) 75%, rgba(5, 16, 34, 0.2) 100%),
  linear-gradient(0deg, rgba(5, 16, 34, 0.85) 0%, rgba(5, 16, 34, 0) 50%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; width: 100%; max-width: var(--wide); margin-inline: auto; padding: 96px var(--gutter) clamp(36px, 4vw, 56px); }
.hero-name { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 980px; background: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); font-size: 0.875rem; font-weight: 600; letter-spacing: -0.006em; }
.hero-h { margin-top: 18px; }
.hero-sub { max-width: 52ch; margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); line-height: 1.42; letter-spacing: -0.014em; color: rgba(255, 255, 255, 0.84); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.hero-facts dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-facts dd { margin-top: 6px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
/* The whole counter, number included, is the link's target. */
.hero-fact-link { position: relative; }
.hero-fact-link a { color: #fff; font-weight: 600; text-decoration: none; }
.hero-fact-link a::after { content: ""; position: absolute; inset: -6px; border-radius: 12px; }
.hero-fact-link a:focus-visible { outline: none; }
.hero-fact-link a:focus-visible::after { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .hero-fact-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .hero-fact-link:has(a:hover) dt { opacity: 0.8; }
}
.live { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; }

/* Navy glass: the lab photo stays visible through a blurred, tinted pane, so all type on it is light. */
.credential { position: relative; padding: 28px; border-radius: 28px; background: rgba(11, 31, 58, 0.2); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--shadow-float); }
.credential-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* The issuer's mark heads the card, like the seal on an official credential: brand and authorization read as one claim. */
.credential-logo { width: min(300px, 100%); height: auto; margin: -18px 0 6px; }
.credential-label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.72); }
.credential-id { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 2.75rem; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 980px; background: rgba(116, 207, 92, 0.16); box-shadow: inset 0 0 0 1px rgba(116, 207, 92, 0.32); color: #a6eb94; font-size: 0.8125rem; font-weight: 600; }
.status .live { background: var(--green-light); }
.credential-type { margin-top: 12px; font-size: 0.9375rem; text-align: center; text-wrap: balance; color: rgba(255, 255, 255, 0.78); }
.credential-dates { margin-top: 6px; font-size: 0.8125rem; text-align: center; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.quick { position: relative; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.quick-label { display: block; font-weight: 600; font-size: 0.9375rem; }
.quick-field { display: flex; align-items: center; gap: 8px; margin-top: 10px; height: 44px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); transition: box-shadow 150ms ease, background-color 150ms ease; }
.quick-field:focus-within { background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 3px rgba(100, 170, 255, 0.45); }
.quick-field svg, .searchfield svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.quick-field svg { stroke: rgba(255, 255, 255, 0.6); }
.quick-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 1rem; }
.quick-field input::placeholder { color: rgba(255, 255, 255, 0.5); }
.quick-field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23fff' fill-opacity='.3'/%3E%3Cpath d='m5.5 5.5 5 5m0-5-5 5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.quick-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; max-height: 300px; overflow: auto; padding: 6px; border-radius: 16px; background: rgba(11, 31, 58, 0.9); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-float); transform-origin: top center; opacity: 0; transform: translateY(-4px) scale(0.97); filter: blur(4px); pointer-events: none; transition: opacity 140ms ease, transform 140ms var(--ease-out), filter 140ms ease; }
.quick-list.is-open { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-duration: 220ms; }
.quick-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 0.9375rem; }
.quick-list li[aria-selected="true"] { background: var(--blue); color: #fff; }
.quick-list li[aria-selected="true"] .q-code { color: rgba(255, 255, 255, 0.85); }
.quick-list .q-code { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quick-list .q-empty { display: block; cursor: default; color: rgba(255, 255, 255, 0.72); }
.quick-list .q-empty a { color: #6cb6ff; }
@media (hover: hover) and (pointer: fine) { .quick-list li[role="option"]:hover:not([aria-selected="true"]) { background: rgba(255, 255, 255, 0.1); } }

/* =====================================================================
   Trust
   ===================================================================== */
.trust { padding-block: 36px; background: var(--bg); }
.trust-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 40px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.trust-h { max-width: 16ch; font-size: 0.875rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex: none; gap: 52px; padding-right: 52px; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.022em; color: var(--ink-3); white-space: nowrap; }

/* =====================================================================
   Bands and headers
   ===================================================================== */
.band { padding-block: clamp(88px, 10vw, 140px); }
.band-gray { background: var(--gray); }
.band-wine { background: #f8f1f4; }
.band-dark { background: #000; color: #f5f5f7; }
.band-dark .lede { color: #a1a1a6; }
.band-dark .eyebrow-name { color: var(--green-light); }
.head { max-width: var(--wide); margin: 0 auto clamp(40px, 5vw, 64px); padding-inline: var(--gutter); }
.head .h2 { max-width: 20ch; }
.head .lede { max-width: 60ch; }
.head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 64px; flex-wrap: wrap; }
.head-split .lede { margin-top: 0; max-width: 46ch; }

/* =====================================================================
   Services bento
   ===================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 280px; gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.card { position: relative; overflow: hidden; border-radius: 28px; background: #000; color: #fff; isolation: isolate; }
.card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.card > img + .card-body::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0) 80%); }
.card-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.card-kicker { font-size: 0.8125rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.card h3 { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.022em; }
.card-body > p:not(.card-kicker), .card-body > div > p:not(.card-kicker) { margin-top: 8px; max-width: 52ch; font-size: 0.9375rem; line-height: 1.5; color: rgba(255, 255, 255, 0.84); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips li { padding: 5px 11px; border-radius: 980px; font-size: 0.8125rem; font-weight: 500; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.card-xl { grid-column: span 7; grid-row: span 2; }
.card-xl h3 { font-size: clamp(1.75rem, 1.3rem + 1.1vw, 2.25rem); letter-spacing: -0.028em; }
.card-md { grid-column: span 5; }
.card-sm { grid-column: span 4; }
.card-wide { grid-column: span 12; }
.card-light { background: var(--gray); color: var(--ink); }
.card-light .card-kicker { color: var(--ink-2); }
.card-light .card-body > div > p:not(.card-kicker) { color: var(--ink-2); }
.card-light .card-body { justify-content: space-between; }
.conds div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hairline); font-size: 0.9375rem; }
.conds dt { color: var(--ink-2); }
.conds dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.card-blue { background: var(--blue); }
.card-blue .card-kicker { color: rgba(255, 255, 255, 0.8); }
.card-split { height: 100%; position: relative !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 32px; }
.card-split p { max-width: 72ch !important; }
@media (hover: hover) and (pointer: fine) { .card:hover > img { transform: scale(1.04); } }

/* =====================================================================
   Nitrosamines
   ===================================================================== */
.nitro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 88px); align-items: center; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.nitro .h2 { max-width: 18ch; }
.stages { margin-top: 36px; }
.stage-panels { margin-top: 18px; min-height: 5.2em; max-width: 54ch; color: rgba(245, 245, 247, 0.86); }
.stage-panels strong { color: #fff; }
.nitro-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.nitro-actions p { max-width: 36ch; font-size: 0.875rem; color: #a1a1a6; }
.instrument { position: relative; }
.instrument::before { content: ""; position: absolute; inset: -18% -16%; background: radial-gradient(closest-side, rgba(0, 113, 227, 0.45), rgba(0, 113, 227, 0)); pointer-events: none; }
.instrument img { position: relative; width: 100%; padding: 8%; border-radius: 36px; background: #fff; }
.instrument figcaption { position: relative; display: flex; flex-direction: column; margin-top: 16px; font-size: 0.875rem; color: #a1a1a6; text-align: center; }
.instrument figcaption strong { font-size: 1.0625rem; color: #f5f5f7; }
.bento-dark { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: var(--wide); margin: clamp(56px, 7vw, 88px) auto 0; padding-inline: var(--gutter); }
.bd { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 210px; padding: 28px; border-radius: 28px; background: #1d1d1f; }
.bd-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.75rem, 2rem + 2.2vw, 4rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #4aa3ff, #74cf5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bd-plain { background: none; color: #f5f5f7; }
.bd-text { font-size: 0.9375rem; line-height: 1.47; color: #a1a1a6; }

/* =====================================================================
   Segmented control (used by the stages and the catalogue filter)
   ===================================================================== */
.segmented { position: relative; display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { position: relative; z-index: 1; padding: 7px 16px; border-radius: 7px; font-size: 0.875rem; font-weight: 500; letter-spacing: -0.006em; white-space: nowrap; color: var(--ink); transition: opacity 150ms ease; }
.segmented button span { margin-left: 4px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.segmented button[aria-checked="true"], .segmented button[aria-selected="true"] { font-weight: 600; }
.segmented button:active { opacity: 0.6; }
.segmented-thumb { position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: 7px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); will-change: transform; }
.segmented-dark { background: rgba(118, 118, 128, 0.24); }
.segmented-dark button { color: rgba(245, 245, 247, 0.8); }
.segmented-dark button[aria-selected="true"] { color: #f5f5f7; }
.segmented-dark .segmented-thumb { background: #636366; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); }

/* =====================================================================
   Analytical scope
   ===================================================================== */
.scope { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.scope-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.searchfield { display: flex; align-items: center; gap: 6px; width: min(320px, 100%); height: 38px; padding: 0 12px; border-radius: 10px; background: var(--fill); transition: box-shadow 150ms ease; }
.searchfield input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 1rem; }
.searchfield:focus-within { box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.32); }
.scope-status { min-height: 1.4em; margin-top: 12px; font-size: 0.875rem; color: var(--ink-2); }
.group { margin-top: 20px; }
.group[hidden] { display: none; }
.group + .group { margin-top: 44px; }
.group-h { margin-bottom: 14px; padding-left: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.018em; }
.group-h span { margin-left: 8px; font-family: var(--font); font-size: 0.9375rem; font-weight: 400; letter-spacing: -0.006em; color: var(--ink-2); }
.list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.list li[hidden] { display: none; }
.list label { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; column-gap: 12px; height: 100%; min-height: 56px; padding: 12px 16px; border-radius: 14px; background: var(--gray); cursor: pointer; transition: background-color 180ms ease, transform 100ms ease-out; }
.list label:active { transform: scale(0.985); }
.list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { position: relative; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #c7c7cc; background: #fff; transition: background-color 180ms ease, box-shadow 180ms ease; }
.tick::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0.4); opacity: 0; transition: transform 220ms var(--ease-out), opacity 120ms ease; }
.list input:checked + .tick { background: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.list input:checked + .tick::after { opacity: 1; transform: rotate(45deg) scale(1); }
.list input:focus-visible + .tick { outline: 2px solid var(--blue); outline-offset: 3px; }
.list label:has(input:checked) { background: var(--blue-wash); }
.n { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.n small { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 400; line-height: 1.4; color: var(--ink-2); }
.c { align-self: start; margin-top: 1px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .list label:hover { background: #ececf0; } .list label:has(input:checked):hover { background: #dcebfd; } }
.empty { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 22px 24px; border-radius: 18px; background: var(--gray); }
.empty[hidden] { display: none; }
.empty p { max-width: 60ch; }
.noscript-submit { margin-top: 20px; }

/* ---------- dock and sheet ---------- */
.dock { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 24px) scale(0.94); opacity: 0; filter: blur(8px); pointer-events: none; transition: transform 220ms var(--ease-out), opacity 180ms ease, filter 180ms ease; }
.dock.is-visible { transform: translate(-50%, 0); opacity: 1; filter: none; pointer-events: auto; transition: transform 460ms var(--ease-sheet), opacity 240ms ease, filter 240ms ease; }
.dock-btn { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 8px; border-radius: 980px; background: rgba(29, 29, 31, 0.82); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); color: #fff; font-size: 0.9375rem; white-space: nowrap; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); transition: transform 100ms ease-out; }
.dock-btn:active { transform: scale(0.97); }
.dock-count { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 980px; background: rgba(255, 255, 255, 0.14); font-weight: 600; font-variant-numeric: tabular-nums; }
.dock-go { display: inline-flex; align-items: center; height: 44px; margin-left: 6px; padding: 0 18px; border-radius: 980px; background: var(--blue); font-weight: 500; }
.scrim { position: fixed; inset: 0; z-index: 140; background: rgba(0, 0, 0, 0.4); opacity: 0; }
.scrim[hidden] { display: none; }
.sheet { position: fixed; left: 50%; bottom: 0; z-index: 150; display: flex; flex-direction: column; width: min(640px, 100%); max-height: min(86svh, 760px); border-radius: 28px 28px 0 0; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.2); transform: translate(-50%, 100%); will-change: transform; }
.sheet[hidden] { display: none; }
.sheet-grabber { display: grid; place-items: center; height: 22px; touch-action: none; cursor: grab; }
.sheet-grabber span { width: 36px; height: 5px; border-radius: 3px; background: #c7c7cc; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 20px 12px 24px; touch-action: none; }
.sheet-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.022em; }
.sheet-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); color: var(--ink-2); transition: transform 100ms ease-out; }
.sheet-close:active { transform: scale(0.92); }
.sheet-close svg, .sheet-list button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 8px; }
.sheet-list { border-radius: 14px; background: var(--gray); }
.sheet-list li { position: relative; display: grid; grid-template-columns: 1fr auto 32px; align-items: center; gap: 10px; min-height: 52px; padding: 8px 8px 8px 16px; }
.sheet-list li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--hairline); transform: scaleY(0.5); }
.s-name { font-size: 0.9375rem; font-weight: 500; }
.s-code { font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sheet-list button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-3); transition: background-color 150ms ease, transform 100ms ease-out; }
.sheet-list button:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .sheet-list button:hover { background: var(--fill); } }
.fields { display: grid; gap: 10px; margin-top: 18px; }
.fields label { display: grid; gap: 4px; }
.fields span { padding-left: 4px; font-size: 0.8125rem; color: var(--ink-2); }
.fields input { height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--fill); font-size: 1rem; outline: none; }
.fields input:focus { box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.32); }
.sheet-actions { display: flex; gap: 10px; padding: 16px 20px max(20px, env(safe-area-inset-bottom)); }
.sheet-actions .pill { flex: 1; }

/* =====================================================================
   Equipment
   ===================================================================== */
.equip { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.equip-photo { overflow: hidden; border-radius: 28px; min-height: 420px; }
.equip-photo img { width: 100%; height: 100%; object-fit: cover; }
.equip-card { padding: 28px; border-radius: 28px; background: #fff; }
.equip-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.018em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { padding: 6px 12px; border-radius: 980px; background: var(--gray); font-size: 0.875rem; }

/* =====================================================================
   Process
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.step { padding: 12px 12px 28px; border-radius: 28px; background: var(--gray); }
.step-media { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 3; }
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-n { position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); font-weight: 700; }
.step h3 { margin: 22px 16px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; }
.step p { margin: 8px 16px 0; color: var(--ink-2); }

/* =====================================================================
   Facilities carousel: dragged 1:1, thrown with momentum, rubber-banded
   ===================================================================== */
.arrows { display: flex; gap: 12px; flex: none; }
.arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(210, 210, 215, 0.64); color: rgba(0, 0, 0, 0.56); transition: background-color 150ms ease, opacity 150ms ease, transform 100ms ease-out; }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow:active { transform: scale(0.94); }
.arrow:disabled { opacity: 0.42; cursor: default; }
@media (hover: hover) and (pointer: fine) { .arrow:not(:disabled):hover { background: #d2d2d7; } }
.carousel { overflow-x: auto; scrollbar-width: none; }
.js .carousel { overflow: hidden; }
.track { position: relative; display: flex; gap: 16px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter))); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform; }
.track.is-dragging { cursor: grabbing; }
.track img { -webkit-user-drag: none; pointer-events: none; }
.shot { position: relative; flex: none; height: clamp(320px, 38vw, 500px); overflow: hidden; border-radius: 28px; background: #e8e8ed; }
.shot img { height: 100%; width: auto; }
.shot p { position: absolute; left: 16px; bottom: 16px; padding: 7px 14px; border-radius: 980px; background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); font-size: 0.875rem; font-weight: 600; color: var(--ink); }

/* =====================================================================
   About
   ===================================================================== */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 88px); align-items: center; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.about-text { margin-top: 18px; max-width: 60ch; color: var(--ink-2); }
.mission { margin-top: 24px; padding: 24px 28px; border-radius: 22px; background: var(--gray); }
.mission p { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.4; letter-spacing: -0.016em; color: var(--ink); }
.mission footer { margin-top: 10px; font-size: 0.875rem; color: var(--ink-2); }
/* The full-colour mark signs the company's own story: brand, legal entity and the values it answers for, in one column. */
.about-side { display: flex; flex-direction: column; gap: 12px; }
.brand-card { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: clamp(28px, 4vw, 44px) 28px 28px; border-radius: 28px; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #fff 45%, var(--gray) 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); text-align: center; }
.brand-card img { width: min(340px, 100%); height: auto; }
.brand-card figcaption { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.brand-card figcaption span { display: block; margin-top: 4px; font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.values li { padding: 22px; border-radius: 22px; background: var(--gray); }
.values h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.016em; }
.values p { margin-top: 4px; font-size: 0.9375rem; color: var(--ink-2); }

/* =====================================================================
   Contact
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.ctile { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 28px; border-radius: 28px; background: #fff; text-decoration: none; transition: transform 100ms ease-out; }
a.ctile:active { transform: scale(0.98); }
.ctile-label { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.ctile-main { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); line-height: 1.15; letter-spacing: -0.024em; text-decoration: none; }
.ctile-mail { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); overflow-wrap: anywhere; }
.ctile-go { margin-top: auto; color: var(--link); }
.ctile-note { font-size: 0.9375rem; color: var(--ink-2); }
.footer-hours { color: #6e6e73; }
.ctile-green { background: var(--green); color: #0b2a07; }
.ctile-green .ctile-label { color: rgba(11, 42, 7, 0.7); }
.ctile-green .ctile-go { color: #0b2a07; font-weight: 600; }
.ctile-tex { grid-column: 1 / -1; min-height: 0; background: var(--wine); color: #fff; }
.ctile-tex .ctile-label { color: rgba(255, 255, 255, 0.72); }
.ctile-tex-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 40px; }
.ctile-tex a { color: #fff; text-decoration: none; }
.ctile-tex-go { margin-left: auto; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .ctile-tex a:hover { text-decoration: underline; } }
@media (hover: hover) and (pointer: fine) { a.ctile:hover .ctile-go { text-decoration: underline; } }
.copy { display: grid; align-self: flex-start; margin-top: auto; height: 32px; padding: 0 14px; border-radius: 980px; background: var(--gray); font-size: 0.8125rem; font-weight: 600; transition: transform 100ms ease-out, background-color 150ms ease; }
.copy:active { transform: scale(0.96); }
.copy > span { grid-area: 1 / 1; align-self: center; transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--ease-out); }
.copy-b { opacity: 0; filter: blur(4px); transform: translateY(6px); color: var(--green-deep); }
.copy.is-copied .copy-a { opacity: 0; filter: blur(4px); transform: translateY(-6px); }
.copy.is-copied .copy-b { opacity: 1; filter: none; transform: none; }
.ctile-map { grid-column: 1 / -1; min-height: 400px; padding: 0; overflow: hidden; }
.ctile-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-label { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.84); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); font-size: 0.9375rem; font-weight: 500; color: var(--ink); text-decoration: none; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: var(--gray); color: var(--ink-2); font-size: 0.8125rem; letter-spacing: -0.003em; border-top: 1px solid var(--hairline); }
.footer-inner { max-width: var(--wide); margin-inline: auto; padding: 48px var(--gutter) 28px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-logo { height: 52px; width: auto; }
.footer-cols > div p { margin-top: 16px; max-width: 40ch; line-height: 1.6; }
.footer-cols nav { display: flex; flex-direction: column; gap: 8px; }
.footer-cols h2 { margin-bottom: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.footer-cols a { width: fit-content; color: #424245; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-cols a:hover { text-decoration: underline; } }
.fine-print { padding-block: 16px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: 0.75rem; line-height: 1.6; }
.footer-row { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-top: 14px; font-size: 0.75rem; }

/* =====================================================================
   Business lines
   ===================================================================== */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.area { display: flex; flex-direction: column; min-height: 400px; padding: 32px; border-radius: 28px; color: #fff; text-decoration: none; transition: transform 100ms ease-out; }
.area:active { transform: scale(0.98); }
.area-blue { background: var(--blue); }
.area-green { background: var(--green-deep); }
.area-navy { background: var(--navy); }
.area-wine { background: var(--wine); }
.area-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, 0.14); }
.area-icon svg, .feature-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.area h3 { margin-top: 28px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -0.028em; }
.area > p { margin-top: 10px; color: rgba(255, 255, 255, 0.86); }
.area-list { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-size: 0.9375rem; }
.area-list li { display: flex; gap: 10px; color: rgba(255, 255, 255, 0.92); }
.area-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.6em; border-radius: 50%; background: currentColor; }
.area-go { margin-top: auto; padding-top: 24px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .area:hover .area-go { text-decoration: underline; } }

/* ---------- textile ---------- */
.eyebrow-green { color: var(--green-deep); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.feature { padding: 32px; border-radius: 28px; background: #fff; }
.feature-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #e6f4e2; color: var(--green-deep); }
.feature h3 { margin-top: 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; }
.feature p { margin-top: 8px; color: var(--ink-2); }

/* Textile: the lab photo and the ema credential lead, the catalogue follows, the full scope waits behind a disclosure. */
/* The division's own mark opens the section, and its wine replaces the farma green as the accent for everything textile. */
.tx-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.tx-brand img { width: min(240px, 60vw); height: auto; }
.tx-brand span { padding: 6px 12px; border-radius: 980px; background: var(--wine-wash); color: var(--wine); font-size: 0.8125rem; font-weight: 600; }
.pill-wine { background: var(--wine); color: #fff; }
@media (hover: hover) and (pointer: fine) { .pill-wine:hover { background: #761339; } }
.tx-sede .link-arrow { color: var(--wine); }
.tx-top, .tx-cats, .tx-scope, .tx-equip-head, .tx-equip, .tx-sede { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wide) - 2 * var(--gutter)); margin-inline: auto; }
.tx-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 16px; }
/* Same language as the COFEPRIS card in the hero: the credential is a pane of tinted glass over the lab it certifies. */
.tx-photo { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; min-height: 640px; padding: 16px; border-radius: 28px; }
.tx-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(40, 6, 20, 0) 30%, rgba(40, 6, 20, 0.55) 70%, rgba(40, 6, 20, 0.8) 100%); }
.tx-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tx-photo-tag { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.84); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); font-size: 0.875rem; font-weight: 500; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.ema-card { max-width: 520px; padding: 28px; border-radius: 24px; background: rgba(90, 14, 45, 0.3); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-float); }
.status-wine { margin-top: 12px; background: rgba(116, 207, 92, 0.18); box-shadow: inset 0 0 0 1px rgba(116, 207, 92, 0.34); color: #b4f0a4; }
.status-wine .live { background: var(--green-light); }
.ema-label { font-size: 0.875rem; font-weight: 600; color: #f6b8d0; }
.ema-id { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ema-text { margin-top: 14px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.8); }
.ema-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.ema-facts dt { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: -0.03em; }
.ema-facts dd { margin-top: 4px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.66); }
.tx-what { display: flex; flex-direction: column; padding: 28px 32px; border-radius: 28px; background: #fff; }
.tx-what h3, .tx-equip-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; }
.tx-what ul { display: grid; gap: 12px; margin-top: 14px; }
.tx-what li { padding-left: 18px; position: relative; }
.tx-what li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--wine-pink); }
.tx-what li span { display: block; font-size: 0.9375rem; color: var(--ink-2); }
.tx-what .tx-what-h2 { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(0, 0, 0, 0.07); }
/* The norms list takes whatever height the photo leaves, rows spread evenly so the card ends flush with it. */
.tx-what .tx-norms { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 0; margin-top: 6px; }
.tx-what .tx-norms li { padding: 12px 0 12px 18px; border-top: 1px solid rgba(0, 0, 0, 0.07); }
.tx-what .tx-norms li:first-child { border-top: 0; }
.tx-what .tx-norms li::before { top: calc(12px + 0.6em); background: var(--wine); }
.tx-what .tx-norms strong { color: var(--wine); }

.tx-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.tx-cat { padding: 32px; border-radius: 28px; background: #fff; }
.tx-cat-n { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; color: var(--wine); font-variant-numeric: tabular-nums; }
.tx-cat h3 { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; }
.tx-cat ul { margin-top: 14px; }
.tx-cat li { padding: 8px 0; font-size: 0.9375rem; border-top: 1px solid rgba(0, 0, 0, 0.07); }
.tx-extra { margin-top: 24px; padding: 18px 20px; border-radius: 18px; background: var(--wine-wash); }
.tx-extra h4 { font-size: 0.8125rem; font-weight: 600; color: var(--wine); }
.tx-extra ul { margin-top: 4px; }
.tx-extra li { border: 0; padding: 4px 0; color: #4a0d26; }

.tx-scope { margin-top: 16px; border-radius: 28px; background: #fff; }
.tx-scope summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 32px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.tx-scope summary::-webkit-details-marker { display: none; }
.tx-scope summary strong { display: block; font-family: var(--font-display); font-size: 1.1875rem; letter-spacing: -0.016em; }
.tx-scope summary > span:first-child { font-size: 0.9375rem; color: var(--ink-2); }
.tx-scope summary strong { color: var(--ink); }
.tx-scope-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--fill); }
.tx-scope-icon::before, .tx-scope-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 1px; background: var(--ink); transition: transform 300ms var(--ease-out); }
.tx-scope-icon::after { transform: rotate(90deg); }
.tx-scope[open] .tx-scope-icon::after { transform: rotate(0deg); }
.tx-scope-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 40px; padding: 4px 32px 32px; }
.tx-group h4 { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: -0.012em; }
.tx-group h4 span { font-size: 0.8125rem; font-weight: 600; color: var(--wine); }
.tx-group li { display: grid; gap: 2px; padding: 10px 0; font-size: 0.9375rem; border-top: 1px solid rgba(0, 0, 0, 0.07); }
.tx-group code { font-family: inherit; font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .tx-scope summary:hover .tx-scope-icon { background: rgba(118, 118, 128, 0.2); } }

.tx-equip-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px 40px; margin-top: clamp(48px, 6vw, 72px); }
.tx-equip-head p { max-width: 52ch; color: var(--ink-2); }
.tx-equip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 20px; }
.tx-equip li { overflow: hidden; border-radius: 22px; background: #fff; }
.tx-equip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tx-equip span { display: block; padding: 12px 14px 14px; font-size: 0.875rem; font-weight: 600; }

.tx-sede { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); overflow: hidden; margin-top: 16px; border-radius: 28px; background: #fff; }
.tx-sede img { width: 100%; height: 100%; min-height: 320px; max-height: 420px; object-fit: cover; }
.tx-sede-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 48px); }
.tx-sede-label { font-size: 0.875rem; font-weight: 600; color: var(--wine); }
.tx-sede h3 { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); letter-spacing: -0.024em; }
.tx-sede address { margin-top: 10px; max-width: 44ch; font-style: normal; color: var(--ink-2); }
.tx-sede address a { color: var(--wine); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .tx-sede address a:hover { text-decoration: underline; } }
.tx-sede-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.firms { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 40px; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wide) - 2 * var(--gutter)); margin: 16px auto 0; padding: 28px 32px; border-radius: 28px; background: #fff; }
.firms-label { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); max-width: 12ch; }
/* Logos sized by eye, not by box: wide wordmarks sit lower, the compact C&A mark taller, so all four read at the same weight. */
.firms-list { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 44px; }
.firms-list li { display: flex; align-items: center; height: 52px; }
.firms-list img { width: auto; height: var(--h, 34px); }
.ccp { gap: 8px; color: #111; }
.ccp-dog { width: auto; height: 40px; }
.ccp span { font-family: var(--font-display); font-weight: 800; font-size: 1.875rem; line-height: 1; letter-spacing: -0.02em; }
.firms-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 30ch; }
.firms-cta p { font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- retail and distribution centres ---------- */
.band-navy { background: var(--navy); color: #fff; }
.band-navy .eyebrow-name { color: #7fb8ff; }
.band-navy .lede { color: rgba(255, 255, 255, 0.72); }
.cedis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.cedis-item { padding: 32px; border-radius: 28px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.cedis-item .feature-icon { background: rgba(127, 184, 255, 0.16); color: #9cc8ff; }
.cedis-item h3 { margin-top: 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; }
.cedis-item p { margin-top: 8px; color: rgba(255, 255, 255, 0.74); }
.cedis-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wide) - 2 * var(--gutter)); margin: 16px auto 0; padding: 24px 32px; border-radius: 28px; background: rgba(255, 255, 255, 0.07); }
.cedis-cta p { font-size: 1.0625rem; color: rgba(255, 255, 255, 0.86); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 120px; }
  .credential { max-width: 560px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; }
  .card-xl { grid-column: span 2; grid-row: span 1; }
  .card-md, .card-sm { grid-column: span 1; }
  .card-light { grid-column: span 2; grid-row: auto; }
  .card-light .card-body { position: relative; gap: 20px; }
  .card-wide { grid-column: span 2; }
  .nitro { grid-template-columns: minmax(0, 1fr); }
  .instrument { max-width: 520px; }
  .bento-dark { grid-template-columns: 1fr 1fr; }
  .equip { grid-template-columns: 1fr 1fr; }
  .equip-photo { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 9; }
  .about { grid-template-columns: 1fr; }
  .areas, .trio, .cedis { grid-template-columns: 1fr; max-width: 640px; }
  .tx-top, .tx-cats { grid-template-columns: 1fr; max-width: calc(640px - 2 * var(--gutter)); }
  .tx-scope, .tx-equip-head, .tx-equip, .tx-sede { max-width: calc(640px - 2 * var(--gutter)); }
  .tx-photo { min-height: 0; padding-bottom: 300px; }
  .tx-scope-body { grid-template-columns: 1fr; }
  .tx-equip { grid-template-columns: repeat(3, 1fr); }
  .area { min-height: 0; }
  .firms { grid-template-columns: 1fr; max-width: calc(640px - 2 * var(--gutter)); }
  .firms-label { max-width: none; }
  .cedis-cta { max-width: calc(640px - 2 * var(--gutter)); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .ctile:nth-child(3) { grid-column: 1 / -1; min-height: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
  .footer-cols > div { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; align-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; }
  .nav-toggle span { display: block; width: 17px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform 300ms var(--ease-out); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-cta { margin-left: auto; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 24px; background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); transform-origin: top right; opacity: 0; transform: scale(0.98) translateY(-6px); filter: blur(6px); visibility: hidden; transition: opacity 160ms ease, transform 160ms var(--ease-out), filter 160ms ease, visibility 0s linear 160ms; }
  .nav-links.is-open { opacity: 1; transform: none; filter: none; visibility: visible; transition: opacity 240ms ease, transform 300ms var(--ease-out), filter 240ms ease, visibility 0s; }
  .nav-links a { padding: 14px 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.016em; color: var(--ink); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
  .trust-inner { grid-template-columns: 1fr; gap: 16px; }
  .trust-h { max-width: none; }
  .list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-ctas .pill { flex: 1 1 100%; }
  .hero-facts { gap: 16px 28px; }
  .credential { padding: 22px; border-radius: 24px; }
  .credential-id { font-size: 2.125rem; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card, .card-xl, .card-md, .card-sm, .card-light, .card-wide { grid-column: span 1; grid-row: auto; min-height: 380px; }
  .card-light, .card-wide { min-height: 0; }
  .card-light .card-body, .card-wide .card-body { position: relative; }
  .card-split { flex-direction: column !important; align-items: flex-start !important; }
  .card-body { padding: 24px; }
  .bento-dark { grid-template-columns: 1fr; }
  .bd { min-height: 0; }
  .scope-bar { flex-direction: column; align-items: stretch; }
  .searchfield { width: 100%; }
  .equip { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .tx-equip { grid-template-columns: repeat(2, 1fr); }
  .tx-sede { grid-template-columns: 1fr; }
  .tx-sede img { max-height: 280px; min-height: 0; }
  .tx-scope summary, .tx-scope-body { padding-inline: 22px; }
  .ema-card, .tx-what, .tx-cat { padding: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .ctile { min-height: 0; }
  .ctile-map { min-height: 320px; }
  .arrows { display: none; }
  .shot { height: 300px; max-width: 86vw; }
  .shot img { width: 100%; object-fit: cover; }
  .dock { left: 12px; right: 12px; transform: translateY(24px) scale(0.94); }
  .dock.is-visible { transform: none; }
  .dock-btn { width: 100%; justify-content: space-between; }
  .sheet-actions { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Motion and accessibility preferences
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero-copy > *, .js .credential { animation: rise 900ms var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 130ms; }
  .js .hero-copy > :nth-child(4) { animation-delay: 200ms; }
  .js .hero-copy > :nth-child(5) { animation-delay: 270ms; }
  .js .credential { animation-delay: 320ms; }
  .live::after { animation: ping 2.4s var(--ease-out) infinite; }
  .marquee-track { animation: marquee 50s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .stage-panels [role="tabpanel"]:not([hidden]) { animation: fade 260ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  .dock, .dock.is-visible, .nav-links, .nav-links.is-open, .quick-list, .quick-list.is-open { transition-property: opacity, visibility; filter: none !important; }
  .nav-links, .nav-links.is-open, .quick-list { transform: none !important; }
  .dock, .dock.is-visible { transform: translate(-50%, 0) !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) { .dock, .dock.is-visible { transform: none !important; } }
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav-links, .sheet, .shot p, .map-label, .step-n, .tx-photo-tag { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .credential, .quick-list { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ema-card { background: var(--wine-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dock-btn { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-name, .pill-glass, .chips li { background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .nav { background: #fff; box-shadow: 0 1px 0 var(--ink); }
  .list label, .ctile, .values li, .step, .equip-card { box-shadow: inset 0 0 0 1px var(--ink-2); }
  .lede, .n small, .c, .about-text { color: #3a3a3c; }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   v5: multi-page pieces
   ===================================================================== */
/* Sub-page heroes: same photo-and-glass language as the home hero, shorter, one column. */
.hero-page { min-height: min(80svh, 700px); }
.hero-page .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 128px; }
.hero-page .hero-copy { max-width: 780px; }
.hero-page .hero-h { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem); }
.hero-wine { background: var(--wine-deep); }
.hero-wine .hero-photo::after { background:
  linear-gradient(90deg, rgba(50, 8, 26, 0.9) 0%, rgba(50, 8, 26, 0.7) 45%, rgba(50, 8, 26, 0.35) 100%),
  linear-gradient(0deg, rgba(50, 8, 26, 0.8) 0%, rgba(50, 8, 26, 0) 55%); }
.hero-plain { min-height: min(64svh, 560px); background: radial-gradient(120% 120% at 85% 10%, #1a3a66 0%, var(--navy) 55%, #06142a 100%); }

/* Home: the two credentials side by side, each opening its division. */
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.cred { display: flex; flex-direction: column; gap: 10px; min-height: 320px; padding: clamp(28px, 4vw, 40px); border-radius: 28px; color: #fff; text-decoration: none; transition: transform 100ms ease-out; }
.cred:active { transform: scale(0.98); }
.cred-navy { background: linear-gradient(160deg, #173a68 0%, var(--navy) 100%); }
.cred-wine { background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%); }
.cred-label { font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.cred-id { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 1.9rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.cred-text { max-width: 44ch; color: rgba(255, 255, 255, 0.82); }
.cred-dates { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }
.cred-go { margin-top: auto; padding-top: 16px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .cred:hover .cred-go { text-decoration: underline; } }

/* Home: one contact card per division. */
.hc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.hc-card { display: flex; flex-direction: column; gap: 6px; padding: clamp(28px, 4vw, 40px); border-radius: 28px; background: #fff; }
.hc-label { font-size: 0.875rem; font-weight: 600; color: var(--blue); }
.hc-wine .hc-label { color: var(--wine); }
.hc-main { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); letter-spacing: -0.028em; color: var(--ink); text-decoration: none; }
.hc-note { color: var(--ink-2); }
.hc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 18px; }
.hc-wine .link-arrow { color: var(--wine); }

/* Nosotros: the two locations. */
.sedes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.sede { overflow: hidden; border-radius: 28px; background: #fff; }
.sede img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sede-body { padding: 28px 32px 32px; }
.sede-label { font-size: 0.875rem; font-weight: 600; color: var(--blue); }
.sede-wine .sede-label, .sede-wine .link-arrow { color: var(--wine); }
.sede h3 { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.sede address { margin: 8px 0 16px; font-style: normal; color: var(--ink-2); }

/* Contacto: both maps, and the complaints block. */
.contact-grid-2maps { grid-template-columns: repeat(6, 1fr); }
.contact-grid-2maps > .ctile { grid-column: span 2; }
.contact-grid-2maps > .ctile-tex { grid-column: 1 / -1; }
.contact-grid-2maps > .ctile-map { grid-column: span 3; min-height: 380px; }
.help { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.help-links { display: grid; gap: 12px; }
.help-link { display: flex; flex-direction: column; gap: 4px; padding: 22px 26px; border-radius: 22px; background: var(--gray); color: var(--ink); text-decoration: none; transition: transform 100ms ease-out; }
.help-link:active { transform: scale(0.98); }
.help-link span { color: var(--link); }
@media (hover: hover) and (pointer: fine) { .help-link:hover span { text-decoration: underline; } }

@media (max-width: 1100px) {
  .contact-grid-2maps { grid-template-columns: 1fr 1fr; }
  .contact-grid-2maps > .ctile { grid-column: span 1; }
  .contact-grid-2maps > .ctile:nth-child(3), .contact-grid-2maps > .ctile-tex, .contact-grid-2maps > .ctile-map { grid-column: 1 / -1; }
  .help { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .creds, .hc, .sedes { grid-template-columns: 1fr; }
  .cred { min-height: 0; }
}
@media (max-width: 640px) {
  .contact-grid-2maps { grid-template-columns: 1fr; }
  .contact-grid-2maps > .ctile-map { min-height: 300px; }
  .hero-page .hero-inner { padding-top: 112px; }
}
/* Textil, inspections: no photography by design, so hierarchy comes from the wine panel, the big
   turnaround figures and numbered steps. */
.eyebrow-wine { color: var(--wine); }
.tx-extra a { color: inherit; text-underline-offset: 2px; }
.ins-top, .ins-steps, .ins-ready, .ins-paths, .ins-block-head, .ins-cta { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wide) - 2 * var(--gutter)); margin-inline: auto; }
.ins-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; }
.ins-rubros { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 40px); border-radius: 28px; background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%); color: #fff; }
.ins-rubros h3, .ins-block-head h3, .ins-cta h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: -0.022em; }
.ins-rubros ol { flex: 1; margin-top: 12px; counter-reset: rubro; }
.ins-rubros li { position: relative; padding: 16px 0 16px 44px; border-top: 1px solid rgba(255, 255, 255, 0.16); counter-increment: rubro; }
.ins-rubros li:first-child { border-top: 0; }
.ins-rubros li::before { content: counter(rubro); position: absolute; left: 0; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font-size: 0.875rem; font-weight: 700; }
.ins-rubros strong { font-family: var(--font-display); font-size: 1.1875rem; letter-spacing: -0.014em; }
.ins-rubros li span { display: block; margin-top: 2px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.78); }
.ins-rule { margin-top: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); font-size: 0.9375rem; color: rgba(255, 255, 255, 0.86); }
.ins-rule strong { color: #fff; }
.ins-times { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.ins-times > div { display: flex; flex-direction: column; justify-content: center; padding: 24px; border-radius: 28px; background: var(--wine-wash); }
.ins-times dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--wine); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ins-times dd { margin-top: 8px; font-size: 0.9375rem; color: #5b3a48; }
.ins-block-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 6px 40px; margin-top: clamp(48px, 6vw, 72px); margin-bottom: 20px; }
.ins-block-head p { max-width: 56ch; color: var(--ink-2); }
.ins-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ins-steps li { padding: 28px; border-radius: 24px; background: var(--gray); }
.ins-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.ins-steps h4, .ins-check h4, .ins-paths h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.016em; }
.ins-steps h4 { margin-top: 16px; }
.ins-steps p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.ins-ready { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ins-check { padding: clamp(24px, 3vw, 32px); border-radius: 28px; background: var(--gray); }
.ins-check ul { margin-top: 12px; }
.ins-check li { position: relative; padding: 10px 0 10px 28px; font-size: 0.9375rem; border-top: 1px solid rgba(0, 0, 0, 0.07); }
.ins-check li:first-child { border-top: 0; }
.ins-check li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--wine); border-bottom: 2px solid var(--wine); transform: rotate(-45deg); }
.ins-spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.ins-spec > div { padding: 12px 14px; border-radius: 14px; background: #fff; }
.ins-spec dt { font-size: 0.75rem; font-weight: 600; color: var(--wine); }
.ins-spec dd { margin-top: 2px; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ins-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ins-paths article { padding: 28px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--hairline); }
.ins-paths p { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.ins-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: 16px; padding: clamp(24px, 3vw, 32px); border-radius: 28px; background: var(--wine-wash); }
.ins-cta p { margin-top: 4px; color: #5b3a48; }
@media (max-width: 1100px) {
  .ins-top, .ins-ready { grid-template-columns: 1fr; }
  .ins-steps, .ins-paths { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ins-steps, .ins-paths, .ins-spec { grid-template-columns: 1fr; }
  .ins-times > div { padding: 20px; }
  .ins-cta .pill { width: 100%; }
}

.ctile-tex .ctile-note { color: rgba(255, 255, 255, 0.72); }
.tx-sede-hours { margin-top: 6px; color: var(--ink-2); }

/* Home hero fits the first screen on short laptop viewports (e.g. 1536x735 at 125 % Windows scaling). */
@media (min-width: 1101px) {
  .hero-facts { flex-wrap: nowrap; gap: 12px 28px; }
}
@media (min-width: 1101px) and (max-height: 820px) {
  .hero-inner { padding-top: 72px; padding-bottom: 20px; }
  .hero-page .hero-inner { padding-top: 96px; padding-bottom: 40px; }
  .hero-name { padding-block: 6px; }
  .hero-h { margin-top: 12px; font-size: clamp(2.5rem, 8.6svh, 4.25rem); }
  .hero-sub { margin-top: 12px; font-size: 1.0625rem; }
  .hero-ctas { margin-top: 20px; }
  .hero-ctas .pill-lg { height: 48px; }
  .hero-facts { margin-top: 18px; padding-top: 14px; }
  .hero-facts dt { font-size: 1.75rem; }
  .credential { padding: 20px 24px; }
}@media (min-width: 1101px) { .hero { align-items: center; } }
/* Sub-page heroes fill the first screen too, so the next section never peeks in cut at the fold. */
@media (min-width: 641px) { .hero-page, .hero-plain { min-height: 100svh; } }

/* ol[role=list] resets padding with higher specificity, which pushed these two grids past the page margins. */
ol.steps, ol.cedis { padding-inline: var(--gutter); }
/* The longest test list takes two columns, so the three cards end at a similar height with no dead space. */
@media (min-width: 1101px) {
  .tx-cats { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); }
  .tx-cat:first-child ul { columns: 2; column-gap: 28px; }
  .tx-cat:first-child li { break-inside: avoid; }
}
.contact-grid-2maps > .ctile:not(.ctile-tex) .ctile-mail { font-size: 1.0625rem; }@media (max-width: 640px) { .segmented-dark button { padding-inline: 10px; font-size: 0.8125rem; } }
@media (max-width: 640px) {
  /* All four filters visible without side-scrolling; the counts repeat in each group heading. */
  #filtro { display: flex; width: 100%; }
  #filtro button { flex: 1 1 auto; padding-inline: 8px; font-size: 0.8125rem; }
  #filtro button span { display: none; }
  /* Quote dock: count and action only, the full label stays for screen readers. */
  #dock-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* The glow behind the instrument is wider than the column; keep it from widening the page on phones. */
.band-dark { overflow-x: clip; }
/* On phones card copy runs taller than the desktop gradient, up into the bright part of the photo. */
@media (max-width: 1100px) { .card > img + .card-body::before { background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.74) 65%, rgba(0, 0, 0, 0.4) 100%); } }

/* =====================================================================
   Tablets and phones, refined after reviewing every page under device emulation
   ===================================================================== */
.nb { white-space: nowrap; }
.map-label { text-wrap: balance; }

@media (max-width: 1100px) {
  .cred-id { white-space: nowrap; font-size: 2.5rem; }
}
@media (max-width: 960px) {
  /* A backdrop-filter nested in the nav's own can't see the page, so a translucent menu lets the hero show through. */
  .nav-links { max-height: calc(100svh - 52px); overflow-y: auto; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12); }
  /* The catalogue is 61 rows long here, so filter and search stay within reach while scrolling it. */
  .scope-bar { position: sticky; top: 52px; z-index: 5; margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: #fff; }
}
@media (max-width: 900px) {
  .cred-id { font-size: 1.875rem; }
}

/* Tablets: blocks use the full width and line up with their headings instead of a centred 640px column. */
@media (min-width: 641px) and (max-width: 1100px) {
  .areas, .cedis, .steps, .tx-top, .tx-cats, .tx-scope, .tx-equip-head, .tx-equip, .tx-sede, .firms, .cedis-cta { max-width: none; }
  .credential { max-width: none; }
  .instrument { width: 100%; max-width: 560px; margin-inline: auto; }
  .ins-paths article:last-child { grid-column: 1 / -1; }
  /* Without a photo a full-height hero is just empty colour on a tall screen. */
  .hero-plain { min-height: 56svh; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-cat:first-child { grid-column: 1 / -1; }
  .tx-cat:first-child ul { columns: 2; column-gap: 28px; }
  .tx-cat:first-child li { break-inside: avoid; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .areas, .cedis, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area, .cedis-item { padding: 24px; }
  .area h3 { font-size: 1.375rem; }
  .step h3 { font-size: 1.1875rem; }
}
/* Tablet portrait: the COFEPRIS card lies flat so the home hero ends within the first screen. */
@media (min-width: 641px) and (max-width: 900px) {
  .credential { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-items: center; }
  .credential-top { grid-column: 1; grid-row: 1 / span 3; }
  .credential-type, .credential-dates, .quick { grid-column: 2; }
}
/* Tablet landscape: enough width for the desktop's two-column hero, which fits the first screen. */
@media (min-width: 901px) and (max-width: 1100px) {
  .hero { align-items: center; }
  .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px; padding-top: 88px; }
  .hero-page .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-h { font-size: clamp(2.5rem, 4.6vw, 3.25rem); }
  .hero-facts { flex-wrap: nowrap; gap: 12px 20px; }
  .credential { padding: 20px; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .tx-cats { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); }
  .tx-cat:first-child ul { columns: 2; column-gap: 28px; }
  .tx-cat:first-child li { break-inside: avoid; }
}

@media (max-width: 640px) {
  .hero-name { font-size: 0.8125rem; }
  /* Three figures in one row, so the first screen ends cleanly before the COFEPRIS card. */
  .hero-facts { flex-wrap: nowrap; gap: 14px; }
  .hero-facts > div { flex: 1 1 0; min-width: 0; }
  .hero-facts dt { font-size: 1.625rem; }
  .hero-facts dd { font-size: 0.75rem; line-height: 1.3; }
  .footer-cols nav:last-of-type { grid-column: 1 / -1; }
}

/* Phones held sideways have under 400px of height. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-inner, .hero-page .hero-inner { padding-top: 68px; padding-bottom: 20px; }
  .hero-name { padding-block: 5px; }
  .hero-h, .hero-page .hero-h { margin-top: 10px; font-size: 2.25rem; }
  .hero-sub { margin-top: 10px; font-size: 1rem; }
  .hero-ctas { margin-top: 16px; }
  .hero-ctas .pill-lg { height: 44px; }
}

/* Comfortable touch targets. The small nav pill keeps its look and grows only its hit area. */
@media (pointer: coarse), (max-width: 1100px) {
  .pill-sm { position: relative; }
  .pill-sm::after { content: ""; position: absolute; inset: -7px 0; }
  .nav-brand { display: inline-flex; align-items: center; min-height: 44px; }
  .link-arrow { min-height: 44px; }
  .footer-cols nav { gap: 0; }
  .footer-cols h2 { margin-bottom: 6px; }
  .footer-cols nav a { padding-block: 8px; }
  .segmented button { min-height: 40px; }
  .searchfield { height: 44px; }
  .copy { min-height: 40px; }
  .sheet-close, .sheet-list button { width: 40px; height: 40px; }
  .sheet-list li { grid-template-columns: 1fr auto 40px; }
}
/* Stacked in a column, flex: 1 collapsed the send buttons to their text height. */
@media (max-width: 640px) { .sheet-actions .pill { flex: none; } }
/* Tablet portrait: filter and search share one row, so the sticky bar takes less of the list. */
@media (min-width: 641px) and (max-width: 960px) { .searchfield { flex: 1 1 200px; width: auto; } }

/* =====================================================================
   v6 layer: each page is a signpost. One idea per screen, large real photographs, and the detail one link away.
   ===================================================================== */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-flush { padding-bottom: 0; }
.section-top { padding-top: 16px; }
.section-tint { background: var(--gray); }
.section-head { max-width: var(--wide); margin: 0 auto clamp(28px, 3.5vw, 44px); padding-inline: var(--gutter); }

/* Hero: headline, one sentence and one action */
.hero-h { text-wrap: balance; }
.hero-sub { max-width: 44ch; }
.hero-ctas { align-items: center; gap: 12px 24px; }
.link-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font-weight: 500; text-decoration: none; }
.link-wa .wa-ico { width: 20px; height: 20px; color: #25d366; fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .link-wa:hover { text-decoration: underline; text-underline-offset: 3px; } }
.credential-short .quick { margin-top: 20px; }
@media (min-width: 1101px) { .hero .hero-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); } .hero-page .hero-inner { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: shutter 1100ms var(--ease-out) both; }
  @keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
}

/* Division tiles: the picture and the name, nothing else */
.tiles { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(340px, 56svh, 500px); padding: clamp(22px, 2.6vw, 32px); border-radius: 28px; background: var(--ink); color: #fff; text-decoration: none; transition: transform 100ms ease-out; }
.tile:active { transform: scale(0.99); }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 34%, rgba(0, 0, 0, 0) 66%); }
.tile h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem); line-height: 1.1; letter-spacing: -0.024em; text-wrap: balance; }
.tile p { margin-top: 8px; max-width: 34ch; color: rgba(255, 255, 255, 0.9); }
.tile-navy { background: var(--navy); }
.tile-navy::after { content: none; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }

/* Both credentials share the first screen. The COFEPRIS card stays on top so its search list opens over the ema card. */
.hero-creds { display: grid; gap: 12px; min-width: 0; }
.hero-creds .credential { z-index: 2; }
.hero-creds .quick-list { background: var(--navy); }
.hero-creds .credential-short { display: flex; flex-direction: column; text-decoration: none; transition: background-color 150ms ease, transform 100ms ease-out; }
.credential-short .credential-top { flex: 1; }
.credential-short:active, .ema-hero:active { transform: scale(0.99); }
.ema-hero { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: none; padding: 20px 24px; border-radius: 28px; text-align: center; text-decoration: none; transition: background-color 150ms ease, transform 100ms ease-out; }
.ema-hero .ema-id { margin-top: 4px; font-size: 2rem; white-space: nowrap; }
.ema-foot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: auto; padding-top: 12px; color: #fff; }
.ema-foot .status { margin-top: 0; }
.ema-go { font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .credential-short:hover { background: rgba(11, 31, 58, 0.36); }
  .ema-hero:hover { background: rgba(90, 14, 45, 0.46); }
  .credential-short:hover .ema-go, .ema-hero:hover .ema-go { text-decoration: underline; text-underline-offset: 3px; }
}
@media (prefers-reduced-motion: no-preference) { .js .ema-hero { animation: rise 900ms var(--ease-out) 400ms both; } }

/* Pharma page, in the order of the company's presentation: who we are, four services, specialized capabilities, equipment, methods, contact. */
.farma-intro .lede + .lede { margin-top: 14px; }
.farma-intro .link-arrow { margin-top: 20px; }
.farma-serv { padding-top: 0; }
/* These tiles carry the presentation's photos and full descriptions: photo in full colour on top, text below it, no shade over the picture. */
.farma-serv .tile { justify-content: flex-start; min-height: 0; padding: 0 0 clamp(20px, 2.4vw, 28px); background: var(--gray); color: var(--ink); }
.farma-serv .tile::after { content: none; }
.farma-serv .tile img { position: static; z-index: auto; flex: none; height: clamp(200px, 34svh, 270px); }
.farma-serv .tile h3, .farma-serv .tile p, .farma-serv .tile .chips { margin-inline: clamp(20px, 2.4vw, 28px); }
.farma-serv .tile h3 { margin-top: clamp(18px, 2vw, 24px); font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem); }
.farma-serv .tile p { max-width: 60ch; color: var(--ink-2); }
.farma-serv .tile .chips { margin-top: 12px; }
.farma-serv .tile .chips li { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: var(--ink); }
.svc-links { display: flex; flex-wrap: wrap; gap: 8px 32px; max-width: var(--wide); margin: 24px auto 0; padding-inline: var(--gutter); }

/* Pick a capability, its information opens beside the list. Panels share one grid cell so the page keeps its height when switching. */
#capacidades { padding-block: clamp(48px, 6vw, 72px); }
#capacidades .head { align-items: baseline; row-gap: 8px; margin-bottom: 24px; }
#capacidades .h2 { max-width: none; font-size: clamp(2rem, 1.3rem + 1.7vw, 2.75rem); }
.caps { display: grid; grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr); gap: 16px; align-items: start; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.caps-list { display: grid; gap: 8px; }
.caps-list button { display: flex; align-items: center; min-height: 68px; padding: 10px 16px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-align: left; transition: background-color 150ms ease, color 150ms ease, transform 100ms ease-out; }
.caps-list button:active { transform: scale(0.98); }
.caps-list button[aria-selected="true"] { background: var(--navy); color: #fff; }
@media (hover: hover) and (pointer: fine) { .caps-list button[aria-selected="false"]:hover { background: #e8e8ed; } }
html:not(.js) .caps-list { display: none; }
html:not(.js) .caps { grid-template-columns: minmax(0, 1fr); }
.caps-panels { display: grid; gap: 16px; min-width: 0; }
.cap-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); overflow: hidden; border-radius: 28px; background: #fff; scroll-margin-top: 72px; }
.js .caps-panels { gap: 0; }
.js .cap-panel { grid-area: 1 / 1; }
.js .cap-panel:not(.is-active) { visibility: hidden; }
.cap-text { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 36px); }
.cap-text h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.15; letter-spacing: -0.022em; text-wrap: balance; }
.cap-text > p { margin-top: 12px; color: var(--ink-2); }
.cap-data { display: grid; gap: 16px; margin: 20px 0 22px; }
.cap-data dt { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.cap-data .tags { margin-top: 8px; }
.cap-methods a { display: block; margin: -6px -12px; padding: 6px 12px; border-radius: 980px; color: var(--link); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cap-methods a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.cap-text > .link-arrow { margin-top: auto; }
.cap-photo { position: relative; min-height: 280px; }
.cap-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap-photo-contain { background: #fff; }
.cap-photo-contain img { padding: 4%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) { .js .cap-panel.is-active { animation: fade 260ms var(--ease-out); } }
@media (max-width: 1100px) {
  .cap-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .cap-photo { order: -1; min-height: 220px; }
}
/* Short laptop screens: heading, list and open panel fit one view. */
@media (min-width: 1101px) and (max-height: 820px) {
  #capacidades { padding-top: 48px; }
  .caps-list button { min-height: 60px; }
  .cap-text { padding: 28px; }
}
/* Narrow: the list becomes two columns above a single open panel. */
@media (max-width: 900px) {
  .caps { grid-template-columns: minmax(0, 1fr); }
  .caps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps-list button { min-height: 76px; padding: 10px 14px; font-size: 0.9375rem; }
  .js .cap-panel:not(.is-active) { display: none; }
}

.eq-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: var(--wide); margin: 0 auto clamp(28px, 3.5vw, 44px); padding-inline: var(--gutter); }
.eq-stats dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.eq-stats dd { margin-top: 8px; max-width: 30ch; color: var(--ink-2); }
.eq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.eq-card { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--gray); }
.eq-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.eq-card dl { margin-top: 12px; }
.eq-card dl > div { padding-block: 14px; border-top: 1px solid var(--hairline); }
.eq-card dl > div:first-child { border-top: 0; }
.eq-card dt { font-weight: 600; }
.eq-card dd { margin-top: 2px; color: var(--ink-2); }

.mtd { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.mtd .h2 { max-width: none; }
.mtd-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 3.5vw, 44px); }
.mtd-cols article { padding: 24px; border-radius: 24px; background: rgba(0, 0, 0, 0.16); }
.mtd-cols h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.018em; }
.mtd-cols ul { display: grid; gap: 10px; margin-top: 14px; }
.mtd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(24px, 3vw, 36px); }
.visit-rows dd.visit-plain, .visit-rows dd.visit-plain a { font-family: inherit; font-size: 1rem; font-weight: 400; letter-spacing: 0; overflow-wrap: anywhere; }
.visit-rows dd.visit-plain a { color: var(--link); }
.visit-tels a { display: block; width: fit-content; }
.contact-tel { display: block; width: fit-content; }
.contact-tel + .contact-tel { margin-top: 0; }
/* Services detail: stability and plate reading close the bento as one row. */
.card-rest { grid-column: span 8; }
.more-link.more-link-gray { margin-top: 16px; background: var(--gray); }
.more-link-gray .more-arrow { color: var(--link); }
@media (max-width: 1100px) { .card-stab, .card-rest { grid-column: span 2; } }
@media (max-width: 640px) { .card-stab, .card-rest { grid-column: span 1; min-height: 0; } .card-rest .card-body { position: relative; } .card-rest .card-split { flex-direction: column !important; align-items: flex-start !important; } }
@media (max-width: 900px) { .mtd-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .eq-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .eq-stats { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Contact on a photograph */
.visit { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(100svh, 720px); padding-block: 56px; }
.visit-photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.visit-inner { display: flex; justify-content: flex-end; width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.visit-card { width: min(440px, 100%); padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: #fff; box-shadow: var(--shadow-float); }
.visit-card h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); line-height: 1.12; letter-spacing: -0.024em; text-wrap: balance; }
.visit-rows { display: grid; gap: 14px; margin: 22px 0 0; }
.visit-rows dt { color: var(--ink-2); font-size: 0.9375rem; }
.visit-rows dd a { font-family: var(--font-display); font-weight: 700; font-size: 1.625rem; letter-spacing: -0.022em; text-decoration: none; font-variant-numeric: tabular-nums; }
.visit-note { margin-top: 14px; color: var(--ink-2); }
.pill-block { display: flex; width: 100%; margin-top: 22px; }

/* Split: words on one side, one picture on the other */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.split-wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split-photo img { width: 100%; height: clamp(360px, 76svh, 620px); border-radius: 28px; object-fit: cover; }
.split .h2 { font-size: clamp(2rem, 1.3rem + 1.7vw, 2.75rem); }
.split .lede { max-width: 42ch; }
.field-wide-even .h2 { max-width: 24ch; font-size: clamp(2rem, 1.3rem + 1.9vw, 3rem); }
.one-screen .hero-h { font-size: clamp(2.25rem, 1.3rem + 2.6vw, 3.5rem); }
@media (min-width: 1101px) { .hero-page .hero-copy { max-width: 1040px; } }
.split .tx-photo { min-height: clamp(420px, 76svh, 620px); }
.split .instrument img { padding: 6%; }

/* Service index: each row opens its detail */
.svc-list { margin: clamp(16px, 2vw, 24px) -14px 0; }
.svc-list a { display: block; padding: 10px 14px; border-radius: 14px; text-decoration: none; transition: background-color 150ms ease; }
.svc-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.014em; }
.svc-list strong::after { content: " ›"; color: var(--link); }
.svc-list span { display: block; margin-top: 1px; font-size: 0.9375rem; color: var(--ink-2); }
.svc-list a:active { background: var(--gray); }
@media (hover: hover) and (pointer: fine) { .svc-list a:hover { background: var(--gray); } }

/* One whole field of colour per page */
.field-wide { padding-block: clamp(64px, 8vw, 112px); color: #fff; }
.field-blue { background: var(--blue); }
.field-wine-wide { background: var(--wine); }
.field-wide .lede { color: rgba(255, 255, 255, 0.9); }
.field-wide .h2 { max-width: 20ch; }
.field-wide-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.field-wide-even { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.big-figure { font-family: var(--font-display); font-weight: 700; font-size: clamp(7rem, 17vw, 15rem); line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.word-list li { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1.14; letter-spacing: -0.03em; }

.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.link-wine { color: var(--wine); }
.link-light { margin-top: 20px; color: #6cb6ff; }

/* Where a block is long, one row sends it to its own page */
.more-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wide) - 2 * var(--gutter)); margin: 16px auto 0; padding: clamp(20px, 2.4vw, 28px) clamp(22px, 3vw, 32px); border-radius: 28px; background: #fff; color: var(--ink); text-decoration: none; transition: transform 100ms ease-out, background-color 150ms ease; }
.more-link:active { transform: scale(0.99); }
.more-link strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem); letter-spacing: -0.018em; }
.more-link span span, .more-link > span:first-child { color: var(--ink-2); }
.more-link strong { color: var(--ink); }
.more-arrow { flex: none; font-size: 1.75rem; line-height: 1; color: var(--wine); transition: transform 200ms var(--ease-out); }
.more-link-ins { margin-top: clamp(32px, 4vw, 48px); background: var(--wine-wash); }
@media (hover: hover) and (pointer: fine) { .more-link:hover .more-arrow { transform: translateX(4px); } }
.band-requisitos .ins-block-head:first-child { margin-top: 0; }

/* Detail pages open on their content, with the way back above the title */
.page-head { padding: clamp(96px, 10vw, 128px) 0 clamp(28px, 3.5vw, 44px); }
.page-head-inner { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.page-head .h2 { max-width: 22ch; }
.page-head .lede { max-width: 62ch; }
.page-head .tx-brand { margin-bottom: 14px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 18px; font-size: 0.9375rem; color: var(--ink-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--link); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { text-decoration: underline; } }
.page-head-wine { background: #f8f1f4; }
.page-head-wine .crumbs a { color: var(--wine); }
.page-head-dark { background: #000; color: #f5f5f7; }
.page-head-dark .lede, .page-head-dark .crumbs { color: #a1a1a6; }
.page-head-dark .crumbs a { color: #6cb6ff; }
.page-head + main > .band:first-child { padding-top: 8px; }
.ema-id { margin-top: 6px; }
.tx-photo .ema-card-short { width: auto; max-width: calc(100% - 8px); }

/* CEDIS fits one screen: no photographs yet, so the page is one field of navy */
.one-screen { display: flex; align-items: center; min-height: 100svh; padding-block: 88px 56px; background: var(--navy); color: #fff; }
.one-screen-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.svc-big { display: grid; gap: clamp(22px, 3svh, 32px); }
.svc-big h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); letter-spacing: -0.022em; }
.svc-big p { margin-top: 6px; color: rgba(255, 255, 255, 0.84); }

/* Firms and contact */
.firms-short { grid-template-columns: minmax(0, 1fr) auto; margin-top: 0; background: var(--gray); }
.contact-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.contact-col { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--gray); }
.contact-col-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(24px, 3vw, 36px); }
.contact-col h2 { font-size: 1.0625rem; font-weight: 600; }
.contact-tel { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 20px; }
.contact-mail a { color: var(--link); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-col .pill-green .wa-ico { width: 20px; height: 20px; margin-right: 8px; fill: currentColor; }
.contact-col-wine { background: var(--wine); color: #fff; }
.contact-col-wine .contact-mail a { color: #fff; }
.contact-mail .copy { background: var(--fill); }
.contact-col-wine .copy { background: rgba(255, 255, 255, 0.18); color: #fff; }
.contact-col .ctile-map { background: #e8e8ed; }
.page-head-wine + main > .band:first-child:not(.band-wine) { padding-top: 40px; }
.band-requisitos { padding-top: 40px; }
.section + .section-flush { padding-top: 0; }
.hero-page .hero-sub { max-width: 60ch; }
.ema-card-short .ema-id { white-space: nowrap; font-size: clamp(1.5rem, 1rem + 2.4vw, 2.25rem); }
.contact-col .ctile-map { position: relative; min-height: 300px; padding: 0; border-radius: 0; background: var(--fill); }
.contact-col .ctile-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-col .map-label { color: var(--ink); }

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles:not(.tiles-2) .tile:first-child { grid-column: 1 / -1; }
  .tile { min-height: 340px; }
  .split, .split-wide-left, .field-wide-even { grid-template-columns: minmax(0, 1fr); }
  .split-photo img { height: 420px; }
  .split .h2, .field-wide .h2 { max-width: 22ch; }
  .one-screen-inner { grid-template-columns: minmax(0, 1fr); }
  .one-screen { padding-block: 104px 64px; }
  .field-wide-even .word-list { display: flex; flex-wrap: wrap; gap: 4px 24px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .tiles:not(.tiles-2) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1fr); }
  .tiles:not(.tiles-2) .tile:first-child { grid-column: auto; }
  .hero-creds .credential-logo { width: min(240px, 100%); }
}
@media (max-width: 760px) {
  .contact-2 { grid-template-columns: minmax(0, 1fr); }
  .field-wide-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .hero-h, .hero-page .hero-h, .one-screen .hero-h { font-size: 2.25rem; }
  /* The COFEPRIS card and its search end inside the first screen. */
  .hero:not(.hero-page) .hero-inner { padding-top: 64px; gap: 14px; }
  .hero-sub { margin-top: 12px; }
  .hero-ctas { margin-top: 16px; gap: 4px 24px; }
  .hero-facts { margin-top: 8px; padding-top: 10px; }
  .credential-short { padding: 14px 20px; }
  .credential-short .quick { margin-top: 12px; padding-top: 12px; }
  /* The two credentials side by side, built the same: logo, label, number, status and link. */
  .hero-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-creds .credential-short, .ema-hero { padding: 12px; border-radius: 20px; }
  .hero-creds .credential-logo { width: min(124px, 100%); height: 52px; margin: 0 0 4px; object-fit: contain; }
  .hero-creds .credential-label, .ema-hero .ema-label { min-height: 2.5em; font-size: 0.75rem; line-height: 1.25; text-wrap: balance; }
  .credential-short .credential-id, .ema-hero .ema-id { margin-top: 2px; line-height: 24px; }
  .credential-short .credential-id { font-size: 1.375rem; }
  .ema-hero .ema-id { font-size: 1.0625rem; letter-spacing: -0.02em; }
  .ema-foot { flex-direction: column; gap: 4px; padding-top: 6px; }
  .ema-foot .status { padding: 3px 10px; font-size: 0.75rem; }
  .ema-go { font-size: 0.8125rem; }
}
@media (max-width: 380px) {
  .hero:not(.hero-page) .hero-h { font-size: 2rem; }
  .hero-creds .credential-short, .ema-hero { padding-inline: 10px; }
  .ema-hero .ema-id { font-size: 1rem; }
}
/* Tablet portrait: the two credentials side by side, each one centred. */
@media (min-width: 641px) and (max-width: 900px) {
  .hero-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-creds .credential-short { padding: 20px 24px; }
  .hero-creds .credential-logo { width: min(240px, 100%); margin: -10px 0 4px; }
  .credential-short .credential-id { font-size: 2.25rem; }
}
/* Phones: the home hero fills the first screen, so the next section never peeks in cut at the fold. */
@media (max-width: 640px) {
  .hero:not(.hero-page) { align-items: center; min-height: 100svh; }
}
/* Phones with the browser's bars showing (about 390x664): both credentials still end inside the first screen. */
@media (max-width: 640px) and (max-height: 700px) {
  .hero:not(.hero-page) .hero-inner { padding-top: 60px; padding-bottom: 8px; gap: 10px; }
  .hero:not(.hero-page) .hero-h { font-size: 2rem; }
  .hero:not(.hero-page) .hero-sub { margin-top: 8px; }
  .hero:not(.hero-page) .hero-ctas { margin-top: 10px; }
  .hero:not(.hero-page) .hero-ctas .pill-lg { height: 48px; }
  .hero-creds .credential-short, .hero-creds .ema-hero { padding-block: 8px; }
}
@media (max-width: 640px) {
  .firms-short .firms-cta { max-width: none; }
  .tiles, .tiles-2 { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 300px; }
  .visit { display: block; min-height: 0; padding: 0; }
  .visit-photo { position: relative; z-index: auto; height: 56svh; }
  .visit-inner { margin-top: -72px; padding-bottom: 40px; }
  .visit-card { position: relative; }
  .firms-short { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .firms-short .pill { width: 100%; }
  .split .tx-photo { min-height: 460px; padding-bottom: 16px; }
  .hero-ctas .link-wa { flex: 1 1 100%; justify-content: center; }
  .big-figure { font-size: 7rem; }
  .page-actions .pill { width: 100%; }
}
@media (prefers-reduced-transparency: reduce) { .visit-card { box-shadow: none; } }
