/* ==========================================================================
   RIVANOVA HEALTHCARE — pages.css
   Hero · page hero · section patterns · products · timeline · stats ·
   testimonials · map · gallery · blog · contact · career · legal
   ========================================================================== */

/* ==========================================================================
   1. HOME HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(4rem, 2.5rem + 7vw, 8rem);
  background: var(--grad-brand-soft);
}
:root[data-theme='dark'] .hero { background: var(--grad-brand-soft); }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow { margin-bottom: var(--sp-6); }

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.042em;
  color: var(--text-strong);
}
.hero__text {
  margin-top: var(--sp-6);
  font-size: var(--fs-lead);
  line-height: 1.66;
  color: var(--text-soft);
  max-width: 54ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-10);
}

/* Trust strip under the hero copy */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-6);
  margin-top: var(--sp-10);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--line);
}
.hero__trust-item { display: grid; gap: 2px; }
.hero__trust-val {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: var(--ls-snug);
  font-variant-numeric: tabular-nums;
}
.hero__trust-lab {
  font-size: var(--fs-2xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 550;
}
.hero__trust-sep { width: 1px; height: 34px; background: var(--line); }

/* ---------- Hero visual stage ---------- */
.hero__stage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  display: grid;
  place-items: center;
}
.hero__ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--brand) 24%, transparent);
  animation: spin 70s linear infinite;
}
.hero__ring--2 { inset: 17%; border-style: solid; border-color: color-mix(in srgb, var(--brand-2) 20%, transparent); animation-duration: 52s; animation-direction: reverse; }
.hero__ring--3 { inset: 29%; border-color: color-mix(in srgb, var(--accent) 26%, transparent); animation-duration: 40s; }

.hero__core {
  position: relative;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-deep);
  box-shadow: 0 40px 90px -30px rgb(0 91 172 / 0.62), inset 0 2px 20px rgb(255 255 255 / 0.14);
  isolation: isolate;
}
.hero__core::after {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(0 174 239 / 0.3), transparent 62%);
  z-index: -1;
  animation: float-soft 7s var(--ease-in-out) infinite;
}
.hero__core-mark { width: 46%; color: #fff; }
.hero__core-label {
  position: absolute;
  bottom: 17%;
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: rgb(255 255 255 / 0.65);
}

/* Orbiting metric pods */
.pod {
  position: absolute;
  display: grid;
  gap: 1px;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg);
  animation: bob-slow var(--dur, 6s) var(--ease-in-out) infinite;
  animation-delay: var(--delay, 0s);
  z-index: 2;
}
.pod__val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pod__lab {
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
  white-space: nowrap;
}
/* Pods carry real figures, so they must stay fully inside the stage — the
   hero clips its overflow, and a pod hanging past the edge loses characters
   ("1,200+" reading as "200+"). */
.pod--tl { top: 2%;  left: 0; }
.pod--tr { top: 19%; right: 0; }
.pod--bl { bottom: 21%; left: 0; }
.pod--br { bottom: 3%; right: 4%; }

:root[data-theme='dark'] .pod { background: color-mix(in srgb, var(--bg-elev) 88%, transparent); }

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { max-width: 520px; margin-inline: auto; aspect-ratio: 1; }
  .hero__text { max-width: none; }
}
/* On narrow screens the copy fills the full width, so the decorative layers
   sit directly behind the headline and body text. Line art at that density
   makes the paragraph genuinely hard to read, so it is dropped rather than
   dimmed — the orbs and particle field alone carry the atmosphere. */
@media (max-width: 900px) {
  .hero .dna,
  .hero .molecule,
  .hero .capsule,
  .hero .tablet,
  .hero__ecg { display: none !important; }
  .hero .particles { opacity: 0.4; }
  .hero .grid-veil { opacity: 0.35; }
}

@media (max-width: 560px) {
  .hero__trust { gap: var(--sp-5); }
  .hero__trust-sep { display: none; }
  .pod { padding: 0.55rem 0.8rem; }
  .pod__val { font-size: 0.92rem; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--sp-6);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  z-index: 2;
}
.scroll-cue__line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--brand-2), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: '';
  position: absolute;
  top: -42px; left: 0;
  width: 100%; height: 42px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: cue-drop 2.2s var(--ease-in-out) infinite;
}
@keyframes cue-drop { to { top: 42px; } }
@media (max-width: 1000px) { .scroll-cue { display: none; } }

/* ==========================================================================
   2. PAGE HERO (interior pages)
   ========================================================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem) clamp(4.5rem, 3rem + 5.5vw, 8rem);
  background: var(--grad-brand-soft);
  color: var(--text);
}
.page-hero--compact { padding-block: clamp(3rem, 2.2rem + 3vw, 4.5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; max-width: 66ch; }
.page-hero__title {
  font-size: var(--fs-h1);
  margin-top: var(--sp-5);
  line-height: 1.02;
  letter-spacing: -0.038em;
}
.page-hero__text {
  margin-top: var(--sp-6);
  font-size: var(--fs-lead);
  line-height: 1.66;
  color: var(--text-soft);
}
.page-hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  color: var(--bg);
  line-height: 0;
  pointer-events: none;
}
.page-hero__wave svg { width: 100%; height: clamp(40px, 5vw, 90px); display: block; }

/* ==========================================================================
   3. STATS
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.stat {
  padding: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  background: var(--bg-elev);
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  transition: background-color var(--t-base) var(--ease-out);
}
.stat:hover { background: var(--bg-alt); }
.stat__val {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-tight);
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-strong);
}
.stat__note {
  font-size: var(--fs-xs);
  color: var(--text-mute);
  line-height: 1.6;
}
.stat__bar {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.stat__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-accent);
  transition: width 1400ms var(--ease-out);
}
.stat.is-in .stat__bar i { width: var(--fill, 70%); }

/* Stats on a dark band */
.stats--deep { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.12); }
.stats--deep .stat { background: transparent; }
.stats--deep .stat:hover { background: rgb(255 255 255 / 0.04); }
.stats--deep .stat__val {
  background: linear-gradient(100deg, #FFFFFF 0%, #A8E1F8 55%, #7CE3C6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.stats--deep .stat__label { color: #fff; }
.stats--deep .stat__note { color: rgb(234 244 255 / 0.6); }
.stats--deep .stat__bar { background: rgb(255 255 255 / 0.14); }

@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   4. MEDIA / ILLUSTRATION FRAMES
   ========================================================================== */
.media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.media__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1; }

.media__caption {
  position: absolute;
  left: var(--sp-5);
  right: var(--sp-5);
  bottom: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-md);
}
.media__caption-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--fs-sm);
  color: var(--text-strong);
}
.media__caption-text { font-size: var(--fs-xs); color: var(--text-mute); margin-top: 2px; }

/* Floating badge over media */
.media-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg);
  animation: bob-slow 7s var(--ease-in-out) infinite;
}
.media-badge__val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.media-badge__lab {
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}
:root[data-theme='dark'] .media-badge { background: color-mix(in srgb, var(--bg-elev) 92%, transparent); }

/* ==========================================================================
   5. TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--brand-2), var(--accent), transparent);
  opacity: 0.35;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
.tl-item__dot {
  position: relative;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  z-index: 1;
  transition: all var(--t-base) var(--ease-spring);
}
.tl-item__dot::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--grad-accent);
  transition: transform var(--t-base) var(--ease-spring);
}
.tl-item:hover .tl-item__dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
}
.tl-item:hover .tl-item__dot::after { transform: scale(1.35); }

.tl-item__year {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  margin-bottom: var(--sp-3);
}
.tl-item__title { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.tl-item__text { color: var(--text-soft); font-size: var(--fs-sm); line-height: 1.72; max-width: 66ch; }

/* Horizontal variant on wide screens */
@media (min-width: 980px) {
  .timeline--h {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: var(--sp-6);
    padding-top: var(--sp-10);
  }
  .timeline--h::before {
    left: 0; right: 0; top: 15px;
    bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(to right, transparent, var(--brand-2), var(--accent), transparent);
  }
  .timeline--h .tl-item { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .timeline--h .tl-item__dot { margin-top: -32px; }
}

/* ==========================================================================
   6. FEATURE / VALUE LISTS
   ========================================================================== */
.tick-list { display: grid; gap: var(--sp-4); }
.tick-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-soft);
}
.tick-list li > svg,
.tick-list__ico {
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-500);
  background: color-mix(in srgb, var(--green-400) 14%, transparent);
  flex-shrink: 0;
  margin-top: 2px;
}
.tick-list__ico .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.tick-list strong { display: block; color: var(--text-strong); font-weight: 600; margin-bottom: 2px; }

/* Numbered process steps */
.steps { display: grid; gap: var(--sp-5); counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 26%, transparent);
}
.step__num {
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__title { font-size: var(--fs-h5); margin-bottom: var(--sp-2); }
.step__text { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.72; }

/* ==========================================================================
   7. PRODUCT CARDS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(1.25rem, 1rem + 1.2vw, 2rem);
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.product:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-xl);
  border-color: color-mix(in srgb, var(--brand) 24%, transparent);
}
.product[hidden] { display: none; }

/* Image placeholder — a rendered SVG scene, not a grey box */
.product__media {
  position: relative;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--grad-brand-soft);
  border-bottom: 1px solid var(--line-soft);
}
.product__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 14%, transparent) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}
.product__art {
  position: relative;
  width: 58%;
  max-width: 190px;
  filter: drop-shadow(0 18px 28px rgb(0 91 172 / 0.24));
  transition: transform 700ms var(--ease-out);
}
.product:hover .product__art { transform: translateY(-7px) scale(1.06); }

.product__tag {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 2;
  padding: 0.32rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.product__count {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  font-weight: 650;
  color: var(--text-mute);
}

.product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  gap: var(--sp-3);
}
.product__title { font-size: var(--fs-h4); }
.product__text { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.7; }

.product__specs {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--line);
}
.product__spec {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-mute);
}
.product__spec .ico { width: 15px; height: 15px; color: var(--accent); stroke-width: 2.2; }

.product__therapies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-3);
}
.product__therapy {
  padding: 0.24rem 0.62rem;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 550;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
}
.product__foot {
  margin-top: auto;
  padding-top: var(--sp-5);
}

/* Tint variants for the media background */
.product--blue   .product__media { background: linear-gradient(140deg, #EFF8FE, #DCEEFC); }
.product--cyan   .product__media { background: linear-gradient(140deg, #ECFAFE, #D2F0FB); }
.product--indigo .product__media { background: linear-gradient(140deg, #EEF2FE, #DDE6FC); }
.product--teal   .product__media { background: linear-gradient(140deg, #EAFBF6, #D3F4EA); }
.product--violet .product__media { background: linear-gradient(140deg, #F4F0FE, #E7DFFB); }
.product--green  .product__media { background: linear-gradient(140deg, #EDFBF2, #D7F4E2); }
.product--lime   .product__media { background: linear-gradient(140deg, #F5FCEB, #E6F6D3); }
:root[data-theme='dark'] .product__media { background: linear-gradient(140deg, #0C1A29, #0A2434) !important; }

/* ==========================================================================
   8. TESTIMONIALS
   ========================================================================== */
.tstm-shell { position: relative; }

.tstm-track {
  display: flex;
  gap: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--sp-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tstm-track::-webkit-scrollbar { display: none; }

.tstm {
  position: relative;
  flex: 0 0 clamp(300px, 88vw, 430px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.tstm:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tstm__quote-mark {
  width: 34px; height: 34px;
  color: var(--brand);
  opacity: 0.22;
}
.tstm__text {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text);
  flex: 1;
}
.tstm__stars { display: flex; gap: 3px; color: #F5B841; }
.tstm__stars .ico { width: 15px; height: 15px; }
.tstm__who {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: center;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
}
.tstm__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
  letter-spacing: 0.02em;
}
.tstm__avatar--accent { background: var(--grad-accent); color: #04231C; box-shadow: var(--shadow-accent); }
.tstm__name { font-family: var(--font-display); font-weight: 650; font-size: var(--fs-sm); color: var(--text-strong); }
.tstm__role { font-size: var(--fs-xs); color: var(--text-mute); line-height: 1.45; }

.tstm-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.tstm-nav__btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: all var(--t-base) var(--ease-out);
}
.tstm-nav__btn:hover:not([disabled]) {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand);
}
.tstm-nav__btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.tstm-nav__btn .ico { width: 19px; height: 19px; }
.tstm-dots { display: flex; gap: 6px; margin-left: auto; }
.tstm-dot {
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  transition: all var(--t-base) var(--ease-out);
}
.tstm-dot.is-active { width: 26px; background: var(--grad-accent); }

/* ==========================================================================
   9. GLOBAL PRESENCE MAP
   ========================================================================== */
.map-wrap {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--grad-deep);
  isolation: isolate;
}
.world { width: 100%; height: auto; display: block; overflow: visible; }

/* Land is drawn as a dot matrix — every dot is one 5°×5° cell containing land. */
.world__dots circle {
  r: 2.15;
  fill: rgb(255 255 255 / 0.34);
}

.world__pin { cursor: pointer; }
.world__pin:focus { outline: none; }
.world__pin-core {
  fill: var(--green-400);
  stroke: rgb(4 35 28 / 0.55);
  stroke-width: 1;
  transition: r 260ms var(--ease-spring);
}
.world__pin--hq .world__pin-core { fill: #FFFFFF; }
.world__pin-halo {
  fill: none;
  stroke: var(--green-400);
  stroke-width: 1.4;
  opacity: 0.7;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-expand 3.6s var(--ease-out) infinite;
}
.world__pin--hq .world__pin-halo { stroke: #FFFFFF; }
.world__pin:hover .world__pin-core,
.world__pin:focus-visible .world__pin-core { r: 7.5; }

.world__pin-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  fill: #FFFFFF;
  paint-order: stroke;
  stroke: rgb(0 25 48 / 0.85);
  stroke-width: 3.5;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
  pointer-events: none;
}
.world__pin:hover .world__pin-label,
.world__pin:focus-visible .world__pin-label { opacity: 1; }
/* The headquarters label is always legible — it is the anchor of the map. */
.world__pin--hq .world__pin-label { opacity: 1; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.map-legend__item { display: grid; gap: 2px; }
.map-legend__val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.map-legend__lab {
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(234 244 255 / 0.6);
  font-weight: 600;
}

/* ==========================================================================
   10. CERTIFICATES
   ========================================================================== */
.cert {
  position: relative;
  display: grid;
  gap: var(--sp-4);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border-radius: var(--r-lg);
  text-align: center;
  justify-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.cert:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.cert__seal {
  position: relative;
  width: 78px; height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: conic-gradient(from 180deg, color-mix(in srgb, var(--brand) 16%, transparent), color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--brand) 16%, transparent));
  border: 1px solid var(--line);
}
.cert__seal::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-elev);
}
.cert__seal .ico,
.cert__seal svg { position: relative; width: 30px; height: 30px; }
.cert:hover .cert__seal { color: var(--accent); }
.cert__name { font-family: var(--font-display); font-weight: 650; font-size: var(--fs-sm); color: var(--text-strong); }
.cert__meta { font-size: var(--fs-xs); color: var(--text-mute); line-height: 1.55; }

/* ==========================================================================
   11. LOGO / PARTNER MARQUEE
   ========================================================================== */
.logo-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-7);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-mute);
  transition: color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.logo-strip:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 26%, transparent); }
.logo-strip .ico { width: 20px; height: 20px; color: var(--accent); }

/* ==========================================================================
   12. CTA BANDS
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-2xl);
  padding: clamp(2.25rem, 1.6rem + 3.4vw, 4.5rem);
  background: linear-gradient(125deg, #003A73 0%, #005BAC 38%, #0090DC 68%, #16C79A 130%);
  color: #fff;
}
.cta-band__glow {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.2), transparent 62%);
  z-index: -1;
  animation: float-soft 11s var(--ease-in-out) infinite;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-band__title {
  font-size: clamp(1.7rem, 1.3rem + 1.9vw, 2.85rem);
  color: #fff;
  line-height: 1.12;
}
.cta-band__text {
  margin-top: var(--sp-4);
  font-size: var(--fs-lead);
  color: rgb(255 255 255 / 0.82);
  line-height: 1.65;
  max-width: 58ch;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr); }
  .cta-band__actions { justify-content: flex-start; }
}

/* Split CTA (career + contact) */
.cta-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 1rem + 1.2vw, 2rem);
}
.cta-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: var(--sp-4);
  padding: clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-soft);
  background: var(--bg-elev);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.cta-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cta-tile__ico {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
}
.cta-tile__ico .ico { width: 24px; height: 24px; }
.cta-tile--accent .cta-tile__ico { background: var(--grad-accent); color: #04231C; box-shadow: var(--shadow-accent); }
.cta-tile__title { font-size: var(--fs-h3); }
.cta-tile__text { color: var(--text-soft); font-size: var(--fs-sm); line-height: 1.72; }
@media (max-width: 800px) { .cta-duo { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   13. NEWS / BLOG CARDS
   ========================================================================== */
.post {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.post:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 22%, transparent);
}
.post[hidden] { display: none; }
.post__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--grad-brand-soft);
  display: grid;
  place-items: center;
}
.post__media svg { width: 100%; height: 100%; }
.post__cat {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 2;
  padding: 0.3rem 0.72rem;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-sm);
}
.post__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-3);
  padding: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
}
.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-2xs);
  color: var(--text-mute);
  letter-spacing: 0.03em;
}
.post__meta span { display: inline-flex; align-items: center; gap: 5px; }
.post__meta .ico { width: 13px; height: 13px; }
.post__title {
  font-size: var(--fs-h5);
  line-height: 1.38;
}
.post__title a { color: var(--text-strong); }
.post:hover .post__title a { color: var(--brand); }
.post__excerpt { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.7; }
.post__foot { margin-top: auto; padding-top: var(--sp-4); }

/* News list rows */
.news-row {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) auto;
  gap: clamp(1rem, 0.8rem + 1vw, 2rem);
  align-items: center;
  padding: var(--sp-6) var(--sp-2);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color var(--t-base) var(--ease-out), padding-left var(--t-base) var(--ease-out);
}
.news-row:hover { background: var(--bg-alt); padding-left: var(--sp-5); }
.news-row__date {
  display: grid;
  gap: 2px;
  font-family: var(--font-display);
}
.news-row__day { font-size: 1.65rem; font-weight: 700; color: var(--brand); line-height: 1; }
.news-row__my { font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; }
.news-row__title { font-size: var(--fs-h5); margin-bottom: var(--sp-2); }
.news-row__title a { color: var(--text-strong); }
.news-row:hover .news-row__title a { color: var(--brand); }
.news-row__text { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.65; max-width: 78ch; }
@media (max-width: 760px) {
  .news-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .news-row__date { display: flex; align-items: baseline; gap: var(--sp-2); }
  .news-row__day { font-size: 1.2rem; }
}

/* ==========================================================================
   14. GALLERY
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--sp-4);
}
.shot {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-alt);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.shot[hidden] { display: none; }
.shot--tall { aspect-ratio: 3 / 4; }
.shot--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .shot--wide { grid-column: span 1; aspect-ratio: 4 / 3; } }
.shot:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.shot svg { width: 100%; height: 100%; object-fit: cover; }
.shot__veil {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 2px;
  padding: var(--sp-5);
  background: linear-gradient(to top, rgb(3 12 21 / 0.86) 0%, rgb(3 12 21 / 0.24) 46%, transparent 76%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.shot:hover .shot__veil, .shot:focus-visible .shot__veil { opacity: 1; }
.shot__title { font-family: var(--font-display); font-weight: 650; font-size: var(--fs-sm); color: #fff; }
.shot__sub { font-size: var(--fs-xs); color: rgb(255 255 255 / 0.7); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgb(3 8 14 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease-out), visibility var(--t-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  width: min(1000px, 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--t-base) var(--ease-spring);
}
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox__figure svg { width: 100%; height: auto; display: block; }
.lightbox__cap {
  display: grid;
  gap: 2px;
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--line-soft);
}
.lightbox__cap-title { font-family: var(--font-display); font-weight: 650; color: var(--text-strong); }
.lightbox__cap-sub { font-size: var(--fs-xs); color: var(--text-mute); }
.lightbox__close {
  position: absolute;
  top: var(--sp-5); right: var(--sp-5);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  transition: all var(--t-base) var(--ease-out);
}
.lightbox__close:hover { background: rgb(255 255 255 / 0.2); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  transition: all var(--t-base) var(--ease-out);
}
.lightbox__nav:hover { background: rgb(255 255 255 / 0.22); }
.lightbox__nav--prev { left: clamp(0.5rem, 2vw, 2rem); }
.lightbox__nav--next { right: clamp(0.5rem, 2vw, 2rem); }
@media (max-width: 600px) { .lightbox__nav { display: none; } }

/* ==========================================================================
   15. LEADERSHIP
   ========================================================================== */
.person {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.person:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.person__portrait {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--grad-brand-soft);
  overflow: hidden;
}
.person__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 22%, transparent 40%, color-mix(in srgb, var(--brand) 10%, transparent));
}
.person__initials {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 43%;
  aspect-ratio: 1;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
  transition: transform var(--t-base) var(--ease-spring);
}
.person:hover .person__initials { transform: scale(1.06); }
.person__body { display: grid; gap: var(--sp-2); padding: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); }
.person__name { font-size: var(--fs-h5); }
.person__role {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
}
.person__bio { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.7; margin-top: var(--sp-2); }
.person__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-3); }

/* ==========================================================================
   16. CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 1.2rem + 3vw, 4rem);
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.form-card {
  padding: clamp(1.6rem, 1.2rem + 2vw, 2.75rem);
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.contact-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.contact-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 24%, transparent);
}
.contact-card__ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.contact-card__ico .ico { width: 21px; height: 21px; }
.contact-card__label {
  font-size: var(--fs-2xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.contact-card__value { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--text-strong); line-height: 1.5; }
.contact-card__value a { color: inherit; }
.contact-card__value a:hover { color: var(--brand); }
.contact-card__note { font-size: var(--fs-xs); color: var(--text-mute); margin-top: 3px; }

/* Map placeholder */
.map-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-alt);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: var(--sp-4);
  align-content: center;
  text-align: center;
  padding: var(--sp-8);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--brand) 6%, transparent), transparent),
    repeating-linear-gradient(0deg, transparent 0 38px, color-mix(in srgb, var(--text) 5%, transparent) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, color-mix(in srgb, var(--text) 5%, transparent) 38px 39px);
}
.map-frame__pin {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
  animation: bob-slow 3.4s var(--ease-in-out) infinite;
}
.map-frame__pin .ico { width: 26px; height: 26px; }
.map-frame__text { font-size: var(--fs-sm); color: var(--text-soft); max-width: 44ch; line-height: 1.7; }

/* ==========================================================================
   17. CAREER
   ========================================================================== */
.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-5);
  align-items: center;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.job:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 26%, transparent);
}
.job[hidden] { display: none; }
.job__title { font-size: var(--fs-h5); margin-bottom: var(--sp-3); }
.job__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
@media (max-width: 620px) {
  .job { grid-template-columns: minmax(0, 1fr); }
  .job__cta { justify-self: start; }
}

.perk {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  transition: transform var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.perk:hover { transform: translateY(-5px); background: var(--bg-elev); box-shadow: var(--shadow-md); }
.perk__ico {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--accent);
  background: color-mix(in srgb, var(--green-400) 13%, transparent);
}
.perk__ico .ico { width: 20px; height: 20px; }
.perk__title { font-family: var(--font-display); font-weight: 650; font-size: var(--fs-sm); color: var(--text-strong); }
.perk__text { font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.68; }

/* ==========================================================================
   18. QUOTE / PULL PANEL
   ========================================================================== */
.pull {
  position: relative;
  padding: clamp(1.75rem, 1.3rem + 2.4vw, 3.25rem);
  border-radius: var(--r-2xl);
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  isolation: isolate;
}
.pull__mark {
  position: absolute;
  top: -12px; right: 18px;
  font-family: var(--font-display);
  font-size: 11rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}
.pull__text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 1.1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: var(--ls-snug);
  color: var(--text-strong);
  max-width: 62ch;
}
.pull__by {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.pull__by-name { font-family: var(--font-display); font-weight: 650; color: var(--text-strong); font-size: var(--fs-sm); }
.pull__by-role { font-size: var(--fs-xs); color: var(--text-mute); }

/* ==========================================================================
   19. SPEC / DATA TABLE
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: var(--bg-elev);
  -webkit-overflow-scrolling: touch;
}
.table { min-width: 640px; font-size: var(--fs-sm); }
.table caption {
  text-align: left;
  padding: var(--sp-5) var(--sp-6) 0;
  font-size: var(--fs-xs);
  color: var(--text-mute);
}
.table th, .table td {
  padding: var(--sp-4) var(--sp-6);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.table thead th {
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: var(--bg-alt);
  white-space: nowrap;
}
.table tbody tr { transition: background-color var(--t-fast) var(--ease-out); }
.table tbody tr:hover { background: var(--bg-alt); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td strong { color: var(--text-strong); }

/* ==========================================================================
   20. INDUSTRY / AUDIENCE TILES
   ========================================================================== */
.aud {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  padding: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.aud::after {
  content: '';
  position: absolute;
  right: -28px; bottom: -28px;
  width: 108px; height: 108px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: 0.07;
  z-index: -1;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.aud:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 22%, transparent);
}
.aud:hover::after { transform: scale(1.7); opacity: 0.12; }
.aud__ico {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.aud__ico .ico { width: 21px; height: 21px; }
.aud__title { font-family: var(--font-display); font-weight: 650; font-size: var(--fs-h5); color: var(--text-strong); }
.aud__text { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.7; }

/* ==========================================================================
   21. 404
   ========================================================================== */
.nf {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section-y);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.nf__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 3rem + 16vw, 15rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.nf__title { margin-top: var(--sp-5); }
.nf__text { margin-top: var(--sp-4); color: var(--text-soft); max-width: 52ch; margin-inline: auto; }
.nf__actions { margin-top: var(--sp-8); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* ==========================================================================
   22. LEGAL PAGES
   ========================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 1.4rem + 3vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .legal-layout { grid-template-columns: minmax(0, 1fr); } }

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
}
@media (max-width: 900px) { .legal-toc { position: static; } }
.legal-toc__title {
  font-size: var(--fs-2xs);
  font-weight: 650;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: var(--sp-2);
}
.legal-toc a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  color: var(--text-soft);
  border-left: 2px solid transparent;
  transition: all var(--t-fast) var(--ease-out);
}
.legal-toc a:hover, .legal-toc a.is-active {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  border-left-color: var(--brand);
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  font-size: var(--fs-xs);
  color: var(--text-mute);
  margin-bottom: var(--sp-10);
}

/* ==========================================================================
   23. FAQ GROUPS
   ========================================================================== */
.faq-group + .faq-group { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.faq-group__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.faq-group__ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent);
  flex-shrink: 0;
}
.faq-group__ico .ico { width: 22px; height: 22px; }
.faq-group__title { font-size: var(--fs-h3); }

/* ==========================================================================
   24. SECTION DECOR HELPERS
   ========================================================================== */
.section--decor { isolation: isolate; overflow: hidden; }
.section__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Angled band separators */
.band-top,
.band-bottom { position: relative; }
.band-top::before,
.band-bottom::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: clamp(40px, 5vw, 84px);
  background: inherit;
  z-index: -1;
}
.band-top::before { top: 0; clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%); }
.band-bottom::after { bottom: 0; clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%); }
