/*==============================================================
  Scenes: Apple-style product storytelling (prototype)
  - Neutral company frame (black / off-white)
  - One "world" per product: .w-eco (Sustainability), .w-vela, .w-com
  - Live HTML product mocks (.mk-*) that animate in scenes.js
==============================================================*/

:root {
  --sc-black: #000000;
  --sc-gray: #f5f5f7;
  --sc-ink: #1d1d1f;
  --sc-mute: #86868b;

  /* Sustainability: forest + leaf */
  --eco-bg: #0b2215;
  --eco-bg-2: #12301f;
  --eco-line: rgba(220, 240, 210, 0.12);
  --eco-fg: #eef5e8;
  --eco-fg-2: rgba(238, 245, 232, 0.62);
  --eco-accent: #8fdc5c;
  --eco-sand: #e6dcc1;

  /* Vela: midnight + electric blue to teal */
  --vela-bg: #060a17;
  --vela-bg-2: #0c1328;
  --vela-line: rgba(160, 180, 255, 0.14);
  --vela-fg: #eef1fb;
  --vela-fg-2: rgba(238, 241, 251, 0.6);
  --vela-blue: #5b8cff;
  --vela-teal: #5ee6d6;
  --vela-grad: linear-gradient(90deg, #5b8cff 0%, #5ee6d6 100%);

  /* Commity: white + emerald */
  --com-bg: #ffffff;
  --com-bg-2: #f2f5f3;
  --com-line: rgba(10, 20, 15, 0.1);
  --com-fg: #0b0d0c;
  --com-fg-2: #5f6763;
  --com-green: #10b981;
  --com-green-dk: #047857;
}

body.sc { background: var(--sc-black); }
body.sc .site-footer { background: var(--sc-black); border-top-color: rgba(255, 255, 255, 0.08); }

/* ── Worlds ── */
.w-dark { background: var(--sc-black); color: #f5f5f7; --fg: #f5f5f7; --fg-2: var(--sc-mute); --accent: #f5f5f7; --line: rgba(255,255,255,.12); }
.w-light { background: var(--sc-gray); color: var(--sc-ink); --fg: var(--sc-ink); --fg-2: #6e6e73; --accent: var(--sc-ink); --line: rgba(0,0,0,.1); }
.w-eco  { background: var(--eco-bg);  color: var(--eco-fg);  --fg: var(--eco-fg);  --fg-2: var(--eco-fg-2);  --accent: var(--eco-accent); --line: var(--eco-line); }
.w-vela { background: var(--vela-bg); color: var(--vela-fg); --fg: var(--vela-fg); --fg-2: var(--vela-fg-2); --accent: var(--vela-teal); --line: var(--vela-line); }
.w-com  { background: var(--com-bg);  color: var(--com-fg);  --fg: var(--com-fg);  --fg-2: var(--com-fg-2);  --accent: var(--com-green-dk); --line: var(--com-line); }

/* ── Type ── */
.sc-mega {
  font-size: clamp(64px, 11.5vw, 176px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.sc-title {
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.sc-h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.038em;
  font-weight: 600;
}

.sc-sub {
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--fg-2);
}

.sc-grad {
  background: var(--vela-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sc-center { text-align: center; }
.sc-center .sc-sub { margin-left: auto; margin-right: auto; }

/* product name lockup: mark + name */
.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.sc-mark { width: 30px; height: 30px; flex: none; }

/* Apple-style text links: "Learn more ›" */
.sc-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 21px);
}

.sc-links a {
  color: var(--accent);
  text-decoration: none;
}

.sc-links a::after { content: " ›"; transition: margin 0.2s ease; }
.sc-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.sc-pill {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  background: var(--accent);
  color: var(--btn-fg, #000) !important;
  text-decoration: none;
}

.sc-pill::after { content: none !important; }
.sc-pill:hover { text-decoration: none !important; filter: brightness(1.08); }
.w-com .sc-pill { --btn-fg: #fff; background: var(--com-fg); }
.w-light .sc-pill { --btn-fg: #fff; }
.w-vela .sc-pill { background: var(--vela-grad); --btn-fg: #04101c; }
.w-eco .sc-pill { --btn-fg: #08200f; }

/*--------------------------------------------------------------
  HOME: hero with three product mocks
--------------------------------------------------------------*/
.sc-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(52px + 10vh) 0 0;
  overflow: hidden;
}

.sc-hero__copy { position: relative; z-index: 2; }

.sc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--st-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 28px !important;
}

.sc-eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--eco-accent); }

/* three short lines, each animates in on its own */
.sc-hero__title {
  font-size: clamp(38px, 7.6vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.048em;
  font-weight: 600;
}

.sc-hero__title > span { display: block; }

.sc-hero__lead {
  margin: 28px auto 0 !important;
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--fg-2);
}

.sc-stage {
  position: relative;
  margin: 8vh auto 0;
  height: clamp(380px, 46vw, 600px);
  perspective: 1800px;
  perspective-origin: 50% 0%;
}

.sc-stage__row {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  transform: translateX(-50%);
  transform-style: preserve-3d;
}

.sc-stage__row > * {
  width: clamp(240px, 27vw, 380px);
  will-change: transform;
}

/*--------------------------------------------------------------
  Product mocks (live HTML, not screenshots)
--------------------------------------------------------------*/
.mk {
  border-radius: 22px;
  overflow: hidden;
  font-family: var(--st-sans);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  text-align: left;
}

.mk-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 500;
}

.mk-head .sc-mark { width: 20px; height: 20px; }
.mk-head span:last-child { margin-left: auto; font-size: 11px; font-weight: 500; opacity: 0.7; }

.mk-live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  vertical-align: middle;
  animation: mk-pulse 1.6s ease-in-out infinite;
}

@keyframes mk-pulse { 50% { opacity: 0.25; } }

/* ── eco: emissions dashboard ── */
.mk-eco { background: var(--eco-bg-2); color: var(--eco-fg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px var(--eco-line); }
.mk-eco .mk-head { border-bottom: 1px solid var(--eco-line); }
.mk-eco .mk-live { color: var(--eco-accent); }

.mk-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--eco-line);
}

.mk-kpis > div { background: var(--eco-bg-2); padding: 14px 18px 16px; }
.mk-kpis small { display: block; font-size: 11px; color: var(--eco-fg-2); }
.mk-kpis b { display: block; font-size: clamp(16px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }

.mk-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  padding: 22px 18px 0;
}

.mk-chart i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--eco-accent) 0 var(--s3, 38%), #4fa86f var(--s3, 38%) 72%, var(--eco-sand) 72% 100%);
  transform-origin: bottom;
}

.mk-eco__foot {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px 18px;
  font-size: 12px;
  color: var(--eco-fg-2);
  border-top: 1px solid var(--eco-line);
}

.mk-eco__foot b { color: var(--eco-fg); font-weight: 600; }

/* ── vela: gateway ledger ── */
.mk-vela { background: var(--vela-bg-2); color: var(--vela-fg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px var(--vela-line); }
.mk-vela .mk-head { border-bottom: 1px solid var(--vela-line); }
.mk-vela .mk-live { color: var(--vela-teal); }

.mk-rows { padding: 6px 0 8px; min-height: 270px; }

.mk-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  font-size: 12px;
  border-bottom: 1px solid var(--vela-line);
  font-variant-numeric: tabular-nums;
}

.mk-row b { font-weight: 500; }
.mk-row span { color: var(--vela-fg-2); font-family: var(--st-mono); font-size: 11px; }

.mk-chip {
  font-family: var(--st-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.mk-chip--ok { color: var(--vela-teal); }
.mk-chip--warn { color: #f5b84a; }
.mk-chip--mask { color: var(--vela-blue); }

.mk-row.is-new { animation: mk-row-in 0.6s var(--st-ease) both; }
@keyframes mk-row-in { from { opacity: 0; transform: translateY(-8px); background: rgba(94, 230, 214, 0.08); } }

/* ── commity: passport ── */
.mk-com { background: #fff; color: var(--com-fg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.04); }
.mk-com__id { display: flex; align-items: center; gap: 12px; padding: 22px 22px 6px; }

.mk-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  flex: none;
}

.mk-com__id small { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--com-fg-2); }
.mk-com__id b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }

.mk-score { display: flex; align-items: center; gap: 16px; padding: 14px 22px 8px; }

.mk-ring { width: 84px; height: 84px; flex: none; position: relative; }
.mk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mk-ring circle { fill: none; stroke-width: 7; }
.mk-ring .bg { stroke: #e8ece9; }
.mk-ring .fg { stroke: var(--com-green); stroke-linecap: round; stroke-dasharray: 226; stroke-dashoffset: calc(226 - 226 * var(--p, 0.914)); }
.mk-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }

.mk-score__tag { font-size: 14px; font-weight: 600; color: var(--com-green-dk); }
.mk-score__tag small { display: block; font-weight: 400; color: var(--com-fg-2); font-size: 12px; margin-top: 2px; }

.mk-bars { padding: 8px 22px 6px; display: grid; gap: 9px; }
.mk-bar { display: grid; grid-template-columns: 84px 1fr 22px; gap: 10px; align-items: center; font-size: 12px; color: var(--com-fg-2); }
.mk-bar i { height: 6px; border-radius: 3px; background: #e8ece9; position: relative; overflow: hidden; }
.mk-bar i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 1%); background: var(--com-green); border-radius: 3px; transform-origin: left; transform: scaleX(var(--grow, 1)); }
.mk-bar em { font-style: normal; color: var(--com-fg); text-align: right; font-variant-numeric: tabular-nums; }

.mk-stamps { padding: 12px 22px 22px; display: grid; gap: 8px; }
.mk-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--com-green-dk);
  font-size: 12px;
  font-weight: 500;
  width: max-content;
  max-width: 100%;
}

.mk-stamp::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--com-green-dk);
  color: #fff;
  font-size: 10px;
}

/*--------------------------------------------------------------
  HOME: product tiles (one full screen per product)
--------------------------------------------------------------*/
.sc-tile {
  position: relative;
  padding: clamp(96px, 14vh, 150px) 0 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sc-tile__copy { position: relative; z-index: 2; }

.sc-tile__visual {
  position: relative;
  margin: clamp(56px, 8vh, 88px) auto 0;
  width: min(1080px, calc(100% - 2 * var(--st-gutter)));
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* eco tile: wide dashboard rising from the bottom edge */
.sc-tile--eco .mk-eco { width: 100%; border-radius: 22px 22px 0 0; }
.sc-tile--eco .mk-chart { height: clamp(180px, 24vw, 300px); gap: 10px; padding: 32px 28px 0; }
.sc-tile--eco .mk-kpis { grid-template-columns: repeat(4, 1fr); }

/* vela tile: pipeline */
.mk-pipe {
  width: 100%;
  background: var(--vela-bg-2);
  border: 1px solid var(--vela-line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 56px) clamp(36px, 5vw, 64px);
}

.mk-pipe__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
}

.mk-pipe__track::before {
  content: "";
  position: absolute;
  left: 7%; right: 7%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(91,140,255,.25), rgba(94,230,214,.25));
}

.mk-node {
  position: relative;
  justify-self: center;
  width: clamp(44px, 5.4vw, 64px);
  height: clamp(44px, 5.4vw, 64px);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--vela-bg);
  border: 1px solid var(--vela-line);
  font-family: var(--st-mono);
  font-size: clamp(11px, 1vw, 13px);
  color: var(--vela-fg-2);
  transition: border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.mk-node--end { border-radius: 50%; color: var(--vela-fg); }
.mk-node.is-hit { border-color: var(--vela-teal); color: var(--vela-teal); box-shadow: 0 0 0 6px rgba(94,230,214,.08); }

.mk-pipe__labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 18px;
  text-align: center;
  font-size: clamp(11px, 1.05vw, 14px);
  color: var(--vela-fg-2);
}

.mk-packet {
  position: absolute;
  top: 50%;
  left: 7%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--vela-teal);
  box-shadow: 0 0 18px 4px rgba(94, 230, 214, 0.6);
  z-index: 2;
}

/* commity tile: passport with floating stamps */
.sc-tile--com .sc-tile__visual { align-items: flex-end; }
.sc-tile--com .mk-com { width: min(400px, 100%); border-radius: 26px 26px 0 0; box-shadow: 0 40px 80px -40px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.06); }

.sc-float {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--com-fg);
  max-width: 250px;
}

.sc-float small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--com-fg-2); margin-bottom: 4px; }
.sc-float--l { left: 2%; bottom: 46%; }
.sc-float--r { right: 2%; bottom: 22%; }

/*--------------------------------------------------------------
  HOME: pinned impact numbers
--------------------------------------------------------------*/
/* static by default (no JS / reduced motion): numbers stacked */
.sc-impact { position: relative; padding: clamp(120px, 18vh, 200px) 0; overflow: hidden; }
.sc-impact__inner { display: grid; gap: 72px; place-items: center; text-align: center; }
.sc-impact__label { text-align: center; margin-bottom: 72px !important; }
.sc-impact__dots { display: none; }

/* live (scenes.js): one number per screen, pinned */
.sc-impact.is-live { height: 100vh; padding: 0; }
.sc-impact.is-live .sc-impact__inner { height: 100%; gap: 0; }
.sc-impact.is-live .sc-stat { grid-area: 1 / 1; }
.sc-impact.is-live .sc-impact__label { position: absolute; top: calc(52px + 8vh); left: 0; right: 0; margin: 0 !important; }
.sc-impact.is-live .sc-impact__dots { display: flex; }

.sc-stat strong {
  display: block;
  font-size: clamp(96px, 20vw, 300px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.sc-stat span { display: block; margin-top: 18px; }

.sc-impact.is-live .sc-impact__dots {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.sc-impact__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .3s ease, width .3s ease; }
.sc-impact__dots i.is-on { background: #fff; width: 22px; border-radius: 3px; }

/* simple closing band */
.sc-end { padding: clamp(120px, 20vh, 200px) 0; }

/*--------------------------------------------------------------
  VELA page
--------------------------------------------------------------*/
.sc-phero { padding: calc(52px + 11vh) 0 0; overflow: hidden; }
.sc-phero .sc-brand { margin-bottom: 22px; }
.sc-phero .sc-title { max-width: 12em; margin: 0 auto; }
.sc-phero .sc-sub { margin-top: 22px; max-width: 22em; }

.sc-phero__visual {
  margin: clamp(56px, 9vh, 96px) auto 0;
  width: min(880px, calc(100% - 2 * var(--st-gutter)));
}

.sc-phero__visual .mk-vela { border-radius: 22px 22px 0 0; }
.sc-phero__visual .mk-rows { min-height: 320px; }
.sc-phero__visual .mk-row { grid-template-columns: 0.8fr 1.3fr 1fr 0.7fr auto; font-size: 13px; padding: 13px 22px; }

/* pinned checkpoint scene */
.vs { position: relative; }
.vs__pin { min-height: 100vh; display: flex; align-items: center; padding: 52px 0; }

.vs__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  width: 100%;
}

.vs__steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }

.vs__step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: baseline;
  transition: opacity .4s ease;
}

.vs.is-live .vs__step { opacity: 0.32; }

.vs.is-live .vs__step.is-on { opacity: 1; }
.vs__step span { font-family: var(--st-mono); font-size: 13px; color: var(--vela-teal); }
.vs__step b { display: block; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.vs__step p { font-size: 16px; color: var(--vela-fg-2); margin-top: 4px !important; }

.vs-card {
  background: var(--vela-bg-2);
  border: 1px solid var(--vela-line);
  border-radius: 24px;
  padding: clamp(20px, 2.6vw, 32px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
}

.vs-card__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--vela-fg-2); }
.vs-card__head b { color: var(--vela-fg); font-weight: 500; }

.vs-prompt {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--vela-bg);
  border: 1px solid var(--vela-line);
  font-family: var(--st-mono);
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.7;
  color: var(--vela-fg);
}

.vs-pii { display: inline-grid; vertical-align: baseline; }
.vs-pii > * { grid-area: 1 / 1; transition: opacity .25s ease; }
.vs-pii .raw { background: rgba(245, 184, 74, 0.14); color: #f5c870; border-radius: 4px; padding: 0 3px; }
.vs-pii .mask { opacity: 0; background: rgba(91, 140, 255, 0.16); color: #9db8ff; border-radius: 4px; padding: 0 3px; }

.vs-out { display: grid; gap: 10px; margin-top: 18px; }

.vs-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--vela-line);
  font-size: 13px;
  color: var(--vela-fg);
}

.vs-line i {
  width: 22px; height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--st-mono);
  font-size: 11px;
  background: rgba(94, 230, 214, 0.12);
  color: var(--vela-teal);
  flex: none;
}

.vs-line small { margin-left: auto; font-family: var(--st-mono); font-size: 11px; color: var(--vela-fg-2); }

.vs-models { display: flex; gap: 6px; margin-left: auto; }
.vs-models em { font-style: normal; font-family: var(--st-mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--vela-line); color: var(--vela-fg-2); }
.vs-models em.pick { border-color: var(--vela-teal); color: var(--vela-teal); }

/* big number */
.sc-big { padding: clamp(140px, 22vh, 240px) 0; }
.sc-big strong {
  display: block;
  font-size: clamp(120px, 24vw, 340px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.sc-big .sc-sub { margin-top: 26px; }

/* one line of code */
.sc-oneline { padding: clamp(120px, 18vh, 200px) 0; }
.sc-code {
  margin: 56px auto 0;
  width: min(820px, calc(100% - 2 * var(--st-gutter)));
  text-align: left;
  font-family: var(--st-mono);
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.9;
  padding: clamp(22px, 3vw, 40px);
  border-radius: 20px;
  background: var(--vela-bg-2);
  border: 1px solid var(--vela-line);
  color: var(--vela-fg);
  overflow-x: auto;
  white-space: pre;
}

.sc-code .c { color: var(--vela-fg-2); }
.sc-code .add { background: rgba(94, 230, 214, 0.1); box-shadow: inset 3px 0 0 var(--vela-teal); display: inline-block; padding-right: 8px; }
.sc-code .typed { color: var(--vela-teal); }
.sc-caret { display: inline-block; width: 0.55em; height: 1.1em; vertical-align: -0.18em; background: var(--vela-teal); animation: sc-blink 1s steps(1) infinite; }
@keyframes sc-blink { 50% { opacity: 0; } }

/* highlights rail */
.sc-rail-wrap { padding: clamp(110px, 16vh, 170px) 0; }
.sc-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(380px, 82vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 56px max(var(--st-gutter), calc((100vw - var(--st-wrap)) / 2 + var(--st-gutter))) 12px;
  scrollbar-width: none;
}

.sc-rail::-webkit-scrollbar { display: none; }

.sc-card {
  scroll-snap-align: start;
  border-radius: 26px;
  background: var(--vela-bg-2);
  border: 1px solid var(--vela-line);
  min-height: 460px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.sc-card h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.sc-card h3 span { color: var(--vela-fg-2); }

.sc-card__viz { flex: 1; display: grid; place-items: center; padding: 24px 0; }

/* card visuals */
.viz-budget { width: 100%; }
.viz-budget__bar { height: 14px; border-radius: 7px; background: var(--vela-bg); border: 1px solid var(--vela-line); position: relative; overflow: hidden; }
.viz-budget__bar i { position: absolute; inset: 0; width: 78%; background: var(--vela-grad); border-radius: 7px; transform-origin: left; }
.viz-budget__cap { position: absolute; top: -8px; bottom: -8px; left: 78%; width: 2px; background: #f5b84a; }
.viz-budget__meta { display: flex; justify-content: space-between; font-family: var(--st-mono); font-size: 12px; color: var(--vela-fg-2); margin-top: 14px; }

.viz-models { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.viz-models em { font-style: normal; font-family: var(--st-mono); font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--vela-line); color: var(--vela-fg-2); }
.viz-models em:nth-child(3n+1) { color: var(--vela-fg); }

.viz-cache { font-size: clamp(56px, 5.6vw, 76px); font-weight: 600; letter-spacing: -0.05em; white-space: nowrap; }

.viz-hash { font-family: var(--st-mono); font-size: 12px; line-height: 2; color: var(--vela-fg-2); width: 100%; }
.viz-hash b { color: var(--vela-teal); font-weight: 400; }

/* compact details */
.sc-specs { padding: clamp(96px, 14vh, 140px) 0; border-top: 1px solid var(--line); }
.sc-specs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--st-gutter); margin-top: 56px; }
.sc-specs__grid h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px !important; }
.sc-specs__grid p { font-size: 15px; color: var(--fg-2); line-height: 1.6; }

/*--------------------------------------------------------------
  Responsive
--------------------------------------------------------------*/
@media (max-width: 900px) {
  .sc-eyebrow { font-size: 10px; letter-spacing: 0.04em; gap: 8px; }
  .sc-stage { height: clamp(300px, 80vw, 460px); }
  .sc-stage__row > * { width: clamp(200px, 56vw, 300px); }
  .sc-stage__row { gap: 0; }
  .sc-stage__row > :first-child { margin-right: -32vw; }
  .sc-stage__row > :last-child { margin-left: -32vw; }
  .sc-stage__row > :nth-child(2) { z-index: 2; }

  .sc-tile--eco .mk-kpis { grid-template-columns: repeat(2, 1fr); }
  .mk-pipe__labels span { font-size: 10px; }
  .sc-float { display: none; }

  .vs__grid { grid-template-columns: 1fr; }
  .vs__pin { padding: 96px 0; }
  .sc-phero__visual .mk-row { grid-template-columns: 1fr 1fr auto; }
  .sc-phero__visual .mk-row > :nth-child(1), .sc-phero__visual .mk-row > :nth-child(4) { display: none; }
  .sc-specs__grid { grid-template-columns: 1fr; }
}

/*==============================================================
  HYBRID: product worlds inside the Sana Terra (green-black) frame
==============================================================*/

/* worlds also provide the third text tone used by theme.css components */
.w-eco  { --fg-3: rgba(238, 245, 232, 0.42); }
.w-vela { --fg-3: rgba(238, 241, 251, 0.42); }
.w-com  { --fg-3: #8a918d; }

.w-eco .st-lead, .w-vela .st-lead, .w-com .st-lead { color: var(--fg-2); }
.w-eco .st-label, .w-vela .st-label, .w-com .st-label { color: var(--fg-3); }

/* a product row that fills its own world section */
.home-product--solo { padding: 0; border-top: 0; }
.home-product--solo .st-h2 { max-width: 11em; }
.home-product__media { display: flex; justify-content: center; }
.home-product .mk { width: 100%; }
.home-product .mk-com { max-width: 400px; }
.home-product .mk-pipe { border-bottom: 1px solid var(--vela-line); border-radius: 22px; }
.home-product .sc-brand { margin-bottom: 22px; }

/* section that introduces the three product worlds */
.hy-intro { padding-bottom: 72px; }

/* homepage hero: descriptive copy, then the three live cards */
.home-hero .sc-stage { margin-top: 72px; }
.home-hero__title > span { display: block; }

/* Vela page: navy versions of the shared components */
.pg-hero.w-vela { background: var(--vela-bg); border-bottom-color: var(--vela-line); }
.w-vela .st-frame--night { background: var(--vela-bg-2); border-color: var(--vela-line); }
.w-vela .st-chip { border-color: var(--vela-line); }
.w-vela .st-btn--solid { background: var(--vela-grad); color: #04101c !important; }
.w-vela .st-btn--line { border-color: var(--vela-line); }
.w-vela .pg-hero__badge { border-color: var(--vela-line); }
.w-vela .pg-hero__badge::before { background: var(--vela-teal); }
.pg-hero .mk-vela { margin-top: 72px; }
.pg-hero .mk-vela .mk-rows { min-height: 300px; }
.pg-hero .mk-vela .mk-row { grid-template-columns: 0.8fr 1.3fr 1fr 0.7fr auto; font-size: 13px; padding: 13px 22px; }
.w-vela.vs .vs__pin { padding: 96px 0 24px; }

/* compact steps so the whole pinned scene fits a laptop screen */
.w-vela.vs .st-h2 { font-size: clamp(30px, 3.2vw, 46px); }
.w-vela.vs .st-lead { font-size: 16px; }
.w-vela.vs .vs__steps { gap: 12px; margin-top: 24px; }
.w-vela.vs .vs__step b { font-size: clamp(17px, 1.4vw, 20px); }
.w-vela.vs .vs__step p { font-size: 14px; line-height: 1.5; }
@media (max-height: 760px) and (min-width: 901px) {
  .w-vela.vs .st-lead { display: none; }
}

@media (max-width: 900px) {
  .pg-hero .mk-vela .mk-row { grid-template-columns: 1fr 1fr auto; }
  .pg-hero .mk-vela .mk-row > :nth-child(1), .pg-hero .mk-vela .mk-row > :nth-child(4) { display: none; }
}

.home-hero { overflow: hidden; }

@media (max-width: 640px) {
  .home-hero__meta .st-label { font-size: 10px; letter-spacing: 0.03em; }
}

/*--------------------------------------------------------------
  Homepage product cards: larger, desktop-first compositions
--------------------------------------------------------------*/
.home-product .mk-eco .mk-chart { height: clamp(220px, 22vw, 320px); gap: 8px; padding: 28px 22px 0; }
.home-product .mk-eco .mk-kpis { grid-template-columns: repeat(4, 1fr); }
.home-product .mk-eco .mk-kpis b { font-size: clamp(18px, 1.8vw, 26px); }
.home-product .mk-eco .mk-head { padding: 18px 22px; font-size: 14px; }

/* Vela: vertical request pipeline */
.mk-flow { width: 100%; }
.mk-flow .mk-head { padding: 18px 22px; font-size: 14px; }
.mk-flow__body { padding: 22px 22px 24px; display: grid; gap: 14px; }

.mk-flow__cap {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: baseline;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--vela-bg);
  border: 1px solid var(--vela-line);
}

.mk-flow__cap small { grid-row: 1 / 3; align-self: center; font-family: var(--st-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--vela-fg-2); width: 82px; }
.mk-flow__cap b { font-size: 15px; font-weight: 600; }
.mk-flow__cap span { font-size: 12px; color: var(--vela-fg-2); font-family: var(--st-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-flow__cap--end { border-color: rgba(94, 230, 214, 0.35); }

.mk-flow__steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: grid;
  gap: 6px;
}

.mk-flow__rail { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--vela-line); }
.mk-flow__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--vela-grad); }
.mk-flow__rail .mk-packet { left: 1px; top: 0; margin: -6px 0 0 -6px; }

.mk-flow__steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px 12px 0;
  border-radius: 12px;
  transition: background-color .35s ease;
}

.mk-flow__steps li i {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--st-mono);
  font-size: 11px;
  background: var(--vela-bg);
  border: 1px solid var(--vela-line);
  color: var(--vela-fg-2);
  transition: border-color .35s ease, color .35s ease, box-shadow .35s ease;
}

.mk-flow__steps li b { display: block; font-size: 15px; font-weight: 600; }
.mk-flow__steps li small { display: block; font-size: 12.5px; color: var(--vela-fg-2); margin-top: 2px; }
.mk-flow__steps li small u { text-decoration: none; color: var(--vela-teal); }
.mk-flow__steps li em {
  font-style: normal;
  font-family: var(--st-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--vela-line);
  color: var(--vela-fg-2);
  transition: color .35s ease, border-color .35s ease;
}

.mk-flow__steps li.is-hit { background: rgba(94, 230, 214, 0.05); }
.mk-flow__steps li.is-hit i { border-color: var(--vela-teal); color: var(--vela-teal); box-shadow: 0 0 0 5px rgba(94, 230, 214, 0.08); }
.mk-flow__steps li.is-hit em { color: var(--vela-teal); border-color: rgba(94, 230, 214, 0.5); }

/* Commity: passport + signed review + resolved dispute */
.mk-com-stack {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 18px;
  width: 100%;
  align-items: start;
}

.home-product .mk-com-stack .mk-com { max-width: none; }
.mk-com-side { display: grid; gap: 18px; padding-top: 36px; }

.mk-mini { padding: 20px 20px 22px; border-radius: 18px; }
.mk-mini small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--com-fg-2); }
.mk-mini > b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin: 4px 0 14px; }
.mk-mini__rows { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 13px; color: var(--com-fg-2); padding-bottom: 14px; border-bottom: 1px solid var(--com-line); }
.mk-mini__rows em { font-style: normal; font-weight: 600; color: var(--com-fg); font-variant-numeric: tabular-nums; }
.mk-mini__signs { display: grid; gap: 8px; margin-top: 14px; }
.mk-mini__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mk-mini__track i { height: 6px; border-radius: 3px; background: var(--com-green); }
.mk-mini__labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; font-size: 10.5px; color: var(--com-fg-2); }

@media (max-width: 991px) {
  .mk-com-stack { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .mk-com-side { padding-top: 0; }
  .mk-com-side > :last-child { display: none; }
  .home-product .mk-eco .mk-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .mk-flow__steps li { grid-template-columns: 40px 1fr; }
  .mk-flow__steps li em { display: none; }
  .mk-flow__rail { left: 19px; }
}

/* flipped rows put the card first, so give it the wide column */
@media (min-width: 992px) {
  .home-product--flip { grid-template-columns: 7fr 5fr; }
  .home-product--flip .mk-flow { max-width: 600px; }
}
