/* =========================================================
   Ashgrove Systems — styles
   Light, airy theme with a bright blue accent, bold type,
   full-bleed sections, soft shadows.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f5f8fc;
  --bg-3: #edf3fa;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --line: rgba(15, 27, 46, 0.08);
  --line-strong: rgba(15, 27, 46, 0.14);

  --text: #0f1b2e;
  --muted: #526079;
  --muted-2: #7c8aa0;

  --blue: #2b78e4;          /* accent text + fills (AA on white) */
  --blue-bright: #4d9bff;   /* highlights, gradients */
  --blue-light: #9cc8ff;
  --blue-deep: #1b5fc4;
  --blue-ink: #0d3b7a;
  --blue-glow: rgba(43, 120, 228, 0.32);
  --blue-soft: rgba(43, 120, 228, 0.10);
  --blue-tint: #eaf2ff;

  --amber: #a86200;
  --amber-bg: rgba(255, 184, 77, 0.18);
  --amber-line: rgba(200, 130, 0, 0.45);
  --green: #1a8f55;

  --shadow-soft: 0 20px 60px -24px rgba(15, 27, 46, 0.18);
  --shadow-card: 0 10px 30px -18px rgba(15, 27, 46, 0.18);
  --shadow-float: 0 40px 90px -40px rgba(15, 27, 46, 0.28), 0 0 70px -30px var(--blue-glow);

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  /* No scroll-behavior: smooth here. Lenis handles smooth scrolling and
     the two fight each other when both are on. */
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--blue-light); color: var(--text); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 10px;
  font-weight: 600; z-index: 100; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- background glows ---------- */
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .9;
  will-change: transform;
}
.glow-1 { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; top: -22vw; right: -14vw; background: radial-gradient(circle, rgba(77,155,255,.26), transparent 65%); }
.glow-2 { width: 50vw; height: 50vw; max-width: 640px; max-height: 640px; bottom: -25vw; left: -15vw; background: radial-gradient(circle, rgba(156,200,255,.3), transparent 65%); }

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft), 0 0 16px var(--blue-glow);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-top: 18px;
  color: var(--text);
}
.section-title em, .hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue-deep), var(--blue) 55%, var(--blue-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
  margin-top: 20px; max-width: 60ch; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem);
}
.section-sub a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.section-head { max-width: 820px; }

.todo { color: var(--amber); }
.todo-note {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--amber);
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
  isolation: isolate;
}
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 28px -10px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, var(--blue), var(--blue-ink)); opacity: 0; transition: opacity .3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary svg { transition: transform .3s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  background: rgba(255,255,255,.7); border-color: var(--line-strong); color: var(--text);
  backdrop-filter: blur(8px); box-shadow: var(--shadow-card);
}
.btn-ghost:hover { background: #fff; border-color: rgba(43,120,228,.45); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(15,27,46,.25);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; color: var(--text); }
.brand b { font-weight: 700; color: var(--blue); }
.brand img { filter: drop-shadow(0 6px 14px rgba(43,120,228,.25)); }

.nav { display: flex; gap: 6px; }
.nav a {
  position: relative; padding: 8px 12px; font-size: 14.5px; font-weight: 500; color: var(--muted);
  border-radius: 10px; white-space: nowrap; transition: color .25s, background .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  box-shadow: var(--shadow-card);
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(76px + clamp(48px, 9vh, 110px)) 0 clamp(60px, 8vh, 100px);
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15,27,46,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,27,46,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 7.2vw, 6.6rem);
  line-height: .98;
  letter-spacing: -0.04em;
  margin-top: 22px;
  color: var(--text);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { margin-top: 26px; max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; color: var(--muted-2); font-size: 14px; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }

.hero-visual { position: relative; }
.hero-visual-glow {
  position: absolute; inset: -10% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(77,155,255,.28), transparent 62%);
  filter: blur(30px);
}

/* window frames (shared by hero + case study) */
.flow-window, .board-window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 7px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.win-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(15,27,46,.12); }
.win-dot:first-child { background: #ff8a80; }
.win-dot:nth-child(2) { background: #ffd166; }
.win-dot:nth-child(3) { background: #7bd98f; }
.win-title { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.win-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-tint); border: 1px solid rgba(43,120,228,.2);
  padding: 4px 10px; border-radius: 999px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .5; } }

/* order flow */
.flow { position: relative; padding: 22px 22px 10px 22px; }
.flow-rail {
  position: absolute; top: 44px; bottom: 54px; left: calc(22px + 23px); width: 2px;
  background: rgba(15,27,46,.08); border-radius: 2px;
}
.flow-rail-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue-deep));
  box-shadow: 0 0 12px var(--blue-glow);
  transform: scaleY(0); transform-origin: top;
}
.flow-packet {
  position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; margin-top: -6px;
  border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 4px rgba(43,120,228,.2), 0 0 22px 4px var(--blue-glow);
  opacity: 0;
}
.flow-step {
  position: relative; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px;
  padding: 10px 0; transition: opacity .3s;
}
.flow-step + .flow-step { margin-top: 2px; }
.flow-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-strong); color: var(--muted);
  position: relative; z-index: 1; box-shadow: var(--shadow-card);
  transition: color .35s, border-color .35s, box-shadow .35s, background .35s, transform .35s var(--ease);
}
.flow-icon svg { width: 22px; height: 22px; }
.flow-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flow-text strong { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; color: var(--text); }
.flow-text span { font-size: 13px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-status {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted-2); background: var(--bg-2); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  transition: color .3s, background .3s, border-color .3s;
}
.flow-step.is-active .flow-icon {
  color: #fff; border-color: var(--blue); background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  box-shadow: 0 0 0 4px var(--blue-soft), 0 10px 26px -8px var(--blue-glow); transform: scale(1.06);
}
.flow-step.is-done .flow-icon { color: var(--blue); border-color: rgba(43,120,228,.35); background: var(--blue-tint); }
.flow-step.is-done .flow-status, .flow-step.is-active .flow-status {
  color: var(--blue); background: var(--blue-tint); border-color: rgba(43,120,228,.25);
}
.flow-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 22px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
  background: var(--bg-2);
}
.flow-timer { font-family: var(--font-display); font-weight: 700; color: var(--blue); }


/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2); padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: -.01em;
  color: var(--muted);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; }
.marquee-track i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* services */
.services {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 72px);
}
.service-card {
  grid-column: span 3;
  position: relative; padding: 30px 28px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  overflow: hidden; transition: border-color .35s, transform .5s var(--ease), box-shadow .5s var(--ease);
  --mx: 50%; --my: 50%;
}
.service-card-wide { grid-column: span 6; }
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(77,155,255,.14), transparent 45%);
}
.service-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(43,120,228,.6), transparent 50%);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude; -webkit-mask-composite: xor; padding: 1px;
}
.service-card:hover { border-color: rgba(43,120,228,.3); transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.service-card:hover::before, .service-card:hover::after { opacity: 1; }
.service-num {
  position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: .1em; color: var(--muted-2);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-tint); border: 1px solid rgba(43,120,228,.18); color: var(--blue);
  box-shadow: 0 10px 22px -12px var(--blue-glow); transition: transform .4s var(--ease);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; margin-top: 22px; color: var(--text); }
.service-card p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.service-card-wide p { max-width: 70ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li {
  font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2);
}

/* case study */
.section-case {
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(77,155,255,.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.case-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.case-steps { margin-top: 30px; display: grid; gap: 10px; }
.case-steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; color: var(--text); }
.case-steps span {
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--blue);
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--blue-tint); border: 1px solid rgba(43,120,228,.18); flex: none;
}
.case-line { margin-top: 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: var(--text); }
.case-proof { margin-top: 34px; display: grid; gap: 18px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
}
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1; }
.stat-num small { font-size: .55em; color: var(--blue); margin-left: .05em; }
.stat-label { color: var(--muted); font-size: 15px; line-height: 1.35; }
.quote { margin: 0; padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-strong); position: relative; box-shadow: var(--shadow-card); }
.quote::before { content: "“"; position: absolute; top: 4px; left: 16px; font-family: var(--font-display); font-size: 56px; line-height: 1; color: rgba(43,120,228,.25); }
.quote p { font-size: 1.05rem; padding-left: 24px; }
.quote cite { display: block; margin-top: 10px; padding-left: 24px; font-style: normal; font-size: 13.5px; color: var(--muted-2); }

.case-visual { position: relative; }
/* BiteBoard mock: mirrors the real app's Orders screen (Inter, #f6f8fa canvas, indigo accent) */
.bb {
  --bbi: #4f46e5; --bbi-soft: #eef2ff; --bb-line: #e5e7eb; --bb-text: #1f2937; --bb-mute: #6b7280; --bb-faint: #9ca3af;
  display: flex; background: #f6f8fa; color: var(--bb-text); font-family: var(--font-body); font-size: 11px; line-height: 1.3;
  min-height: 340px; text-align: left;
}
.bb svg { width: 1em; height: 1em; flex: none; }
.bb-side {
  width: 44px; flex: none; background: #fff; border-right: 1px solid var(--bb-line);
  display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 2px;
}
.bb-brand { color: var(--bbi); font-size: 16px; padding: 4px 0 10px; margin-bottom: 6px; border-bottom: 1px solid var(--bb-line); width: 28px; display: flex; justify-content: center; }
.bb-tab { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--bb-mute); font-size: 13px; }
.bb-tab.is-active { background: var(--bbi); color: #fff; }
.bb-tab-home { margin-top: auto; border-top: 1px solid var(--bb-line); border-radius: 0; width: 28px; padding-top: 8px; height: auto; }
.bb-main { flex: 1; min-width: 0; padding: 14px 14px 12px; }
.bb-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.bb-title svg { color: var(--bbi); font-size: 13px; }
.bb-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bb-search { flex: 1; min-width: 150px; max-width: 230px; display: flex; align-items: center; gap: 7px; padding: 6px 9px; background: #fff; border: 1px solid var(--bb-line); border-radius: 6px; color: var(--bb-faint); font-size: 10.5px; white-space: nowrap; overflow: hidden; }
.bb-pill { background: var(--bbi-soft); color: #4338ca; border-radius: 999px; padding: 4px 9px; font-weight: 600; font-size: 10px; white-space: nowrap; }
.bb-key { display: flex; align-items: center; gap: 9px; padding: 4px 8px; background: #fff; border: 1px solid var(--bb-line); border-radius: 6px; font-size: 9.5px; color: #374151; white-space: nowrap; }
.bb-key b { font-weight: 600; color: var(--bb-mute); text-transform: uppercase; letter-spacing: .04em; font-size: 8.5px; }
.bb-key span { display: inline-flex; align-items: center; gap: 5px; }
.bb-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; background: #fff; border: 1px solid var(--bb-line); border-radius: 6px; font-size: 10px; font-weight: 500; color: #374151; white-space: nowrap; }
.bb-ind { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.bb-ind-orange { background: #eab308; }
.bb-ind-red { background: #dc2626; }
.bb-card { background: #fff; border: 1px solid var(--bb-line); border-radius: 8px; overflow: hidden; }
.bb-card table { width: 100%; border-collapse: collapse; }
.bb-card th { text-align: left; font-size: 8.5px; font-weight: 700; color: var(--bb-faint); text-transform: uppercase; letter-spacing: .04em; padding: 7px 10px; border-bottom: 1px solid #eef0f3; background: #f8fafc; white-space: nowrap; }
.bb-card td { font-size: 10.5px; padding: 7px 10px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; white-space: nowrap; }
.bb-card tr:last-child td { border-bottom: 0; }
.bb-row td:first-child { display: flex; align-items: center; gap: 5px; }
.bb-row td strong { font-weight: 600; }
.bb-row td:first-child svg { color: var(--bb-faint); font-size: 9px; transition: transform .3s; }
.bb-row.is-open { background: #f9fafb; }
.bb-row.is-open td:first-child svg { transform: rotate(180deg); color: var(--bbi); }
.bb-ind-cell { width: 20px; padding-left: 0 !important; padding-right: 0 !important; text-align: center; }
.bb-num { text-align: right; font-variant-numeric: tabular-nums; }
.bb-details td { padding: 10px 12px 11px !important; background: #f8fafc !important; border-bottom: 1px solid var(--bb-line) !important; white-space: normal !important; }
.bb-status { display: flex; margin-bottom: 9px; }
.bb-step { display: flex; align-items: flex-start; flex: 1 1 auto; min-width: 0; }
.bb-step:last-child { flex: 0 0 auto; }
.bb-step:last-child .bb-conn { display: none; }
.bb-node { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 52px; flex: none; }
.bb-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d1d5db; background: #fff; display: flex; align-items: center; justify-content: center; color: #fff; box-sizing: border-box; }
.bb-dot svg { width: 9px; height: 9px; }
.bb-lbl { font-size: 8px; text-align: center; line-height: 1.15; color: var(--bb-mute); }
.bb-step.done .bb-dot { background: var(--bbi); border-color: var(--bbi); }
.bb-step.done .bb-lbl { color: #374151; font-weight: 500; }
.bb-step.current .bb-dot { background: var(--bbi-soft); border-color: var(--bbi); box-shadow: 0 0 0 3px rgba(79,70,229,.15); animation: bbpulse 2s ease-in-out infinite; }
.bb-step.current .bb-lbl { color: var(--bbi); font-weight: 600; }
.bb-step.pending .bb-dot { background: #f9fafb; border-color: var(--bb-line); }
.bb-step.pending .bb-lbl { color: var(--bb-faint); }
.bb-conn { flex: 1; height: 2px; background: var(--bb-line); min-width: 6px; margin: 7px -14px 0; }
.bb-step.done .bb-conn { background: var(--bbi); }
@keyframes bbpulse { 0%,100% { box-shadow: 0 0 0 3px rgba(79,70,229,.15); } 50% { box-shadow: 0 0 0 6px rgba(79,70,229,.08); } }
.bb-detail-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 10px; color: var(--bb-mute); }
.bb-detail-meta b { font-weight: 600; color: #374151; margin-right: 4px; }
.bb-sub { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #374151; margin: 12px 0 6px; }
.bb-sub svg { color: #059669; }
.bb-sub span { font-size: 9.5px; font-weight: 600; color: var(--bb-mute); }
.bb-card-done { opacity: .7; }
.board-label { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--muted-2); }

/* how it works */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(44px, 6vw, 80px); }
.step-line { position: absolute; top: 31px; left: 10%; right: 10%; height: 2px; background: rgba(15,27,46,.08); border-radius: 2px; }
.step-line span {
  display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-bright)); box-shadow: 0 0 14px var(--blue-glow);
}
.step { position: relative; padding: 0 8px; }
.step-num {
  position: relative; z-index: 1; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  background: #fff; border: 2px solid rgba(43,120,228,.35); color: var(--blue);
  box-shadow: 0 0 0 8px var(--bg), 0 14px 30px -12px var(--blue-glow); transition: transform .4s var(--ease), background .4s, color .4s;
}
.step:hover .step-num { transform: scale(1.08); background: var(--blue); color: #fff; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; margin-top: 26px; color: var(--text); }
.step p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.step-tag {
  display: inline-block; margin-top: 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-tint); border: 1px solid rgba(43,120,228,.18); padding: 6px 12px; border-radius: 999px;
}

/* about */
.section-about { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-card {
  position: relative; padding: 32px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-float);
  display: grid; gap: 22px;
}
.about-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-2); }
.about-meta { display: grid; gap: 4px; }
.about-meta strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.about-meta span { color: var(--muted); font-size: 15px; }
.about-loc { display: inline-flex; align-items: center; gap: 6px; color: var(--blue) !important; margin-top: 4px; }
.about-text { margin-top: 24px; display: grid; gap: 16px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 62ch; }
.about-facts { margin-top: 30px; display: grid; gap: 10px; }
.about-facts li { display: flex; gap: 12px; font-size: 15px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); }
.about-facts strong { min-width: 90px; color: var(--text); font-weight: 600; }

/* contact */
.section-contact { padding-bottom: clamp(60px, 8vw, 110px); }
.contact-panel {
  position: relative; display: grid; grid-template-columns: 1.3fr .8fr; gap: clamp(32px, 5vw, 70px);
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(77,155,255,.22), transparent 60%),
    linear-gradient(180deg, #f5f9ff, #ffffff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
}
.contact-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15,27,46,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,27,46,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at 80% 20%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 80% 20%, #000, transparent 70%);
}
.contact-copy, .contact-side { position: relative; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.email-link {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.7rem); letter-spacing: -.02em;
  color: var(--blue); word-break: break-all;
  background-image: linear-gradient(var(--blue), var(--blue)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .4s var(--ease);
}
.email-link:hover { background-size: 100% 2px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-card);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.copy-btn:hover { border-color: rgba(43,120,228,.5); transform: translateY(-1px); }
.copy-btn .ico-check { display: none; color: var(--green); }
.copy-btn.is-copied .ico-copy { display: none; }
.copy-btn.is-copied .ico-check { display: block; }
.copy-btn.is-copied { border-color: rgba(26,143,85,.5); }
.contact-list { margin-top: 26px; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.contact-list svg { color: var(--blue); flex: none; }
.contact-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--blue); }

.contact-side h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 14px; color: var(--text); }
.contact-side h3 + ul + h3 { margin-top: 30px; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas li {
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  background: var(--blue-tint); border: 1px solid rgba(43,120,228,.22); color: var(--blue);
}
.areas-more { background: #fff !important; border-color: var(--line-strong) !important; color: var(--muted) !important; font-weight: 500 !important; }
.fit-list { display: grid; gap: 10px; }
.fit-list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 15px; }
.fit-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue-tint); border: 1px solid rgba(43,120,228,.5); box-shadow: 0 0 8px var(--blue-glow);
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 32px; align-items: start; }
.footer-brand p { margin-top: 14px; color: var(--muted-2); font-size: 14px; max-width: 36ch; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { color: var(--muted); font-size: 14.5px; transition: color .25s; }
.footer-nav a:hover { color: var(--blue); }
.footer-legal { display: grid; gap: 8px; color: var(--muted-2); font-size: 13px; justify-self: end; text-align: right; max-width: 40ch; }

/* ---------- reveal defaults (JS animates from these) ---------- */

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .bb-key { display: none; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .site-header.nav-open .nav {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 76px; left: var(--gutter); right: var(--gutter);
    padding: 12px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .site-header.nav-open .nav a { padding: 12px 14px; font-size: 16px; }
  .site-header.nav-open .nav a::after { display: none; }
  .site-header.nav-open { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom-color: var(--line); }

  .hero { min-height: 0; padding-top: calc(76px + 40px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .case-grid, .about-grid, .contact-panel { grid-template-columns: 1fr; }
  .case-visual { order: -1; }
  .about-visual { max-width: 420px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step-line { display: none; }
  .step { display: grid; grid-template-columns: 62px 1fr; column-gap: 20px; }
  .step-num { grid-row: 1 / span 3; }
  .step h3 { margin-top: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { justify-self: start; text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .service-card, .service-card-wide { grid-column: auto; }
  .service-card { padding: 26px 22px; }
  .hero-actions .btn { width: 100%; }
  .flow { padding: 18px 14px 8px; }
  .flow-rail { left: calc(14px + 21px); top: 40px; bottom: 50px; }
  .flow-step { grid-template-columns: 42px 1fr; gap: 12px; }
  .flow-icon { width: 42px; height: 42px; }
  .flow-status { grid-column: 2; justify-self: start; margin-top: -2px; }
  .flow-text span { white-space: normal; }
  .flow-foot { padding: 12px 14px 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .bb-side { display: none; }
  .bb-main { padding: 12px 10px; }
  .bb-col-co, .bb-col-disp { display: none; }
  .bb-search { max-width: none; }
  .bb-btn { display: none; }
  .bb-node { width: 40px; }
  .bb-conn { margin: 7px -8px 0; }
  .win-pill { display: none; }
  .contact-panel { padding: 28px 20px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  .flow-rail-fill { transform: scaleY(1); }
  .flow-packet { display: none; }
  .flow-step .flow-icon { color: var(--blue); border-color: rgba(43,120,228,.35); background: var(--blue-tint); }
  .flow-step .flow-status { color: var(--blue); background: var(--blue-tint); border-color: rgba(43,120,228,.25); }
  .step-line span { transform: scaleX(1); }
  .pulse, .bb-step.current .bb-dot { animation: none; }
}

/* legal pages */
.legal { padding: clamp(120px, 14vw, 170px) 0 clamp(64px, 8vw, 110px); background: linear-gradient(180deg, var(--bg-2), var(--bg) 320px); }
.legal-inner { max-width: 760px; }
.legal-back { display: block; width: fit-content; margin-bottom: 28px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .25s; }
.legal-back:hover { color: var(--blue); }
.legal .section-title { margin-top: 10px; }
.legal-updated { margin-top: 12px; font-size: 14px; color: var(--muted-2); }
.legal-lead { margin-top: 28px; font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--text); }
.legal h2 { margin: 44px 0 12px; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 1.2em; list-style: disc; display: grid; gap: 6px; }
.legal ol { margin: 12px 0; padding-left: 1.5em; list-style: decimal; display: grid; gap: 6px; }
.legal li::marker { color: var(--blue); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a:not(.legal-back) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--blue); }
