/* ============================================================
   InnovBees — component layer
   Tailwind (CDN) handles utilities; this file holds component
   classes, keyframes and the scroll-scene primitives.
   ============================================================ */

:root {
  --honey-500: #ffb020;
  --honey-400: #ffc94a;
  --honey-300: #ffd782;
  --ink-950:   #07080b;
  --ease:      cubic-bezier(.22, .8, .28, 1);
}

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b0d12; }
::-webkit-scrollbar-thumb { background: #232a35; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #303845; }

:focus-visible {
  outline: 2px solid var(--honey-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--honey-500);
  color: var(--ink-950);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Typography helpers ---------------- */

.eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.text-glow { filter: drop-shadow(0 0 42px rgba(255, 176, 32, .22)); }

/* ---------------- Buttons ---------------- */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  line-height: 1;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease), box-shadow .35s var(--ease);
}

.btn-primary {
  background: var(--honey-500);
  color: var(--ink-950);
  box-shadow: 0 10px 34px -12px rgba(255, 176, 32, .6);
}
.btn-primary:hover {
  background: var(--honey-400);
  box-shadow: 0 16px 46px -12px rgba(255, 176, 32, .75);
}
.btn-primary:active { transform: translateY(1px) scale(.99); }

.btn-ghost {
  color: #f4f2ed;
  border-color: #2a323f;
  background: transparent;
}
.btn-ghost:hover { border-color: var(--honey-500); color: var(--honey-400); }

/* Header CTA: hidden on the narrowest screens, where the burger takes over. */
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

/* ---------------- Nav ---------------- */

.nav-link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(244, 242, 237, .55);
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1.5px;
  width: 0;
  background: var(--honey-500);
  transition: width .3s var(--ease);
}
.nav-link:hover { color: #f4f2ed; }
.nav-link:hover::after { width: 100%; }

#nav.is-stuck {
  background: rgba(7, 8, 11, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: #141821;
}

.mobile-link {
  padding: 11px 2px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(244, 242, 237, .7);
  border-bottom: 1px solid #141821;
}
.mobile-link:hover { color: var(--honey-400); }

/* ---------------- Hero decoration ---------------- */

.scroll-line {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255, 176, 32, .8), transparent);
  animation: scroll-drop 2.1s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scroll-drop {
  0%        { transform: scaleY(0);   opacity: 0; }
  35%       { transform: scaleY(1);   opacity: 1; }
  70%, 100% { transform: scaleY(1);   opacity: 0; transform-origin: bottom; }
}

/* transform-box: fill-box keeps SVG rotation/scaling centred on each shape
   regardless of browser defaults for transform-origin. */
.spin-slow,
.spin-rev,
.pulse-soft,
.pulse-core {
  transform-box: fill-box;
  transform-origin: center;
}

.spin-slow { animation: spin 46s linear infinite; }
.spin-rev  { animation: spin 34s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.pulse-soft { animation: pulse-soft 4.5s var(--ease) infinite; }
@keyframes pulse-soft {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: .8;  transform: scale(1.035); }
}

.pulse-core { animation: pulse-core 3.4s var(--ease) infinite; }
@keyframes pulse-core {
  0%, 100% { opacity: .92; filter: drop-shadow(0 0 14px rgba(255, 176, 32, .5)); }
  50%      { opacity: 1;   filter: drop-shadow(0 0 30px rgba(255, 176, 32, .85)); }
}

.node { animation: node-blink 3s var(--ease) infinite; animation-delay: var(--d, 0s); }
@keyframes node-blink {
  0%, 100% { opacity: .3;  r: 3.2; }
  50%      { opacity: 1;   r: 4.2; }
}

/* ---------------- Marquee ---------------- */

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  list-style: none;
  margin: 0;
}

.marquee-group li {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: rgba(244, 242, 237, .34);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.marquee-group li:hover { color: var(--honey-400); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Scroll scene: problem → solution ---------------- */

/* Opacity and transform on every scene element are driven frame-by-frame from
   app.js against scroll position — a CSS transition here would smear them. */
.scene-copy {
  will-change: opacity, transform;
}

/* Default (mobile): ordinary stacked cards, fully visible.
   The absolutely-positioned scene variant is opted into at lg — see below. */
.cost-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .65rem;
  padding: 1.15rem 1.5rem;
  border-radius: 16px;
  border: 1px solid #232a35;
  background: linear-gradient(135deg, #141821, #0f1218);
  box-shadow: 0 22px 50px -30px rgba(0, 0, 0, .9);
}

.cost-name {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(244, 242, 237, .72);
}

.cost-val {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: #fca5a5;
  white-space: nowrap;
}
.cost-val small { font-size: 11.5px; font-weight: 500; opacity: .6; margin-left: 1px; }

.cost-total {
  margin-top: 1.1rem;
  padding: 1.35rem 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, .25);
  background: linear-gradient(135deg, rgba(69, 10, 10, .55), rgba(15, 18, 24, .9));
}

@media (min-width: 1024px) {
  .cost-card,
  .cost-total {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
    opacity: 0;                 /* app.js drives this from scroll position */
    will-change: transform, opacity;
  }
  .cost-total { bottom: 0; }
  #solution-card { will-change: transform, opacity; }
}

.sol-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid #1c222d;
  font-size: 14.5px;
  color: rgba(244, 242, 237, .6);
}
.sol-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sol-row b { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------- Service cards ---------------- */

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #1c222d;
  background: linear-gradient(180deg, #0f1218, #0b0d12);
  padding: 2.25rem 2rem 2rem;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s var(--ease);
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 176, 32, .13),
    transparent 65%
  );
  pointer-events: none;
}

.service-card:hover { border-color: #333c4b; transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255, 176, 32, .22);
  background: rgba(255, 176, 32, .08);
  color: var(--honey-500);
  margin-bottom: 1.6rem;
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -.022em;
  margin-bottom: .8rem;
}

.service-card > p {
  font-size: 14.8px;
  line-height: 1.68;
  color: rgba(244, 242, 237, .52);
}

.service-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid #1c222d;
  display: grid;
  gap: .7rem;
}

.service-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 13.8px;
  color: rgba(244, 242, 237, .45);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 6px;
  height: 7px;
  background: var(--honey-500);
  opacity: .65;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ============================================================
   TEMPLATE GALLERY
   Mobile: plain vertical stack.
   lg+: pinned section, track translated horizontally from app.js.
   ============================================================ */

.slide { width: 100%; flex-shrink: 0; }

.slide-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.slide-copy { max-width: 30rem; }

.slide-meta {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.4rem;
}

.slide-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(244, 242, 237, .28);
}

.platform-badge {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--honey-400);
  background: rgba(255, 176, 32, .09);
  border: 1px solid rgba(255, 176, 32, .22);
  border-radius: 999px;
  padding: .3rem .8rem;
}

.slide-title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}

.slide-kicker {
  margin-top: .55rem;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(244, 242, 237, .4);
}

.slide-body {
  margin-top: 1.4rem;
  font-size: 15.2px;
  line-height: 1.7;
  color: rgba(244, 242, 237, .55);
}

.slide-features {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: .62rem;
}
.slide-features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 13.8px;
  color: rgba(244, 242, 237, .46);
}
.slide-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 7px;
  background: var(--honey-500);
  opacity: .65;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.slide-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1c222d;
}
.slide-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, .28);
  margin-bottom: .4rem;
}
.slide-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--honey-400);
}
.slide-stat-val small { font-size: .78rem; font-weight: 500; opacity: .55; }

.slide-visual { display: flex; justify-content: center; min-width: 0; }

@media (min-width: 1024px) {
  #gallery-track { width: max-content; }

  .slide-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 5rem;
    align-items: center;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 2.5rem;
  }

  /* Slide contents ease in as the slide reaches centre stage. */
  .slide-copy,
  .slide-visual {
    opacity: .18;
    transform: translateY(26px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
  }
  .slide.is-active .slide-copy,
  .slide.is-active .slide-visual { opacity: 1; transform: none; }
  .slide.is-active .slide-visual { transition-delay: .07s; }
}

/* A pinned slide has exactly one viewport height to work with. On short
   laptop screens, tighten everything so nothing gets clipped. */
@media (min-width: 1024px) and (max-height: 780px) {
  .slide-title    { font-size: 2rem; }
  .slide-kicker   { font-size: 13px; }
  .slide-body     { margin-top: 1rem; font-size: 14px; line-height: 1.6; }
  .slide-features { margin-top: 1rem; gap: .42rem; }
  .slide-features li { font-size: 13px; }
  .slide-meta     { margin-bottom: 1rem; }
  .slide-stats    { margin-top: 1.2rem; padding-top: 1rem; }
  .slide-stat-val { font-size: 1.3rem; }
  .chrome-body    { min-height: 296px; }
  .frame-phone    { width: 236px; }
  .mk-bars, .mk-line { height: 70px; }
}

/* ---------------- Device frames ---------------- */

.frame-browser {
  width: 100%;
  max-width: 640px;
  border-radius: 16px;
  border: 1px solid #262e3b;
  background: #0d1016;
  overflow: hidden;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 176, 32, .05);
}

.chrome {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem .9rem;
  background: #141821;
  border-bottom: 1px solid #1f2733;
}
.chrome .dots { display: flex; gap: .35rem; }
.chrome .dots i {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: #2c3542;
}
.chrome-url {
  flex: 1;
  font-size: 10.5px;
  color: rgba(244, 242, 237, .3);
  background: #0d1016;
  border-radius: 99px;
  padding: .3rem .8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chrome-body {
  padding: 1.05rem;
  min-height: 360px;
  font-size: 11.5px;
}

.frame-phone {
  position: relative;
  width: 268px;
  border-radius: 40px;
  border: 1px solid #2c3542;
  background: #0d1016;
  padding: 9px;
  box-shadow: 0 50px 100px -46px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 176, 32, .05);
}
.phone-notch {
  position: absolute;
  top: 15px; left: 50%;
  transform: translateX(-50%);
  width: 82px; height: 20px;
  border-radius: 99px;
  background: #05070a;
  z-index: 2;
}
.phone-screen {
  border-radius: 32px;
  background: #0a0c11;
  overflow: hidden;
  padding: 0 0 .55rem;
  font-size: 11.5px;
}

/* ---------------- Mockup: shared atoms ---------------- */

.mk-eyebrow {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, .3);
}

.mk-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .2rem .5rem;
  border-radius: 99px;
  font-style: normal;
  white-space: nowrap;
}
.mk-tag.amber { color: #ffc94a; background: rgba(255, 176, 32, .12); }
.mk-tag.green { color: #6ee7a8; background: rgba(110, 231, 168, .12); }
.mk-tag.blue  { color: #7db8ff; background: rgba(90, 169, 255, .12); }
.mk-tag.grey  { color: rgba(244, 242, 237, .42); background: rgba(244, 242, 237, .07); }

.mk-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 99px;
  background: var(--honey-500);
  margin-right: .35rem;
  animation: mk-blink 1.6s ease-in-out infinite;
}
.mk-dot.green { background: #6ee7a8; }
@keyframes mk-blink { 0%,100%{opacity:.35} 50%{opacity:1} }

.mk-avatar {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 99px;
  background: rgba(255, 176, 32, .14);
  color: var(--honey-400);
  font-size: 9.5px;
  font-weight: 700;
}
.mk-avatar.sm { width: 20px; height: 20px; font-size: 8.5px; }

.mono { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ta-r { text-align: right; }

/* Children stagger in once their slide is centre stage. */
.mk-job, .mk-node, .mk-kpi, .mk-tr:not(.head),
.mk-pcard, .mk-pl-row, .mk-msg, .mk-bars i {
  opacity: 0;
  transform: translateY(9px);
}
.slide.is-active .mk-job,
.slide.is-active .mk-node,
.slide.is-active .mk-kpi,
.slide.is-active .mk-tr:not(.head),
.slide.is-active .mk-pcard,
.slide.is-active .mk-pl-row,
.slide.is-active .mk-msg {
  animation: mk-in .5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 180ms);
}
@keyframes mk-in { to { opacity: 1; transform: none; } }

/* ---------------- Mockup: phone / Fieldline ---------------- */

.mk-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.1rem .3rem;
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(244, 242, 237, .55);
}
.mk-sb-icons { display: flex; gap: 3px; }
.mk-sb-icons i { width: 9px; height: 8px; border-radius: 2px; background: rgba(244,242,237,.28); }

.mk-apphead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .95rem .7rem;
}
.mk-apphead h4 { font-size: 15px; font-weight: 700; letter-spacing: -.02em; margin-top: .15rem; }

.mk-pills { display: flex; gap: .35rem; padding: 0 .95rem .7rem; }
.mk-pills span {
  font-size: 9.5px;
  font-weight: 600;
  padding: .28rem .6rem;
  border-radius: 99px;
  color: rgba(244, 242, 237, .38);
  background: rgba(244, 242, 237, .05);
}
.mk-pills span.on { background: var(--honey-500); color: #07080b; }

.mk-job {
  margin: 0 .95rem .5rem;
  padding: .65rem .75rem;
  border-radius: 11px;
  border: 1px solid #1c222d;
  background: #0f1218;
}
.mk-job-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.mk-job-id { font-size: 9px; font-weight: 700; color: rgba(244, 242, 237, .3); letter-spacing: .05em; }
.mk-job-title { font-size: 12px; font-weight: 600; color: rgba(244, 242, 237, .88); }
.mk-job-sub { font-size: 9.5px; color: rgba(244, 242, 237, .35); margin-top: .15rem; }

.mk-sync {
  margin: .7rem .95rem .55rem;
  padding: .45rem .7rem;
  border-radius: 8px;
  font-size: 9.5px;
  color: var(--honey-400);
  background: rgba(255, 176, 32, .07);
  border: 1px solid rgba(255, 176, 32, .16);
}

.mk-tabbar {
  display: flex;
  justify-content: space-around;
  padding: .6rem 1.4rem .2rem;
  border-top: 1px solid #161b23;
}
.mk-tabbar i { width: 17px; height: 3px; border-radius: 99px; background: rgba(244, 242, 237, .14); }
.mk-tabbar i.on { background: var(--honey-500); }

/* ---------------- Mockup: flow / Gatekeeper ---------------- */

.mk-flow { display: flex; flex-direction: column; align-items: center; }

.mk-node {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  max-width: 340px;
  padding: .6rem .75rem;
  border-radius: 10px;
  border: 1px solid #232b38;
  background: #12161e;
}
.mk-node.trigger { border-color: rgba(255, 176, 32, .3); background: rgba(255, 176, 32, .06); }
.mk-node.small { max-width: 165px; padding: .5rem .55rem; }
.mk-node b { display: block; font-size: 10.5px; font-weight: 600; color: rgba(244, 242, 237, .85); }
.mk-node small { display: block; font-size: 9px; color: rgba(244, 242, 237, .32); margin-top: .1rem; }

.mk-node-ic {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 176, 32, .12);
  font-size: 10px;
}

.mk-wire {
  display: block;
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, #2a3340, #2a3340);
  position: relative;
}
.mk-wire::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 3px; height: 8px;
  margin-left: -1px;
  border-radius: 99px;
  background: var(--honey-500);
  animation: mk-flow-pulse 2.4s linear infinite;
  animation-delay: calc(var(--i, 0) * .3s);
}
@keyframes mk-flow-pulse {
  0%   { transform: translateY(0);    opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
.mk-wire.split { height: 16px; }

.mk-branch { display: flex; gap: .6rem; width: 100%; max-width: 340px; justify-content: center; }

.mk-runbar {
  margin-top: 1.1rem;
  padding: .45rem .8rem;
  border-radius: 99px;
  font-size: 9.5px;
  color: rgba(244, 242, 237, .4);
  background: rgba(244, 242, 237, .04);
  border: 1px solid #1c222d;
}

/* ---------------- Mockup: BI / Signal ---------------- */

.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.mk-kpi {
  padding: .6rem .55rem;
  border-radius: 9px;
  border: 1px solid #1c222d;
  background: #10141b;
}
.mk-kpi span { display: block; font-size: 8.5px; color: rgba(244, 242, 237, .33); letter-spacing: .02em; }
.mk-kpi b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.03em; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.mk-kpi em { font-size: 8.5px; font-style: normal; font-weight: 600; }
.mk-kpi em.up { color: #6ee7a8; }
.mk-kpi em.down { color: #fca5a5; }

.mk-charts { display: grid; grid-template-columns: 1.15fr 1fr; gap: .5rem; margin-top: .55rem; }
.mk-chart {
  padding: .65rem .7rem;
  border-radius: 9px;
  border: 1px solid #1c222d;
  background: #10141b;
}
.mk-chart-title { display: block; font-size: 9px; color: rgba(244, 242, 237, .35); margin-bottom: .6rem; }

.mk-bars { display: flex; align-items: flex-end; gap: 5px; height: 88px; }
.mk-bars i {
  flex: 1;
  height: 0;
  border-radius: 3px 3px 0 0;
  background: #2c3542;
  opacity: 1;
  transform: none;
}
.mk-bars i.hi { background: linear-gradient(to top, var(--honey-600), var(--honey-400)); }
.slide.is-active .mk-bars i {
  animation: mk-grow .75s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 65ms + 220ms);
}
@keyframes mk-grow { to { height: var(--h, 50%); } }

.mk-line { width: 100%; height: 88px; display: block; }
.mk-stroke { stroke-dasharray: 340; stroke-dashoffset: 340; }
.slide.is-active .mk-stroke { animation: mk-draw 1.5s var(--ease) .3s forwards; }
@keyframes mk-draw { to { stroke-dashoffset: 0; } }
.mk-area { opacity: 0; }
.slide.is-active .mk-area { animation: mk-fade .8s var(--ease) 1s forwards; }
@keyframes mk-fade { to { opacity: 1; } }

.mk-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .6rem;
  font-size: 9px;
  color: rgba(244, 242, 237, .32);
}
.mk-legend .sw { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: .3rem; }
.mk-legend .sw.amber { background: var(--honey-500); }
.mk-legend .sw.grey  { background: #2c3542; }
.mk-refresh { margin-left: auto; }

/* ---------------- Mockup: model-driven / Ledger ---------------- */

.mk-cmdbar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #1c222d;
  margin-bottom: .5rem;
}
.mk-cmd {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(244, 242, 237, .45);
  padding: .25rem .55rem;
  border-radius: 5px;
}
.mk-cmd.primary { background: var(--honey-500); color: #07080b; }
.mk-view { margin-left: auto; font-size: 9.5px; color: rgba(244, 242, 237, .35); }

.mk-table { display: grid; }
.mk-tr {
  display: grid;
  grid-template-columns: 4.3rem 1fr 5.2rem 4.6rem 4.2rem;
  gap: .5rem;
  align-items: center;
  padding: .48rem .3rem;
  font-size: 9.8px;
  color: rgba(244, 242, 237, .68);
  border-bottom: 1px solid #161b23;
}
.mk-tr.head {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, .28);
  opacity: 1;
  transform: none;
}
.mk-tr:not(.head):hover { background: rgba(255, 176, 32, .04); }
.mk-tr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mk-tablefoot {
  display: flex;
  justify-content: space-between;
  margin-top: .7rem;
  font-size: 9px;
  color: rgba(244, 242, 237, .3);
}
.mk-tablefoot b { color: var(--honey-400); }

/* ---------------- Mockup: portal / Front Desk ---------------- */

.mk-portalnav {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid #1c222d;
}
.mk-brandmark { width: 15px; height: 17px; background: var(--honey-500); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.mk-navlinks { display: flex; gap: .55rem; }
.mk-navlinks i { width: 26px; height: 3px; border-radius: 99px; background: rgba(244, 242, 237, .12); }
.mk-navlinks i.on { background: var(--honey-500); }
.mk-portalnav .mk-avatar { margin-left: auto; }

.mk-portalhero {
  padding: 1.1rem 0 1rem;
  border-bottom: 1px solid #1c222d;
}
.mk-portalhero h4 { font-size: 17px; font-weight: 700; letter-spacing: -.025em; margin-top: .2rem; }
.mk-portalhero p { font-size: 10px; color: rgba(244, 242, 237, .38); margin-top: .3rem; }

.mk-portalcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .75rem 0; }
.mk-pcard {
  padding: .7rem .6rem;
  border-radius: 9px;
  border: 1px solid #1c222d;
  background: #10141b;
}
.mk-pc-num { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.035em; color: var(--honey-400); }
.mk-pcard span:last-child { display: block; font-size: 9px; color: rgba(244, 242, 237, .33); margin-top: .1rem; }

.mk-portallist { display: grid; gap: .35rem; }
.mk-pl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .55rem .65rem;
  border-radius: 8px;
  background: #10141b;
  border: 1px solid #161b23;
  font-size: 10px;
  color: rgba(244, 242, 237, .62);
}

/* ---------------- Mockup: chat / Concierge ---------------- */

.mk-chat, .mk-bi, .mk-grid-app, .mk-portal { display: flex; flex-direction: column; }

.mk-chathead {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid #1c222d;
  margin-bottom: .8rem;
}
.mk-bot {
  width: 26px; height: 29px;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--honey-400), var(--honey-600));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.mk-chathead b { display: block; font-size: 11.5px; font-weight: 700; }
.mk-chathead small { display: block; font-size: 9px; color: rgba(244, 242, 237, .32); margin-top: .1rem; }

.mk-msg {
  max-width: 78%;
  padding: .55rem .75rem;
  border-radius: 12px;
  font-size: 10.5px;
  line-height: 1.55;
  margin-bottom: .45rem;
}
.mk-msg.user {
  align-self: flex-end;
  margin-left: auto;
  background: var(--honey-500);
  color: #07080b;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.mk-msg.bot {
  background: #141a23;
  border: 1px solid #1f2733;
  color: rgba(244, 242, 237, .72);
  border-bottom-left-radius: 4px;
}

.mk-cite {
  display: inline-block;
  margin-top: .45rem;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--honey-400);
  background: rgba(255, 176, 32, .09);
  border: 1px solid rgba(255, 176, 32, .18);
  border-radius: 99px;
  padding: .18rem .5rem;
}

.mk-actions { display: flex; gap: .35rem; margin-top: .5rem; }
.mk-actions b {
  font-size: 9px;
  font-weight: 600;
  padding: .28rem .55rem;
  border-radius: 6px;
  border: 1px solid #2a3340;
  color: rgba(244, 242, 237, .58);
}

.mk-typing { display: flex; gap: 3px; padding: .3rem .1rem .6rem; }
.mk-typing i {
  width: 5px; height: 5px;
  border-radius: 99px;
  background: rgba(244, 242, 237, .3);
  animation: mk-bounce 1.3s ease-in-out infinite;
}
.mk-typing i:nth-child(2) { animation-delay: .16s; }
.mk-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes mk-bounce { 0%,60%,100%{transform:translateY(0);opacity:.3} 30%{transform:translateY(-4px);opacity:1} }

.mk-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: .5rem .7rem;
  border-radius: 99px;
  border: 1px solid #232b38;
  background: #0d1016;
  font-size: 10px;
  color: rgba(244, 242, 237, .25);
}
.mk-send { width: 18px; height: 18px; border-radius: 99px; background: rgba(255, 176, 32, .18); }

/* ---------------- Value section (light) ---------------- */

.value-stat {
  background: #fbfaf8;
  padding: 2.5rem 2rem;
}

.value-num {
  display: block;
  font-size: clamp(2.6rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #07080b;
  margin-bottom: 1.1rem;
}

.value-stat h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: .55rem;
}

.value-stat p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(7, 8, 11, .52);
}

.pledge {
  border-top: 2px solid #07080b;
  padding-top: 1.35rem;
}
.pledge h4 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: .6rem;
}
.pledge p {
  font-size: 14.2px;
  line-height: 1.68;
  color: rgba(7, 8, 11, .55);
}

/* ---------------- Contact ---------------- */

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid #1c222d;
}
.contact-row dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, .3);
}
.contact-row dd {
  margin: 0;
  font-size: 14.8px;
  font-weight: 500;
  text-align: right;
  color: rgba(244, 242, 237, .82);
}

/* <address> is italic by default in every browser; the rest of the site isn't. */
address {
  font-style: normal;
  line-height: 1.5;
}

.field { display: flex; flex-direction: column; gap: .5rem; }

.field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(244, 242, 237, .55);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: #f4f2ed;
  background: #0b0d12;
  border: 1px solid #232a35;
  border-radius: 12px;
  padding: .8rem 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.field textarea { resize: vertical; min-height: 108px; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(244, 242, 237, .22); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--honey-500);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, .12);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 17px;
  padding-right: 2.5rem;
}
.field select option { background: #0b0d12; }

.field.is-invalid input,
.field.is-invalid textarea { border-color: #f87171; }

.err {
  font-size: 12px;
  color: #fca5a5;
  min-height: 0;
  display: none;
}
.field.is-invalid .err { display: block; }

/* ---------------- Footer ---------------- */

.footer-head {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, .32);
  margin-bottom: 1rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-list a {
  font-size: 14px;
  color: rgba(244, 242, 237, .58);
  transition: color .25s var(--ease);
}
.footer-list a:hover { color: var(--honey-400); }
.footer-list li { font-size: 14px; }

/* ---------------- Reveal on scroll ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .scroll-line { display: none; }

  /* Mockup contents normally arrive via staggered animation — show them outright. */
  .mk-job, .mk-node, .mk-kpi, .mk-tr, .mk-pcard, .mk-pl-row, .mk-msg {
    opacity: 1 !important;
    transform: none !important;
  }
  .mk-bars i  { height: var(--h, 50%) !important; }
  .mk-stroke  { stroke-dashoffset: 0 !important; }
  .mk-area    { opacity: 1 !important; }

  /* Both pinned scenes unpin into ordinary vertical sections. */
  #scene, #gallery { height: auto !important; }
  #scene > div, #gallery > div {
    position: static !important;
    height: auto !important;
    display: block !important;
    padding-block: 3.5rem;
  }
  #gallery-track {
    flex-direction: column !important;
    width: auto !important;
    gap: 4.5rem;
    transform: none !important;
    padding-inline: 1.5rem;
  }
  .slide { width: 100% !important; }
  .slide-inner { grid-template-columns: 1fr !important; padding-inline: 0 !important; }
  .slide-copy, .slide-visual { opacity: 1 !important; transform: none !important; }

  .cost-card, .cost-total {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cost-card  { margin-bottom: .65rem !important; }
  .cost-total { margin-top: 1.1rem !important; }
  #solution-card, #copy-solution, #copy-problem {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .scene-visual { height: auto !important; }
}
