/* ==========================================================================
   Vanclare Smart Solutions — Design System
   Light theme · Green brand · Motion-first
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand greens */
  --g-900: #123d1c;
  --g-800: #1d5c2b;
  --g-700: #2e7d32;
  --g-600: #3f9a44;
  --g-500: #55ac4f;
  --g-400: #79c157;
  --g-300: #a3d47a;
  --g-200: #cfe8b8;
  --g-100: #e6f3dc;
  --g-50:  #f3f9ef;

  /* Neutrals */
  --ink:      #0f1613;
  --ink-2:    #23302a;
  --body:     #5c6c64;
  --body-2:   #7d8b84;
  --line:     #e7ecE8;
  --line-2:   #f0f4f0;
  --surface:  #ffffff;
  --bg:       #fbfcfa;

  /* Status */
  --ok:      #43a047;
  --ok-bg:   #eaf6ea;
  --pending: #e8a03a;
  --pend-bg: #fdf4e6;
  --none:    #b9c3bd;

  /* Type */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Space & shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 40, 26, .04);
  --shadow-sm: 0 2px 8px rgba(16, 40, 26, .05), 0 1px 2px rgba(16, 40, 26, .04);
  --shadow-md: 0 10px 30px -12px rgba(16, 40, 26, .16), 0 2px 8px rgba(16, 40, 26, .04);
  --shadow-lg: 0 30px 60px -24px rgba(16, 40, 26, .22), 0 8px 20px -12px rgba(16, 40, 26, .10);
  --shadow-glow: 0 18px 40px -18px rgba(85, 172, 79, .55);

  --maxw: 1240px;
  --nav-h: 74px;
  --gutter: 28px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
  --spring:   cubic-bezier(.34, 1.56, .64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient light-green mesh behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 520px at 82% -6%,  rgba(121, 193, 87, .16), transparent 62%),
    radial-gradient(620px 460px at -8% 18%,  rgba(85, 172, 79, .10), transparent 60%),
    radial-gradient(900px 620px at 50% 108%, rgba(163, 212, 122, .13), transparent 62%);
  pointer-events: none;
}
/* Fine grid texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15, 22, 19, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 22, 19, .022) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button, summary, label { -webkit-tap-highlight-color: rgba(85, 172, 79, .14); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--g-200); color: var(--g-900); }

/* ---------- 3. Typography ------------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.h-display { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-weight: 600; letter-spacing: -0.035em; }
.h-page    { font-size: clamp(2.2rem, 4.4vw, 3.9rem); font-weight: 600; letter-spacing: -0.032em; }
.h-2       { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.h-3       { font-size: clamp(1.12rem, 1.7vw, 1.34rem); letter-spacing: -0.016em; }
.h-4       { font-size: 1.02rem; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1rem, 1.24vw, 1.115rem);
  color: var(--body);
  max-width: 60ch;
  line-height: 1.72;
}
.muted { color: var(--body-2); }
.small { font-size: .875rem; }
.xsmall { font-size: .795rem; }
.grad-text {
  background: linear-gradient(100deg, var(--g-700) 0%, var(--g-500) 42%, var(--g-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Layout ---------------------------------------------------- */
/* env() keeps content clear of the rounded corners / camera cutout when a
   phone is held in landscape; it resolves to 0 everywhere else. */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(64px, 8vw, 108px); position: relative; }
.section--tight { padding-block: clamp(46px, 5.5vw, 74px); }

.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Section heading with the drawn dash from the mockups */
.sec-head { margin-bottom: 30px; }
.sec-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.16rem, 1.9vw, 1.42rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.018em;
}
.sec-title::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--g-600), var(--g-400));
  flex: none;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .8s var(--ease-out) .1s;
}
.in-view .sec-title::before, .sec-title.in-view::before { transform: scaleX(1); }
.sec-title--rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.sec-sub { margin-top: 10px; color: var(--body); max-width: 66ch; }

/* ---------- 5. Header / Nav --------------------------------------------- */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--g-700), var(--g-400), var(--g-300));
  z-index: 120;
  will-change: transform;
}

.site-head {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease-out), background .35s, border-color .35s, box-shadow .35s;
}
.site-head.is-stuck {
  height: 64px;
  background: rgba(255, 255, 255, .88);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 40, 26, .5);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* Logo — the supplied artwork is a JPEG on a white ground, so `multiply`
   drops that white into whatever light surface sits behind it. */
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-logo {
  height: 34px;
  width: auto;
  mix-blend-mode: multiply;
  transition: transform .5s var(--spring), filter .4s;
}
.brand:hover .brand-logo { transform: scale(1.035); }
.site-head.is-stuck .brand-logo { height: 30px; }
.site-foot .brand-logo { height: 36px; }
.brand-mark { width: 36px; height: 36px; flex: none; overflow: visible; }
.brand-mark .bar {
  transform-origin: center;
  animation: barIdle 3.4s var(--ease-io) infinite;
}
.brand-mark .bar:nth-child(1) { animation-delay: 0s; }
.brand-mark .bar:nth-child(2) { animation-delay: .11s; }
.brand-mark .bar:nth-child(3) { animation-delay: .22s; }
.brand-mark .bar:nth-child(4) { animation-delay: .33s; }
.brand-mark .bar:nth-child(5) { animation-delay: .44s; }
@keyframes barIdle {
  0%, 62%, 100% { transform: translateX(0); opacity: 1; }
  22%           { transform: translateX(1.6px); opacity: .82; }
}
.brand:hover .brand-mark .bar { animation-duration: 1.1s; }

.brand-text { line-height: 1; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  background: linear-gradient(96deg, var(--g-700), var(--g-500) 55%, var(--g-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-tag {
  display: block;
  font-size: .625rem;
  letter-spacing: .05em;
  color: var(--g-500);
  margin-top: 3px;
  font-weight: 500;
}

/* Nav links */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 13px;
  font-size: .905rem;
  font-weight: 450;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color .25s var(--ease-out);
  white-space: nowrap;
}
.nav a::before {
  content: "";
  position: absolute;
  inset: 4px 6px;
  border-radius: 9px;
  background: var(--g-50);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
  z-index: -1;
}
.nav a:hover { color: var(--g-700); }
.nav a:hover::before { opacity: 1; transform: scale(1); }
.nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px;
  bottom: -25px;
  height: 2.5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--g-600), var(--g-400));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .45s var(--spring);
}
.site-head.is-stuck .nav a::after { bottom: -20px; }
.nav a[aria-current="page"] { color: var(--g-600); font-weight: 550; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  place-items: center;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.8px;
  background: var(--ink-2);
  border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .25s;
}
.nav-toggle span + span { margin-top: 4.5px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }

/* ---------- 6. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--g-600);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-size: .93rem;
  font-weight: 550;
  font-family: var(--font-body);
  letter-spacing: -0.005em;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .3s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97) !important; }

.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--g-700), var(--g-500) 60%, var(--g-400));
  box-shadow: var(--shadow-glow);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--g-800), var(--g-600) 55%, var(--g-500));
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.btn--primary:hover { box-shadow: 0 24px 48px -20px rgba(46, 125, 50, .7); }
.btn--primary:hover::before { opacity: 1; }
/* Sheen sweep */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 42%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease-out);
}
.btn--primary:hover::after { left: 120%; }

.btn--ghost {
  color: var(--g-700);
  background: rgba(255, 255, 255, .7);
  border: 1.5px solid var(--g-200);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: var(--g-400);
  background: var(--g-50);
  box-shadow: 0 14px 30px -18px rgba(46, 125, 50, .45);
}

.btn--sm { padding: 10px 18px; font-size: .86rem; }

/* Text link with sliding arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  font-weight: 550;
  color: var(--g-600);
  position: relative;
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 7. Surfaces / Cards ----------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
  overflow: hidden;
}
/* Cursor spotlight */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(121, 193, 87, .13), transparent 62%);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-5px);
  border-color: var(--g-200);
  box-shadow: var(--shadow-lg);
}
.card--flat:hover { transform: none; }
.card--tilt { will-change: transform; }

/* Top accent line that wipes in */
.card--accent::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g-600), var(--g-400), var(--g-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.card:hover.card--accent::after { transform: scaleX(1); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ---------- 8. Icons ----------------------------------------------------- */
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 30px; height: 30px; }

.ico-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--g-50), var(--g-100));
  border: 1px solid var(--g-100);
  color: var(--g-600);
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
  transition: transform .55s var(--spring), box-shadow .45s, background .45s;
}
.ico-badge svg { width: 27px; height: 27px; }
.card:hover .ico-badge,
.tile:hover .ico-badge {
  transform: translateY(-3px) rotate(-5deg) scale(1.06);
  box-shadow: 0 14px 26px -14px rgba(46, 125, 50, .5);
}
.ico-badge--round { border-radius: var(--r-pill); width: 72px; height: 72px; }
.ico-badge--round svg { width: 34px; height: 34px; }
.ico-badge--plain {
  background: var(--g-50);
  border-color: transparent;
  width: 46px; height: 46px;
  border-radius: 13px;
}
.ico-badge--plain svg { width: 23px; height: 23px; }

/* Pulse ring for round icon badges */
.ico-badge--round::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid var(--g-300);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover .ico-badge--round::after {
  opacity: 1;
  animation: ringPulse 1.7s var(--ease-out) infinite;
}
@keyframes ringPulse {
  0%   { transform: scale(1);    opacity: .75; }
  100% { transform: scale(1.42); opacity: 0; }
}

/* Stroke-draw animation for icons entering view */
.draw-ico [stroke], .draw-ico path, .draw-ico circle, .draw-ico rect, .draw-ico line, .draw-ico polyline {
  stroke-dasharray: var(--len, 120);
  stroke-dashoffset: var(--len, 120);
  transition: stroke-dashoffset 1.1s var(--ease-out);
}
.reveal.is-in .draw-ico [stroke],
.reveal.is-in .draw-ico path, .reveal.is-in .draw-ico circle,
.reveal.is-in .draw-ico rect, .reveal.is-in .draw-ico line,
.reveal.is-in .draw-ico polyline { stroke-dashoffset: 0; }

/* ---------- 9. Pills, chips, badges ------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 550;
  letter-spacing: .005em;
  background: var(--g-50);
  color: var(--g-700);
  border: 1px solid var(--g-100);
  white-space: nowrap;
}
.pill--count { background: var(--surface); border-color: var(--g-200); color: var(--g-600); }
.pill--dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--g-400);
  flex: none;
}
.pill--soft { background: rgba(255,255,255,.72); border-color: var(--line); color: var(--body); font-weight: 450; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--g-100);
  box-shadow: var(--shadow-xs);
  font-size: .795rem;
  font-weight: 500;
  color: var(--g-700);
  letter-spacing: .01em;
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--g-500);
  position: relative;
  flex: none;
}
.eyebrow .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--g-500);
  animation: pingDot 2.1s var(--ease-out) infinite;
}
@keyframes pingDot {
  0%   { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

/* Status markers used in coverage tables */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; white-space: nowrap; }
.status svg { width: 17px; height: 17px; flex: none; }
.status--ok      { color: var(--ok); }
.status--pending { color: var(--pending); }
.status--none    { color: var(--none); }
.status .lbl { color: var(--ink-2); font-weight: 450; }
.status--none .lbl { color: var(--none); }

.dash { color: var(--none); font-size: 1.1rem; line-height: 1; }

/* ---------- 10. Tables --------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
  /* Edge shadows appear only while there is more table to scroll to.
     The white covers travel with the content (local); the shadows don't. */
  background-image:
    linear-gradient(90deg, var(--surface) 40%, rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0), var(--surface) 60%),
    radial-gradient(farthest-side at 0 50%, rgba(16, 40, 26, .11), rgba(16, 40, 26, 0)),
    radial-gradient(farthest-side at 100% 50%, rgba(16, 40, 26, .11), rgba(16, 40, 26, 0));
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-repeat: no-repeat;
  background-size: 44px 100%, 44px 100%, 15px 100%, 15px 100%;
  background-attachment: local, local, scroll, scroll;
}
.tbl { font-size: .875rem; min-width: 680px; }
.tbl th, .tbl td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.tbl thead th {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: .8rem;
  color: var(--ink-2);
  background: linear-gradient(180deg, var(--g-50), rgba(243, 249, 239, .35));
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  letter-spacing: -0.004em;
}
.tbl tbody tr { transition: background .3s var(--ease-out); }
.tbl tbody tr:hover { background: var(--g-50); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl .rowhead {
  font-weight: 550;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: .845rem;
}
.tbl .rowhead .with-ico { display: flex; align-items: center; gap: 11px; }
.tbl .rowhead .with-ico .ico { color: var(--g-600); width: 19px; height: 19px; flex: none; }

/* Row cascade on reveal */
.tbl tbody tr { opacity: 0; transform: translateY(9px); }
.reveal.is-in .tbl tbody tr,
.tbl.is-in tbody tr {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), background .3s;
  transition-delay: calc(var(--i, 0) * 55ms);
}
/* Status icon pop-in inside revealed tables */
.tbl .status svg, .tbl .dash { transform: scale(0); transition: transform .5s var(--spring); }
.reveal.is-in .tbl .status svg, .reveal.is-in .tbl .dash,
.tbl.is-in .status svg, .tbl.is-in .dash {
  transform: scale(1);
  transition-delay: calc(var(--i, 0) * 55ms + 180ms);
}

/* ---------- 11. Tiles (icon + text rows) -------------------------------- */
.tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--r-md);
  transition: background .4s var(--ease-out), transform .4s var(--ease-out);
}
.tile:hover { background: rgba(255, 255, 255, .8); transform: translateY(-2px); }
.tile h4 { margin-bottom: 5px; }
.tile p { font-size: .845rem; line-height: 1.62; color: var(--body); }

.tile-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tile-strip > * + * { border-left: 1px solid var(--line-2); }

/* ---------- 12. Hero ----------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(38px, 6vw, 76px));
  padding-bottom: clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 40px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Canvas globe */
.globe-stage {
  position: relative;
  aspect-ratio: 1 / .84;
  width: 100%;
}
.globe-stage canvas { width: 100%; height: 100%; display: block; }

@keyframes drawArc { to { stroke-dashoffset: 0; } }

/* Floating blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  opacity: .5;
  pointer-events: none;
  z-index: -1;
}
.blob-1 { width: 380px; height: 380px; background: rgba(121, 193, 87, .34); top: -80px; right: 6%; animation: float1 15s ease-in-out infinite; }
.blob-2 { width: 300px; height: 300px; background: rgba(85, 172, 79, .22); bottom: -60px; left: -60px; animation: float2 19s ease-in-out infinite; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-34px, 30px) scale(1.09); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(38px, -28px) scale(1.12); } }

/* Page hero for inner pages */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 5.5vw, 66px));
  padding-bottom: clamp(26px, 3.6vw, 42px);
  overflow: hidden;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: flex-start;
}
.page-hero h1 { margin-bottom: 16px; }
.hero-swoosh {
  position: absolute;
  right: 4%;
  top: 28%;
  width: 140px;
  opacity: .9;
  pointer-events: none;
}
.hero-swoosh path {
  fill: none;
  stroke: var(--g-300);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 210;
  stroke-dashoffset: 210;
  animation: drawArc 1.8s var(--ease-out) .35s forwards;
}

/* ---------- 13. Word-by-word headline reveal ---------------------------- */
/* padding-bottom gives descenders (g, y) room; the extra travel on .split-word
   keeps the word fully hidden behind the mask edge before it animates up. */
.split-line { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.12em; }
.split-word {
  display: inline-block;
  transform: translateY(128%) rotate(4deg);
  opacity: 0;
  animation: wordUp 1.05s var(--ease-out) forwards;
}
@keyframes wordUp { to { transform: translateY(0) rotate(0); opacity: 1; } }

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .95s var(--ease-out) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- 14. Scroll reveal ------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }
.reveal--scale { transform: scale(.955) translateY(20px); }
.reveal--left.is-in, .reveal--right.is-in, .reveal--scale.is-in { transform: none; }

.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1) { transition-delay: 60ms; }
.stagger.is-in > *:nth-child(2) { transition-delay: 145ms; }
.stagger.is-in > *:nth-child(3) { transition-delay: 230ms; }
.stagger.is-in > *:nth-child(4) { transition-delay: 315ms; }
.stagger.is-in > *:nth-child(5) { transition-delay: 400ms; }
.stagger.is-in > *:nth-child(6) { transition-delay: 485ms; }
.stagger.is-in > *:nth-child(7) { transition-delay: 570ms; }
.stagger.is-in > *:nth-child(8) { transition-delay: 655ms; }
.stagger.is-in > *:nth-child(9) { transition-delay: 740ms; }
.stagger.is-in > *:nth-child(10) { transition-delay: 825ms; }

/* ---------- 15. Counters ------------------------------------------------- */
.count {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--g-600);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.count-row { display: flex; align-items: baseline; gap: 8px; }
.count-row .unit { font-size: .82rem; color: var(--g-600); font-weight: 500; }

/* ---------- 16. Family cards -------------------------------------------- */
.fam-card { display: flex; flex-direction: column; height: 100%; }
.fam-card .fam-top { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.fam-card .fam-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.fam-card .num {
  font-family: var(--font-display);
  color: var(--g-500);
  font-weight: 600;
}
.fam-card p { font-size: .875rem; line-height: 1.66; }
.fam-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--g-200);
  display: grid;
  gap: 11px;
}
.fam-meta .row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; font-size: .82rem; }
.fam-meta .row .k { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; }
.fam-meta .row .k .ico { width: 17px; height: 17px; color: var(--g-600); flex: none; }
.fam-meta .row .v { color: var(--body); }

.why {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--g-200);
  font-size: .845rem;
  line-height: 1.62;
}
.why b { color: var(--g-700); font-weight: 600; }

/* ---------- 17. Bar chart ------------------------------------------------ */
.bars { display: grid; gap: 11px; }
.bar-row {
  display: grid;
  grid-template-columns: 118px 1fr 34px;
  align-items: center;
  gap: 12px;
  font-size: .815rem;
}
.bar-row .name { color: var(--ink-2); font-weight: 450; text-align: left; }
.bar-track {
  height: 13px;
  border-radius: var(--r-pill);
  background: var(--line-2);
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--g-500), var(--g-300));
  transition: width 1.35s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
  position: relative;
  overflow: hidden;
}
.bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.5) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 2.6s var(--ease-io) infinite;
  animation-delay: calc(var(--i, 0) * 85ms + 1.2s);
}
@keyframes shimmer { to { transform: translateX(220%); } }
.bar-row .val { text-align: right; color: var(--body); font-variant-numeric: tabular-nums; font-weight: 500; }
.bar-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-left: 130px;
  font-size: .7rem;
  color: var(--body-2);
}

/* ---------- 18. Marquee -------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slideX 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slideX { to { transform: translateX(-50%); } }

.firm {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  min-width: 216px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.firm:hover { transform: translateY(-4px); border-color: var(--g-200); box-shadow: var(--shadow-md); }
.firm .ico { color: var(--g-600); width: 25px; height: 25px; flex: none; }
.firm .fname { font-family: var(--font-display); font-weight: 550; color: var(--ink-2); font-size: .9rem; line-height: 1.25; }
.firm .fdesc { font-size: .735rem; color: var(--body-2); line-height: 1.42; margin-top: 2px; }

/* ---------- 19. Notes / callouts ---------------------------------------- */
.note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, var(--g-50), rgba(255, 255, 255, .6));
  border: 1px solid var(--g-100);
  font-size: .825rem;
  line-height: 1.6;
  color: var(--body);
}
.note .ico { color: var(--g-500); flex: none; margin-top: 1px; }
.note--plain { background: rgba(255,255,255,.66); border-color: var(--line); }

.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }

/* Closing statement band */
.statement {
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 32px 34px;
  border-radius: var(--r-xl);
  background: linear-gradient(115deg, #fff, var(--g-50) 60%, #fff);
  border: 1px solid var(--g-100);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.statement::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121,193,87,.18), transparent 68%);
  right: -80px; top: -140px;
}
.statement p { font-size: clamp(.95rem, 1.2vw, 1.06rem); line-height: 1.7; color: var(--ink-2); position: relative; }
.statement .swoosh { width: 78px; flex: none; }
.statement .swoosh path {
  fill: none; stroke: var(--g-400); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 190; stroke-dashoffset: 190;
  transition: stroke-dashoffset 1.6s var(--ease-out) .2s;
}
/* .statement usually carries .reveal itself, so match both that and the
   nested case — a descendant-only selector would never fire. */
.statement.is-in .swoosh path,
.reveal.is-in .statement .swoosh path { stroke-dashoffset: 0; }

/* ---------- 20. Footer --------------------------------------------------- */
.site-foot {
  margin-top: clamp(50px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(243, 249, 239, .5), rgba(255, 255, 255, .9));
  padding-top: 54px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}
.foot-grid h5 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-2);
  margin-bottom: 15px;
  font-weight: 600;
}
.foot-links { display: grid; gap: 10px; }
.foot-links a {
  font-size: .865rem;
  color: var(--body);
  width: fit-content;
  position: relative;
  transition: color .3s, transform .35s var(--ease-out);
}
.foot-links a:hover { color: var(--g-600); transform: translateX(4px); }
.foot-blurb { font-size: .865rem; max-width: 34ch; margin-top: 14px; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: .795rem;
  color: var(--body-2);
}
.foot-tag { display: flex; align-items: center; gap: 14px; }
.foot-tag .sep { width: 1px; height: 18px; background: var(--line); }

/* Region strip */
.regions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 30px;
  padding: 18px 24px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  font-size: .82rem;
  color: var(--body);
}
.regions .lead-in { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 450; }
.regions .lead-in .ico { color: var(--g-500); }
.regions .r { display: flex; align-items: center; gap: 8px; }
.regions .r i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--g-400);
  display: block;
  animation: blip 3s var(--ease-io) infinite;
}
.regions .r:nth-child(3) i { animation-delay: .4s; }
.regions .r:nth-child(4) i { animation-delay: .8s; }
.regions .r:nth-child(5) i { animation-delay: 1.2s; }
.regions .r:nth-child(6) i { animation-delay: 1.6s; }
@keyframes blip {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(1.5); opacity: 1; }
}

/* ---------- 21. Forms ---------------------------------------------------- */
.field { display: grid; gap: 7px; margin-bottom: 17px; position: relative; }
.field label { font-size: .82rem; font-weight: 550; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: .9rem;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease-out);
  outline: none;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--g-400);
  box-shadow: 0 0 0 4px rgba(121, 193, 87, .16);
}
.field .err { font-size: .75rem; color: #d0473b; min-height: 0; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #e08279; }
.form-note { font-size: .78rem; color: var(--body-2); margin-top: 12px; line-height: 1.55; }

.form-success {
  display: none;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--ok-bg);
  border: 1px solid var(--g-200);
  color: var(--g-800);
  font-size: .875rem;
  margin-bottom: 18px;
}
.form-success.show { display: flex; animation: fadeUp .6s var(--ease-out) forwards; }

.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.contact-line:last-child { border-bottom: 0; }
.contact-line .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--body-2); font-weight: 600; }
.contact-line .v { color: var(--ink-2); font-size: .92rem; margin-top: 3px; }

/* ---------- 22. About page bits ----------------------------------------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--g-400), var(--g-200), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.5s var(--ease-out);
}
.reveal.is-in .timeline::before, .timeline.is-in::before { transform: scaleY(1); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--g-500);
  box-shadow: 0 0 0 4px var(--g-50);
}
.tl-item h4 { margin-bottom: 6px; }
.tl-item p { font-size: .875rem; }

.stat-big {
  text-align: center;
  padding: 26px 18px;
}
.stat-big .count { font-size: clamp(2.2rem, 4vw, 3rem); }
.stat-big .k { font-size: .8rem; color: var(--body); margin-top: 8px; line-height: 1.45; }

/* ---------- 23. Utilities ------------------------------------------------ */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 44px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 44px; }
.flex { display: flex; } .items-center { align-items: center; } .between { justify-content: space-between; }
.wrap-flex { flex-wrap: wrap; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.tar { text-align: right; } .tac { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); }

/* ---------- 23b. Page-specific components -------------------------------- */

/* Small underline rule used under panel headings */
.rule-line {
  width: 62px;
  height: 2.5px;
  border-radius: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--g-600), var(--g-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out) .15s;
}
.reveal.is-in .rule-line { transform: scaleX(1); }

/* "16 patent families" badge card (Technology Families hero) */
.badge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 26px 20px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(130deg, #fff, var(--g-50));
  border: 1px solid var(--g-100);
  box-shadow: var(--shadow-md);
  min-width: 290px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.badge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.badge-card:hover .ico-badge { transform: translateY(-2px) rotate(-6deg) scale(1.07); }

/* Commercial relevance strip */
.relevance {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) repeat(4, minmax(0, 1fr));
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.relevance > * + * { border-left: 1px solid var(--line-2); }
.relevance-lead { padding: 24px 22px; }
.relevance .tile { border-radius: 0; padding: 24px 20px; }

/* Portfolio "at a glance" rail */
.glance { position: sticky; top: calc(var(--nav-h) + 20px); }
.tbl--compact { min-width: 396px; font-size: .8rem; }
.tbl--compact th, .tbl--compact td { padding: 10px 6px; }
.tbl--compact thead th { font-size: .7rem; line-height: 1.25; }
.tbl--compact .rowhead { font-size: .77rem; line-height: 1.3; }
.glance .table-wrap { margin-top: 4px; }

/* Landscape: domain rows + firm pills */
/* Two-column tables don't need the six-jurisdiction minimum */
.tbl--pairs { min-width: 500px; }

.dom-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-2);
  font-size: .92rem;
  margin-bottom: 3px;
  letter-spacing: -0.012em;
}
.tbl .with-ico p { max-width: 46ch; }
.firm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.firm-pills .pill { transition: transform .35s var(--spring), background .3s, border-color .3s, color .3s; }
.firm-pills .pill:hover {
  transform: translateY(-2px);
  background: var(--g-100);
  border-color: var(--g-300);
  color: var(--g-800);
}

.firm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.fchip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  font-size: .83rem;
  font-weight: 450;
  color: var(--ink-2);
  transition: transform .4s var(--ease-out), border-color .35s, background .35s, box-shadow .4s;
}
.fchip .ico { color: var(--g-600); width: 19px; height: 19px; flex: none; transition: transform .45s var(--spring); }
.fchip:hover {
  transform: translateY(-3px);
  border-color: var(--g-200);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.fchip:hover .ico { transform: scale(1.16) rotate(-7deg); }

/* Coverage: expandable "Key markets" */
.card--stack { display: flex; flex-direction: column; }
.card--stack .markets { margin-top: auto; padding-top: 18px; }
.markets { margin-top: 14px; }
.markets summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  font-size: .82rem;
  font-weight: 550;
  color: var(--g-600);
  padding-bottom: 2px;
  position: relative;
  width: fit-content;
}
.markets summary::-webkit-details-marker { display: none; }
.markets summary::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.markets summary:hover::after { transform: scaleX(1); transform-origin: left; }
.markets summary .ico { width: 15px; height: 15px; transition: transform .45s var(--ease-out); }
.markets summary:hover .ico { transform: translateX(4px); }
.markets[open] summary .ico { transform: rotate(90deg); }
.markets-body {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 13px;
  animation: marketsIn .5s var(--ease-out);
}
.markets-body .pill { font-size: .73rem; padding: 5px 11px; }
@keyframes marketsIn {
  from { opacity: 0; transform: translateY(-7px); }
  to   { opacity: 1; transform: none; }
}

/* About: compact icon+label items */
.mini-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .68);
  font-size: .86rem;
  font-weight: 450;
  color: var(--ink-2);
  transition: transform .4s var(--ease-out), border-color .35s, box-shadow .4s;
}
.mini-item .ico { color: var(--g-600); flex: none; width: 20px; height: 20px; }
.mini-item:hover { transform: translateY(-3px); border-color: var(--g-200); box-shadow: var(--shadow-md); }

.tile-strip .stat-big + .stat-big { border-left: 1px solid var(--line-2); }

/* Contact: values still to be filled in */
.placeholder {
  display: inline-block;
  font-size: .84rem;
  color: var(--pending);
  background: var(--pend-bg);
  border: 1px dashed #e7c184;
  border-radius: 7px;
  padding: 3px 10px;
  font-style: italic;
}

/* ---------- 24. Back to top --------------------------------------------- */
.to-top {
  position: fixed;
  right: calc(26px + env(safe-area-inset-right, 0px));
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--g-600);
  z-index: 90;
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--spring), background .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--g-50); transform: translateY(-3px); }

/* ---------- 25. Responsive ----------------------------------------------- */
/* Seven nav links + the wordmark stop fitting around here, so the drawer
   takes over well before the content grids reflow. */
@media (max-width: 1080px) {
  :root { --nav-h: 66px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .globe-stage { max-width: 560px; margin-inline: auto; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  /* minmax(0,…) not 1fr: a bare 1fr track keeps min-width:auto and would be
     stretched wide by the min-content of the wide data tables. */
  .split-2 { grid-template-columns: minmax(0, 1fr) !important; }
  .glance { position: static; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: calc(var(--nav-h) + 22px) 22px 30px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(20px);
    box-shadow: -20px 0 60px -30px rgba(16, 40, 26, .5);
    transform: translateX(100%);
    transition: transform .55s var(--ease-out);
    overflow-y: auto;
  }
  body.menu-open .nav { transform: none; }
  .nav a { padding: 13px 14px; font-size: 1rem; border-radius: 12px; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { background: var(--g-50); }
  .nav a { opacity: 0; transform: translateX(20px); transition: opacity .4s, transform .5s var(--ease-out), color .25s; }
  body.menu-open .nav a { opacity: 1; transform: none; }
  body.menu-open .nav a:nth-child(1) { transition-delay: .08s; }
  body.menu-open .nav a:nth-child(2) { transition-delay: .13s; }
  body.menu-open .nav a:nth-child(3) { transition-delay: .18s; }
  body.menu-open .nav a:nth-child(4) { transition-delay: .23s; }
  body.menu-open .nav a:nth-child(5) { transition-delay: .28s; }
  body.menu-open .nav a:nth-child(6) { transition-delay: .33s; }
  body.menu-open .nav a:nth-child(7) { transition-delay: .38s; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(16, 32, 24, .32);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s;
    z-index: 99;
  }
  body.menu-open .nav-scrim { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 940px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-strip > * + * { border-left: 0; }
  .tile-strip > *:nth-child(2n) { border-left: 1px solid var(--line-2); }
  .tile-strip > *:nth-child(n+3) { border-top: 1px solid var(--line-2); }

  .relevance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relevance > * + * { border-left: 0; }
  .relevance-lead { grid-column: 1 / -1; border-bottom: 1px solid var(--line-2); }
  .relevance .tile:nth-of-type(2n) { border-left: 1px solid var(--line-2); }
  .relevance .tile:nth-of-type(n+3) { border-top: 1px solid var(--line-2); }

  .tile-strip .stat-big + .stat-big { border-left: 0; }
  .tile-strip .stat-big:nth-child(2n) { border-left: 1px solid var(--line-2); }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .tile-strip { grid-template-columns: minmax(0, 1fr); }
  .tile-strip > * + * { border-left: 0 !important; border-top: 1px solid var(--line-2); }
  .fam-meta .row { grid-template-columns: 1fr; gap: 4px; }
  .statement { flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px 22px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bar-row { grid-template-columns: 96px 1fr 30px; font-size: .77rem; }
  .bar-axis { padding-left: 108px; }
  .card { padding: 22px; }
  .to-top {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .brand-name { font-size: 1.25rem; }
  .brand-mark { width: 32px; height: 32px; }

  .relevance { grid-template-columns: minmax(0, 1fr); }
  .relevance .tile:nth-of-type(n) { border-left: 0; border-top: 1px solid var(--line-2); }
  .firm-grid { grid-template-columns: minmax(0, 1fr); }
  .badge-card { min-width: 0; width: 100%; }
  .tile-strip .stat-big:nth-child(n) { border-left: 0; }
  .fam-card .fam-top { flex-direction: column; gap: 14px; }
  .fam-card .fam-title { align-items: flex-start; }
  .fam-card .fam-title .pill { margin-left: 0 !important; }
}

/* ---------- 25b. Phone layout ------------------------------------------- */

/* A table that doesn't fit its column becomes one card per row instead of a
   sideways scroll. main.js measures each table and toggles .is-stacked, so
   the switch happens at the width where that particular table stops fitting
   rather than at a shared breakpoint. */
.table-wrap.has-stack {
  overflow: visible;
  border: 0;
  background: none;
  background-image: none;
  border-radius: 0;
}

.tbl.is-stacked,
.tbl.is-stacked tbody,
.tbl.is-stacked tr,
.tbl.is-stacked td,
.tbl.is-stacked th { display: block; width: auto; min-width: 0; }

.tbl.is-stacked thead,
.tbl.is-stacked caption { display: none; }

.tbl.is-stacked tr {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  margin-bottom: 12px;
  overflow: hidden;
}
.tbl.is-stacked tr:last-child { margin-bottom: 0; }
.tbl.is-stacked tbody tr:hover { background: var(--surface); }

/* Row header becomes the card title */
.tbl.is-stacked .rowhead {
  padding: 13px 15px;
  font-size: .9rem;
  background: linear-gradient(180deg, var(--g-50), rgba(243, 249, 239, .4));
  border-bottom: 1px solid var(--line-2);
}
.tbl.is-stacked .rowhead br { display: none; }

/* Every other cell becomes a label / value line */
.tbl.is-stacked td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 15px;
  text-align: left !important;
  border-bottom: 1px solid var(--line-2);
}
.tbl.is-stacked tr td:last-child { border-bottom: 0; }
.tbl.is-stacked td::before {
  content: attr(data-label);
  flex: none;
  font-size: .78rem;
  font-weight: 550;
  color: var(--body-2);
}
.tbl.is-stacked td > * { text-align: right; }

/* Icon-only status cells carry their meaning in screen-reader text — surface
   it now that there is no column header to read the icon against. */
.tbl.is-stacked .status .sr-only {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  font-size: .84rem;
  color: var(--ink-2);
}
.tbl.is-stacked .status { gap: 7px; }
.tbl.is-stacked .status .lbl br { display: none; }

/* Landscape page: firm pills wrap under their domain */
.tbl.is-stacked .firm-pills { justify-content: flex-end; }
.tbl.is-stacked .with-ico p { max-width: none; }

@media (max-width: 420px) {
  .tbl.is-stacked td { padding: 9px 13px; gap: 12px; }
  .tbl.is-stacked td::before { font-size: .74rem; }
}

/* Touch devices: no hover to reveal things, and fingers need bigger targets */
@media (hover: none) {
  .btn--sm { padding: 12px 20px; }
  .link-arrow { padding-block: 7px; }
  .markets summary { padding-block: 9px; }
  .foot-links a { padding-block: 5px; }
  .card::before { opacity: 0; }          /* cursor spotlight is meaningless */
}

@media (max-width: 700px) {
  /* Under 16px iOS Safari zooms the page when a field takes focus */
  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  /* Lighter decoration — these are full-screen blurred layers on a phone */
  .blob-1 { width: 250px; height: 250px; }
  .blob-2 { width: 200px; height: 200px; }

  /* Grow the small text links into ~44px tap targets. Done by width as well
     as by (hover: none) so touch laptops and hybrids get it too. */
  .brand { padding-block: 8px; }
  .link-arrow { padding-block: 10px; }
  .markets summary { padding-block: 10px; }
  .foot-links { gap: 2px; }
  .foot-links a { padding-block: 10px; }

  .bar-row { grid-template-columns: 88px 1fr 28px; gap: 9px; }
  .bar-axis { padding-left: 97px; }
  .legend { gap: 12px 16px; }
  .relevance-lead { padding: 20px 18px; }
  .glance .panel,
  .panel[style*="padding:30px"] { padding: 22px !important; }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .h-display { font-size: clamp(2.05rem, 10.5vw, 2.4rem); }
  .h-page { font-size: clamp(1.95rem, 9.8vw, 2.2rem); }
  .card { padding: 18px; }
  .statement { padding: 22px 18px; }
  .firm { min-width: 190px; }
  .brand-logo { height: 30px; }
  .site-head.is-stuck .brand-logo { height: 27px; }
}

/* ---------- 26. Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .stagger > *, .split-word, .fade-up, .tbl tbody tr { opacity: 1 !important; transform: none !important; }
  .tbl .status svg, .tbl .dash { transform: scale(1) !important; }
  .sec-title::before { transform: scaleX(1) !important; }
  .timeline::before { transform: scaleY(1) !important; }
}

/* ---------- 27. Print ---------------------------------------------------- */
@media print {
  .site-head, .to-top, .scroll-bar, .nav-scrim, .blob { display: none !important; }
  body::before, body::after { display: none; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .card, .panel, .table-wrap { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}
