/*
Theme Name: Machina AI
Theme URI: https://www.machinaai.com
Author: Machina AI, Inc.
Author URI: https://www.machinaai.com
Description: 마키나 AI (Machina AI) 공식 워드프레스 테마 — 모두를 위한, 모든 것을 위한 AI/AX. 미래지향적 3D 로고 히어로와 페이지 전환 애니메이션이 적용된 차세대 AI 기업 테마.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.5
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: machinaai
Tags: ai, ax, futuristic, 3d, animation, korean
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-alt: #0b0d10;
  --line: #e6e8ec;
  --line-strong: #d3d6dc;
  --text: #0b0d10;
  --text-mute: #4a5260;
  --text-dim: #8a929e;
  --accent: #4f7bff;
  --accent-2: #7b5cf0;
  --accent-cyan: #38bdf8;
  --accent-soft: #eef0ff;
  --accent-hover: #3a55d6;
  --brand-grad: linear-gradient(100deg, #38bdf8 0%, #4f7bff 45%, #7b5cf0 100%);
  --maxw: 1240px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 0 rgba(11,13,16,0.04), 0 12px 40px -16px rgba(11,13,16,0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---- Accessibility: skip link, sr-only, keyboard focus ---- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px;
  width: auto; height: auto; clip: auto;
  z-index: 1000;
  padding: 10px 18px; border-radius: 8px;
  background: var(--text); color: #fff; font-weight: 600;
  box-shadow: var(--shadow);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

#bg-canvas { display: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--text);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px 4px 4px 6px;
  background: var(--accent);
  border-radius: 2px;
}
.logo-text { font-size: 18px; }
.logo-text span { color: var(--accent); }
.logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.footer .logo-img { height: 44px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 120px 32px 100px;
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 28px 0 24px;
  color: var(--text);
}
.grad, .grad-2 {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0 0 40px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: var(--bg-soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stats span {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 10px;
}

/* Hero visual — clinical data card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.visual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-width: 520px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.visual-meta {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', monospace;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.pulse {
  width: 7px; height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

/* Logo strip / marquee — partner row look */
.hero-marquee {
  margin-top: 80px;
  overflow: hidden;
  padding: 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.marquee-track span:nth-child(even) { color: var(--line-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section {
  padding: 140px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: left;
}
.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-mute);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--text);
}
.section-head p {
  color: var(--text-mute);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}

/* ===== Solutions (services) — large feature cards like Lunit ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cards .card:nth-child(1),
.cards .card:nth-child(2) {
  grid-column: span 1;
}
.card {
  position: relative;
  padding: 48px 44px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card::after {
  content: "→";
  position: absolute;
  top: 44px;
  right: 44px;
  font-size: 22px;
  color: var(--text-dim);
  transition: transform 0.2s, color 0.2s;
}
.card:hover::after {
  color: var(--accent);
  transform: translate(4px, -4px);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-icon::after {
  content: "";
  width: 22px; height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: invert(20%) sepia(96%) saturate(4321%) hue-rotate(232deg) brightness(95%) contrast(105%);
}
.card-icon[data-icon="scan"]::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2M7 12h10'/></svg>"); }
.card-icon[data-icon="chat"]::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>"); }
.card-icon[data-icon="dna"]::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 22c.5-2 1.5-3.7 3-5M4 2c.5 2 1.5 3.7 3 5M20 22c-.5-2-1.5-3.7-3-5M20 2c-.5 2-1.5 3.7-3 5M8 7h8M8 17h8M9 12h6'/></svg>"); }
.card-icon[data-icon="surgery"]::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 3v18M3 12h18'/></svg>"); }
.card-icon[data-icon="patient"]::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>"); }
.card-icon[data-icon="research"]::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>"); }

.card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.card p {
  color: var(--text-mute);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.card ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.card ul li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 13.5px;
  color: var(--text-mute);
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 1.5px;
  background: var(--accent);
}

/* ===== Tech / Numbered list ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tech-pillar {
  padding: 48px 40px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.tech-pillar:hover { background: var(--bg-soft); }
.pillar-num {
  font-family: 'Inter', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}
.tech-pillar h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.tech-pillar > p {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 32px;
}
.bar {
  position: relative;
  margin-bottom: 18px;
}
.bar i {
  display: block;
  height: 4px;
  width: var(--w);
  border-radius: 999px;
  background: var(--text);
}
.bar span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ===== Platform — split layout ===== */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.platform-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.orb {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
}
.r1 { width: 180px; height: 180px; }
.r2 { width: 280px; height: 280px; }
.r3 { width: 380px; height: 380px; }
.core {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  z-index: 2;
  letter-spacing: -0.01em;
}
.node {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.node:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.n1 { top: 0; left: 50%; transform: translateX(-50%); }
.n2 { top: 28%; right: -10px; }
.n3 { bottom: 28%; right: -10px; }
.n4 { bottom: 0; left: 50%; transform: translateX(-50%); }
.n5 { bottom: 28%; left: -10px; }
.n6 { top: 28%; left: -10px; }

.platform-copy h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--text);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}
.check-list li {
  position: relative;
  padding: 16px 0 16px 36px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--text);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 16px;
}

/* ===== About / KPIs ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-lead {
  font-size: 22px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.kpi {
  padding: 40px 32px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.kpi strong {
  font-size: 44px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1;
}
.kpi span {
  font-size: 13.5px;
  color: var(--text-mute);
  margin-top: 14px;
  font-weight: 500;
}

/* ===== Contact CTA ===== */
.section-cta { padding: 120px 0 140px; }
.cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 72px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-card .tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}
.cta-card h2 {
  margin-top: 18px;
  color: #fff;
}
.cta-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16.5px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14.5px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s, background 0.15s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}
.contact-form button {
  align-self: flex-start;
  background: #fff;
  color: var(--text);
}
.contact-form button:hover { background: var(--accent); color: #fff; }
.contact-form small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
}
.contact-form small a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
}
.foot-brand p {
  margin: 18px 0 0;
  color: var(--text-mute);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 320px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.foot-cols h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.foot-cols a {
  display: block;
  color: var(--text-mute);
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.15s;
}
.foot-cols a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 10px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero { padding: 60px 32px 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { order: -1; }
  .visual-frame { max-width: 460px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-stats strong { font-size: 28px; }
  .cards { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; border-left: none; }
  .tech-pillar { border-right: none; }
  .platform-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .cta-card { grid-template-columns: 1fr; padding: 50px 36px; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 50px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; right: 16px; left: 16px;
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--line);
    gap: 16px;
    box-shadow: var(--shadow);
  }
  .section { padding: 90px 0; }
  .section-head { margin-bottom: 50px; }
}

@media (max-width: 600px) {
  .container { padding: 0 22px; }
  .hero { padding: 50px 22px 60px; }
  .hero-stats { grid-template-columns: 1fr; gap: 24px; }
  .kpis { grid-template-columns: 1fr; border-left: none; }
  .kpi { border-right: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .orb { width: 300px; height: 300px; }
  .r1 { width: 140px; height: 140px; }
  .r2 { width: 220px; height: 220px; }
  .r3 { width: 300px; height: 300px; }
  .core { width: 100px; height: 100px; font-size: 14px; }
  .cta-card { padding: 40px 24px; }
  .card { padding: 36px 28px; }
  .card::after { top: 32px; right: 32px; }
}

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ============================================================
   IR DECK SECTIONS — additional layouts
   ============================================================ */

.section-num {
  font-family: 'Inter', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  display: inline-block;
}

/* Contents anchor list */
.contents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.content-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s, transform 0.2s;
}
.content-link:hover { border-color: var(--text); transform: translateY(-2px); }
.content-link .num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.content-link .label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

/* Problem 3-column */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-col {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.problem-col h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 12px 18px;
  border-radius: 999px;
  display: inline-block;
  margin: 0 0 22px;
}
.problem-col h4 {
  font-size: 16px;
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.problem-col p {
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.65;
  margin: 0 0 24px;
}
.problem-col .stat-block {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 22px;
}
.problem-col .stat-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.problem-col .stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: block;
  margin: 8px 0;
}
.problem-col .ref {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: 0.01em;
}

/* Trend section — split with main + 3 sub */
.trend-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
}
.trend-main {
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.trend-main h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.trend-main p {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.65;
}
.trend-sub {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.trend-card {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trend-card .badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.trend-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}
.trend-card .big {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.trend-card .meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Need split — challenges + answers */
.need-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.need-col {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.need-col.challenges { background: var(--bg-soft); }
.need-col.answers { background: var(--bg-alt); color: #fff; border-color: var(--bg-alt); }
.need-col h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 26px;
  letter-spacing: -0.015em;
}
.need-col.answers h3 { color: #fff; }
.need-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.need-col ul li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.need-col.answers ul li {
  border-color: rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.need-col.answers .v {
  color: #fff;
  font-weight: 700;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  flex-shrink: 0;
}

/* TAM-SAM-SOM */
.market-size {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.tam-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tam-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.tam-row.tam { background: var(--accent-soft); }
.tam-row.sam { background: rgba(31, 59, 255, 0.08); }
.tam-row.som { background: var(--text); color: #fff; border-color: var(--text); }
.tam-label {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  flex-direction: column;
}
.tam-label strong {
  font-size: 32px;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--accent);
}
.tam-row.som .tam-label strong { color: #fff; }
.tam-desc {
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.55;
}
.tam-row.som .tam-desc { color: rgba(255,255,255,0.75); }
.market-bars {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.market-bars h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.bar-row {
  margin-bottom: 22px;
}
.bar-row .lbl {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 8px;
  font-weight: 500;
}
.bar-row .lbl strong { color: var(--text); font-weight: 700; font-size: 16px; }
.bar-row .track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.bar-row .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.market-factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.market-factors div {
  font-size: 13.5px;
  color: var(--text-mute);
  padding-left: 18px;
  position: relative;
}
.market-factors div::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Solution feature — large dual layout */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.solution-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  padding: 50px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.flow-step {
  text-align: center;
  position: relative;
}
.flow-step .icon {
  width: 66px; height: 66px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
}
.flow-step h5 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -16px;
  top: 22px;
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
}
.solution-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.solution-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.solution-item:last-child { border-bottom: none; }
.solution-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.solution-item h4::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.solution-item p {
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.6;
  margin: 0 0 0 20px;
}

/* Performance metrics row */
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-top: 40px;
  overflow: hidden;
}
.metric-row > div {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.metric-row > div:last-child { border-right: none; }
.metric-row strong {
  display: block;
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.metric-row span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-mute);
  font-weight: 500;
}

/* Biomarker chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.chip {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: 'Inter', monospace;
}

/* 5 Core Values circular grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.value-card {
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.value-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.value-card .vnum {
  width: 36px; height: 36px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.value-card p {
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 0;
}

/* Architecture (mLLM) */
.arch-flow {
  display: grid;
  grid-template-columns: 0.8fr 2fr 1.2fr;
  gap: 24px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}
.arch-input {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
}
.arch-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.arch-mod {
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.arch-mod h5 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--accent);
}
.arch-mod p {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.5;
  margin: 0;
}
.arch-output {
  background: var(--bg-alt);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 22px;
}
.arch-output h5 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.arch-output ol {
  padding-left: 20px;
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.arch-output ol li { margin-bottom: 4px; }
.arch-output .scales {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* Platform sub-grid (6 platforms) */
.plat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.plat-card {
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.plat-card:hover { border-color: var(--text); transform: translateY(-2px); }
.plat-card .plat-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.plat-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.plat-card .sub {
  font-size: 14px;
  color: var(--text-mute);
  margin: 0 0 24px;
  line-height: 1.6;
}
.plat-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 86px 1fr;
  row-gap: 14px;
  column-gap: 16px;
  font-size: 13.5px;
}
.plat-card dt {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.plat-card dd {
  margin: 0;
  color: var(--text-mute);
  line-height: 1.55;
}
.plat-card dd ul {
  margin: 0; padding: 0;
  list-style: none;
}
.plat-card dd ul li { padding: 2px 0; }

/* Detection performance */
.detect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.detect-card {
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.detect-card h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 24px;
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}
.detect-card .legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.detect-card .legend span {
  font-size: 12.5px;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.detect-card .legend span::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 3px;
  flex-shrink: 0;
}
.detect-card .legend span:nth-child(2)::before { background: #4f8cff; }
.detect-card .legend span:nth-child(3)::before { background: #38e8c6; }
.detect-card .legend span:nth-child(4)::before { background: #b46bff; }
.detect-card .h-bar {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.detect-card .h-bar .name { font-size: 13.5px; color: var(--text); font-weight: 500; }
.detect-card .h-bar .track { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.detect-card .h-bar .fill { height: 100%; background: var(--accent); border-radius: 999px; }
.detect-card .formats {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.detect-card .formats li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}
.detect-card .formats li:first-child { border-top: none; }
.detect-card .formats li strong { color: var(--text); margin-right: 6px; font-weight: 700; }

.partner-strip {
  margin-top: 50px;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  color: #fff;
}
.partner-strip h4 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 22px;
  text-align: center;
}
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 44px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.01em;
}
.partner-logos span {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.partner-bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
}

/* Competitive */
.diff-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 50px;
}
.diff-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.diff-card h4 {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 18px;
}
.diff-card p { font-size: 14px; color: var(--text-mute); line-height: 1.6; margin: 0; }
.compete-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
}
.compete-cell {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.compete-cell.us {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.compete-cell h5 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}
.compete-cell p {
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
  color: var(--text-mute);
}
.compete-cell.us p { color: rgba(255,255,255,0.85); }

/* Business model */
.bm-flow {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.bm-col h5 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.bm-col .b-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bm-col .b-list li {
  padding: 14px 18px;
  background: var(--accent-soft);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}
.bm-center {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-alt);
  color: #fff;
  border-radius: var(--radius-lg);
}
.bm-center h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #fff;
}
.bm-center .pct {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 13.5px;
}
.bm-center .pct div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.bm-center .pct strong { color: var(--accent); font-weight: 700; }
.bm-target {
  text-align: center;
  padding: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bm-services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.bm-service {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.bm-service h5 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--accent);
  letter-spacing: -0.015em;
}
.bm-service p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0;
}

/* Traction */
.trac-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}
.trac-card {
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.trac-card .tag {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-soft);
}
.trac-card .big-num {
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 14px 0 8px;
}
.trac-card .big-label {
  font-size: 14px;
  color: var(--text-mute);
}
.trac-card .case-bubbles {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.trac-card .bubble {
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-weight: 700;
  font-size: 16px;
}
.trac-card .bubble.b-lg { width: 130px; height: 130px; font-size: 28px; }
.trac-card .bubble.b-md { width: 90px; height: 90px; background: #4f8cff; }
.trac-card .bubble.b-sm { width: 60px; height: 60px; background: #38e8c6; color: var(--bg-alt); font-size: 13px; }
.trac-card .bubble small { font-size: 11px; font-weight: 500; opacity: 0.85; margin-top: 2px; }
.trac-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.trac-card ul li {
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.trac-card ul li:first-child { border-top: none; }
.trac-card ul li strong { color: var(--text); display: block; font-weight: 700; margin-bottom: 2px; }

/* Partners list */
.partner-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.partner-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.partner-row:hover { border-color: var(--text); }
.partner-row .left {
  padding: 18px 28px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  background: #fff;
}
.partner-row .right {
  padding: 18px 28px;
  background: var(--bg-alt);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: stretch;
}
.team-leader {
  padding: 40px 32px;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.team-leader .leader-mark {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.team-leader h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.team-leader .role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.team-leader .edu {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.7;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.team-leader ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.team-leader ul li {
  padding: 6px 0 6px 16px;
  font-size: 13px;
  color: var(--text-mute);
  position: relative;
  line-height: 1.55;
}
.team-leader ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 1.5px;
  background: var(--accent);
}
.team-grid-r {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 18px;
}
.team-card {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.team-card .group {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.team-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}
.team-card .title {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0 0 12px;
}
.team-card ul {
  list-style: none; padding: 0; margin: 0;
}
.team-card ul li {
  padding: 4px 0 4px 14px;
  font-size: 12.5px;
  color: var(--text-mute);
  position: relative;
  line-height: 1.5;
}
.team-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.team-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.team-stats div {
  padding: 18px;
  background: var(--accent-soft);
  border-radius: 999px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.team-stats strong { font-weight: 800; margin-right: 4px; }

/* Roadmap */
.roadmap-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
  align-items: end;
}
.year-col {
  text-align: center;
  position: relative;
}
.year-col .year {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mute);
  margin-top: 14px;
  letter-spacing: 0.04em;
}
.year-col .yr-stage {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 4px;
}
.year-col .bar-vert {
  width: 100%;
  background: linear-gradient(180deg, var(--accent), #4f8cff);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  position: relative;
}
.year-col:nth-child(1) .bar-vert { height: 60px; background: #cdd6ff; color: var(--accent); }
.year-col:nth-child(2) .bar-vert { height: 110px; background: var(--accent); }
.year-col:nth-child(3) .bar-vert { height: 180px; }
.year-col:nth-child(4) .bar-vert { height: 240px; background: #1f3bff; }
.year-col:nth-child(5) .bar-vert { height: 300px; background: var(--bg-alt); }

.roadmap-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 50px;
}
.stage-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  position: relative;
}
.stage-card .stage-num {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.stage-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.stage-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0;
}

/* Investment */
.invest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.invest-left {
  padding: 40px 32px;
  background: var(--bg-alt);
  color: #fff;
  border-radius: var(--radius-lg);
}
.invest-left h3 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0 0 8px;
}
.invest-left .amount {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.invest-left .stage {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 30px;
}
.invest-left .alloc {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.invest-left .alloc-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: center;
}
.invest-left .alloc-pct {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.invest-left .alloc-info h5 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
}
.invest-left .alloc-info p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}
.invest-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.invest-effect {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
}
.invest-effect .eicon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
}
.invest-effect h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}
.invest-effect h4 strong {
  color: var(--accent);
}
.invest-effect p {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0;
  line-height: 1.5;
}

/* Appendix */
.appendix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.append-card {
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.append-card .pub-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.append-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.append-card .meta {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.append-card p {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.6;
  margin: 0;
}
.append-card.activity .photos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  align-items: stretch;
}
.append-card.activity .photo-figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.append-card.activity .photo-figure .img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: #0b0d10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.append-card.activity .photo-figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.append-card.activity .photo-figure figcaption {
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--text-mute);
  background: #fff;
  border-top: 1px solid var(--line);
  line-height: 1.5;
  font-weight: 500;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
}
@media (max-width: 720px) {
  .append-card.activity .photos { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 980px) {
  .contents-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .trend-grid { grid-template-columns: 1fr; }
  .need-grid { grid-template-columns: 1fr; }
  .market-size { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-row > div { border-right: none; border-bottom: 1px solid var(--line); }
  .metric-row > div:last-child { border-bottom: none; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .arch-flow { grid-template-columns: 1fr; }
  .arch-modules { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: 1fr; }
  .detect-grid { grid-template-columns: 1fr; }
  .diff-row { grid-template-columns: 1fr; }
  .compete-grid { grid-template-columns: 1fr 1fr; }
  .bm-flow { grid-template-columns: 1fr; }
  .bm-services { grid-template-columns: 1fr 1fr; }
  .trac-grid { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: 1fr; border-radius: var(--radius); }
  .team-grid { grid-template-columns: 1fr; }
  .team-grid-r { grid-template-columns: 1fr; }
  .team-stats { grid-template-columns: 1fr 1fr; }
  .roadmap-bars { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .roadmap-stages { grid-template-columns: 1fr 1fr; }
  .invest-grid { grid-template-columns: 1fr; }
  .appendix-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contents-grid { grid-template-columns: 1fr; }
  .compete-grid { grid-template-columns: 1fr; }
  .bm-services { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .roadmap-stages { grid-template-columns: 1fr; }
  .team-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   LATEST PRODUCT AD — Looping video showcase + 6 product grid
   ============================================================ */
.latest-product-ad {
  padding: 110px 0 120px;
  background:
    radial-gradient(circle at 20% 0%, rgba(31,59,255,0.06), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(31,59,255,0.05), transparent 50%),
    var(--bg);
  position: relative;
}
.latest-product-ad .section-head { margin-bottom: 56px; }
.latest-product-ad .section-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.025em;
}
.latest-product-ad .section-head p {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--text-mute);
  font-size: 16px;
}

.product-video-frame {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow:
    0 30px 80px -30px rgba(31,59,255,0.35),
    0 1px 0 rgba(11,13,16,0.05),
    0 12px 40px -16px rgba(11,13,16,0.18);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.product-video-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(31,59,255,0.65), rgba(31,59,255,0.0) 40%, rgba(31,59,255,0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.product-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-video-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  background: rgba(11,13,16,0.62);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 3;
}
.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 0 rgba(255,59,59,0.7);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,59,59,0.7); opacity: 1; }
  70%  { box-shadow: 0 0 0 10px rgba(255,59,59,0); opacity: 0.7; }
  100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); opacity: 1; }
}
.product-video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 28px 24px;
  background: linear-gradient(180deg, rgba(11,13,16,0) 0%, rgba(11,13,16,0.78) 60%, rgba(11,13,16,0.92) 100%);
  color: #fff;
  z-index: 3;
}
.product-video-caption h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.product-video-caption p {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  margin: 0;
  line-height: 1.55;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 48px -22px rgba(11,13,16,0.18);
}
.product-card .product-image {
  aspect-ratio: 16 / 7.1;
  background: var(--bg-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}
.product-card:hover .product-image img { transform: scale(1.03); }
.product-meta { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.product-meta .badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.product-meta h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.32;
}
.product-meta .product-tag {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 14px;
  line-height: 1.5;
}
.product-meta ul {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.product-meta ul li {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.55;
  padding: 5px 0;
  display: flex;
  gap: 10px;
}
.product-meta ul li strong {
  color: var(--text);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 64px;
  padding-top: 2px;
}

.product-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 56px;
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .latest-product-ad { padding: 80px 0 90px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-video-frame { margin-bottom: 48px; border-radius: 12px; }
  .product-video-caption { padding: 50px 18px 18px; }
  .product-video-badge { top: 12px; left: 12px; font-size: 10.5px; padding: 6px 11px; }
  .product-meta ul li { flex-direction: column; gap: 2px; }
  .product-meta ul li strong { flex: none; }
}

/* =========================================================
   GLOBAL 3D BACKGROUND  (#bg-canvas sensor mesh)
   ========================================================= */
:root {
  --rescue: #ff5a3c;
  --rescue-2: #ff8a4d;
  --sky: #5fa8ff;
}
html { background: var(--bg); }
body { background: transparent; }
#bg-canvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}
/* keep alternating/white sections legible above the mesh */
.section, .hero { background: rgba(255, 255, 255, 0.62); }
.section-alt { background: rgba(246, 247, 249, 0.92); }

/* ---- Aurora UI: animated gradient mesh behind everything ---- */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 14% 18%, rgba(31,59,255,0.12), transparent 60%),
    radial-gradient(34vw 34vw at 86% 64%, rgba(95,168,255,0.12), transparent 62%),
    radial-gradient(30vw 30vw at 60% 112%, rgba(255,90,60,0.08), transparent 60%);
  filter: blur(28px);
  animation: auroraDrift 24s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.1); }
}

/* ---- 3D tilt interaction on cards ---- */
.tilt3d {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

/* ---- Glassmorphism nav ---- */
.nav {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 30px -20px rgba(11,13,16,0.4);
}

/* ---- Futuristic accents ---- */
.grad { filter: drop-shadow(0 0 22px rgba(79, 123, 255, 0.30)); }
.grad-rescue { text-shadow: 0 0 30px rgba(255, 90, 60, 0.22); }

/* glowing gradient ring around the hero 3D frame */
.visual-frame {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(238,240,255,0.9), var(--bg-soft) 70%);
  box-shadow:
    var(--shadow),
    0 30px 90px -40px rgba(31,59,255,0.45),
    inset 0 0 0 1px rgba(31,59,255,0.06);
}
.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(31,59,255,0.5), transparent 40%, rgba(95,168,255,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

/* number badges get a soft glow */
.value-card .vnum, .step-no {
  box-shadow: 0 8px 22px -10px rgba(31,59,255,0.7);
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .tilt3d { transition: none; }
}

/* =========================================================
   PHYSICAL AI — Medlas humanoid section (LimX-style)
   ========================================================= */
.medlas-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 140px 0 130px;
  color: #eef2fb;
  background:
    radial-gradient(1000px 600px at 72% -12%, rgba(31,59,255,0.26), transparent 60%),
    radial-gradient(820px 520px at 8% 112%, rgba(95,168,255,0.16), transparent 60%),
    linear-gradient(180deg, #060912 0%, #0a1426 52%, #05070d 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.medlas-aurora {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(440px 440px at 28% 24%, rgba(95,168,255,0.20), transparent 70%),
    radial-gradient(540px 540px at 80% 78%, rgba(31,59,255,0.20), transparent 70%);
  filter: blur(24px);
  animation: droneAurora 16s ease-in-out infinite alternate;
}

.medlas-head { max-width: 880px; margin: 0 auto 56px; text-align: center; }
.medlas-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(95,168,255,0.10); border: 1px solid rgba(95,168,255,0.32);
  color: #aecbff; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 26px;
}
.medlas-name {
  font-size: clamp(64px, 13vw, 184px);
  line-height: 0.92; font-weight: 800; letter-spacing: -0.04em;
  margin: 0 0 18px; color: #fff;
  text-shadow: 0 0 60px rgba(31,59,255,0.45);
}
.medlas-name .reg { font-size: 0.2em; font-weight: 600; color: #5fa8ff; vertical-align: super; -webkit-text-fill-color: #5fa8ff; }
.medlas-tag { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: #fff; margin: 0 0 18px; }
.medlas-lead { font-size: 17px; line-height: 1.7; color: #aeb8cc; max-width: 640px; margin: 0 auto 30px; }
.medlas-lead strong { color: #fff; font-weight: 600; }
.medlas-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-light { background: #fff; color: #0b0d10; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -16px rgba(255,255,255,0.5); }
.btn-glass {
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }

/* bento grid */
.medlas-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}
.bento-stage {
  position: relative;
  grid-column: 1 / 3; grid-row: 1 / 3;
  border-radius: 20px; overflow: hidden;
  /* soft spotlight bridges the photo's light-blue into the dark section */
  background:
    radial-gradient(70% 62% at 50% 34%, rgba(126,160,214,0.22), transparent 68%),
    linear-gradient(180deg, transparent 0%, transparent 52%, #060b16 100%);
}
/* fade all four edges so the photo's background melts into the section */
.medlas-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  -webkit-mask:
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 74%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 19%, #000 81%, transparent 100%);
  -webkit-mask-composite: source-in;
  -webkit-mask-repeat: no-repeat;
  mask:
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 74%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 19%, #000 81%, transparent 100%);
  mask-composite: intersect;
  mask-repeat: no-repeat;
}
.medlas-hud {
  position: absolute; z-index: 2;
  font-family: 'Inter', ui-monospace, monospace;
  background: rgba(7,11,22,0.55); border: 1px solid rgba(95,168,255,0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 12px; padding: 11px 14px;
}
.medlas-hud.hud-tl { top: 16px; left: 16px; display: flex; align-items: center; gap: 10px; }
.medlas-hud.hud-tl strong { display: block; font-size: 13px; color: #fff; letter-spacing: 0.03em; }
.medlas-hud.hud-tl span { font-size: 11px; color: #8fb0e6; }
.medlas-hud.hud-br { bottom: 16px; right: 16px; min-width: 150px; }
.medlas-badge {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  font-size: 10.5px; letter-spacing: 0.16em; font-weight: 700; text-transform: uppercase;
  color: #aecbff; padding: 7px 12px; border-radius: 999px;
  background: rgba(31,59,255,0.14); border: 1px solid rgba(95,168,255,0.35);
}
.loco-wave {
  height: 16px; margin: 4px 0 5px; border-radius: 3px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'><polyline points='0,12 14,12 20,4 28,12 34,12 46,4 52,12 70,12 76,5 84,12 120,12' fill='none' stroke='black' stroke-width='1.6'/></svg>") repeat-x left center;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'><polyline points='0,12 14,12 20,4 28,12 34,12 46,4 52,12 70,12 76,5 84,12 120,12' fill='none' stroke='black' stroke-width='1.6'/></svg>") repeat-x left center;
  background-color: #5fa8ff;
  animation: vitalScroll 1.4s linear infinite;
}

/* bento info tiles */
.bento-tile {
  position: relative; padding: 22px 22px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,28,52,0.82), rgba(8,12,24,0.82));
  border: 1px solid rgba(95,168,255,0.16);
  display: flex; flex-direction: column; justify-content: center;
}
.bt-label {
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: #6f8cc0;
  font-weight: 700; margin-bottom: 8px;
}
.bento-tile strong {
  font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #fff;
}
.bento-tile strong small { font-size: 16px; font-weight: 600; color: #5fa8ff; margin-left: 4px; }
.bt-sub { font-size: 12px; color: #9fabc2; margin-top: 8px; }
.bento-tile h4 { margin: 0 0 8px; font-size: 17px; color: #fff; letter-spacing: -0.01em; }
.bento-tile p { margin: 0; font-size: 12.5px; line-height: 1.55; color: #9fabc2; }
.tile-os { background: linear-gradient(135deg, rgba(31,59,255,0.22), rgba(8,12,24,0.85)); }
.dof-diagram { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.dof-diagram span {
  height: 7px; border-radius: 50%; background: #5fa8ff; opacity: 0.5;
  box-shadow: 0 0 8px rgba(95,168,255,0.7);
  animation: dofPulse 2.4s ease-in-out infinite;
}
.dof-diagram span:nth-child(2n) { animation-delay: 0.3s; }
.dof-diagram span:nth-child(3n) { animation-delay: 0.7s; opacity: 0.85; }
.dof-diagram span:nth-child(4n) { animation-delay: 1.1s; }
@keyframes dofPulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }

/* capability cards + spec strip (reuse .drone-card / .drone-stats) */
.medlas-caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.medlas-stats { margin-top: 0; }
.drone-card-icon[data-r="wholebody"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fa8ff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='4' r='2'/><path d='M12 6v7M12 9 8 7M12 9l4-2M12 13l-3 7M12 13l3 7'/></svg>"); }
.drone-card-icon[data-r="terrain"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fa8ff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M3 20h4v-4h4v-4h4V8h6'/><circle cx='6' cy='6' r='2'/></svg>"); }
.drone-card-icon[data-r="lift"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a4d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v9M8 7l4-4 4 4'/><rect x='6' y='14' width='12' height='6' rx='1'/></svg>"); }
.drone-card-icon[data-r="vision"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a5c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>"); }

@media (max-width: 980px) {
  .medlas-bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .bento-stage { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16 / 11; }
  .medlas-caps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .medlas-section { padding: 90px 0; }
  .medlas-bento { grid-template-columns: 1fr; }
  .bento-stage { grid-column: auto; aspect-ratio: 4 / 3.4; }
  .medlas-caps { grid-template-columns: 1fr; }
}

/* =========================================================
   DRONE RESCUE + AGENTIC AI SECTION
   ========================================================= */
.drone-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 130px 0 140px;
  color: #eef2fb;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(31,59,255,0.28), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(255,90,60,0.20), transparent 60%),
    linear-gradient(180deg, #05070d 0%, #0a1020 48%, #05070d 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drone-aurora,
.drone-grid-floor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.drone-aurora {
  background:
    radial-gradient(420px 420px at 22% 28%, rgba(95,168,255,0.22), transparent 70%),
    radial-gradient(520px 520px at 82% 70%, rgba(255,90,60,0.18), transparent 70%);
  filter: blur(20px);
  animation: droneAurora 14s ease-in-out infinite alternate;
}
@keyframes droneAurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: 0.8; }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: 1; }
}
.drone-grid-floor {
  top: auto; height: 42%;
  background-image:
    linear-gradient(rgba(31,59,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,59,255,0.35) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(420px) rotateX(72deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 90%);
  opacity: 0.5;
}

.drone-head { max-width: 820px; margin: 0 auto 60px; text-align: center; }
.drone-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(255,90,60,0.12);
  border: 1px solid rgba(255,90,60,0.35);
  color: #ffb4a3;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 24px;
}
.live-dot, .hud-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--rescue);
  box-shadow: 0 0 0 0 rgba(255,90,60,0.7); animation: pulse 1.5s infinite;
}
.drone-head h2 { color: #fff; margin-bottom: 18px; }
.grad-rescue {
  background: linear-gradient(90deg, #ff8a4d, #ff5a3c 55%, #5fa8ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.drone-head p { color: #aeb8cc; font-size: 18px; line-height: 1.65; margin: 0 auto; max-width: 680px; }
.drone-head p strong { color: #fff; font-weight: 600; }

/* stage: 3D visual + mission flow */
.drone-stage {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px;
  align-items: center; margin-bottom: 80px;
}
.drone-visual {
  position: relative; width: 100%; aspect-ratio: 1 / 0.82;
  border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #0d1530 0%, #05070d 70%);
  border: 1px solid rgba(95,168,255,0.22);
  box-shadow: 0 30px 80px -30px rgba(31,59,255,0.55), inset 0 0 60px rgba(5,7,13,0.6);
}
#drone-canvas { width: 100%; height: 100%; display: block; }

/* HUD overlays */
.drone-hud {
  position: absolute; z-index: 2;
  font-family: 'Inter', ui-monospace, monospace;
  background: rgba(7,11,22,0.55);
  border: 1px solid rgba(95,168,255,0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 12px; padding: 11px 14px;
  box-shadow: 0 10px 30px -16px rgba(0,0,0,0.8);
}
.hud-label {
  display: block; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #6f8cc0; margin-bottom: 3px;
}
.hud-status {
  top: 16px; left: 16px; display: flex; align-items: center; gap: 10px;
}
.hud-status strong { display: block; font-size: 13px; color: #fff; letter-spacing: 0.04em; }
.hud-status span { font-size: 11px; color: #8fb0e6; }
.hud-target { top: 16px; right: 16px; text-align: right; }
.hud-target strong { font-size: 26px; color: var(--rescue); letter-spacing: -0.02em; line-height: 1; }
.hud-target .hud-sub { display: block; font-size: 10px; color: #8a93a8; margin-top: 4px; }
.hud-vitals { bottom: 16px; left: 16px; min-width: 138px; }
.vital-line { display: flex; align-items: baseline; gap: 7px; font-size: 12px; color: #cdd7ea; }
.vital-line b { font-size: 17px; color: #5fa8ff; font-weight: 700; }
.vital-line .bpm { font-size: 9.5px; color: #6f8cc0; }
.vital-wave {
  height: 16px; margin-top: 6px; border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(95,168,255,0.0) 9px 10px),
    linear-gradient(90deg, transparent, rgba(95,168,255,0.25), transparent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'><polyline points='0,8 18,8 24,2 30,14 36,8 60,8 66,3 72,13 78,8 120,8' fill='none' stroke='black' stroke-width='1.6'/></svg>") repeat-x left center;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'><polyline points='0,8 18,8 24,2 30,14 36,8 60,8 66,3 72,13 78,8 120,8' fill='none' stroke='black' stroke-width='1.6'/></svg>") repeat-x left center;
  background-color: #5fa8ff;
  animation: vitalScroll 1.6s linear infinite;
}
@keyframes vitalScroll { to { background-position: -120px center, 0 0; } }
.drone-scan-tag {
  position: absolute; bottom: 16px; right: 16px; z-index: 2;
  font-size: 10.5px; letter-spacing: 0.16em; font-weight: 700; text-transform: uppercase;
  color: #ffb4a3; padding: 7px 12px; border-radius: 999px;
  background: rgba(255,90,60,0.12); border: 1px solid rgba(255,90,60,0.3);
}

/* mission flow copy */
.drone-copy h3 { font-size: 24px; color: #fff; margin: 0 0 26px; letter-spacing: -0.02em; }
.drone-flow { list-style: none; margin: 0; padding: 0; }
.drone-flow li {
  display: flex; gap: 18px; padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drone-flow li:last-child { border-bottom: none; }
.step-no {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  color: #fff; background: linear-gradient(135deg, rgba(255,90,60,0.9), rgba(31,59,255,0.9));
  box-shadow: 0 8px 22px -10px rgba(255,90,60,0.8);
}
.drone-flow h4 { margin: 2px 0 5px; font-size: 16px; color: #fff; }
.drone-flow p { margin: 0; font-size: 13.5px; color: #9fabc2; line-height: 1.6; }
.drone-copy-cta { margin-top: 28px; }
.btn-rescue {
  background: linear-gradient(135deg, #ff7a4d, #ff5a3c);
  color: #fff; border: none;
  box-shadow: 0 14px 34px -14px rgba(255,90,60,0.9);
}
.btn-rescue:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* feature cards */
.drone-features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 70px;
}
.drone-card {
  padding: 30px 26px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(20,28,52,0.8), rgba(8,12,24,0.8));
  border: 1px solid rgba(95,168,255,0.16);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.drone-card:hover {
  transform: translateY(-4px); border-color: rgba(255,90,60,0.5);
  box-shadow: 0 26px 60px -28px rgba(31,59,255,0.7);
}
.drone-card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(95,168,255,0.1); border: 1px solid rgba(95,168,255,0.22);
  background-repeat: no-repeat; background-position: center; background-size: 24px 24px;
}
.drone-card-icon[data-r="patient"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h3l2-5 3 10 2.5-7 1.5 2H21'/></svg>"); }
.drone-card-icon[data-r="fire"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a4d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2s5 4 5 9a5 5 0 0 1-10 0c0-1.5.5-2.5 1-3 .3 1 1 1.5 1.5 1.5C10 7 12 5 12 2z'/></svg>"); }
.drone-card-icon[data-r="swarm"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fa8ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='6' cy='6' r='2.2'/><circle cx='18' cy='7' r='2.2'/><circle cx='12' cy='17' r='2.2'/><path d='M7.6 7.6 10.6 15M16.6 8.6 13.4 15'/></svg>"); }
.drone-card-icon[data-r="signal"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fa8ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M11 12a1 1 0 0 1 2 0'/><path d='M12 12v8'/></svg>"); }
.drone-card h4 { margin: 0 0 9px; font-size: 16.5px; color: #fff; letter-spacing: -0.01em; }
.drone-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #9fabc2; }

/* stats strip */
.drone-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(95,168,255,0.18); border-radius: 16px; overflow: hidden;
  background: rgba(7,11,22,0.5);
}
.drone-stats > div {
  padding: 30px 24px; text-align: center;
  border-right: 1px solid rgba(95,168,255,0.14);
}
.drone-stats > div:last-child { border-right: none; }
.drone-stats strong {
  display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(135deg, #ff8a4d, #5fa8ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.drone-stats span { display: block; margin-top: 12px; font-size: 13px; color: #9fabc2; }

@media (max-width: 980px) {
  .drone-stage { grid-template-columns: 1fr; gap: 40px; }
  .drone-features { grid-template-columns: repeat(2, 1fr); }
  .drone-stats { grid-template-columns: repeat(2, 1fr); }
  .drone-stats > div:nth-child(2) { border-right: none; }
  .drone-stats > div:nth-child(1), .drone-stats > div:nth-child(2) { border-bottom: 1px solid rgba(95,168,255,0.14); }
}
@media (max-width: 600px) {
  .drone-section { padding: 90px 0 100px; }
  .drone-features { grid-template-columns: 1fr; }
  .hud-vitals { display: none; }
  .drone-head p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .drone-aurora, .vital-wave, .live-dot, .hud-dot { animation: none; }
}

/* Use-case scenario grid (reuses .value-card styling, 3 columns) */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.scenario-grid .value-card { text-align: left; }
.scenario-grid .value-card .vnum { margin: 0 0 16px; }
@media (max-width: 860px) { .scenario-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .scenario-grid { grid-template-columns: 1fr; } }


/* =========================================================
   MACHINA AI — brand logo lockup, 3D hero stage,
   and futuristic page-transition system (v4.0)
   ========================================================= */

/* ---- logo lockup (M mark + wordmark) ---- */
.logo-img {
  height: 34px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;          /* drops the white plate on light surfaces */
}
.footer .logo-img { height: 38px; }
.logo-word {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.logo-word b {
  font-weight: 800;
  margin-left: 3px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- HERO 3D logo stage ---- */
.visual-frame--logo {
  background: radial-gradient(120% 120% at 50% 14%, #0d1733 0%, #060912 72%);
  box-shadow:
    var(--shadow),
    0 50px 130px -45px rgba(79, 123, 255, 0.65),
    inset 0 0 0 1px rgba(123, 156, 255, 0.14);
}
.visual-frame--logo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(123, 156, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 156, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 35%, transparent 76%);
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 35%, transparent 76%);
}
.visual-frame--logo #hero-canvas { position: relative; z-index: 1; }
.visual-frame--logo .visual-meta {
  z-index: 2;
  background: rgba(8, 12, 28, 0.66);
  border-color: rgba(123, 156, 255, 0.28);
  color: #cfdcff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.visual-meta--br {
  top: auto; left: auto;
  bottom: 18px; right: 18px;
  font-family: 'Inter', monospace;
  letter-spacing: 0.14em;
  font-size: 10.5px;
}

/* =========================================================
   PAGE TRANSITION OVERLAY
   ========================================================= */
.pt {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(130% 130% at 50% 38%, #0a1330 0%, #05070f 72%);
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.pt.pt-out    { transform: translateY(-100%); }
.pt.pt-hidden { display: none; }
.pt.pt-leave  { animation: ptCover 0.74s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
@keyframes ptCover { from { transform: translateY(100%); } to { transform: translateY(0); } }

.pt-grid {
  position: absolute;
  inset: -2px;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(123, 156, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 156, 255, 0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #000 30%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 50% 45%, #000 30%, transparent 72%);
  animation: ptGrid 6s linear infinite;
}
@keyframes ptGrid { to { background-position: 0 46px, 46px 0; } }

.pt-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  animation: ptCoreIn 0.85s ease both;
}
@keyframes ptCoreIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.pt-logo {
  width: 92px;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(79, 123, 255, 0.65));
  animation: ptFloat 3.4s ease-in-out infinite;
}
@keyframes ptFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(1.5deg); }
}
.pt-word {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  color: #eaf0ff;
}
.pt-word span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.pt-track {
  width: 190px;
  height: 2px;
  border-radius: 2px;
  background: rgba(123, 156, 255, 0.18);
  overflow: hidden;
}
.pt-track i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: var(--brand-grad);
  animation: ptShim 1s ease-in-out infinite;
}
@keyframes ptShim {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(330%); }
}
.pt-tag {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgba(180, 198, 255, 0.6);
}
.pt-scan {
  position: absolute;
  left: 0; right: 0;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(79, 123, 255, 0.14) 50%, transparent);
  animation: ptScan 2.4s linear infinite;
}
@keyframes ptScan {
  0%   { transform: translateY(-140px); }
  100% { transform: translateY(100vh); }
}

/* top progress bar */
#pt-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 99991;
  background: var(--brand-grad);
  box-shadow: 0 0 14px rgba(79, 123, 255, 0.8);
  opacity: 0;
}
#pt-bar.pt-bar-run { opacity: 1; animation: ptBar 0.74s ease forwards; }
@keyframes ptBar { from { width: 0; } to { width: 100%; } }

@media (max-width: 600px) {
  .pt-logo { width: 74px; }
  .pt-word { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt, .pt-core, .pt-logo, .pt-scan, .pt-grid, .pt-track i, #pt-bar {
    animation: none !important;
    transition: none !important;
  }
}
