/* ============================================================================
   BMPLAST — DESIGN SYSTEM v5.3 (COMPLETE FILE)
   v5.3: card-internal .SEC .FEATURED removed; footer hairline joins the
   parting-line system (.pl on footer, border swapped to the pseudo hairline).
   Tag order down the page: WELCOME · FEATURED · EU-CO-FUNDED · ABOUT-BM-PLAST ·
   BM-PRODUCTS · ONE-PARTNER · WORK-WITH-US · GET-IN-TOUCH.
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { min-height: 100dvh; }
img, svg, figure { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; margin: 0; }
li::marker { content: none; }
a { color: inherit; text-decoration: none; }

::selection { background: #ED8B16; color: #141414; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
html { scrollbar-color: #3A3A3C transparent; }
:root[data-theme="dark"] { scrollbar-color: #3D3D3D transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3A3A3C; border-radius: 999px; }
:root[data-theme="dark"]::-webkit-scrollbar-thumb { background: #3D3D3D; }

:root {
  color-scheme: light;
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --ink: #141414;
  --ink-2: #6E6B64;
  --line: #E4E2DC;
  --line-2: #C9C6BD;
  --orange: #ED8B16;
  --orange-hover: #D67A0E;
  --yellow: #F2B33D;
  --yellow-hover: #DFA32E;
  --green: #4C8C6A;
  --blue: #5B8DB8;
  --color-teal: #157A6E;
  --band-bg: #141414;
  --band-ink: #F2F1ED;
  --products-bg: #F8F9FA;
  --parting-gap: 32px;
  --pt-teal-bg: #157A6E;   --pt-teal-fg: #FFFFFF;
  --pt-blue-bg: #5B8DB8;   --pt-blue-fg: #FFFFFF;
  --pt-lgreen-bg: #E3EFE0; --pt-lgreen-fg: #141414;
  --pt-pink-bg: #F7DFE6;   --pt-pink-fg: #141414;
  --pt-green-bg: #4C8C6A;  --pt-green-fg: #FFFFFF;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --step--1: 0.8rem;
  --step-0: 1rem;
  --step-1: clamp(1.1rem, 1.05rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.25rem + 0.5vw, 1.7rem);
  --step-3: clamp(1.8rem, 1.6rem + 1vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.7rem + 1.8vw, 3rem);
  --step-5: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 8px;
}

:root[data-theme="dark"] {
color-scheme: dark;
--bg: #141414;
--surface: #16151C;
--ink: #F2F1ED;
--ink-2: #A6A39B;
--line: #2A2A2A;
--line-2: #3D3D3D;
--color-teal: #3FB3A1;
--band-bg: #16151C;
--band-ink: #F2F1ED;
--products-bg: #16181D;
  --pt-teal-bg: #3FB3A1;   --pt-teal-fg: #141414;
  --pt-blue-bg: #8FC0D6;   --pt-blue-fg: #141414;
  --pt-lgreen-bg: #E3EFE0; --pt-lgreen-fg: #141414;
  --pt-pink-bg: #F7DFE6;   --pt-pink-fg: #141414;
  --pt-green-bg: #7FBF9A;  --pt-green-fg: #141414;
}

/* PATCH: Welcome & Featured sections -> Dark Graphite in Night Shift */
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .showcase-section {
background: var(--products-bg);
}
/* PATCH: About BM Plast (Stats) section -> #16151C in Night Shift */
:root[data-theme="dark"] .pl[data-sec=".SEC .ABOUT-BM-PLAST"] {
background: #16151C;
}

/* PATCH: Header menu -> Dark Graphite in Night Shift */
:root[data-theme="dark"] .site-header {
  background: var(--products-bg);
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.skip-link {
  position: fixed; inset-inline-start: 16px; inset-block-start: -64px;
  z-index: 200; padding: 12px 20px;
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius);
  transition: inset-block-start 0.3s var(--ease);
}
.skip-link:focus-visible { inset-block-start: 16px; }

.wrap { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.2s ease;
}
.loader.done { opacity: 0; pointer-events: none; }
.loader .mono { font-size: 12px; color: var(--ink-2); }

.cursor-glow {
position: fixed; left: 0; top: 0;
width: 760px; height: 760px;
border-radius: 50%;
pointer-events: none;
z-index: 2;
/* Day Shift: wide, soft, barely-there yellow wash (--yellow #F2B33D) */
background: radial-gradient(circle, rgba(242, 179, 61, 0.10), rgba(242, 179, 61, 0.045) 45%, transparent 72%);
filter: blur(48px);
transform: translate(-50%, -50%);
opacity: 0;
transition: opacity 0.5s ease;
will-change: left, top;
}
/* Night Shift keeps the original blue halo */
:root[data-theme="dark"] .cursor-glow {
background: radial-gradient(circle, rgba(91, 141, 184, 0.16), transparent 60%);
}
body.has-cursor .cursor-glow { opacity: 1; }

/* BLOCK 1: TOP BAR */
.top-bar {
  background: #141414;
  color: #F2F1ED;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar a { color: #FFFFFF; text-decoration: underline; }
:root[data-theme="dark"] .top-bar { background: #0A0A0A; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: var(--step-0);
  padding: 14px 26px;
  border-radius: var(--radius);
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.3s var(--ease-out);
  will-change: transform;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--orange); color: #141414; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-yellow { background: var(--yellow); color: #141414; }
.btn-yellow:hover { background: var(--yellow-hover); transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: var(--step--1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  width: fit-content;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s var(--ease);
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--orange); border-color: var(--orange); }
.link-arrow:hover svg { transform: translateX(4px); }

.sticky-wa {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: #141414;
  font-weight: 600; font-size: var(--step--1);
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
  transition: background-color 0.25s ease, transform 0.25s var(--ease);
}
.sticky-wa:hover { background: var(--yellow-hover); transform: translateX(-50%) translateY(-2px); }

/* HEADER */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease, background-color 0.4s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand-logo { height: 67px; width: auto; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }

.main-nav ul { display: flex; align-items: center; gap: 32px; list-style: none; }
.main-nav li { list-style: none; }
.main-nav a { position: relative; font-weight: 500; padding-block: 8px; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--orange); }
.main-nav a[aria-current="page"]::after { background: var(--orange); transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.shift-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--step--1); font-weight: 500; padding: 8px 4px; transition: color 0.3s ease; }
/* v6.4 — lock the toggle label to the width of the longest string
   ("Night Shift") so Day/Night swapping never resizes .header-actions
   and never reflows .main-nav. One rule, all pages. */
.shift-toggle [data-theme-label] { display: inline-block; min-width: 5.9em; text-align: left; }
.shift-toggle:hover { color: var(--ink); }
.shift-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
:root[data-theme="dark"] .shift-dot { background: var(--yellow); box-shadow: 0 0 8px color-mix(in srgb, var(--yellow) 55%, transparent); }

.lang { position: relative; }
.lang-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); font-weight: 600; padding: 8px 4px; color: var(--ink-2); transition: color 0.3s ease; }
.lang-toggle:hover { color: var(--ink); }
.lang-toggle .chev { transition: transform 0.3s var(--ease); }
.lang-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-panel {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px);
  z-index: 120; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.10); overflow: hidden;
}
.lang-panel[hidden] { display: none; }
.lang-panel a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: var(--step--1); font-weight: 500; border-top: 1px solid var(--line); transition: background-color 0.2s ease; }
.lang-panel li:first-child a { border-top: 0; }
.lang-panel a:hover { background: var(--bg); }
.lang-panel .code { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 6px; color: var(--ink-2); }
.lang-panel .path { margin-inline-start: auto; color: var(--ink-2); font-size: 11px; }
.lang-panel a[aria-current] { box-shadow: inset 2px 0 0 var(--orange); }

.burger { display: none; width: 30px; height: 18px; flex-direction: column; justify-content: space-between; }
.burger::after { content: ""; }
.burger span,
.burger::after { display: block; height: 2px; width: 100%; background: var(--ink); transition: width 0.3s var(--ease); }
.burger:hover::after { width: 65%; margin-inline-start: auto; }

@media (max-width: 900px) { .main-nav { display: none; } .burger { display: inline-flex; } }
@media (max-width: 560px) { .header-actions .lang { display: none; } }

/* MENU DIALOG */
.menu {
  position: fixed; inset: 0; margin: 0;
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  border: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  display: none; opacity: 0; overflow-y: auto;
  transition: opacity 0.4s var(--ease), display 0.4s allow-discrete, overlay 0.4s allow-discrete;
}
.menu[open] { display: grid; grid-template-rows: auto 1fr; opacity: 1; }
.menu::backdrop { background: transparent; }
@starting-style { .menu[open] { opacity: 0; } }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); border-bottom: 1px solid var(--line); }
.menu-close { width: 44px; height: 44px; display: grid; place-items: center; transition: transform 0.35s var(--ease); }
.menu-close:hover { transform: rotate(90deg); }
.menu-body { padding-block: 40px 64px; }
.menu-body > * { opacity: 0; translate: 0 16px; transition: opacity 0.5s var(--ease), translate 0.5s var(--ease); }
.menu[open] .menu-body > * { opacity: 1; translate: 0 0; }
.menu[open] .menu-body > *:nth-child(1) { transition-delay: 0.08s; }
.menu[open] .menu-body > *:nth-child(2) { transition-delay: 0.16s; }
@starting-style { .menu[open] .menu-body > * { opacity: 0; translate: 0 16px; } }
.menu .lang { margin-block-end: 40px; }
.menu .lang-toggle { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.menu .lang-panel { position: static; box-shadow: none; margin-top: 8px; }
.menu-list li { border-bottom: 1px solid var(--line); }
.menu-list li:first-child { border-top: 1px solid var(--line); }
.menu-list a { display: block; padding: 24px 0; font-size: var(--step-3); font-weight: 500; }

/* HERO */
.hero { padding-block: 40px 32px; }
.eyebrow { color: var(--color-teal); margin-block-end: 16px; }
.hero-title { font-size: var(--step-5); font-weight: 600; line-height: 1.08; max-width: 24ch; }
.hero-sub { font-size: 18px; color: var(--ink-2); margin-block: 16px 32px; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* PARTING LINE SYSTEM */
.pl { position: relative; }
.pl::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  pointer-events: none;
  background: var(--line);
}
.pl::after {
  content: attr(data-sec);
  position: absolute; top: -18px;
  right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
  height: 18px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-2);
  border-bottom: 1px solid var(--orange);
}
.pl.eu, .pl.usp, .pl.site-footer { border-top-color: transparent; }

/* CROSSHAIR DESIGN */
.frame::before,
.showcase-image::before {
  content: "";
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  z-index: 6;
  pointer-events: none;
  border-radius: 50%;
  background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1V13M1 7H13' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: background-color 0.3s ease, background-image 0.3s ease;
}
.pcard:hover .frame::before,
.showcase-card:hover .showcase-image::before {
  background-color: #FFFFFF;
  border: 1px solid var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1V13M1 7H13' stroke='%23ED8B16' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* SHOWCASE */
.showcase-section { padding-block: var(--parting-gap) 96px; }
.showcase-card {
  width: 100%; max-width: none;
  background: var(--surface);
  border: 1px solid var(--orange);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.showcase-viewport { overflow: hidden; }
.showcase-track { display: flex; transition: transform 0.5s var(--ease); }
.showcase-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 40px; padding: 40px;
  align-items: center; min-height: 440px;
}
.showcase-content { display: flex; flex-direction: column; gap: 16px; }

.product-tag {
  display: inline-block; width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  margin-block-end: 4px;
}
.pt-teal   { background: var(--pt-teal-bg);   color: var(--pt-teal-fg); }
.pt-blue   { background: var(--pt-blue-bg);   color: var(--pt-blue-fg); }
.pt-lgreen { background: var(--pt-lgreen-bg); color: var(--pt-lgreen-fg); }
.pt-pink   { background: var(--pt-pink-bg);   color: var(--pt-pink-fg); }
.pt-green  { background: var(--pt-green-bg);  color: var(--pt-green-fg); }

.slide-title { font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.slide-usp { font-size: 18px; color: var(--ink-2); max-width: 36ch; }

.showcase-image {
  position: relative;
  height: 100%; min-height: 320px; max-height: 440px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 28% 22%, color-mix(in srgb, var(--ink) 5%, transparent), transparent 58%),
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 1px, transparent 1px 14px);
}
.showcase-image:hover,
.pcard .frame:hover {
  border: 1px solid var(--orange) !important;
}
.showcase-image:hover img,
.pcard .frame:hover img {
  transform: scale(1.05);
}
.showcase-image:hover .cap-plate,
.pcard .frame:hover .cap-plate {
  background: var(--orange);
  color: #FFFFFF;
}
.showcase-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease-out; }
img.is-missing { display: none; }
.showcase-controls { display: flex; align-items: center; gap: 12px; padding: 20px 40px; border-top: 1px solid var(--line); }
.car-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.car-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.car-btn .icon-play { display: none; }
.car-btn[aria-pressed="true"] .icon-pause { display: none; }
.car-btn[aria-pressed="true"] .icon-play { display: block; }
.dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color 0.25s ease, border-color 0.25s ease; cursor: pointer; }
.dot[aria-current="true"] { background: var(--ink); border-color: var(--ink); }
.slide-counter { margin-inline-start: auto; color: var(--ink-2); }
.showcase-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.showcase-progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width 0.1s linear; }
@media (max-width: 768px) {
  .showcase-slide { grid-template-columns: 1fr; padding: 24px; min-height: 0; gap: 24px; }
  .showcase-image { min-height: 240px; height: clamp(240px, 60vw, 360px); max-height: none; }
  .showcase-controls { padding: 16px 24px; }
}

/* CAPTION PLATES */
.frame .cap-plate,
.showcase-image .cap-plate {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: block;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  border-radius: 0;
}
.cap-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* EU LOCKUP */
.eu { border-block: 1px solid var(--line); background: var(--surface); }
.eu-lockup { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding-block: 16px; }
.eu-flag-frame {
  position: relative; flex: 0 0 auto;
  width: 264px; height: 144px;
  border: 0; padding: 0;
  background: none;
  display: grid; place-items: center;
}
.eu-flag-frame img { max-height: 100%; width: auto; }
.eu-flag-frame .frame-cap { left: 8px; right: 8px; bottom: 6px; display: none; }
.eu-flag-frame.img-missing .frame-cap { display: block; }
.eu-line1 { font-weight: 600; }
.eu-line2 { font-size: var(--step--1); color: var(--ink-2); }
.eu-disclaimer { font-size: var(--step--1); color: var(--ink-2); margin-block-start: 16px; max-width: 52ch; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-value { display: block; font-size: clamp(0.85rem, 0.65rem + 0.8vw, 1.25rem); font-weight: 600; letter-spacing: -0.02em; margin-block-end: 8px; }
.stat-label { color: var(--ink-2); line-height: 1.7; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* WHAT WE MAKE panel */
.section-products { background: var(--products-bg); }

.section-head { margin-block-end: clamp(40px, 5vw, 64px); }
.section-head h2, .usp h2, .cta-inner h2 { font-size: var(--step-4); font-weight: 600; }
.section-head p { color: var(--ink-2); font-size: 18px; margin-block-start: 12px; max-width: 56ch; }
@media (min-width: 1024px) { .no-wrap { white-space: nowrap; max-width: none; } }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 1024px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .pgrid { grid-template-columns: 1fr; } }

.pcard { display: flex; flex-direction: column; gap: 16px; }
.pcard h3 { font-size: var(--step-2); font-weight: 600; }
.art-plate {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  margin-block-end: -4px;
}
.pcard .frame { height: clamp(220px, 20vw, 340px); cursor: pointer; transition: border-color 0.3s ease; }
.pcard .frame:hover { border-color: var(--orange); }
.pcard p { color: var(--ink-2); font-size: 18px; }
.pcard .link-arrow { margin-block-start: auto; cursor: pointer; }

.card-badge { position: absolute; top: 10px; left: 10px; z-index: 5; margin: 0; }

.frame {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, color-mix(in srgb, var(--ink) 5%, transparent), transparent 58%),
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 1px, transparent 1px 14px);
  --glare-x: 50%; --glare-y: 50%;
}
:root[data-theme="dark"] .frame,
:root[data-theme="dark"] .showcase-image {
  background:
    radial-gradient(circle at 28% 22%, color-mix(in srgb, var(--ink) 3.5%, transparent), transparent 58%),
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink) 3.5%, transparent) 0 1px, transparent 1px 14px);
}
.frame::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(242, 179, 61, 0.15), transparent 50%);
  opacity: 0; transition: opacity 0.4s ease;
}
:root[data-theme="dark"] .frame::after {
  background: radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(242, 179, 61, 0.1), transparent 50%);
}
.frame:hover::after { opacity: 1; }
.frame-media { position: absolute; inset: 0; transition: transform 0.6s ease-out; }
.frame:hover .frame-media { transform: scale(1.05); }
.frame-media img { width: 100%; height: 100%; object-fit: cover; }
.frame-cap {
  position: absolute; left: 12px; bottom: 10px; z-index: 4;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  padding: 4px 8px; border-radius: 4px;
}
html:not(.js) img[data-optional] { display: none; }
html:not(.js) .eu-flag-frame .frame-cap { display: block; }

/* Meaningful tags — filled (matching carousel pills exactly) */
.tag {
display: inline-block;
width: fit-content;
font-family: var(--font-mono);
font-size: 11px;
font-weight: 400;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 5px 12px;
border-radius: 999px;
margin-block-end: 4px;
}
.tag-green { background: var(--pt-green-bg); color: var(--pt-green-fg); }
.tag-blue  { background: var(--pt-blue-bg);  color: var(--pt-blue-fg); }

/* BLOCK 5: INDUSTRIES SECTION */
.ind-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 64px; }
@media (max-width: 768px) { .ind-grid { grid-template-columns: 1fr; } }
.ind-card { display: flex; flex-direction: column; gap: 12px; }
.ind-card .art-plate { display: none; }
.ind-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
.ind-card:hover img { border-color: var(--orange); }
.ind-card h3 { font-size: var(--step-2); font-weight: 600; }
.ind-card p { color: var(--ink-2); font-size: 18px; }

/* USP */
.usp { border-block: 1px solid var(--line); background: var(--surface); }
.usp-inner { max-width: 860px; }
.usp h2 { margin-block-end: 20px; }
.usp p { color: var(--ink-2); font-size: 18px; }

/* SERVICES */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); }
.split-sticky { position: sticky; inset-block-start: 20vh; align-self: start; height: fit-content; }
.split-sticky h2 { font-size: var(--step-4); font-weight: 600; margin-block-end: 24px; }
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: var(--step--1); font-weight: 500; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-sticky { position: static; } }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding-block: 32px; border-top: 1px solid var(--line); transition: opacity 0.4s ease; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .idx { color: var(--ink-2); padding-block-start: 6px; transition: color 0.4s ease; }
.steps h3 { font-size: var(--step-2); font-weight: 600; margin-block-end: 8px; transition: color 0.4s ease; }
.steps p { color: var(--ink-2); max-width: 52ch; }
.steps li:not(.is-active) { opacity: 0.4; }
.steps li.is-active h3 { color: var(--orange); }
.steps li.is-active .idx { color: var(--orange); }
@media (max-width: 560px) { .steps li { grid-template-columns: 1fr; gap: 8px; } }

/* CTA BAND & FORM */
.cta-band { background: var(--band-bg); color: var(--band-ink); color-scheme: dark; }
.cta-inner { padding-block: var(--section); max-width: 860px; }
.cta-inner h2 { margin-block-end: 16px; }
.cta-inner p { color: color-mix(in srgb, var(--band-ink) 68%, transparent); font-size: 18px; max-width: 56ch; margin-block-end: 24px; }
.cta-actions { margin-block-end: 40px; }

.cta-form {
  border: 1px solid var(--orange);
  border-radius: 12px;
  padding: 32px;
}
@media (max-width: 560px) { .cta-form { padding: 24px; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form .field-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.form label { display: block; font-size: var(--step--1); font-weight: 600; margin-block-end: 8px; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 14px 16px; color: var(--ink);
  transition: border-color 0.25s ease;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); }
.form-status { font-size: var(--step--1); color: var(--ink-2); min-height: 1.2em; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-aside { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 32px; height: fit-content; }
.contact-aside ul { display: grid; gap: 12px; color: var(--ink-2); }
.contact-aside a:hover { color: var(--ink); }
.cta-form { margin-block-start: 8px; }
.cta-band .form label { color: var(--band-ink); }
.cta-band .form input, .cta-band .form select, .cta-band .form textarea {
background: #141414;
border-color: color-mix(in srgb, var(--band-ink) 25%, transparent);
color: var(--band-ink);
}
.cta-band .form select option {
background: #141414;
color: #F2F1ED;
} 
.cta-band .form input:focus, .cta-band .form textarea:focus { border-color: var(--orange); }
.cta-band .form-status { color: color-mix(in srgb, var(--band-ink) 70%, transparent); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(32px, 5vw, 64px); padding-block: clamp(48px, 6vw, 80px); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { display: grid; gap: 12px; }
.footer-grid ul a { color: var(--ink-2); transition: color 0.2s ease; }
.footer-grid ul a:hover { color: var(--ink); }
.footer-lockup { padding-block: 0; margin-block-start: 24px; gap: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  color: var(--ink-2); font-size: var(--step--1);
}
.footer-bottom p:nth-child(2) { margin-inline-start: auto; }
.folio { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.site-footer .footer-bottom { padding-block-end: 96px; }

/* SUBPAGES */
.page-head { padding-block: clamp(48px, 7vw, 96px) 0; }
.page-head h1 { font-size: var(--step-5); font-weight: 600; }
.page-head p { color: var(--ink-2); font-size: 18px; margin-block-start: 16px; max-width: 56ch; }
.pblock { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.pblock:first-of-type { border-top: 0; }
.pblock .frame { height: clamp(240px, 22vw, 420px); }
.pblock h2 { font-size: var(--step-3); font-weight: 600; margin-block: 16px 12px; }
.pblock > div > p { color: var(--ink-2); max-width: 56ch; }
@media (max-width: 900px) { .pblock { grid-template-columns: 1fr; } }
.specs { margin-block-start: 24px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.specs dd { color: var(--ink); }
.specs-blue dt { color: var(--blue); }
:root[data-theme="dark"] .specs-blue dt { color: color-mix(in srgb, var(--blue) 70%, white); }
@media (max-width: 560px) { .specs div { grid-template-columns: 1fr; gap: 2px; } }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .svc-grid { grid-template-columns: 1fr; } }
.svc-card { border-top: 1px solid var(--line); padding-block-start: 24px; }
.svc-card h2 { font-size: var(--step-2); font-weight: 600; margin-block-end: 8px; }
.svc-card p { color: var(--ink-2); }
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 900px) { .proc-grid { grid-template-columns: 1fr; } }
.proc-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 32px; }
.proc-card h2 { font-size: var(--step-2); font-weight: 600; margin-block-end: 8px; }
.proc-card p { color: var(--ink-2); }
.tech-section { max-width: 860px; }
.tech-section h2 { font-size: var(--step-3); font-weight: 600; margin-block-end: 16px; }
.tech-section p { color: var(--ink-2); font-size: 18px; }

/* 404 */
.nf {
  min-height: 100dvh;
  display: grid; place-items: center; align-content: center;
  gap: 24px; padding: 48px var(--gutter);
  text-align: center;
}
.nf-svg { width: min(280px, 70vw); color: var(--line-2); }
.nf-title {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
}

/* MOTION */
[data-reveal] {
  opacity: 0; transform: translateY(24px); filter: blur(8px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.scroll-progress-bar {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--orange); transform-origin: left; transform: scaleX(0);
  z-index: 9999; pointer-events: none; transition: transform 0.1s linear;
}

/* MOBILE SPACING FOR EU SECTION + STATS */
@media (max-width: 768px) {
.pl[data-sec=".SEC .EU-CO-FUNDED"] {
margin-top: 32px;
}
.pl[data-sec=".SEC .ABOUT-BM-PLAST"] {
margin-top: 48px;
}
}


/* COOKIE CONSENT OVERRIDES TO MATCH THEME */
/* COOKIE CONSENT OVERRIDES TO MATCH THEME */
.cc-window { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }

/* Dark theme: 1px visible grey border on cookie notice (covers v2 and v3) */
:root[data-theme="dark"] .cc-window,
:root[data-theme="dark"] #cc-main .cm,
:root[data-theme="dark"] #cc-main .pm {
  border: 1px solid #4A4A4A !important;
}
/* Dark theme: align cookie notice internals — white text, grey divider and
   secondary-button border (real v3 variable names, verified against dist css) */
:root[data-theme="dark"] #cc-main {
  --cc-bg: #16151C;
  --cc-primary-color: #F2F1ED;
  --cc-secondary-color: #A6A39B;
  --cc-separator-border-color: #4A4A4A;
  --cc-btn-secondary-bg: #141414;
  --cc-btn-secondary-color: #F2F1ED;
  --cc-btn-secondary-border-color: #4A4A4A;
  --cc-btn-secondary-hover-bg: #1C1C1C;
  --cc-btn-secondary-hover-color: #FFFFFF;
  --cc-btn-secondary-hover-border-color: #4A4A4A;
  --cc-footer-bg: #141414;
  --cc-footer-color: #A6A39B;
  --cc-footer-border-color: #4A4A4A;
  --cc-cookie-category-block-bg: #141414;
  --cc-cookie-category-block-border: #4A4A4A;
  --cc-cookie-category-block-hover-bg: #1C1C1C;
  --cc-cookie-category-block-hover-border: #4A4A4A;
  --cc-toggle-on-bg: #ED8B16;
  --cc-toggle-off-bg: #3D3D3D;
  --cc-toggle-on-knob-bg: #141414;
  --cc-toggle-off-knob-bg: #F2F1ED;
  --cc-overlay-bg: rgba(0, 0, 0, 0.65);
}

.cc-btn { background: var(--orange) !important; color: #141414 !important; border-radius: var(--radius) !important; }
.cc-btn:hover { background: var(--orange-hover) !important; }
.cc-link { color: var(--orange) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .showcase-track { transition: none; }
  .scroll-progress-bar { display: none; }
  .frame::after { display: none; }
  .btn { transition: none; }
  .cursor-glow { display: none; }
  .loader { display: none; }
}

/* ============================================================================
   v6.0 SUB-PAGE COMPONENTS (append-only: breadcrumb, kicker, hub cards,
   pending plates, narratives, FAQ, link cards, blueprint frame)
   ============================================================================ */
.crumb { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-block-end: 16px; 
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-teal); /* Matches homepage eyebrow */
}
.crumb a { 
    color: var(--color-teal); 
    transition: color 0.2s ease; 
}
.crumb a:hover { 
    color: var(--orange); 
}

/* Active state (current page) - defaults to standard ink for light backgrounds */
.crumb [aria-current="page"],
.crumb > span:last-child {
    color: var(--ink);
    pointer-events: none;
}

/* Force Active state to White/Light on dark backgrounds (Products hero & Night Shift) */
body.page-products .page-head .crumb [aria-current="page"],
body.page-products .page-head .crumb > span:last-child,
:root[data-theme="dark"] .crumb [aria-current="page"],
:root[data-theme="dark"] .crumb > span:last-child {
    color: #F2F1ED;
}

/* Align position with homepage eyebrow spacing */
.page-head {
    padding-block-start: 40px; 
}
.kicker {
  display: block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  margin-block-end: 12px;
}
.page-lead { color: var(--ink-2); font-size: 18px; max-width: 60ch; margin-block-start: 16px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 1024px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { border-top: 1px solid var(--line); padding-block-start: 24px; display: flex; flex-direction: column; gap: 12px; }
.hub-card h2 { font-size: var(--step-2); font-weight: 600; }
.hub-card p { color: var(--ink-2); font-size: 18px; }
.hub-card .link-arrow { margin-block-start: auto; }
.pending-plate {
  display: inline-block;
  border: 1px dashed var(--line-2); border-radius: 4px;
  padding: 4px 8px;
  color: var(--ink-2);
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink) 4%, transparent) 0 1px, transparent 1px 10px);
}
.narrative { border-top: 1px solid var(--line); padding-block: 32px; max-width: 860px; }
.narrative h2 { font-size: var(--step-3); font-weight: 600; margin-block-end: 12px; }
.narrative p { color: var(--ink-2); font-size: 18px; max-width: 65ch; }
.faq { max-width: 860px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 16px 0; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 16px; color: var(--ink-2); font-size: 18px; max-width: 65ch; }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 32px; background: var(--surface);
  transition: border-color 0.25s ease;
}
.link-card:hover { border-color: var(--orange); }
.link-card h2 { font-size: var(--step-2); font-weight: 600; }
.link-card svg { flex: 0 0 auto; color: var(--ink-2); transition: transform 0.3s var(--ease), color 0.25s ease; }
.link-card:hover svg { transform: translateX(4px); color: var(--orange); }
.blueprint { height: clamp(260px, 30vw, 420px); }

/* v6.2 — clickable frames + services CTA */
.frame-link { display: block; cursor: pointer; }
.showcase-slide .frame-link { height: 100%; min-height: 320px; max-height: 440px; }
@media (max-width: 768px) {
  .showcase-slide .frame-link { min-height: 240px; height: clamp(240px, 60vw, 360px); max-height: none; }
}
.steps-cta { margin-block-start: 24px; }

/* ============================================================================
   v6.3 — PHARMA SUBPAGE: single-flow graphite datasheet
   ========================================================================== */
/* pharma page: dark graphite ONLY in Night Shift; light mode inherits global tokens */
:root[data-theme="dark"] body.page-pharma {
  color-scheme: dark;
  --bg: #16181D;
  --surface: #16181D;
  --ink: #F2F1ED;
  --ink-2: #A6A39B;
  --line: #2A2A2A;
--line-2: #3D3D3D;
--band-bg: #16151C;
--band-ink: #F2F1ED;
background: #16181D;
}


:root[data-theme="dark"] body.page-pharma .logo-light { display: none; }
:root[data-theme="dark"] body.page-pharma .logo-dark { display: block; }
:root[data-theme="light"] body.page-pharma .logo-light { display: block; }
:root[data-theme="light"] body.page-pharma .logo-dark { display: none; }

/* hero: room for the bottom-left plate; plate is the only design element */
body.page-pharma .page-head { position: relative; padding-block: clamp(48px, 7vw, 96px) 72px; }
/* pharma page: dark graphite ONLY in Night Shift; light mode inherits global tokens */
:root[data-theme="dark"] body.page-pharma {
  color-scheme: dark;
  --bg: #16181D;
  --surface: #16181D;
  --ink: #F2F1ED;
  --ink-2: #A6A39B;
  --line: #2A2A2A;
  --line-2: #3D3D3D;
  --band-bg: #16151C;
  --band-ink: #F2F1ED;
  background: #16181D;
}
:root[data-theme="dark"] body.page-pharma .logo-light { display: none; }
:root[data-theme="dark"] body.page-pharma .logo-dark { display: block; }
:root[data-theme="light"] body.page-pharma .logo-light { display: block; }
:root[data-theme="light"] body.page-pharma .logo-dark { display: none; }

/* Hero layout */
body.page-pharma .page-head { position: relative; padding-block: clamp(48px, 7vw, 96px) 72px; }
/* Kicker positioned bottom-right, sitting on the separator line */
body.page-pharma .page-kicker {
  position: absolute;
  bottom: 0;
  right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
  height: 18px;
  line-height: 1.4;
  margin: 0;
  border-bottom: 1px solid var(--orange);
}

/* Section headings (Gallery, FAQ) */
.section-heading {
  font-size: var(--step-3);
  font-weight: 600;
  margin-block-end: 32px;
}

/* Gallery controls below images */
.gal-controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-block-start: 16px;
}

/* Technical specifications wrapper */
.specs-wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 860px;
  margin: 0 auto;
}
.specs-wrapper h3 {
  text-align: center;
  font-size: var(--step-2);
  font-weight: 600;
  margin-block-end: 24px;
}
.specs-wrapper .specs {
  margin-block-start: 0;
  border-top: 0;
}

/* one page: kill internal dividers, keep only the hero hairline */
body.page-pharma .pl::before { background: var(--line-2); }
body.page-pharma .specs { border-top: 0; margin-block-start: 0; }
body.page-pharma .narrative { border-top: 0; padding-block: 8px 32px; }
/* gallery: 3-up snap row with arrow controls */
.gal-controls { display: flex; gap: 12px; justify-content: flex-end; margin-block-end: 16px; }
.gal-viewport {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.gal-viewport::-webkit-scrollbar { display: none; }
.gal-item { scroll-snap-align: start; height: clamp(220px, 20vw, 340px); }
@media (max-width: 1024px) { .gal-viewport { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 768px)  { .gal-viewport { grid-auto-columns: 100%; } }

/* ============================================================================
   v6.3 — PHARMA SUBPAGE FIXES (Separator + Centering)
   ========================================================================== */
/* pharma page: dark graphite ONLY in Night Shift; light mode inherits global tokens */
:root[data-theme="dark"] body.page-pharma {
  color-scheme: dark;
  --bg: #16181D;
  --surface: #16181D;
  --ink: #F2F1ED;
  --ink-2: #A6A39B;
  --line: #2A2A2A;
  --line-2: #3D3D3D;
  --band-bg: #16151C;
  --band-ink: #F2F1ED;
  background: #16181D;
}
:root[data-theme="dark"] body.page-pharma .logo-light { display: none; }
:root[data-theme="dark"] body.page-pharma .logo-dark { display: block; }
:root[data-theme="light"] body.page-pharma .logo-light { display: block; }
:root[data-theme="light"] body.page-pharma .logo-dark { display: none; }

/* Hero layout & Kicker */
body.page-pharma .page-head { position: relative; padding-block: clamp(48px, 7vw, 96px) 72px; }
body.page-pharma .page-kicker {
  position: absolute;
  bottom: 0;
  right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
  height: 18px;
  line-height: 1.4;
  margin: 0;
  border-bottom: 1px solid var(--orange);
}

/* Separator hairline (drawn at top of the first .pl section after hero) */
body.page-pharma .pl::before { background: var(--line-2); }

/* Center headings and blocks */
body.page-pharma .section-heading { text-align: center; }
body.page-pharma .narrative,
body.page-pharma .faq {
  margin-inline: auto;
}

/* Gallery controls below images */
.gal-controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-block-start: 16px;
}

/* Technical specifications wrapper */
.specs-wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 860px;
  margin: 0 auto;
}
.specs-wrapper h3 {
  text-align: center;
  font-size: var(--step-2);
  font-weight: 600;
  margin-block-end: 24px;
}
.specs-wrapper .specs {
  margin-block-start: 0;
  border-top: 0;
}


/* ============================================================================
   v6.3 — CUPS SUBPAGE (Mirror of Pharma)
   ========================================================================== */
:root[data-theme="dark"] body.page-cups {
  color-scheme: dark;
  --bg: #16181D;
  --surface: #16181D;
  --ink: #F2F1ED;
  --ink-2: #A6A39B;
  --line: #2A2A2A;
  --line-2: #3D3D3D;
  --band-bg: #16151C;
  --band-ink: #F2F1ED;
  background: #16181D;
}
:root[data-theme="dark"] body.page-cups .logo-light { display: none; }
:root[data-theme="dark"] body.page-cups .logo-dark { display: block; }
:root[data-theme="light"] body.page-cups .logo-light { display: block; }
:root[data-theme="light"] body.page-cups .logo-dark { display: none; }

body.page-cups .page-head { position: relative; padding-block: clamp(48px, 7vw, 96px) 72px; }
body.page-cups .page-kicker {
  position: absolute;
  bottom: 0;
  right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
  height: 18px;
  line-height: 1.4;
  margin: 0;
  border-bottom: 1px solid var(--orange);
}

body.page-cups .pl::before { background: var(--line-2); }
body.page-cups .section-heading { text-align: center; }
body.page-cups .narrative,
body.page-cups .faq {
  margin-inline: auto;
}

body.page-cups .specs-wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 860px;
  margin: 0 auto;
}
body.page-cups .specs-wrapper h3 {
  text-align: center;
  font-size: var(--step-2);
  font-weight: 600;
  margin-block-end: 24px;
}
body.page-cups .specs-wrapper .specs {
  margin-block-start: 0;
  border-top: 0;
}

/* ============================================================================
   v6.3 — CUTLERY SUBPAGE (Mirror of Pharma/Cups)
   ========================================================================== */
:root[data-theme="dark"] body.page-cutlery {
  color-scheme: dark;
  --bg: #16181D;
  --surface: #16181D;
  --ink: #F2F1ED;
  --ink-2: #A6A39B;
  --line: #2A2A2A;
  --line-2: #3D3D3D;
  --band-bg: #1C1C1C;
  --band-ink: #F2F1ED;
  background: #16181D;
}
:root[data-theme="dark"] body.page-cutlery .logo-light { display: none; }
:root[data-theme="dark"] body.page-cutlery .logo-dark { display: block; }
:root[data-theme="light"] body.page-cutlery .logo-light { display: block; }
:root[data-theme="light"] body.page-cutlery .logo-dark { display: none; }

body.page-cutlery .page-head { position: relative; padding-block: clamp(48px, 7vw, 96px) 72px; }
body.page-cutlery .page-kicker {
  position: absolute;
  bottom: 0;
  right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
  height: 18px;
  line-height: 1.4;
  margin: 0;
  border-bottom: 1px solid var(--orange);
}

body.page-cutlery .pl::before { background: var(--line-2); }
body.page-cutlery .section-heading { text-align: center; }
body.page-cutlery .narrative,
body.page-cutlery .faq {
  margin-inline: auto;
}

body.page-cutlery .specs-wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 860px;
  margin: 0 auto;
}
body.page-cutlery .specs-wrapper h3 {
  text-align: center;
  font-size: var(--step-2);
  font-weight: 600;
  margin-block-end: 24px;
}
body.page-cutlery .specs-wrapper .specs {
  margin-block-start: 0;
  border-top: 0;
}

/* ============================================================================
   v6.3 — GRIDS SUBPAGE (Mirror of Pharma/Cups/Cutlery)
   ========================================================================== */
:root[data-theme="dark"] body.page-grids {
  color-scheme: dark;
  --bg: #16181D;
  --surface: #16181D;
  --ink: #F2F1ED;
  --ink-2: #A6A39B;
  --line: #2A2A2A;
  --line-2: #3D3D3D;
  --band-bg: #1C1C1C;
  --band-ink: #F2F1ED;
  background: #16181D;
}
:root[data-theme="dark"] body.page-grids .logo-light { display: none; }
:root[data-theme="dark"] body.page-grids .logo-dark { display: block; }
:root[data-theme="light"] body.page-grids .logo-light { display: block; }
:root[data-theme="light"] body.page-grids .logo-dark { display: none; }

body.page-grids .page-head { position: relative; padding-block: clamp(48px, 7vw, 96px) 72px; }
body.page-grids .page-kicker {
  position: absolute;
  bottom: 0;
  right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
  height: 18px;
  line-height: 1.4;
  margin: 0;
  border-bottom: 1px solid var(--orange);
}

body.page-grids .pl::before { background: var(--line-2); }
body.page-grids .section-heading { text-align: center; }
body.page-grids .narrative,
body.page-grids .faq {
  margin-inline: auto;
}

body.page-grids .specs-wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 860px;
  margin: 0 auto;
}
body.page-grids .specs-wrapper h3 {
  text-align: center;
  font-size: var(--step-2);
  font-weight: 600;
  margin-block-end: 24px;
}
body.page-grids .specs-wrapper .specs {
  margin-block-start: 0;
  border-top: 0;
}

/* ============================================================================
   v6.3 — DENTAL SUBPAGE (Mirror of Pharma/Cups/Cutlery/Grids)
   ========================================================================== */
:root[data-theme="dark"] body.page-dental {
  color-scheme: dark;
  --bg: #16181D;
  --surface: #16181D;
  --ink: #F2F1ED;
  --ink-2: #A6A39B;
  --line: #2A2A2A;
  --line-2: #3D3D3D;
  --band-bg: #1C1C1C;
  --band-ink: #F2F1ED;
  background: #16181D;
}
:root[data-theme="dark"] body.page-dental .logo-light { display: none; }
:root[data-theme="dark"] body.page-dental .logo-dark { display: block; }
:root[data-theme="light"] body.page-dental .logo-light { display: block; }
:root[data-theme="light"] body.page-dental .logo-dark { display: none; }

body.page-dental .page-head { position: relative; padding-block: clamp(48px, 7vw, 96px) 72px; }
body.page-dental .page-kicker {
  position: absolute;
  bottom: 0;
  right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
  height: 18px;
  line-height: 1.4;
  margin: 0;
  border-bottom: 1px solid var(--orange);
}

body.page-dental .pl::before { background: var(--line-2); }
body.page-dental .section-heading { text-align: center; }
body.page-dental .narrative,
body.page-dental .faq {
  margin-inline: auto;
}

body.page-dental .specs-wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 860px;
  margin: 0 auto;
}
body.page-dental .specs-wrapper h3 {
  text-align: center;
  font-size: var(--step-2);
  font-weight: 600;
  margin-block-end: 24px;
}
body.page-dental .specs-wrapper .specs {
  margin-block-start: 0;
  border-top: 0;
}


/* ============================================================================
   v6.3 — ISOLATORS SUBPAGE (Mirror of Pharma/Cups/Cutlery/Grids/Dental)
   ========================================================================== */
:root[data-theme="dark"] body.page-isolators {
  color-scheme: dark;
  --bg: #16181D;
  --surface: #16181D;
  --ink: #F2F1ED;
  --ink-2: #A6A39B;
  --line: #2A2A2A;
  --line-2: #3D3D3D;
  --band-bg: #1C1C1C;
  --band-ink: #F2F1ED;
  background: #16181D;
}
:root[data-theme="dark"] body.page-isolators .logo-light { display: none; }
:root[data-theme="dark"] body.page-isolators .logo-dark { display: block; }
:root[data-theme="light"] body.page-isolators .logo-light { display: block; }
:root[data-theme="light"] body.page-isolators .logo-dark { display: none; }

body.page-isolators .page-head { position: relative; padding-block: clamp(48px, 7vw, 96px) 72px; }
body.page-isolators .page-kicker {
  position: absolute;
  bottom: 0;
  right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
  height: 18px;
  line-height: 1.4;
  margin: 0;
  border-bottom: 1px solid var(--orange);
}

body.page-isolators .pl::before { background: var(--line-2); }
body.page-isolators .section-heading { text-align: center; }
body.page-isolators .narrative,
body.page-isolators .faq {
  margin-inline: auto;
}

body.page-isolators .specs-wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 860px;
  margin: 0 auto;
}
body.page-isolators .specs-wrapper h3 {
  text-align: center;
  font-size: var(--step-2);
  font-weight: 600;
  margin-block-end: 24px;
}
body.page-isolators .specs-wrapper .specs {
  margin-block-start: 0;
  border-top: 0;
}

/* ============================================================================
   v6.3 — SERVICES SUBPAGE (Merged Services + Production Line)
   ========================================================================== */
:root[data-theme="dark"] body.page-services {
  color-scheme: dark;
  --bg: #16181D;
  --surface: #16181D;
  --ink: #F2F1ED;
  --ink-2: #A6A39B;
  --line: #2A2A2A;
  --line-2: #3D3D3D;
  --band-bg: #1C1C1C;
  --band-ink: #F2F1ED;
  background: #16181D;
}
:root[data-theme="dark"] body.page-services .logo-light { display: none; }
:root[data-theme="dark"] body.page-services .logo-dark { display: block; }
:root[data-theme="light"] body.page-services .logo-light { display: block; }
:root[data-theme="light"] body.page-services .logo-dark { display: none; }

body.page-services .page-head { position: relative; padding-block: clamp(48px, 7vw, 96px) 72px; }
body.page-services .page-kicker {
  position: absolute;
  bottom: 0;
  right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
  height: 18px;
  line-height: 1.4;
  margin: 0;
  border-bottom: 1px solid var(--orange);
}

body.page-services .pl::before { background: var(--line-2); }
body.page-services .section-heading { text-align: center; }
body.page-services .narrative,
body.page-services .faq,
body.page-services .steps {
  margin-inline: auto;
}
body.page-services .steps { max-width: 860px; }

body.page-services .svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 1024px) { body.page-services .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { body.page-services .svc-grid { grid-template-columns: 1fr; } }

body.page-services .svc-card {
  border-top: 1px solid var(--line);
  padding-block-start: 24px;
}
body.page-services .svc-card h2 {
  font-size: var(--step-2);
  font-weight: 600;
  margin-block-end: 8px;
}
body.page-services .svc-card p {
  color: var(--ink-2);
  font-size: 18px;
}

/* ============================================================================
   v6.3 — PRODUCTS HUB PAGE (Graphite Hero + Fixed Tags)
   ========================================================================== */
body.page-products .page-head {
  background: #16181D;
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) 72px;
}
body.page-products .page-head {
position: relative;
padding-block: clamp(48px, 7vw, 96px) 72px;
}

/* Dark mode gets the graphite background */
:root[data-theme="dark"] body.page-products .page-head {
background: #16181D;
}
:root[data-theme="dark"] body.page-products .page-head h1 { color: #F2F1ED; }
:root[data-theme="dark"] body.page-products .page-head .page-lead { color: #A6A39B; }

/* Light mode automatically inherits global light tokens (--bg, --ink) */

body.page-products .page-kicker {
  position: absolute;
  bottom: 0;
  right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
  height: 18px;
  line-height: 1.4;
  margin: 0;
  border-bottom: 1px solid var(--orange);
  color: #A6A39B;
}

/* Hero Split Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-img {
  width: 100%;
  max-width: 640px;
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
.hero-grid {
grid-template-columns: 1fr;
text-align: center;
}
.hero-visual {
justify-content: center;
margin-top: 32px;
}
.hero-cta {
justify-content: center;
}
.hero-title {
margin-inline: auto;
}
}
/* PATCH: Work with us & Industries sections -> Dark Graphite in Night Shift */
:root[data-theme="dark"] .pl[data-sec=".SEC .WORK-WITH-US"],
:root[data-theme="dark"] .pl[data-sec=".SEC .INDUSTRIES"] {
background: #16181D;
}
/* ============================================================================
v6.4 — PRODUCTS HUB: LIGHT-MODE LOCK (append-only, overrides any leftover
unscoped .page-head background from the v6.3 hub block)
============================================================================ */
:root[data-theme="light"] body.page-products .page-head {
background: var(--bg);
}
:root[data-theme="light"] body.page-products .page-head h1 { color: var(--ink); }
:root[data-theme="light"] body.page-products .page-head .page-lead { color: var(--ink-2); }
:root[data-theme="light"] body.page-products .page-kicker { color: var(--ink-2); }
:root[data-theme="light"] body.page-products .page-head .crumb,
:root[data-theme="light"] body.page-products .page-head .crumb a { color: var(--color-teal); }
:root[data-theme="light"] body.page-products .page-head .crumb > span:last-child { color: var(--ink); }
/* ============================================================================
v6.6 — SERVICES HERO: top-align grid columns. The tall machine photo makes
the row taller than the text column; with align-items:center the shorter
text column (and its breadcrumb) was pushed down by half the difference.
Start-alignment puts the crumb on the same 40px line as the home eyebrow.
============================================================================ */
body.page-services .hero-grid { align-items: start; }
/* ============================================================================
v6.7 — GALLERY PARITY (homepage/product hover + crosshair swap) + LIGHTBOX
============================================================================ */
.gal-item { cursor: pointer; }
.gal-item:hover { border-color: var(--orange); }
.gal-item:hover::before {
background-color: #FFFFFF;
border: 1px solid var(--orange);
background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1V13M1 7H13' stroke='%23ED8B16' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* v6.8 — LIGHTBOX PRO: stage, control bar, counter, caption, motion */
.lightbox {
position: fixed; inset: 0; z-index: 300;
display: none; place-items: center;
background: rgb(10 10 10 / 0.94);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
padding: clamp(16px, 4vw, 48px) clamp(16px, 4vw, 48px) 96px;
cursor: zoom-out;
}
.lightbox.is-open { display: grid; }
.lightbox-stage { display: grid; place-items: center; width: 100%; height: 100%; }
.lightbox img {
max-width: min(1200px, 100%);
max-height: 100%;
width: auto; height: auto;
border: 1px solid var(--orange);
border-radius: var(--radius);
background: var(--surface);
box-shadow: 0 40px 120px rgb(0 0 0 / 0.55);
transition: opacity 0.18s ease, transform 0.18s ease;
}
.lightbox.is-open img { animation: lb-in 0.45s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.lightbox img.is-switching {
opacity: 0;
transform: translateX(calc(var(--lb-dir, 1) * -28px)) scale(0.985);
}
.lightbox-bar {
position: absolute; left: 0; right: 0; bottom: 0;
display: flex; align-items: center; gap: 16px;
padding: 14px clamp(16px, 4vw, 48px);
border-top: 1px solid rgb(242 241 237 / 0.16);
background: rgb(10 10 10 / 0.72);
cursor: default;
}
.lightbox-cap {
flex: 1 1 auto; min-width: 0;
font-family: var(--font-mono); font-size: 11px;
letter-spacing: 0.08em; text-transform: uppercase;
color: #A6A39B;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lightbox-cap::before {
content: ""; display: inline-block;
width: 8px; height: 8px; background: var(--orange);
margin-inline-end: 10px;
}
.lightbox-count {
font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
color: #F2F1ED;
}
.lightbox-bar .car-btn {
width: 44px; height: 44px;
color: #F2F1ED;
border-color: rgb(242 241 237 / 0.3);
}
.lightbox-bar .car-btn:hover { border-color: var(--orange); color: var(--orange); transform: none; }
.lightbox-close {
position: absolute; top: 20px; right: 20px;
width: 44px; height: 44px;
display: grid; place-items: center;
border: 1px solid rgb(242 241 237 / 0.3);
border-radius: 50%;
color: #F2F1ED;
background: rgb(10 10 10 / 0.6);
transition: border-color 0.25s ease, transform 0.35s var(--ease);
}
.lightbox-close:hover { border-color: var(--orange); transform: rotate(90deg); color: var(--orange); }


/* ============================================================================
v6.5 — Breadcrumb/eyebrow alignment: subpage .page-head top padding now
matches the homepage .hero top padding (40px), so .crumb sits at the exact
same vertical position as .eyebrow on index.html. Overrides the base
.page-head rule and all eight per-page padding-block rules.
============================================================================ */
.page-head,
body.page-products .page-head,
body.page-pharma .page-head,
body.page-cups .page-head,
body.page-cutlery .page-head,
body.page-grids .page-head,
body.page-dental .page-head,
body.page-isolators .page-head,
body.page-services .page-head {
padding-block-start: 40px;
}

/* OVERRIDE: Force homepage form colors on all subpages in dark mode */
:root[data-theme="dark"] body.page-pharma .cta-band,
:root[data-theme="dark"] body.page-cups .cta-band,
:root[data-theme="dark"] body.page-cutlery .cta-band,
:root[data-theme="dark"] body.page-grids .cta-band,
:root[data-theme="dark"] body.page-dental .cta-band,
:root[data-theme="dark"] body.page-isolators .cta-band,
:root[data-theme="dark"] body.page-services .cta-band {
  background: #16151C !important;
}

:root[data-theme="dark"] body.page-pharma .cta-band .form input,
:root[data-theme="dark"] body.page-pharma .cta-band .form select,
:root[data-theme="dark"] body.page-pharma .cta-band .form textarea,
:root[data-theme="dark"] body.page-cups .cta-band .form input,
:root[data-theme="dark"] body.page-cups .cta-band .form select,
:root[data-theme="dark"] body.page-cups .cta-band .form textarea,
:root[data-theme="dark"] body.page-cutlery .cta-band .form input,
:root[data-theme="dark"] body.page-cutlery .cta-band .form select,
:root[data-theme="dark"] body.page-cutlery .cta-band .form textarea,
:root[data-theme="dark"] body.page-grids .cta-band .form input,
:root[data-theme="dark"] body.page-grids .cta-band .form select,
:root[data-theme="dark"] body.page-grids .cta-band .form textarea,
:root[data-theme="dark"] body.page-dental .cta-band .form input,
:root[data-theme="dark"] body.page-dental .cta-band .form select,
:root[data-theme="dark"] body.page-dental .cta-band .form textarea,
:root[data-theme="dark"] body.page-isolators .cta-band .form input,
:root[data-theme="dark"] body.page-isolators .cta-band .form select,
:root[data-theme="dark"] body.page-isolators .cta-band .form textarea,
:root[data-theme="dark"] body.page-services .cta-band .form input,
:root[data-theme="dark"] body.page-services .cta-band .form select,
:root[data-theme="dark"] body.page-services .cta-band .form textarea {
  background: #141414 !important;
}

/* FIX: Services footer color match homepage */
:root[data-theme="dark"] body.page-services .site-footer {
  background: #16151C !important;
}

/* FIX: Product subpages footer color match homepage */
:root[data-theme="dark"] body.page-pharma .site-footer,
:root[data-theme="dark"] body.page-cups .site-footer,
:root[data-theme="dark"] body.page-cutlery .site-footer,
:root[data-theme="dark"] body.page-grids .site-footer,
:root[data-theme="dark"] body.page-dental .site-footer,
:root[data-theme="dark"] body.page-isolators .site-footer {
  background: #16151C !important;
}

/* v6.9 — THANK YOU page: restore subpage hero bottom breathing room */
body.page-thankyou .page-head {
  padding-block: clamp(48px, 7vw, 96px) 72px;
}

/* ============================================================================
   v8.0 — ACCESSIBILITY (WCAG 2.2 AA fixes + accessibility widget + legal pages)
   Append-only. Visual design unchanged except where contrast/focus required it.
   ============================================================================ */

/* ---- Contrast tokens (light theme only; dark theme already passes AA) ---- */
:root {
  --orange-text: #A85A00;   /* orange used as TEXT on light surfaces: 4.7:1 on --bg */
  --focus: #A85A00;         /* focus ring: >= 3:1 against light surfaces */
  --a11y-scale: 1;
  --pt-blue-bg: #45769F;    /* white 11px tag text: 4.8:1 (was 3.5:1) */
  --pt-green-bg: #43805F;   /* white 11px tag text: 4.7:1 (was 4.0:1) */
  --blue-text: #3F6F99;     /* spec labels on light bg: 4.9:1 (was 3.3:1) */
}
:root[data-theme="dark"] {
  --orange-text: #ED8B16;
  --focus: #F2B33D;
  --pt-blue-bg: #8FC0D6;
  --pt-green-bg: #7FBF9A;
}
.main-nav a[aria-current="page"],
.link-arrow:hover,
.crumb a:hover,
.steps li.is-active h3,
.steps li.is-active .idx,
.cc-link { color: var(--orange-text); }
.specs-blue dt { color: var(--blue-text); }
:root[data-theme="dark"] .specs-blue dt { color: color-mix(in srgb, var(--blue) 70%, white); }
.showcase-image:hover .cap-plate,
.pcard .frame:hover .cap-plate { color: #141414; }
/* Form field borders on the dark CTA band: 3:1 non-text contrast */
.cta-band .form input, .cta-band .form select, .cta-band .form textarea {
  border-color: color-mix(in srgb, var(--band-ink) 45%, transparent);
}

/* ---- Visible focus everywhere (keyboard only) ---- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.cta-band :focus-visible, .top-bar :focus-visible, .lightbox :focus-visible { outline-color: #F2B33D; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible,
.cta-band .form input:focus-visible, .cta-band .form select:focus-visible, .cta-band .form textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--orange);
}
.cta-band .form input:focus-visible, .cta-band .form select:focus-visible, .cta-band .form textarea:focus-visible { outline-color: #F2B33D; }
.gal-item:focus-visible { outline-offset: 4px; }
.frame-link:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.dot { position: relative; }
.dot::after { content: ""; position: absolute; inset: -10px; } /* 28px hit area, no visual change */

/* ---- Form: required marker + error messages ---- */
.req { color: inherit; margin-inline-start: 2px; }
.form-hint { grid-column: 1 / -1; font-size: var(--step--1); margin: 0 !important; }
.cta-band .form-hint { color: color-mix(in srgb, var(--band-ink) 80%, transparent); }
.field-error { display: block; margin-block-start: 6px; font-size: var(--step--1); font-weight: 600; color: #B42318; }
.cta-band .field-error, :root[data-theme="dark"] .field-error { color: #FFB4A8; }
.form [aria-invalid="true"] { border-color: #B42318 !important; }
.cta-band .form [aria-invalid="true"], :root[data-theme="dark"] .form [aria-invalid="true"] { border-color: #FFB4A8 !important; }

/* ---- Accessibility widget (bottom-right) ---- */
.a11y { position: fixed; right: 24px; bottom: calc(24px + var(--cc-lift, 0px)); z-index: 160; font-family: var(--font-sans); }
.a11y-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  border: 2px solid var(--bg);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.22);
  transition: transform 0.25s var(--ease), background-color 0.25s ease;
}
.a11y-btn:hover { transform: translateY(-2px); }
.a11y-btn[aria-expanded="true"] { background: var(--orange); color: #141414; }
.a11y-btn svg { width: 30px; height: 30px; }
.a11y-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100dvh - 120px - var(--cc-lift, 0px)); overflow-y: auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.25);
  padding: 16px;
  font-size: 15px; line-height: 1.4; letter-spacing: normal; word-spacing: normal;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 12px; }
.a11y-title { font-weight: 700; font-size: 16px; }
.a11y-close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink); }
.a11y-close:hover { border-color: var(--ink); }
.a11y-label { display: block; font-weight: 600; font-size: 14px; margin-block-end: 8px; }
.a11y-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block-end: 12px; }
.a11y-sizes button {
  min-height: 44px; border-radius: 8px; border: 1px solid var(--line-2);
  font-weight: 600; color: var(--ink); background: var(--bg);
}
.a11y-sizes button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.a11y-opts { display: grid; gap: 8px; }
.a11y-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 44px; padding: 8px 12px;
  border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); text-align: left; font-weight: 500;
}
.a11y-opt:hover, .a11y-sizes button:hover { border-color: var(--ink); }
.a11y-switch { flex: 0 0 auto; position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); border: 1px solid var(--ink-2); }
.a11y-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ink-2); transition: transform 0.2s ease; }
.a11y-opt[aria-pressed="true"] { border-color: var(--ink); }
.a11y-opt[aria-pressed="true"] .a11y-switch { background: var(--ink); border-color: var(--ink); }
.a11y-opt[aria-pressed="true"] .a11y-switch::after { transform: translateX(16px); background: var(--bg); border-color: var(--bg); }
.a11y-reset {
  margin-block-start: 12px; width: 100%; min-height: 44px; border-radius: 8px;
  border: 1px solid var(--line-2); color: var(--ink); font-weight: 600;
}
.a11y-reset:hover { border-color: var(--ink); }
.a11y-note { margin-block-start: 10px; font-size: 12px; color: var(--ink-2); }
.a11y-panel :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* WhatsApp pill + widget: never overlap, lift above the cookie box when it is open */
.sticky-wa { bottom: calc(24px + var(--cc-lift, 0px)); }
@media (max-width: 600px) {
  .a11y { right: 16px; bottom: calc(16px + var(--cc-lift, 0px)); }
  .a11y-btn { width: 48px; height: 48px; }
  .sticky-wa { left: 16px; bottom: calc(18px + var(--cc-lift, 0px)); transform: none; max-width: calc(100vw - 96px); }
  .sticky-wa:hover { transform: translateY(-2px); }
}
@media print { .a11y, .sticky-wa { display: none !important; } }

/* ---- Mode: text size (100 / 115 / 130 %) ---- */
html.a11y-fs-1 { --a11y-scale: 1.15; }
html.a11y-fs-2 { --a11y-scale: 1.3; }
html.a11y-fs { font-size: calc(100% * var(--a11y-scale)); }
html.a11y-fs .no-wrap { white-space: normal; }
/* px-based sizes from the design system, scaled (generated) */
html.a11y-fs .mono { font-size: calc(11px * var(--a11y-scale)); }
html.a11y-fs .loader .mono { font-size: calc(12px * var(--a11y-scale)); }
html.a11y-fs .top-bar { font-size: calc(13px * var(--a11y-scale)); }
html.a11y-fs .lang-panel .code { font-size: calc(10px * var(--a11y-scale)); }
html.a11y-fs .lang-panel .path { font-size: calc(11px * var(--a11y-scale)); }
html.a11y-fs .hero-sub { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .pl::after { font-size: calc(10px * var(--a11y-scale)); }
html.a11y-fs .slide-title { font-size: calc(clamp(26px, 2.8vw, 40px) * var(--a11y-scale)); }
html.a11y-fs .slide-usp { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .frame .cap-plate,
html.a11y-fs .showcase-image .cap-plate { font-size: calc(10px * var(--a11y-scale)); }
html.a11y-fs .section-head p { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .art-plate { font-size: calc(10px * var(--a11y-scale)); }
html.a11y-fs .pcard p { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .frame-cap { font-size: calc(11px * var(--a11y-scale)); }
html.a11y-fs .tag { font-size: calc(11px * var(--a11y-scale)); }
html.a11y-fs .ind-card p { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .usp p { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .cta-inner p { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .folio { font-size: calc(10px * var(--a11y-scale)); }
html.a11y-fs .page-head p { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .specs dt { font-size: calc(11px * var(--a11y-scale)); }
html.a11y-fs .tech-section p { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .nf-title { font-size: calc(clamp(14px, 2vw, 18px) * var(--a11y-scale)); }
html.a11y-fs .crumb { font-size: calc(11px * var(--a11y-scale)); }
html.a11y-fs .kicker { font-size: calc(10px * var(--a11y-scale)); }
html.a11y-fs .page-lead { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .hub-card p { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .narrative p { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .faq-item summary::after { font-size: calc(14px * var(--a11y-scale)); }
html.a11y-fs .faq-item p { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs body.page-services .svc-card p { font-size: calc(18px * var(--a11y-scale)); }
html.a11y-fs .lightbox-cap { font-size: calc(11px * var(--a11y-scale)); }
html.a11y-fs .lightbox-count { font-size: calc(11px * var(--a11y-scale)); }


/* ---- Mode: high contrast ---- */
:root.a11y-contrast, :root.a11y-contrast body {
  --bg: #FFFFFF !important; --surface: #FFFFFF !important; --products-bg: #FFFFFF !important;
  --ink: #000000 !important; --ink-2: #1A1A1A !important;
  --line: #000000 !important; --line-2: #000000 !important;
  --color-teal: #00564C !important; --orange-text: #7A3E00 !important; --blue-text: #1F4466 !important; --focus: #000000 !important;
  --band-bg: #000000 !important; --band-ink: #FFFFFF !important;
  --pt-teal-bg: #00564C !important; --pt-blue-bg: #1F4466 !important; --pt-green-bg: #1E5136 !important;
  --pt-lgreen-bg: #FFFFFF !important; --pt-pink-bg: #FFFFFF !important;
}
:root.a11y-contrast[data-theme="dark"], :root.a11y-contrast[data-theme="dark"] body {
  --bg: #000000 !important; --surface: #000000 !important; --products-bg: #000000 !important;
  --ink: #FFFFFF !important; --ink-2: #F0F0F0 !important;
  --line: #FFFFFF !important; --line-2: #FFFFFF !important;
  --color-teal: #6FF0DC !important; --orange-text: #FFB347 !important; --focus: #FFD166 !important;
  --band-bg: #000000 !important; --band-ink: #FFFFFF !important;
  --pt-teal-bg: #6FF0DC !important; --pt-blue-bg: #A8D8F0 !important; --pt-green-bg: #A6E3BF !important;
}
:root.a11y-contrast[data-theme="dark"] .hero, :root.a11y-contrast[data-theme="dark"] .showcase-section,
:root.a11y-contrast[data-theme="dark"] .site-header, :root.a11y-contrast[data-theme="dark"] .pl,
:root.a11y-contrast[data-theme="dark"] .cta-band, :root.a11y-contrast[data-theme="dark"] .site-footer,
:root.a11y-contrast[data-theme="dark"] body .page-head { background: #000000 !important; }
:root.a11y-contrast .pt-lgreen, :root.a11y-contrast .pt-pink { border: 1px solid #000; }
:root.a11y-contrast .cta-inner p, :root.a11y-contrast .cta-band .form-status,
:root.a11y-contrast .cta-band .form-hint { color: var(--band-ink) !important; }
:root.a11y-contrast .frame .cap-plate, :root.a11y-contrast .showcase-image .cap-plate,
:root.a11y-contrast .frame-cap { background: var(--bg); color: var(--ink); }
:root.a11y-contrast .steps li:not(.is-active) { opacity: 1; }
:root.a11y-contrast .btn-secondary, :root.a11y-contrast .car-btn, :root.a11y-contrast .dot { border-color: var(--ink); }
:root.a11y-contrast .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }

/* ---- Mode: underline links ---- */
:root.a11y-links a:not(.btn):not(.brand):not(.skip-link) { text-decoration: underline !important; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* ---- Mode: readable spacing (WCAG 1.4.12 values) ---- */
:root.a11y-spacing body :where(p, li, dd, dt, label, summary, a, span, figcaption, td, th, button, input, select, textarea):not(.a11y *) {
  letter-spacing: 0.12em !important; word-spacing: 0.16em !important;
}
:root.a11y-spacing body :where(p, li, dd, dt, label, summary, figcaption, td, th):not(.a11y *) { line-height: 1.8 !important; }
:root.a11y-spacing body :where(h1, h2, h3, h4):not(.a11y *) { line-height: 1.4 !important; letter-spacing: 0.04em !important; word-spacing: 0.16em !important; }
:root.a11y-spacing body p:not(.a11y *) { margin-block-end: 1em; }
:root.a11y-spacing .no-wrap, :root.a11y-spacing .cap-line { white-space: normal; }

/* ---- Mode: stop animations (same effect as prefers-reduced-motion) ---- */
:root.a11y-still, :root.a11y-still * , :root.a11y-still *::before, :root.a11y-still *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
:root.a11y-still [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
:root.a11y-still .cursor-glow, :root.a11y-still .scroll-progress-bar,
:root.a11y-still .loader, :root.a11y-still .showcase-progress, :root.a11y-still .frame::after { display: none !important; }
:root.a11y-still .frame:hover .frame-media, :root.a11y-still .showcase-image:hover img,
:root.a11y-still .pcard .frame:hover img, :root.a11y-still .btn, :root.a11y-still .btn svg,
:root.a11y-still .link-arrow svg { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .a11y-btn, .a11y-switch::after { transition: none; }
  .frame:hover .frame-media, .showcase-image:hover img, .pcard .frame:hover img { transform: none; }
}

/* ---- Legal pages (privacy.html, cookies.html) ---- */
body.page-legal .page-head { padding-block: 40px 48px; }
.legal { max-width: 860px; padding-block: 8px var(--section); }
.legal h2 { font-size: var(--step-2); font-weight: 600; margin-block: 40px 12px; }
.legal h3 { font-size: var(--step-1); font-weight: 600; margin-block: 24px 8px; }
.legal p, .legal li { color: var(--ink); max-width: 72ch; }
.legal p + p { margin-block-start: 12px; }
.legal ul { list-style: disc !important; padding-inline-start: 1.25em !important; margin-block: 8px 12px !important; display: grid; gap: 6px; }
.legal li::marker { content: initial !important; color: var(--ink-2); }
.legal a:not(.btn) { text-decoration: underline; text-underline-offset: 0.2em; }
.legal a:not(.btn):hover { color: var(--orange-text); }
.legal .legal-meta { color: var(--ink-2); font-size: var(--step--1); }
.legal .placeholder { background: color-mix(in srgb, var(--yellow) 35%, transparent); padding: 0 4px; border-radius: 3px; font-weight: 600; }
.legal-table-wrap { overflow-x: auto; margin-block: 12px 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 640px; }
.legal caption { text-align: left; padding: 12px 14px; font-weight: 600; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
.legal th { font-weight: 600; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.legal code { font-family: var(--font-mono); font-size: 0.92em; overflow-wrap: anywhere; }
.legal .btn { margin-block-start: 8px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* =========================================================
   v8.1 — EU project pages + footer EU project links (10 Nov 2026)
   ========================================================= */
.eu-project-section { padding-block-start: clamp(32px, 5vw, 64px); }
.legal.eu-project { max-width: 760px; }
.eu-project-logo { display: block; width: min(100%, 340px); height: auto; background: #fff; padding: 12px 16px; border-radius: var(--radius); margin-block-end: 32px; box-sizing: border-box; }
.legal .eu-project-title { font-size: var(--step-3); font-weight: 600; line-height: 1.25; margin-block-end: 24px; max-width: 72ch; overflow-wrap: anywhere; }
.legal .eu-project-title strong { font-weight: 700; }
.legal.eu-project p + p { margin-block-start: 10px; }
.legal.eu-project a:not(.btn) { overflow-wrap: anywhere; }
.footer-eu-projects { flex-basis: 100%; }
.footer-eu-projects ul { display: grid; gap: 6px; }
.footer-eu-projects a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); overflow-wrap: anywhere; }
.footer-eu-projects a:hover { color: var(--ink); text-decoration-color: currentColor; }
