/* ==========================================================================
   Isondo Precious Metals — main.css
   Brand: Dark Grey #4D4F51 · Light Grey #808082 · Burnt Red #AB2231
   No framework, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Variable.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --ink:        #4D4F51;
  --steel:      #808082;
  --accent:     #AB2231;

  /* Derived neutrals — tints/shades of the brand family only */
  --ink-900:    #242627;
  --ink-800:    #2E3032;
  --ink-700:    #3B3D3F;
  --ink-600:    #4D4F51;
  --ink-400:    #6C6E70;
  --ink-300:    #9B9D9E;
  --ink-200:    #C7C8C9;
  --ink-100:    #E4E5E5;
  --mist:       #F4F4F5;
  /* Small uppercase label grey. --steel (#808082) is only 3.94:1 on white,
     which fails AA for normal-size text, so labels use this darker tint. */
  --label:      #6C6E70;
  --paper:      #FFFFFF;

  --accent-dark:#8C1B27;
  --accent-100: #F7E9EB;

  /* Type */
  --font-head: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   clamp(1.0625rem, 0.4vw + 0.97rem, 1.1875rem);
  --fs-lg:   clamp(1.25rem, 0.7vw + 1.1rem, 1.5rem);
  --fs-xl:   clamp(1.5rem, 1.2vw + 1.25rem, 2rem);
  --fs-2xl:  clamp(1.875rem, 2vw + 1.4rem, 2.75rem);
  --fs-3xl:  clamp(2rem, 2.4vw + 1.4rem, 3.1rem);
  --fs-4xl:  clamp(2.25rem, 2.9vw + 1.5rem, 3.75rem);

  /* Space — 8px scale */
  --s-1: 0.5rem;  --s-2: 1rem;   --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 3rem;    --s-6: 4rem;   --s-7: 6rem;    --s-8: 8rem;

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 780px;
  --radius: 2px;
  --radius-lg: 4px;

  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 240ms;

  --shadow-sm: 0 1px 2px rgba(36, 38, 39, 0.06), 0 2px 8px rgba(36, 38, 39, 0.05);
  --shadow-md: 0 4px 12px rgba(36, 38, 39, 0.08), 0 12px 32px rgba(36, 38, 39, 0.07);
}

/* --------------------------------------------------------------------------
   3. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  /* Reserve the scrollbar track so opening the lightbox, which locks body
     scrolling, does not shift the page sideways underneath it. */
  scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv05' 1;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-base); letter-spacing: 0; }

p { text-wrap: pretty; }
p + p { margin-top: var(--s-2); }

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

strong { font-weight: 600; color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: var(--s-2); top: -100px;
  background: var(--ink-900); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 200;
  font-size: var(--fs-sm); font-weight: 600;
  border-radius: var(--radius);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-2); color: #fff; }

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

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-3);
}
@media (min-width: 768px) { .wrap { padding-inline: var(--s-4); } }

.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; }

.section { padding-block: var(--s-6); }
@media (min-width: 768px) { .section { padding-block: var(--s-7); } }
.section--tight { padding-block: var(--s-5); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink-900); color: var(--ink-200); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.grid { display: grid; gap: var(--s-3); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .split--wide-left  { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
}

/* --------------------------------------------------------------------------
   5. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: ''; width: 24px; height: 2px;
  background: var(--accent); flex: none;
}
.section--ink .eyebrow { color: #E8969E; }
.section--ink .eyebrow::before { background: #E8969E; }

.lede {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--ink-600);
  font-weight: 400;
}
.section--ink .lede { color: var(--ink-200); }

.section-head { max-width: 62ch; margin-bottom: var(--s-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p { margin-top: var(--s-2); color: var(--ink-600); }
.section--ink .section-head p { color: var(--ink-200); }

.muted { color: var(--ink-400); }
.small { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-200); }
.btn--ghost:hover { border-color: var(--ink-900); color: var(--ink-900); background: var(--mist); }

.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--light:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head);
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--accent); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  height: var(--header-h);
}
.brand { display: block; text-decoration: none; flex: none; }
.brand img {
  width: auto;
  height: 40px;
}
@media (min-width: 640px) { .brand img { height: 46px; } }

.nav { display: none; }
@media (min-width: 1060px) { .nav { display: flex; align-items: center; gap: var(--s-3); } }
.nav a {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 500;
  color: var(--ink-600); text-decoration: none;
  padding-block: 0.4rem;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink-900); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink-900); font-weight: 600; }

.header-cta { display: none; }
@media (min-width: 1060px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--ink-200);
  border-radius: var(--radius); cursor: pointer; color: var(--ink-900);
}
@media (min-width: 1060px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.drawer {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--paper);
  z-index: 99;
  padding: var(--s-4) var(--s-3) var(--s-6);
  overflow-y: auto;
  display: none;
}
.drawer[data-open="true"] { display: block; }
@media (min-width: 1060px) { .drawer { display: none !important; } }
.drawer a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 500;
  color: var(--ink-900); text-decoration: none;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--ink-100);
}
.drawer a:not(.btn)[aria-current="page"] { color: var(--accent); }
.drawer a.btn { margin-top: var(--s-4); width: 100%; justify-content: center; }
.drawer a.btn--primary { color: #fff; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(400px, 56vh, 560px);
  background: var(--ink-900);
  overflow: hidden;
  isolation: isolate;
}
.hero--home { min-height: clamp(520px, 78vh, 720px); }

.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(30,32,33,0.97) 0%, rgba(30,32,33,0.93) 30%, rgba(30,32,33,0.68) 58%, rgba(30,32,33,0.48) 100%),
    linear-gradient(to top, rgba(30,32,33,0.80) 0%, rgba(30,32,33,0.10) 55%);
}
.hero__inner {
  position: relative; z-index: 1; width: 100%;
  flex: 1 1 auto;
  display: flex; align-items: center;
  padding-block: var(--s-5);
}
.hero__content { max-width: 38rem; }
.hero h1 { color: #fff; font-size: var(--fs-4xl); font-weight: 600; }
.hero .eyebrow { color: #E8969E; }
.hero .eyebrow::before { background: var(--accent); }
.hero__lede {
  margin-top: var(--s-3);
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.82);
  max-width: 34rem;
  line-height: 1.5;
}

/* Hero stat strip */
.hero__stats {
  position: relative; z-index: 1;
  flex: none;
  border-top: 1px solid rgba(255,255,255,0.18);
  background: rgba(24,26,27,0.62);
  backdrop-filter: blur(8px);
}
.hero__stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .hero__stats-grid { grid-template-columns: repeat(4, 1fr); } }
.hero__stat {
  padding: var(--s-2) var(--s-2);
  border-right: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (min-width: 760px) { .hero__stat { border-bottom: 0; padding-block: var(--s-3); } }
.hero__stat:last-child { border-right: 0; }
@media (min-width: 760px) { .hero__stat:first-child { padding-left: 0; } }
.hero__stat dt {
  font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); font-weight: 500;
}
.hero__stat dd {
  font-family: var(--font-head); font-size: var(--fs-base); font-weight: 600;
  color: #fff; margin-top: 0.25rem; line-height: 1.25;
  text-wrap: balance;
}
@media (min-width: 1100px) { .hero__stat dd { font-size: 1.1rem; } }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  display: flex; flex-direction: column; gap: var(--s-2);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:has(a:hover), a.card:hover {
  border-color: var(--ink-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__icon { width: 40px; height: 40px; }
.card h3 { margin-top: var(--s-1); }
.card p { font-size: var(--fs-base); color: var(--ink-600); }
.card__foot { margin-top: auto; padding-top: var(--s-2); }

.card--flat { border: 0; padding: 0; background: transparent; }
.card--flat:hover { transform: none; box-shadow: none; }

.section--mist .card { background: var(--paper); }
.section--ink .card {
  background: var(--ink-800); border-color: rgba(255,255,255,0.10);
}
.section--ink .card p { color: var(--ink-200); }

/* Capability list — intrinsically responsive, so it stays single-column inside
   a narrow layout column and goes two-up only when there is genuinely room. */
.cap-list {
  display: grid; gap: 0 var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  border-top: 1px solid var(--ink-100);
  padding: 0;
}
.cap-list li {
  display: flex; align-items: flex-start; gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--ink-100);
  list-style: none;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink-700);
}
.cap-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* Product block */
.product {
  border-top: 2px solid var(--ink-900);
  padding-top: var(--s-3);
}
.product + .product { margin-top: var(--s-6); }
.product__label {
  font-family: var(--font-head); font-size: var(--fs-xs);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--label); font-weight: 600;
  margin-bottom: var(--s-1);
}

/* Spec table */
.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.spec th, .spec td { text-align: left; padding: 0.75rem 0; border-bottom: 1px solid var(--ink-100); vertical-align: top; }
.spec th { font-weight: 500; color: var(--ink-400); width: 42%; font-size: var(--fs-sm); }
.spec td { color: var(--ink-900); font-weight: 500; }

/* --------------------------------------------------------------------------
   10. Stats
   -------------------------------------------------------------------------- */
.stats { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .stats--3 { grid-template-columns: repeat(3, 1fr); } }

.stat { border-top: 2px solid var(--accent); padding-top: var(--s-2); }
.stat__value {
  font-family: var(--font-head);
  font-size: var(--fs-2xl); font-weight: 600;
  color: var(--ink-900); line-height: 1.05;
  letter-spacing: -0.03em;
}
.section--ink .stat__value { color: #fff; }
.stat__label { font-size: var(--fs-sm); color: var(--ink-400); margin-top: 0.4rem; }
.section--ink .stat__label { color: var(--ink-300); }

/* --------------------------------------------------------------------------
   11. Trust band (accreditations)
   -------------------------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--ink-100);
  background: var(--mist);
  padding-block: var(--s-3);
}
.trust__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-2) var(--s-4);
  justify-content: center;
}
.trust__label {
  font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--label); font-weight: 600; font-family: var(--font-head);
  width: 100%; text-align: center;
}
@media (min-width: 900px) { .trust__label { width: auto; text-align: left; } }
.trust__item {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-700);
}
.trust__item svg { width: 20px; height: 20px; flex: none; }

/* --------------------------------------------------------------------------
   12. Process steps (technology)
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step; display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.step {
  counter-increment: step;
  border-top: 1px solid var(--ink-200);
  padding-top: var(--s-2);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 700;
  color: var(--accent); letter-spacing: 0.08em;
  display: block; margin-bottom: var(--s-1);
}
.step h3 { font-size: var(--fs-base); font-weight: 600; }
.step p { font-size: var(--fs-sm); color: var(--ink-600); margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   13. Media blocks
   -------------------------------------------------------------------------- */
.media { border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media--wide img { aspect-ratio: 16 / 9; }
.media--tall img { aspect-ratio: 3 / 4; }

.figure { margin: 0; }
.figure figcaption {
  font-size: var(--fs-sm); color: var(--ink-400);
  margin-top: var(--s-2); padding-left: var(--s-2);
  border-left: 2px solid var(--accent);
}

.diagram {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
}
.diagram img { width: 100%; }

.video-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink-900);
}
.video-frame video { width: 100%; display: block; }

/* --------------------------------------------------------------------------
   14. News cards
   -------------------------------------------------------------------------- */
.news-grid { display: grid; gap: var(--s-3); }
@media (min-width: 700px)  { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--paper);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--ink-200); }
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.03); }
.news-card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
.news-card__meta {
  font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--label); font-weight: 600;
}
.news-card h3 { font-size: var(--fs-base); font-weight: 600; }
.news-card p { font-size: var(--fs-sm); color: var(--ink-600); }
.news-card__foot { margin-top: auto; padding-top: var(--s-2); }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--ink-900);
  color: #fff;
  padding-block: var(--s-6);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 22%, transparent 22%);
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 52ch; margin-top: var(--s-2); }
.cta-band__inner { display: grid; gap: var(--s-4); align-items: end; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-3); }
.form-row { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-900);
}
.field .req { color: var(--accent); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-400); }

.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234D4F51' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-100);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--accent);
}
.field .error {
  font-size: var(--fs-xs); color: var(--accent); font-weight: 500;
  display: none;
}
.field .error[data-show="true"] { display: block; }

.checkbox {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: var(--fs-sm); color: var(--ink-600);
}
.checkbox input { width: 18px; height: 18px; margin-top: 0.2rem; flex: none; accent-color: var(--accent); }

/* Honeypot — visually and programmatically hidden from humans */
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--accent);
  background: var(--accent-100);
  font-size: var(--fs-sm);
  color: var(--ink-900);
}

/* --------------------------------------------------------------------------
   17. Contact details
   -------------------------------------------------------------------------- */
.contact-list { display: grid; gap: var(--s-3); list-style: none; padding: 0; }
.contact-item { display: flex; gap: var(--s-2); align-items: flex-start; }
.contact-item svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.contact-item__label {
  font-family: var(--font-head); font-size: var(--fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--label); font-weight: 600;
}
.contact-item__value { color: var(--ink-900); font-weight: 500; }
.contact-item a { color: var(--ink-900); text-decoration: none; }
.contact-item a:hover { color: var(--accent); text-decoration: underline; }

.map-embed {
  border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--mist);
}
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding-block: var(--s-6) var(--s-4); }
.site-footer h4 {
  color: #fff; font-size: var(--fs-xs); letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600; margin-bottom: var(--s-2);
}
.footer-grid { display: grid; gap: var(--s-4); }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s-5); } }

.footer-brand img { width: auto; height: 52px; margin-bottom: var(--s-3); }
.footer-brand p { font-size: var(--fs-sm); color: var(--ink-300); max-width: 34ch; }

.footer-links { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-links a {
  color: var(--ink-300); text-decoration: none; font-size: var(--fs-sm);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: #fff; }

.footer-contact { font-size: var(--fs-sm); font-style: normal; color: var(--ink-300); }
.footer-contact a { color: var(--ink-300); text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact p + p { margin-top: var(--s-2); }

.social { display: flex; gap: 0.6rem; margin-top: var(--s-3); }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.20); border-radius: var(--radius);
  color: var(--ink-300);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social svg { width: 20px; height: 20px; }

.footer-bottom {
  margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); color: var(--ink-400);
}

.bee-badge { display: flex; align-items: center; gap: 0.7rem; margin-top: var(--s-3); }
.bee-badge img { width: 44px; height: 44px; }
.bee-badge span { font-size: var(--fs-xs); color: var(--ink-300); line-height: 1.35; }

/* --------------------------------------------------------------------------
   19. Page header (interior pages)
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: var(--s-2);
  font-family: var(--font-head); font-weight: 500;
}
.breadcrumb a { color: rgba(255,255,255,0.72); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span { margin-inline: 0.5rem; }

/* --------------------------------------------------------------------------
   20. Motion — reveal on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.text-center { text-align: center; }
.list-plain { list-style: none; padding: 0; }
.divider { height: 1px; background: var(--ink-100); border: 0; margin-block: var(--s-5); }

/* --------------------------------------------------------------------------
   22. Two-colour icon system
   Icons live in a <symbol> sprite and are drawn with <use>. Ordinary class
   selectors cannot style inside the <use> shadow tree, but custom properties
   DO inherit into it — so every icon reads its two colours from here.
   -------------------------------------------------------------------------- */
.ico {
  width: 40px; height: 40px;
  --c-base: var(--ink-900);
  --c-accent: var(--accent);
}
.ico--sm { width: 20px; height: 20px; }
.ico--md { width: 24px; height: 24px; }
.ico--btn { width: 18px; height: 18px; }

/* Inverted contexts: the structural line goes white, the accent stays brand red
   but lightens so it holds up against a dark ground. */
.section--ink .ico, .hero .ico, .cta-band .ico, .site-footer .ico {
  --c-base: #FFFFFF;
  --c-accent: #E4737F;
}
.btn--primary .ico { --c-base: #FFFFFF; --c-accent: #FFFFFF; }
.btn--light:hover .ico { --c-base: var(--ink-900); --c-accent: var(--accent); }
.social a:hover .ico { --c-base: #FFFFFF; --c-accent: #FFFFFF; }

/* --------------------------------------------------------------------------
   23. Navigation dropdown
   The site outgrew a flat nav bar, so capability pages group under one
   trigger. Works on hover for mice, on click for touch, and on keyboard
   for everyone else; closes on Escape and on focus leaving the group.
   -------------------------------------------------------------------------- */
.nav__group { position: relative; }

.nav__trigger {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 500;
  color: var(--ink-600);
  background: none; border: 0; padding: 0.4rem 0;
  cursor: pointer; white-space: nowrap;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav__trigger::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__trigger:hover { color: var(--ink-900); }
.nav__group:hover .nav__trigger::after,
.nav__trigger[aria-expanded="true"]::after,
.nav__trigger[data-section-active="true"]::after { transform: scaleX(1); }
.nav__trigger[data-section-active="true"] { color: var(--ink-900); font-weight: 600; }

.nav__caret {
  width: 12px; height: 12px; flex: none;
  transition: transform var(--dur) var(--ease);
}
.nav__trigger[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__panel {
  position: absolute; top: calc(100% + 10px); left: -1rem;
  min-width: 19rem;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 120;
}
/* A hit-area bridge so the pointer can travel from trigger to panel. */
.nav__panel::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav__group:hover .nav__panel,
.nav__group:focus-within .nav__panel,
.nav__panel[data-open="true"] {
  opacity: 1; visibility: visible; transform: none;
}

.nav__panel a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.nav__panel a::after { display: none; }
.nav__panel a:hover { background: var(--mist); }
.nav__panel a[aria-current="page"] { background: var(--accent-100); }
.nav__panel-title {
  display: block;
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 600;
  color: var(--ink-900); line-height: 1.3;
}
.nav__panel a[aria-current="page"] .nav__panel-title { color: var(--accent); }
.nav__panel-desc {
  display: block;
  font-size: var(--fs-xs); color: var(--ink-400); margin-top: 0.15rem; line-height: 1.4;
}

/* Drawer sub-group */
.drawer__group-label {
  font-family: var(--font-head); font-size: var(--fs-xs);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--label); font-weight: 600;
  padding-top: var(--s-3); padding-bottom: 0.25rem;
}
.drawer a.drawer__sub { padding-left: var(--s-2); font-size: 1rem; }

/* --------------------------------------------------------------------------
   24. Pull quote
   -------------------------------------------------------------------------- */
.pull-quote {
  margin: var(--s-3) 0 0;
  padding-left: var(--s-3);
  border-left: 3px solid var(--accent);
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.pull-quote cite {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 500;
  color: var(--label);
  letter-spacing: 0;
}
.section--ink .pull-quote, .hero .pull-quote { color: #fff; }
.section--ink .pull-quote cite { color: var(--ink-300); }

/* --------------------------------------------------------------------------
   25. Dark-section overrides
   Several components were authored for light backgrounds and are now reused
   inside .section--ink. Their body greys go invisible there, so lift them.
   -------------------------------------------------------------------------- */
.section--ink .cap-list { border-top-color: rgba(255,255,255,0.18); }
.section--ink .cap-list li {
  color: var(--ink-200);
  border-bottom-color: rgba(255,255,255,0.14);
}
.section--ink .cap-list strong { color: #fff; }

.section--ink .spec th { color: var(--ink-300); }
.section--ink .spec td { color: #fff; }
.section--ink .spec th, .section--ink .spec td { border-bottom-color: rgba(255,255,255,0.14); }

.section--ink .step { border-top-color: rgba(255,255,255,0.28); }
.section--ink .step p { color: var(--ink-200); }
.section--ink .step::before { color: #E8969E; }

.section--ink .product { border-top-color: rgba(255,255,255,0.28); }
.section--ink .product__label { color: var(--ink-300); }

.section--ink .figure figcaption {
  color: var(--ink-300);
  border-left-color: #E4737F;
}
.section--ink .diagram {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
}
.section--ink .muted, .section--ink .small.muted { color: var(--ink-300); }
.section--ink a:not(.btn):not(.link-arrow) { color: #E8969E; }
.section--ink a:not(.btn):not(.link-arrow):hover { color: #fff; }
.section--ink .link-arrow { color: #E8969E; }
.section--ink .link-arrow:hover { color: #fff; }

/* ==========================================================================
   26. News article — rich text, gallery, lightbox, documents
   ========================================================================== */

/* Article hero: shorter than a page hero, and the feature image is content
   rather than decoration, so it keeps more of its own contrast. */
.hero--article { min-height: clamp(340px, 46vh, 480px); }
.hero--article .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--article .hero__media::after {
  background:
    linear-gradient(100deg, rgba(30,32,33,0.95) 0%, rgba(30,32,33,0.86) 34%, rgba(30,32,33,0.55) 66%, rgba(30,32,33,0.38) 100%),
    linear-gradient(to top, rgba(30,32,33,0.72) 0%, rgba(30,32,33,0.08) 60%);
}
.hero--article h1 { font-size: var(--fs-3xl); }

/* --------------------------------------------------------------------------
   Rich text — the styles author-written article bodies render into
   -------------------------------------------------------------------------- */
.rich-text { font-size: var(--fs-md); line-height: 1.7; color: var(--ink-700); }
.rich-text > * + * { margin-top: var(--s-3); }

.rich-text h2 { font-size: var(--fs-xl); margin-top: var(--s-5); }
.rich-text h3 { font-size: var(--fs-lg); margin-top: var(--s-4); }
.rich-text h4 { font-size: var(--fs-base); margin-top: var(--s-4); }
.rich-text h2 + *, .rich-text h3 + *, .rich-text h4 + * { margin-top: var(--s-2); }

.rich-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rich-text a:hover { color: var(--accent-dark); }

.rich-text ul, .rich-text ol { padding-left: 1.35rem; }
.rich-text li + li { margin-top: 0.4rem; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }

.rich-text img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  margin-block: var(--s-3);
}
.rich-text figure { margin: var(--s-4) 0; }
.rich-text figcaption {
  font-size: var(--fs-sm); color: var(--ink-400);
  margin-top: var(--s-2); padding-left: var(--s-2);
  border-left: 2px solid var(--accent);
}

.rich-text blockquote {
  margin: var(--s-4) 0;
  padding-left: var(--s-3);
  border-left: 3px solid var(--accent);
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  line-height: 1.4;
  color: var(--ink-900);
}

.rich-text pre {
  background: var(--mist); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: var(--s-2);
  overflow-x: auto; font-size: var(--fs-sm);
}
.rich-text code { background: var(--mist); padding: 0.1rem 0.35rem; border-radius: 2px; font-size: 0.9em; }
.rich-text pre code { background: none; padding: 0; }

.rich-text hr { border: 0; border-top: 1px solid var(--ink-100); margin-block: var(--s-5); }

/* Tables in article bodies scroll rather than break the page. */
.rich-text table {
  width: 100%; border-collapse: collapse; font-size: var(--fs-base);
  display: block; overflow-x: auto;
}
.rich-text th, .rich-text td {
  border-bottom: 1px solid var(--ink-100); padding: 0.7rem 0.75rem; text-align: left; vertical-align: top;
}
.rich-text th { font-weight: 600; color: var(--ink-900); }

/* Alignment classes the editor may emit */
.rich-text .ql-align-center  { text-align: center; }
.rich-text .ql-align-right   { text-align: right; }
.rich-text .ql-align-justify { text-align: justify; }
.rich-text .ql-indent-1 { padding-left: 2rem; }
.rich-text .ql-indent-2 { padding-left: 4rem; }
.rich-text .ql-indent-3 { padding-left: 6rem; }

/* --------------------------------------------------------------------------
   News card additions
   -------------------------------------------------------------------------- */
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--accent); }
.news-card__img { display: block; }

.news-card__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: var(--fs-xs); font-weight: 600; font-family: var(--font-head);
  color: var(--ink-600); background: var(--mist);
  border: 1px solid var(--ink-100); border-radius: 999px;
  padding: 0.25rem 0.6rem;
}
.badge .ico { width: 14px; height: 14px; }

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-3); margin-top: var(--s-5);
}
.pagination__status { font-size: var(--fs-sm); color: var(--ink-400); }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery {
  list-style: none; padding: 0; display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.gallery__btn {
  display: block; position: relative; width: 100%; padding: 0;
  border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--paper); cursor: zoom-in;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery__btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery__btn:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.gallery__zoom {
  position: absolute; right: 0.6rem; bottom: 0.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius);
  background: rgba(255,255,255,0.94); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery__btn:hover .gallery__zoom, .gallery__btn:focus-visible .gallery__zoom {
  opacity: 1; transform: none;
}
.gallery__caption { font-size: var(--fs-sm); color: var(--ink-400); margin-top: 0.6rem; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: var(--s-2); padding: var(--s-3);
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(20,21,22,0.94); }

.lightbox__figure {
  position: relative; margin: 0; grid-column: 2;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  max-height: 100%; min-width: 0;
}
.lightbox__img {
  max-width: 100%; max-height: 76vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius-lg);
  background: var(--ink-800);
}
.lightbox__caption {
  text-align: center; color: rgba(255,255,255,0.86);
  font-size: var(--fs-sm); max-width: 60ch;
}
.lightbox__counter {
  display: block; font-family: var(--font-head); font-size: var(--fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 0.35rem;
}

.lightbox__close, .lightbox__nav {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius); cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: var(--accent); border-color: var(--accent);
}
.lightbox__close .ico, .lightbox__nav .ico {
  width: 22px; height: 22px; --c-base: #fff; --c-accent: #E4737F;
}
.lightbox__close:hover .ico, .lightbox__nav:hover .ico { --c-base: #fff; --c-accent: #fff; }

.lightbox__close { position: absolute; top: var(--s-2); right: var(--s-2); }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }

@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__figure { grid-column: 1; }
  .lightbox__nav {
    position: absolute; bottom: var(--s-3);
  }
  .lightbox__nav--prev { left: var(--s-3); }
  .lightbox__nav--next { right: var(--s-3); }
  .lightbox__img { max-height: 62vh; }
}

body.lightbox-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Document downloads
   -------------------------------------------------------------------------- */
.doc-list { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.doc-list__link {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  background: var(--paper); text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.doc-list__link:hover {
  border-color: var(--ink-200); box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.doc-list__icon { width: 30px; height: 30px; flex: none; }
.doc-list__text { flex: 1; min-width: 0; }
.doc-list__title {
  display: block; font-family: var(--font-head); font-weight: 600;
  color: var(--ink-900); line-height: 1.3;
}
.doc-list__meta {
  display: block; font-size: var(--fs-xs); color: var(--ink-400);
  letter-spacing: 0.06em; margin-top: 0.2rem;
}
.doc-list__arrow { width: 22px; height: 22px; flex: none; }

/* --------------------------------------------------------------------------
   Previous / next article
   -------------------------------------------------------------------------- */
.article-nav { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
@media (min-width: 760px) { .article-nav { grid-template-columns: 1fr 1fr; gap: var(--s-3); } }

.article-nav__link {
  display: block; padding: var(--s-3);
  background: var(--paper); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.article-nav__link:hover { border-color: var(--ink-200); box-shadow: var(--shadow-md); }
.article-nav__link--next { text-align: right; }
.article-nav__label {
  display: block; font-family: var(--font-head); font-size: var(--fs-xs);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.3rem;
}
.article-nav__title {
  display: block; font-family: var(--font-head); font-weight: 600;
  color: var(--ink-900); line-height: 1.3;
}

/* --------------------------------------------------------------------------
   27. Whole-card link
   The card title carries the only link; this stretches its hit area over the
   entire card so a click anywhere opens the article, while keyboard and screen
   reader users still get exactly one meaningful stop per card.
   -------------------------------------------------------------------------- */
.news-card { position: relative; }

.news-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-lg);
}

/* The focus ring belongs on the whole card, not on the few words of the title. */
.news-card:has(.news-card__link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.news-card__link:focus-visible { outline: none; }

/* Hovering anywhere on the card should read as hovering the link. */
.news-card:hover .news-card__link { color: var(--accent); }
.news-card:hover .link-arrow svg { transform: translateX(3px); }

/* The link itself must stay unpositioned: giving it — or any ancestor inside
   the card — position:relative would make inset:0 resolve against that element
   instead of the card, which is exactly how this stops working. */

/* --------------------------------------------------------------------------
   28. Market band
   Six end markets as a compact, scannable row. Deliberately lighter than the
   capability cards above it: this is a signpost into the Markets page, not a
   second set of feature cards competing for the same attention.
   -------------------------------------------------------------------------- */
.market-band {
  list-style: none; padding: 0;
  display: grid; gap: var(--s-2);
  /* Explicit column counts rather than auto-fit: six items need to divide
     evenly, and auto-fit was leaving a single orphan on the second row. */
  grid-template-columns: 1fr;
}
@media (min-width: 560px)  { .market-band { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .market-band { grid-template-columns: repeat(4, 1fr); } }

.market-band a {
  position: relative;
  display: flex; flex-direction: column; gap: 0.4rem;
  height: 100%;
  padding: var(--s-3) var(--s-2);
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.market-band a:hover {
  border-color: var(--ink-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.market-band .ico { width: 30px; height: 30px; }

.market-band__name {
  font-family: var(--font-head); font-weight: 600; line-height: 1.25;
  color: var(--ink-900); font-size: var(--fs-base);
}
.market-band a:hover .market-band__name { color: var(--accent); }

.market-band__meta {
  font-size: var(--fs-xs); color: var(--ink-400);
  letter-spacing: 0.06em; margin-top: auto;
}

.market-band__flag {
  align-self: flex-start;
  font-family: var(--font-head); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  padding: 0.15rem 0.45rem; border-radius: 2px;
  margin-top: 0.2rem;
}

.section--mist .market-band a { background: var(--paper); }

/* Wide tables scroll inside their own container rather than pushing the page. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .spec { min-width: 40rem; }

/* ==========================================================================
   29. LinkedIn feed
   Branded cards, not LinkedIn's own chrome. The real post is loaded into the
   modal below only when a visitor asks for it, so the landing page never pays
   for four LinkedIn iframes on first paint.
   ========================================================================== */
.li-feed {
  list-style: none; padding: 0;
  display: grid; gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 620px)  { .li-feed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .li-feed { grid-template-columns: repeat(4, 1fr); } }

.li-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.li-card:hover {
  border-color: var(--ink-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.li-card__head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: var(--s-2) var(--s-2) 0.75rem;
}
.li-card__avatar {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%; border: 1px solid var(--ink-100); background: var(--paper);
  object-fit: contain;
}
.li-card__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.li-card__name {
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  color: var(--ink-900); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.li-card__date { font-size: var(--fs-xs); color: var(--ink-400); margin-top: 0.1rem; }
.li-card__badge { flex: none; }

.li-card__img { background: var(--mist); }
.li-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.li-card__body { padding: var(--s-2); display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.li-card__title {
  font-size: var(--fs-base); font-weight: 600; line-height: 1.3;
  color: var(--ink-900); margin: 0;
}
.li-card__text { font-size: var(--fs-sm); color: var(--ink-600); }

.li-card__foot { padding: 0 var(--s-2) var(--s-2); margin-top: auto; }
.li-card__open {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 600;
  color: var(--accent);
}
.li-card__open svg { transition: transform var(--dur) var(--ease); }
.li-card:hover .li-card__open svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   LinkedIn post viewer
   Deliberately separate from the gallery lightbox: that one is image-only and
   wired to prev/next and swipe, and bending it to host an iframe would risk
   breaking article galleries that already work.
   -------------------------------------------------------------------------- */
.li-modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: var(--s-3);
}
.li-modal[hidden] { display: none; }
.li-modal__backdrop { position: absolute; inset: 0; background: rgba(20,21,22,0.94); }

.li-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 860px);
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.li-modal__head {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--ink-100);
}
.li-modal__title {
  font-size: var(--fs-base); margin: 0; flex: 1; line-height: 1.3;
}
.li-modal__close {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--ink-200);
  border-radius: var(--radius); cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.li-modal__close:hover { background: var(--accent); border-color: var(--accent); }
.li-modal__close .ico { width: 18px; height: 18px; }
.li-modal__close:hover .ico { --c-base: #fff; --c-accent: #fff; }

/* Fixed height so injecting the iframe does not shift the panel. */
.li-modal__frame {
  flex: 1; min-height: 420px;
  background: var(--mist);
  display: flex; align-items: center; justify-content: center;
}
.li-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.li-modal__loading { font-size: var(--fs-sm); color: var(--ink-400); }

.li-modal__foot {
  padding: var(--s-2) var(--s-3);
  border-top: 1px solid var(--ink-100);
}

body.li-modal-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   30. Elfsight LinkedIn feed
   The widget brings its own layout, so this only gives it room to breathe and
   reserves vertical space while it loads — without a min-height the section
   collapses to nothing and everything below it jumps when the feed appears.
   -------------------------------------------------------------------------- */
.elf-feed { min-height: 420px; }
.elf-feed > div { width: 100%; }

@media (max-width: 640px) { .elf-feed { min-height: 520px; } }
