/* RoBytes one-pager · final brand (direction J "Honeycomb")
   Hex Loop mark · "RoBytes" wordmark in Michroma · holographic cyan → violet → pink on deep space.
   Slogan: "No gaps. Just flow." */

:root {
  /* color */
  --bg: #070A12;                       /* deep space */
  --surface: rgba(16, 20, 40, .62);
  --line: rgba(160, 150, 255, .15);
  --ink: #EAF0FF;
  --muted: #8E97B2;
  --acc: #3EE7FF;                      /* holo cyan */
  --acc2: #FF6BD5;                     /* holo pink */
  --acc3: #B26BFF;                     /* holo violet */
  --on-acc: #070A12;
  --holo: linear-gradient(90deg, #3EE7FF, #B26BFF 60%, #FF6BD5);
  --holo-diag: linear-gradient(135deg, #3EE7FF, #B26BFF 60%, #FF6BD5);
  --glow: rgba(178, 107, 255, .18);
  --glow2: rgba(62, 231, 255, .12);
  /* type */
  --f-display: "Unbounded", "Segoe UI", sans-serif;
  --f-wordmark: "Michroma", "Segoe UI", sans-serif;
  --f-body: "Manrope", system-ui, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  /* shape + layout */
  --hex: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  --radius: 12px;
  --btn-radius: 10px;
  --nav-h: 78px;
  --maxw: 1160px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h) }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--f-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px }
.inner { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r) }
.muted { color: var(--muted) }

/* ---------- background layers ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55 }  /* background field kept dim so it never competes with content */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background:
    radial-gradient(900px 600px at 78% 18%, var(--glow), transparent 70%),
    radial-gradient(700px 500px at 8% 85%, var(--glow2), transparent 70%);
}
/* pointer spotlight over the field */
.bg-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(62, 231, 255, .05), rgba(178, 107, 255, .025) 40%, transparent 70%) }
/* faint scanlines + edge vignette for a screen-like, digital surface */
body::after { content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(234, 240, 255, .022) 2px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45) 100%) }
main, .nav, .foot { position: relative; z-index: 1 }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px);
  background: transparent }
/* invisible frosted layer: text scrolling under the nav is softly blurred, and the blur fades out at the
   bottom so there is no visible edge or bar */
.nav::before { content: ""; position: absolute; inset: 0 0 -22px 0; z-index: -1; pointer-events: none;
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent) }
.nav .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h) }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none }
.brand .mark { width: 58px; height: 58px; flex: none; filter: drop-shadow(0 0 10px rgba(178, 107, 255, .35)) }
.wordmark { font-family: var(--f-wordmark); font-weight: 400; letter-spacing: .03em; font-size: 27px; line-height: 1; white-space: nowrap }
.nav nav { display: flex; align-items: center; gap: 26px }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s }
.nav nav a:not(.btn):hover { color: var(--ink) }
/* every item in the top bar uses the same type: Manrope 500, 15px */
.nav nav a.nav-login { padding: 9px 4px }
.nav nav .btn-sm { font-weight: 500; font-size: 15px; letter-spacing: 0 }
.nav .inner { justify-content: flex-start }
.nav nav { margin-left: auto }

/* ---------- narrow screens: three-line menu button on the left, drop-down panel ---------- */
.menu-toggle { display: none; flex: none; width: 44px; height: 44px; padding: 0; cursor: pointer; place-items: center; align-content: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--bg) 35%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { border-color: color-mix(in srgb, var(--acc3) 70%, transparent) }
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--holo); transition: transform .3s, opacity .2s }
.menu-toggle span:nth-child(2) { width: 14px; justify-self: start; margin-left: 11px }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0 }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

.mmenu { position: absolute; top: calc(100% - 4px); left: var(--gutter); right: var(--gutter-r); z-index: 20; display: grid; gap: 2px; padding: 10px;
  max-width: 420px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--acc3) 30%, transparent);
  background: radial-gradient(400px 200px at 0% 0%, rgba(178, 107, 255, .16), transparent 70%), color-mix(in srgb, var(--bg) 50%, transparent);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  transform-origin: top left; opacity: 0; transform: translateY(-6px) scale(.97);
  clip-path: inset(0 0 100% 0 round 18px);
  transition: clip-path .45s cubic-bezier(.22, .9, .25, 1), transform .45s cubic-bezier(.22, .9, .25, 1), opacity .3s ease }
.mmenu.open { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 18px) }
/* items drift in one after another as the panel unrolls */
.mmenu > a, .mmenu-actions { opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .35s cubic-bezier(.22, .9, .25, 1) }
.mmenu.open > a, .mmenu.open .mmenu-actions { opacity: 1; transform: none }
.mmenu.open > a:nth-child(1) { transition-delay: .06s } .mmenu.open > a:nth-child(2) { transition-delay: .1s }
.mmenu.open > a:nth-child(3) { transition-delay: .14s } .mmenu.open > a:nth-child(4) { transition-delay: .18s }
.mmenu.open .mmenu-actions { transition-delay: .22s }
.mmenu > a { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 12px; text-decoration: none;
  font: 500 15px/1 var(--f-body); color: var(--muted) }  /* same type as the top bar links */
.mmenu > a:hover, .mmenu > a:focus-visible { color: var(--ink); background: color-mix(in srgb, var(--acc3) 14%, transparent) }
.mmenu .hexdot { width: 10px; height: 12px; flex: none; background: var(--holo-diag); clip-path: var(--hex) }
.mmenu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 2px 2px; margin-top: 6px; border-top: 1px solid var(--line) }
.mmenu-actions .btn { font-weight: 500; font-size: 15px; padding: 13px 16px }
/* gradient buttons have no border at all (padding grows 1px to keep the same size), so nothing can show at their edges */
.btn:not(.btn-ghost) { border: 0; padding: 16px 23px }
.btn-sm:not(.btn-ghost) { padding: 11px 17px }
.btn-lg:not(.btn-ghost) { padding: 19px 27px }
.mmenu-actions .btn:not(.btn-ghost) { padding: 14px 17px }

@media (max-width: 900px) {
  .menu-toggle { display: grid }
  .nav .inner { gap: 12px }
  .nav nav a:not(.btn) { display: none }
}
@media (min-width: 900.02px) { .mmenu { display: none !important } }
@media (max-width: 640px) {
  .brand { gap: 10px } .brand .mark { width: 40px; height: 40px } .wordmark { font-size: 17px }
  /* compact "Book a call" so it always stays on one line next to the logo */
  .nav nav .btn-sm:not(.btn-ghost) { font-size: 13px; padding: 8px 12px; border-radius: 9px; white-space: nowrap }
}
@media (max-width: 380px) {
  .nav .inner { gap: 10px }
  .brand { gap: 8px } .brand .mark { width: 34px; height: 34px } .wordmark { font-size: 15px }
  .menu-toggle { width: 40px; height: 40px }
  .nav nav .btn-sm:not(.btn-ghost) { font-size: 12px; padding: 7px 10px }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--holo); color: var(--on-acc); text-decoration: none;
  font: 700 15px/1 var(--f-body); padding: 15px 22px; border-radius: var(--btn-radius);
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s;
  background-origin: border-box; background-repeat: no-repeat;  /* no gradient sliver repeating at the edges */
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -6px var(--acc3) }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line) }
.btn-ghost:hover { border-color: var(--acc); box-shadow: none }
.btn-sm { padding: 10px 16px; font-size: 14px }
.btn-lg { padding: 18px 26px; font-size: 17px; overflow-wrap: anywhere; text-align: center }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; margin: 0 }
h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.05 }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1 }
h3 { font-size: 20px; line-height: 1.25 }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 600 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px var(--acc); animation: pulse 2.4s ease-in-out infinite }
@keyframes pulse { 50% { opacity: .35 } }
.lede { margin: 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 54ch }

/* ---------- sections: each one is a full screen page that snaps into place ---------- */
.hero, .section {
  min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(56px, 9vw, 110px); scroll-snap-align: start; scroll-snap-stop: always;
}
.hero > .inner, .section > .inner { width: 100% }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px) }
@media (min-width: 900px) and (min-height: 600px) {
  html { scroll-snap-type: y mandatory }
  .hero, .section { padding-block: 32px }
  .section-head { margin-bottom: clamp(24px, 3vh, 40px) }
}
@media (max-width: 899.98px), (max-height: 599.98px) { html { scroll-snap-type: y proximity } }

/* ---------- hero + honeycomb ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr) } }
.hero-copy { display: grid; gap: 26px; justify-items: start }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px }

.hive { display: grid; gap: 14px; justify-items: center; margin: 0; min-width: 0 }
.hive svg { width: 100%; max-width: 460px; height: auto; overflow: visible }
.hive .hx { fill: color-mix(in srgb, var(--acc3) 9%, #0B0F1E); stroke: color-mix(in srgb, var(--acc) 38%, transparent); stroke-width: 1.6 }
.hive .cell { animation: snap .9s cubic-bezier(.2, .9, .25, 1.15) backwards; animation-delay: var(--d) }
.hive .cell:hover .hx { stroke: var(--acc); fill: color-mix(in srgb, var(--acc) 10%, var(--surface)) }
.hive .nm { font: 600 15px var(--f-display); fill: var(--ink); text-anchor: middle }
.hive .sb { font: 500 10.5px var(--f-mono); fill: var(--muted); text-anchor: middle }
.hive .core-hx { fill: color-mix(in srgb, var(--acc3) 14%, var(--bg)); stroke: url(#g-holo); stroke-width: 2.5; filter: drop-shadow(0 0 14px rgba(178, 107, 255, .45)) }
.hive .seam { fill: none; stroke: url(#g-holo); stroke-width: 1.5; opacity: 0; stroke-dasharray: 6 8; animation: seam 1.2s 1s ease-out forwards }
.hive figcaption { font: 600 13px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
@keyframes snap { from { transform: translate(var(--ox), var(--oy)); opacity: .25 } }
@keyframes seam { to { opacity: .35 } }

/* ---------- beyond the chatbot: chat -> agents -> skills ---------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end }
@media (max-width: 860px) { .levels { grid-template-columns: minmax(0, 1fr); align-items: stretch } }
.level { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px) }
.level p { margin: 0; color: var(--muted); font-size: 15.5px }
.level .lv { font: 600 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.level:first-child { opacity: .78 }
.level.up { min-height: 180px; border-color: color-mix(in srgb, var(--acc) 35%, var(--line)) }
.level.top { min-height: 215px; border-color: color-mix(in srgb, var(--acc2) 55%, var(--line));
  background: radial-gradient(320px 200px at 100% 0%, var(--glow), transparent 70%), var(--surface);
  box-shadow: 0 20px 60px -30px var(--acc2) }
.level.up .lv { color: var(--acc) }
.level.top .lv { color: var(--acc2) }
.level h3::before { content: ""; display: inline-block; width: 14px; height: 16px; margin-right: 10px; vertical-align: -1px; background: var(--line); clip-path: var(--hex) }
.level.up h3::before { background: var(--acc) }
.level.top h3::before { background: var(--holo-diag) }

/* people-first statement under the Hive cards */
.people { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 0; max-width: 820px; color: var(--muted); font-size: 16px; line-height: 1.55 }
.people b { color: var(--ink); font-weight: 600 }
.people .hexdot { width: 14px; height: 16px; flex: none; margin-top: 4px; background: var(--holo-diag); clip-path: var(--hex) }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px }
@media (max-width: 1040px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 580px) { .cards { grid-template-columns: minmax(0, 1fr) } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: grid; gap: 12px; align-content: start; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .25s, transform .25s }
.card:hover { border-color: color-mix(in srgb, var(--acc) 55%, transparent); transform: translateY(-3px) }
.card p { margin: 0; color: var(--muted); font-size: 15.5px }
.ico { width: 52px; height: 52px; padding: 12px; margin-bottom: 4px; fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: color-mix(in srgb, var(--acc) 12%, transparent); clip-path: var(--hex) }

/* ---------- in action: workflow log ---------- */
.inaction-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center }
.inaction-grid .section-head { margin-bottom: 0 }
@media (max-width: 860px) { .inaction-grid { grid-template-columns: minmax(0, 1fr) } }
.run { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; min-width: 0;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.45), 0 0 0 1px color-mix(in srgb, var(--acc) 8%, transparent) inset }
.run figcaption { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px/1 var(--f-mono); color: var(--muted) }
.run .lights { display: flex; gap: 6px }
.run .lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--line) }
.run .tag { margin-left: auto; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase }
.run ol { list-style: none; margin: 0; padding: 14px 16px 18px; display: grid; gap: 4px; font: 400 13.5px/1.55 var(--f-mono) }
.run li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line) }
.run li:last-child { border-bottom: 0 }
.run .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px }
.run .ev { color: var(--acc2); min-width: 6ch; font-weight: 600 }
.run .ev.ok { color: var(--acc) }
.run b { color: var(--ink); font-weight: 600 }
.js-anim .run li { opacity: .18; transition: opacity .5s, transform .5s; transform: translateX(-4px) }
.js-anim .run li.on { opacity: 1; transform: none }
@media (max-width: 480px) { .run li { grid-template-columns: auto minmax(0, 1fr) } .run .t { display: none } }

/* ---------- approach ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr) } }
.steps li { padding: 28px 28px 8px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start }
.steps .num { display: grid; place-items: center; width: 46px; height: 52px; font: 600 14px/1 var(--f-mono); letter-spacing: .1em;
  color: var(--on-acc); background: var(--holo-diag); clip-path: var(--hex) }
.steps p { margin: 0; color: var(--muted); max-width: 36ch }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 1040px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 580px) { .steps-4 { grid-template-columns: minmax(0, 1fr) } }

/* ---------- contact + footer ---------- */
.contact-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 100% 0%, var(--glow), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, var(--glow2), transparent 70%),
    var(--surface);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px) }
.contact-box > div { display: grid; gap: 12px; flex: 1 1 380px; min-width: 0 }
.contact-box p { margin: 0; color: var(--muted); max-width: 48ch }
.foot { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); scroll-snap-align: end }
.foot .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px }

/* ---------- holo edges: a gradient border that comes alive on hover ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg }
.card, .level, .run, .contact-box { position: relative }
.card::before, .level::before, .run::before, .contact-box::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), #3EE7FF, #B26BFF, #FF6BD5, #3EE7FF);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s; animation: holo-spin 5s linear infinite }
.card:hover::before, .level:hover::before, .level.top::before, .run::before, .contact-box::before { opacity: 1 }
.run::before, .contact-box::before { opacity: .55 }
@keyframes holo-spin { to { --ang: 360deg } }

/* code-style section labels */
.section .eyebrow::before { content: "//"; margin-right: 2px; opacity: .7 }

/* ---------- section dots ---------- */
.dots { position: fixed; z-index: 15; right: max(18px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%);
  display: grid; gap: 12px; list-style: none; margin: 0; padding: 0 }
.dots a { display: block; width: 10px; height: 12px; background: var(--line); transition: background .25s, transform .25s; clip-path: var(--hex) }
.dots a:hover { background: var(--muted) }
.dots a[aria-current="true"] { background: var(--acc); transform: scale(1.35) }
@media (max-width: 899.98px) { .dots { display: none } }

/* ---------- auto-scroll: progress line under the nav + pause button ---------- */
/* the countdown is a comet that flies across the page, behind the text, once every 6s.
   Each pass picks a random direction and a gentle curve (animated in site.js); it is soft so it never competes with the words. */
.comet-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden }
.comet { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; will-change: transform }
.comet::before { content: ""; position: absolute; right: 0; top: -1px; width: 260px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 213, .18) 35%, rgba(178, 107, 255, .45) 70%, rgba(62, 231, 255, .8) 94%, #FFFFFF) }
.comet::after { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 0 6px 2px rgba(62, 231, 255, .8), 0 0 18px 6px rgba(178, 107, 255, .4) }
.auto-paused .comet { display: none }
/* manual up / down buttons, bottom-right */
.pager { position: fixed; z-index: 16; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 6px }
.pager button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, background .2s }
.pager button:hover { border-color: var(--acc); background: color-mix(in srgb, var(--acc3) 25%, var(--bg)) }
.pager svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
/* short status message when auto-scroll is paused or resumed */
.autotoast { position: fixed; z-index: 17; right: calc(max(14px, env(safe-area-inset-right, 0px)) + 46px); bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent);
  font: 600 12px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none }
.autotoast.show { opacity: 1; transform: none }


@media (prefers-reduced-motion: reduce) {
  .mmenu, .mmenu > a, .mmenu-actions { transition: none }
  html { scroll-behavior: auto }
  .eyebrow .dot, .hive .cell, .hive .seam, .card::before, .level::before, .run::before, .contact-box::before { animation: none }
  .hive .seam { opacity: .35 }
  .btn, .card { transition: none }
}

/* ---------- phones: compact layout so each section fits one screen ---------- */
@media (max-width: 640px) {
  .hero, .section { padding-block: 18px }
  h1 { font-size: 33px; line-height: 1.06 }
  h2 { font-size: 23px; line-height: 1.15 }
  h3 { font-size: 15px }
  .eyebrow { font-size: 10.5px; letter-spacing: .1em }
  .lede { font-size: 14px; line-height: 1.5 }
  .section-head { gap: 8px; margin-bottom: 14px }

  /* hero */
  .hero-grid { gap: 14px }
  .hero-copy { gap: 14px }
  .ctas { margin-top: 0; gap: 10px }
  .ctas .btn { padding: 12px 16px; font-size: 14px }
  .hive { gap: 6px }
  .hive svg { max-width: 300px }
  .hive figcaption { font-size: 11px }

  /* four-card sections become a compact 2 x 2 grid */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
  .card { padding: 12px; gap: 6px; border-radius: 10px }
  .card p { font-size: 12px; line-height: 1.42 }
  .ico { width: 34px; height: 34px; padding: 8px; margin-bottom: 0 }

  /* chatbot -> agents -> skills */
  .levels { gap: 8px }
  .level { padding: 12px 14px; gap: 5px; border-radius: 10px }
  .level.up, .level.top { min-height: 0 }
  .level p { font-size: 12.5px; line-height: 1.45 }
  .level .lv { font-size: 10px }

  /* people-first statement */
  .people { margin-top: 12px; font-size: 13px; line-height: 1.45; gap: 10px }
  .people .hexdot { width: 11px; height: 13px; margin-top: 3px }

  /* in action */
  .inaction-grid { gap: 14px }
  .run ol { padding: 10px 12px 12px; font-size: 12px }
  .run li { padding: 4px 0 }

  /* how we work: 2 x 2 steps */
  .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px }
  .steps li { padding: 14px 0 6px; gap: 6px }
  .steps .num { width: 34px; height: 38px; font-size: 12px }
  .steps p { font-size: 12.5px; line-height: 1.45 }

  /* contact */
  .contact-box { padding: 22px; gap: 18px }
  .contact-box p { font-size: 14px }
}
@media (max-width: 640px) {
  #hive .section-head { margin-bottom: 10px }
  #hive .card { padding: 10px 11px; gap: 4px }
  #hive .card p, #services .card p { font-size: 11.5px; line-height: 1.4 }
  .people { font-size: 12.5px; margin-top: 10px }
}
@media (max-width: 380px) {
  #hive h2 { font-size: 21px }
  #hive .lede { font-size: 13px; line-height: 1.45 }
  #hive .card p { font-size: 11px; line-height: 1.38 }
  #hive .ico { width: 30px; height: 30px; padding: 7px }
  .people { font-size: 12px }
}

/* ---------- phones: sizes follow the real screen height (browser bars included via svh) ---------- */
@media (max-width: 640px) {
  h1 { font-size: clamp(24px, 4.1svh, 29px); line-height: 1.07 }
  h2 { font-size: clamp(18px, 2.9svh, 21px); line-height: 1.17 }
  #hive h2 { font-size: clamp(17px, 2.7svh, 20px) }
  h3 { font-size: clamp(13px, 2svh, 14.5px) }
  .lede { font-size: clamp(12px, 1.85svh, 13.5px); line-height: 1.45 }
  #hive .lede { font-size: clamp(11.5px, 1.75svh, 13px) }
  .eyebrow { font-size: clamp(9.5px, 1.45svh, 10.5px) }
  .hero-copy { gap: clamp(8px, 1.6svh, 14px) }
  .hero-grid { gap: clamp(8px, 1.4svh, 14px) }
  .ctas .btn { padding: clamp(9px, 1.4svh, 12px) 15px; font-size: 13.5px }
  /* honeycomb shrinks to whatever height is left under the hero text */
  .hive svg { max-width: clamp(170px, calc((100svh - 470px) * 1.06), 290px) }
  .hive figcaption { display: none }
  .card p, #hive .card p, #services .card p { font-size: clamp(10.5px, 1.6svh, 11.5px); line-height: 1.38 }
  .level p, .steps p { font-size: clamp(11px, 1.7svh, 12.5px) }
  .people { font-size: clamp(11.5px, 1.7svh, 12.5px) }
  .section-head { margin-bottom: clamp(8px, 1.5svh, 14px) }
  .hero, .section { padding-block: clamp(10px, 2svh, 18px) }

  /* up/down buttons: smaller and see-through so they don't cover text */
  .pager { gap: 4px; opacity: .7 }
  .pager button { width: 28px; height: 28px; border-radius: 8px }
  .pager svg { width: 13px; height: 13px }
}
/* short phone screens: the Hive cards already explain it, so drop the intro sentence */
@media (max-width: 640px) and (max-height: 700px) {
  #hive .section-head .lede { display: none }
}
