/* =========================================================
   Yantra Labs — global stylesheet
   Light monochrome theme · white, graphite, black
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f6f6f4;
  --bg-3: #eeeeeb;
  --panel: #ffffff;
  --panel-2: #fafaf9;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.15);
  --text: #0b0b0c;
  --text-2: #4a4a50;
  --muted: #8a8a90;
  --accent: #0b0b0c;
  --accent-2: #3a3a3e;
  --accent-glow: rgba(0, 0, 0, 0.18);
  --amber: #0b0b0c;
  --amber-2: #4a4a50;
  --green: #1f9d61;
  --studio: #f7f7f7;
  --whatsapp: #25d366;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

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

/* faint engineering grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--text-2); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: #ffffff; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }

.grad {
  background: linear-gradient(100deg, #0b0b0c 0%, #6b6b72 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.eyebrow--amber { color: var(--amber-2); }
.eyebrow--amber::before { background: var(--amber); box-shadow: 0 0 12px var(--amber); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 62ch; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #ffffff; box-shadow: 0 0 0 0 var(--accent-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -6px var(--accent-glow); }
.btn--amber { background: var(--amber); color: #ffffff; }
.btn--amber:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -6px rgba(0, 0, 0, 0.45); }
.btn--ghost { background: var(--panel-2); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); background: rgba(0, 0, 0, 0.08); }
.btn--wa { background: var(--whatsapp); color: #032412; }
.btn--sm { padding: 10px 16px; font-size: 0.85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }
.logo-word { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; font-size: 1.15rem; color: var(--text); }
.logo-word b { color: var(--muted); font-weight: 700; }
.logo-sub { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-2);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links button:hover, .nav-links a.active { color: var(--text); background: var(--panel-2); }
.nav-links .has-menu > button::after { content: " ▾"; font-size: 0.7em; opacity: 0.6; }
.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -10px;
  width: 340px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s var(--ease);
}
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; }
.menu img { width: 56px; height: 56px; border-radius: 10px; background: var(--studio); object-fit: contain; flex: none; }
.menu--wide { width: 660px; left: -200px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu--wide .menu-all { grid-column: 1 / -1; justify-content: center; font-weight: 600; font-size: 0.9rem; color: var(--text); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 4px; }
@media (max-width: 980px) { .menu--wide { width: auto; left: auto; display: block; } }
.menu strong { display: block; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.menu span { font-size: 0.8rem; color: var(--muted); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: 0.3s; }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 28px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow: auto;
  }
  .nav-open .nav-links { transform: none; }
  .nav-links a, .nav-links button { padding: 14px; font-size: 1.05rem; text-align: left; width: 100%; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; width: auto; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 8px; }
  .nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 980px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero canvas#mapCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 15% 50%, rgba(255, 255, 255, 0.92), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--bg));
  z-index: 1;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 14ch; margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; max-width: 46ch; }
.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}
.hud span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.hud span i { font-style: normal; color: var(--green); margin-right: 6px; }
.hero-telemetry {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
  pointer-events: none;
}
.hero-telemetry b { color: var(--accent); font-weight: 500; }
/* phones & tablets: the map gets its own panel under the hero text */
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 48px; }
  .hero::after { display: none; }
  .hero .wrap { order: 1; }
  .hero canvas#mapCanvas {
    order: 2;
    position: relative;
    inset: auto;
    width: min(var(--wrap), 100% - 40px);
    height: clamp(230px, 62vw, 420px);
    margin: 36px auto 0;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--bg-2);
  }
  .hero-telemetry {
    order: 3;
    position: static;
    width: min(var(--wrap), 100% - 40px);
    margin: 12px auto 0;
    text-align: left;
    font-size: 0.68rem;
  }
  .hud { margin-top: 32px; }
}

/* page hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  top: -500px;
  right: -200px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), transparent 60%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 18ch; }
.crumbs { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 22px; letter-spacing: 0.06em; }
.crumbs a:hover { color: var(--accent); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split--rev > :first-child { order: 0; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.stat { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.stat .num small { font-size: 0.5em; color: var(--accent); margin-left: 4px; font-weight: 500; }
.stat .lbl { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 10px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat { border-bottom: 1px solid var(--line); } .stat:nth-child(2n) { border-right: 0; } .stat:last-child { grid-column: span 2; border-bottom: 0; } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
  overflow: hidden;
}
.card:hover { border-color: var(--line-2); }
a.card:hover { transform: translateY(-4px); border-color: rgba(0, 0, 0, 0.3); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.25); }
.card .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: var(--accent);
  margin-bottom: 20px;
}
.card .ico svg { width: 24px; height: 24px; }
.card .ico--amber { background: rgba(0, 0, 0, 0.1); border-color: rgba(0, 0, 0, 0.3); color: var(--amber-2); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Product showcase cards */
.product-card { padding: 0; display: flex; flex-direction: column; }
.product-card .studio { aspect-ratio: 4 / 3; }
.product-card .body { padding: 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product-card .more { margin-top: auto; color: var(--accent); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.product-card:hover .more svg { transform: translateX(4px); }
.more svg { width: 18px; height: 18px; transition: transform 0.25s; }

.studio {
  position: relative;
  background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, var(--studio) 60%);
  border-radius: calc(var(--radius) - 1px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.studio > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
a.card:hover .studio img { transform: scale(1.04); }
.studio .badge-float {
  border: 1px solid var(--line-2);
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent-2);
  letter-spacing: 0.08em;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  letter-spacing: 0.03em;
}
.tag--accent { color: var(--accent-2); border-color: rgba(0, 0, 0, 0.3); background: rgba(0, 0, 0, 0.07); }
.tag--amber { color: var(--amber-2); border-color: rgba(0, 0, 0, 0.3); background: rgba(0, 0, 0, 0.07); }

/* ---------- Steps / pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.pipeline::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--amber), transparent);
  opacity: 0.6;
}
.pipe { padding: 0 18px; text-align: center; position: relative; }
.pipe .node {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--accent);
  position: relative;
  box-shadow: 0 0 0 8px var(--bg);
}
.pipe .node svg { width: 28px; height: 28px; }
.pipe .node::after {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -8px;
  right: -12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--amber);
  color: #ffffff;
  font-weight: 700;
}
.pipe h3 { font-size: 1.15rem; }
.pipe p { font-size: 0.92rem; }
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .pipeline::before { display: none; }
}
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }

/* ---------- Photo cards & compact product cards ---------- */
.studio--photo > img { object-fit: cover; }
.product-card.mini .studio { aspect-ratio: 1; }
.product-card.mini .body { padding: 20px 22px 24px; gap: 8px; }
.product-card.mini h3 { font-size: 1.15rem; margin: 0; }
.product-card.mini p { font-size: 0.88rem; }
@media (max-width: 640px) {
  .grid.grid-4:has(> .product-card.mini) { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card.mini .body { padding: 14px 14px 16px; }
  .product-card.mini h3 { font-size: 1rem; }
  .product-card.mini p, .product-card.mini .tags { display: none; }
}
.cat-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 72px 0 24px; }
.cat-head:first-of-type { margin-top: 0; }
.cat-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; }
.cat-head p { margin: 0; max-width: 52ch; }
.duo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.duo + .duo { margin-top: 96px; }
.duo--rev > :first-child { order: 2; }
@media (max-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr); } .duo--rev > :first-child { order: 0; } }
.spec-mini { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 8px; }
.spec-mini th, .spec-mini td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-mini th { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; width: 42%; padding-right: 12px; }
.spec-mini td { font-family: var(--font-mono); color: var(--text); }
.note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* ---------- Spec tiles (under the hood) ---------- */
.spec-tile { display: flex; flex-direction: column; gap: 10px; }
.spec-tile .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--accent); }
.spec-tile b { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.spec-tile::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.6; }

/* ---------- Industry tiles ---------- */
.industry-tile { min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.industry-tile .k { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.industry-tile::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
}
.industry-tile:hover::after { opacity: 1; }

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 24px 0; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.feature-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(0, 0, 0, 0.3);
}
.feature-list strong { color: var(--text); }

/* ---------- Spec tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 640px; }
table.spec th, table.spec td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.spec thead th { font-family: var(--font-display); font-size: 1rem; color: var(--text); background: var(--panel-2); position: sticky; top: 0; }
table.spec tbody th { font-weight: 500; color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; width: 34%; }
table.spec td { color: var(--text); font-family: var(--font-mono); font-size: 0.88rem; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
table.spec tr.group th { background: rgba(0, 0, 0, 0.05); color: var(--accent); font-size: 0.72rem; letter-spacing: 0.16em; padding-block: 12px; }
table.spec tbody tr:hover td { background: rgba(0, 0, 0, 0.03); }

/* ---------- Model switcher ---------- */
.models { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.model-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.model-tabs button {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--text-2);
  cursor: pointer;
  transition: 0.2s;
}
.model-tabs button[aria-selected="true"] { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.model-stage { aspect-ratio: 1; border: 1px solid var(--line); }
.model-stage img { transition: opacity 0.35s, transform 0.5s var(--ease); }
.model-stage img.swap { opacity: 0; transform: translateY(10px) scale(0.98); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0; }
.kv div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.kv b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.kv span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } }

/* ---------- Hotspot diagram ---------- */
.hotspot-stage { position: relative; aspect-ratio: 1; }
.hotspot {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.6);
  animation: ping 2.2s infinite;
  z-index: 2;
  padding: 0;
}
.hotspot.active { background: var(--accent); animation: none; box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.3); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(0, 0, 0, 0); } }
.hotspot-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-2);
  z-index: 3;
}
.hotspot-info b { font-family: var(--font-display); color: var(--amber-2); display: block; font-size: 1.05rem; }
.hotspot-info span { font-size: 0.9rem; color: var(--text-2); }

/* ---------- Timeline steps (vertical) ---------- */
.vsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: v; }
.vsteps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: default;
  transition: border-color 0.25s, background 0.25s;
}
.vsteps li::before {
  counter-increment: v;
  content: counter(v);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--amber-2);
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.08);
}
.vsteps li:hover, .vsteps li.active { border-color: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.04); }
.vsteps h4 { margin: 0 0 4px; font-size: 1.05rem; }
.vsteps p { margin: 0; font-size: 0.92rem; }

/* ---------- Blog cards ---------- */
.post-card { padding: 0; display: flex; flex-direction: column; }
.post-card .cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.post-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.post-card p { font-size: 0.92rem; }
.post-meta { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.post-meta .cat { color: var(--accent); }
.post-meta .cat.news { color: var(--amber-2); }
.cover--art { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.25), transparent 55%), radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.22), transparent 55%), var(--bg-3); }
.cover--art svg { width: 70%; height: 70%; opacity: 0.9; }
.cover--studio { background: var(--studio); }
.cover--studio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
a.post-card:hover .cover img { transform: scale(1.05); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--text-2);
  cursor: pointer;
}
.filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }

.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; margin-bottom: 28px; }
.featured-post .cover { min-height: 340px; border-right: 1px solid var(--line); }
.featured-post .body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.featured-post h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; }
@media (max-width: 860px) { .featured-post { grid-template-columns: 1fr; } .featured-post .cover { border-right: 0; border-bottom: 1px solid var(--line); min-height: 240px; } .featured-post .body { padding: 28px; } }

/* News list */
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.news-item time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.news-item h3 { font-size: 1.15rem; margin: 0 0 6px; }
.news-item p { margin: 0; font-size: 0.93rem; }
@media (max-width: 700px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Article ---------- */
.article-hero { padding: calc(var(--nav-h) + 70px) 0 48px; position: relative; }
.article-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 22ch; }
.article-hero .lead { max-width: 68ch; }
.article-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 8px 0 0; }
.article-cover.studio { aspect-ratio: 21 / 9; }
.article-cover.studio img { object-fit: contain; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; padding: 56px 0 100px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); font-size: 0.87rem; }
.toc .eyebrow { font-size: 0.68rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; transition: 0.2s; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); }
.prose { max-width: 740px; font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 2.4em 0 0.6em; padding-top: 0.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .num { font-family: var(--font-mono); font-size: 0.5em; color: var(--amber-2); display: block; letter-spacing: 0.12em; margin-bottom: 10px; }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 1.25rem; }
.prose p, .prose li { color: var(--text-2); line-height: 1.8; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-top: 10px; }
.prose .table-wrap { margin: 1.6em 0; }
.prose table.spec { min-width: 520px; }
.callout {
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.02));
  border-radius: 14px;
  padding: 22px 24px;
  margin: 1.8em 0;
}
.callout--amber { border-color: rgba(0, 0, 0, 0.35); background: linear-gradient(135deg, rgba(0, 0, 0, 0.09), rgba(0, 0, 0, 0.02)); }
.callout .t { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.callout--amber .t { color: var(--amber-2); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.diagram { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 20px; margin: 2em 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.8em 0; }
.kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--panel); }
.kpis b { font-family: var(--font-display); font-size: 1.6rem; display: block; color: var(--text); line-height: 1.1; }
.kpis span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; }
.progress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--amber)); z-index: 200; width: 0; }
.author-box { display: flex; gap: 16px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 14px; margin-top: 3em; background: var(--panel); }
.author-box .av { width: 52px; height: 52px; border-radius: 12px; background: var(--bg-3); display: grid; place-items: center; flex: none; }
.author-box .av svg { width: 30px; height: 30px; }
.author-box p { margin: 0; font-size: 0.9rem; }
@media (max-width: 980px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }
@media (max-width: 600px) { .kpis { grid-template-columns: 1fr; } }

/* ---------- Industry detail ---------- */
.industry-nav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.industry-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.industry-nav a { flex: none; font-family: var(--font-mono); font-size: 0.78rem; padding: 8px 14px; border-radius: 999px; color: var(--text-2); border: 1px solid transparent; }
.industry-nav a:hover, .industry-nav a.on { border-color: var(--line-2); color: var(--text); background: var(--panel-2); }
.industry { padding: 96px 0; border-bottom: 1px solid var(--line); }
.industry-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 40px; align-items: end; }
.industry-head .k { font-family: var(--font-mono); color: var(--amber-2); font-size: 0.8rem; letter-spacing: 0.12em; }
@media (max-width: 860px) { .industry-head { grid-template-columns: 1fr; gap: 12px; } }
.pain-gain { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 20px; }
.pain-gain h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.pain-gain .pain h4 { color: var(--amber-2); }
.pain-gain .gain h4 { color: var(--accent); }
.pain-gain ul { margin: 0; padding-left: 1.1em; }
.pain-gain li { margin-bottom: 10px; color: var(--text-2); font-size: 0.95rem; }
.pain-gain .pick { display: flex; flex-direction: column; gap: 12px; }
.pain-gain .pick .studio { aspect-ratio: 4 / 3; border-radius: 12px; }
.pain-gain .pick h4 { color: var(--text); margin: 4px 0 0; }
@media (max-width: 960px) { .pain-gain { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band .contact-lines { display: grid; gap: 12px; }
.cta-band .contact-lines a { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.5); transition: 0.25s; }
.cta-band .contact-lines a:hover { border-color: var(--accent); transform: translateX(4px); }
.cta-band .contact-lines svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.cta-band .contact-lines small { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12); }
.field select option { background: var(--bg-2); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; font-size: 0.9rem; color: var(--text-2); text-transform: none; letter-spacing: 0; font-family: var(--font-body); margin: 0; }
.checks input { accent-color: var(--accent); width: auto; }
.checks label:has(input:checked) { border-color: var(--accent); color: var(--text); background: rgba(0, 0, 0, 0.07); }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(31, 157, 97, 0.4); background: rgba(31, 157, 97, 0.08); color: var(--green); font-size: 0.92rem; }
.form-status.show { display: block; }

.office { padding: 24px; }
.office h4 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.office h4 .tag { font-size: 0.62rem; padding: 3px 7px; }
.office p { font-size: 0.9rem; margin: 0; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 360px; filter: grayscale(1); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; background: var(--bg-2); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-grid h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-2); font-size: 0.93rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { font-size: 0.9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); font-family: var(--font-mono); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text-2); }
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid > :first-child { grid-column: auto; } }

/* ---------- Floating contact rail ---------- */
.contact-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rail-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
  padding: 0;
}
.rail-btn svg { width: 22px; height: 22px; }
.rail-btn:hover { transform: translateX(-4px); }
.rail-btn .lbl {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(8px, -50%);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line-2);
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s var(--ease);
  font-family: var(--font-body);
}
.rail-btn:hover .lbl, .rail-btn:focus-visible .lbl { opacity: 1; transform: translate(0, -50%); }
.rail-btn--wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.rail-btn { box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.25); }
.rail-btn--call:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.rail-btn--mail:hover { background: var(--amber); color: #ffffff; border-color: var(--amber); }
.rail-btn--ai { background: #0b0b0c; border: 0; color: #ffffff; }
.rail-btn--ai::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg);
}

@media (max-width: 700px) {
  .contact-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    gap: 8px;
  }
  .rail-btn { flex: 1; width: auto; height: 46px; }
  .rail-btn:hover { transform: none; }
  .rail-btn .lbl { display: none; }
  body { padding-bottom: 70px; }
}

/* ---------- Chat widget (popup) ---------- */
.chat-pop {
  position: fixed;
  right: 84px;
  bottom: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  z-index: 95;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: 0.3s var(--ease);
}
.chat-pop.open { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 700px) { .chat-pop { right: 16px; left: 16px; width: auto; bottom: 82px; height: calc(100vh - 160px); } }

.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent); }
.chat-head .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #0b0b0c; color: #ffffff; flex: none; }
.chat-head .av svg { width: 22px; height: 22px; }
.chat-head strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.chat-head small { font-family: var(--font-mono); font-size: 0.68rem; color: var(--green); }
.chat-head .x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.chat-head .x:hover { color: var(--text); background: var(--panel-2); }
.chat-head .x svg { width: 18px; height: 18px; display: block; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; min-height: 0; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.55; animation: msgIn 0.3s var(--ease); }
.msg p { margin: 0 0 0.5em; color: inherit; }
.msg p:last-child { margin: 0; }
.msg ul { margin: 0.3em 0; padding-left: 1.1em; }
.msg a { color: var(--accent); text-decoration: underline; }
.msg--bot { background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--user { background: var(--accent); color: #ffffff; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.msg--typing { display: flex; gap: 4px; padding: 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.chips button { font-size: 0.78rem; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; font-family: inherit; }
.chips button:hover { border-color: var(--accent); color: var(--text); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.7); color: var(--text); font: inherit; font-size: 0.9rem; }
.chat-form input:focus { outline: none; border-color: var(--accent); }
.chat-form button { width: 46px; border-radius: 12px; border: 0; background: var(--accent); color: #ffffff; cursor: pointer; display: grid; place-items: center; }
.chat-form button svg { width: 18px; height: 18px; }
.chat-foot { display: flex; justify-content: space-between; gap: 8px; padding: 0 14px 12px; font-size: 0.7rem; color: var(--muted); font-family: var(--font-mono); }
.chat-foot button { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.chat-foot button:hover { color: var(--accent); }

/* Full-page assistant */
.assistant-shell { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: stretch; }
.assistant-shell .chat { border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg-2); height: 640px; overflow: hidden; }
.assistant-side { display: grid; gap: 16px; align-content: start; }
.transcript-box { max-height: 300px; overflow: auto; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); white-space: pre-wrap; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 12px 0; }
@media (max-width: 960px) { .assistant-shell { grid-template-columns: 1fr; } .assistant-shell .chat { height: 560px; } }

.arch { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: stretch; }
.arch div { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--panel); font-size: 0.88rem; color: var(--text-2); position: relative; }
.arch b { display: block; color: var(--text); font-family: var(--font-display); margin-bottom: 6px; }
.arch div:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translate(50%, -50%); color: var(--accent); z-index: 1; }
@media (max-width: 900px) { .arch { grid-template-columns: 1fr; } .arch div:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -14px; transform: translateX(50%); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.3rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Utility */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
