/*
Theme Name: Famamedic
Theme URI: https://famamedic.com/
Author: Famamedic Team
Author URI: https://famamedic.com/
Description: Custom dynamic WordPress theme for FamaMedic Inc. Rooted in Science. Driven by Innovation. Designed for Everyone.
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: famamedic
Tags: custom-logo, custom-menu, featured-images, full-site-editing, responsive-layout
*/

/* ============ CENTURY GOTHIC / GOTHIC FONTS ============ */
@font-face {
  font-family: 'Century Gothic';
  src: local('Century Gothic'), local('CenturyGothic'), local('Gothic'), url('Font/GOTHIC.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gothic';
  src: local('Century Gothic'), local('CenturyGothic'), local('Gothic'), url('Font/GOTHIC.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Century Gothic';
  src: local('Century Gothic Bold'), local('CenturyGothic-Bold'), local('Gothic Bold'), url('Font/GOTHICB.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gothic';
  src: local('Century Gothic Bold'), local('CenturyGothic-Bold'), local('Gothic Bold'), url('Font/GOTHICB.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Century Gothic';
  src: local('Century Gothic Italic'), local('CenturyGothic-Italic'), local('Gothic Italic'), url('Font/GOTHICI.TTF') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gothic';
  src: local('Century Gothic Italic'), local('CenturyGothic-Italic'), local('Gothic Italic'), url('Font/GOTHICI.TTF') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Century Gothic';
  src: local('Century Gothic Bold Italic'), local('CenturyGothic-BoldItalic'), local('Gothic Bold Italic'), url('Font/GOTHICBI.TTF') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gothic';
  src: local('Century Gothic Bold Italic'), local('CenturyGothic-BoldItalic'), local('Gothic Bold Italic'), url('Font/GOTHICBI.TTF') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ============ DESIGN TOKENS ============ */
:root {
  --slate: #22323F;
  --slate-2: #2C4152;
  --slate-3: #1A2831;
  --ink: #0E3A68;
  --teal: #2A93B5;
  --teal-dk: #1E7392;
  --mint: #9CEEBE;
  --paper: #F4F8FA;
  --paper-2: #E9F1F5;
  --white: #FFFFFF;
  --line: #D6E3EA;
  --line-dk: #3A4E5D;
  --muted: #5A7382;
  --muted-lt: #9FB6C2;

  --sans: 'Century Gothic', 'Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Century Gothic', 'Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Century Gothic', 'Gothic', monospace;

  --max: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --pad-y: clamp(64px, 9vw, 124px);
  --r: 4px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dk);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--teal);
  flex: none;
}

.eyebrow.on-dark {
  color: var(--mint);
}

.eyebrow.on-dark::before {
  background: var(--mint);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.15rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(1.95rem, 3.7vw, 2.85rem);
  font-weight: 300;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

h4 {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--sans);
}

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.lede.on-dark {
  color: #C3D5DF;
}

p {
  max-width: 70ch;
}

.dim {
  color: var(--muted);
}

.dim-d {
  color: #A9C0CC;
}

/* ============ LAYOUT ============ */
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sec {
  padding-block: var(--pad-y);
}

.sec--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.sec--dark {
  background: var(--slate);
  color: var(--white);
}

.sec--dark h2, .sec--dark h3, .sec--dark h4 {
  color: var(--white);
}

.sec--tint {
  background: var(--paper-2);
}

.sec--white {
  background: var(--white);
}

.sec-head {
  max-width: 64ch;
  margin-bottom: clamp(38px, 5vw, 58px);
}

.sec-head h2 {
  margin-bottom: 20px;
}

.grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
}

.g-2 {
  grid-template-columns: repeat(2, 1fr);
}

.g-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .g-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .g-2, .g-3 {
    grid-template-columns: 1fr;
  }
}

/* ============ HEADER ============ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 248, 250, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  line-height: 1;
}

.brand--logo,
.brand .custom-logo-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.brand .custom-logo-link:hover,
.custom-logo-link:hover {
  opacity: 0.88;
}

.brand img.custom-logo,
.brand img,
.custom-logo-link img,
img.custom-logo,
.custom-logo {
  max-height: 50px;
  width: auto !important;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  color: var(--teal);
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav a {
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  color: var(--slate);
  padding: 8px 14px;
  border-radius: var(--r);
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--ink);
}

.nav a.is-active::after {
  transform: scaleX(1);
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--solid {
  background: var(--ink);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--teal-dk);
  transform: translateY(-1px);
}

.btn--teal {
  background: var(--teal);
  color: var(--white);
}

.btn--teal:hover {
  background: var(--teal-dk);
  transform: translateY(-1px);
}

.btn--mint {
  background: var(--mint);
  color: var(--slate-3);
}

.btn--mint:hover {
  background: #B6F5D0;
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--slate);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal-dk);
}

.btn--ghost-d {
  border: 1px solid var(--line-dk);
  color: var(--white);
}

.btn--ghost-d:hover {
  border-color: var(--mint);
  color: var(--mint);
}

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

.btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--slate);
  position: relative;
  transition: background 0.2s ease;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--slate);
  transition: transform 0.2s ease, top 0.2s ease;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.burger[aria-expanded="true"] span {
  background: transparent;
}

.burger[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 880px) {
  .brand img.custom-logo,
  .brand img,
  .custom-logo-link img,
  img.custom-logo,
  .custom-logo {
    max-height: 40px;
    max-width: 170px;
  }
  .burger {
    display: flex;
  }
  .hdr .btn--solid {
    display: none;
  }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 24px;
    display: none;
    box-shadow: 0 20px 40px -20px rgba(34, 50, 63, 0.35);
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav a::after {
    display: none;
  }
}

/* ============ HERO ============ */
.hero {
  background: var(--slate);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 420px at 78% 12%, rgba(42, 147, 181, 0.22), transparent 62%);
}

.hero-in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  padding-block: clamp(60px, 8vw, 104px);
}

@media (max-width: 940px) {
  .hero-in {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 26px;
}

.hero h1 .l2 {
  color: var(--teal);
  display: block;
}

.hero h1 .l3 {
  color: var(--mint);
  display: block;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: #C3D5DF;
  max-width: 52ch;
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-note {
  font-size: 15px;
  color: #8FAAB8;
  max-width: 52ch;
  padding-top: 20px;
  border-top: 1px solid var(--line-dk);
}

/* ECG signature */
.ecg-band {
  position: relative;
  z-index: 2;
  height: 64px;
  border-top: 1px solid var(--line-dk);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ecg-band svg {
  width: 100%;
  height: 64px;
}

.ecg-path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: draw 4.2s ease-out 0.3s forwards;
}

.ecg-path.flat {
  stroke: rgba(156, 238, 190, 0.22);
  animation: none;
  stroke-dashoffset: 0;
}

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

/* Rotating hero frames */
.frames {
  position: relative;
  border: 1px solid var(--line-dk);
  background: rgba(26, 40, 49, 0.55);
  border-radius: var(--r);
  overflow: hidden;
}

.frame {
  display: none;
  padding: clamp(22px, 3vw, 32px);
}

.frame.is-on {
  display: block;
  animation: fade 0.5s ease both;
}

.frame-fig {
  background: var(--slate-3);
  border-radius: var(--r);
  margin-bottom: 20px;
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.frame-fig svg, .frame-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mint);
  margin-bottom: 8px;
}

.frame h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 9px;
  font-family: var(--sans);
  font-weight: 700;
}

.frame p {
  font-size: 14.5px;
  color: #A9C0CC;
  max-width: 46ch;
}

.dots {
  display: flex;
  gap: 8px;
  padding: 0 clamp(22px, 3vw, 32px) clamp(22px, 3vw, 32px);
}

.dots button {
  width: 28px;
  height: 4px;
  background: var(--line-dk);
  border-radius: 2px;
  transition: background 0.25s ease;
}

.dots button[aria-current="true"] {
  background: var(--mint);
}

.dots button:hover {
  background: var(--teal);
}

/* Page hero (inner pages) */
.phero {
  background: var(--slate);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.phero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(760px 340px at 88% 0%, rgba(42, 147, 181, 0.20), transparent 60%);
}

.phero-in {
  position: relative;
  z-index: 2;
  padding-block: clamp(60px, 7.5vw, 96px);
  max-width: 66ch;
}

.phero h1 {
  color: var(--white);
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
}

.phero p {
  color: #C3D5DF;
  font-size: clamp(1.02rem, 1.35vw, 1.14rem);
}

.phero p + p {
  margin-top: 14px;
}

/* ============ CARDS ============ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 30px);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(42, 147, 181, 0.15);
}

.card h4 {
  margin-bottom: 9px;
  color: var(--ink);
}

.card p {
  font-size: 14.8px;
  color: var(--muted);
}

.card-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 14px;
  font-weight: 700;
}

.card--dark {
  background: var(--slate-2);
  border-color: var(--line-dk);
}

.card--dark h4 {
  color: var(--white);
}

.card--dark p {
  color: #A9C0CC;
}

.card--dark:hover {
  border-color: var(--mint);
}

.card--dark .card-no {
  color: var(--mint);
}

/* ============ PYRAMID ============ */
.pyr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.pyr-row {
  width: 100%;
  background: var(--slate-2);
  border: 1px solid var(--line-dk);
  padding: 24px clamp(26px, 4vw, 52px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2.5vw, 30px);
  align-items: start;
  clip-path: polygon(3.2% 0, 96.8% 0, 100% 100%, 0 100%);
  transition: background 0.25s ease;
}

.pyr-row:hover {
  background: #33495B;
}

.pyr-row:nth-child(1) {
  max-width: 52%;
}

.pyr-row:nth-child(2) {
  max-width: 68%;
}

.pyr-row:nth-child(3) {
  max-width: 84%;
}

.pyr-row:nth-child(4) {
  max-width: 100%;
}

.pyr-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mint);
  padding-top: 4px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.pyr-row h4 {
  color: var(--white);
  margin-bottom: 6px;
}

.pyr-row p {
  font-size: 14.5px;
  color: #A9C0CC;
  max-width: 60ch;
}

.pyr-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-lt);
  margin-top: 22px;
  gap: 20px;
}

@media (max-width: 820px) {
  .pyr-row {
    clip-path: none !important;
    max-width: 100% !important;
  }
  .pyr-axis {
    display: none;
  }
}

/* ============ DISCIPLINE / VALUE LISTS ============ */
.rule-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.rule-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.rule-item h4 {
  color: var(--ink);
  min-width: 0;
}

.rule-item p {
  font-size: 14.8px;
  color: var(--muted);
}

.rule-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.12em;
  padding-top: 5px;
  font-weight: 700;
}

.sec--dark .rule-list,
.sec--dark .rule-item {
  border-color: var(--line-dk);
}

.sec--dark .rule-item h4 {
  color: var(--white);
}

.sec--dark .rule-item p {
  color: #A9C0CC;
}

.sec--dark .rule-idx {
  color: var(--mint);
}

@media (min-width: 761px) {
  .rule-item {
    grid-template-columns: auto 15rem 1fr;
  }
}

@media (max-width: 760px) {
  .rule-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .rule-idx {
    padding-top: 0;
  }
}

/* ============ AREA CHIPS ============ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--slate);
}

.sec--dark .chip {
  background: transparent;
  border-color: var(--line-dk);
  color: #C3D5DF;
}

.area-list {
  display: grid;
  gap: 14px;
}

.area {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.area:last-child {
  border-bottom: 0;
}

.area-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 9px;
  flex: none;
}

.area strong {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
}

.area span {
  font-size: 14.8px;
  color: var(--muted);
}

/* ============ STATS / TRUST ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dk);
}

.stat {
  padding: 30px 24px 30px 0;
  border-right: 1px solid var(--line-dk);
}

.stat:last-child {
  border-right: 0;
}

.stat:not(:first-child) {
  padding-left: 24px;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 300;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 12px;
}

.stat span {
  font-size: 14.5px;
  color: #A9C0CC;
  display: block;
  max-width: 30ch;
}

@media (max-width: 960px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-bottom: 1px solid var(--line-dk);
    padding: 24px 20px 24px 0;
  }
  .stat:nth-child(2n) {
    border-right: 0;
  }
  .stat:nth-child(2n+1) {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line-dk);
    padding: 24px 0 !important;
  }
  .stat:last-child {
    border-bottom: 0;
  }
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 320px at 15% 110%, rgba(156, 238, 190, 0.16), transparent 60%);
  pointer-events: none;
}

.cta-in {
  position: relative;
  z-index: 2;
  padding-block: clamp(56px, 7vw, 92px);
  max-width: 60ch;
}

.cta-in h2 {
  color: var(--white);
  margin-bottom: 18px;
}

.cta-in p {
  color: #BDD4E4;
}

/* ============ PLATFORM BLOCKS ============ */
.plat {
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 5.5vw, 72px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 56px);
  scroll-margin-top: 90px;
}

.plat:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.plat-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 700;
}

.plat h3 {
  color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--sans);
  font-weight: 700;
}

.plat .lede {
  margin-bottom: 26px;
  font-size: 1.05rem;
}

.plat-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .plat {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.ticks {
  display: grid;
  gap: 11px;
  margin-bottom: 24px;
}

.ticks li {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: 15px;
  align-items: start;
}

.ticks li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--mint);
  border: 1px solid var(--teal);
  margin-top: 8px;
}

.compliance {
  font-size: 13.6px;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--teal);
  padding: 12px 18px 12px 18px;
  background: var(--paper-2);
  max-width: 72ch;
  border-radius: 0 var(--r) var(--r) 0;
}

/* Flow: Data -> Action */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 6px 0 24px;
}

.flow-step {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.flow-arrow {
  color: var(--teal);
  font-size: 15px;
}

/* ============ ACCORDION ============ */
.acc {
  border-top: 1px solid var(--line);
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px 0;
  text-align: left;
}

.acc-btn h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
}

.acc-btn .acc-idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-weight: 700;
}

.acc-sign {
  width: 20px;
  height: 20px;
  position: relative;
  flex: none;
}

.acc-sign::before,
.acc-sign::after {
  content: "";
  position: absolute;
  background: var(--teal);
  transition: transform 0.3s ease;
}

.acc-sign::before {
  left: 0;
  top: 9.5px;
  width: 20px;
  height: 1.5px;
}

.acc-sign::after {
  left: 9.5px;
  top: 0;
  width: 1.5px;
  height: 20px;
}

.acc-btn[aria-expanded="true"] .acc-sign::after {
  transform: scaleY(0);
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

.acc-panel-in {
  padding: 0 0 30px;
  max-width: 74ch;
}

.acc-panel-in > p:first-child {
  margin-bottom: 16px;
}

.acc-tag {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
}

/* ============ PROCESS / ECG TIMELINE ============ */
.proc {
  position: relative;
  margin-top: 20px;
}

.proc-line {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  height: 52px;
  pointer-events: none;
}

.proc-line svg {
  width: 100%;
  height: 52px;
}

.proc-line path {
  fill: none;
  stroke: rgba(156, 238, 190, 0.5);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  z-index: 2;
}

.proc-step {
  padding: 0 16px 0 0;
}

.proc-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mint);
  margin-bottom: 14px;
  font-weight: 700;
}

.proc-node {
  width: 9px;
  height: 9px;
  background: var(--mint);
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 0 0 0 5px rgba(156, 238, 190, 0.16);
}

.proc-step h4 {
  color: var(--white);
  margin-bottom: 8px;
  margin-top: 66px;
}

.proc-step p {
  font-size: 13.8px;
  color: #A9C0CC;
}

@media (max-width: 980px) {
  .proc-line {
    display: none;
  }
  .proc-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .proc-step {
    padding: 22px 0;
    border-bottom: 1px solid var(--line-dk);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  .proc-step:last-child {
    border-bottom: 0;
  }
  .proc-step h4 {
    margin-top: 0;
  }
  .proc-node {
    display: none;
  }
  .proc-no {
    margin-bottom: 0;
    padding-top: 5px;
  }
  .proc-body {
    grid-column: 2;
  }
}

/* ============ TEAM ============ */
.team-group {
  margin-top: clamp(38px, 4.5vw, 56px);
}

.team-group > h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dk);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  align-self: start;
}

.person:hover {
  border-color: var(--teal);
}

.person-top {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  text-align: left;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--slate);
  display: block;
}

.person-role {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--teal-dk);
  display: block;
  margin-top: 3px;
}

.person-toggle {
  width: 18px;
  height: 18px;
  position: relative;
  flex: none;
}

.person-toggle::before,
.person-toggle::after {
  content: "";
  position: absolute;
  background: var(--teal);
  transition: transform 0.3s ease;
}

.person-toggle::before {
  left: 0;
  top: 8.5px;
  width: 18px;
  height: 1.5px;
}

.person-toggle::after {
  left: 8.5px;
  top: 0;
  width: 1.5px;
  height: 18px;
}

.person-top[aria-expanded="true"] .person-toggle::after {
  transform: scaleY(0);
}

.person-bio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

.person-bio-in {
  padding: 0 20px 22px;
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding-top: 18px;
}

.person-bio-in p {
  font-size: 14.3px;
  color: var(--muted);
}

.person-bio-in p + p {
  margin-top: 11px;
}

.advisors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.advisor {
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 700;
  font-size: 15px;
  color: var(--slate);
  border-radius: var(--r);
}

/* ============ TEAM FILTER & ENHANCEMENTS ============ */
.team-filter-bar {
  margin-top: 10px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-filter-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip--btn {
  cursor: pointer;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--slate);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip--btn:hover {
  border-color: var(--teal);
  color: var(--teal-dk);
  background: var(--white);
  transform: translateY(-1px);
}

.chip--btn.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(42, 147, 181, 0.28);
}

.chip-count {
  font-size: 11px;
  opacity: 0.85;
}

.person-info {
  display: flex;
  flex-direction: column;
}

.person-credentials {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

.person-top--static {
  cursor: default;
}

.person-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.person-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.person-social-link:hover {
  color: var(--teal-dk);
  text-decoration: underline;
}

.person-social-link svg {
  flex: none;
}


/* ============ CONTACT ============ */
.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

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

@media (max-width: 580px) {
  .routes {
    grid-template-columns: 1fr;
  }
}

.route {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background 0.2s ease;
  cursor: pointer;
}

.route:hover {
  background: var(--paper-2);
}

.route h4 {
  color: var(--ink);
  margin-bottom: 7px;
}

.route p {
  font-size: 14.3px;
  color: var(--muted);
}

.route-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-weight: 700;
}

@media (min-width: 901px) {
  .route:nth-child(3n) {
    border-right: 0;
  }
  .route:nth-child(n+4) {
    border-bottom: 0;
  }
}

.contact-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-cols {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--slate);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 147, 181, 0.14);
}

.field-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 580px) {
  .field-2 {
    grid-template-columns: 1fr;
  }
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 24px;
  cursor: pointer;
}

.consent input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--teal);
}

.consent span {
  font-size: 13.8px;
  color: var(--muted);
}

.form-ok {
  display: none;
  padding: 16px 18px;
  background: rgba(156, 238, 190, 0.24);
  border-left: 3px solid var(--teal);
  font-size: 14.6px;
  color: var(--slate);
  margin-top: 18px;
  border-radius: 0 var(--r) var(--r) 0;
}

.form-ok.is-on {
  display: block;
}

.form-error {
  display: none;
  padding: 16px 18px;
  background: rgba(235, 87, 87, 0.12);
  border-left: 3px solid #EB5757;
  font-size: 14.6px;
  color: #9C1414;
  margin-top: 18px;
  border-radius: 0 var(--r) var(--r) 0;
}

.form-error.is-on {
  display: block;
}

.det {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
}

.det:last-of-type {
  border-bottom: 1px solid var(--line);
}

.det dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 9rem;
  font-weight: 700;
}

.det dd a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 15.4px;
}

.det dd a:hover {
  border-color: var(--teal);
  color: var(--teal-dk);
}

/* ============ FOOTER ============ */
.ftr {
  background: var(--slate-3);
  color: #A9C0CC;
  padding-block: clamp(48px, 6vw, 72px) 0;
}

.ftr-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
}

@media (max-width: 760px) {
  .ftr-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.ftr .brand-name {
  color: var(--white);
}

.ftr-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--mint);
  margin: 14px 0 14px;
}

.ftr p {
  font-size: 14.3px;
  max-width: 44ch;
  line-height: 1.6;
}

.ftr h5 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-lt);
  margin-bottom: 16px;
}

.ftr-links {
  display: grid;
  gap: 11px;
}

.ftr-links a {
  font-size: 14.6px;
  text-decoration: none;
  color: #C3D5DF;
  width: fit-content;
  border-bottom: 1px solid transparent;
}

.ftr-links a:hover {
  color: var(--mint);
  border-color: var(--mint);
}

.ftr-legal {
  border-top: 1px solid var(--line-dk);
  padding-block: 26px 34px;
}

.ftr-legal p {
  font-size: 12.6px;
  line-height: 1.7;
  color: #7D96A4;
  max-width: none;
}

.ftr-copy {
  font-size: 12.6px;
  color: #A9C0CC;
  margin-bottom: 12px;
}

/* ============ ACCESSIBILITY & ANIMATION ============ */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.sec--dark :focus-visible,
.hero :focus-visible,
.phero :focus-visible,
.ftr :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--mint);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .ecg-path {
    stroke-dashoffset: 0;
  }
}
