/* ==========================================================================
   AcreAI — design system
   Layout concept: calm warm-white canvas, deep forest-green anchors,
   mint used only to mark "automated" moments. Mockups and workflow nodes
   carry the visual interest; type does the rest.
   ========================================================================== */

:root {
  /* Color: from the AcreAI logo (deep navy, electric blue, cyan glow, silver) */
  --navy-950: #020a1f;    /* logo background */
  --navy-900: #071535;    /* primary dark */
  --navy-800: #0e2352;
  --blue-700: #0b5ce6;    /* royal blue: links, accents on light */
  --electric: #1a6dff;    /* electric blue: primary buttons */
  --cyan-400: #2fb6ff;    /* glow highlight */
  --cyan-300: #8fd8ff;
  --cyan-100: #d9eeff;
  --cyan-50:  #eef6ff;
  --silver:   #c9d3e0;
  --bg:       #f6f8fb;    /* cool white */
  --surface:  #ffffff;
  --grey-100: #edf1f7;    /* soft grey sections */
  --grey-200: #e1e7f0;
  --line:     #d8dfea;
  --ink:      #131a2c;    /* charcoal navy */
  --ink-2:    #445067;
  --ink-3:    #66718a;
  --amber-50: #fff5e0;
  --amber-600:#9a6410;

  /* Type */
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-3xl: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem);

  /* Space & shape */
  --space-section: clamp(4rem, 3rem + 4vw, 7rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(7, 21, 53, 0.06);
  --shadow: 0 1px 2px rgba(7, 21, 53, 0.05), 0 8px 24px -8px rgba(7, 21, 53, 0.14);
  --shadow-lg: 0 2px 4px rgba(7, 21, 53, 0.05), 0 24px 60px -20px rgba(7, 21, 53, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
  --brand-gradient: linear-gradient(100deg, var(--blue-700) 0%, var(--electric) 45%, var(--cyan-400) 100%);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
h4 { font-size: var(--fs-md); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.container--narrow { max-width: 860px; }
.section { padding-block: var(--space-section); }
.section--grey { background: var(--grey-100); }
.section--dark { background: var(--navy-900); color: #d5deeb; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }

.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split {
  max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 32px;
}
.lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 62ch; }
.section--dark .lead { color: #aebdd3; }
.muted { color: var(--ink-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-700);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan-400); }
.section--dark .eyebrow { color: var(--cyan-300); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-sm { display: grid; gap: 8px; align-content: start; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--electric); --btn-fg: #fff; --btn-bd: var(--electric);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(7,21,53,.5); }
.btn:hover svg { transform: translateX(2px); }
.btn--primary:hover { --btn-bg: var(--blue-700); --btn-bd: var(--blue-700); box-shadow: 0 10px 28px -10px rgba(26, 109, 255, .7); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--navy-900); --btn-bd: var(--line); }
.btn--secondary:hover { --btn-bd: var(--navy-900); --btn-bg: var(--surface); }
.btn--mint { --btn-bg: var(--cyan-400); --btn-fg: var(--navy-950); --btn-bd: var(--cyan-400); }
.btn--mint:hover { --btn-bg: var(--cyan-300); --btn-bd: var(--cyan-300); box-shadow: 0 10px 28px -10px rgba(47, 182, 255, .8); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.3); }
.btn--ghost-light:hover { --btn-bd: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem; color: var(--navy-800); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.section--dark .link-arrow { color: var(--cyan-300); }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--cyan-50); color: var(--navy-800); border: 1px solid var(--cyan-100);
}
.icon-tile .icon { width: 22px; height: 22px; }
.section--dark .icon-tile { background: rgba(143, 216, 255, .1); border-color: rgba(143, 216, 255, .18); color: var(--cyan-300); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(246, 248, 251, 0.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(7,21,53,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; }
.brand-name span { color: var(--blue-700); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 0.95rem; color: var(--ink-2); transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--grey-100); }
.nav a[aria-current="page"] { color: var(--navy-900); font-weight: 600; background: var(--cyan-50); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; place-items: center;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb0c8; padding-block: 64px 32px; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: var(--cyan-300); }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #c9d3e0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-tagline { margin-top: 14px; max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #7f91ad; }

/* ---------- Placeholders (search "data-placeholder" to find them all) ---------- */
.ph {
  display: inline; padding: 1px 6px; border-radius: 5px;
  background: var(--amber-50); color: var(--amber-600);
  border: 1px dashed #e0b25c; font-family: var(--font-mono); font-size: 0.86em; font-weight: 500;
}
.section--dark .ph, .site-footer .ph { background: rgba(255, 245, 224, .12); color: #f3cd85; border-color: rgba(243, 205, 133, .5); }
.ph-block {
  display: grid; place-items: center; gap: 6px; text-align: center; padding: 20px;
  background: repeating-linear-gradient(-45deg, var(--amber-50), var(--amber-50) 10px, #fffaf0 10px, #fffaf0 20px);
  border: 1.5px dashed #e0b25c; border-radius: var(--radius); color: var(--amber-600);
  font-family: var(--font-mono); font-size: var(--fs-xs);
}
.ph-block strong { font-size: var(--fs-sm); }
.ph-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--amber-50); border: 1px dashed #e0b25c; color: var(--amber-600); font-size: var(--fs-sm);
}
.ph-note .icon { margin-top: 2px; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  background: var(--grey-100); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap;
}
.badge--demo { background: var(--cyan-50); color: var(--navy-800); border-color: var(--cyan-100); }
.badge--concept { background: #f1eefa; color: #4b3f80; border-color: #e1dbf3; }
.badge--workflow { background: #f4f0e8; color: #6b5427; border-color: #e7decd; }
.badge--client { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: var(--fs-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}

/* ---------- Cards ---------- */
.card {
  position: relative; display: grid; gap: 14px; align-content: start; min-width: 0;
  padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card p { color: var(--ink-2); }
.card--hover:hover { border-color: #b6c6dd; box-shadow: var(--shadow); transform: translateY(-2px); }
.card--flat { background: transparent; border-color: var(--line); }
.section--grey .card--flat { background: transparent; }
.section--dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--dark .card p { color: #aebdd3; }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); }
.check-list li::before {
  content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--cyan-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5ce6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section--dark .check-list li { color: #b9c6d8; }
.section--dark .check-list li::before, .service-card--dark .check-list li::before { background-color: rgba(143,216,255,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fd8ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.page-hero .container { display: grid; gap: 18px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 60ch; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(7, 21, 53, .09) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy h1 { max-width: 15ch; font-size: clamp(2.3rem, 1.4rem + 3vw, 3.5rem); }
.hero-copy h1 em { font-style: normal; color: var(--blue-700); position: relative; white-space: nowrap; }
.hero-copy h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.2em; z-index: -1;
  background: var(--cyan-300); border-radius: 3px; opacity: .8;
}
.hero-copy .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.hero-focus { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-3); list-style: none; }
.hero-focus li { display: inline-flex; align-items: center; gap: 7px; }
.hero-focus .icon { width: 16px; height: 16px; color: var(--blue-700); }

/* ---------- Mockup window ---------- */
.mock {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; font-size: 13px;
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--grey-200); background: #fafbfd; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--grey-200); }
.mock-title { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-sample {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); background: var(--grey-100); padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.mock-body { padding: 16px; display: grid; gap: 14px; }

/* hero dashboard */
.dash { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 0; }
.dash-side { border-right: 1px solid var(--grey-200); padding: 14px 10px; display: grid; gap: 4px; align-content: start; background: #fafbfd; }
.dash-side span { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; color: var(--ink-3); font-size: 12px; }
.dash-side span .icon { width: 15px; height: 15px; }
.dash-side span.is-active { background: var(--cyan-50); color: var(--navy-900); font-weight: 600; }
.dash-main { padding: 16px; display: grid; gap: 14px; min-width: 0; }
.dash-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dash-h { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--blue-700); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 0 rgba(47, 182, 255, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,182,255,.55); } 70% { box-shadow: 0 0 0 8px rgba(47,182,255,0); } 100% { box-shadow: 0 0 0 0 rgba(47,182,255,0); } }

.mini-flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 12px; background: var(--grey-100); border-radius: 12px; }
.mini-flow::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, #b7c4d8 0 6px, transparent 6px 11px);
}
.mini-flow .packet {
  position: absolute; top: 30px; left: 12%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan-400); box-shadow: 0 0 0 4px rgba(47,182,255,.25);
  animation: travel 4.5s var(--ease) infinite;
}
@keyframes travel { 0% { left: 12%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: 86%; opacity: 0; } }
.mini-node { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.mini-node b {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line); color: var(--navy-800); box-shadow: var(--shadow-sm);
}
.mini-node b .icon { width: 18px; height: 18px; }
.mini-node.is-ai b { background: var(--navy-900); color: var(--cyan-300); border-color: var(--navy-900); }
.mini-node small { font-size: 10.5px; line-height: 1.25; color: var(--ink-2); font-weight: 500; }

.lead-table { display: grid; border: 1px solid var(--grey-200); border-radius: 12px; overflow: hidden; }
.lead-table > div { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--grey-200); }
.lead-table > div:first-child { border-top: 0; background: #fafbfd; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.lead-table strong { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-table small { color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.status--hot { background: var(--cyan-100); color: var(--navy-800); }
.status--book { background: #f1eefa; color: #4b3f80; }
.status--nurture { background: #f4efe5; color: #6b5427; }
.status--human { background: #fdeee7; color: #8a3d1f; }

.float-card {
  position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: 12px; display: grid; gap: 6px; max-width: 230px;
}
.hero-visual { position: relative; padding: 24px 0 84px 24px; }
.hero-visual .float-card--chat { left: -8px; bottom: 0; animation: floaty 6s ease-in-out infinite; }
.hero-visual .float-card--task { right: -10px; top: 0; animation: floaty 6s ease-in-out 1.5s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.float-card .fc-head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.float-card .fc-head .icon-tile { width: 26px; height: 26px; border-radius: 8px; }
.float-card .fc-head .icon-tile .icon { width: 14px; height: 14px; }
.float-card p { color: var(--ink-2); line-height: 1.45; }

/* ---------- Chat mockup ---------- */
.chat { display: grid; gap: 10px; align-content: start; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; font-size: 12.5px; }
.msg--bot { background: var(--grey-100); color: var(--ink); border-bottom-left-radius: 4px; justify-self: start; }
.msg--user { background: var(--navy-900); color: #eaf2fd; border-bottom-right-radius: 4px; justify-self: end; }
.msg--sys { justify-self: center; max-width: 100%; font-family: var(--font-mono); font-size: 10.5px; color: var(--blue-700); background: var(--cyan-50); border: 1px dashed var(--cyan-300); border-radius: 8px; }
.chat-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--grey-200); border-radius: 999px; color: var(--ink-3); font-size: 12px; }
.chat-input span { flex: 1; }
.chat-input b { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-900); display: grid; place-items: center; color: #fff; }
.chat-input b .icon { width: 13px; height: 13px; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-replies span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--cyan-300); color: var(--navy-800); font-size: 11.5px; background: var(--surface); }

/* ---------- Workflow (n8n-style) ---------- */
.flow-wrap { overflow-x: auto; padding-bottom: 4px; }
.flow {
  list-style: none; display: flex; align-items: stretch; gap: 0; min-width: min-content; counter-reset: step;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background-color: #fafbfd;
  background-image: radial-gradient(circle at 1px 1px, rgba(7, 21, 53, .12) 1px, transparent 0); background-size: 18px 18px;
}
.flow-node {
  position: relative; display: grid; gap: 6px; align-content: start; width: 150px; flex: none;
  padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.flow-node + .flow-node { margin-left: 34px; }
.flow-node + .flow-node::before {
  content: ""; position: absolute; left: -35px; top: 28px; width: 34px; height: 2px; background: #9fb2cc;
}
.flow-node + .flow-node::after {
  content: ""; position: absolute; left: -9px; top: 24px; border: 5px solid transparent; border-left: 7px solid #9fb2cc;
}
.flow-kind { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; color: var(--ink-3); }
.flow-kind i { width: 8px; height: 8px; border-radius: 2px; background: var(--grey-200); }
.flow-node strong { font-size: 12.5px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.flow-node small { font-size: 11px; color: var(--ink-3); line-height: 1.35; }
.flow-node--trigger { border-color: var(--navy-900); }
.flow-node--trigger .flow-kind i { background: var(--navy-900); }
.flow-node--ai { background: var(--navy-900); border-color: var(--navy-900); }
.flow-node--ai strong { color: #fff; }
.flow-node--ai small { color: #a6c3e6; }
.flow-node--ai .flow-kind { color: var(--cyan-300); }
.flow-node--ai .flow-kind i { background: var(--cyan-400); }
.flow-node--action .flow-kind i { background: #8aa5c8; }
.flow-node--human { border-style: dashed; border-color: #d6a35c; background: #fffbf3; }
.flow-node--human .flow-kind { color: var(--amber-600); }
.flow-node--human .flow-kind i { background: #e0b25c; border-radius: 50%; }
.flow-node--branch .flow-kind i { background: #7c6fc0; transform: rotate(45deg); }
.flow-legend { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-top: 10px; }
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.flow-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* ---------- Home: challenges & before/after ---------- */
.challenge { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.challenge h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.challenge p { color: var(--ink-2); font-size: .95rem; }
.challenge .icon-tile { background: var(--grey-100); border-color: var(--grey-200); color: var(--ink-2); }

.compare { display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.compare-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--grey-200); }
.compare-row:first-child { border-top: 0; }
.compare-row > div { padding: 18px 22px; min-width: 0; }
.compare-row > div:nth-child(2) { color: var(--ink-3); border-left: 1px solid var(--grey-200); }
.compare-row > div:nth-child(3) { background: var(--cyan-50); color: var(--navy-950); border-left: 1px solid var(--cyan-100); }
.compare-head > div { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; padding-block: 14px !important; }
.compare-head > div:nth-child(3) { color: var(--navy-800) !important; }
.compare-row strong { font-family: var(--font-display); font-weight: 700; }

/* ---------- Service feature cards ---------- */
.service-card { padding: 30px; gap: 18px; }
.service-card h3 { font-size: var(--fs-xl); }
.service-card .check-list { font-size: .95rem; }
.service-card .link-arrow { margin-top: 4px; }
.service-card--dark { background: var(--navy-900); border-color: var(--navy-900); }
.service-card--dark h3 { color: #fff; }
.service-card--dark p { color: #aebdd3 !important; }
.service-card--dark .check-list li { color: #cbd6e6; }
.service-card--dark .link-arrow { color: var(--cyan-300); }
.service-card--dark .icon-tile { background: rgba(143,216,255,.12); border-color: rgba(143,216,255,.2); color: var(--cyan-300); }

/* ---------- Project cards ---------- */
.project-card { padding: 0; overflow: hidden; gap: 0; }
.project-card .pc-visual { padding: 18px 18px 0; background: var(--grey-100); border-bottom: 1px solid var(--grey-200); }
.project-card .pc-visual .mini-chain { margin-bottom: -1px; }
.project-card .pc-body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.project-card h3 { font-size: 1.15rem; }
.project-card p { font-size: .94rem; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.pc-cat { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.pc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--grey-200); margin-top: auto; }
.project-card { grid-template-rows: auto 1fr auto; }
.mini-chain {
  display: flex; align-items: center; gap: 0; padding: 14px; background: var(--surface);
  border: 1px solid var(--grey-200); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden;
}
.mini-chain b {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--navy-800);
}
.mini-chain b .icon { width: 17px; height: 17px; }
.mini-chain b.is-ai { background: var(--navy-900); border-color: var(--navy-900); color: var(--cyan-300); }
.mini-chain b.is-human { border-style: dashed; border-color: #d6a35c; color: var(--amber-600); background: #fffbf3; }
.mini-chain i { flex: 1; min-width: 8px; height: 2px; background: repeating-linear-gradient(90deg, #b7c4d8 0 5px, transparent 5px 9px); }

/* ---------- Packages ---------- */
.package { padding: 28px; gap: 16px; grid-template-rows: auto auto auto 1fr auto; }
.package-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.package h3 { font-size: 1.2rem; }
.kv { display: grid; gap: 6px; }
.kv dt { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink-2); font-size: .94rem; }
.package .check-list { font-size: .93rem; }
.package-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); overflow: hidden; }
.why-item { background: var(--navy-900); padding: 28px; display: grid; gap: 12px; align-content: start; }
.why-item h3 { font-size: var(--fs-md); }
.why-item p { color: #aebdd3; font-size: .95rem; }
.why-item--cta { background: var(--navy-800); align-content: center; }

/* ---------- Process ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: proc; }
.process li { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 52px; }
.process li::before {
  counter-increment: proc; content: counter(proc, decimal-leading-zero);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--navy-900); color: var(--navy-900); z-index: 1;
}
.process li::after { content: ""; position: absolute; top: 20px; left: 48px; right: -8px; height: 1.5px; background: var(--line); }
.process li:last-child::after { display: none; }
.process h3 { font-size: 1.08rem; }
.process p { color: var(--ink-2); font-size: .93rem; }
.process small { font-family: var(--font-mono); font-size: 10.5px; color: var(--blue-700); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: #b6c6dd; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); color: var(--blue-700); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--ink-2); max-width: 75ch; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 3.75rem); border-radius: var(--radius-lg); background: var(--navy-900); color: #b9c6d8;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(143,216,255,.2); box-shadow: 0 0 0 40px rgba(143,216,255,.04), 0 0 0 80px rgba(143,216,255,.03);
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: var(--fs-xl); max-width: 22ch; }
.cta-band p { margin-top: 12px; max-width: 56ch; }
.cta-band .cluster { position: relative; z-index: 1; }

/* ---------- Services page ---------- */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 40; background: rgba(246,248,251,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.subnav a:hover, .subnav a.is-active { background: var(--navy-900); color: #fff; }

.svc-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: 48px; }
.svc-letter { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .08em; }
.solution { padding: 24px; gap: 14px; }
.solution h3 { font-size: 1.1rem; display: flex; gap: 12px; align-items: center; }
.solution h3 .icon-tile { width: 38px; height: 38px; border-radius: 10px; }
.solution h3 .icon-tile .icon { width: 19px; height: 19px; }
.pbs { display: grid; gap: 12px; margin: 0; }
.pbs > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
.pbs dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.pbs dd { margin: 0; font-size: .93rem; color: var(--ink-2); }
.pbs > div:last-child dd { color: var(--navy-900); font-weight: 500; }

.agent { padding: 26px; gap: 14px; }
.agent-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.agent h3 { font-size: 1.12rem; }
.agent .tools { display: flex; flex-wrap: wrap; gap: 6px; }
.agent .tools span { font-family: var(--font-mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; background: var(--grey-100); color: var(--ink-2); }
.agent .tasks { list-style: none; display: grid; gap: 6px; font-size: .92rem; color: var(--ink-2); }
.agent .tasks li { display: flex; gap: 8px; }
.agent .tasks li::before { content: "›"; color: var(--blue-700); font-weight: 700; }
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); border-left: 0; box-shadow: inset 4px 0 0 var(--blue-700);
  color: var(--ink-2); font-size: .95rem;
}
.notice .icon { color: var(--blue-700); margin-top: 2px; }
.notice strong { color: var(--ink); }

.bot-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.bot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bot-item { padding: 20px; gap: 10px; }
.bot-item h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 10px; }
.bot-item p { font-size: .92rem; }
.bot-caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.bot-caps div { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.bot-caps strong { font-family: var(--font-display); font-size: .98rem; }
.bot-caps span { font-size: .88rem; color: var(--ink-2); }
.sticky-col { position: sticky; top: calc(var(--header-h) + 80px); }

/* ---------- About ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius-lg); }
.portrait-wrap { position: relative; }
.portrait-wrap .float-card { right: -16px; bottom: 28px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.lifecycle { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.lifecycle li { position: relative; display: grid; gap: 8px; align-content: start; padding: 16px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lifecycle li strong { font-family: var(--font-display); font-size: .98rem; }
.lifecycle li span { font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.lifecycle li small { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.lifecycle li em { font-style: normal; font-size: .8rem; color: var(--navy-800); background: var(--cyan-50); border-radius: 6px; padding: 4px 6px; line-height: 1.4; }
.tool-group { display: grid; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tool-group h3 { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.prose { display: grid; gap: 16px; color: var(--ink-2); font-size: 1.04rem; }
.prose h3 { color: var(--ink); margin-top: 8px; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

/* ---------- Portfolio ---------- */
.honesty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.label-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: 500 var(--fs-sm) var(--font-body); color: var(--ink-2); cursor: pointer; transition: all .15s;
}
.filter:hover { border-color: var(--blue-700); color: var(--navy-900); }
.filter[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter span { opacity: .6; margin-left: 4px; font-family: var(--font-mono); font-size: 11px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

dialog.project-dialog {
  width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto;
}
dialog.project-dialog::backdrop { background: rgba(2, 10, 31, .55); backdrop-filter: blur(3px); }
.pd-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; background: rgba(246,248,251,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pd-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.pd-body { padding: 28px clamp(18px, 3vw, 36px) 36px; display: grid; gap: 30px; }
.pd-title { display: grid; gap: 12px; }
.pd-title h2 { font-size: var(--fs-xl); }
.pd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pd-grid > div { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; align-content: start; }
.pd-grid h3, .pd-section h3 { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.pd-grid p { color: var(--ink-2); font-size: .95rem; }
.pd-section { display: grid; gap: 12px; }
.pd-steps { list-style: none; counter-reset: s; display: grid; gap: 10px; }
.pd-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.pd-steps li::before { content: counter(s); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--cyan-50); color: var(--navy-800); font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--cyan-100); }
.pd-visuals { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; align-items: start; }
.pd-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--navy-900); color: #b9c6d8; }
.pd-cta strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; display: block; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba > div { padding: 12px; border-radius: 10px; display: grid; gap: 8px; align-content: start; }
.ba > div:first-child { background: var(--grey-100); }
.ba > div:last-child { background: var(--cyan-50); }
.ba h4 { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; color: var(--ink-3); }
.ba ul { list-style: none; display: grid; gap: 6px; font-size: 12px; color: var(--ink-2); }
.ba li { padding: 6px 8px; background: var(--surface); border-radius: 6px; border: 1px solid var(--grey-200); }
.agent-log { display: grid; gap: 8px; font-family: var(--font-mono); font-size: 11px; }
.agent-log div { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start; padding: 8px 10px; border-radius: 8px; background: var(--grey-100); color: var(--ink-2); }
.agent-log div::before { content: ""; width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; background: var(--cyan-400); }
.agent-log div.wait::before { background: #e0b25c; }
.agent-log div.goal { background: var(--navy-900); color: #d3e3f7; }
.agent-log div.goal::before { background: var(--cyan-300); border-radius: 2px; }
.email-mock { display: grid; gap: 10px; font-size: 12.5px; }
.email-mock .em-row { display: flex; gap: 8px; color: var(--ink-3); font-size: 11.5px; border-bottom: 1px solid var(--grey-200); padding-bottom: 6px; }
.email-mock .em-row b { color: var(--ink); font-weight: 600; }
.email-mock p { color: var(--ink-2); line-height: 1.55; }
.email-mock .em-tag { display: inline-flex; font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; border-radius: 5px; background: var(--cyan-50); color: var(--navy-800); width: fit-content; }
.cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; font-size: 11px; }
.cal > b { font-family: var(--font-mono); font-weight: 500; font-size: 10px; color: var(--ink-3); text-align: center; text-transform: uppercase; }
.cal > span { min-height: 34px; border-radius: 6px; background: var(--grey-100); padding: 4px 6px; color: var(--ink-3); line-height: 1.25; }
.cal > span.is-booked { background: var(--navy-900); color: #e1ecfb; }
.cal > span.is-held { background: var(--cyan-100); color: var(--navy-900); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: 11px; }
.kanban > div { background: var(--grey-100); border-radius: 8px; padding: 8px; display: grid; gap: 6px; align-content: start; }
.kanban h4 { font-family: var(--font-mono); font-weight: 500; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.kanban span { background: var(--surface); border: 1px solid var(--grey-200); border-radius: 6px; padding: 6px; color: var(--ink-2); line-height: 1.3; }
.kanban span.is-new { border-color: var(--cyan-400); box-shadow: 0 0 0 2px var(--cyan-100); }
.report { display: grid; gap: 10px; }
.report-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.report-kpis div { padding: 10px; border-radius: 8px; background: var(--grey-100); display: grid; gap: 2px; }
.report-kpis small { font-size: 10px; color: var(--ink-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.report-kpis b { font-family: var(--font-display); font-size: 18px; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; padding: 8px; border-radius: 8px; background: var(--grey-100); }
.bars i { flex: 1; background: var(--blue-700); border-radius: 3px 3px 0 0; opacity: .85; }
.bars i:last-child { background: var(--cyan-400); }
.listing { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.listing .photo { border-radius: 8px; background: linear-gradient(160deg, #cfd9e8, #e9eef6); display: grid; place-items: center; color: #7d8fa8; min-height: 92px; }
.listing .fields { display: grid; gap: 6px; font-size: 11.5px; }
.listing .fields span { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 6px; background: var(--grey-100); }
.listing .fields span b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.listing .fields span em { font-style: normal; color: var(--blue-700); font-family: var(--font-mono); font-size: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-card { padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23445067' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b6c6dd; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-700); background: var(--surface); box-shadow: 0 0 0 4px var(--cyan-100); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3401f; }
.field .error { display: none; font-size: 12.5px; color: #b3401f; }
.field.has-error .error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.choice-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field .choice { position: relative; font-weight: 400; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-size: .92rem; color: var(--ink-2); transition: border-color .15s, background .15s; min-width: 0; }
.choice:hover { border-color: #b6c6dd; }
.choice input { accent-color: var(--navy-800); width: 17px; height: 17px; margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--blue-700); background: var(--cyan-50); color: var(--navy-950); }
.choice:has(input:focus-visible) { outline: 3px solid var(--cyan-400); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.form-foot p { font-size: 12.5px; color: var(--ink-3); max-width: 44ch; }
.form-status { display: none; padding: 16px 18px; border-radius: 12px; font-size: .95rem; }
.form-status.is-visible { display: flex; gap: 12px; align-items: flex-start; }
.form-status.is-success { background: var(--cyan-50); border: 1px solid var(--cyan-300); color: var(--navy-950); }
.form-status.is-error { background: #fdeee7; border: 1px solid #efc2ad; color: #7a2f14; }
.form-status.is-info { background: var(--amber-50); border: 1px dashed #e0b25c; color: var(--amber-600); }
.form-status .icon { margin-top: 2px; }
.aside-stack { display: grid; gap: 16px; }
.aside-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.aside-card--dark { background: var(--navy-900); border-color: var(--navy-900); color: #b9c6d8; }
.aside-card--dark h3 { color: #fff; }
.aside-card h3 { font-size: 1.1rem; }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--grey-100); font-family: var(--font-mono); font-size: 13px; min-width: 0; }
.copy-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.copy-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; min-height: 36px; padding: 8px 12px; font: 500 13px var(--font-body); color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.copy-btn .icon { width: 14px; height: 14px; }
.socials { list-style: none; display: grid; gap: 8px; }
.socials a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .94rem; }
.socials a:hover { border-color: var(--blue-700); background: var(--cyan-50); }
.socials a .icon { width: 16px; height: 16px; color: var(--ink-3); }
.next-steps { list-style: none; counter-reset: n; display: grid; gap: 12px; font-size: .93rem; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: #b9c6d8; }
.next-steps li::before { content: counter(n); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(143,216,255,.15); color: var(--cyan-300); font-family: var(--font-mono); font-size: 11px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-copy > *:nth-child(5) { animation-delay: .24s; }
  .hero-visual { animation: rise .9s var(--ease) .15s both; }
  .reveal.is-pending { opacity: 0; transform: translateY(14px); }
  .reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .process li:nth-child(3)::after { display: none; }
  .lifecycle { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bot-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: grid; }
  .menu-open .nav {
    display: grid; position: absolute; left: 0; right: 0; top: 100%; gap: 4px;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(7,21,53,.3);
  }
  .menu-open .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .menu-open .nav .nav-cta { display: flex; margin-top: 8px; }
  .hero-grid, .svc-intro, .bot-layout, .profile, .split, .contact-grid, .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { max-width: 16ch; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .sticky-col { position: static; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-visuals { grid-template-columns: minmax(0, 1fr); }
  .profile .portrait-wrap { max-width: 380px; }
}
.nav .nav-cta { display: none; }
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4, .project-grid, .bot-list, .form-row, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: minmax(0, 1fr); }
  .process li { padding-top: 0; padding-left: 58px; min-height: 44px; }
  .process li::after { top: 44px; left: 20px; right: auto; bottom: -26px; width: 1.5px; height: auto; display: block !important; }
  .process li:last-child::after { display: none !important; }
  .lifecycle { grid-template-columns: minmax(0, 1fr); }
  .compare-row { grid-template-columns: minmax(0, 1fr); }
  .compare-row > div:nth-child(2), .compare-row > div:nth-child(3) { border-left: 0; }
  .compare-row > div { padding: 12px 18px; }
  .compare-row > div:first-child { padding-top: 18px; }
  .compare-head { display: none !important; }
  .compare-row > div:nth-child(2)::before { content: "Today: "; font-weight: 600; color: var(--ink-2); }
  .compare-row > div:nth-child(3)::before { content: "With automation: "; font-weight: 600; }
  .choice-grid, .choice-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { display: none; }
  .hero-visual { padding: 16px 0 0; }
  .hero-visual .float-card { display: none; }
  .lead-table > div { grid-template-columns: minmax(0, 1fr) auto; }
  .lead-table > div > :nth-child(2) { display: none; }
  .bot-caps { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pbs > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pd-head { padding: 12px 16px; }
  .portrait-wrap .float-card { right: 8px; }
}

.grid > .notice--span { grid-column: span 2; margin: 0; align-self: stretch; align-items: center; }
@media (max-width: 960px) { .grid > .notice--span { grid-column: 1 / -1; } }

/* ==========================================================================
   Motion layer
   Everything below is enhancement only. Hidden "before" states apply only
   when main.js adds .motion-ok to <html> (JS on, reduced motion off).
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;
}

/* ---------- Hero: ambient background ---------- */
.hero-ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-ambient span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  background: radial-gradient(circle, rgba(143, 216, 255, .55), rgba(143, 216, 255, 0) 70%);
}
.hero-ambient span:nth-child(1) { width: 520px; height: 520px; right: 4%; top: -120px; animation: drift-a 22s ease-in-out infinite alternate; }
.hero-ambient span:nth-child(2) { width: 380px; height: 380px; left: -120px; bottom: -160px; opacity: .35; animation: drift-b 26s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-60px, 50px, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(70px, -40px, 0) scale(1.1); } }
.hero::before { animation: grid-pan 40s linear infinite; }
@keyframes grid-pan { to { background-position: 26px 26px; } }

/* ---------- Hero: copy entrance (refined) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease-out) both; }
  .hero-copy > .eyebrow { animation-delay: .05s; }
  .hero-copy > h1 { animation: rise-blur 1s var(--ease-out) .12s both; }
  .hero-copy > .lead { animation-delay: .32s; }
  .hero-copy > .cluster { animation-delay: .46s; }
  .hero-copy > .hero-focus { animation-delay: .6s; }
  .hero-visual { animation: rise-scale 1.1s var(--ease-out) .35s both; }
  .hero-visual .float-card--task { animation: card-in .8s var(--ease-out) 1.1s both, floaty 7s ease-in-out 2s infinite; }
  .hero-visual .float-card--chat { animation: card-in .8s var(--ease-out) 1.4s both, floaty 7s ease-in-out 3s infinite; }
  .lead-table > div { animation: row-in .6s var(--ease-out) both; }
  .hero .lead-table > div:nth-child(2) { animation-delay: .9s; }
  .hero .lead-table > div:nth-child(3) { animation-delay: 1s; }
  .hero .lead-table > div:nth-child(4) { animation-delay: 1.1s; }
  .hero .lead-table > div:nth-child(5) { animation-delay: 1.2s; }
}
@keyframes rise-blur { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise-scale { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero: 5-stage workflow ---------- */
.hflow { display: grid; gap: 10px; padding: 16px 10px 12px; background: var(--grey-100); border-radius: 12px; }
.hflow-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hnode { position: relative; display: grid; justify-items: center; gap: 7px; text-align: center; }
.hnode b {
  position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line); color: var(--navy-800); box-shadow: var(--shadow-sm);
  animation: node-active 5s var(--ease) infinite; animation-delay: calc(var(--i) * 1s);
}
.hnode b .icon { width: 18px; height: 18px; }
.hnode small { font-size: 10.5px; line-height: 1.25; color: var(--ink-2); font-weight: 500; }
.hnode.is-ai b { background: var(--navy-900); color: var(--cyan-300); border-color: var(--navy-900); }
.hnode.is-ai b::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(47, 182, 255, .5); animation: ai-glow 2.6s ease-out infinite;
}
.hnode.is-human b { border-style: dashed; border-color: #d6a35c; color: var(--amber-600); background: #fffbf3; }
.hlink { position: absolute; top: 19px; left: calc(50% + 24px); width: calc(100% - 48px); height: 2px; background: repeating-linear-gradient(90deg, #b7c4d8 0 5px, transparent 5px 9px); }
.hlink i {
  position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; opacity: 0;
  background: var(--cyan-400); box-shadow: 0 0 0 3px rgba(47, 182, 255, .22), 0 0 10px rgba(47, 182, 255, .8);
  animation: hop 5s var(--ease) infinite; animation-delay: calc(var(--i) * 1s + .45s);
}
@keyframes hop { 0% { left: 0; opacity: 0; } 2% { opacity: 1; } 12% { left: calc(100% - 8px); opacity: 1; } 15%, 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes node-active {
  0%, 20%, 100% { transform: none; }
  6% { transform: translateY(-2px); border-color: var(--cyan-400); box-shadow: 0 0 0 4px rgba(47, 182, 255, .2), var(--shadow); }
  14% { border-color: var(--cyan-400); box-shadow: 0 0 0 4px rgba(47, 182, 255, .12); }
}
@keyframes ai-glow { 0% { box-shadow: 0 0 0 0 rgba(47, 182, 255, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(47, 182, 255, 0); } }
.hflow-status { display: flex; align-items: center; gap: 8px; justify-content: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--navy-800); min-height: 16px; }
.hflow-status [data-hflow-status] { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.hflow-status [data-hflow-status].is-swapping { opacity: 0; transform: translateY(4px); }
.hflow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400); animation: pulse 2s infinite; }

/* ---------- Scroll reveals ---------- */
.motion-ok [data-reveal] {
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
.motion-ok [data-reveal].is-pending { opacity: 0; transform: translateY(22px); }
.motion-ok [data-reveal="scale"].is-pending { transform: translateY(16px) scale(.97); }
.motion-ok [data-reveal="fade"].is-pending { transform: none; }

/* ---------- Workflow diagrams: flowing connectors + completed steps ---------- */
.flow-node { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.flow-node + .flow-node::before {
  background: linear-gradient(90deg, #9fb2cc 0 35%, var(--cyan-400) 50%, #9fb2cc 65% 100%);
  background-size: 300% 100%; animation: wire 2.8s linear infinite;
}
@keyframes wire { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.flow-node--ai { box-shadow: 0 0 0 0 rgba(47, 182, 255, .4); animation: ai-glow 3s ease-out infinite; }
.flow-node::after { pointer-events: none; }
.flow-done {
  position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cyan-400); color: var(--navy-950);
  box-shadow: 0 0 0 3px var(--bg); transform: scale(0); opacity: 0;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.flow-done svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.flow-node.is-done .flow-done { transform: scale(1); opacity: 1; }
.flow-node.is-running { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(47, 182, 255, .25), var(--shadow); border-color: var(--cyan-400); }
.no-motion .flow-done { display: none; }

/* ---------- Chat demos: typing indicator + message entrance ---------- */
.msg.is-hidden, .quick-replies.is-hidden { display: none; }
.msg.is-new, .quick-replies.is-new { animation: msg-in .45s var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.typing { justify-self: start; display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 14px; border-bottom-left-radius: 4px; background: var(--grey-100); animation: msg-in .3s var(--ease-out) both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: typing 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.agent-log div.is-hidden { opacity: 0; transform: translateX(-6px); }
.agent-log div { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }

/* ---------- Active AI indicators ---------- */
.agent .badge::before, .why-item .icon-tile::after { animation: pulse-soft 2.4s ease-out infinite; }
.agent .badge::before { background: var(--cyan-400); opacity: 1; }
@keyframes pulse-soft { 0% { box-shadow: 0 0 0 0 rgba(47, 182, 255, .55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(47, 182, 255, 0); } }
.live::before { animation: pulse 2s infinite; }

/* ---------- Card interactions ---------- */
.card, .challenge, .tool-group, .lifecycle li, .bot-caps div, .why-item, .aside-card {
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out), background-color .35s var(--ease-out);
}
.icon-tile { transition: transform .35s var(--ease-out), background-color .35s, color .35s; }
@media (hover: hover) {
  .service-card:hover, .solution:hover, .agent:hover, .bot-item:hover, .package:hover, .challenge:hover,
  .tool-group:hover, .lifecycle li:hover, .bot-caps div:hover, .project-card:hover, .card--hover:hover {
    transform: translateY(-4px); border-color: #b6c6dd; box-shadow: var(--shadow);
  }
  .service-card--dark:hover { border-color: var(--blue-700); box-shadow: 0 20px 40px -18px rgba(7, 21, 53, .6); }
  .card:hover .icon-tile, .challenge:hover .icon-tile, .why-item:hover .icon-tile { transform: scale(1.08) rotate(-3deg); }
  .challenge:hover .icon-tile { background: var(--cyan-50); color: var(--navy-800); border-color: var(--cyan-100); }
  .why-item:hover { background: #0c2150; }
  .project-card:hover .mini-chain i { animation: dash-flow .8s linear infinite; }
  .project-card:hover .mini-chain b { transform: translateY(-2px); }
  .project-card .mini-chain b { transition: transform .35s var(--ease-out); }
  .project-card .mini-chain b:nth-of-type(2) { transition-delay: .04s; }
  .project-card .mini-chain b:nth-of-type(3) { transition-delay: .08s; }
  .project-card .mini-chain b:nth-of-type(4) { transition-delay: .12s; }
  .project-card .mini-chain b:nth-of-type(5) { transition-delay: .16s; }
  .project-card .pc-more { opacity: 0; transform: translateX(-6px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
  .project-card:hover .pc-more, .project-card:focus-within .pc-more { opacity: 1; transform: none; }
  .flow-node:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
@keyframes dash-flow { to { background-position: 9px 0; } }
.pc-more { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn--primary:hover::after, .btn--mint:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn:focus-visible { outline-offset: 3px; }
.link-arrow { position: relative; }
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 22px; bottom: -3px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: scaleX(1); }
.copy-btn, .filter, .pd-close, .socials a, .menu-toggle, .subnav a { transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out); }
.copy-btn:active, .filter:active, .pd-close:active { transform: scale(.95); }
.pd-close:hover { transform: rotate(90deg); border-color: var(--blue-700); }
.socials a .icon { transition: transform .25s var(--ease-out), color .2s; }
.socials a:hover .icon { transform: translate(2px, -2px); color: var(--blue-700); }

/* ---------- Navigation ---------- */
@media (min-width: 961px) {
  .nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--cyan-400); transform: scaleX(0); transition: transform .3s var(--ease-out);
  }
  .nav a:hover::after { transform: scaleX(1); }
  .nav a[aria-current="page"]::after { transform: scaleX(0); }
}
.menu-toggle .icon { transition: transform .3s var(--ease-out), opacity .2s; }
.menu-open .menu-toggle .icon-close { animation: spin-in .3s var(--ease-out); }
@keyframes spin-in { from { transform: rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 960px) {
  .menu-open .nav { animation: menu-in .35s var(--ease-out); }
  .menu-open .nav > * { animation: rise .45s var(--ease-out) both; }
  .menu-open .nav > *:nth-child(2) { animation-delay: .03s; }
  .menu-open .nav > *:nth-child(3) { animation-delay: .06s; }
  .menu-open .nav > *:nth-child(4) { animation-delay: .09s; }
  .menu-open .nav > *:nth-child(5) { animation-delay: .12s; }
  .menu-open .nav > *:nth-child(6) { animation-delay: .15s; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ & dialog transitions ---------- */
.faq details[open] .faq-a { animation: faq-open .4s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--navy-800); }
dialog.project-dialog[open] { animation: dialog-in .45s var(--ease-out); }
dialog.project-dialog[open]::backdrop { animation: backdrop-in .35s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Background motion: dark "why" section + CTA band ---------- */
.section--grid-motion { position: relative; overflow: hidden; isolation: isolate; }
.section--grid-motion::before {
  content: ""; position: absolute; inset: -60px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(143, 216, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 216, 255, .06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%); mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%);
  animation: grid-slide 30s linear infinite;
}
@keyframes grid-slide { to { transform: translate3d(60px, 60px, 0); } }
.cta-band::before {
  content: ""; position: absolute; left: -10%; bottom: -60%; width: 60%; height: 140%; pointer-events: none;
  background: radial-gradient(circle, rgba(47, 182, 255, .18), transparent 65%);
  animation: drift-b 18s ease-in-out infinite alternate;
}
.cta-band::after { animation: ring-breathe 8s ease-in-out infinite; }
@keyframes ring-breathe { 50% { transform: scale(1.06); opacity: .7; } }
.cta-band > div { position: relative; z-index: 1; }

/* ---------- Reduced motion: static, fully visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-ambient, .hlink i { display: none; }
  .motion-ok [data-reveal].is-pending { opacity: 1; transform: none; }
}
@media (max-width: 680px) {
  .hero-ambient span:nth-child(1) { width: 320px; height: 320px; }
  .hflow { padding-inline: 4px; }
  .hnode b { width: 34px; height: 34px; border-radius: 10px; }
  .hlink { top: 16px; left: calc(50% + 21px); width: calc(100% - 42px); }
  .hnode small { font-size: 9.5px; }
}

/* ==========================================================================
   Brand layer: logo lockups and logo-inspired lighting
   ========================================================================== */
.brand-mark { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px rgba(47, 182, 255, .25), 0 6px 16px -8px rgba(26, 109, 255, .8); }
.brand-name span, .hero-copy h1 em, .gradient-text {
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy h1 em::after { background: var(--cyan-300); opacity: .55; }
.site-footer .brand-name span { background: none; color: var(--cyan-300); }
.footer-logo { width: 220px; max-width: 100%; height: auto; border-radius: 14px; }
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-400), transparent); box-shadow: 0 0 18px 2px rgba(47, 182, 255, .55);
}
.section--dark, .cta-band, .pd-cta, .aside-card--dark, .service-card--dark {
  background-color: var(--navy-900);
  background-image: radial-gradient(ellipse 70% 60% at 12% 0%, rgba(26, 109, 255, .32), transparent 60%),
                    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(47, 182, 255, .12), transparent 60%);
}
.section--dark h2 { color: #fff; }
.section--dark h2 .gradient-text { color: transparent; }
.why-item { background: transparent; }
.why-grid { background: rgba(143, 216, 255, .1); }
.why-grid > .why-item { background-color: rgba(7, 21, 53, .82); }
.why-grid > .why-item--cta { background-color: rgba(26, 109, 255, .22); }
@media (hover: hover) { .why-grid > .why-item:hover { background-color: rgba(14, 35, 82, .9); } }
.icon-tile { background: var(--cyan-50); color: var(--blue-700); border-color: var(--cyan-100); }
.hnode.is-ai b, .flow-node--ai, .mini-chain b.is-ai { background: var(--navy-900); border-color: var(--navy-900); box-shadow: inset 0 0 0 1px rgba(47, 182, 255, .35); }
.msg--user { background: var(--electric); }
.nav a[aria-current="page"] { color: var(--blue-700); }
.filter[aria-pressed="true"], .subnav a:hover, .subnav a.is-active { background: var(--navy-900); border-color: var(--navy-900); }
.footer-logo { -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, transparent 100%); }
.footer-logo { width: 260px; -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, #000 70%, transparent 100%); }

/* ==========================================================================
   Hero scene: AI core wired to six workflow stages (SVG + HTML panels)
   ========================================================================== */
.hero-visual { padding: 0; }
.ai-stage {
  position: relative; margin: 0; aspect-ratio: 800 / 620; max-width: 100%; container-type: inline-size;
  border-radius: 26px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(26, 109, 255, .22), transparent 70%),
    linear-gradient(180deg, #06112c 0%, #020a1f 100%);
  border: 1px solid rgba(143, 216, 255, .18);
  box-shadow: 0 40px 80px -40px rgba(7, 21, 53, .75), 0 0 0 1px rgba(2, 10, 31, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ai-stage::before { /* perspective floor grid */
  content: ""; position: absolute; left: -30%; right: -30%; top: 38%; bottom: -40%; z-index: -1;
  background-image: linear-gradient(rgba(143, 216, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 216, 255, .09) 1px, transparent 1px);
  background-size: 44px 44px; transform: perspective(500px) rotateX(58deg); transform-origin: top;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
  animation: floor-pan 18s linear infinite;
}
@keyframes floor-pan { to { background-position: 0 44px; } }
.ai-stage::after { /* soft top light, like the logo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 8% 0%, rgba(47, 182, 255, .28), transparent 40%);
}
.sc-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.sc-rings-floor ellipse { fill: none; stroke: rgba(143, 216, 255, .14); stroke-width: 1; stroke-dasharray: 2 6; }
.sc-orbit { fill: none; stroke: rgba(143, 216, 255, .55); stroke-width: 2; }
.sc-orbit-flow { fill: none; stroke: #bfe9ff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 60 1840; animation: orbit-flow 9s linear infinite; opacity: .9; }
@keyframes orbit-flow { to { stroke-dashoffset: -1900; } }
.sc-orbit-glow { fill: none; stroke: #2fb6ff; stroke-width: 8; opacity: .55; }
.sc-spoke-glow { fill: none; stroke: #1a6dff; stroke-width: 7; opacity: .5; }
.sc-spoke { fill: none; stroke: rgba(95, 196, 255, .75); stroke-width: 1.6; stroke-dasharray: 6 7; animation: spoke-flow 1.6s linear infinite; }
@keyframes spoke-flow { to { stroke-dashoffset: -26; } }
.sc-spark { fill: #e6f6ff; filter: drop-shadow(0 0 4px #2fb6ff) drop-shadow(0 0 8px #1a6dff); }
.sc-spark--orbit { fill: #ffffff; }

.sc-node { transform-box: fill-box; }
.sc-base { fill: #030b20; stroke: rgba(143, 216, 255, .25); }
.sc-plate { fill: #0b1d46; stroke: #2fb6ff; stroke-width: 1.4; animation: plate-active 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1s); }
.sc-ring { fill: none; stroke: rgba(143, 216, 255, .7); stroke-width: 1.2; stroke-dasharray: 4 4; }
.sc-core-dot { fill: #bfe9ff; filter: drop-shadow(0 0 6px #2fb6ff); }
.sc-pulse { fill: none; stroke: #2fb6ff; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: node-pulse 6s ease-out infinite; animation-delay: calc(var(--i) * 1s); }
@keyframes node-pulse { 0% { opacity: .9; transform: scale(1); } 14% { opacity: 0; transform: scale(2.1); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes plate-active { 0%, 18%, 100% { fill: #0b1d46; } 5% { fill: #1a4fb8; } }

.sc-core-halo { animation: core-breathe 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes core-breathe { 50% { opacity: .75; transform: scale(1.06); } }
.sc-core-ring { fill: none; stroke: rgba(191, 233, 255, .8); stroke-width: 1.4; stroke-dasharray: 3 9 30 9; }
.sc-core-ring2 { fill: none; stroke: rgba(47, 182, 255, .9); stroke-width: 2; stroke-dasharray: 60 20 8 20; }
.sc-spin, .sc-spin-rev { transform-box: fill-box; transform-origin: center; }
.sc-spin { animation: spin 22s linear infinite; }
.sc-spin-rev { animation: spin 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.sc-core-body { fill: #071535; stroke: #8fd8ff; stroke-width: 1.6; filter: drop-shadow(0 0 14px rgba(47, 182, 255, .9)); }
.sc-circuit path { fill: none; stroke: rgba(143, 216, 255, .55); stroke-width: 1.2; }
.sc-circuit circle { fill: #8fd8ff; }
.sc-ai { font-family: var(--font-display); font-weight: 800; font-size: 34px; fill: #ffffff; letter-spacing: -.02em; filter: drop-shadow(0 0 8px rgba(143, 216, 255, .9)); }

/* floating glass panels */
.sc-panel {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: 21cqw; min-width: 0; padding: 1.2cqw 1.4cqw; border-radius: 1.6cqw;
  display: grid; gap: .6cqw;
  background: linear-gradient(160deg, rgba(20, 52, 120, .72), rgba(7, 21, 53, .78));
  border: 1px solid rgba(143, 216, 255, .35);
  box-shadow: 0 0 0 1px rgba(2, 10, 31, .3), 0 10px 30px -12px rgba(26, 109, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #dbeeff; font-size: clamp(8px, 1.45cqw, 11.5px); line-height: 1.25;
  animation: panel-float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s);
}
.sc-panel--above { transform: translate(-50%, calc(-100% - 3.2cqw)); }
.sc-panel--below { transform: translate(-50%, 3.4cqw); }
.sc-panel::after { /* tether to the node */
  content: ""; position: absolute; left: 50%; width: 1px; height: 2.4cqw;
  background: linear-gradient(rgba(143, 216, 255, .7), rgba(143, 216, 255, 0));
}
.sc-panel--above::after { top: 100%; }
.sc-panel--below::after { bottom: 100%; transform: scaleY(-1); }
@keyframes panel-float { 50% { translate: 0 -0.6cqw; } }
.sc-ph { display: flex; align-items: center; gap: .7cqw; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: #fff; font-size: .92em; white-space: nowrap; }
.sc-ic { display: grid; place-items: center; width: 2.6cqw; height: 2.6cqw; min-width: 14px; min-height: 14px; border-radius: .6cqw; background: rgba(47, 182, 255, .18); color: #8fd8ff; flex: none; }
.sc-ic .icon { width: 70%; height: 70%; }
.sc-pd { color: #a9c6e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-bars { display: flex; align-items: flex-end; gap: .4cqw; height: 1.8cqw; }
.sc-bars i { flex: 1; border-radius: 2px; background: rgba(143, 216, 255, .35); height: 40%; animation: bar-tick 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1s); }
.sc-bars i:nth-child(2) { height: 70%; } .sc-bars i:nth-child(3) { height: 55%; } .sc-bars i:nth-child(4) { height: 90%; background: #2fb6ff; }
@keyframes bar-tick { 0%, 20%, 100% { opacity: .7; } 6% { opacity: 1; filter: brightness(1.5); } }
.sc-panel { transition: border-color .3s; }
.sc-panel { animation-name: panel-float, panel-active; animation-duration: 7s, 6s; animation-delay: calc(var(--i) * -1.1s), calc(var(--i) * 1s); animation-iteration-count: infinite; }
@keyframes panel-active { 0%, 18%, 100% { border-color: rgba(143, 216, 255, .35); } 5% { border-color: #8fd8ff; box-shadow: 0 0 0 1px rgba(143, 216, 255, .4), 0 0 26px -4px rgba(47, 182, 255, .9); } }

.sc-status {
  position: absolute; left: 50%; bottom: 2.6cqw; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: .9cqw 1.8cqw; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-mono); font-size: clamp(9px, 1.35cqw, 11px); color: #cfe9ff;
  background: rgba(2, 10, 31, .7); border: 1px solid rgba(143, 216, 255, .25);
}
.sc-status .hflow-dot { background: #2fb6ff; }

@container (max-width: 520px) {
  .sc-pd, .sc-bars { display: none; }
  .sc-panel { width: auto; padding: 1.2cqw 1.8cqw; }
  .sc-ph { font-size: 8px; letter-spacing: .03em; }
  .sc-ic { display: none; }
}
@media (max-width: 680px) { .hero-visual { padding: 8px 0 0; } }
@media (prefers-reduced-motion: reduce) { .sc-spark { display: none; } }
.sc-status { left: 2.4cqw; top: 2.4cqw; bottom: auto; transform: none; }
.sc-orbit-glow { stroke-width: 10; opacity: .7; }
.sc-core-halo { opacity: 1; }
@container (max-width: 520px) { .sc-status { font-size: 8.5px; padding: 4px 9px; } }

/* ==========================================================================
   Image-beside-text blocks (illustrations or photos)
   ========================================================================== */
.media-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.media-split--rev > .media { order: 2; }
.page-hero--media .media-split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.page-hero--media .media-split--rev { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.page-hero--media h1 { max-width: 18ch; }
.media { position: relative; margin: 0; max-width: 100%; perspective: 900px; }
.media-frame {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(7, 21, 53, .45), 0 0 0 1px rgba(7, 21, 53, .06);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  background: var(--grey-100);
}
.media-frame svg, .media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media:hover .media-frame { box-shadow: 0 40px 70px -30px rgba(26, 109, 255, .45), 0 0 0 1px rgba(47, 182, 255, .25); }
.media-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px;
  border-radius: 999px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: floaty 7s ease-in-out infinite;
}
.media-chip-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cyan-50); color: var(--blue-700); }
.media-chip-ic .icon { width: 14px; height: 14px; }
.media-chip.is-ok .media-chip-ic { background: var(--electric); color: #fff; }
.media-chip--tr { top: 8%; right: -14px; }
.media-chip--tl { top: 8%; left: -14px; }
.media-chip--bl { bottom: 9%; left: -14px; animation-delay: -3s; }
.media-chip--br { bottom: 9%; right: -14px; animation-delay: -3s; }
.media-wire { fill: none; stroke: #9fb2cc; stroke-width: 2.5; stroke-dasharray: 6 6; animation: spoke-flow 1.4s linear infinite; }
.media-wire-s { animation: spoke-flow 1.4s linear infinite; }
.media-steam { animation: steam 3.5s ease-in-out infinite; }
@keyframes steam { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: .8; transform: none; } }
.media-pulse { transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.4s ease-out infinite; }
@keyframes pin-pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2); opacity: 0; } }
.media-pin { animation: pin-bob 3s ease-in-out infinite; }
@keyframes pin-bob { 50% { transform: translate(275px, 90px); } }
.media-window { animation: window-glow 5s ease-in-out infinite; }
@keyframes window-glow { 50% { fill: #bfe9ff; } }
.media-line { stroke-dasharray: 200; animation: draw-line 4s ease-in-out infinite; }
@keyframes draw-line { 0% { stroke-dashoffset: 200; } 40%, 100% { stroke-dashoffset: 0; } }
@media (max-width: 960px) {
  .media-split, .page-hero--media .media-split, .page-hero--media .media-split--rev { grid-template-columns: minmax(0, 1fr); }
  .media-split--rev > .media { order: 0; }
  .page-hero--media .media { order: 2; }
  .media-chip--tr, .media-chip--br { right: 10px; }
  .media-chip--tl, .media-chip--bl { left: 10px; }
}
@media (max-width: 680px) { .media-chip { font-size: 11.5px; padding: 6px 11px 6px 6px; } .media-chip-ic { width: 22px; height: 22px; } .media-frame { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .media-run { display: none; } }

/* ==========================================================================
   Visual sections: lifecycle diagram, process steps, service benefits,
   portfolio previews, form mockup, contact visual
   ========================================================================== */

/* Lifecycle diagram */
.lifecycle-diagram { margin: 0 0 40px; }
.lc-track { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; }
.lc-stage { position: relative; display: grid; gap: 14px; align-content: start; min-width: 0; }
.lc-art {
  position: relative; aspect-ratio: 16 / 11; max-width: 100%; border-radius: 20px; display: grid; place-items: center; padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f2f7ff); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.lc-art svg { width: 100%; height: 100%; }
.lc-stage:hover .lc-art { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #b6c6dd; }
.lc-stage + .lc-stage::before { /* connector arrow */
  content: ""; position: absolute; left: -26px; top: calc((100% - 0px) * 0); margin-top: 0;
  width: 24px; height: 24px; border-radius: 50%; z-index: 2; translate: 0 0;
  background: var(--electric) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: 0 0 0 5px var(--grey-100), 0 6px 14px -4px rgba(26, 109, 255, .6);
}
.lc-stage + .lc-stage::before { top: calc(var(--art-h, 0px)); }
.lc-track::before { /* flow line behind the arrows */
  content: ""; position: absolute; left: 6%; right: 6%; top: calc((100% / 1) * 0 + 1px); height: 2px; display: none;
}
.lc-text { display: grid; gap: 6px; }
.lc-num { font-family: var(--font-mono); font-size: 11px; color: var(--blue-700); letter-spacing: .08em; }
.lc-text h3 { font-size: 1.12rem; }
.lc-text p { color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.lc-caption { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .9rem; color: var(--ink-3); }
.lc-caption span { width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--cyan-400) 0 6px, transparent 6px 10px); animation: dash-flow .9s linear infinite; }
.lc-flow, .media-wire-s { animation: spoke-flow 1.4s linear infinite; }
.lc-meter { animation: meter 4s ease-in-out infinite; transform-box: fill-box; transform-origin: left; }
@keyframes meter { 0% { transform: scaleX(.2); } 50%, 100% { transform: scaleX(1); } }
.lc-ping { animation: pin-pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.lc-bar { animation: bar-grow 3s var(--ease-out) infinite alternate; animation-delay: calc(var(--b) * .2s); transform-box: fill-box; transform-origin: bottom; }
@keyframes bar-grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

/* Process: connected steps with icons */
.process-visual { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.ps-step { position: relative; display: grid; gap: 16px; align-content: start; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; min-width: 0;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s; }
.ps-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #b6c6dd; }
.ps-step + .ps-step::before {
  content: ""; position: absolute; left: -16px; top: 46px; width: 14px; height: 2px; background: var(--cyan-400);
}
.ps-step + .ps-step::after { content: ""; position: absolute; left: -7px; top: 42px; border: 5px solid transparent; border-left: 6px solid var(--cyan-400); }
.ps-icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--navy-900); color: var(--cyan-300);
  box-shadow: inset 0 0 0 1px rgba(47, 182, 255, .35), 0 8px 18px -10px rgba(26, 109, 255, .8); }
.ps-icon .icon { width: 24px; height: 24px; }
.ps-icon span { position: absolute; right: -8px; top: -8px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; display: grid; place-items: center;
  background: var(--electric); color: #fff; font-family: var(--font-mono); font-size: 10.5px; box-shadow: 0 0 0 3px var(--surface); }
.ps-body { display: grid; gap: 8px; }
.ps-body h3 { font-size: 1.05rem; }
.ps-body p { color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.ps-body small { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--cyan-50);
  color: var(--blue-700); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.ps-body small .icon { width: 12px; height: 12px; }

/* Services: benefit pills + alternating intro */
.benefit-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.benefit-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--ink); }
.benefit-pills .icon { width: 16px; height: 16px; color: var(--blue-700); }
.section--grey .benefit-pills li { background: var(--surface); }
.svc-intro--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 48px; }
.svc-intro .media { width: 100%; }

/* Portfolio card previews */
.project-card { grid-template-rows: auto 1fr auto; }
.pc-preview {
  position: relative; height: 230px; overflow: hidden; padding: 18px 18px 0; background:
    radial-gradient(ellipse at 20% 0%, rgba(26, 109, 255, .14), transparent 60%), var(--grey-100);
  border-bottom: 1px solid var(--grey-200); pointer-events: none;
}
.pc-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(transparent, var(--grey-100)); }
.pc-preview .mock { box-shadow: var(--shadow); font-size: 12px; transform-origin: top center; transition: transform .5s var(--ease-out); }
.project-card:hover .pc-preview .mock { transform: translateY(-6px) scale(1.01); }
.pc-mock-label { position: absolute; z-index: 3; right: 12px; bottom: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(7, 21, 53, .85); color: #dbeeff;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; }
.pc-ps { display: grid; gap: 8px; margin: 0; }
.pc-ps > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.pc-ps dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.pc-ps dd { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.pc-chain { display: grid; gap: 8px; }
.pc-chain .mini-chain { border: 1px solid var(--grey-200); border-radius: 12px; padding: 10px; }
.pc-chain .mini-chain b { width: 30px; height: 30px; border-radius: 8px; }
.pc-chain .mini-chain b .icon { width: 15px; height: 15px; }

/* Lead capture form mockup */
.form-mock { display: grid; gap: 8px; font-size: 11.5px; }
.fm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fm-head b { font-family: var(--font-display); font-size: 13px; }
.fm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm-row span { display: grid; gap: 3px; }
.fm-row small { font-size: 10px; color: var(--ink-3); }
.fm-row i { font-style: normal; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--grey-200); background: var(--bg); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-submit { text-align: center; padding: 7px; border-radius: 999px; background: var(--electric); color: #fff; font-weight: 600; }
.fm-result { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 8px; background: var(--cyan-50); border: 1px dashed var(--cyan-300); color: var(--navy-800); font-family: var(--font-mono); font-size: 10px; }
.fm-result .icon { width: 13px; height: 13px; color: var(--electric); flex: none; }

/* Contact: connected-systems visual card */
.aside-card--visual { padding: 14px 14px 22px; gap: 10px; }
.aside-card--visual h3, .aside-card--visual p { padding-inline: 10px; }
.aside-card--visual p { color: var(--ink-2); font-size: .92rem; }
.media--compact .media-frame { border-radius: 14px; box-shadow: none; border: 1px solid var(--grey-200); }

@media (max-width: 1080px) {
  .lc-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .lc-stage:nth-child(4)::before { display: none; }
  .process-visual { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-step:nth-child(4)::before, .ps-step:nth-child(4)::after { display: none; }
}
@media (max-width: 960px) { .svc-intro--rev > .media { order: 2; } }
@media (max-width: 680px) {
  .lc-track { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .lc-stage { grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 16px; }
  .lc-stage + .lc-stage::before { display: block !important; left: 48px; top: -29px; rotate: 90deg; }
  .process-visual { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ps-step { grid-template-columns: auto minmax(0, 1fr); }
  .ps-step + .ps-step::before { display: block !important; left: 46px; top: -22px; width: 2px; height: 22px; }
  .ps-step + .ps-step::after { display: none !important; }
  .pc-preview { height: 210px; }
}
.lc-stage { container-type: inline-size; }
.lc-stage + .lc-stage::before { top: calc(100cqw * 11 / 32 - 12px); }
@media (max-width: 680px) { .lc-stage + .lc-stage::before { top: -29px; } }

@media (max-width: 960px) {
  .svc-intro--rev { grid-template-columns: minmax(0, 1fr); }
}

/* About hero portrait (brand frame) */
.portrait-photo { position: relative; margin: 0; padding: 6px; border-radius: calc(var(--radius-lg) + 6px);
  background: linear-gradient(145deg, var(--electric), var(--cyan-400) 45%, var(--navy-800));
  box-shadow: 0 30px 60px -28px rgba(11, 92, 230, .55), 0 0 0 1px rgba(47, 182, 255, .25); }
.portrait-photo::before { content: ""; position: absolute; inset: -14% 0 auto auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(47, 182, 255, .35), transparent 65%); z-index: -1; pointer-events: none; }
.portrait-photo .portrait { display: block; width: 100%; height: auto; object-fit: cover; object-position: center top; background: var(--navy-900); }
.portrait-wrap .float-card { bottom: -22px; right: 14px; }
.portrait-wrap { margin-bottom: 22px; }
@media (max-width: 960px) { .portrait-wrap .float-card { right: 12px; } }

/* Real screenshots on portfolio cards and dialogs */
.pc-preview--shot { padding: 14px 14px 0; background: radial-gradient(ellipse at 20% 0%, rgba(26, 109, 255, .18), transparent 60%), var(--navy-900); }
.pc-preview--shot::after { background: linear-gradient(transparent, rgba(7, 21, 53, .9)); }
.pc-preview--shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 12px 12px 0 0;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); transition: transform .5s var(--ease-out); }
.project-card:hover .pc-preview--shot img { transform: scale(1.03); }
.pc-mock-label--real { background: linear-gradient(135deg, var(--electric), var(--cyan-400)); color: #fff; }
.pd-shot { margin: 0 0 16px; }
.pd-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--grey-200); box-shadow: var(--shadow); }
.pd-shot figcaption { margin-top: 8px; font-size: .85rem; color: var(--ink-2); }
.pd-outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; }

/* Portfolio hero with image */
.pf-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: var(--navy-950); min-height: clamp(460px, 62vh, 620px); display: grid; align-items: center; }
.pf-hero-media { position: absolute; inset: 0; z-index: -2; }
.pf-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; display: block;
  filter: saturate(1.05) contrast(1.05); }
.pf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 10, 31, .97) 0%, rgba(2, 10, 31, .88) 34%, rgba(7, 21, 53, .35) 62%, rgba(7, 21, 53, .1) 100%),
    radial-gradient(ellipse at 78% 55%, rgba(26, 109, 255, .28), transparent 55%),
    linear-gradient(0deg, rgba(2, 10, 31, .75), transparent 30%); mix-blend-mode: normal; }
.pf-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-gradient); }
.pf-hero-inner { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.pf-hero-copy { display: grid; gap: 18px; max-width: 560px; }
.pf-hero h1 { color: #fff; max-width: 16ch; }
.pf-hero .lead { color: #c9d3e0; max-width: 52ch; }
.eyebrow--light { color: var(--cyan-300); }
.pf-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: .88rem;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(143, 216, 255, .25); color: #e6f4ff; backdrop-filter: blur(6px); }
.pf-chip .icon { width: 15px; height: 15px; color: var(--cyan-400); }
.section--tight-top { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-bottom: clamp(1.5rem, 1rem + 1vw, 2rem); }
@media (max-width: 760px) {
  .pf-hero { min-height: 0; align-items: end; }
  .pf-hero-media { bottom: auto; height: 340px; }
  .pf-hero-media img { object-position: 70% 50%; }
  .pf-hero::before { background: linear-gradient(0deg, var(--navy-950) 55%, rgba(2, 10, 31, .55) 72%, rgba(7, 21, 53, .1) 100%); }
  .pf-hero-inner { padding-top: 250px; }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ok .pf-hero-media img { animation: pfZoom 18s ease-in-out infinite alternate; }
  @keyframes pfZoom { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1%); } }
}

/* Home hero photo */
.hero-photo { position: relative; margin: 0; padding: 7px; border-radius: 28px;
  background: linear-gradient(140deg, var(--electric), var(--cyan-400) 45%, var(--navy-800));
  box-shadow: 0 40px 80px -36px rgba(11, 92, 230, .6), 0 0 0 1px rgba(47, 182, 255, .25); }
.hero-photo::before { content: ""; position: absolute; inset: -12% -8% -12% 10%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 30% 50%, rgba(47, 182, 255, .35), transparent 60%); filter: blur(10px); }
.hp-frame { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 5 / 4; background: var(--navy-950); }
.hp-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; display: block; }
.hp-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 10, 31, 0) 55%, rgba(2, 10, 31, .55)), radial-gradient(ellipse at 30% 55%, rgba(26, 109, 255, .18), transparent 60%); }
.hp-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px -18px rgba(2, 10, 31, .55); font-size: .86rem; color: var(--ink); }
.hp-card strong { display: block; font-weight: 600; }
.hp-card small { color: var(--ink-2); font-size: .78rem; }
.hp-card .icon-tile { width: 32px; height: 32px; border-radius: 10px; }
.hp-card .icon-tile .icon { width: 16px; height: 16px; }
.hp-card--tl { bottom: 30px; left: -22px; }
.hp-card--br { top: 74px; right: -22px; }
.hp-pill { position: absolute; bottom: 26px; right: 24px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(2, 10, 31, .6); border: 1px solid rgba(143, 216, 255, .35); color: #dff3ff; font: 500 .74rem/1 var(--font-mono, monospace); letter-spacing: .04em; backdrop-filter: blur(6px); }
.hp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 0 rgba(47, 182, 255, .6); }
@media (prefers-reduced-motion: no-preference) {
  .motion-ok .hp-card--tl { animation: floaty 6s ease-in-out infinite; }
  .motion-ok .hp-card--br { animation: floaty 6s ease-in-out 1.5s infinite; }
  .motion-ok .hp-dot { animation: hpPulse 2s ease-out infinite; }
  @keyframes hpPulse { to { box-shadow: 0 0 0 8px rgba(47, 182, 255, 0); } }
}
@media (max-width: 760px) {
  .hp-card--tl { left: 10px; bottom: 12px; padding: 8px 11px; font-size: .8rem; }
  .hp-card--tl small { display: none; }
  .hp-card--br { display: none; }
  .hp-pill { display: none; }
}
.float-card--loc .fc-head { font-weight: 500; font-size: .9rem; line-height: 1.35; max-width: 220px; }
