/* LatiTech Showcase - shared design system for the 4 enterprise demos.
   Each demo sets its brand on <html class="b-...">. Light/dark: data-theme on <html>. */

:root {
  --bg: #fbfbfc; --bg-2: #f3f4f6; --surface: #ffffff; --surface-2: #f7f7f9;
  --ink: #0b0c0f; --ink-2: #5b5f6a; --ink-3: #8a8f99; --line: #e4e5e9; --line-2: #d4d6dc;
  --accent: #5b5bd6; --accent-2: #8e8cf3; --accent-ink: #ffffff; --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --ok: #18794e; --warn: #a35200; --err: #cd2b31; --info: var(--accent);
  --shadow: 0 1px 2px rgba(16,18,27,.04), 0 8px 24px rgba(16,18,27,.06);
  --shadow-lg: 0 24px 60px rgba(16,18,27,.14);
  --radius: 20px; --radius-sm: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: var(--font);
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090b; --bg-2: #0f1114; --surface: #131519; --surface-2: #1a1d22;
    --ink: #f4f5f7; --ink-2: #a3a8b3; --ink-3: #747a86; --line: #24272e; --line-2: #31353d;
    --ok: #3dd68c; --warn: #ffb224; --err: #ff6369;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08090b; --bg-2: #0f1114; --surface: #131519; --surface-2: #1a1d22;
  --ink: #f4f5f7; --ink-2: #a3a8b3; --ink-3: #747a86; --line: #24272e; --line-2: #31353d;
  --ok: #3dd68c; --warn: #ffb224; --err: #ff6369;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent-soft); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 620px) { .wrap { width: calc(100% - 32px); } }

/* ---------- LatiTech demo strip ---------- */
.sc-strip {
  background: var(--ink); color: var(--bg); font-size: .8rem;
  padding: 7px 0;
}
.sc-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-strip a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.sc-strip a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sc-strip svg { width: 14px; height: 14px; }
.sc-strip span { opacity: .75; }

/* ---------- Navigation ---------- */
.sc-nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.sc-nav.scrolled { border-bottom-color: var(--line); }
.sc-nav .wrap { height: 64px; display: flex; align-items: center; gap: 20px; }
.sc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; flex: none; }
.sc-brand svg { width: 30px; height: 30px; }
.sc-links { display: flex; gap: 26px; list-style: none; padding: 0; margin-left: 18px; }
.sc-links a { text-decoration: none; font-size: .9rem; color: var(--ink-2); transition: color .2s; }
.sc-links a:hover, .sc-links a[aria-current="page"] { color: var(--ink); }
.sc-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-content: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background .2s, transform .15s var(--ease), border-color .2s;
}
.icon-btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-btn {
  height: 38px; padding: 0 14px; border-radius: 980px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .2s, transform .15s var(--ease);
}
.lang-btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.lang-btn svg { width: 16px; height: 16px; opacity: .7; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .sc-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px; margin: 0; padding: 8px 24px 18px;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .sc-links.open { display: flex; }
  .sc-links li + li { border-top: 1px solid var(--line); }
  .sc-links a { display: block; padding: 14px 0; font-size: 1.1rem; color: var(--ink); }
  .menu-toggle { display: grid; }
  .sc-nav .btn.nav-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 980px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--line-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-light { background: #fff; color: #0b0c0f; }
.btn-light:hover { transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); }
.btn-sm { height: 34px; padding: 0 14px; font-size: .84rem; }
.btn[disabled], .btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }

/* ---------- Typography ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.6rem, 6.4vw, 5.2rem); text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(1.9rem, 4vw, 3rem); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; font-size: 1.25rem; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.grad-text { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--bg-2); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .h2 { margin-top: 14px; }
.sec-head .lead { margin-top: 16px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.sec-head.center .eyebrow::before { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-photo { min-height: min(92svh, 860px); display: flex; align-items: flex-end; color: #fff; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,0) 80%), linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.7) 100%); }
.hero-photo .wrap { position: relative; z-index: 1; padding: 120px 0 clamp(48px, 8vw, 96px); }
.hero-photo .lead { color: rgba(255,255,255,.86); }
.hero-photo .eyebrow { color: #fff; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { margin-top: clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 18px 44px; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; }
.hero-stats span { font-size: .85rem; opacity: .8; }

.hero-mesh { padding: clamp(64px, 9vw, 112px) 0 0; }
.hero-mesh::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 20%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(35% 45% at 80% 10%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 70%),
    radial-gradient(30% 40% at 60% 60%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-mesh .hero-copy { text-align: center; max-width: 900px; margin-inline: auto; }
.hero-mesh .lead { margin: 22px auto 0; }
.hero-mesh .hero-cta { justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 980px;
  border: 1px solid var(--line); background: var(--surface); font-size: .82rem; color: var(--ink-2); margin-bottom: 22px;
}
.hero-badge b { background: var(--accent); color: var(--accent-ink); border-radius: 980px; padding: 2px 8px; font-size: .72rem; }
.hero-shot { margin-top: clamp(40px, 6vw, 72px); position: relative; }
.hero-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 10%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.card .ico svg { width: 22px; height: 22px; }
.card p { color: var(--ink-2); margin-top: 8px; font-size: .95rem; }
.pain { font-size: .8rem; font-weight: 600; color: var(--err); display: block; margin-bottom: 6px; }

/* ---------- App window ---------- */
.app {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.app-bar i:nth-child(1) { background: #ff5f57; } .app-bar i:nth-child(2) { background: #febc2e; } .app-bar i:nth-child(3) { background: #28c840; }
.app-bar .url { margin-left: 12px; flex: 1; max-width: 420px; height: 26px; border-radius: 8px; background: var(--bg-2); color: var(--ink-3); font-size: .76rem; display: flex; align-items: center; padding: 0 10px; gap: 6px; overflow: hidden; white-space: nowrap; }
.app-bar .url svg { width: 12px; height: 12px; flex: none; }
.app-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 560px; }
.app-side { border-right: 1px solid var(--line); padding: 16px 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.app-side .side-label { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 14px 10px 6px; }
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent;
  font-size: .88rem; color: var(--ink-2); cursor: pointer; text-align: left; width: 100%; transition: background .15s, color .15s;
}
.side-item svg { width: 17px; height: 17px; flex: none; }
.side-item:hover { background: var(--bg-2); color: var(--ink); }
.side-item[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-item .count { margin-left: auto; font-size: .72rem; background: var(--accent); color: var(--accent-ink); border-radius: 980px; padding: 1px 7px; }
.app-main { padding: 22px; min-width: 0; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.app-head h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.02em; }
@media (max-width: 900px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; gap: 4px; }
  .app-side .side-label { display: none; }
  .side-item { width: auto; flex: none; }
  .app-main { padding: 16px; }
}

/* ---------- Data UI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); min-width: 0; }
.kpi .l { font-size: .78rem; color: var(--ink-2); font-weight: 500; }
.kpi .v { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: .76rem; color: var(--ink-2); margin-top: 4px; }
.kpi .d b { color: var(--ink); }
.up::before { content: "▲ "; color: var(--ok); font-size: .7em; }
.down::before { content: "▼ "; color: var(--err); font-size: .7em; }

.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 18px; min-width: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-h h4 { font-size: .98rem; font-weight: 650; letter-spacing: -.01em; }
.panel-h p { font-size: .8rem; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .sku { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 980px; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.badge.err { color: var(--err); background: color-mix(in srgb, var(--err) 12%, transparent); }
.badge.info { color: var(--accent); background: var(--accent-soft); }
.badge.plain { color: var(--ink-2); background: var(--bg-2); }
.badge.plain::before { display: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 980px; border: 1px solid var(--line); background: var(--surface);
  font-size: .85rem; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s var(--ease);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 980px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 980px; font-size: .82rem; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.field { display: grid; gap: 6px; font-size: .84rem; font-weight: 500; }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-size: .92rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 36px; }

.bar-track { height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--accent); transition: width .8s var(--ease); }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-content: center; font-size: .78rem; font-weight: 700; color: #fff; flex: none; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(5,6,8,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; opacity: 0; animation: fadeIn .2s var(--ease) forwards; }
.modal { width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 24px; transform: translateY(12px) scale(.98); animation: popIn .28s var(--ease) forwards; }
.modal-h { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.modal-h h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.02em; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes popIn { to { transform: none; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; translate: -50% 0; bottom: 24px; z-index: 95; display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-size: .88rem; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; animation: toastIn .3s var(--ease); }
.toast svg { width: 16px; height: 16px; color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Bay Area map ---------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } }
.bay-map { position: relative; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--map-land, var(--surface-2)); box-shadow: var(--shadow); }
.bay-map svg { width: 100%; height: auto; }
.bay-map .water { fill: var(--map-water, color-mix(in srgb, var(--accent) 10%, var(--bg-2))); }
.bay-map .shore { fill: none; stroke: color-mix(in srgb, var(--accent) 35%, var(--line)); stroke-width: 1.2; }
.bay-map .grid-l { stroke: var(--line); stroke-width: .6; opacity: .6; }
.bay-map .city { font-family: var(--font); font-size: 11px; fill: var(--ink-2); font-weight: 500; }
.bay-map .water-l { font-family: var(--font); font-size: 10px; letter-spacing: .2em; fill: color-mix(in srgb, var(--accent) 55%, var(--ink-3)); font-style: italic; }
.bay-map .range { fill: var(--accent); opacity: .08; }
.bay-map .pin { cursor: pointer; }
.bay-map .route { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 8 8; stroke-linecap: round; animation: dash 1.2s linear infinite; }
.bay-map .truck circle { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.bay-map .truck path { fill: #fff; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.bay-map .pin circle.dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; transition: r .2s; }
.bay-map .pin circle.halo { fill: var(--accent); opacity: .25; transform-box: fill-box; transform-origin: center; animation: halo 2.4s var(--ease) infinite; }
.bay-map .pin.active circle.dot { r: 9; }
.bay-map .pin text { font-family: var(--font); font-size: 11.5px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
@keyframes halo { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bay-map .pin circle.halo { animation: none; } }
.map-legend { position: absolute; left: 12px; bottom: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: .74rem; color: var(--ink-2); }
.loc-list { display: grid; gap: 10px; }
.loc {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; width: 100%;
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.loc:hover { transform: translateX(3px); }
.loc[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.loc .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; }
.loc strong { display: block; font-size: .95rem; }
.loc span { font-size: .8rem; color: var(--ink-2); }

/* ---------- Gallery teaser ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 12px; }
.mosaic a { position: relative; overflow: hidden; border-radius: 16px; display: block; background: var(--bg-2); }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(4) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic a::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: .82rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.mosaic a:hover::after, .mosaic a:focus-visible::after { opacity: 1; transform: none; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; } .mosaic a:nth-child(4) { grid-row: span 1; } }

/* ---------- Full-page gallery ---------- */
.gal-page { background: #000; color: #fff; }
.gal-page .sc-nav { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.55), transparent); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.gal-page .sc-nav .sc-links a { color: rgba(255,255,255,.8); }
.gal-page .sc-nav .sc-links a:hover, .gal-page .sc-nav .sc-links a[aria-current="page"] { color: #fff; }
.gal-page .icon-btn, .gal-page .lang-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.gal-page .sc-strip { position: fixed; bottom: 0; left: 0; right: 0; z-index: 61; background: rgba(0,0,0,.6); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gal-snap { height: 100svh; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.gal-slide { position: relative; height: 100svh; scroll-snap-align: start; overflow: hidden; display: flex; align-items: flex-end; }
.gal-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.gal-slide.in img { transform: scale(1); }
.gal-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 55%, rgba(0,0,0,.75)); }
.gal-cap { position: relative; z-index: 1; padding: 0 0 clamp(80px, 12vh, 120px); width: min(1200px, 100% - 48px); margin-inline: auto; opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) .2s, transform .8s var(--ease) .2s; }
.gal-slide.in .gal-cap { opacity: 1; transform: none; }
.gal-cap .idx { font-family: var(--font-mono); font-size: .8rem; opacity: .7; letter-spacing: .1em; }
.gal-cap h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.03em; line-height: 1.05; margin-top: 10px; max-width: 16em; text-wrap: balance; }
.gal-cap p { margin-top: 12px; max-width: 34em; color: rgba(255,255,255,.85); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.gal-dots { position: fixed; right: 20px; top: 50%; translate: 0 -50%; z-index: 62; display: grid; gap: 10px; }
.gal-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: transform .2s, background .2s; }
.gal-dots button[aria-current="true"] { background: #fff; transform: scale(1.4); }
.gal-end { height: 100svh; scroll-snap-align: start; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--accent) 40%, #000), #000); }
.gal-end .h2 { color: #fff; }
.gal-end p { color: rgba(255,255,255,.8); margin: 14px auto 0; max-width: 32em; }
.gal-end .hero-cta { justify-content: center; }
@media (max-width: 620px) { .gal-dots { right: 10px; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 7vw, 80px); color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000)); }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 70%, transparent), transparent); opacity: .7; }
.cta-band > * { position: relative; }
.cta-band .h2 { max-width: 14em; }
.cta-band p { margin-top: 14px; max-width: 34em; color: rgba(255,255,255,.88); font-size: 1.08rem; }

/* ---------- Footer ---------- */
.sc-foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .85rem; color: var(--ink-2); }
.sc-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.sc-foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
.sc-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Floating live chat ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80;
  height: 54px; padding: 0 20px 0 16px; border-radius: 980px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .92rem;
  display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .2s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab .ping { position: absolute; top: 6px; left: 34px; width: 10px; height: 10px; border-radius: 50%; background: #3dd68c; border: 2px solid var(--accent); }
.chat-panel {
  position: fixed; right: 20px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 81;
  width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100svh - 120px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; animation: chatIn .28s var(--ease);
}
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); color: #fff; }
.chat-h .avatar { background: rgba(255,255,255,.2); }
.chat-h strong { display: block; font-size: .95rem; }
.chat-h .online { font-size: .76rem; opacity: .85; display: inline-flex; align-items: center; gap: 6px; }
.chat-h .online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3dd68c; }
.chat-h .icon-btn { margin-left: auto; background: rgba(255,255,255,.14); border-color: transparent; color: #fff; width: 32px; height: 32px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: .88rem; line-height: 1.45; animation: msgIn .25s var(--ease); }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; }
.msg.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px 0; background: var(--bg); }
.chat-quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 980px; padding: 5px 11px; font-size: .78rem; cursor: pointer; color: var(--accent); font-weight: 500; }
.chat-quick button:hover { border-color: var(--accent); }
.chat-f { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-f input { flex: 1; height: 40px; border-radius: 980px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; font-size: .88rem; }
.chat-f input:focus { outline: none; border-color: var(--accent); }
.chat-f button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-content: center; }
.chat-f button svg { width: 18px; height: 18px; }
.chat-note { font-size: .68rem; color: var(--ink-3); text-align: center; padding: 0 12px 10px; background: var(--surface); }
@media (max-width: 520px) { .chat-fab .lbl { display: none; } .chat-fab { padding: 0 16px; } }

/* ---------- WhatsApp float ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-content: center;
  box-shadow: 0 12px 30px rgba(37,211,102,.45); text-decoration: none; transition: transform .2s var(--ease);
}
.wa-fab:hover { transform: translateY(-2px) scale(1.04); }
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: halo 2.6s var(--ease) infinite; }
.wa-bubble {
  position: fixed; right: 92px; bottom: calc(30px + env(safe-area-inset-bottom)); z-index: 80;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px;
  padding: 10px 14px; font-size: .84rem; box-shadow: var(--shadow-lg); max-width: 240px;
  animation: msgIn .4s var(--ease); display: flex; gap: 10px; align-items: start;
}
.wa-bubble[hidden] { display: none; }
.wa-bubble b { display: block; font-size: .8rem; color: #128c4b; }
.wa-bubble button { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0; }
@media (prefers-reduced-motion: reduce) { .wa-fab::before { animation: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo > img, .gal-slide img { animation: none; transform: none; transition: none; }
  .gal-cap { opacity: 1; transform: none; transition: none; }
}

/* ---------- Brands ---------- */
.b-inventra { --accent: #6d4aff; --accent-2: #22c3e6; --font-display: 'Space Grotesk', var(--font); }
.b-curalia { --accent: #0b8f7f; --accent-2: #5cc8b0; --font-display: 'Plus Jakarta Sans', var(--font); --radius: 24px; }
.b-redwood { --accent: #2f6b4f; --accent-2: #c58b4c; --font-display: 'Fraunces', Georgia, serif; --font: 'Inter', -apple-system, sans-serif; --bg: #f7f4ee; --bg-2: #efeae0; --surface: #fffdf9; --surface-2: #f7f3eb; --line: #e3dccd; --line-2: #d3c9b5; --ink: #1c211d; --ink-2: #5d6359; }
.b-forgepoint { --accent: #e8590c; --accent-2: #fab005; --font-display: 'IBM Plex Sans', var(--font); --font-mono: 'IBM Plex Mono', ui-monospace, monospace; --radius: 14px; --radius-sm: 8px; }
@media (prefers-color-scheme: dark) {
  .b-inventra:not([data-theme="light"]) { --accent: #8b6cff; }
  .b-curalia:not([data-theme="light"]) { --accent: #2bb8a3; }
  .b-redwood:not([data-theme="light"]) { --accent: #5fae85; --bg: #0c120e; --bg-2: #121a15; --surface: #16201a; --surface-2: #1b261f; --line: #26332b; --line-2: #34443a; --ink: #eef1ea; --ink-2: #a6b0a3; }
  .b-forgepoint:not([data-theme="light"]) { --accent: #ff7a2f; }
}
.b-inventra[data-theme="dark"] { --accent: #8b6cff; }
.b-curalia[data-theme="dark"] { --accent: #2bb8a3; }
.b-redwood[data-theme="dark"] { --accent: #5fae85; --bg: #0c120e; --bg-2: #121a15; --surface: #16201a; --surface-2: #1b261f; --line: #26332b; --line-2: #34443a; --ink: #eef1ea; --ink-2: #a6b0a3; }
.b-forgepoint[data-theme="dark"] { --accent: #ff7a2f; }
.b-redwood .btn-primary { --accent-ink: #fff; }
.b-forgepoint .btn, .b-forgepoint .chip, .b-forgepoint .seg, .b-forgepoint .seg button, .b-forgepoint .badge { border-radius: 8px; }
